summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvisvgm/dvisvgm-1.2.2
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-05-21 13:53:17 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-05-21 13:53:17 +0000
commitd3043b6e77a218362554cff9b065c8c05abef5d9 (patch)
tree75c748f0bbbf7eb9bfa833bba897ae3476a14a5c /Build/source/texk/dvisvgm/dvisvgm-1.2.2
parent4d30fc89a17b30f1afd7472aa5219fe6d60afb52 (diff)
dvisvgm 1.2.2
git-svn-id: svn://tug.org/texlive/trunk@30608 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-1.2.2')
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/AUTHORS10
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/COPYING674
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/INSTALL229
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/LGPL-2.1.txt504
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/Makefile.am15
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/NEWS288
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/README112
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/config.h.in166
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/config.rpath0
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/configure.ac158
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/doc/Makefile.am39
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/doc/dvisvgm.11038
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/doc/dvisvgm.txt.in629
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/Makefile.am13
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/auxiliary.h78
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/bitmap.h97
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/curve.c108
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/curve.h77
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/decompose.c514
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/decompose.h16
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/lists.h285
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/potracelib.c114
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/potracelib.h139
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/progress.h79
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/trace.c1245
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/trace.h15
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BgColorSpecialHandler.cpp37
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BgColorSpecialHandler.h34
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Bitmap.cpp124
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Bitmap.h109
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BoundingBox.cpp262
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BoundingBox.h86
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CRC32.cpp112
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CRC32.h51
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Calculator.cpp178
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Calculator.h57
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CmdLineParserBase.cpp369
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CmdLineParserBase.h97
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Color.cpp127
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Color.h64
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/ColorSpecialHandler.cpp269
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/ColorSpecialHandler.h43
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CommandLine.cpp297
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CommandLine.h166
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DLLoader.cpp56
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DLLoader.h52
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIActions.cpp26
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIActions.h56
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIReader.cpp682
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIReader.h147
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVG.cpp359
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVG.h63
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVGActions.cpp343
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVGActions.h102
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Directory.cpp116
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Directory.h54
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DvisvgmSpecialHandler.cpp202
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DvisvgmSpecialHandler.h35
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSFile.cpp114
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSFile.h46
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSToSVG.cpp78
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSToSVG.h65
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EmSpecialHandler.cpp231
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EmSpecialHandler.h58
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileFinder.cpp256
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileFinder.h34
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FilePath.cpp257
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FilePath.h59
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileSystem.cpp333
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileSystem.h48
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Font.cpp444
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Font.h280
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontCache.cpp387
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontCache.h74
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEncoding.cpp164
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEncoding.h48
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEngine.cpp379
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEngine.h73
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontManager.cpp296
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontManager.h82
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontMap.cpp302
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontMap.h75
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFGlyphTracer.cpp92
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFGlyphTracer.h60
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFReader.cpp352
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFReader.h110
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFTracer.cpp102
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFTracer.h47
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Ghostscript.cpp269
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Ghostscript.h104
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Glyph.h28
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GlyphTracerMessages.h65
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GraphicPath.h340
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputBuffer.cpp137
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputBuffer.h145
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputReader.cpp342
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputReader.h89
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Length.cpp84
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Length.h62
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Makefile.am52
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MapLine.cpp275
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MapLine.h72
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Matrix.cpp465
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Matrix.h104
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Message.cpp273
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Message.h114
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MessageException.h39
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MetafontWrapper.cpp133
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MetafontWrapper.h43
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MiKTeXCom.cpp89
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MiKTeXCom.h51
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/NoPsSpecialHandler.cpp45
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/NoPsSpecialHandler.h43
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSInterpreter.cpp324
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSInterpreter.h121
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSPattern.cpp178
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSPattern.h100
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageRanges.cpp135
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageRanges.h49
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageSize.cpp156
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageSize.h48
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Pair.h79
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PdfSpecialHandler.cpp76
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PdfSpecialHandler.h39
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Process.cpp142
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Process.h41
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PsSpecialHandler.cpp806
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PsSpecialHandler.h140
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SVGOutputBase.h33
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SVGTree.cpp341
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SVGTree.h104
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SignalHandler.cpp85
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SignalHandler.h50
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialActions.h80
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialHandler.h58
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialManager.cpp151
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialManager.h71
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamReader.cpp164
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamReader.h64
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamWriter.cpp81
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamWriter.h46
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Subfont.cpp265
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Subfont.h102
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/System.cpp53
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/System.h29
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TFM.cpp149
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TFM.h59
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Terminal.cpp191
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Terminal.h56
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TpicSpecialHandler.cpp323
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TpicSpecialHandler.h51
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VFActions.h38
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VFReader.cpp190
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VFReader.h65
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VectorStream.h46
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLDocTypeNode.h41
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLDocument.cpp100
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLDocument.h44
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLNode.cpp343
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLNode.h134
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLString.cpp134
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLString.h40
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/dvisvgm.cpp424
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/gzstream.cpp172
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/gzstream.h121
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/iapi.h300
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/ierrors.h153
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/macros.h42
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/options.xml147
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/psdefs.cpp84
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/types.h84
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/BoundingBoxTest.cpp53
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/CRC32Test.cpp71
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/CalculatorTest.cpp60
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/ColorSpecialTest.cpp91
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/CommandLineTest.cpp216
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/DirectoryTest.cpp66
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FileFinderTest.cpp82
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FilePathTest.cpp107
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FileSystemTest.cpp121
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FontManagerTest.cpp76
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FontMapTest.cpp70
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/GFReaderTest.cpp252
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/GraphicPathTest.cpp82
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/LengthTest.cpp120
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/Makefile.am155
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/MapLineTest.cpp131
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/MatrixTest.cpp151
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/MessageExceptionTest.cpp78
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PSInterpreterTest.cpp180
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PageRagesTest.cpp167
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PageSizeTest.cpp73
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PairTest.cpp125
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/SplittedCharInputBufferTest.cpp181
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/StreamInputBufferTest.cpp230
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/StreamReaderTest.cpp100
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/StreamWriterTest.cpp114
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/SubfontTest.cpp96
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/TypesTest.cpp57
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/VectorStreamTest.cpp42
-rwxr-xr-xBuild/source/texk/dvisvgm/dvisvgm-1.2.2/tests/check-conv50
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/cmr10.600gfbin0 -> 24244 bytes
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/frktest-nf-cmp.svg1223
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/frktest-wf-cmp.svg348
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/frktest.dvibin0 -> 2072 bytes
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/normalize.xsl135
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample-nf-cmp.svg204
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample-wf-cmp.svg201
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample.dvibin0 -> 1320 bytes
-rw-r--r--Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample.sfd293
210 files changed, 33369 insertions, 0 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/AUTHORS b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/AUTHORS
new file mode 100644
index 00000000000..837e1e96bfb
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/AUTHORS
@@ -0,0 +1,10 @@
+Martin Gieseking <martin.gieseking@uos.de>
+ author of dvisvgm
+
+Peter Selinger <selinger at users.sourceforge.net>
+ author of the potrace library
+
+Deepak Bandyopadhyay, Lutz Kettner
+ authors of gzstream library
+ dvisvgm uses a slightly modified version
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/COPYING b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/COPYING
new file mode 100644
index 00000000000..94a9ed024d3
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/COPYING
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/INSTALL b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/INSTALL
new file mode 100644
index 00000000000..a4b34144dcf
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/INSTALL
@@ -0,0 +1,229 @@
+Copyright 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
+Foundation, Inc.
+
+ This file is free documentation; the Free Software Foundation gives
+unlimited permission to copy, distribute and modify it.
+
+Basic Installation
+==================
+
+ These are generic installation instructions.
+
+ The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation. It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions. Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, and a
+file `config.log' containing compiler output (useful mainly for
+debugging `configure').
+
+ It can also use an optional file (typically called `config.cache'
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
+the results of its tests to speed up reconfiguring. (Caching is
+disabled by default to prevent problems with accidental use of stale
+cache files.)
+
+ If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release. If you are using the cache, and at
+some point `config.cache' contains results you don't want to keep, you
+may remove or edit it.
+
+ The file `configure.ac' (or `configure.in') is used to create
+`configure' by a program called `autoconf'. You only need
+`configure.ac' if you want to change it or regenerate `configure' using
+a newer version of `autoconf'.
+
+The simplest way to compile this package is:
+
+ 1. `cd' to the directory containing the package's source code and type
+ `./configure' to configure the package for your system. If you're
+ using `csh' on an old version of System V, you might need to type
+ `sh ./configure' instead to prevent `csh' from trying to execute
+ `configure' itself.
+
+ Running `configure' takes awhile. While running, it prints some
+ messages telling which features it is checking for.
+
+ 2. Type `make' to compile the package.
+
+ 3. Optionally, type `make check' to run any self-tests that come with
+ the package.
+
+ 4. Type `make install' to install the programs and any data files and
+ documentation.
+
+ 5. You can remove the program binaries and object files from the
+ source code directory by typing `make clean'. To also remove the
+ files that `configure' created (so you can compile the package for
+ a different kind of computer), type `make distclean'. There is
+ also a `make maintainer-clean' target, but that is intended mainly
+ for the package's developers. If you use it, you may have to get
+ all sorts of other programs in order to regenerate files that came
+ with the distribution.
+
+Compilers and Options
+=====================
+
+ Some systems require unusual options for compilation or linking that
+the `configure' script does not know about. Run `./configure --help'
+for details on some of the pertinent environment variables.
+
+ You can give `configure' initial values for configuration parameters
+by setting variables in the command line or in the environment. Here
+is an example:
+
+ ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
+
+ *Note Defining Variables::, for more details.
+
+Compiling For Multiple Architectures
+====================================
+
+ You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory. To do this, you must use a version of `make' that
+supports the `VPATH' variable, such as GNU `make'. `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script. `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+ If you have to use a `make' that does not support the `VPATH'
+variable, you have to compile the package for one architecture at a
+time in the source code directory. After you have installed the
+package for one architecture, use `make distclean' before reconfiguring
+for another architecture.
+
+Installation Names
+==================
+
+ By default, `make install' will install the package's files in
+`/usr/local/bin', `/usr/local/man', etc. You can specify an
+installation prefix other than `/usr/local' by giving `configure' the
+option `--prefix=PATH'.
+
+ You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files. If you
+give `configure' the option `--exec-prefix=PATH', the package will use
+PATH as the prefix for installing programs and libraries.
+Documentation and other data files will still use the regular prefix.
+
+ In addition, if you use an unusual directory layout you can give
+options like `--bindir=PATH' to specify different values for particular
+kinds of files. Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them.
+
+ If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+ Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System). The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+ For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Specifying the System Type
+==========================
+
+ There may be some features `configure' cannot figure out
+automatically, but needs to determine by the type of machine the package
+will run on. Usually, assuming the package is built to be run on the
+_same_ architectures, `configure' can figure that out, but if it prints
+a message saying it cannot guess the machine type, give it the
+`--build=TYPE' option. TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name which has the form:
+
+ CPU-COMPANY-SYSTEM
+
+where SYSTEM can have one of these forms:
+
+ OS KERNEL-OS
+
+ See the file `config.sub' for the possible values of each field. If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the machine type.
+
+ If you are _building_ compiler tools for cross-compiling, you should
+use the `--target=TYPE' option to select the type of system they will
+produce code for.
+
+ If you want to _use_ a cross compiler, that generates code for a
+platform different from the build platform, you should specify the
+"host" platform (i.e., that on which the generated programs will
+eventually be run) with `--host=TYPE'.
+
+Sharing Defaults
+================
+
+ If you want to set default values for `configure' scripts to share,
+you can create a site shell script called `config.site' that gives
+default values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists. Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Defining Variables
+==================
+
+ Variables not defined in a site shell script can be set in the
+environment passed to `configure'. However, some packages may run
+configure again during the build, and the customized values of these
+variables may be lost. In order to avoid this problem, you should set
+them in the `configure' command line, using `VAR=value'. For example:
+
+ ./configure CC=/usr/local2/bin/gcc
+
+will cause the specified gcc to be used as the C compiler (unless it is
+overridden in the site shell script).
+
+`configure' Invocation
+======================
+
+ `configure' recognizes the following options to control how it
+operates.
+
+`--help'
+`-h'
+ Print a summary of the options to `configure', and exit.
+
+`--version'
+`-V'
+ Print the version of Autoconf used to generate the `configure'
+ script, and exit.
+
+`--cache-file=FILE'
+ Enable the cache: use and save the results of the tests in FILE,
+ traditionally `config.cache'. FILE defaults to `/dev/null' to
+ disable caching.
+
+`--config-cache'
+`-C'
+ Alias for `--cache-file=config.cache'.
+
+`--quiet'
+`--silent'
+`-q'
+ Do not print messages saying which checks are being made. To
+ suppress all normal output, redirect it to `/dev/null' (any error
+ messages will still be shown).
+
+`--srcdir=DIR'
+ Look for the package's source code in directory DIR. Usually
+ `configure' can determine that directory automatically.
+
+`configure' also accepts some other, not widely useful, options. Run
+`configure --help' for more details.
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/LGPL-2.1.txt b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/LGPL-2.1.txt
new file mode 100644
index 00000000000..602bfc94635
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/LGPL-2.1.txt
@@ -0,0 +1,504 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the library's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ <signature of Ty Coon>, 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
+
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/Makefile.am b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/Makefile.am
new file mode 100644
index 00000000000..21666db93cf
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/Makefile.am
@@ -0,0 +1,15 @@
+## This file is part of dvisvgm
+## Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de>
+##
+## Process this file with automake.
+
+AUTOMAKE_OPTIONS = foreign
+EXTRA_DIST = COPYING LGPL-2.1.txt
+if HAVE_LIBPOTRACE
+SUBDIRS =
+else
+SUBDIRS = potracelib
+endif
+
+SUBDIRS += src tests doc
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/NEWS b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/NEWS
new file mode 100644
index 00000000000..aa2ae98c22c
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/NEWS
@@ -0,0 +1,288 @@
+dvisvgm-1.2.2 (2013-04-26)
+- fixed a bug that prevented the lookup of fontmap files
+- avoid throwing an exception but print a warning message if MiKTeX is not available
+- print a warning message if PostScript specials are found but ignored
+- added information about "dvisvgm -E" to the --help text and to the manpage
+- various code refactorings and cleanups
+
+dvisvgm-1.2.1 (2013-04-09)
+- updated bundled potrace library to version 1.11
+- avoid building bundled potracelib if system library is present (patch by Alexis Ballier)
+- allow background color specials to create white background rectangles
+- code refactorings and cleanup
+
+dvisvgm-1.2 (2013-03-01)
+- PostScript handler: added support of tiling patterns
+- PostScript handler: added support for EPS files with binary headers/footers
+- added option --eps to directly convert EPS files to SVG
+- added option --precision to select the number of decimal places used in the generated SVG files
+- added an optional argument to --help to choose a display variant
+- fixed the text alignment of the --help output
+- improved handling of PostScript operator "show"
+- choose the correct output location if the input file argument contains path specifiers (Windows only)
+
+dvisvgm-1.1 (2013-01-22)
+- added evaluation of pdf:mapline and pdf:mapfile specials
+- added evaluation of subfont file definitions (.sfd files)
+- added support for TTC (TrueType collection) fonts
+- added evaluation of font style parameters given in a font map definition
+- renamed option --map-file to --fontmap
+- the new option --fontmap allows multiple mapfile arguments and optional mode specifiers
+- if a PostScript error occurs, dvisvgm prints an error message together with the
+ PS operand stack, as generated by Ghostscript
+- if font checksums don't match, dvisvgm prints a warning now
+- avoid throwing exceptions if referenced encoding files are not available
+- added support for 64bit Windows builds
+- removed compilation error when using a C++11 compiler (patch by Peter Breitenlohner)
+- some code refactorings and improvements
+
+dvisvgm-1.0.12 (2012-09-27)
+- print a message if the processing of PostScript specials is disabled
+- the resulting SVG is now scaled to bp ("big point" units) properly
+- added the evaluation of PS operators rectclip, rectfill, and rectstroke
+- ignore dvips operator bop if present in a PS special
+- fixed processing of special strings that contain newline characters
+
+dvisvgm-1.0.11 (2012-03-09)
+- added Ghostscript to library list printed by --version=yes
+- fixed a bug in the number parser that could lead to displaced objects (SF bug #3471097)
+- corrected the computation of bounding boxes of DVI rules (lp bug #948713)
+- improved code compatibility to make dvisvgm compile with clang++ (patch by Vladimir Lomov)
+- fixed formatting issues in the manual page
+- updated information about bug reporting (tracker moved to Launchpad)
+
+dvisvgm-1.0.10 (2011-12-18)
+- introduced environment variable DVISVGM_COLORS to allow user-defined message colors
+- fixed linking issue concerning libfreetype
+- fixed potential clashes of character IDs
+
+dvisvgm-1.0.9 (2011-10-13)
+- fixed segfault occurred in TeX Live Win32 caused by mf.exe being unavailable
+ (thanks to Akira Kakuto for tracking down the issue)
+- updated bundled potrace library to version 1.10
+- some minor code improvements
+
+dvisvgm-1.0.8 (2011-05-31)
+- PS handler: added evaluation of PS operators save, restore, and grestoreall
+- PS handler: fixed potential segfault caused by invisible zero-length paths
+- fixed computation of current drawing position influenced by PS and DVI actions
+- don't stop Metafont conversions on errors any longer in order to convert
+ buggy MF fonts properly
+
+dvisvgm-1.0.7 (2011-05-06)
+- improved overall handling of PS specials
+- fixed broken PS special subset 'ps::'
+- fixed scaling of PS line properties (width, dash distance, etc.)
+- fixed semantics of TPIC special 'ip' (doesn't draw polygon outlines any longer)
+
+dvisvgm-1.0.6 (2011-04-21)
+- fixed segfault occurred if a (malformed) DVI file calls set_char/put_char
+ without preceding font definition
+- added CTRL-C handler
+- MiKTeX support updated to version 2.9
+- some code refactorings
+
+dvisvgm-1.0.5 (2011-03-01)
+- added optional integer argument to option -n to disable generation of <use> elements
+- added missing unit to width/height attributes of svg root element (SF bug #3185773)
+- added integrity check to font cache files
+- updated bundled potrace library to version 1.9
+- fixed a couple of minor issues
+
+dvisvgm-1.0.4 (2010-12-18)
+- added missing line width/dash pattern scaling to PS handler
+- fixed scaling issue in PS positioning
+- fixed compilation issue related to FreeType 2.4.0
+
+dvisvgm-1.0.3 (2010-08-06)
+- applied some more portability patches for TeX Live
+- fixed a potential memory issue
+- fixed a transformation issue regarding special 'psfile' (SF bug #3037372)
+
+dvisvgm-1.0.2 (2010-06-22)
+- applied latest TeX Live portability patches sent by Peter Breitenlohner and Karl Berry
+- fixed a potrace name clash occurred on Mac OS X Tiger
+- fixed putchar() name clash occurred on Solaris
+- fixed a couple of conversion warnings
+- updated the test suite
+
+dvisvgm-1.0.1 (2010-06-11)
+- fixed a memory issue in the PS handler that could lead to a segfault (SF bug #3013392)
+- fixed a recursion issue in the PS handler
+- suppress ANSI color code when terminating
+
+dvisvgm-1.0 (2010-06-08)
+- conversion of multiple pages (must be enabled explicitly, see option --pages)
+- added transparency support to the PS handler
+- improved conversion results of the PS handler
+- added support for computation of local bounding boxes
+- optional colorization of dvisvgm messages (option --color)
+- improved progress indicator (option --progress)
+- a couple of improvements of the build system
+
+dvisvgm-0.9.1 (2010-04-23)
+- CSS style definitions omit unnecessary fonts now
+- SVG validity was broken when using font elements
+- fixed two memory issues that could lead to segfaults
+
+dvisvgm-0.9 (2010-03-25)
+- added option --exact and corresponding algorithms to compute the exact
+ bounding boxes of characters
+- added option --keep that prevents deleting temporary font files
+- extended option --trace-all by an optional boolean argument controlling
+ the re-tracing of glyphs
+- fixed bug in evaluation of embedded PS headers
+- several code refactorings
+
+dvisvgm-0.8.8 (2010-02-02)
+- added option --libgs and evaluation of environment variable LIBGS
+ to overwrite the expected file name of the GS shared library
+ (only available if dvisvgm isn't linked against libgs and GS support
+ isn't completely disabled)
+- option --bbox can now be used to enlarge the minimal bounding box by
+ a given amount
+- fixed bug in evaluation of option --page
+- applied patches sent by Peter Breitenlohner to prepare the integration of
+ dvisvgm into TeX Live
+- some code refactorings
+
+dvisvgm-0.8.7 (2009-11-09)
+- fixed a bounding box issue concerning italic corrections
+- PS handler: zero-length paths are now drawn as dots
+- PS handler: fixed a path positioning issue
+- PS handler: colors set by color specials are now considered properly
+- added macro {?nl} to be used with special dvisvgm:raw
+
+dvisvgm-0.8.6 (2009-10-13)
+- renamed command-line option --bbox-format to --bbox
+- option --bbox can now be used to set an arbitrary bounding box
+- added the two special variants "dvisvgm:bbox abs" and "dvisvgm:bbox fix"
+- PS clipping path sequences and intersections are now handled correctly
+- fixed a PS bounding box bug
+- fixed a couple of PS positioning issues reported by John Bowman
+- fixed a bit shift overflow in the font tracer occurred on 64-bit systems
+
+dvisvgm-0.8.5 (2009-10-01)
+- added an optional depth parameter to special dvisvgm:raw
+- updated the man page
+- added LGPL license text needed for the gzstream wrapper classes
+
+dvisvgm-0.8.4 (2009-09-17)
+- improved the command-line parser to be more POSIX-compliant
+- added a simple progress indicator for time-consuming special operations
+- option --cache prints more information about the cached fonts
+- fixed a clipping bug in the PostScript handler
+ (thanks to John Bowman for also providing a patch for this issue)
+- fixed a bug in computation of the PS bounding box
+- fixed a memory bug in the GF tracer module
+
+dvisvgm-0.8.3 (2009-08-28)
+- added basic evaluation of the PostScript "show" operator
+ (handles PSTricks Type 3 fonts properly now)
+- improved checks for Ghostscript and potrace library in configure script
+- external Ghostscript and potrace development files are used if available
+- PostScript header/prologue files are now loaded regardless of converted page
+- replaced command-line option variant --cache=? by --cache
+
+dvisvgm-0.8.2 (2009-08-24)
+- changed license of dvisvgm to GPL version 3 or later
+- replaced getopt-based command-line parser by own implementation
+ in order to simplify future internationalizations
+- fixed memory bug in fontmap reader
+
+dvisvgm-0.8.1 (2009-08-02)
+- added evaluation of more psfile parameters
+- fixed computation of bounding box in psfile special
+- fixed compilation errors and a conversion bug occurred on x64 systems
+
+dvisvgm-0.8 (2009-07-27)
+- experimental evaluation of PostScript specials has been added (requires
+ a recent version of the Ghostscript shared library libgs.so or gsdll32.dll)
+- several code improvements and refactorings
+- fixed compilation bug occurred when using GCC 4.4.x
+
+dvisvgm-0.7.3 (2009-04-24)
+- fixed bug in font map reader that could cause a segmentation fault
+- fixed bug in creation of shorthand path drawing commands
+- fixed bug in TPIC special handler
+
+dvisvgm-0.7.2 (2009-04-02)
+- font caching has been added (speeds up embedding of bitmap fonts)
+- added option --trace-all that enables tracing of all glyphs of all
+ bitmap fonts used in the current DVI file. Even glyphs that are currently
+ not needed are considered. This avoids multiple calls of Metafont for the
+ same fonts. In combination with the new caching functionality this can
+ drastically increase the speed of successive dvisvgm calls.
+- if option --no-fonts is used, all glyph sizes are now computed correctly
+- use shorthand path commands in SVG fonts if possible
+
+dvisvgm-0.7.1 (2009-03-09)
+- evaluation of a subset of emTeX specials has been added
+- specials for embedding of raw SVG snippets have been added
+- evaluation of TPIC specials has been added
+- added background color support
+- added option -n, --no-fonts that replaces fonts by paths
+ (enables applications w/o SVG font support to render dvisvgm's output properly)
+- moved defs to top of SVG file to make Firefox's SVG renderer happy
+- fixed bug in color handler
+
+dvisvgm-0.7 (2009-02-16)
+- basic support for evaluation of specials has been added
+- evaluation of color specials has been added
+- renamed command-line option -S to --no-specials and inverted previous behavior
+- selected special sets can be disabled by optional arguments to --no-specials
+ (currently only color specials)
+- added option --no-style (see manpage for further details)
+- added optional '+' flag to option --map-file (see manpage for further details)
+- fixed \magnificaton bug (dvi magnification factor is now applied properly)
+- fixed buggy call of maketfm/makemf in Windows/MiKTeX version
+- fixed buggy evaluation of command-line argument -m/--map-file
+- several internal code improvements
+
+dvisvgm-0.6.1 (2009-01-29)
+- added support for dvips map files
+- removed dependency on dvipdfm's map file (now ps2pk.map, psfonts.map or dvipdfm.map is used by default)
+- fixed compilation bug #2535497
+- some internal refactorings
+
+dvisvgm-0.6 (2009-01-23)
+- added support for varying font encodings
+- updated MiKTeX support using its COM interface
+- fixed incomplete handling of nested virtual fonts
+- fixed a font handling bug that could cause segmentation faults
+- fixed bug in matrix transformation code
+- updated bundled potrace library to version 1.8
+
+dvisvgm-0.5 (2007-03-26)
+- redesigned and improved font handling
+- added support for virtual fonts
+- evaluation of dvipdfm's map file to find font files with differing
+ names (e.g. cork-lmr10 => lmr10)
+- automatic invocation of mktexmf etc. in case of missing font files (tfm, mf)
+- command-line option -m has been renamed to -M
+- added command-line options -m/--map-file and -n/--no-mktexmf
+- memory bug in StreamCounter class has been fixed
+- added sources of Peter Selinger's potrace library (part of potrace, http://potrace.sourceforge.net)
+ to simplify the build process
+
+dvisvgm-0.4.3 (2007-01-03)
+- problem with changed freetype API (freetype version >= 2.2.1) has been fixed
+- updated MiKTeX support to version 2.5
+- minor code improvements
+- some unit tests based on CxxTest (http://cxxtest.sourceforge.net) have been added
+
+dvisvgm-0.4.2 (2005-09-22)
+- added SVG transformation options
+- some bugfixes in command line frontend and TFM handling
+- code refactorings to improve modularity and extensibility
+
+dvisvgm-0.4.1 (2005-09-02)
+- added option -b to specify the bounding box
+- added a manual page
+
+dvisvgm-0.4 (2005-08-24)
+- Added a glyph tracing module that vectorizes Metafont's bitmap output
+ if no corresponding Type 1 font file is available.
+
+dvisvgm-0.3 (2005-08-10)
+- Initial public release with basic conversion functionality.
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/README b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/README
new file mode 100644
index 00000000000..6356881cd9f
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/README
@@ -0,0 +1,112 @@
+dvisvgm -- A DVI to SVG converter
+
+DESCRIPTION
+
+ dvisvgm is a utility for TeX/LaTeX users. It converts
+ DVI files to the XML-based scalable vector graphics format SVG.
+
+
+DEPENDENCIES
+
+ dvisvgm relies on the following free libraries:
+ * FreeType 2 (http://www.freetype.org)
+ This library is used to extract glyph outlines
+ from PFB files.
+
+ * Ghostscript (http://pages.cs.wisc.edu/~ghost)
+ The PostScript special handler requires the Ghostscript
+ library libgs.so (Linux) or gsdll32.dll/gsdll64.dll (Windows)
+ to be installed. If the configure script finds the corresponding
+ Ghostscript development files on the system, it directly
+ links against libgs.so. Otherwise, the library is looked up
+ at runtime and PostScript support is enabled only if libgs.so
+ could be found.
+ Due to incompatible changes of the Ghostscript API, dvisvgm
+ requires Ghostscript 8.31 or later.
+
+ * kpathsea
+ This library is part of the Web2C package and is
+ usually installed in conjunction with a TeX distribution.
+ kpathsea provides functions for searching files in the
+ large texmf tree.
+
+ * potracelib (http://potrace.sourceforge.net)
+ Peter Selinger's bitmap tracing library is utilized to
+ vectorize Metafont's bitmap output.
+ The latest version of the library is bundled with the
+ source tarball.
+
+ * zlib (http://www.zlib.org)
+ Compressed SVG files are produced by using functions
+ of this library and the Gzstream wrapper classes
+ (http://www.cs.unc.edu/Research/compgeom/gzstream)
+ which are licensed under LGPL version 2.1 (or optionally any
+ later version) and should be included with this package.
+
+ If you want to build and run the testsuite located in the tests
+ subdirectory, you also need the googletest libraries
+ (http://code.google.com/p/googletest).
+
+
+COMPILATION
+
+ Quick installation info:
+ * type "./configure"
+ * type "make"
+ * type "make install" as root (or "sudo make install")
+
+ For generic configuration instructions see the file INSTALL.
+
+ The configure script should recognize all necessary parameters.
+ If a library is installed but not detected, specify its location
+ as commandline parameter of configure, e.g.
+ ./configure --with-freetype=/usr/local/freetype
+ (all available options can be displayed with ./configure --help)
+
+ The tracer module calls Metafont in case of lacking TFM or PFB files
+ via a system call. Please ensure that Metafont is installed and
+ reachable through the search path.
+
+ If you don't like compiling the sources yourself, you can
+ download pre-compiled executables for Windows and MiKTeX
+ from sourceforge.net instead (see below).
+
+
+USAGE
+ Information about the command-line interface and the available options
+ can be found in the manual page.
+
+
+ADDITIONAL INFORMATION
+ This package is available from CTAN (dviware/dvisvgm) and can
+ be downloaded from the project website at sourceforge.net as well:
+
+ http://dvisvgm.sourceforge.net
+
+ Here you can find the sources, pre-compiled binaries and further additional
+ information about the converter and related topics.
+
+ If you've found a bug, please let me know. You can either send me an
+ email or preferably use the bug tracker at Launchpad
+ (see https://launchpad.net/dvisvgm).
+
+
+COPYRIGHT
+
+ Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de>
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 3 of the License, or (at your
+ option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+ Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, see <http://www.gnu.org/licenses/>.
+
+ See the file COPYING for details.
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/config.h.in b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/config.h.in
new file mode 100644
index 00000000000..b027999e9b3
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/config.h.in
@@ -0,0 +1,166 @@
+/* config.h.in. Generated from configure.ac by autoheader. */
+
+/* Define to 1 if the `closedir' function returns void instead of `int'. */
+#undef CLOSEDIR_VOID
+
+/* Set to 1 if PostScript support should be disabled */
+#undef DISABLE_GS
+
+/* Define to 1 if `TIOCGWINSZ' requires <sys/ioctl.h>. */
+#undef GWINSZ_IN_SYS_IOCTL
+
+/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
+ */
+#undef HAVE_DIRENT_H
+
+/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
+#undef HAVE_DOPRNT
+
+/* Define to 1 if you have the `ftime' function. */
+#undef HAVE_FTIME
+
+/* Define to 1 if you have the `gettimeofday' function. */
+#undef HAVE_GETTIMEOFDAY
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the `dl' library (-ldl). */
+#undef HAVE_LIBDL
+
+/* Define to 1 if you have the `gs' library (-lgs). */
+#undef HAVE_LIBGS
+
+/* Define to 1 if you have the <libintl.h> header file. */
+#undef HAVE_LIBINTL_H
+
+/* Define to 1 if you have the `kpathsea' library (-lkpathsea). */
+#undef HAVE_LIBKPATHSEA
+
+/* Define to 1 if you have the `m' library (-lm). */
+#undef HAVE_LIBM
+
+/* Define to 1 if you have the `potrace' library (-lpotrace). */
+#undef HAVE_LIBPOTRACE
+
+/* Define to 1 if you have the `z' library (-lz). */
+#undef HAVE_LIBZ
+
+/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
+ to 0 otherwise. */
+#undef HAVE_MALLOC
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the `memset' function. */
+#undef HAVE_MEMSET
+
+/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
+#undef HAVE_NDIR_H
+
+/* Define to 1 if `stat' has the bug that it succeeds when given the
+ zero-length file name argument. */
+#undef HAVE_STAT_EMPTY_STRING_BUG
+
+/* Define to 1 if stdbool.h conforms to C99. */
+#undef HAVE_STDBOOL_H
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the `strcasecmp' function. */
+#undef HAVE_STRCASECMP
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the `strtol' function. */
+#undef HAVE_STRTOL
+
+/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
+ */
+#undef HAVE_SYS_DIR_H
+
+/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
+ */
+#undef HAVE_SYS_NDIR_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/timeb.h> header file. */
+#undef HAVE_SYS_TIMEB_H
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#undef HAVE_SYS_TIME_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to 1 if you have the `vprintf' function. */
+#undef HAVE_VPRINTF
+
+/* Define to 1 if the system has the type `_Bool'. */
+#undef HAVE__BOOL
+
+/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
+ slash. */
+#undef LSTAT_FOLLOWS_SLASHED_SYMLINK
+
+/* Name of package */
+#undef PACKAGE
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* The machine triplet of the target system */
+#undef TARGET_SYSTEM
+
+/* Define to 1 if your <sys/time.h> declares `struct tm'. */
+#undef TM_IN_SYS_TIME
+
+/* Version number of package */
+#undef VERSION
+
+/* Define to empty if `const' does not conform to ANSI C. */
+#undef const
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+ calls it, or to nothing if 'inline' is not supported under any name. */
+#ifndef __cplusplus
+#undef inline
+#endif
+
+/* Define to rpl_malloc if the replacement function should be used. */
+#undef malloc
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+#undef size_t
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/config.rpath b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/config.rpath
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/config.rpath
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/configure.ac b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/configure.ac
new file mode 100644
index 00000000000..3d077b1941e
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/configure.ac
@@ -0,0 +1,158 @@
+# This file is part of dvisvgm
+# Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de>
+#
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.59)
+AC_INIT([dvisvgm],[1.2.2],[martin.gieseking@uos.de])
+DATE="April 2013"
+AC_CONFIG_SRCDIR(src)
+AC_CONFIG_HEADER(config.h)
+AC_CANONICAL_HOST
+AC_CANONICAL_TARGET
+AM_INIT_AUTOMAKE
+
+AH_TEMPLATE([TARGET_SYSTEM], [The machine triplet of the target system])
+AC_DEFINE_UNQUOTED([TARGET_SYSTEM], ["$target"])
+
+# Checks for programs.
+AC_PROG_CXX
+AC_PROG_CC
+
+AC_PROG_RANLIB
+AC_LANG(C)
+
+AC_CHECK_FUNCS([ftime gettimeofday])
+AC_CHECK_HEADERS([sys/time.h sys/timeb.h])
+AC_HEADER_TIOCGWINSZ
+
+AC_CHECK_HEADER([kpathsea/kpathsea.h], ,
+ [AC_MSG_ERROR([please install the kpathsea development package])])
+AC_CHECK_LIB(kpathsea, kpse_find_file, ,
+ [AC_MSG_ERROR([libkpathsea not found, please install the corresponding package first])])
+
+AC_MSG_CHECKING([kpathsea version])
+AC_RUN_IFELSE([AC_LANG_SOURCE([#include <stdio.h>
+ #include <kpathsea/kpathsea.h>
+ int main() {
+ FILE *f;
+ f = fopen("kpseversion", "w");
+ if(!f) exit(1);
+ fprintf(f, "%s\n", KPSEVERSION);
+ fclose(f);
+ exit(0);
+ }])],
+ [kpseversion=`cat kpseversion|sed 's/kpathsea version //'`], [kpseversion=], [kpseversion=unknown])
+AC_MSG_RESULT("$kpseversion")
+rm -f kpseversion
+if test -z "$kpseversion"; then
+ AC_MSG_ERROR([Could not compile a simple kpathsea program -- check your installation])
+fi
+
+
+# Check how to link potracelib
+HAVE_LIBPOTRACE=1
+AC_CHECK_HEADER([potracelib.h],
+ [AC_CHECK_LIB(m, sqrt) # required to pass potrace check
+ AC_CHECK_LIB(potrace, potrace_trace, , HAVE_LIBPOTRACE=0)], HAVE_LIBPOTRACE=0)
+
+if test "$HAVE_LIBPOTRACE" -eq 0; then
+ AM_CPPFLAGS="$AM_CXXFLAGS -I\${srcdir}/../potracelib -I\${srcdir}/../../potracelib"
+ EXTRA_LIBS="$EXTRA_LIBS ../potracelib/libpotrace.a "
+ AC_MSG_NOTICE([Using bundled potrace library])
+fi
+AM_CONDITIONAL(HAVE_LIBPOTRACE, test "x$HAVE_LIBPOTRACE" = "x1")
+
+
+# Check how to link Ghostscript
+HAVE_LIBGS=1
+AC_CHECK_HEADER([ghostscript/iapi.h],
+ AC_CHECK_LIB(gs, gsapi_new_instance, , HAVE_LIBGS=0), HAVE_LIBGS=0)
+
+if test "$HAVE_LIBGS" -eq 0; then
+ AC_CHECK_LIB(dl, dlopen, ,
+ [AC_DEFINE(DISABLE_GS, 1, [Set to 1 if PostScript support is to be disabled])
+ AC_MSG_WARN(PostScript support disabled)])
+else
+ # query Ghostscript version
+ AC_MSG_CHECKING([Ghostscript version])
+ AC_RUN_IFELSE([AC_LANG_SOURCE([#include <stdio.h>
+ #include <ghostscript/iapi.h>
+ int main () {
+ gsapi_revision_t r;
+ if (gsapi_revision(&r, sizeof(gsapi_revision_t)) == 0) {
+ FILE *f;
+ f = fopen("gsversion", "w");
+ if (!f) exit(1);
+ fprintf(f, "%ld\n", r.revision);
+ fclose(f);
+ exit(0);
+ }
+ }])],
+ [gsversion=`cat gsversion`], [gsversion=], [gsversion=unknown])
+ AC_MSG_RESULT("$gsversion")
+ rm -f gsversion
+ if test "$gsversion" -lt 831; then
+ # current Ghostscript API was introduced in version 8.31
+ # older versions are not supported
+ LIBS=`echo $LIBS | sed "s/-lgs //" $LIBS`
+ AC_DEFINE(DISABLE_GS, 1, [Set to 1 if PostScript support should be disabled])
+ AC_MSG_WARN([Ghostscript version < 8.31 found; PostScript support disabled])
+ fi
+fi
+
+# Check for pkg-config
+PKG_PROG_PKG_CONFIG
+
+# Check for libraries.
+PKG_CHECK_MODULES([FREETYPE], [freetype2])
+CXXFLAGS="$CXXFLAGS ${FREETYPE_CFLAGS}"
+LIBS="$LIBS ${FREETYPE_LIBS}"
+
+AC_CHECK_LIB(z, gzopen)
+
+# Check for header files.
+AC_HEADER_DIRENT
+AC_HEADER_STDC
+AC_CHECK_HEADERS([libintl.h stdlib.h string.h strings.h unistd.h])
+
+# Check for typedefs, structures, and compiler characteristics.
+AC_HEADER_STDBOOL
+AC_C_CONST
+AC_C_INLINE
+AC_TYPE_SIZE_T
+AC_STRUCT_TM
+
+# Check for library functions.
+AC_FUNC_CLOSEDIR_VOID
+AC_FUNC_ERROR_AT_LINE
+AC_FUNC_MALLOC
+AC_FUNC_STAT
+AC_FUNC_VPRINTF
+AC_CHECK_FUNCS([memset strcasecmp strtol])
+
+# add options for selection of "optional" library locations
+# currently these libraries are mandatory; the --with-foo options
+# are used to specify the locations explicitely
+
+AC_ARG_WITH(zlib,[ --with-zlib=DIR location of the zlib library],
+ [if test "$withval" != no; then
+ if test "$withval" != yes; then
+ ZLIB_DIR=$withval
+ fi
+ fi])
+
+if test "$withval" != no; then
+ if test -n "$ZLIB_DIR"; then
+ CPPFLAGS="$CPPFLAGS -I$ZLIB_DIR -I$ZLIB_DIR/include"
+ LDFLAGS="$LDFLAGS -L$ZLIB_DIR/lib"
+ fi
+fi
+
+AC_SUBST(DATE)
+AC_SUBST(EXTRA_LIBS)
+AC_SUBST(AM_CPPFLAGS)
+AC_SUBST(AM_LDFLAGS)
+AC_CONFIG_FILES([Makefile potracelib/Makefile src/Makefile tests/Makefile doc/dvisvgm.txt doc/Makefile])
+AC_OUTPUT
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/doc/Makefile.am b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/doc/Makefile.am
new file mode 100644
index 00000000000..fb5c56ffedf
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/doc/Makefile.am
@@ -0,0 +1,39 @@
+## This file is part of dvisvgm
+## Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de>
+##
+## Process this file with automake.
+
+man_MANS = dvisvgm.1
+EXTRA_DIST = $(man_MANS)
+
+dvisvgm.1: dvisvgm.txt
+ if [ `type -p a2x` ]; then \
+ a2x -dmanpage -fmanpage -L -a icons -a 'iconsdir=.' $<; \
+ rm -f dvisvgm.xml; \
+ fi
+
+dvisvgm.pdf: dvisvgm.1
+ echo '[ /Author (Martin Gieseking) /Title (dvisvgm manual page) /Subject (manual page of dvisvgm @VERSION@) /DOCINFO pdfmark' >tmp.ps
+ man -t ./$< >>tmp.ps
+ ps2pdf tmp.ps $@
+ rm -f tmp.ps
+
+dvi-pdf: dvisvgm.dvi
+ dvipdfm $<
+ rm -f $<
+
+dvisvgm.dvi: dvisvgm.1
+ groff -Tdvi -mandoc ./$< >$@
+
+dvisvgm.html: dvisvgm.txt
+ asciidoc -a icons -a 'iconsdir=.' -a badges -a 'revnumber=@VERSION@' --unsafe -dmanpage $<
+
+html: dvisvgm.html
+man: dvisvgm.1
+pdf: dvisvgm.pdf
+
+clean:
+ rm -f dvisvgm.pdf dvisvgm.html dvisvgm.xml dvisvgm.txt
+
+distclean-local:
+ rm -f dvisvgm.pdf dvisvgm.html dvisvgm.xml dvisvgm.txt dvisvgm.1
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/doc/dvisvgm.1 b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/doc/dvisvgm.1
new file mode 100644
index 00000000000..f71ef16e44f
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/doc/dvisvgm.1
@@ -0,0 +1,1038 @@
+'\" t
+.\" Title: dvisvgm
+.\" Author: Martin Gieseking <martin.gieseking@uos.de>
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\" Date: 04/25/2013
+.\" Manual: dvisvgm Manual
+.\" Source: dvisvgm 1.2.2
+.\" Language: English
+.\"
+.TH "DVISVGM" "1" "04/25/2013" "dvisvgm 1\&.2\&.2" "dvisvgm Manual"
+.\" -----------------------------------------------------------------
+.\" * Define some portability stuff
+.\" -----------------------------------------------------------------
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.\" http://bugs.debian.org/507673
+.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
+.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+.ie \n(.g .ds Aq \(aq
+.el .ds Aq '
+.\" -----------------------------------------------------------------
+.\" * set default formatting
+.\" -----------------------------------------------------------------
+.\" disable hyphenation
+.nh
+.\" disable justification (adjust text to left margin only)
+.ad l
+.\" -----------------------------------------------------------------
+.\" * MAIN CONTENT STARTS HERE *
+.\" -----------------------------------------------------------------
+.SH "NAME"
+dvisvgm \- converts DVI files to the XML\-based SVG format
+.SH "SYNOPSIS"
+.sp
+\fBdvisvgm\fR [ \fIoptions\fR ] \fIfile\fR [\&.dvi]
+.sp
+\fBdvisvgm\fR \-E [ \fIoptions\fR ] \fIfile\fR [\&.eps]
+.SH "DESCRIPTION"
+.sp
+The command\-line utility \fBdvisvgm\fR converts DVI files, as generated by TeX/LaTeX, to the XML\-based scalable vector graphics format SVG\&. Since the current SVG standard 1\&.1 doesn\(cqt specify multi\-page graphics, dvisvgm creates separate SVG files for each DVI page\&. Because of compatibility reasons, only the first page is converted by default\&. In order to select a different page or arbitrary page sequences, use option \fB\-p\fR which is described below\&.
+.sp
+dvisvgm should properly convert all pages that are made up of fonts and rules only\&. However, the utility also supports a couple of DVI extensions defined in terms of \fIDVI specials\fR\&. For a more detailed overview, see section \fBsupport of specials\fR below\&.
+.sp
+As SVG is a vector based graphics format, dvisvgm tries to convert the glyph outlines of all used fonts into scalable path descriptions\&. The fastest way to do that is to extract the path information from PFB (PostScript Type 1) files\&. So, if dvisvgm is able to find a PFB file for a required font, it will read the necessary information from this file\&.
+.sp
+TeX\(cqs main source for font descriptions is Metafont though, which produces bitmap output\&. That\(cqs why not all obtainable TeX fonts are available in PFB format\&. In these cases, dvisvgm tries to vectorize Metafont\(cqs output (GF fonts) by tracing the glyph bitmaps\&. The results are not as perfect as most (manually optimized) PFB outlines but are nonetheless really nice in most cases\&.
+.SH "OPTIONS"
+.PP
+\fB\-a, \-\-trace\-all\fR=[\fIretrace\fR]
+.RS 4
+This option forces dvisvgm to trace not only the actually needed glyphs but all glyphs of all bitmap fonts used in the DVI file\&. Since the tracing results are stored in the font cache, all following DVI conversions (without option
+\fB\-\-trace\-all\fR) where these fonts are involved, will be much faster\&. By default, dvisvgm traces only the actually needed glyphs, and adds them to the cache\&. The boolean option
+\fIretrace\fR
+determines how to handle glyphs already stored in the cache\&. By default, these glyphs are skipped\&. Setting argument
+\fIretrace\fR
+to
+\fIyes\fR
+or
+\fItrue\fR
+forces dvisvgm to trace the corresponding bitmaps again\&.
+.if n \{\
+.sp
+.\}
+.RS 4
+.it 1 an-trap
+.nr an-no-space-flag 1
+.nr an-break-flag 1
+.br
+.ps +1
+\fBNote\fR
+.ps -1
+.br
+This option only takes affect if font caching is active\&. Thus,
+\fB\-\-trace\-all\fR
+cannot be combined with option
+\fB\-\-cache=none\fR\&.
+.sp .5v
+.RE
+.RE
+.PP
+\fB\-b, \-\-bbox\fR=\fIfmt\fR
+.RS 4
+Sets the bounding box of the generated graphic to the specified format\&. The parameter
+\fIfmt\fR
+takes either one of the format specifiers listed below, or a sequence of four comma\- or whitespace\-separated length values
+\fIx1\fR,
+\fIy1\fR,
+\fIx2\fR
+and
+\fIy2\fR\&. The latter define two diagonal corners of the bounding box\&. Each length value consists of a floating point number and an optional length unit (pt, bp, cm, mm, in, or pc)\&. If the unit is omitted, TeX points (pt) are assumed\&.
+.sp
+It\(cqs also possible to give only one length value
+\fIl\fR\&. In this case, the minimal bounding box is computed and enlarged by adding (\-\fIl\fR,\-\fIl\fR) to the upper left and (\fIl\fR,\fIl\fR) to the lower right corner\&.
+.sp
+Alternatively, the following format specifiers are supported:
+.PP
+\fBInternational DIN/ISO paper sizes\fR
+.RS 4
+A\fIn\fR, B\fIn\fR, C\fIn\fR, D\fIn\fR, where
+\fIn\fR
+is a non\-negative integer, e\&.g\&. A4 or a4 for DIN/ISO A4 format (210mm \(mu 297mm)\&.
+.RE
+.PP
+\fBNorth American paper sizes\fR
+.RS 4
+invoice, executive, legal, letter, ledger
+.RE
+.PP
+\fBSpecial bounding box sizes\fR
+.RS 4
+.TS
+tab(:);
+lt lt
+lt lt
+lt lt.
+T{
+\fBdvi\fR
+T}:T{
+page size stored in the DVI file
+T}
+T{
+\fBmin\fR
+T}:T{
+computes the minimal/tightest bounding box
+T}
+T{
+\fBnone\fR
+T}:T{
+no bounding box is assigned
+T}
+.TE
+.sp 1
+.RE
+.RE
+.PP
+\fBPage orientation\fR
+.RS 4
+The default page orientation for DIN/ISO and American paper sizes is
+\fIportrait\fR, i\&.e\&.
+\fIwidth\fR
+<
+\fIheight\fR\&. Appending
+\fB\-landscape\fR
+or simply
+\fB\-l\fR
+to the format string switches to
+\fIlandscape\fR
+mode (\fIwidth\fR
+>
+\fIheight\fR)\&. For symmetry reasons you can also explicitly add
+\fB\-portrait\fR
+or
+\fB\-p\fR
+to indicate the default portrait format\&. Note that these suffixes are part of the size string and not separate options\&. Thus, they must directly follow the size specifier without additional blanks\&. Furthermore, the orientation suffixes can\(cqt be used with
+\fBdvi\fR,
+\fBmin\fR, and
+\fBnone\fR\&.
+.if n \{\
+.sp
+.\}
+.RS 4
+.it 1 an-trap
+.nr an-no-space-flag 1
+.nr an-break-flag 1
+.br
+.ps +1
+\fBNote\fR
+.ps -1
+.br
+Option
+\fB\-b, \-\-bbox\fR
+only affects the bounding box and does not transform the page content\&. Hence, if you choose a landscape format, the page won\(cqt be rotated\&.
+.sp .5v
+.RE
+.RE
+.PP
+\fB\-C, \-\-cache\fR[=\fIdir\fR]
+.RS 4
+To speed up the conversion process of bitmap fonts, dvisvgm saves intermediate conversion information in cache files\&. By default, these files are stored in $HOME/\&.dvisvgm/cache\&. If you prefer a different location, use option
+\fB\-\-cache\fR
+to overwrite the default\&. Furthermore, it is also possible to disable the font caching mechanism completely with option
+\fB\-\-cache=none\fR\&. If argument
+\fIdir\fR
+is omitted, dvisvgm prints the path of the default cache directory and some information about the stored fonts\&. Additionally, outdated and corrupted cache files are removed\&.
+.RE
+.PP
+\fB\-\-color\fR
+.RS 4
+Enables colorization of messages printed during the conversion process\&. The colors can be customized via the environment variable
+DVISVGM_COLORS\&. See the ENVIRONMENT section below for further information\&.
+.RE
+.PP
+\fB\-E, \-\-eps\fR
+.RS 4
+If this option is given, dvisvgm does not expect a DVI but an EPS input file, and tries to convert it to SVG\&. In order to do so, a single
+\fIpsfile\fR
+special command is created and forwarded to the PostScript special handler\&. This option is only available if dvisvgm was built with PostScript support enabled, and requires Ghostscript to be available\&. See option
+\fB\-\-libgs\fR
+for further information\&.
+.RE
+.PP
+\fB\-e, \-\-exact\fR
+.RS 4
+If this option is given, dvisvgm computes the precise bounding box of each character\&. By default, the values stored in a font\(cqs TFM file are used to determine a glyph\(cqs extent\&. As these values are intended to realize optimal character placements and are not designed to represent the exact dimensions, they don\(cqt necessarily correspond with the bounds of the visual glyphs\&. Thus, width and/or height of some glyphs may be larger than the respective TFM values\&. As a result, this can lead to clipped characters at the bounds of the SVG graphic\&. With option
+\fB\-\-exact\fR, dvisvgm analyzes the actual shape of each character and derives a usually tight bounding box\&.
+.RE
+.PP
+\fB\-m, \-\-fontmap\fR=\fIfilenames\fR
+.RS 4
+Loads and evaluates a single or multiple font map files\&. These files are required to resolve font file names and encodings\&. dvisvgm does not provide its own map file but tries to read available ones coming with dvips or dvipdfm\&. If option
+\fB\-\-fonrmapm\fR
+is not given, dvisvgm looks for the default map files
+ps2pk\&.map,
+dvipdfm\&.map, and
+psfonts\&.map
+(in this order)\&. Otherwise, the listed files are used\&. Multiple filenames must be separated by commas without leading and/or trailing whitespace\&. The map files are evaluated in the given order\&. By default, redefined mappings do not replace previous ones\&. However, each filename can be preceded by an optional mode specifier (\fB+\fR,
+\fB\-\fR, or
+\fB=\fR) to change this behavior:
+.PP
++mapfile
+.RS 4
+Only those entries in the given map file that don\(cqt redefine a font mapping are applied\&. That\(cqs also the default mode if no mode specifier is given\&.
+.RE
+.PP
+\-mapfile
+.RS 4
+Ensures that none of the font mappings defined in the given map file are used, i\&.e\&. previously defined mappings for the specified fonts are removed\&.
+.RE
+.PP
+=mapfile
+.RS 4
+All mappings defined in the map file are applied\&. Previously defined settings for the same font are replaced\&.
+.sp
+If the first filename in the filename sequence is preceded by a mode specifier, dvisvgm loads the default font map (see above) and applies the other map files afterwards\&. Otherwise, none of default map files will be loaded automatically\&.
+.sp
+Examples:
+\fB\-\-fontmap=myfile1\&.map,+myfile2\&.map\fR
+loads
+myfile1\&.map
+followed by
+myfile2\&.map
+where all redefinitions of
+myfile2\&.map
+are ignored\&.
+\fB\-\-fontmap==myfile1\&.map,\-myfile2\&.map\fR
+loads the default map file followed by
+myfile1\&.map
+and
+myfile2\&.map
+where all redefinitions of
+myfile1\&.map
+replace previous entries\&. Afterwards, all definitions for the fonts given in
+myfile2\&.map
+are removed again\&.
+.sp
+For further information about the map file formats, see the manuals of dvips and dvipdfm\&.
+.RE
+.RE
+.PP
+\fB\-h, \-\-help\fR[=\fImode\fR]
+.RS 4
+Prints a short summary of all available command\-line options\&. The optional
+\fImode\fR
+parameter is an integer value between 0 and 2\&. It selects the display variant of the help text\&. Mode 0 lists all options divided into categories with section headers\&. This is also the default if dvisvgm is called without parameters\&. Mode 1 lists all options ordered by the short option name, while mode 2 sorts the lines by the long option name\&.
+.RE
+.PP
+\fB\-\-keep\fR
+.RS 4
+Disables the removal of temporary files as created by Metafont (usually \&.gf, \&.tfm, and \&.log files)\&.
+.RE
+.PP
+\fB\-\-libgs\fR=\fIfilename\fR
+.RS 4
+This option is only available if the Ghostscript library is not directly linked to dvisvgm and if PostScript support was not completely disabled during compilation\&. In this case, dvisvgm tries to load the shared GS library dynamically during runtime\&. By default, it expects the library\(cqs name to be libgs\&.so (on Unix\-like systems) or gsdll32\&.dll/gsdll64\&.dll (Windows)\&. Option
+\fB\-\-libgs\fR
+can be used to give a different name\&. Alternatively, it\(cqs also possible to set the GS library name by the environment variable
+LIBGS\&. The latter has less precedence than the command\-line option\&.
+.RE
+.PP
+\fB\-l, \-\-list\-specials\fR
+.RS 4
+Prints a list of registered special handlers and exits\&. Each handler processes a set of special statements belonging to the same category\&. In most cases, the categories are identified by the prefix of the special statements\&. It\(cqs usually a leading word separated from the rest of the statement by a colon or a blank, e\&.g\&.
+\fIcolor\fR
+or
+\fIps\fR\&.
+.RE
+.PP
+\fB\-M, \-\-mag\fR=\fIfactor\fR
+.RS 4
+Sets the magnification factor applied in conjunction with Metafont calls prior tracing the glyphs\&. The larger this value, the better the tracing results\&. Nevertheless, large magnification values can cause Metafont arithmetic errors due to number overflows\&. So, use this option with care\&. The default setting usually produces nice results\&.
+.RE
+.PP
+\fB\-\-no\-mktexmf\fR
+.RS 4
+Suppresses the generation of missing font files\&. If dvisvgm can\(cqt find a font file through the kpathsea lookup mechanism, it calls the external tools mktextfm or mktexmf by\&. This option disables these calls\&.
+.RE
+.PP
+\fB\-n, \-\-no\-fonts\fR[=\fIvariant\fR]
+.RS 4
+If this option is given, dvisvgm doesn\(cqt create SVG
+\fIfont\fR
+elements but uses
+\fIpaths\fR
+instead\&. The resulting SVG files tends to be larger but concurrently more compatible with most applications that don\(cqt support SVG fonts yet\&. The optional argument
+\fIvariant\fR
+selects the method how to substitute fonts by paths\&. Variant 0 creates
+\fIpath\fR
+and
+\fIuse\fR
+elements\&. Variant 1 creates
+\fIpath\fR
+elements only\&. Option
+\fB\-\-no\-fonts\fR
+implies
+\fB\-\-no\-styles\fR\&.
+.RE
+.PP
+\fB\-c, \-\-scale\fR=\fIsx\fR[,\fIsy\fR]
+.RS 4
+Scales the page content horizontally by
+\fIsx\fR
+and vertically by
+\fIsy\fR\&. This option is equivalent to
+\fB\-TS\fR\fIsx\fR,\fIsy\fR\&.
+.RE
+.PP
+\fB\-S, \-\-no\-specials\fR[=\fInames\fR]
+.RS 4
+Disable processing of special commands embedded in the DVI file\&. If no further parameter is given, all specials are ignored\&. To selectively disable sets of specials, an optional comma\-separated list of names can be appended to this option\&. A
+\fIname\fR
+is the unique identifier referencing the intended special handler\&. Option
+\fB\-\-list\-specials\fR
+lists all currently available handlers and their names\&. All unsupported special statements are silently ignored\&.
+.RE
+.PP
+\fB\-\-no\-styles\fR
+.RS 4
+By default, dvisvgm creates CSS styles and class attributes to reference fonts because it\(cqs more compact than repeatedly set the complete font information in each text element\&. However, if you prefer direct font references, the default behavior can be disabled with option
+\fB\-\-no\-styles\fR\&.
+.RE
+.PP
+\fB\-o, \-\-output\fR=\fIpattern\fR
+.RS 4
+Sets the name pattern of the output file\&. Parameter
+\fIpattern\fR
+is a string that may contain the variables
+\fB%f\fR
+and
+\fB%p\fR\&.
+\fB%f\fR
+stands for the base name of the DVI file, i\&.e\&. the DVI filename without suffix, and
+\fB%p\fR
+is the current page number\&. The default pattern is
+\fB%f\-%p\&.svg\fR
+if the DVI file consists of more than one page, and
+\fB%f\&.svg\fR
+otherwise\&. That means, a DVI file
+\fIfoo\&.dvi\fR
+is converted to
+\fIfoo\&.svg\fR
+if
+\fIfoo\&.dvi\fR
+is a single\-page document\&. Otherwise, multiple SVG files
+\fIfoo\-01\&.svg\fR,
+\fIfoo\-02\&.svg\fR, etc\&. are produced\&. In Windows environments, the percent sign indicates dereferenced environment variables, and must therefore be protected by a second percent sign, e\&.g\&.
+\fB\-\-output=%%f\-%%p\fR\&.
+.RE
+.PP
+\fB\-p, \-\-page\fR=\fIranges\fR
+.RS 4
+This option sets the pages to be processed\&. Parameter
+\fIranges\fR
+consists of a comma\-separated list of single page numbers and/or page ranges\&. A page range is a pair of numbers separated by a hyphen, e\&.g\&. 5\-12\&. Thus, a page sequence might look like this: 2\-4,6,9\-12,15\&. It doesn\(cqt matter if a page is given more than once or if page ranges overlap\&. dvisvgm always extracts the page numbers in ascending order and converts them only once\&. In order to stay compatible with previous versions, the default page sequence is 1\&. dvisvgm therefore converts only the first page and not the whole document in case option
+\fB\-\-page\fR
+is omitted\&. Usually, page ranges consist of two numbers denoting the first and last page to be converted\&. If the conversion is to be started at page 1, or if it should continue up to the last DVI page, the first or second range number can be omitted, respectively\&. Example:
+\fB\-\-page=\-10\fR
+converts all pages up to page 10,
+\fB\-\-page=10\-\fR
+converts all pages starting with page 10\&. Please consider that the page values don\(cqt refer to the page numbers printed on the page\&. Instead, the physical page count is expected, where the first page always gets number 1\&.
+.RE
+.PP
+\fB\-d, \-\-precision\fR=\fIdigits\fR
+.RS 4
+Specifies the maximal number of decimal places applied to floating\-point attribute values\&. All attribute values written to the generated SVG file(s) are rounded accordingly\&. The parameter
+\fIdigits\fR
+allows integer values from 0 to 6, where 0 enables the automatic selection of significant decimal places\&. This is also the default value if dvisvgm is called without option
+\fB\-\-precision\fR\&.
+.RE
+.PP
+\fB\-P, \-\-progress\fR[=\fIdelay\fR]
+.RS 4
+Enables a simple progress indicator shown when time\-consuming operations like PostScript specials are processed\&. The indicator doesn\(cqt appear before the given delay (in seconds) has elapsed\&. The default delay value is 0\&.5 seconds\&.
+.RE
+.PP
+\fB\-r, \-\-rotate\fR=\fIangle\fR
+.RS 4
+Rotates the page content clockwise by
+\fIangle\fR
+degrees around the page center\&. This option is equivalent to
+\fB\-TR\fR\fIangle\fR\&.
+.RE
+.PP
+\fB\-s, \-\-stdout\fR
+.RS 4
+Don\(cqt write the SVG output to a file but redirect it to
+\fBstdout\fR\&.
+.RE
+.PP
+\fB\-T, \-\-transform\fR=\fIcommands\fR
+.RS 4
+Applies a sequence of transformations to the SVG content\&. Each transformation is described by a
+\fIcommand\fR
+beginning with a capital letter followed by a list of comma\-separated parameters\&. Following transformation commands are supported:
+.PP
+\fBT\fR \fItx\fR[,\fIty\fR]
+.RS 4
+Translates (moves) the page in direction of vector (\fItx\fR,\fIty\fR)\&. If
+\fIty\fR
+is omitted,
+\fIty\fR=0 is assumed\&. The expected unit length of
+\fItx\fR
+and
+\fIty\fR
+are TeX points (1pt = 1/72\&.27in)\&. However, there are several constants defined to simplify the unit conversion (see below)\&.
+.RE
+.PP
+\fBS\fR \fIsx\fR[,\fIsy\fR]
+.RS 4
+Scales the page horizontally by
+\fIsx\fR
+and vertically by
+\fIsy\fR\&. If
+\fIsy\fR
+is omitted,
+\fIsy\fR=\fIsx\fR
+is assumed\&.
+.RE
+.PP
+\fBR\fR \fIangle\fR[,\fIx\fR,\fIy\fR]
+.RS 4
+Rotates the page clockwise by
+\fIangle\fR
+degrees around point (\fIx\fR,\fIy\fR)\&. If the optional arguments
+\fIx\fR
+and
+\fIy\fR
+are omitted, the page will be rotated around its center depending on the chosen page format\&. When option
+\fB\-bnone\fR
+is given, the rotation center is origin (0,0)\&.
+.RE
+.PP
+\fBKX\fR \fIangle\fR
+.RS 4
+Skews the page along the
+\fIx\fR\-axis by
+\fIangle\fR
+degrees\&. Argument
+\fIangle\fR
+can take any value except 90+180\fIk\fR, where
+\fIk\fR
+is an integer\&.
+.RE
+.PP
+\fBKY\fR \fIangle\fR
+.RS 4
+Skews the page along the
+\fIy\fR\-axis by
+\fIangle\fR
+degrees\&. Argument
+\fIangle\fR
+can take any value except 90+180\fIk\fR, where
+\fIk\fR
+is an integer\&.
+.RE
+.PP
+\fBFH\fR [\fIy\fR]
+.RS 4
+Mirrors (flips) the page at the horizontal line through point (0,\fIy\fR)\&. Omitting the optional argument leads to
+\fIy\fR=\fIh\fR/2, where
+\fIh\fR
+denotes the page height (see
+\fIpre\-defined constants\fR
+below)\&.
+.RE
+.PP
+\fBFV\fR [\fIx\fR]
+.RS 4
+Mirrors (flips) the page at the vertical line through point (\fIx\fR,0)\&. Omitting the optional argument leads to
+\fIx\fR=\fIw\fR/2, where
+\fIw\fR
+denotes the page width (see
+\fIpre\-defined constants\fR
+below)\&.
+.RE
+.PP
+\fBM\fR \fIm1\fR,\&...,\fIm6\fR
+.RS 4
+Applies a transformation described by the 3\(mu3 matrix ((\fIm1\fR,\fIm2\fR,\fIm3\fR),(\fIm4\fR,\fIm5\fR,\fIm6\fR),(0,0,1)), where the inner triples denote the rows\&.
+.if n \{\
+.sp
+.\}
+.RS 4
+.it 1 an-trap
+.nr an-no-space-flag 1
+.nr an-break-flag 1
+.br
+.ps +1
+\fBNote\fR
+.ps -1
+.br
+All transformation commands of option
+\fB\-T, \-\-transform\fR
+are applied in the order of their appearance\&. Multiple commands can optionally be separated by spaces\&. In this case the whole transformation string has to be enclosed in double quotes\&. All parameters are expressions of floating point type\&. You can either give plain numbers or arithmetic terms combined by the operators
+\fB+\fR
+(addition),
+\fB\-\fR
+(subtraction),
+\fB*\fR
+(multiplication),
+\fB/\fR
+(division) or
+\fB%\fR
+(modulo) with common associativity and precedence rules\&. Parentheses may be used as well\&.
+.sp
+Additionally, some pre\-defined constants are provided:
+.TS
+tab(:);
+lt lt
+lt lt
+lt lt
+lt lt.
+T{
+\fBux\fR
+T}:T{
+horizontal position of upper left page corner in TeX point units
+T}
+T{
+\fBuy\fR
+T}:T{
+vertical position of upper left page corner in TeX point units
+T}
+T{
+\fBh\fR
+T}:T{
+page height in TeX point units (0 in case of
+\fB\-bnone\fR)
+T}
+T{
+\fBw\fR
+T}:T{
+page width in TeX point units (0 in case of
+\fB\-bnone\fR)
+T}
+.TE
+.sp 1
+Furthermore, you can use the length constants
+\fBpt\fR,
+\fBmm\fR,
+\fBcm\fR
+and
+\fBin\fR, e\&.g\&.
+2cm
+or
+1\&.6in\&. Thus, option
+\-TT1in,0R45
+moves the page content 1 inch to the right and rotates it by 45 degrees around the page center afterwards\&.
+.sp
+For single transformations you can also use options
+\fB\-c\fR,
+\fB\-t\fR
+and
+\fB\-r\fR\&. Note that the order in which these options are given is not significant, i\&.e\&. you can\(cqt use them to describe transformation sequences\&. They are simply independent shorthand options for common transformations\&.
+.sp .5v
+.RE
+.RE
+.RE
+.PP
+\fB\-t, \-\-translate\fR=\fItx\fR[,\fIty\fR]
+.RS 4
+Translates (moves) the page content in direction of vector (\fItx\fR,\fIty\fR)\&. This option is equivalent to
+\fB\-TT\fR\fItx\fR,\fIty\fR\&.
+.RE
+.PP
+\fB\-v, \-\-verbosity\fR=\fIlevel\fR
+.RS 4
+Controls the type of messages printed during a dvisvgm run:
+.TS
+tab(:);
+lt lt
+lt lt
+lt lt
+lt lt.
+T{
+\fB0\fR
+T}:T{
+no message output
+T}
+T{
+\fB1\fR
+T}:T{
+error messages only
+T}
+T{
+\fB2\fR
+T}:T{
+warning messages only
+T}
+T{
+\fB4\fR
+T}:T{
+informational messages only
+T}
+.TE
+.sp 1
+.if n \{\
+.sp
+.\}
+.RS 4
+.it 1 an-trap
+.nr an-no-space-flag 1
+.nr an-break-flag 1
+.br
+.ps +1
+\fBNote\fR
+.ps -1
+.br
+By adding these values you can combine the categories\&. The default level is 7, i\&.e\&. all messages are printed\&.
+.sp .5v
+.RE
+.RE
+.PP
+\fB\-V, \-\-version\fR[=\fIextended\fR]
+.RS 4
+Prints the version of dvisvgm and exits\&. If the optional argument is set to
+\fIyes\fR, the version numbers of the linked libraries are printed as well\&.
+.RE
+.PP
+\fB\-z, \-\-zip\fR[=\fIlevel\fR]
+.RS 4
+Creates a compressed SVG file with suffix \&.svgz\&. The optional argument specifies the compression level\&. Valid values are in the range of 1 to 9 (default value is 9)\&. Larger values cause better compression results but take more computation time\&.
+.if n \{\
+.sp
+.\}
+.RS 4
+.it 1 an-trap
+.nr an-no-space-flag 1
+.nr an-break-flag 1
+.br
+.ps +1
+\fBCaution\fR
+.ps -1
+.br
+This option cannot be combined with
+\fB\-s, \-\-stdout\fR\&.
+.sp .5v
+.RE
+.RE
+.SH "SUPPORT OF SPECIALS"
+.sp
+dvisvgm supports several sets of \fIspecial commands\fR that can be used to enrich DVI files with additional features, like color, graphics or hyperlinks\&. The evaluation of special commands is delegated to various handlers\&. Each handler is responsible for all special statements of the same command set, i\&.e\&. commands beginning with the same prefix\&. To get a list of actually provided special handlers, use option \fB\-\-list\-specials\fR (see above)\&.
+.PP
+\fBbgcolor\fR
+.RS 4
+Special statement for changing the background/page color\&. Since SVG 1\&.1 doesn\(cqt support background colors, dvisvgm inserts a rectangle of the chosen color into the generated SVG document\&. This rectangle always gets the same size as the selected or computed bounding box\&. This background color command is part of the color special set but is handled separately in order to let the user turn it off\&. For an overview of the command syntax, see the documentation of dvips, for instance\&.
+.RE
+.PP
+\fBcolor\fR
+.RS 4
+Statements of this command set provide instructions to change the text/paint color\&. For an overview of the exact syntax, see the documentation of dvips, for instance\&.
+.RE
+.PP
+\fBdvisvgm\fR
+.RS 4
+dvisvgm offers its own small set of specials\&. The following list gives a brief overview\&.
+.PP
+\fBdvisvgm:raw\fR \fItext\fR
+.RS 4
+Adds an arbitrary sequence of characters to the SVG output\&. dvisvgm does not perform any validation here, thus the user has to ensure that the resulting SVG is still valid\&. Parameter
+\fItext\fR
+may contain the macros
+\fB{?x}\fR,
+\fB{?y}\fR, and
+\fB{?color}\fR
+that are expanded to the current
+\fIx\fR
+or
+\fIy\fR
+coordinate and the current color, respectively\&. Also, macro
+\fB{?nl}\fR
+expands to a newline character\&.
+.RE
+.PP
+\fBdvisvgm:img\fR \fIwidth\fR \fIheight\fR \fIfile\fR
+.RS 4
+Creates an image element at the current graphic position referencing the given file\&. JPEG, PNG, and SVG images can be used here\&. However, dvisvgm does not check the file format or the file name suffix\&. The lengths
+\fIwidth\fR
+and
+\fIheight\fR
+must be given as plain floating point numbers in TeX point units (1in = 72\&.27pt)\&.
+.RE
+.PP
+\fBdvisvgm:bbox\fR n[ew] \fIname\fR
+.RS 4
+Defines or resets a local bounding box called
+\fIname\fR\&. The name may consist of letters and digits\&. While processing a DVI page, dvisvgm continuously updates the (global) bounding box of the current page in order to determine the minimal rectangle containing all visible page components (characters, images, drawing elements etc\&.) Additionally to the global bounding box, the user can request an arbitrary number of named local bounding boxes\&. Once defined, these boxes are updated together with the global bounding box starting with the first character that follows the definition\&. Thus, the local boxes can be used to compute the extent of parts of the page\&. This is useful for scenarios where the generated SVG file is post\-processed\&. In conjunction with special dvisvgm:raw, the macro
+\fB{?bbox \fR\fB\fIname\fR\fR\fB}\fR
+expands to the four values
+\fIx\fR,
+\fIy\fR,
+\fIw\fR, and
+\fIh\fR
+(separated by spaces) specifying the coordinates of the upper left corner, width, and height of the local box
+\fIname\fR\&. If box
+\fIname\fR
+wasn\(cqt previously defined, all four values equal zero\&.
+.RE
+.PP
+\fBdvisvgm:bbox\fR \fIwidth\fR \fIheight\fR [\fIdepth\fR]
+.RS 4
+Updates the bounding box of the current page by embedding a virtual rectangle (\fIx\fR,
+\fIy\fR,
+\fIwidth\fR,
+\fIheight\fR) where the lower left corner is located at the current DVI drawing position (\fIx\fR,\fIy\fR)\&. If the optional parameter
+\fIdepth\fR
+is specified, dvisvgm embeds a second rectangle (\fIx\fR,
+\fIy\fR,
+\fIwidth\fR, \-\fIdepth\fR)\&. The lengths
+\fIwidth\fR,
+\fIheight\fR
+and
+\fIdepth\fR
+must be given as plain floating point numbers in TeX point units (1in = 72\&.27pt)\&. Depending on size and position of the virtual rectangle, this command either enlarges the overall bounding box or leaves it as is\&. It\(cqs not possible to reduce its extent\&. This special should be used in conjunction with
+\fBdvisvgm:raw\fR
+in order to update the viewport of the page properly\&.
+.RE
+.PP
+\fBdvisvgm:bbox\fR a[bs] \fIx1\fR \fIy1\fR \fIx2\fR \fIy2\fR
+.RS 4
+This variant of the bbox special updates the bounding box by embedding a virtual rectangle (\fIx1\fR,\fIy1\fR,\fIx2\fR,\fIy2\fR)\&. The points (\fIx1\fR,\fIy1\fR) and (\fIx2\fR,\fIy2\fR) denote two diagonal corners of the rectangle given in TeX point units\&.
+.RE
+.PP
+\fBdvisvgm:bbox\fR f[ix] \fIx1\fR \fIy1\fR \fIx2\fR \fIy2\fR
+.RS 4
+This variant of the bbox special assigns an absolute (final) bounding box to the resulting SVG\&. After executing this command, dvisvgm doesn\(cqt further alter the bounding box coordinates, except this special is called again later\&. The points (\fIx1\fR,\fIy1\fR) and (\fIx2\fR,\fIy2\fR) denote two diagonal corners of the rectangle given in TeX point units\&.
+.sp
+The following TeX snippet adds two raw SVG elements to the output and updates the bounding box accordingly:
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+\especial{dvisvgm:raw <circle cx=\*(Aq{?x}\*(Aq cy=\*(Aq{?y}\*(Aq r=\*(Aq10\*(Aq stroke=\*(Aqblack\*(Aq fill=\*(Aqred\*(Aq/>}
+\especial{dvisvgm:bbox 20 10 10}
+
+\especial{dvisvgm:raw <path d=\*(AqM50 200 L10 250 H100 Z\*(Aq stroke=\*(Aqblack\*(Aq fill=\*(Aqblue\*(Aq/>}
+\especial{dvisvgm:bbox abs 10 200 100 250}
+.fi
+.if n \{\
+.RE
+.\}
+.RE
+.RE
+.PP
+\fBem\fR
+.RS 4
+These specials were introduced with the emTeX distribution by Eberhard Mattes\&. They provide line drawing statements, instructions for embedding MSP, PCX, and BMP image files, as well as two PCL commands\&. dvisvgm supports only the line drawing statements and ignores all other em specials silently\&. A description of the command syntax can be found in the DVI driver documentation coming with emTeX (see CTAN)\&.
+.RE
+.PP
+\fBpdf\fR
+.RS 4
+pdfTeX and dvipdfmx introduced several special commands related to the generation of PDF files\&. Currently, only two of them,
+\fIpdf:mapfile\fR
+and
+\fIpdf:mapline\fR
+are supported by dvisvgm\&. These specials allow modifying the font map tree during the processing of DVI files\&. They are used by CTeX, for example\&. dvisvgm supports both, the dvips and dvipdfm font map format\&. For further information on the command syntax and semantics, see the documentation of \epdfmapfile in the pdfTeX user manual\&.
+.RE
+.PP
+\fBps\fR
+.RS 4
+The famous DVI driver dvips introduced its own set of specials in order to embed PostScript code into DVI files, which greatly improves the capabilities of DVI documents\&. One aim of dvisvgm is to completely evaluate all PostScript snippets and to convert a large amount of it to SVG\&. However, in contrast to dvips, dvisvgm uses floating point arithmetics to compute the precise position of each graphic element, i\&.e\&. it doesn\(cqt round the coordinates\&. Therefore, the relative locations of the graphic elements may slightly differ from those computed by dvips\&.
+.sp
+Since PostScript is a rather complex language, dvisvgm does not try to implement its own PostScript interpreter but relies on Ghostscript instead\&. If the Ghostscript library was not linked while building dvisvgm, it is looked up and loaded dynamically during runtime\&. In this case, dvisvgm looks for
+\fIlibgs\&.so\fR
+on Unix\-like systems, and for
+\fIgsdll32\&.dll\fR
+or
+\fIgsdll64\&.dll\fR
+on Windows\&. You can override these default file names with environment variable
+LIBGS
+or the command\-line option
+\fB\-\-libgs\fR\&. The library must be installed and reachable through the ld search path (*nix) or the PATH environment variable (Windows)\&. If it cannot be found, the processing of PostScript specials is disabled\&. Use option
+\fB\-\-list\-specials\fR
+to check whether PS support is available, i\&.e\&. the entry
+\fIps\fR
+is present\&.
+.RE
+.PP
+\fBtpic\fR
+.RS 4
+The TPIC special set defines instructions for drawing simple geometric objects\&. Some LaTeX packages, like eepic and tplot, use these specials to describe graphics\&.
+.RE
+.SH "EXAMPLES"
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+dvisvgm file
+.fi
+.if n \{\
+.RE
+.\}
+.sp
+Converts the first page of \fIfile\&.dvi\fR to \fIfile\&.svg\fR\&.
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+dvisvgm \-z file
+.fi
+.if n \{\
+.RE
+.\}
+.sp
+Converts the first page of \fIfile\&.dvi\fR to \fIfile\&.svgz\fR with default compression level 9\&.
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+dvisvgm \-p5 \-z3 \-ba4\-l \-onewfile file
+.fi
+.if n \{\
+.RE
+.\}
+.sp
+Converts the fifth page of \fIfile\&.dvi\fR to \fInewfile\&.svgz\fR with compression level 3\&. The bounding box is set to DIN/ISO A4 in landscape format\&.
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+dvisvgm \-\-transform="R20,w/3,2h/5 T1cm,1cm S2,3" file
+.fi
+.if n \{\
+.RE
+.\}
+.sp
+Converts the first page of \fIfile\&.dvi\fR to \fIfile\&.svg\fR where three transformations are applied\&.
+.SH "ENVIRONMENT"
+.sp
+dvisvgm uses the \fBkpathsea\fR library for locating the files that it opens\&. Hence, the environment variables described in the library\(cqs documentation influence the converter\&.
+.sp
+If dvisvgm was linked without the Ghostscript library, and if PostScript support has not been disabled, the shared Ghostscript library is looked up during runtime via dlopen()\&. The environment variable LIBGS can be used to specify path and file name of the library\&.
+.sp
+The pre\-compiled Windows versions of dvisvgm require a working installation of MiKTeX 2\&.9 or above\&. dvisvgm does not work together with the portable edition of MiKTeX because it relies on MiKTeX\(cqs COM interface only accessible in a local installation\&. To enable the evaluation of PostScript specials, the original Ghostscript DLL \fIgsdll32\&.dll\fR must be present and reachable through the search path\&. 64\-bit Windows builds require the 64\-bit Ghostscript DLL \fIgsdll64\&.dll\fR\&. Both DLLs come with the corresponding Ghostscript installers available from www\&.ghostscript\&.com\&.
+.sp
+The environment variable DVISVGM_COLORS specifies the colors used to highlight various parts of dvisvgm\(cqs message output\&. It is only evaluated if option \fB\-\-color\fR is given\&. The value of DVISVGM_COLORS is a list of colon\-separated entries of the form \fIgg\fR=\fIBF\fR, where \fIgg\fR denotes one of the color group indicators listed below, and \fIBF\fR are two hexadecimal digits specifying the background (first digit) and foreground/text color (second digit)\&. The color color values are defined as follows: 0=black, 1=red, 2=green, 3=yellow, 4=blue, 5=magenta, 6=cyan, 7=gray, 8=bright red, 9=bright green, A=bright yellow, B=bright blue, C=bright magenta, D=bright cyan, E=bright gray, F=white\&. Depending on the terminal, the colors may differ\&. Rather than changing both the text and background color, it\(cqs also possible to change only one of them: An asterisk (*) in place of a hexadecimal digit indicates the default text or background color of the terminal\&.
+.sp
+All malformed entries in the list are silently ignored\&.
+.TS
+tab(:);
+lt lt
+lt lt
+lt lt
+lt lt
+lt lt
+lt lt
+lt lt
+lt lt.
+T{
+.sp
+\fBer\fR
+T}:T{
+.sp
+error messages
+T}
+T{
+.sp
+\fBwn\fR
+T}:T{
+.sp
+warning messages
+T}
+T{
+.sp
+\fBpn\fR
+T}:T{
+.sp
+messages about page numbers
+T}
+T{
+.sp
+\fBps\fR
+T}:T{
+.sp
+page size messages
+T}
+T{
+.sp
+\fBfw\fR
+T}:T{
+.sp
+information about the files written
+T}
+T{
+.sp
+\fBsm\fR
+T}:T{
+.sp
+state messages
+T}
+T{
+.sp
+\fBtr\fR
+T}:T{
+.sp
+messages of the glyph tracer
+T}
+T{
+.sp
+\fBpi\fR
+T}:T{
+.sp
+progress indicator
+T}
+.TE
+.sp 1
+.sp
+\fBExample:\fR er=01:pi=*5 sets the colors of error messages (er) to red (1) on black (0), and those of progress indicators (pi) to cyan (5) on default background (*)\&.
+.SH "FILES"
+.sp
+The location of the following files is determined by the kpathsea library\&. To check the actual kpathsea configuration you can use the \fBkpsewhich\fR utility\&.
+.TS
+tab(:);
+lt lt
+lt lt
+lt lt
+lt lt
+lt lt
+lt lt
+lt lt
+lt lt
+lt lt.
+T{
+.sp
+\fB*\&.enc\fR
+T}:T{
+.sp
+Font encoding files
+T}
+T{
+.sp
+\fB*\&.fgd\fR
+T}:T{
+.sp
+Font glyph data files (cache files created by dvisvgm)
+T}
+T{
+.sp
+\fB*\&.map\fR
+T}:T{
+.sp
+Font map files
+T}
+T{
+.sp
+\fB*\&.mf\fR
+T}:T{
+.sp
+Metafont input files
+T}
+T{
+.sp
+\fB*\&.pfb\fR
+T}:T{
+.sp
+PostScript Type 1 font files
+T}
+T{
+.sp
+\fB*\&.pro\fR
+T}:T{
+.sp
+PostScript header/prologue files
+T}
+T{
+.sp
+\fB*\&.tfm\fR
+T}:T{
+.sp
+TeX font metric files
+T}
+T{
+.sp
+\fB*\&.ttf\fR
+T}:T{
+.sp
+TrueType font files
+T}
+T{
+.sp
+\fB*\&.vf\fR
+T}:T{
+.sp
+Virtual font files
+T}
+.TE
+.sp 1
+.SH "SEE ALSO"
+.sp
+\fBtex(1), mf(1), mktexmf(1), grodvi(1), potrace(1)\fR, and the \fBkpathsea library\fR info documentation\&.
+.SH "RESOURCES"
+.PP
+Project home page
+.RS 4
+http://dvisvgm\&.sourceforge\&.net
+.RE
+.PP
+SourceForge project site
+.RS 4
+http://sourceforge\&.net/projects/dvisvgm
+.RE
+.SH "BUGS"
+.sp
+Please report bugs using the bug tracker at Launchpad (see https://launchpad\&.net/dvisvgm)\&.
+.SH "AUTHOR"
+.sp
+Written by Martin Gieseking <martin\&.gieseking@uos\&.de>
+.SH "COPYING"
+.sp
+Copyright \(co 2005\-2013 Martin Gieseking\&. Free use of this software is granted under the terms of the GNU General Public License (GPL) version 3 or, (at your option) any later version\&.
+.SH "AUTHOR"
+.PP
+\fBMartin Gieseking\fR <\&martin\&.gieseking@uos\&.de\&>
+.RS 4
+Author.
+.RE
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/doc/dvisvgm.txt.in b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/doc/dvisvgm.txt.in
new file mode 100644
index 00000000000..a09f37152e8
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/doc/dvisvgm.txt.in
@@ -0,0 +1,629 @@
+//////////////////////////////////////////////////////////////////////////
+// This file is part of dvisvgm -- the DVI to SVG converter //
+// Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> //
+// //
+// This program is free software; you can redistribute it and/or //
+// modify it under the terms of the GNU General Public License as //
+// published by the Free Software Foundation; either version 3 of //
+// the License, or (at your option) any later version. //
+// //
+// This program is distributed in the hope that it will be useful, but //
+// WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
+// GNU General Public License for more details. //
+// //
+// You should have received a copy of the GNU General Public License //
+// along with this program; if not, see <http://www.gnu.org/licenses/>. //
+//////////////////////////////////////////////////////////////////////////
+
+dvisvgm(1)
+==========
+Martin Gieseking <@PACKAGE_BUGREPORT@>
+:man source: dvisvgm
+:man version: @VERSION@
+:man manual: dvisvgm Manual
+
+NAME
+----
+dvisvgm - converts DVI files to the XML-based SVG format
+
+
+SYNOPSIS
+--------
+*dvisvgm* [ 'options' ] 'file' [.dvi]
+
+*dvisvgm* -E [ 'options' ] 'file' [.eps]
+
+
+DESCRIPTION
+-----------
+The command-line utility *dvisvgm* converts DVI files, as generated by TeX/LaTeX, to the
+XML-based scalable vector graphics format SVG. Since the current SVG standard 1.1 doesn't
+specify multi-page graphics, dvisvgm creates separate SVG files for each DVI page.
+Because of compatibility reasons, only the first page is converted by default. In order
+to select a different page or arbitrary page sequences, use option *-p* which is described below.
+
+dvisvgm should properly convert all pages that are made up of fonts and rules only.
+However, the utility also supports a couple of DVI extensions defined in terms of 'DVI specials'.
+For a more detailed overview, see section *support of specials* below.
+
+As SVG is a vector based graphics format, dvisvgm tries to convert the glyph
+outlines of all used fonts into scalable path descriptions. The fastest way to do that
+is to extract the path information from PFB (PostScript Type 1) files. So, if dvisvgm is able
+to find a PFB file for a required font, it will read the necessary information from this file.
+
+TeX's main source for font descriptions is Metafont though, which produces bitmap output. That's why
+not all obtainable TeX fonts are available in PFB format. In these cases, dvisvgm tries
+to vectorize Metafont's output (GF fonts) by tracing the glyph bitmaps. The results are not
+as perfect as most (manually optimized) PFB outlines but are nonetheless really nice in most cases.
+
+
+OPTIONS
+-------
+*-a, --trace-all*=['retrace']::
+This option forces dvisvgm to trace not only the actually needed glyphs but all
+glyphs of all bitmap fonts used in the DVI file. Since the tracing results are stored in
+the font cache, all following DVI conversions (without option *--trace-all*) where these
+fonts are involved, will be much faster. By default, dvisvgm traces only the actually
+needed glyphs, and adds them to the cache.
+The boolean option 'retrace' determines how to handle glyphs already stored in the cache.
+By default, these glyphs are skipped. Setting argument 'retrace' to 'yes' or
+'true' forces dvisvgm to trace the corresponding bitmaps again.
++
+[NOTE]
+This option only takes affect if font caching is active. Thus, *--trace-all* cannot be
+combined with option *--cache=none*.
++
+
+
+*-b, --bbox*='fmt'::
+Sets the bounding box of the generated graphic to the specified format. The parameter 'fmt'
+takes either one of the format specifiers listed below, or a sequence of four comma- or
+whitespace-separated length values 'x1', 'y1', 'x2' and 'y2'. The latter define two diagonal
+corners of the bounding box. Each length value consists of a floating point number and an optional
+length unit (pt, bp, cm, mm, in, or pc). If the unit is omitted, TeX points (pt) are assumed.
++
+It's also possible to give only one length value 'l'. In this case, the minimal bounding box
+is computed and enlarged by adding (-'l',-'l') to the upper left and ('l','l') to the lower
+right corner.
++
+Alternatively, the following format specifiers are supported:
+
+ *International DIN/ISO paper sizes*;;
+ A__n__, B__n__, C__n__, D__n__, where 'n' is a non-negative integer, e.g. A4 or a4 for DIN/ISO A4
+ format (210mm &#215; 297mm).
+
+ *North American paper sizes*;;
+ invoice, executive, legal, letter, ledger
+
+ *Special bounding box sizes*;;
+[horizontal]
+ *dvi*::: page size stored in the DVI file
+ *min*::: computes the minimal/tightest bounding box
+ *none*::: no bounding box is assigned
+
+//
+ *Page orientation*;;
+ The default page orientation for DIN/ISO and American paper sizes is 'portrait',
+ i.e. 'width' < 'height'. Appending *-landscape* or simply *-l* to the format
+ string switches to 'landscape' mode ('width' > 'height'). For symmetry reasons you can
+ also explicitly add *-portrait* or *-p* to indicate the default portrait format.
+ Note that these suffixes are part of the size string and not separate options. Thus,
+ they must directly follow the size specifier without additional blanks.
+ Furthermore, the orientation suffixes can't be used with *dvi*, *min*, and *none*.
++
+[NOTE]
+Option *-b, --bbox* only affects the bounding box and does not transform the page content.
+Hence, if you choose a landscape format, the page won't be rotated.
++
+//
+
+//
+*-C, --cache*[='dir']::
+To speed up the conversion process of bitmap fonts, dvisvgm saves intermediate conversion
+information in cache files. By default, these files are stored in $HOME/.dvisvgm/cache. If you prefer
+a different location, use option *--cache* to overwrite the default. Furthermore, it is also possible
+to disable the font caching mechanism completely with option *--cache=none*. If argument 'dir' is omitted,
+dvisvgm prints the path of the default cache directory and some information about the stored fonts.
+Additionally, outdated and corrupted cache files are removed.
+
+
+*--color*::
+Enables colorization of messages printed during the conversion process. The colors can be customized
+via the environment variable +DVISVGM_COLORS+. See the ENVIRONMENT section below for further information.
+
+
+*-E, --eps*::
+If this option is given, dvisvgm does not expect a DVI but an EPS input file, and tries to convert
+it to SVG. In order to do so, a single 'psfile' special command is created and forwarded to the
+PostScript special handler.
+This option is only available if dvisvgm was built with PostScript support enabled, and requires
+Ghostscript to be available. See option *--libgs* for further information.
+
+
+*-e, --exact*::
+If this option is given, dvisvgm computes the precise bounding box of each character. By default,
+the values stored in a font's TFM file are used to determine a glyph's extent. As these values are
+intended to realize optimal character placements and are not designed to represent the exact dimensions,
+they don't necessarily correspond with the bounds of the visual glyphs. Thus, width and/or height
+of some glyphs may be larger than the respective TFM values. As a result, this can lead to clipped
+characters at the bounds of the SVG graphic. With option *--exact*, dvisvgm analyzes the actual shape
+of each character and derives a usually tight bounding box.
+
+
+*-m, --fontmap*='filenames'::
+Loads and evaluates a single or multiple font map files. These files are required to resolve
+font file names and encodings. dvisvgm does not provide its own map file but tries to read
+available ones coming with dvips or dvipdfm. If option *--fonrmapm* is not given, dvisvgm looks for the
+default map files +ps2pk.map+, +dvipdfm.map+, and +psfonts.map+ (in this order). Otherwise, the
+listed files are used. Multiple filenames must be separated by commas without leading and/or trailing
+whitespace.
+The map files are evaluated in the given order. By default, redefined mappings do not replace previous ones.
+However, each filename can be preceded by an optional mode specifier (*+*, *-*, or *=*) to change this behavior:
+
+ +mapfile;;
+ Only those entries in the given map file that don't redefine a font mapping are applied.
+ That's also the default mode if no mode specifier is given.
+
+ -mapfile;;
+ Ensures that none of the font mappings defined in the given map file are used, i.e. previously
+ defined mappings for the specified fonts are removed.
+
+ =mapfile;;
+ All mappings defined in the map file are applied. Previously defined settings for the same font
+ are replaced.
++
+If the first filename in the filename sequence is preceded by a mode specifier, dvisvgm loads the
+default font map (see above) and applies the other map files afterwards. Otherwise, none of default
+map files will be loaded automatically.
++
+Examples: *--fontmap=myfile1.map,+myfile2.map* loads `myfile1.map` followed by `myfile2.map` where all
+redefinitions of `myfile2.map` are ignored.
+*--fontmap==myfile1.map,-myfile2.map* loads the default map file followed by `myfile1.map` and `myfile2.map`
+where all redefinitions of `myfile1.map` replace previous entries. Afterwards, all definitions for the fonts
+given in `myfile2.map` are removed again.
++
+For further information about the map file formats, see the manuals of dvips and dvipdfm.
+
+
+*-h, --help*[='mode']::
+Prints a short summary of all available command-line options. The optional 'mode' parameter is
+an integer value between 0 and 2. It selects the display variant of the help text. Mode 0
+lists all options divided into categories with section headers. This is also the default if
+dvisvgm is called without parameters. Mode 1 lists all options ordered by the short option name,
+while mode 2 sorts the lines by the long option name.
+
+
+*--keep*::
+Disables the removal of temporary files as created by Metafont (usually .gf, .tfm, and .log files).
+
+
+*--libgs*='filename'::
+This option is only available if the Ghostscript library is not directly linked to dvisvgm and if
+PostScript support was not completely disabled during compilation. In this case, dvisvgm tries
+to load the shared GS library dynamically during runtime. By default, it expects the library's name
+to be libgs.so (on Unix-like systems) or gsdll32.dll/gsdll64.dll (Windows). Option *--libgs* can be
+used to give a different name. Alternatively, it's also possible to set the GS library name by the
+environment variable +LIBGS+. The latter has less precedence than the command-line option.
+
+
+*-l, --list-specials*::
+Prints a list of registered special handlers and exits. Each handler processes a set of special
+statements belonging to the same category. In most cases, the categories are identified by the
+prefix of the special statements. It's usually a leading word separated from the rest of the
+statement by a colon or a blank, e.g. 'color' or 'ps'.
+
+
+*-M, --mag*='factor'::
+Sets the magnification factor applied in conjunction with Metafont calls prior tracing the glyphs.
+The larger this value, the better the tracing results. Nevertheless, large magnification values
+can cause Metafont arithmetic errors due to number overflows. So, use this option with care.
+The default setting usually produces nice results.
+
+
+*--no-mktexmf*::
+Suppresses the generation of missing font files. If dvisvgm can't find a font file
+through the kpathsea lookup mechanism, it calls the external tools mktextfm or mktexmf by.
+This option disables these calls.
+
+
+*-n, --no-fonts*[='variant']::
+If this option is given, dvisvgm doesn't create SVG 'font' elements but uses 'paths' instead. The
+resulting SVG files tends to be larger but concurrently more compatible with most applications that
+don't support SVG fonts yet. The optional argument 'variant' selects the method how to substitute fonts
+by paths. Variant 0 creates 'path' and 'use' elements. Variant 1 creates 'path' elements only.
+Option *--no-fonts* implies *--no-styles*.
+
+
+*-c, --scale*='sx'[,'sy']::
+Scales the page content horizontally by 'sx' and vertically by 'sy'. This option is equivalent
+to *-TS*'sx','sy'.
+
+
+*-S, --no-specials*[='names']::
+Disable processing of special commands embedded in the DVI file. If no further
+parameter is given, all specials are ignored. To selectively disable sets of specials,
+an optional comma-separated list of names can be appended to this option. A 'name' is the unique
+identifier referencing the intended special handler. Option *--list-specials* lists all currently
+available handlers and their names.
+All unsupported special statements are silently ignored.
+
+
+*--no-styles*::
+By default, dvisvgm creates CSS styles and class attributes to reference fonts because it's more
+compact than repeatedly set the complete font information in each text element. However, if you
+prefer direct font references, the default behavior can be disabled with option *--no-styles*.
+
+
+*-o, --output*='pattern'::
+Sets the name pattern of the output file. Parameter 'pattern' is a string that may
+contain the variables *%f* and *%p*. *%f* stands for the base name of the DVI file, i.e.
+the DVI filename without suffix, and *%p* is the current page number.
+The default pattern is *%f-%p.svg* if the DVI file consists of more than one page, and
+*%f.svg* otherwise. That means, a DVI file 'foo.dvi' is converted to 'foo.svg' if 'foo.dvi'
+is a single-page document. Otherwise, multiple SVG files 'foo-01.svg', 'foo-02.svg', etc. are
+produced. In Windows environments, the percent sign indicates dereferenced environment
+variables, and must therefore be protected by a second percent sign, e.g. *--output=%%f-%%p*.
+
+
+*-p, --page*='ranges'::
+This option sets the pages to be processed. Parameter 'ranges' consists of a comma-separated list
+of single page numbers and/or page ranges. A page range is a pair of numbers separated by a hyphen,
+e.g. 5-12. Thus, a page sequence might look like this: 2-4,6,9-12,15. It doesn't matter if a page
+is given more than once or if page ranges overlap. dvisvgm always extracts the page numbers in
+ascending order and converts them only once.
+In order to stay compatible with previous versions, the default page sequence is 1. dvisvgm
+therefore converts only the first page and not the whole document in case option *--page* is omitted.
+Usually, page ranges consist of two numbers denoting the first and last page to be converted.
+If the conversion is to be started at page 1, or if it should continue up to the last DVI page, the
+first or second range number can be omitted, respectively. Example: *--page=-10* converts all
+pages up to page 10, *--page=10-* converts all pages starting with page 10.
+Please consider that the page values don't refer to the page numbers printed on the page.
+Instead, the physical page count is expected, where the first page always gets number 1.
+
+
+*-d, --precision*='digits'::
+Specifies the maximal number of decimal places applied to floating-point attribute values.
+All attribute values written to the generated SVG file(s) are rounded accordingly. The
+parameter 'digits' allows integer values from 0 to 6, where 0 enables the automatic selection
+of significant decimal places. This is also the default value if dvisvgm is called without
+option *--precision*.
+
+
+*-P, --progress*[='delay']::
+Enables a simple progress indicator shown when time-consuming operations like
+PostScript specials are processed. The indicator doesn't appear before the given
+delay (in seconds) has elapsed. The default delay value is 0.5 seconds.
+
+
+*-r, --rotate*='angle'::
+Rotates the page content clockwise by 'angle' degrees around the page center.
+This option is equivalent to *-TR*'angle'.
+
+
+*-s, --stdout*::
+Don't write the SVG output to a file but redirect it to *stdout*.
+
+
+*-T, --transform*='commands'::
+Applies a sequence of transformations to the SVG content. Each transformation is described
+by a 'command' beginning with a capital letter followed by a list of comma-separated
+parameters. Following transformation commands are supported:
+
+ *T* 'tx'[,'ty'];;
+ Translates (moves) the page in direction of vector ('tx','ty'). If 'ty' is omitted,
+ 'ty'=0 is assumed.
+ The expected unit length of 'tx' and 'ty' are TeX points (1pt = 1/72.27in). However, there
+ are several constants defined to simplify the unit conversion (see below).
+
+ *S* 'sx'[,'sy'];;
+ Scales the page horizontally by 'sx' and vertically by 'sy'. If 'sy' is omitted,
+ 'sy'='sx' is assumed.
+
+ *R* 'angle'[,'x','y'];;
+ Rotates the page clockwise by 'angle' degrees around point ('x','y'). If the optional
+ arguments 'x' and 'y' are omitted, the page will be rotated around its center depending on
+ the chosen page format. When option *-bnone* is given, the rotation center is origin (0,0).
+
+ *KX* 'angle';;
+ Skews the page along the 'x'-axis by 'angle' degrees. Argument 'angle' can take any value
+ except 90+180__k__, where 'k' is an integer.
+
+ *KY* 'angle';;
+ Skews the page along the 'y'-axis by 'angle' degrees. Argument 'angle' can take any value
+ except 90+180__k__, where 'k' is an integer.
+
+ *FH* ['y'];;
+ Mirrors (flips) the page at the horizontal line through point (0,'y'). Omitting the optional argument
+ leads to 'y'='h'/2, where 'h' denotes the page height (see 'pre-defined constants' below).
+
+ *FV* ['x'];;
+ Mirrors (flips) the page at the vertical line through point ('x',0). Omitting the optional argument
+ leads to 'x'='w'/2, where 'w' denotes the page width (see 'pre-defined constants' below).
+
+ *M* 'm1',...,'m6';;
+ Applies a transformation described by the 3&#215;3 matrix
+ \(('m1','m2','m3'),('m4','m5','m6'),(0,0,1)), where the inner triples denote
+ the rows.
++
+[NOTE]
+=================================================================================================
+All transformation commands of option *-T, --transform* are applied in the order of their appearance.
+Multiple commands can optionally be separated by spaces. In this case the whole transformation string
+has to be enclosed in double quotes. All parameters are expressions of floating point type. You can either
+give plain numbers or arithmetic terms combined by the operators *+* (addition), *-* (subtraction),
+*** (multiplication), */* (division) or *%* (modulo) with common associativity and
+precedence rules. Parentheses may be used as well.
+
+Additionally, some pre-defined constants are provided:
+
+[horizontal]
+*ux*:: horizontal position of upper left page corner in TeX point units
+*uy*:: vertical position of upper left page corner in TeX point units
+*h*:: page height in TeX point units (0 in case of *-bnone*)
+*w*:: page width in TeX point units (0 in case of *-bnone*)
+
+Furthermore, you can use the length constants *pt*, *mm*, *cm* and *in*, e.g.
++2cm+ or +1.6in+. Thus, option +-TT1in,0R45+ moves the page content 1 inch to the right and rotates it
+by 45 degrees around the page center afterwards.
+
+For single transformations you can also use options *-c*, *-t* and *-r*. Note that
+the order in which these options are given is not significant, i.e. you can't use them to describe
+transformation sequences. They are simply independent shorthand options for common transformations.
+
+=================================================================================================
++
+//
+
+//
+*-t, --translate*='tx'[,'ty']::
+Translates (moves) the page content in direction of vector ('tx','ty'). This option is
+equivalent to *-TT*'tx','ty'.
+
+
+*-v, --verbosity*='level'::
+Controls the type of messages printed during a dvisvgm run:
+[horizontal]
+ *0*;; no message output
+ *1*;; error messages only
+ *2*;; warning messages only
+ *4*;; informational messages only
+
++
+[NOTE]
+By adding these values you can combine the categories. The default level is 7, i.e. all
+messages are printed.
++
+
+
+*-V, --version*[='extended']::
+Prints the version of dvisvgm and exits. If the optional argument is set to 'yes', the
+version numbers of the linked libraries are printed as well.
+
+
+*-z, --zip*[='level']::
+Creates a compressed SVG file with suffix .svgz. The optional argument specifies the compression
+level. Valid values are in the range of 1 to 9 (default value is 9). Larger values cause better
+compression results but take more computation time.
++
+CAUTION: This option cannot be combined with *-s, --stdout*.
+
+
+SUPPORT OF SPECIALS
+-------------------
+dvisvgm supports several sets of 'special commands' that can be used to enrich DVI files with additional
+features, like color, graphics or hyperlinks. The evaluation of special commands is delegated to various handlers.
+Each handler is responsible for all special statements of the same command set, i.e. commands beginning
+with the same prefix. To get a list of actually provided special handlers, use option *--list-specials* (see above).
+
+*bgcolor*::
+Special statement for changing the background/page color. Since SVG 1.1 doesn't support background colors,
+dvisvgm inserts a rectangle of the chosen color into the generated SVG document. This rectangle always gets
+the same size as the selected or computed bounding box. This background color command is part of the color
+special set but is handled separately in order to let the user turn it off. For an overview of the command
+syntax, see the documentation of dvips, for instance.
+
+*color*::
+Statements of this command set provide instructions to change the text/paint color. For an overview of the
+exact syntax, see the documentation of dvips, for instance.
+
+*dvisvgm*::
+dvisvgm offers its own small set of specials. The following list gives a brief overview.
+ *dvisvgm:raw* 'text';;
+ Adds an arbitrary sequence of characters to the SVG output. dvisvgm does not perform any validation here,
+ thus the user has to ensure that the resulting SVG is still valid. Parameter 'text' may
+ contain the macros *{?x}*, *{?y}*, and *{?color}* that are expanded to the current 'x' or 'y' coordinate
+ and the current color, respectively. Also, macro *{?nl}* expands to a newline character.
+
+ *dvisvgm:img* 'width' 'height' 'file';;
+ Creates an image element at the current graphic position referencing the given file. JPEG, PNG, and SVG images
+ can be used here. However, dvisvgm does not check the file format or the file name suffix. The lengths 'width'
+ and 'height' must be given as plain floating point numbers in TeX point units (1in = 72.27pt).
+
+ *dvisvgm:bbox* n[ew] 'name';;
+ Defines or resets a local bounding box called 'name'. The name may consist of letters and digits.
+ While processing a DVI page, dvisvgm continuously updates the (global) bounding box of the current page in order to
+ determine the minimal rectangle containing all visible page components (characters, images, drawing elements etc.)
+ Additionally to the global bounding box, the user can request an arbitrary number of named local bounding boxes.
+ Once defined, these boxes are updated together with the global bounding box starting with the first character that
+ follows the definition. Thus, the local boxes can be used to compute the extent of parts of the page. This is useful
+ for scenarios where the generated SVG file is post-processed.
+ In conjunction with special dvisvgm:raw, the macro *{?bbox 'name'}* expands to the four values 'x', 'y', 'w', and 'h'
+ (separated by spaces) specifying the coordinates of the upper left corner, width, and height of the local box 'name'.
+ If box 'name' wasn't previously defined, all four values equal zero.
+
+ *dvisvgm:bbox* 'width' 'height' ['depth'];;
+ Updates the bounding box of the current page by embedding a virtual rectangle ('x', 'y', 'width', 'height')
+ where the lower left corner is located at the current DVI drawing position ('x','y'). If the optional parameter 'depth'
+ is specified, dvisvgm embeds a second rectangle ('x', 'y', 'width', -__depth__). The lengths 'width', 'height' and
+ 'depth' must be given as plain floating point numbers in TeX point units (1in = 72.27pt). Depending on size and position
+ of the virtual rectangle, this command either enlarges the overall bounding box or leaves it as is. It's not possible
+ to reduce its extent. This special should be used in conjunction with *dvisvgm:raw* in order to update the viewport
+ of the page properly.
+
+ *dvisvgm:bbox* a[bs] 'x1' 'y1' 'x2' 'y2';;
+ This variant of the bbox special updates the bounding box by embedding a virtual rectangle ('x1','y1','x2','y2').
+ The points ('x1','y1') and ('x2','y2') denote two diagonal corners of the rectangle given in TeX point units.
+
+ *dvisvgm:bbox* f[ix] 'x1' 'y1' 'x2' 'y2';;
+ This variant of the bbox special assigns an absolute (final) bounding box to the resulting SVG. After executing
+ this command, dvisvgm doesn't further alter the bounding box coordinates, except this special is called again later.
+ The points ('x1','y1') and ('x2','y2') denote two diagonal corners of the rectangle given in TeX point units.
++
+The following TeX snippet adds two raw SVG elements to the output and updates the bounding box accordingly:
++
+------------------------------------------------------------------------------------
+\special{dvisvgm:raw <circle cx='{?x}' cy='{?y}' r='10' stroke='black' fill='red'/>}
+\special{dvisvgm:bbox 20 10 10}
+
+\special{dvisvgm:raw <path d='M50 200 L10 250 H100 Z' stroke='black' fill='blue'/>}
+\special{dvisvgm:bbox abs 10 200 100 250}
+------------------------------------------------------------------------------------
++
+
+*em*::
+These specials were introduced with the emTeX distribution by Eberhard Mattes. They provide line drawing
+statements, instructions for embedding MSP, PCX, and BMP image files, as well as two PCL commands.
+dvisvgm supports only the line drawing statements and ignores all other em specials silently.
+A description of the command syntax can be found in the DVI driver documentation coming with emTeX (see CTAN).
+
+// *html*::
+// The hyperref package uses a set of HTML anchor tags to indicate hyperlinks in DVI files.
+// dvisvgm converts them to corresponding SVG elements.
+
+*pdf*::
+pdfTeX and dvipdfmx introduced several special commands related to the generation of PDF files. Currently, only
+two of them, 'pdf:mapfile' and 'pdf:mapline' are supported by dvisvgm. These specials allow modifying the font map
+tree during the processing of DVI files. They are used by CTeX, for example. dvisvgm supports both, the dvips and
+dvipdfm font map format. For further information on the command syntax and semantics, see the documentation of
+\pdfmapfile in the pdfTeX user manual.
+
+*ps*::
+The famous DVI driver dvips introduced its own set of specials in order to embed PostScript code into DVI files,
+which greatly improves the capabilities of DVI documents. One aim of dvisvgm is to completely evaluate all
+PostScript snippets and to convert a large amount of it to SVG. However, in contrast to dvips, dvisvgm uses floating point
+arithmetics to compute the precise position of each graphic element, i.e. it doesn't round the coordinates. Therefore,
+the relative locations of the graphic elements may slightly differ from those computed by dvips.
++
+Since PostScript is a rather complex language, dvisvgm does not try to implement its own PostScript interpreter but relies on
+Ghostscript instead. If the Ghostscript library was not linked while building dvisvgm, it is looked up and loaded dynamically
+during runtime. In this case, dvisvgm looks for 'libgs.so' on Unix-like systems, and for 'gsdll32.dll' or 'gsdll64.dll' on Windows.
+You can override these default file names with environment variable +LIBGS+ or the command-line option *--libgs*.
+The library must be installed and reachable through the ld search path (\*nix) or the PATH environment
+variable (Windows). If it cannot be found, the processing of PostScript specials is disabled.
+Use option *--list-specials* to check whether PS support is available, i.e. the entry 'ps' is present.
+
+*tpic*::
+The TPIC special set defines instructions for drawing simple geometric objects. Some LaTeX packages, like
+eepic and tplot, use these specials to describe graphics.
+
+
+EXAMPLES
+--------
+--------------
+dvisvgm file
+--------------
+Converts the first page of 'file.dvi' to 'file.svg'.
+
+---------------
+dvisvgm -z file
+---------------
+Converts the first page of 'file.dvi' to 'file.svgz' with default compression level 9.
+
+-------------------------------------
+dvisvgm -p5 -z3 -ba4-l -onewfile file
+-------------------------------------
+Converts the fifth page of 'file.dvi' to 'newfile.svgz' with compression level 3.
+The bounding box is set to DIN/ISO A4 in landscape format.
+
+-----------------------------------------------------
+dvisvgm --transform="R20,w/3,2h/5 T1cm,1cm S2,3" file
+-----------------------------------------------------
+Converts the first page of 'file.dvi' to 'file.svg' where three transformations are applied.
+
+
+ENVIRONMENT
+-----------
+dvisvgm uses the *kpathsea* library for locating the files that it opens.
+Hence, the environment variables described in the library's documentation influence the converter.
+
+If dvisvgm was linked without the Ghostscript library, and if PostScript support has not been disabled,
+the shared Ghostscript library is looked up during runtime via dlopen(). The environment variable +LIBGS+
+can be used to specify path and file name of the library.
+
+The pre-compiled Windows versions of dvisvgm require a working installation of MiKTeX 2.9 or above.
+dvisvgm does not work together with the portable edition of MiKTeX because it relies on MiKTeX's COM
+interface only accessible in a local installation.
+To enable the evaluation of PostScript specials, the original Ghostscript DLL 'gsdll32.dll' must be present
+and reachable through the search path. 64-bit Windows builds require the 64-bit Ghostscript DLL 'gsdll64.dll'.
+Both DLLs come with the corresponding Ghostscript installers available from www.ghostscript.com.
+
+The environment variable +DVISVGM_COLORS+ specifies the colors used to highlight various parts of dvisvgm's
+message output. It is only evaluated if option *--color* is given. The value of +DVISVGM_COLORS+ is a list of
+colon-separated entries of the form 'gg'='BF', where 'gg' denotes one of the color group indicators listed
+below, and 'BF' are two hexadecimal digits specifying the background (first digit) and foreground/text color
+(second digit). The color color values are defined as follows: 0=black, 1=red, 2=green, 3=yellow, 4=blue,
+5=magenta, 6=cyan, 7=gray, 8=bright red, 9=bright green, A=bright yellow, B=bright blue, C=bright magenta,
+D=bright cyan, E=bright gray, F=white. Depending on the terminal, the colors may differ. Rather than changing
+both the text and background color, it's also possible to change only one of them: An asterisk (*) in
+place of a hexadecimal digit indicates the default text or background color of the terminal.
+
+All malformed entries in the list are silently ignored.
+
+[horizontal]
+*er*:: error messages
+*wn*:: warning messages
+*pn*:: messages about page numbers
+*ps*:: page size messages
+*fw*:: information about the files written
+*sm*:: state messages
+*tr*:: messages of the glyph tracer
+*pi*:: progress indicator
+
+*Example:* +er=01:pi=\*5+ sets the colors of error messages (+er+) to red (+1+) on black (+0+), and those
+of progress indicators (+pi+) to cyan (+5+) on default background (+*+).
+
+FILES
+-----
+The location of the following files is determined by the kpathsea library.
+To check the actual kpathsea configuration you can use the *kpsewhich* utility.
+
+[horizontal]
+**.enc*:: Font encoding files
+**.fgd*:: Font glyph data files (cache files created by dvisvgm)
+**.map*:: Font map files
+**.mf*:: Metafont input files
+**.pfb*:: PostScript Type 1 font files
+**.pro*:: PostScript header/prologue files
+**.tfm*:: TeX font metric files
+**.ttf*:: TrueType font files
+**.vf*:: Virtual font files
+
+SEE ALSO
+--------
+*tex(1), mf(1), mktexmf(1), grodvi(1), potrace(1)*, and the *kpathsea library* info documentation.
+
+
+RESOURCES
+---------
+Project home page::: http://dvisvgm.sourceforge.net
+SourceForge project site::: http://sourceforge.net/projects/dvisvgm
+
+
+BUGS
+----
+Please report bugs using the bug tracker at Launchpad (see https://launchpad.net/dvisvgm).
+
+
+AUTHOR
+------
+Written by {author} <{email}>
+
+
+COPYING
+-------
+Copyright (C) 2005-2013 Martin Gieseking. Free use of this software is
+granted under the terms of the GNU General Public License (GPL) version 3
+or, (at your option) any later version.
+
+// vim: set syntax=asciidoc:
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/Makefile.am b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/Makefile.am
new file mode 100644
index 00000000000..97bf78f50f4
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/Makefile.am
@@ -0,0 +1,13 @@
+VERSION=1.8
+noinst_LIBRARIES = libpotrace.a
+libpotrace_a_SOURCES = curve.c curve.h trace.c trace.h decompose.c \
+ decompose.h potracelib.c potracelib.h lists.h auxiliary.h bitmap.h \
+ progress.h
+
+curve.o: potracelib.h lists.h curve.h auxiliary.h
+decompose.o: potracelib.h curve.h auxiliary.h lists.h bitmap.h decompose.h
+decompose.o: progress.h
+potracelib.o: potracelib.h curve.h auxiliary.h decompose.h progress.h trace.h
+potracelib.o: ../config.h
+trace.o: potracelib.h curve.h auxiliary.h lists.h trace.h progress.h
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/auxiliary.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/auxiliary.h
new file mode 100644
index 00000000000..c4c610cd4ef
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/auxiliary.h
@@ -0,0 +1,78 @@
+/* Copyright (C) 2001-2013 Peter Selinger.
+ This file is part of Potrace. It is free software and it is covered
+ by the GNU General Public License. See the file COPYING for details. */
+
+/* This header file collects some general-purpose macros (and static
+ inline functions) that are used in various places. */
+
+#ifndef AUXILIARY_H
+#define AUXILIARY_H
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+/* ---------------------------------------------------------------------- */
+/* point arithmetic */
+
+#include "potracelib.h"
+
+struct point_s {
+ long x;
+ long y;
+};
+typedef struct point_s point_t;
+
+typedef potrace_dpoint_t dpoint_t;
+
+/* convert point_t to dpoint_t */
+static inline dpoint_t dpoint(point_t p) {
+ dpoint_t res;
+ res.x = p.x;
+ res.y = p.y;
+ return res;
+}
+
+/* range over the straight line segment [a,b] when lambda ranges over [0,1] */
+static inline dpoint_t interval(double lambda, dpoint_t a, dpoint_t b) {
+ dpoint_t res;
+
+ res.x = a.x + lambda * (b.x - a.x);
+ res.y = a.y + lambda * (b.y - a.y);
+ return res;
+}
+
+/* ---------------------------------------------------------------------- */
+/* some useful macros. Note: the "mod" macro works correctly for
+ negative a. Also note that the test for a>=n, while redundant,
+ speeds up the mod function by 70% in the average case (significant
+ since the program spends about 16% of its time here - or 40%
+ without the test). The "floordiv" macro returns the largest integer
+ <= a/n, and again this works correctly for negative a, as long as
+ a,n are integers and n>0. */
+
+/* integer arithmetic */
+
+static inline int mod(int a, int n) {
+ return a>=n ? a%n : a>=0 ? a : n-1-(-1-a)%n;
+}
+
+static inline int floordiv(int a, int n) {
+ return a>=0 ? a/n : -1-(-1-a)/n;
+}
+
+/* Note: the following work for integers and other numeric types. */
+#undef sign
+#undef abs
+#undef min
+#undef max
+#undef sq
+#undef cu
+#define sign(x) ((x)>0 ? 1 : (x)<0 ? -1 : 0)
+#define abs(a) ((a)>0 ? (a) : -(a))
+#define min(a,b) ((a)<(b) ? (a) : (b))
+#define max(a,b) ((a)>(b) ? (a) : (b))
+#define sq(a) ((a)*(a))
+#define cu(a) ((a)*(a)*(a))
+
+#endif /* AUXILIARY_H */
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/bitmap.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/bitmap.h
new file mode 100644
index 00000000000..1ce13d61e2d
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/bitmap.h
@@ -0,0 +1,97 @@
+/* Copyright (C) 2001-2013 Peter Selinger.
+ This file is part of Potrace. It is free software and it is covered
+ by the GNU General Public License. See the file COPYING for details. */
+
+#ifndef BITMAP_H
+#define BITMAP_H
+
+#include <string.h>
+#include <stdlib.h>
+
+/* The bitmap type is defined in potracelib.h */
+#include "potracelib.h"
+
+/* The present file defines some convenient macros and static inline
+ functions for accessing bitmaps. Since they only produce inline
+ code, they can be conveniently shared by the library and frontends,
+ if desired */
+
+/* ---------------------------------------------------------------------- */
+/* some measurements */
+
+#define BM_WORDSIZE ((int)sizeof(potrace_word))
+#define BM_WORDBITS (8*BM_WORDSIZE)
+#define BM_HIBIT (((potrace_word)1)<<(BM_WORDBITS-1))
+#define BM_ALLBITS (~(potrace_word)0)
+
+/* macros for accessing pixel at index (x,y). U* macros omit the
+ bounds check. */
+
+#define bm_scanline(bm, y) ((bm)->map + (y)*(bm)->dy)
+#define bm_index(bm, x, y) (&bm_scanline(bm, y)[(x)/BM_WORDBITS])
+#define bm_mask(x) (BM_HIBIT >> ((x) & (BM_WORDBITS-1)))
+#define bm_range(x, a) ((int)(x) >= 0 && (int)(x) < (a))
+#define bm_safe(bm, x, y) (bm_range(x, (bm)->w) && bm_range(y, (bm)->h))
+#define BM_UGET(bm, x, y) ((*bm_index(bm, x, y) & bm_mask(x)) != 0)
+#define BM_USET(bm, x, y) (*bm_index(bm, x, y) |= bm_mask(x))
+#define BM_UCLR(bm, x, y) (*bm_index(bm, x, y) &= ~bm_mask(x))
+#define BM_UINV(bm, x, y) (*bm_index(bm, x, y) ^= bm_mask(x))
+#define BM_UPUT(bm, x, y, b) ((b) ? BM_USET(bm, x, y) : BM_UCLR(bm, x, y))
+#define BM_GET(bm, x, y) (bm_safe(bm, x, y) ? BM_UGET(bm, x, y) : 0)
+#define BM_SET(bm, x, y) (bm_safe(bm, x, y) ? BM_USET(bm, x, y) : 0)
+#define BM_CLR(bm, x, y) (bm_safe(bm, x, y) ? BM_UCLR(bm, x, y) : 0)
+#define BM_INV(bm, x, y) (bm_safe(bm, x, y) ? BM_UINV(bm, x, y) : 0)
+#define BM_PUT(bm, x, y, b) (bm_safe(bm, x, y) ? BM_UPUT(bm, x, y, b) : 0)
+
+/* free the given bitmap. Leaves errno untouched. */
+static inline void bm_free(potrace_bitmap_t *bm) {
+ if (bm) {
+ free(bm->map);
+ }
+ free(bm);
+}
+
+/* return new un-initialized bitmap. NULL with errno on error */
+static inline potrace_bitmap_t *bm_new(int w, int h) {
+ potrace_bitmap_t *bm;
+ int dy = (w + BM_WORDBITS - 1) / BM_WORDBITS;
+
+ bm = (potrace_bitmap_t *) malloc(sizeof(potrace_bitmap_t));
+ if (!bm) {
+ return NULL;
+ }
+ bm->w = w;
+ bm->h = h;
+ bm->dy = dy;
+ bm->map = (potrace_word *) malloc(dy * h * BM_WORDSIZE);
+ if (!bm->map) {
+ free(bm);
+ return NULL;
+ }
+ return bm;
+}
+
+/* clear the given bitmap. Set all bits to c. */
+static inline void bm_clear(potrace_bitmap_t *bm, int c) {
+ memset(bm->map, c ? -1 : 0, bm->dy * bm->h * BM_WORDSIZE);
+}
+
+/* duplicate the given bitmap. Return NULL on error with errno set. */
+static inline potrace_bitmap_t *bm_dup(const potrace_bitmap_t *bm) {
+ potrace_bitmap_t *bm1 = bm_new(bm->w, bm->h);
+ if (!bm1) {
+ return NULL;
+ }
+ memcpy(bm1->map, bm->map, bm->dy * bm->h * BM_WORDSIZE);
+ return bm1;
+}
+
+/* invert the given bitmap. */
+static inline void bm_invert(potrace_bitmap_t *bm) {
+ int i;
+ for (i = 0; i < bm->dy * bm->h; i++) {
+ bm->map[i] ^= BM_ALLBITS;
+ }
+}
+
+#endif /* BITMAP_H */
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/curve.c b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/curve.c
new file mode 100644
index 00000000000..2bfc4ab3bf4
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/curve.c
@@ -0,0 +1,108 @@
+/* Copyright (C) 2001-2013 Peter Selinger.
+ This file is part of Potrace. It is free software and it is covered
+ by the GNU General Public License. See the file COPYING for details. */
+
+/* private part of the path and curve data structures */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "potracelib.h"
+#include "lists.h"
+#include "curve.h"
+
+#define SAFE_MALLOC(var, n, typ) \
+ if ((var = (typ *)malloc((n)*sizeof(typ))) == NULL) goto malloc_error
+
+/* ---------------------------------------------------------------------- */
+/* allocate and free path objects */
+
+path_t *potrace_path_new(void) {
+ path_t *p = NULL;
+ privpath_t *priv = NULL;
+
+ SAFE_MALLOC(p, 1, path_t);
+ memset(p, 0, sizeof(path_t));
+ SAFE_MALLOC(priv, 1, privpath_t);
+ memset(priv, 0, sizeof(privpath_t));
+ p->priv = priv;
+ return p;
+
+ malloc_error:
+ free(p);
+ free(priv);
+ return NULL;
+}
+
+/* free the members of the given curve structure. Leave errno unchanged. */
+static void privcurve_free_members(privcurve_t *curve) {
+ free(curve->tag);
+ free(curve->c);
+ free(curve->vertex);
+ free(curve->alpha);
+ free(curve->alpha0);
+ free(curve->beta);
+}
+
+/* free a path. Leave errno untouched. */
+void potrace_path_free(path_t *p) {
+ if (p) {
+ if (p->priv) {
+ free(p->priv->pt);
+ free(p->priv->lon);
+ free(p->priv->sums);
+ free(p->priv->po);
+ privcurve_free_members(&p->priv->curve);
+ privcurve_free_members(&p->priv->ocurve);
+ }
+ free(p->priv);
+ /* do not free p->fcurve ! */
+ }
+ free(p);
+}
+
+/* free a pathlist, leaving errno untouched. */
+void pathlist_free(path_t *plist) {
+ path_t *p;
+
+ list_forall_unlink(p, plist) {
+ potrace_path_free(p);
+ }
+}
+
+/* ---------------------------------------------------------------------- */
+/* initialize and finalize curve structures */
+
+typedef dpoint_t dpoint3_t[3];
+
+/* initialize the members of the given curve structure to size m.
+ Return 0 on success, 1 on error with errno set. */
+int privcurve_init(privcurve_t *curve, int n) {
+ memset(curve, 0, sizeof(privcurve_t));
+ curve->n = n;
+ SAFE_MALLOC(curve->tag, n, int);
+ SAFE_MALLOC(curve->c, n, dpoint3_t);
+ SAFE_MALLOC(curve->vertex, n, dpoint_t);
+ SAFE_MALLOC(curve->alpha, n, double);
+ SAFE_MALLOC(curve->alpha0, n, double);
+ SAFE_MALLOC(curve->beta, n, double);
+ return 0;
+
+ malloc_error:
+ free(curve->tag);
+ free(curve->c);
+ free(curve->vertex);
+ free(curve->alpha);
+ free(curve->alpha0);
+ free(curve->beta);
+ return 1;
+}
+
+/* copy private to public curve structure */
+void privcurve_to_curve(privcurve_t *pc, potrace_curve_t *c) {
+ c->n = pc->n;
+ c->tag = pc->tag;
+ c->c = pc->c;
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/curve.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/curve.h
new file mode 100644
index 00000000000..7ba2a46439e
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/curve.h
@@ -0,0 +1,77 @@
+/* Copyright (C) 2001-2013 Peter Selinger.
+ This file is part of Potrace. It is free software and it is covered
+ by the GNU General Public License. See the file COPYING for details. */
+
+#ifndef CURVE_H
+#define CURVE_H
+
+#include "auxiliary.h"
+
+/* vertex is c[1] for tag=POTRACE_CORNER, and the intersection of
+ .c[-1][2]..c[0] and c[1]..c[2] for tag=POTRACE_CURVETO. alpha is only
+ defined for tag=POTRACE_CURVETO and is the alpha parameter of the curve:
+ .c[-1][2]..c[0] = alpha*(.c[-1][2]..vertex), and
+ c[2]..c[1] = alpha*(c[2]..vertex).
+ Beta is so that (.beta[i])[.vertex[i],.vertex[i+1]] = .c[i][2].
+*/
+
+struct privcurve_s {
+ int n; /* number of segments */
+ int *tag; /* tag[n]: POTRACE_CORNER or POTRACE_CURVETO */
+ dpoint_t (*c)[3]; /* c[n][i]: control points.
+ c[n][0] is unused for tag[n]=POTRACE_CORNER */
+ /* the remainder of this structure is special to privcurve, and is
+ used in EPS debug output and special EPS "short coding". These
+ fields are valid only if "alphacurve" is set. */
+ int alphacurve; /* have the following fields been initialized? */
+ dpoint_t *vertex; /* for POTRACE_CORNER, this equals c[1] */
+ double *alpha; /* only for POTRACE_CURVETO */
+ double *alpha0; /* "uncropped" alpha parameter - for debug output only */
+ double *beta;
+};
+typedef struct privcurve_s privcurve_t;
+
+struct sums_s {
+ double x;
+ double y;
+ double x2;
+ double xy;
+ double y2;
+};
+typedef struct sums_s sums_t;
+
+/* the path structure is filled in with information about a given path
+ as it is accumulated and passed through the different stages of the
+ Potrace algorithm. Backends only need to read the fcurve and fm
+ fields of this data structure, but debugging backends may read
+ other fields. */
+struct potrace_privpath_s {
+ int len;
+ point_t *pt; /* pt[len]: path as extracted from bitmap */
+ int *lon; /* lon[len]: (i,lon[i]) = longest straight line from i */
+
+ int x0, y0; /* origin for sums */
+ sums_t *sums; /* sums[len+1]: cache for fast summing */
+
+ int m; /* length of optimal polygon */
+ int *po; /* po[m]: optimal polygon */
+
+ privcurve_t curve; /* curve[m]: array of curve elements */
+ privcurve_t ocurve; /* ocurve[om]: array of curve elements */
+ privcurve_t *fcurve; /* final curve: this points to either curve or
+ ocurve. Do not free this separately. */
+};
+typedef struct potrace_privpath_s potrace_privpath_t;
+
+/* shorter names */
+typedef potrace_privpath_t privpath_t;
+typedef potrace_path_t path_t;
+
+path_t *potrace_path_new(void);
+void potrace_path_free(path_t *p);
+void pathlist_free(path_t *plist);
+int privcurve_init(privcurve_t *curve, int n);
+void privcurve_to_curve(privcurve_t *pc, potrace_curve_t *c);
+
+#endif /* CURVE_H */
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/decompose.c b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/decompose.c
new file mode 100644
index 00000000000..adcdc1c2cab
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/decompose.c
@@ -0,0 +1,514 @@
+/* Copyright (C) 2001-2013 Peter Selinger.
+ This file is part of Potrace. It is free software and it is covered
+ by the GNU General Public License. See the file COPYING for details. */
+
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <limits.h>
+
+#include "potracelib.h"
+#include "curve.h"
+#include "lists.h"
+#include "bitmap.h"
+#include "decompose.h"
+#include "progress.h"
+
+/* ---------------------------------------------------------------------- */
+/* deterministically and efficiently hash (x,y) into a pseudo-random bit */
+
+static inline int detrand(int x, int y) {
+ unsigned int z;
+ static const unsigned char t[256] = {
+ /* non-linear sequence: constant term of inverse in GF(8),
+ mod x^8+x^4+x^3+x+1 */
+ 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1,
+ 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0,
+ 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1,
+ 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1,
+ 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0,
+ 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0,
+ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0,
+ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1,
+ 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0,
+ 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1,
+ 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0,
+ };
+
+ /* 0x04b3e375 and 0x05a8ef93 are chosen to contain every possible
+ 5-bit sequence */
+ z = ((0x04b3e375 * x) ^ y) * 0x05a8ef93;
+ z = t[z & 0xff] ^ t[(z>>8) & 0xff] ^ t[(z>>16) & 0xff] ^ t[(z>>24) & 0xff];
+ return z;
+}
+
+/* ---------------------------------------------------------------------- */
+/* auxiliary bitmap manipulations */
+
+/* set the excess padding to 0 */
+static void bm_clearexcess(potrace_bitmap_t *bm) {
+ potrace_word mask;
+ int y;
+
+ if (bm->w % BM_WORDBITS != 0) {
+ mask = BM_ALLBITS << (BM_WORDBITS - (bm->w % BM_WORDBITS));
+ for (y=0; y<bm->h; y++) {
+ *bm_index(bm, bm->w, y) &= mask;
+ }
+ }
+}
+
+struct bbox_s {
+ int x0, x1, y0, y1; /* bounding box */
+};
+typedef struct bbox_s bbox_t;
+
+/* clear the bm, assuming the bounding box is set correctly (faster
+ than clearing the whole bitmap) */
+static void clear_bm_with_bbox(potrace_bitmap_t *bm, bbox_t *bbox) {
+ int imin = (bbox->x0 / BM_WORDBITS);
+ int imax = ((bbox->x1 + BM_WORDBITS-1) / BM_WORDBITS);
+ int i, y;
+
+ for (y=bbox->y0; y<bbox->y1; y++) {
+ for (i=imin; i<imax; i++) {
+ bm_scanline(bm, y)[i] = 0;
+ }
+ }
+}
+
+/* ---------------------------------------------------------------------- */
+/* auxiliary functions */
+
+/* return the "majority" value of bitmap bm at intersection (x,y). We
+ assume that the bitmap is balanced at "radius" 1. */
+static int majority(potrace_bitmap_t *bm, int x, int y) {
+ int i, a, ct;
+
+ for (i=2; i<5; i++) { /* check at "radius" i */
+ ct = 0;
+ for (a=-i+1; a<=i-1; a++) {
+ ct += BM_GET(bm, x+a, y+i-1) ? 1 : -1;
+ ct += BM_GET(bm, x+i-1, y+a-1) ? 1 : -1;
+ ct += BM_GET(bm, x+a-1, y-i) ? 1 : -1;
+ ct += BM_GET(bm, x-i, y+a) ? 1 : -1;
+ }
+ if (ct>0) {
+ return 1;
+ } else if (ct<0) {
+ return 0;
+ }
+ }
+ return 0;
+}
+
+/* ---------------------------------------------------------------------- */
+/* decompose image into paths */
+
+/* efficiently invert bits [x,infty) and [xa,infty) in line y. Here xa
+ must be a multiple of BM_WORDBITS. */
+static void xor_to_ref(potrace_bitmap_t *bm, int x, int y, int xa) {
+ int xhi = x & -BM_WORDBITS;
+ int xlo = x & (BM_WORDBITS-1); /* = x % BM_WORDBITS */
+ int i;
+
+ if (xhi<xa) {
+ for (i = xhi; i < xa; i+=BM_WORDBITS) {
+ *bm_index(bm, i, y) ^= BM_ALLBITS;
+ }
+ } else {
+ for (i = xa; i < xhi; i+=BM_WORDBITS) {
+ *bm_index(bm, i, y) ^= BM_ALLBITS;
+ }
+ }
+ /* note: the following "if" is needed because x86 treats a<<b as
+ a<<(b&31). I spent hours looking for this bug. */
+ if (xlo) {
+ *bm_index(bm, xhi, y) ^= (BM_ALLBITS << (BM_WORDBITS - xlo));
+ }
+}
+
+/* a path is represented as an array of points, which are thought to
+ lie on the corners of pixels (not on their centers). The path point
+ (x,y) is the lower left corner of the pixel (x,y). Paths are
+ represented by the len/pt components of a path_t object (which
+ also stores other information about the path) */
+
+/* xor the given pixmap with the interior of the given path. Note: the
+ path must be within the dimensions of the pixmap. */
+static void xor_path(potrace_bitmap_t *bm, path_t *p) {
+ int xa, x, y, k, y1;
+
+ if (p->priv->len <= 0) { /* a path of length 0 is silly, but legal */
+ return;
+ }
+
+ y1 = p->priv->pt[p->priv->len-1].y;
+
+ xa = p->priv->pt[0].x & -BM_WORDBITS;
+ for (k=0; k<p->priv->len; k++) {
+ x = p->priv->pt[k].x;
+ y = p->priv->pt[k].y;
+
+ if (y != y1) {
+ /* efficiently invert the rectangle [x,xa] x [y,y1] */
+ xor_to_ref(bm, x, min(y,y1), xa);
+ y1 = y;
+ }
+ }
+}
+
+/* Find the bounding box of a given path. Path is assumed to be of
+ non-zero length. */
+static void setbbox_path(bbox_t *bbox, path_t *p) {
+ int x, y;
+ int k;
+
+ bbox->y0 = INT_MAX;
+ bbox->y1 = 0;
+ bbox->x0 = INT_MAX;
+ bbox->x1 = 0;
+
+ for (k=0; k<p->priv->len; k++) {
+ x = p->priv->pt[k].x;
+ y = p->priv->pt[k].y;
+
+ if (x < bbox->x0) {
+ bbox->x0 = x;
+ }
+ if (x > bbox->x1) {
+ bbox->x1 = x;
+ }
+ if (y < bbox->y0) {
+ bbox->y0 = y;
+ }
+ if (y > bbox->y1) {
+ bbox->y1 = y;
+ }
+ }
+}
+
+/* compute a path in the given pixmap, separating black from white.
+ Start path at the point (x0,x1), which must be an upper left corner
+ of the path. Also compute the area enclosed by the path. Return a
+ new path_t object, or NULL on error (note that a legitimate path
+ cannot have length 0). Sign is required for correct interpretation
+ of turnpolicies. */
+static path_t *findpath(potrace_bitmap_t *bm, int x0, int y0, int sign, int turnpolicy) {
+ int x, y, dirx, diry, len, size, area;
+ int c, d, tmp;
+ point_t *pt, *pt1;
+ path_t *p = NULL;
+
+ x = x0;
+ y = y0;
+ dirx = 0;
+ diry = -1;
+
+ len = size = 0;
+ pt = NULL;
+ area = 0;
+
+ while (1) {
+ /* add point to path */
+ if (len>=size) {
+ size += 100;
+ size = (int)(1.3 * size);
+ pt1 = (point_t *)realloc(pt, size * sizeof(point_t));
+ if (!pt1) {
+ goto error;
+ }
+ pt = pt1;
+ }
+ pt[len].x = x;
+ pt[len].y = y;
+ len++;
+
+ /* move to next point */
+ x += dirx;
+ y += diry;
+ area += x*diry;
+
+ /* path complete? */
+ if (x==x0 && y==y0) {
+ break;
+ }
+
+ /* determine next direction */
+ c = BM_GET(bm, x + (dirx+diry-1)/2, y + (diry-dirx-1)/2);
+ d = BM_GET(bm, x + (dirx-diry-1)/2, y + (diry+dirx-1)/2);
+
+ if (c && !d) { /* ambiguous turn */
+ if (turnpolicy == POTRACE_TURNPOLICY_RIGHT
+ || (turnpolicy == POTRACE_TURNPOLICY_BLACK && sign == '+')
+ || (turnpolicy == POTRACE_TURNPOLICY_WHITE && sign == '-')
+ || (turnpolicy == POTRACE_TURNPOLICY_RANDOM && detrand(x,y))
+ || (turnpolicy == POTRACE_TURNPOLICY_MAJORITY && majority(bm, x, y))
+ || (turnpolicy == POTRACE_TURNPOLICY_MINORITY && !majority(bm, x, y))) {
+ tmp = dirx; /* right turn */
+ dirx = diry;
+ diry = -tmp;
+ } else {
+ tmp = dirx; /* left turn */
+ dirx = -diry;
+ diry = tmp;
+ }
+ } else if (c) { /* right turn */
+ tmp = dirx;
+ dirx = diry;
+ diry = -tmp;
+ } else if (!d) { /* left turn */
+ tmp = dirx;
+ dirx = -diry;
+ diry = tmp;
+ }
+ } /* while this path */
+
+ /* allocate new path object */
+ p = potrace_path_new();
+ if (!p) {
+ goto error;
+ }
+
+ p->priv->pt = pt;
+ p->priv->len = len;
+ p->area = area;
+ p->sign = sign;
+
+ return p;
+
+ error:
+ free(pt);
+ return NULL;
+}
+
+/* Give a tree structure to the given path list, based on "insideness"
+ testing. I.e., path A is considered "below" path B if it is inside
+ path B. The input pathlist is assumed to be ordered so that "outer"
+ paths occur before "inner" paths. The tree structure is stored in
+ the "childlist" and "sibling" components of the path_t
+ structure. The linked list structure is also changed so that
+ negative path components are listed immediately after their
+ positive parent. Note: some backends may ignore the tree
+ structure, others may use it e.g. to group path components. We
+ assume that in the input, point 0 of each path is an "upper left"
+ corner of the path, as returned by bm_to_pathlist. This makes it
+ easy to find an "interior" point. The bm argument should be a
+ bitmap of the correct size (large enough to hold all the paths),
+ and will be used as scratch space. Return 0 on success or -1 on
+ error with errno set. */
+
+static void pathlist_to_tree(path_t *plist, potrace_bitmap_t *bm) {
+ path_t *p, *p1;
+ path_t *heap, *heap1;
+ path_t *cur;
+ path_t *head;
+ path_t **plist_hook; /* for fast appending to linked list */
+ path_t **hook_in, **hook_out; /* for fast appending to linked list */
+ bbox_t bbox;
+
+ bm_clear(bm, 0);
+
+ /* save original "next" pointers */
+ list_forall(p, plist) {
+ p->sibling = p->next;
+ p->childlist = NULL;
+ }
+
+ heap = plist;
+
+ /* the heap holds a list of lists of paths. Use "childlist" field
+ for outer list, "next" field for inner list. Each of the sublists
+ is to be turned into a tree. This code is messy, but it is
+ actually fast. Each path is rendered exactly once. We use the
+ heap to get a tail recursive algorithm: the heap holds a list of
+ pathlists which still need to be transformed. */
+
+ while (heap) {
+ /* unlink first sublist */
+ cur = heap;
+ heap = heap->childlist;
+ cur->childlist = NULL;
+
+ /* unlink first path */
+ head = cur;
+ cur = cur->next;
+ head->next = NULL;
+
+ /* render path */
+ xor_path(bm, head);
+ setbbox_path(&bbox, head);
+
+ /* now do insideness test for each element of cur; append it to
+ head->childlist if it's inside head, else append it to
+ head->next. */
+ hook_in=&head->childlist;
+ hook_out=&head->next;
+ list_forall_unlink(p, cur) {
+ if (p->priv->pt[0].y <= bbox.y0) {
+ list_insert_beforehook(p, hook_out);
+ /* append the remainder of the list to hook_out */
+ *hook_out = cur;
+ break;
+ }
+ if (BM_GET(bm, p->priv->pt[0].x, p->priv->pt[0].y-1)) {
+ list_insert_beforehook(p, hook_in);
+ } else {
+ list_insert_beforehook(p, hook_out);
+ }
+ }
+
+ /* clear bm */
+ clear_bm_with_bbox(bm, &bbox);
+
+ /* now schedule head->childlist and head->next for further
+ processing */
+ if (head->next) {
+ head->next->childlist = heap;
+ heap = head->next;
+ }
+ if (head->childlist) {
+ head->childlist->childlist = heap;
+ heap = head->childlist;
+ }
+ }
+
+ /* copy sibling structure from "next" to "sibling" component */
+ p = plist;
+ while (p) {
+ p1 = p->sibling;
+ p->sibling = p->next;
+ p = p1;
+ }
+
+ /* reconstruct a new linked list ("next") structure from tree
+ ("childlist", "sibling") structure. This code is slightly messy,
+ because we use a heap to make it tail recursive: the heap
+ contains a list of childlists which still need to be
+ processed. */
+ heap = plist;
+ if (heap) {
+ heap->next = NULL; /* heap is a linked list of childlists */
+ }
+ plist = NULL;
+ plist_hook = &plist;
+ while (heap) {
+ heap1 = heap->next;
+ for (p=heap; p; p=p->sibling) {
+ /* p is a positive path */
+ /* append to linked list */
+ list_insert_beforehook(p, plist_hook);
+
+ /* go through its children */
+ for (p1=p->childlist; p1; p1=p1->sibling) {
+ /* append to linked list */
+ list_insert_beforehook(p1, plist_hook);
+ /* append its childlist to heap, if non-empty */
+ if (p1->childlist) {
+ list_append(path_t, heap1, p1->childlist);
+ }
+ }
+ }
+ heap = heap1;
+ }
+
+ return;
+}
+
+/* find the next set pixel in a row <= y. Pixels are searched first
+ left-to-right, then top-down. In other words, (x,y)<(x',y') if y>y'
+ or y=y' and x<x'. If found, return 0 and store pixel in
+ (*xp,*yp). Else return 1. Note that this function assumes that
+ excess bytes have been cleared with bm_clearexcess. */
+static int findnext(potrace_bitmap_t *bm, int *xp, int *yp) {
+ int x;
+ int y;
+ int x0;
+
+ x0 = (*xp) & ~(BM_WORDBITS-1);
+
+ for (y=*yp; y>=0; y--) {
+ for (x=x0; x<bm->w; x+=BM_WORDBITS) {
+ if (*bm_index(bm, x, y)) {
+ while (!BM_GET(bm, x, y)) {
+ x++;
+ }
+ /* found */
+ *xp = x;
+ *yp = y;
+ return 0;
+ }
+ }
+ x0 = 0;
+ }
+ /* not found */
+ return 1;
+}
+
+/* Decompose the given bitmap into paths. Returns a linked list of
+ path_t objects with the fields len, pt, area, sign filled
+ in. Returns 0 on success with plistp set, or -1 on error with errno
+ set. */
+
+int bm_to_pathlist(const potrace_bitmap_t *bm, path_t **plistp, const potrace_param_t *param, progress_t *progress) {
+ int x;
+ int y;
+ path_t *p;
+ path_t *plist = NULL; /* linked list of path objects */
+ path_t **plist_hook = &plist; /* used to speed up appending to linked list */
+ potrace_bitmap_t *bm1 = NULL;
+ int sign;
+
+ bm1 = bm_dup(bm);
+ if (!bm1) {
+ goto error;
+ }
+
+ /* be sure the byte padding on the right is set to 0, as the fast
+ pixel search below relies on it */
+ bm_clearexcess(bm1);
+
+ /* iterate through components */
+ x = 0;
+ y = bm1->h - 1;
+ while (findnext(bm1, &x, &y) == 0) {
+ /* calculate the sign by looking at the original */
+ sign = BM_GET(bm, x, y) ? '+' : '-';
+
+ /* calculate the path */
+ p = findpath(bm1, x, y+1, sign, param->turnpolicy);
+ if (p==NULL) {
+ goto error;
+ }
+
+ /* update buffered image */
+ xor_path(bm1, p);
+
+ /* if it's a turd, eliminate it, else append it to the list */
+ if (p->area <= param->turdsize) {
+ potrace_path_free(p);
+ } else {
+ list_insert_beforehook(p, plist_hook);
+ }
+
+ if (bm1->h > 0) { /* to be sure */
+ progress_update(1-y/(double)bm1->h, progress);
+ }
+ }
+
+ pathlist_to_tree(plist, bm1);
+ bm_free(bm1);
+ *plistp = plist;
+
+ progress_update(1.0, progress);
+
+ return 0;
+
+ error:
+ bm_free(bm1);
+ list_forall_unlink(p, plist) {
+ potrace_path_free(p);
+ }
+ return -1;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/decompose.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/decompose.h
new file mode 100644
index 00000000000..feec07a46b3
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/decompose.h
@@ -0,0 +1,16 @@
+/* Copyright (C) 2001-2013 Peter Selinger.
+ This file is part of Potrace. It is free software and it is covered
+ by the GNU General Public License. See the file COPYING for details. */
+
+
+#ifndef DECOMPOSE_H
+#define DECOMPOSE_H
+
+#include "potracelib.h"
+#include "progress.h"
+#include "curve.h"
+
+int bm_to_pathlist(const potrace_bitmap_t *bm, path_t **plistp, const potrace_param_t *param, progress_t *progress);
+
+#endif /* DECOMPOSE_H */
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/lists.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/lists.h
new file mode 100644
index 00000000000..b67b9662356
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/lists.h
@@ -0,0 +1,285 @@
+/* Copyright (C) 2001-2013 Peter Selinger.
+ This file is part of Potrace. It is free software and it is covered
+ by the GNU General Public License. See the file COPYING for details. */
+
+
+#ifndef _PS_LISTS_H
+#define _PS_LISTS_H
+
+/* here we define some general list macros. Because they are macros,
+ they should work on any datatype with a "->next" component. Some of
+ them use a "hook". If elt and list are of type t* then hook is of
+ type t**. A hook stands for an insertion point in the list, i.e.,
+ either before the first element, or between two elements, or after
+ the last element. If an operation "sets the hook" for an element,
+ then the hook is set to just before the element. One can insert
+ something at a hook. One can also unlink at a hook: this means,
+ unlink the element just after the hook. By "to unlink", we mean the
+ element is removed from the list, but not deleted. Thus, it and its
+ components still need to be freed. */
+
+/* Note: these macros are somewhat experimental. Only the ones that
+ are actually *used* have been tested. So be careful to test any
+ that you use. Looking at the output of the preprocessor, "gcc -E"
+ (possibly piped though "indent"), might help too. Also: these
+ macros define some internal (local) variables that start with
+ "_". */
+
+/* we enclose macro definitions whose body consists of more than one
+ statement in MACRO_BEGIN and MACRO_END, rather than '{' and '}'. The
+ reason is that we want to be able to use the macro in a context
+ such as "if (...) macro(...); else ...". If we didn't use this obscure
+ trick, we'd have to omit the ";" in such cases. */
+
+#define MACRO_BEGIN do {
+#define MACRO_END } while (0)
+
+/* ---------------------------------------------------------------------- */
+/* macros for singly-linked lists */
+
+/* traverse list. At the end, elt is set to NULL. */
+#define list_forall(elt, list) for (elt=list; elt!=NULL; elt=elt->next)
+
+/* set elt to the first element of list satisfying boolean condition
+ c, or NULL if not found */
+#define list_find(elt, list, c) \
+ MACRO_BEGIN list_forall(elt, list) if (c) break; MACRO_END
+
+/* like forall, except also set hook for elt. */
+#define list_forall2(elt, list, hook) \
+ for (elt=list, hook=&list; elt!=NULL; hook=&elt->next, elt=elt->next)
+
+/* same as list_find, except also set hook for elt. */
+#define list_find2(elt, list, c, hook) \
+ MACRO_BEGIN list_forall2(elt, list, hook) if (c) break; MACRO_END
+
+/* same, except only use hook. */
+#define _list_forall_hook(list, hook) \
+ for (hook=&list; *hook!=NULL; hook=&(*hook)->next)
+
+/* same, except only use hook. Note: c may only refer to *hook, not elt. */
+#define _list_find_hook(list, c, hook) \
+ MACRO_BEGIN _list_forall_hook(list, hook) if (c) break; MACRO_END
+
+/* insert element after hook */
+#define list_insert_athook(elt, hook) \
+ MACRO_BEGIN elt->next = *hook; *hook = elt; MACRO_END
+
+/* insert element before hook */
+#define list_insert_beforehook(elt, hook) \
+ MACRO_BEGIN elt->next = *hook; *hook = elt; hook=&elt->next; MACRO_END
+
+/* unlink element after hook, let elt be unlinked element, or NULL.
+ hook remains. */
+#define list_unlink_athook(list, elt, hook) \
+ MACRO_BEGIN \
+ elt = hook ? *hook : NULL; if (elt) { *hook = elt->next; elt->next = NULL; }\
+ MACRO_END
+
+/* unlink the specific element, if it is in the list. Otherwise, set
+ elt to NULL */
+#define list_unlink(listtype, list, elt) \
+ MACRO_BEGIN \
+ listtype **_hook; \
+ _list_find_hook(list, *_hook==elt, _hook); \
+ list_unlink_athook(list, elt, _hook); \
+ MACRO_END
+
+/* prepend elt to list */
+#define list_prepend(list, elt) \
+ MACRO_BEGIN elt->next = list; list = elt; MACRO_END
+
+/* append elt to list. */
+#define list_append(listtype, list, elt) \
+ MACRO_BEGIN \
+ listtype **_hook; \
+ _list_forall_hook(list, _hook) {} \
+ list_insert_athook(elt, _hook); \
+ MACRO_END
+
+/* unlink the first element that satisfies the condition. */
+#define list_unlink_cond(listtype, list, elt, c) \
+ MACRO_BEGIN \
+ listtype **_hook; \
+ list_find2(elt, list, c, _hook); \
+ list_unlink_athook(list, elt, _hook); \
+ MACRO_END
+
+/* let elt be the nth element of the list, starting to count from 0.
+ Return NULL if out of bounds. */
+#define list_nth(elt, list, n) \
+ MACRO_BEGIN \
+ int _x; /* only evaluate n once */ \
+ for (_x=(n), elt=list; _x && elt; _x--, elt=elt->next) {} \
+ MACRO_END
+
+/* let elt be the nth element of the list, starting to count from 0.
+ Return NULL if out of bounds. */
+#define list_nth_hook(elt, list, n, hook) \
+ MACRO_BEGIN \
+ int _x; /* only evaluate n once */ \
+ for (_x=(n), elt=list, hook=&list; _x && elt; _x--, hook=&elt->next, elt=elt->next) {} \
+ MACRO_END
+
+/* set n to the length of the list */
+#define list_length(listtype, list, n) \
+ MACRO_BEGIN \
+ listtype *_elt; \
+ n=0; \
+ list_forall(_elt, list) \
+ n++; \
+ MACRO_END
+
+/* set n to the index of the first element satisfying cond, or -1 if
+ none found. Also set elt to the element, or NULL if none found. */
+#define list_index(list, n, elt, c) \
+ MACRO_BEGIN \
+ n=0; \
+ list_forall(elt, list) { \
+ if (c) break; \
+ n++; \
+ } \
+ if (!elt) \
+ n=-1; \
+ MACRO_END
+
+/* set n to the number of elements in the list that satisfy condition c */
+#define list_count(list, n, elt, c) \
+ MACRO_BEGIN \
+ n=0; \
+ list_forall(elt, list) { \
+ if (c) n++; \
+ } \
+ MACRO_END
+
+/* let elt be each element of the list, unlinked. At the end, set list=NULL. */
+#define list_forall_unlink(elt, list) \
+ for (elt=list; elt ? (list=elt->next, elt->next=NULL), 1 : 0; elt=list)
+
+/* reverse a list (efficient) */
+#define list_reverse(listtype, list) \
+ MACRO_BEGIN \
+ listtype *_list1=NULL, *elt; \
+ list_forall_unlink(elt, list) \
+ list_prepend(_list1, elt); \
+ list = _list1; \
+ MACRO_END
+
+/* insert the element ELT just before the first element TMP of the
+ list for which COND holds. Here COND must be a condition of ELT and
+ TMP. Typical usage is to insert an element into an ordered list:
+ for instance, list_insert_ordered(listtype, list, elt, tmp,
+ elt->size <= tmp->size). Note: if we give a "less than or equal"
+ condition, the new element will be inserted just before a sequence
+ of equal elements. If we give a "less than" condition, the new
+ element will be inserted just after a list of equal elements.
+ Note: it is much more efficient to construct a list with
+ list_prepend and then order it with list_merge_sort, than to
+ construct it with list_insert_ordered. */
+#define list_insert_ordered(listtype, list, elt, tmp, cond) \
+ MACRO_BEGIN \
+ listtype **_hook; \
+ _list_find_hook(list, (tmp=*_hook, (cond)), _hook); \
+ list_insert_athook(elt, _hook); \
+ MACRO_END
+
+/* sort the given list, according to the comparison condition.
+ Typical usage is list_sort(listtype, list, a, b, a->size <
+ b->size). Note: if we give "less than or equal" condition, each
+ segment of equal elements will be reversed in order. If we give a
+ "less than" condition, each segment of equal elements will retain
+ the original order. The latter is slower but sometimes
+ prettier. Average running time: n*n/2. */
+#define list_sort(listtype, list, a, b, cond) \
+ MACRO_BEGIN \
+ listtype *_newlist=NULL; \
+ list_forall_unlink(a, list) \
+ list_insert_ordered(listtype, _newlist, a, b, cond); \
+ list = _newlist; \
+ MACRO_END
+
+/* a much faster sort algorithm (merge sort, n log n worst case). It
+ is required that the list type has an additional, unused next1
+ component. Note there is no curious reversal of order of equal
+ elements as for list_sort. */
+
+#define list_mergesort(listtype, list, a, b, cond) \
+ MACRO_BEGIN \
+ listtype *_elt, **_hook1; \
+ \
+ for (_elt=list; _elt; _elt=_elt->next1) { \
+ _elt->next1 = _elt->next; \
+ _elt->next = NULL; \
+ } \
+ do { \
+ _hook1 = &(list); \
+ while ((a = *_hook1) != NULL && (b = a->next1) != NULL ) { \
+ _elt = b->next1; \
+ _list_merge_cond(listtype, a, b, cond, *_hook1); \
+ _hook1 = &((*_hook1)->next1); \
+ *_hook1 = _elt; \
+ } \
+ } while (_hook1 != &(list)); \
+ MACRO_END
+
+/* merge two sorted lists. Store result at &result */
+#define _list_merge_cond(listtype, a, b, cond, result) \
+ MACRO_BEGIN \
+ listtype **_hook; \
+ _hook = &(result); \
+ while (1) { \
+ if (a==NULL) { \
+ *_hook = b; \
+ break; \
+ } else if (b==NULL) { \
+ *_hook = a; \
+ break; \
+ } else if (cond) { \
+ *_hook = a; \
+ _hook = &(a->next); \
+ a = a->next; \
+ } else { \
+ *_hook = b; \
+ _hook = &(b->next); \
+ b = b->next; \
+ } \
+ } \
+ MACRO_END
+
+/* ---------------------------------------------------------------------- */
+/* macros for doubly-linked lists */
+
+#define dlist_append(head, end, elt) \
+ MACRO_BEGIN \
+ elt->prev = end; \
+ elt->next = NULL; \
+ if (end) { \
+ end->next = elt; \
+ } else { \
+ head = elt; \
+ } \
+ end = elt; \
+ MACRO_END
+
+/* let elt be each element of the list, unlinked. At the end, set list=NULL. */
+#define dlist_forall_unlink(elt, head, end) \
+ for (elt=head; elt ? (head=elt->next, elt->next=NULL, elt->prev=NULL), 1 : (end=NULL, 0); elt=head)
+
+/* unlink the first element of the list */
+#define dlist_unlink_first(head, end, elt) \
+ MACRO_BEGIN \
+ elt = head; \
+ if (head) { \
+ head = head->next; \
+ if (head) { \
+ head->prev = NULL; \
+ } else { \
+ end = NULL; \
+ } \
+ elt->prev = NULL; \
+ elt->next = NULL; \
+ } \
+ MACRO_END
+
+#endif /* _PS_LISTS_H */
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/potracelib.c b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/potracelib.c
new file mode 100644
index 00000000000..95901bcb53f
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/potracelib.c
@@ -0,0 +1,114 @@
+/* Copyright (C) 2001-2013 Peter Selinger.
+ This file is part of Potrace. It is free software and it is covered
+ by the GNU General Public License. See the file COPYING for details. */
+
+#include <stdlib.h>
+#include <string.h>
+
+#include "potracelib.h"
+#include "curve.h"
+#include "decompose.h"
+#include "trace.h"
+#include "progress.h"
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+/* default parameters */
+static const potrace_param_t param_default = {
+ 2, /* turdsize */
+ POTRACE_TURNPOLICY_MINORITY, /* turnpolicy */
+ 1.0, /* alphamax */
+ 1, /* opticurve */
+ 0.2, /* opttolerance */
+ {
+ NULL, /* callback function */
+ NULL, /* callback data */
+ 0.0, 1.0, /* progress range */
+ 0.0, /* granularity */
+ },
+};
+
+/* Return a fresh copy of the set of default parameters, or NULL on
+ failure with errno set. */
+potrace_param_t *potrace_param_default(void) {
+ potrace_param_t *p;
+
+ p = (potrace_param_t *) malloc(sizeof(potrace_param_t));
+ if (!p) {
+ return NULL;
+ }
+ memcpy(p, &param_default, sizeof(potrace_param_t));
+ return p;
+}
+
+/* On success, returns a Potrace state st with st->status ==
+ POTRACE_STATUS_OK. On failure, returns NULL if no Potrace state
+ could be created (with errno set), or returns an incomplete Potrace
+ state (with st->status == POTRACE_STATUS_INCOMPLETE, and with errno
+ set). Complete or incomplete Potrace state can be freed with
+ potrace_state_free(). */
+potrace_state_t *potrace_trace(const potrace_param_t *param, const potrace_bitmap_t *bm) {
+ int r;
+ path_t *plist = NULL;
+ potrace_state_t *st;
+ progress_t prog;
+ progress_t subprog;
+
+ /* prepare private progress bar state */
+ prog.callback = param->progress.callback;
+ prog.data = param->progress.data;
+ prog.min = param->progress.min;
+ prog.max = param->progress.max;
+ prog.epsilon = param->progress.epsilon;
+ prog.d_prev = param->progress.min;
+
+ /* allocate state object */
+ st = (potrace_state_t *)malloc(sizeof(potrace_state_t));
+ if (!st) {
+ return NULL;
+ }
+
+ progress_subrange_start(0.0, 0.1, &prog, &subprog);
+
+ /* process the image */
+ r = bm_to_pathlist(bm, &plist, param, &subprog);
+ if (r) {
+ free(st);
+ return NULL;
+ }
+
+ st->status = POTRACE_STATUS_OK;
+ st->plist = plist;
+ st->priv = NULL; /* private state currently unused */
+
+ progress_subrange_end(&prog, &subprog);
+
+ progress_subrange_start(0.1, 1.0, &prog, &subprog);
+
+ /* partial success. */
+ r = process_path(plist, param, &subprog);
+ if (r) {
+ st->status = POTRACE_STATUS_INCOMPLETE;
+ }
+
+ progress_subrange_end(&prog, &subprog);
+
+ return st;
+}
+
+/* free a Potrace state, without disturbing errno. */
+void potrace_state_free(potrace_state_t *st) {
+ pathlist_free(st->plist);
+ free(st);
+}
+
+/* free a parameter list, without disturbing errno. */
+void potrace_param_free(potrace_param_t *p) {
+ free(p);
+}
+
+const char *potrace_version(void) {
+ return "potracelib 1.11";
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/potracelib.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/potracelib.h
new file mode 100644
index 00000000000..5c628a2bdbd
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/potracelib.h
@@ -0,0 +1,139 @@
+/* Copyright (C) 2001-2013 Peter Selinger.
+ This file is part of Potrace. It is free software and it is covered
+ by the GNU General Public License. See the file COPYING for details. */
+
+#ifndef POTRACELIB_H
+#define POTRACELIB_H
+
+/* this file defines the API for the core Potrace library. For a more
+ detailed description of the API, see potracelib.pdf */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* ---------------------------------------------------------------------- */
+/* tracing parameters */
+
+/* turn policies */
+#define POTRACE_TURNPOLICY_BLACK 0
+#define POTRACE_TURNPOLICY_WHITE 1
+#define POTRACE_TURNPOLICY_LEFT 2
+#define POTRACE_TURNPOLICY_RIGHT 3
+#define POTRACE_TURNPOLICY_MINORITY 4
+#define POTRACE_TURNPOLICY_MAJORITY 5
+#define POTRACE_TURNPOLICY_RANDOM 6
+
+/* structure to hold progress bar callback data */
+struct potrace_progress_s {
+ void (*callback)(double progress, void *privdata); /* callback fn */
+ void *data; /* callback function's private data */
+ double min, max; /* desired range of progress, e.g. 0.0 to 1.0 */
+ double epsilon; /* granularity: can skip smaller increments */
+};
+typedef struct potrace_progress_s potrace_progress_t;
+
+/* structure to hold tracing parameters */
+struct potrace_param_s {
+ int turdsize; /* area of largest path to be ignored */
+ int turnpolicy; /* resolves ambiguous turns in path decomposition */
+ double alphamax; /* corner threshold */
+ int opticurve; /* use curve optimization? */
+ double opttolerance; /* curve optimization tolerance */
+ potrace_progress_t progress; /* progress callback function */
+};
+typedef struct potrace_param_s potrace_param_t;
+
+/* ---------------------------------------------------------------------- */
+/* bitmaps */
+
+/* native word size */
+typedef unsigned long potrace_word;
+
+/* Internal bitmap format. The n-th scanline starts at scanline(n) =
+ (map + n*dy). Raster data is stored as a sequence of potrace_words
+ (NOT bytes). The leftmost bit of scanline n is the most significant
+ bit of scanline(n)[0]. */
+struct potrace_bitmap_s {
+ int w, h; /* width and height, in pixels */
+ int dy; /* words per scanline (not bytes) */
+ potrace_word *map; /* raw data, dy*h words */
+};
+typedef struct potrace_bitmap_s potrace_bitmap_t;
+
+/* ---------------------------------------------------------------------- */
+/* curves */
+
+/* point */
+struct potrace_dpoint_s {
+ double x, y;
+};
+typedef struct potrace_dpoint_s potrace_dpoint_t;
+
+/* segment tags */
+#define POTRACE_CURVETO 1
+#define POTRACE_CORNER 2
+
+/* closed curve segment */
+struct potrace_curve_s {
+ int n; /* number of segments */
+ int *tag; /* tag[n]: POTRACE_CURVETO or POTRACE_CORNER */
+ potrace_dpoint_t (*c)[3]; /* c[n][3]: control points.
+ c[n][0] is unused for tag[n]=POTRACE_CORNER */
+};
+typedef struct potrace_curve_s potrace_curve_t;
+
+/* Linked list of signed curve segments. Also carries a tree structure. */
+struct potrace_path_s {
+ int area; /* area of the bitmap path */
+ int sign; /* '+' or '-', depending on orientation */
+ potrace_curve_t curve; /* this path's vector data */
+
+ struct potrace_path_s *next; /* linked list structure */
+
+ struct potrace_path_s *childlist; /* tree structure */
+ struct potrace_path_s *sibling; /* tree structure */
+
+ struct potrace_privpath_s *priv; /* private state */
+};
+typedef struct potrace_path_s potrace_path_t;
+
+/* ---------------------------------------------------------------------- */
+/* Potrace state */
+
+#define POTRACE_STATUS_OK 0
+#define POTRACE_STATUS_INCOMPLETE 1
+
+struct potrace_state_s {
+ int status;
+ potrace_path_t *plist; /* vector data */
+
+ struct potrace_privstate_s *priv; /* private state */
+};
+typedef struct potrace_state_s potrace_state_t;
+
+/* ---------------------------------------------------------------------- */
+/* API functions */
+
+/* get default parameters */
+potrace_param_t *potrace_param_default(void);
+
+/* free parameter set */
+void potrace_param_free(potrace_param_t *p);
+
+/* trace a bitmap*/
+potrace_state_t *potrace_trace(const potrace_param_t *param,
+ const potrace_bitmap_t *bm);
+
+/* free a Potrace state */
+void potrace_state_free(potrace_state_t *st);
+
+/* return a static plain text version string identifying this version
+ of potracelib */
+const char *potrace_version(void);
+
+#ifdef __cplusplus
+} /* end of extern "C" */
+#endif
+
+#endif /* POTRACELIB_H */
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/progress.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/progress.h
new file mode 100644
index 00000000000..166209a5226
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/progress.h
@@ -0,0 +1,79 @@
+/* Copyright (C) 2001-2013 Peter Selinger.
+ This file is part of Potrace. It is free software and it is covered
+ by the GNU General Public License. See the file COPYING for details. */
+
+/* operations on potrace_progress_t objects, which are defined in
+ potracelib.h. Note: the code attempts to minimize runtime overhead
+ when no progress monitoring was requested. It also tries to
+ minimize excessive progress calculations beneath the "epsilon"
+ threshold. */
+
+#ifndef PROGRESS_H
+#define PROGRESS_H
+
+/* structure to hold progress bar callback data */
+struct progress_s {
+ void (*callback)(double progress, void *privdata); /* callback fn */
+ void *data; /* callback function's private data */
+ double min, max; /* desired range of progress, e.g. 0.0 to 1.0 */
+ double epsilon; /* granularity: can skip smaller increments */
+ double b; /* upper limit of subrange in superrange units */
+ double d_prev; /* previous value of d */
+};
+typedef struct progress_s progress_t;
+
+/* notify given progress object of current progress. Note that d is
+ given in the 0.0-1.0 range, which will be scaled and translated to
+ the progress object's range. */
+static inline void progress_update(double d, progress_t *prog) {
+ double d_scaled;
+
+ if (prog != NULL && prog->callback != NULL) {
+ d_scaled = prog->min * (1-d) + prog->max * d;
+ if (d == 1.0 || d_scaled >= prog->d_prev + prog->epsilon) {
+ prog->callback(prog->min * (1-d) + prog->max * d, prog->data);
+ prog->d_prev = d_scaled;
+ }
+ }
+}
+
+/* start a subrange of the given progress object. The range is
+ narrowed to [a..b], relative to 0.0-1.0 coordinates. If new range
+ is below granularity threshold, disable further subdivisions. */
+static inline void progress_subrange_start(double a, double b, const progress_t *prog, progress_t *sub) {
+ double min, max;
+
+ if (prog == NULL || prog->callback == NULL) {
+ sub->callback = NULL;
+ return;
+ }
+
+ min = prog->min * (1-a) + prog->max * a;
+ max = prog->min * (1-b) + prog->max * b;
+
+ if (max - min < prog->epsilon) {
+ sub->callback = NULL; /* no further progress info in subrange */
+ sub->b = b;
+ return;
+ }
+ sub->callback = prog->callback;
+ sub->data = prog->data;
+ sub->epsilon = prog->epsilon;
+ sub->min = min;
+ sub->max = max;
+ sub->d_prev = prog->d_prev;
+ return;
+}
+
+static inline void progress_subrange_end(progress_t *prog, progress_t *sub) {
+ if (prog != NULL && prog->callback != NULL) {
+ if (sub->callback == NULL) {
+ progress_update(sub->b, prog);
+ } else {
+ prog->d_prev = sub->d_prev;
+ }
+ }
+}
+
+#endif /* PROGRESS_H */
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/trace.c b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/trace.c
new file mode 100644
index 00000000000..1464bd32948
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/trace.c
@@ -0,0 +1,1245 @@
+/* Copyright (C) 2001-2013 Peter Selinger.
+ This file is part of Potrace. It is free software and it is covered
+ by the GNU General Public License. See the file COPYING for details. */
+
+/* transform jaggy paths into smooth curves */
+
+#include <stdio.h>
+#include <math.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "potracelib.h"
+#include "curve.h"
+#include "lists.h"
+#include "auxiliary.h"
+#include "trace.h"
+#include "progress.h"
+
+#define INFTY 10000000 /* it suffices that this is longer than any
+ path; it need not be really infinite */
+#define COS179 -0.999847695156 /* the cosine of 179 degrees */
+
+/* ---------------------------------------------------------------------- */
+#define SAFE_MALLOC(var, n, typ) \
+ if ((var = (typ *)malloc((n)*sizeof(typ))) == NULL) goto malloc_error
+
+/* ---------------------------------------------------------------------- */
+/* auxiliary functions */
+
+/* return a direction that is 90 degrees counterclockwise from p2-p0,
+ but then restricted to one of the major wind directions (n, nw, w, etc) */
+static inline point_t dorth_infty(dpoint_t p0, dpoint_t p2) {
+ point_t r;
+
+ r.y = sign(p2.x-p0.x);
+ r.x = -sign(p2.y-p0.y);
+
+ return r;
+}
+
+/* return (p1-p0)x(p2-p0), the area of the parallelogram */
+static inline double dpara(dpoint_t p0, dpoint_t p1, dpoint_t p2) {
+ double x1, y1, x2, y2;
+
+ x1 = p1.x-p0.x;
+ y1 = p1.y-p0.y;
+ x2 = p2.x-p0.x;
+ y2 = p2.y-p0.y;
+
+ return x1*y2 - x2*y1;
+}
+
+/* ddenom/dpara have the property that the square of radius 1 centered
+ at p1 intersects the line p0p2 iff |dpara(p0,p1,p2)| <= ddenom(p0,p2) */
+static inline double ddenom(dpoint_t p0, dpoint_t p2) {
+ point_t r = dorth_infty(p0, p2);
+
+ return r.y*(p2.x-p0.x) - r.x*(p2.y-p0.y);
+}
+
+/* return 1 if a <= b < c < a, in a cyclic sense (mod n) */
+static inline int cyclic(int a, int b, int c) {
+ if (a<=c) {
+ return (a<=b && b<c);
+ } else {
+ return (a<=b || b<c);
+ }
+}
+
+/* determine the center and slope of the line i..j. Assume i<j. Needs
+ "sum" components of p to be set. */
+static void pointslope(privpath_t *pp, int i, int j, dpoint_t *ctr, dpoint_t *dir) {
+ /* assume i<j */
+
+ int n = pp->len;
+ sums_t *sums = pp->sums;
+
+ double x, y, x2, xy, y2;
+ double k;
+ double a, b, c, lambda2, l;
+ int r=0; /* rotations from i to j */
+
+ while (j>=n) {
+ j-=n;
+ r+=1;
+ }
+ while (i>=n) {
+ i-=n;
+ r-=1;
+ }
+ while (j<0) {
+ j+=n;
+ r-=1;
+ }
+ while (i<0) {
+ i+=n;
+ r+=1;
+ }
+
+ x = sums[j+1].x-sums[i].x+r*sums[n].x;
+ y = sums[j+1].y-sums[i].y+r*sums[n].y;
+ x2 = sums[j+1].x2-sums[i].x2+r*sums[n].x2;
+ xy = sums[j+1].xy-sums[i].xy+r*sums[n].xy;
+ y2 = sums[j+1].y2-sums[i].y2+r*sums[n].y2;
+ k = j+1-i+r*n;
+
+ ctr->x = x/k;
+ ctr->y = y/k;
+
+ a = (x2-(double)x*x/k)/k;
+ b = (xy-(double)x*y/k)/k;
+ c = (y2-(double)y*y/k)/k;
+
+ lambda2 = (a+c+sqrt((a-c)*(a-c)+4*b*b))/2; /* larger e.value */
+
+ /* now find e.vector for lambda2 */
+ a -= lambda2;
+ c -= lambda2;
+
+ if (fabs(a) >= fabs(c)) {
+ l = sqrt(a*a+b*b);
+ if (l!=0) {
+ dir->x = -b/l;
+ dir->y = a/l;
+ }
+ } else {
+ l = sqrt(c*c+b*b);
+ if (l!=0) {
+ dir->x = -c/l;
+ dir->y = b/l;
+ }
+ }
+ if (l==0) {
+ dir->x = dir->y = 0; /* sometimes this can happen when k=4:
+ the two eigenvalues coincide */
+ }
+}
+
+/* the type of (affine) quadratic forms, represented as symmetric 3x3
+ matrices. The value of the quadratic form at a vector (x,y) is v^t
+ Q v, where v = (x,y,1)^t. */
+typedef double quadform_t[3][3];
+
+/* Apply quadratic form Q to vector w = (w.x,w.y) */
+static inline double quadform(quadform_t Q, dpoint_t w) {
+ double v[3];
+ int i, j;
+ double sum;
+
+ v[0] = w.x;
+ v[1] = w.y;
+ v[2] = 1;
+ sum = 0.0;
+
+ for (i=0; i<3; i++) {
+ for (j=0; j<3; j++) {
+ sum += v[i] * Q[i][j] * v[j];
+ }
+ }
+ return sum;
+}
+
+/* calculate p1 x p2 */
+static inline int xprod(point_t p1, point_t p2) {
+ return p1.x*p2.y - p1.y*p2.x;
+}
+
+/* calculate (p1-p0)x(p3-p2) */
+static inline double cprod(dpoint_t p0, dpoint_t p1, dpoint_t p2, dpoint_t p3) {
+ double x1, y1, x2, y2;
+
+ x1 = p1.x - p0.x;
+ y1 = p1.y - p0.y;
+ x2 = p3.x - p2.x;
+ y2 = p3.y - p2.y;
+
+ return x1*y2 - x2*y1;
+}
+
+/* calculate (p1-p0)*(p2-p0) */
+static inline double iprod(dpoint_t p0, dpoint_t p1, dpoint_t p2) {
+ double x1, y1, x2, y2;
+
+ x1 = p1.x - p0.x;
+ y1 = p1.y - p0.y;
+ x2 = p2.x - p0.x;
+ y2 = p2.y - p0.y;
+
+ return x1*x2 + y1*y2;
+}
+
+/* calculate (p1-p0)*(p3-p2) */
+static inline double iprod1(dpoint_t p0, dpoint_t p1, dpoint_t p2, dpoint_t p3) {
+ double x1, y1, x2, y2;
+
+ x1 = p1.x - p0.x;
+ y1 = p1.y - p0.y;
+ x2 = p3.x - p2.x;
+ y2 = p3.y - p2.y;
+
+ return x1*x2 + y1*y2;
+}
+
+/* calculate distance between two points */
+static inline double ddist(dpoint_t p, dpoint_t q) {
+ return sqrt(sq(p.x-q.x)+sq(p.y-q.y));
+}
+
+/* calculate point of a bezier curve */
+static inline dpoint_t bezier(double t, dpoint_t p0, dpoint_t p1, dpoint_t p2, dpoint_t p3) {
+ double s = 1-t;
+ dpoint_t res;
+
+ /* Note: a good optimizing compiler (such as gcc-3) reduces the
+ following to 16 multiplications, using common subexpression
+ elimination. */
+
+ res.x = s*s*s*p0.x + 3*(s*s*t)*p1.x + 3*(t*t*s)*p2.x + t*t*t*p3.x;
+ res.y = s*s*s*p0.y + 3*(s*s*t)*p1.y + 3*(t*t*s)*p2.y + t*t*t*p3.y;
+
+ return res;
+}
+
+/* calculate the point t in [0..1] on the (convex) bezier curve
+ (p0,p1,p2,p3) which is tangent to q1-q0. Return -1.0 if there is no
+ solution in [0..1]. */
+static double tangent(dpoint_t p0, dpoint_t p1, dpoint_t p2, dpoint_t p3, dpoint_t q0, dpoint_t q1) {
+ double A, B, C; /* (1-t)^2 A + 2(1-t)t B + t^2 C = 0 */
+ double a, b, c; /* a t^2 + b t + c = 0 */
+ double d, s, r1, r2;
+
+ A = cprod(p0, p1, q0, q1);
+ B = cprod(p1, p2, q0, q1);
+ C = cprod(p2, p3, q0, q1);
+
+ a = A - 2*B + C;
+ b = -2*A + 2*B;
+ c = A;
+
+ d = b*b - 4*a*c;
+
+ if (a==0 || d<0) {
+ return -1.0;
+ }
+
+ s = sqrt(d);
+
+ r1 = (-b + s) / (2 * a);
+ r2 = (-b - s) / (2 * a);
+
+ if (r1 >= 0 && r1 <= 1) {
+ return r1;
+ } else if (r2 >= 0 && r2 <= 1) {
+ return r2;
+ } else {
+ return -1.0;
+ }
+}
+
+/* ---------------------------------------------------------------------- */
+/* Preparation: fill in the sum* fields of a path (used for later
+ rapid summing). Return 0 on success, 1 with errno set on
+ failure. */
+static int calc_sums(privpath_t *pp) {
+ int i, x, y;
+ int n = pp->len;
+
+ SAFE_MALLOC(pp->sums, pp->len+1, sums_t);
+
+ /* origin */
+ pp->x0 = pp->pt[0].x;
+ pp->y0 = pp->pt[0].y;
+
+ /* preparatory computation for later fast summing */
+ pp->sums[0].x2 = pp->sums[0].xy = pp->sums[0].y2 = pp->sums[0].x = pp->sums[0].y = 0;
+ for (i=0; i<n; i++) {
+ x = pp->pt[i].x - pp->x0;
+ y = pp->pt[i].y - pp->y0;
+ pp->sums[i+1].x = pp->sums[i].x + x;
+ pp->sums[i+1].y = pp->sums[i].y + y;
+ pp->sums[i+1].x2 = pp->sums[i].x2 + x*x;
+ pp->sums[i+1].xy = pp->sums[i].xy + x*y;
+ pp->sums[i+1].y2 = pp->sums[i].y2 + y*y;
+ }
+ return 0;
+
+ malloc_error:
+ return 1;
+}
+
+/* ---------------------------------------------------------------------- */
+/* Stage 1: determine the straight subpaths (Sec. 2.2.1). Fill in the
+ "lon" component of a path object (based on pt/len). For each i,
+ lon[i] is the furthest index such that a straight line can be drawn
+ from i to lon[i]. Return 1 on error with errno set, else 0. */
+
+/* this algorithm depends on the fact that the existence of straight
+ subpaths is a triplewise property. I.e., there exists a straight
+ line through squares i0,...,in iff there exists a straight line
+ through i,j,k, for all i0<=i<j<k<=in. (Proof?) */
+
+/* this implementation of calc_lon is O(n^2). It replaces an older
+ O(n^3) version. A "constraint" means that future points must
+ satisfy xprod(constraint[0], cur) >= 0 and xprod(constraint[1],
+ cur) <= 0. */
+
+/* Remark for Potrace 1.1: the current implementation of calc_lon is
+ more complex than the implementation found in Potrace 1.0, but it
+ is considerably faster. The introduction of the "nc" data structure
+ means that we only have to test the constraints for "corner"
+ points. On a typical input file, this speeds up the calc_lon
+ function by a factor of 31.2, thereby decreasing its time share
+ within the overall Potrace algorithm from 72.6% to 7.82%, and
+ speeding up the overall algorithm by a factor of 3.36. On another
+ input file, calc_lon was sped up by a factor of 6.7, decreasing its
+ time share from 51.4% to 13.61%, and speeding up the overall
+ algorithm by a factor of 1.78. In any case, the savings are
+ substantial. */
+
+/* returns 0 on success, 1 on error with errno set */
+static int calc_lon(privpath_t *pp) {
+ point_t *pt = pp->pt;
+ int n = pp->len;
+ int i, j, k, k1;
+ int ct[4], dir;
+ point_t constraint[2];
+ point_t cur;
+ point_t off;
+ int *pivk = NULL; /* pivk[n] */
+ int *nc = NULL; /* nc[n]: next corner */
+ point_t dk; /* direction of k-k1 */
+ int a, b, c, d;
+
+ SAFE_MALLOC(pivk, n, int);
+ SAFE_MALLOC(nc, n, int);
+
+ /* initialize the nc data structure. Point from each point to the
+ furthest future point to which it is connected by a vertical or
+ horizontal segment. We take advantage of the fact that there is
+ always a direction change at 0 (due to the path decomposition
+ algorithm). But even if this were not so, there is no harm, as
+ in practice, correctness does not depend on the word "furthest"
+ above. */
+ k = 0;
+ for (i=n-1; i>=0; i--) {
+ if (pt[i].x != pt[k].x && pt[i].y != pt[k].y) {
+ k = i+1; /* necessarily i<n-1 in this case */
+ }
+ nc[i] = k;
+ }
+
+ SAFE_MALLOC(pp->lon, n, int);
+
+ /* determine pivot points: for each i, let pivk[i] be the furthest k
+ such that all j with i<j<k lie on a line connecting i,k. */
+
+ for (i=n-1; i>=0; i--) {
+ ct[0] = ct[1] = ct[2] = ct[3] = 0;
+
+ /* keep track of "directions" that have occurred */
+ dir = (3+3*(pt[mod(i+1,n)].x-pt[i].x)+(pt[mod(i+1,n)].y-pt[i].y))/2;
+ ct[dir]++;
+
+ constraint[0].x = 0;
+ constraint[0].y = 0;
+ constraint[1].x = 0;
+ constraint[1].y = 0;
+
+ /* find the next k such that no straight line from i to k */
+ k = nc[i];
+ k1 = i;
+ while (1) {
+
+ dir = (3+3*sign(pt[k].x-pt[k1].x)+sign(pt[k].y-pt[k1].y))/2;
+ ct[dir]++;
+
+ /* if all four "directions" have occurred, cut this path */
+ if (ct[0] && ct[1] && ct[2] && ct[3]) {
+ pivk[i] = k1;
+ goto foundk;
+ }
+
+ cur.x = pt[k].x - pt[i].x;
+ cur.y = pt[k].y - pt[i].y;
+
+ /* see if current constraint is violated */
+ if (xprod(constraint[0], cur) < 0 || xprod(constraint[1], cur) > 0) {
+ goto constraint_viol;
+ }
+
+ /* else, update constraint */
+ if (abs(cur.x) <= 1 && abs(cur.y) <= 1) {
+ /* no constraint */
+ } else {
+ off.x = cur.x + ((cur.y>=0 && (cur.y>0 || cur.x<0)) ? 1 : -1);
+ off.y = cur.y + ((cur.x<=0 && (cur.x<0 || cur.y<0)) ? 1 : -1);
+ if (xprod(constraint[0], off) >= 0) {
+ constraint[0] = off;
+ }
+ off.x = cur.x + ((cur.y<=0 && (cur.y<0 || cur.x<0)) ? 1 : -1);
+ off.y = cur.y + ((cur.x>=0 && (cur.x>0 || cur.y<0)) ? 1 : -1);
+ if (xprod(constraint[1], off) <= 0) {
+ constraint[1] = off;
+ }
+ }
+ k1 = k;
+ k = nc[k1];
+ if (!cyclic(k,i,k1)) {
+ break;
+ }
+ }
+ constraint_viol:
+ /* k1 was the last "corner" satisfying the current constraint, and
+ k is the first one violating it. We now need to find the last
+ point along k1..k which satisfied the constraint. */
+ dk.x = sign(pt[k].x-pt[k1].x);
+ dk.y = sign(pt[k].y-pt[k1].y);
+ cur.x = pt[k1].x - pt[i].x;
+ cur.y = pt[k1].y - pt[i].y;
+ /* find largest integer j such that xprod(constraint[0], cur+j*dk)
+ >= 0 and xprod(constraint[1], cur+j*dk) <= 0. Use bilinearity
+ of xprod. */
+ a = xprod(constraint[0], cur);
+ b = xprod(constraint[0], dk);
+ c = xprod(constraint[1], cur);
+ d = xprod(constraint[1], dk);
+ /* find largest integer j such that a+j*b>=0 and c+j*d<=0. This
+ can be solved with integer arithmetic. */
+ j = INFTY;
+ if (b<0) {
+ j = floordiv(a,-b);
+ }
+ if (d>0) {
+ j = min(j, floordiv(-c,d));
+ }
+ pivk[i] = mod(k1+j,n);
+ foundk:
+ ;
+ } /* for i */
+
+ /* clean up: for each i, let lon[i] be the largest k such that for
+ all i' with i<=i'<k, i'<k<=pivk[i']. */
+
+ j=pivk[n-1];
+ pp->lon[n-1]=j;
+ for (i=n-2; i>=0; i--) {
+ if (cyclic(i+1,pivk[i],j)) {
+ j=pivk[i];
+ }
+ pp->lon[i]=j;
+ }
+
+ for (i=n-1; cyclic(mod(i+1,n),j,pp->lon[i]); i--) {
+ pp->lon[i] = j;
+ }
+
+ free(pivk);
+ free(nc);
+ return 0;
+
+ malloc_error:
+ free(pivk);
+ free(nc);
+ return 1;
+}
+
+
+/* ---------------------------------------------------------------------- */
+/* Stage 2: calculate the optimal polygon (Sec. 2.2.2-2.2.4). */
+
+/* Auxiliary function: calculate the penalty of an edge from i to j in
+ the given path. This needs the "lon" and "sum*" data. */
+
+static double penalty3(privpath_t *pp, int i, int j) {
+ int n = pp->len;
+ point_t *pt = pp->pt;
+ sums_t *sums = pp->sums;
+
+ /* assume 0<=i<j<=n */
+ double x, y, x2, xy, y2;
+ double k;
+ double a, b, c, s;
+ double px, py, ex, ey;
+
+ int r = 0; /* rotations from i to j */
+
+ if (j>=n) {
+ j -= n;
+ r = 1;
+ }
+
+ /* critical inner loop: the "if" gives a 4.6 percent speedup */
+ if (r == 0) {
+ x = sums[j+1].x - sums[i].x;
+ y = sums[j+1].y - sums[i].y;
+ x2 = sums[j+1].x2 - sums[i].x2;
+ xy = sums[j+1].xy - sums[i].xy;
+ y2 = sums[j+1].y2 - sums[i].y2;
+ k = j+1 - i;
+ } else {
+ x = sums[j+1].x - sums[i].x + sums[n].x;
+ y = sums[j+1].y - sums[i].y + sums[n].y;
+ x2 = sums[j+1].x2 - sums[i].x2 + sums[n].x2;
+ xy = sums[j+1].xy - sums[i].xy + sums[n].xy;
+ y2 = sums[j+1].y2 - sums[i].y2 + sums[n].y2;
+ k = j+1 - i + n;
+ }
+
+ px = (pt[i].x + pt[j].x) / 2.0 - pt[0].x;
+ py = (pt[i].y + pt[j].y) / 2.0 - pt[0].y;
+ ey = (pt[j].x - pt[i].x);
+ ex = -(pt[j].y - pt[i].y);
+
+ a = ((x2 - 2*x*px) / k + px*px);
+ b = ((xy - x*py - y*px) / k + px*py);
+ c = ((y2 - 2*y*py) / k + py*py);
+
+ s = ex*ex*a + 2*ex*ey*b + ey*ey*c;
+
+ return sqrt(s);
+}
+
+/* find the optimal polygon. Fill in the m and po components. Return 1
+ on failure with errno set, else 0. Non-cyclic version: assumes i=0
+ is in the polygon. Fixme: implement cyclic version. */
+static int bestpolygon(privpath_t *pp)
+{
+ int i, j, m, k;
+ int n = pp->len;
+ double *pen = NULL; /* pen[n+1]: penalty vector */
+ int *prev = NULL; /* prev[n+1]: best path pointer vector */
+ int *clip0 = NULL; /* clip0[n]: longest segment pointer, non-cyclic */
+ int *clip1 = NULL; /* clip1[n+1]: backwards segment pointer, non-cyclic */
+ int *seg0 = NULL; /* seg0[m+1]: forward segment bounds, m<=n */
+ int *seg1 = NULL; /* seg1[m+1]: backward segment bounds, m<=n */
+ double thispen;
+ double best;
+ int c;
+
+ SAFE_MALLOC(pen, n+1, double);
+ SAFE_MALLOC(prev, n+1, int);
+ SAFE_MALLOC(clip0, n, int);
+ SAFE_MALLOC(clip1, n+1, int);
+ SAFE_MALLOC(seg0, n+1, int);
+ SAFE_MALLOC(seg1, n+1, int);
+
+ /* calculate clipped paths */
+ for (i=0; i<n; i++) {
+ c = mod(pp->lon[mod(i-1,n)]-1,n);
+ if (c == i) {
+ c = mod(i+1,n);
+ }
+ if (c < i) {
+ clip0[i] = n;
+ } else {
+ clip0[i] = c;
+ }
+ }
+
+ /* calculate backwards path clipping, non-cyclic. j <= clip0[i] iff
+ clip1[j] <= i, for i,j=0..n. */
+ j = 1;
+ for (i=0; i<n; i++) {
+ while (j <= clip0[i]) {
+ clip1[j] = i;
+ j++;
+ }
+ }
+
+ /* calculate seg0[j] = longest path from 0 with j segments */
+ i = 0;
+ for (j=0; i<n; j++) {
+ seg0[j] = i;
+ i = clip0[i];
+ }
+ seg0[j] = n;
+ m = j;
+
+ /* calculate seg1[j] = longest path to n with m-j segments */
+ i = n;
+ for (j=m; j>0; j--) {
+ seg1[j] = i;
+ i = clip1[i];
+ }
+ seg1[0] = 0;
+
+ /* now find the shortest path with m segments, based on penalty3 */
+ /* note: the outer 2 loops jointly have at most n iterations, thus
+ the worst-case behavior here is quadratic. In practice, it is
+ close to linear since the inner loop tends to be short. */
+ pen[0]=0;
+ for (j=1; j<=m; j++) {
+ for (i=seg1[j]; i<=seg0[j]; i++) {
+ best = -1;
+ for (k=seg0[j-1]; k>=clip1[i]; k--) {
+ thispen = penalty3(pp, k, i) + pen[k];
+ if (best < 0 || thispen < best) {
+ prev[i] = k;
+ best = thispen;
+ }
+ }
+ pen[i] = best;
+ }
+ }
+
+ pp->m = m;
+ SAFE_MALLOC(pp->po, m, int);
+
+ /* read off shortest path */
+ for (i=n, j=m-1; i>0; j--) {
+ i = prev[i];
+ pp->po[j] = i;
+ }
+
+ free(pen);
+ free(prev);
+ free(clip0);
+ free(clip1);
+ free(seg0);
+ free(seg1);
+ return 0;
+
+ malloc_error:
+ free(pen);
+ free(prev);
+ free(clip0);
+ free(clip1);
+ free(seg0);
+ free(seg1);
+ return 1;
+}
+
+/* ---------------------------------------------------------------------- */
+/* Stage 3: vertex adjustment (Sec. 2.3.1). */
+
+/* Adjust vertices of optimal polygon: calculate the intersection of
+ the two "optimal" line segments, then move it into the unit square
+ if it lies outside. Return 1 with errno set on error; 0 on
+ success. */
+
+static int adjust_vertices(privpath_t *pp) {
+ int m = pp->m;
+ int *po = pp->po;
+ int n = pp->len;
+ point_t *pt = pp->pt;
+ int x0 = pp->x0;
+ int y0 = pp->y0;
+
+ dpoint_t *ctr = NULL; /* ctr[m] */
+ dpoint_t *dir = NULL; /* dir[m] */
+ quadform_t *q = NULL; /* q[m] */
+ double v[3];
+ double d;
+ int i, j, k, l;
+ dpoint_t s;
+ int r;
+
+ SAFE_MALLOC(ctr, m, dpoint_t);
+ SAFE_MALLOC(dir, m, dpoint_t);
+ SAFE_MALLOC(q, m, quadform_t);
+
+ r = privcurve_init(&pp->curve, m);
+ if (r) {
+ goto malloc_error;
+ }
+
+ /* calculate "optimal" point-slope representation for each line
+ segment */
+ for (i=0; i<m; i++) {
+ j = po[mod(i+1,m)];
+ j = mod(j-po[i],n)+po[i];
+ pointslope(pp, po[i], j, &ctr[i], &dir[i]);
+ }
+
+ /* represent each line segment as a singular quadratic form; the
+ distance of a point (x,y) from the line segment will be
+ (x,y,1)Q(x,y,1)^t, where Q=q[i]. */
+ for (i=0; i<m; i++) {
+ d = sq(dir[i].x) + sq(dir[i].y);
+ if (d == 0.0) {
+ for (j=0; j<3; j++) {
+ for (k=0; k<3; k++) {
+ q[i][j][k] = 0;
+ }
+ }
+ } else {
+ v[0] = dir[i].y;
+ v[1] = -dir[i].x;
+ v[2] = - v[1] * ctr[i].y - v[0] * ctr[i].x;
+ for (l=0; l<3; l++) {
+ for (k=0; k<3; k++) {
+ q[i][l][k] = v[l] * v[k] / d;
+ }
+ }
+ }
+ }
+
+ /* now calculate the "intersections" of consecutive segments.
+ Instead of using the actual intersection, we find the point
+ within a given unit square which minimizes the square distance to
+ the two lines. */
+ for (i=0; i<m; i++) {
+ quadform_t Q;
+ dpoint_t w;
+ double dx, dy;
+ double det;
+ double min, cand; /* minimum and candidate for minimum of quad. form */
+ double xmin, ymin; /* coordinates of minimum */
+ int z;
+
+ /* let s be the vertex, in coordinates relative to x0/y0 */
+ s.x = pt[po[i]].x-x0;
+ s.y = pt[po[i]].y-y0;
+
+ /* intersect segments i-1 and i */
+
+ j = mod(i-1,m);
+
+ /* add quadratic forms */
+ for (l=0; l<3; l++) {
+ for (k=0; k<3; k++) {
+ Q[l][k] = q[j][l][k] + q[i][l][k];
+ }
+ }
+
+ while(1) {
+ /* minimize the quadratic form Q on the unit square */
+ /* find intersection */
+
+#ifdef HAVE_GCC_LOOP_BUG
+ /* work around gcc bug #12243 */
+ free(NULL);
+#endif
+
+ det = Q[0][0]*Q[1][1] - Q[0][1]*Q[1][0];
+ if (det != 0.0) {
+ w.x = (-Q[0][2]*Q[1][1] + Q[1][2]*Q[0][1]) / det;
+ w.y = ( Q[0][2]*Q[1][0] - Q[1][2]*Q[0][0]) / det;
+ break;
+ }
+
+ /* matrix is singular - lines are parallel. Add another,
+ orthogonal axis, through the center of the unit square */
+ if (Q[0][0]>Q[1][1]) {
+ v[0] = -Q[0][1];
+ v[1] = Q[0][0];
+ } else if (Q[1][1]) {
+ v[0] = -Q[1][1];
+ v[1] = Q[1][0];
+ } else {
+ v[0] = 1;
+ v[1] = 0;
+ }
+ d = sq(v[0]) + sq(v[1]);
+ v[2] = - v[1] * s.y - v[0] * s.x;
+ for (l=0; l<3; l++) {
+ for (k=0; k<3; k++) {
+ Q[l][k] += v[l] * v[k] / d;
+ }
+ }
+ }
+ dx = fabs(w.x-s.x);
+ dy = fabs(w.y-s.y);
+ if (dx <= .5 && dy <= .5) {
+ pp->curve.vertex[i].x = w.x+x0;
+ pp->curve.vertex[i].y = w.y+y0;
+ continue;
+ }
+
+ /* the minimum was not in the unit square; now minimize quadratic
+ on boundary of square */
+ min = quadform(Q, s);
+ xmin = s.x;
+ ymin = s.y;
+
+ if (Q[0][0] == 0.0) {
+ goto fixx;
+ }
+ for (z=0; z<2; z++) { /* value of the y-coordinate */
+ w.y = s.y-0.5+z;
+ w.x = - (Q[0][1] * w.y + Q[0][2]) / Q[0][0];
+ dx = fabs(w.x-s.x);
+ cand = quadform(Q, w);
+ if (dx <= .5 && cand < min) {
+ min = cand;
+ xmin = w.x;
+ ymin = w.y;
+ }
+ }
+ fixx:
+ if (Q[1][1] == 0.0) {
+ goto corners;
+ }
+ for (z=0; z<2; z++) { /* value of the x-coordinate */
+ w.x = s.x-0.5+z;
+ w.y = - (Q[1][0] * w.x + Q[1][2]) / Q[1][1];
+ dy = fabs(w.y-s.y);
+ cand = quadform(Q, w);
+ if (dy <= .5 && cand < min) {
+ min = cand;
+ xmin = w.x;
+ ymin = w.y;
+ }
+ }
+ corners:
+ /* check four corners */
+ for (l=0; l<2; l++) {
+ for (k=0; k<2; k++) {
+ w.x = s.x-0.5+l;
+ w.y = s.y-0.5+k;
+ cand = quadform(Q, w);
+ if (cand < min) {
+ min = cand;
+ xmin = w.x;
+ ymin = w.y;
+ }
+ }
+ }
+
+ pp->curve.vertex[i].x = xmin + x0;
+ pp->curve.vertex[i].y = ymin + y0;
+ continue;
+ }
+
+ free(ctr);
+ free(dir);
+ free(q);
+ return 0;
+
+ malloc_error:
+ free(ctr);
+ free(dir);
+ free(q);
+ return 1;
+}
+
+/* ---------------------------------------------------------------------- */
+/* Stage 4: smoothing and corner analysis (Sec. 2.3.3) */
+
+/* reverse orientation of a path */
+static void reverse(privcurve_t *curve) {
+ int m = curve->n;
+ int i, j;
+ dpoint_t tmp;
+
+ for (i=0, j=m-1; i<j; i++, j--) {
+ tmp = curve->vertex[i];
+ curve->vertex[i] = curve->vertex[j];
+ curve->vertex[j] = tmp;
+ }
+}
+
+/* Always succeeds */
+static void smooth(privcurve_t *curve, double alphamax) {
+ int m = curve->n;
+
+ int i, j, k;
+ double dd, denom, alpha;
+ dpoint_t p2, p3, p4;
+
+ /* examine each vertex and find its best fit */
+ for (i=0; i<m; i++) {
+ j = mod(i+1, m);
+ k = mod(i+2, m);
+ p4 = interval(1/2.0, curve->vertex[k], curve->vertex[j]);
+
+ denom = ddenom(curve->vertex[i], curve->vertex[k]);
+ if (denom != 0.0) {
+ dd = dpara(curve->vertex[i], curve->vertex[j], curve->vertex[k]) / denom;
+ dd = fabs(dd);
+ alpha = dd>1 ? (1 - 1.0/dd) : 0;
+ alpha = alpha / 0.75;
+ } else {
+ alpha = 4/3.0;
+ }
+ curve->alpha0[j] = alpha; /* remember "original" value of alpha */
+
+ if (alpha >= alphamax) { /* pointed corner */
+ curve->tag[j] = POTRACE_CORNER;
+ curve->c[j][1] = curve->vertex[j];
+ curve->c[j][2] = p4;
+ } else {
+ if (alpha < 0.55) {
+ alpha = 0.55;
+ } else if (alpha > 1) {
+ alpha = 1;
+ }
+ p2 = interval(.5+.5*alpha, curve->vertex[i], curve->vertex[j]);
+ p3 = interval(.5+.5*alpha, curve->vertex[k], curve->vertex[j]);
+ curve->tag[j] = POTRACE_CURVETO;
+ curve->c[j][0] = p2;
+ curve->c[j][1] = p3;
+ curve->c[j][2] = p4;
+ }
+ curve->alpha[j] = alpha; /* store the "cropped" value of alpha */
+ curve->beta[j] = 0.5;
+ }
+ curve->alphacurve = 1;
+
+ return;
+}
+
+/* ---------------------------------------------------------------------- */
+/* Stage 5: Curve optimization (Sec. 2.4) */
+
+/* a private type for the result of opti_penalty */
+struct opti_s {
+ double pen; /* penalty */
+ dpoint_t c[2]; /* curve parameters */
+ double t, s; /* curve parameters */
+ double alpha; /* curve parameter */
+};
+typedef struct opti_s opti_t;
+
+/* calculate best fit from i+.5 to j+.5. Assume i<j (cyclically).
+ Return 0 and set badness and parameters (alpha, beta), if
+ possible. Return 1 if impossible. */
+static int opti_penalty(privpath_t *pp, int i, int j, opti_t *res, double opttolerance, int *convc, double *areac) {
+ int m = pp->curve.n;
+ int k, k1, k2, conv, i1;
+ double area, alpha, d, d1, d2;
+ dpoint_t p0, p1, p2, p3, pt;
+ double A, R, A1, A2, A3, A4;
+ double s, t;
+
+ /* check convexity, corner-freeness, and maximum bend < 179 degrees */
+
+ if (i==j) { /* sanity - a full loop can never be an opticurve */
+ return 1;
+ }
+
+ k = i;
+ i1 = mod(i+1, m);
+ k1 = mod(k+1, m);
+ conv = convc[k1];
+ if (conv == 0) {
+ return 1;
+ }
+ d = ddist(pp->curve.vertex[i], pp->curve.vertex[i1]);
+ for (k=k1; k!=j; k=k1) {
+ k1 = mod(k+1, m);
+ k2 = mod(k+2, m);
+ if (convc[k1] != conv) {
+ return 1;
+ }
+ if (sign(cprod(pp->curve.vertex[i], pp->curve.vertex[i1], pp->curve.vertex[k1], pp->curve.vertex[k2])) != conv) {
+ return 1;
+ }
+ if (iprod1(pp->curve.vertex[i], pp->curve.vertex[i1], pp->curve.vertex[k1], pp->curve.vertex[k2]) < d * ddist(pp->curve.vertex[k1], pp->curve.vertex[k2]) * COS179) {
+ return 1;
+ }
+ }
+
+ /* the curve we're working in: */
+ p0 = pp->curve.c[mod(i,m)][2];
+ p1 = pp->curve.vertex[mod(i+1,m)];
+ p2 = pp->curve.vertex[mod(j,m)];
+ p3 = pp->curve.c[mod(j,m)][2];
+
+ /* determine its area */
+ area = areac[j] - areac[i];
+ area -= dpara(pp->curve.vertex[0], pp->curve.c[i][2], pp->curve.c[j][2])/2;
+ if (i>=j) {
+ area += areac[m];
+ }
+
+ /* find intersection o of p0p1 and p2p3. Let t,s such that o =
+ interval(t,p0,p1) = interval(s,p3,p2). Let A be the area of the
+ triangle (p0,o,p3). */
+
+ A1 = dpara(p0, p1, p2);
+ A2 = dpara(p0, p1, p3);
+ A3 = dpara(p0, p2, p3);
+ /* A4 = dpara(p1, p2, p3); */
+ A4 = A1+A3-A2;
+
+ if (A2 == A1) { /* this should never happen */
+ return 1;
+ }
+
+ t = A3/(A3-A4);
+ s = A2/(A2-A1);
+ A = A2 * t / 2.0;
+
+ if (A == 0.0) { /* this should never happen */
+ return 1;
+ }
+
+ R = area / A; /* relative area */
+ alpha = 2 - sqrt(4 - R / 0.3); /* overall alpha for p0-o-p3 curve */
+
+ res->c[0] = interval(t * alpha, p0, p1);
+ res->c[1] = interval(s * alpha, p3, p2);
+ res->alpha = alpha;
+ res->t = t;
+ res->s = s;
+
+ p1 = res->c[0];
+ p2 = res->c[1]; /* the proposed curve is now (p0,p1,p2,p3) */
+
+ res->pen = 0;
+
+ /* calculate penalty */
+ /* check tangency with edges */
+ for (k=mod(i+1,m); k!=j; k=k1) {
+ k1 = mod(k+1,m);
+ t = tangent(p0, p1, p2, p3, pp->curve.vertex[k], pp->curve.vertex[k1]);
+ if (t<-.5) {
+ return 1;
+ }
+ pt = bezier(t, p0, p1, p2, p3);
+ d = ddist(pp->curve.vertex[k], pp->curve.vertex[k1]);
+ if (d == 0.0) { /* this should never happen */
+ return 1;
+ }
+ d1 = dpara(pp->curve.vertex[k], pp->curve.vertex[k1], pt) / d;
+ if (fabs(d1) > opttolerance) {
+ return 1;
+ }
+ if (iprod(pp->curve.vertex[k], pp->curve.vertex[k1], pt) < 0 || iprod(pp->curve.vertex[k1], pp->curve.vertex[k], pt) < 0) {
+ return 1;
+ }
+ res->pen += sq(d1);
+ }
+
+ /* check corners */
+ for (k=i; k!=j; k=k1) {
+ k1 = mod(k+1,m);
+ t = tangent(p0, p1, p2, p3, pp->curve.c[k][2], pp->curve.c[k1][2]);
+ if (t<-.5) {
+ return 1;
+ }
+ pt = bezier(t, p0, p1, p2, p3);
+ d = ddist(pp->curve.c[k][2], pp->curve.c[k1][2]);
+ if (d == 0.0) { /* this should never happen */
+ return 1;
+ }
+ d1 = dpara(pp->curve.c[k][2], pp->curve.c[k1][2], pt) / d;
+ d2 = dpara(pp->curve.c[k][2], pp->curve.c[k1][2], pp->curve.vertex[k1]) / d;
+ d2 *= 0.75 * pp->curve.alpha[k1];
+ if (d2 < 0) {
+ d1 = -d1;
+ d2 = -d2;
+ }
+ if (d1 < d2 - opttolerance) {
+ return 1;
+ }
+ if (d1 < d2) {
+ res->pen += sq(d1 - d2);
+ }
+ }
+
+ return 0;
+}
+
+/* optimize the path p, replacing sequences of Bezier segments by a
+ single segment when possible. Return 0 on success, 1 with errno set
+ on failure. */
+static int opticurve(privpath_t *pp, double opttolerance) {
+ int m = pp->curve.n;
+ int *pt = NULL; /* pt[m+1] */
+ double *pen = NULL; /* pen[m+1] */
+ int *len = NULL; /* len[m+1] */
+ opti_t *opt = NULL; /* opt[m+1] */
+ int om;
+ int i,j,r;
+ opti_t o;
+ dpoint_t p0;
+ int i1;
+ double area;
+ double alpha;
+ double *s = NULL;
+ double *t = NULL;
+
+ int *convc = NULL; /* conv[m]: pre-computed convexities */
+ double *areac = NULL; /* cumarea[m+1]: cache for fast area computation */
+
+ SAFE_MALLOC(pt, m+1, int);
+ SAFE_MALLOC(pen, m+1, double);
+ SAFE_MALLOC(len, m+1, int);
+ SAFE_MALLOC(opt, m+1, opti_t);
+ SAFE_MALLOC(convc, m, int);
+ SAFE_MALLOC(areac, m+1, double);
+
+ /* pre-calculate convexity: +1 = right turn, -1 = left turn, 0 = corner */
+ for (i=0; i<m; i++) {
+ if (pp->curve.tag[i] == POTRACE_CURVETO) {
+ convc[i] = sign(dpara(pp->curve.vertex[mod(i-1,m)], pp->curve.vertex[i], pp->curve.vertex[mod(i+1,m)]));
+ } else {
+ convc[i] = 0;
+ }
+ }
+
+ /* pre-calculate areas */
+ area = 0.0;
+ areac[0] = 0.0;
+ p0 = pp->curve.vertex[0];
+ for (i=0; i<m; i++) {
+ i1 = mod(i+1, m);
+ if (pp->curve.tag[i1] == POTRACE_CURVETO) {
+ alpha = pp->curve.alpha[i1];
+ area += 0.3*alpha*(4-alpha)*dpara(pp->curve.c[i][2], pp->curve.vertex[i1], pp->curve.c[i1][2])/2;
+ area += dpara(p0, pp->curve.c[i][2], pp->curve.c[i1][2])/2;
+ }
+ areac[i+1] = area;
+ }
+
+ pt[0] = -1;
+ pen[0] = 0;
+ len[0] = 0;
+
+ /* Fixme: we always start from a fixed point -- should find the best
+ curve cyclically */
+
+ for (j=1; j<=m; j++) {
+ /* calculate best path from 0 to j */
+ pt[j] = j-1;
+ pen[j] = pen[j-1];
+ len[j] = len[j-1]+1;
+
+ for (i=j-2; i>=0; i--) {
+ r = opti_penalty(pp, i, mod(j,m), &o, opttolerance, convc, areac);
+ if (r) {
+ break;
+ }
+ if (len[j] > len[i]+1 || (len[j] == len[i]+1 && pen[j] > pen[i] + o.pen)) {
+ pt[j] = i;
+ pen[j] = pen[i] + o.pen;
+ len[j] = len[i] + 1;
+ opt[j] = o;
+ }
+ }
+ }
+ om = len[m];
+ r = privcurve_init(&pp->ocurve, om);
+ if (r) {
+ goto malloc_error;
+ }
+ SAFE_MALLOC(s, om, double);
+ SAFE_MALLOC(t, om, double);
+
+ j = m;
+ for (i=om-1; i>=0; i--) {
+ if (pt[j]==j-1) {
+ pp->ocurve.tag[i] = pp->curve.tag[mod(j,m)];
+ pp->ocurve.c[i][0] = pp->curve.c[mod(j,m)][0];
+ pp->ocurve.c[i][1] = pp->curve.c[mod(j,m)][1];
+ pp->ocurve.c[i][2] = pp->curve.c[mod(j,m)][2];
+ pp->ocurve.vertex[i] = pp->curve.vertex[mod(j,m)];
+ pp->ocurve.alpha[i] = pp->curve.alpha[mod(j,m)];
+ pp->ocurve.alpha0[i] = pp->curve.alpha0[mod(j,m)];
+ pp->ocurve.beta[i] = pp->curve.beta[mod(j,m)];
+ s[i] = t[i] = 1.0;
+ } else {
+ pp->ocurve.tag[i] = POTRACE_CURVETO;
+ pp->ocurve.c[i][0] = opt[j].c[0];
+ pp->ocurve.c[i][1] = opt[j].c[1];
+ pp->ocurve.c[i][2] = pp->curve.c[mod(j,m)][2];
+ pp->ocurve.vertex[i] = interval(opt[j].s, pp->curve.c[mod(j,m)][2], pp->curve.vertex[mod(j,m)]);
+ pp->ocurve.alpha[i] = opt[j].alpha;
+ pp->ocurve.alpha0[i] = opt[j].alpha;
+ s[i] = opt[j].s;
+ t[i] = opt[j].t;
+ }
+ j = pt[j];
+ }
+
+ /* calculate beta parameters */
+ for (i=0; i<om; i++) {
+ i1 = mod(i+1,om);
+ pp->ocurve.beta[i] = s[i] / (s[i] + t[i1]);
+ }
+ pp->ocurve.alphacurve = 1;
+
+ free(pt);
+ free(pen);
+ free(len);
+ free(opt);
+ free(s);
+ free(t);
+ free(convc);
+ free(areac);
+ return 0;
+
+ malloc_error:
+ free(pt);
+ free(pen);
+ free(len);
+ free(opt);
+ free(s);
+ free(t);
+ free(convc);
+ free(areac);
+ return 1;
+}
+
+/* ---------------------------------------------------------------------- */
+
+#define TRY(x) if (x) goto try_error
+
+/* return 0 on success, 1 on error with errno set. */
+int process_path(path_t *plist, const potrace_param_t *param, progress_t *progress) {
+ path_t *p;
+ double nn = 0, cn = 0;
+
+ if (progress->callback) {
+ /* precompute task size for progress estimates */
+ nn = 0;
+ list_forall (p, plist) {
+ nn += p->priv->len;
+ }
+ cn = 0;
+ }
+
+ /* call downstream function with each path */
+ list_forall (p, plist) {
+ TRY(calc_sums(p->priv));
+ TRY(calc_lon(p->priv));
+ TRY(bestpolygon(p->priv));
+ TRY(adjust_vertices(p->priv));
+ if (p->sign == '-') { /* reverse orientation of negative paths */
+ reverse(&p->priv->curve);
+ }
+ smooth(&p->priv->curve, param->alphamax);
+ if (param->opticurve) {
+ TRY(opticurve(p->priv, param->opttolerance));
+ p->priv->fcurve = &p->priv->ocurve;
+ } else {
+ p->priv->fcurve = &p->priv->curve;
+ }
+ privcurve_to_curve(p->priv->fcurve, &p->curve);
+
+ if (progress->callback) {
+ cn += p->priv->len;
+ progress_update(cn/nn, progress);
+ }
+ }
+
+ progress_update(1.0, progress);
+
+ return 0;
+
+ try_error:
+ return 1;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/trace.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/trace.h
new file mode 100644
index 00000000000..d24ffb354ec
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/potracelib/trace.h
@@ -0,0 +1,15 @@
+/* Copyright (C) 2001-2013 Peter Selinger.
+ This file is part of Potrace. It is free software and it is covered
+ by the GNU General Public License. See the file COPYING for details. */
+
+
+#ifndef TRACE_H
+#define TRACE_H
+
+#include "potracelib.h"
+#include "progress.h"
+#include "curve.h"
+
+int process_path(path_t *plist, const potrace_param_t *param, progress_t *progress);
+
+#endif /* TRACE_H */
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BgColorSpecialHandler.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BgColorSpecialHandler.cpp
new file mode 100644
index 00000000000..a225d360910
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BgColorSpecialHandler.cpp
@@ -0,0 +1,37 @@
+/*************************************************************************
+** BgColorSpecialHandler.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include "BgColorSpecialHandler.h"
+#include "ColorSpecialHandler.h"
+#include "SpecialActions.h"
+
+using namespace std;
+
+
+bool BgColorSpecialHandler::process (const char *prefix, istream &is, SpecialActions *actions) {
+ ColorSpecialHandler csh;
+ return csh.process(prefix, is, actions);
+}
+
+
+const char** BgColorSpecialHandler::prefixes () const {
+ static const char *pfx[] = {"background", 0};
+ return pfx;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BgColorSpecialHandler.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BgColorSpecialHandler.h
new file mode 100644
index 00000000000..98dd814ba9e
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BgColorSpecialHandler.h
@@ -0,0 +1,34 @@
+/*************************************************************************
+** BgColorSpecialHandler.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef BGCOLORSPECIALHANDLER_H
+#define BGCOLORSPECIALHANDLER_H
+
+#include "SpecialManager.h"
+
+struct BgColorSpecialHandler : SpecialHandler
+{
+ const char* info () const {return "background color special";}
+ const char* name () const {return "bgcolor";}
+ const char** prefixes () const;
+ bool process (const char *prefix, std::istream &is, SpecialActions *actions);
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Bitmap.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Bitmap.cpp
new file mode 100644
index 00000000000..e72d5ee34ac
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Bitmap.cpp
@@ -0,0 +1,124 @@
+/*************************************************************************
+** Bitmap.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstdlib>
+#include <iostream>
+#include "Bitmap.h"
+#include "macros.h"
+
+using namespace std;
+
+Bitmap::Bitmap () : _rows(0), _cols(0), _xshift(0), _yshift(0), _bpr(0), _bytes(0)
+{
+}
+
+
+/** Constructs a Bitmap */
+Bitmap::Bitmap (int minx, int maxx, int miny , int maxy) {
+ resize(minx, maxx, miny, maxy);
+}
+
+
+/** Resizes the bitmap and clears all pixels.
+ * @param[in] minx index of leftmost pixel column
+ * @param[in] maxx index of rightmost pixel column
+ * @param[in] miny index of bottom row
+ * @param[in] maxy index of top row */
+void Bitmap::resize (int minx, int maxx, int miny , int maxy) {
+ _rows = abs(maxy-miny)+1;
+ _cols = abs(maxx-minx)+1;
+ _xshift = minx;
+ _yshift = miny;
+ _bpr = _cols/8 + (_cols % 8 ? 1 : 0); // bytes per row
+ _bytes.resize(_rows*_bpr);
+ FORALL(_bytes, vector<UInt8>::iterator, it)
+ *it = 0;
+}
+
+
+/** Sets n pixels of row r to 1 starting at pixel c.
+ * @param[in] r number of row
+ * @param[in] c number of column (pixel)
+ * @param[in] n number of bits to be set */
+void Bitmap::setBits (int r, int c, int n) {
+ r -= _yshift;
+ c -= _xshift;
+ UInt8 *byte = &_bytes[r*_bpr + c/8];// + (c%8 ? 1 : 0);
+ while (n > 0) {
+ int b = 7 - c%8; // number of leftmost bit in current byte to be set
+ int m = min(n, b+1); // number of bits to be set in current byte
+ int bitseq = (1 << m)-1; // sequence of n set bits (bits 0..n-1 are set)
+ bitseq <<= b-m+1; // move bit sequence so that bit b is the leftmost set bit
+ *byte |= UInt8(bitseq); // apply bit sequence to current byte
+ byte++;
+ n -= m;
+ c += m;
+ }
+}
+
+
+void Bitmap::forAllPixels (ForAllData &data) const {
+ for (int y=_rows-1; y >= 0 ; y--) {
+ for (int c=0; c < _bpr; c++) {
+ UInt8 byte = _bytes[y*_bpr+c];
+ int x;
+ for (int b=7; (b >= 0) && ((x = 8*c+(7-b)) < _cols); b--) {
+ data.pixel(x, y, byte & (1 << b), *this);
+ }
+ }
+ }
+}
+
+
+struct BBoxData : public Bitmap::ForAllData
+{
+ BBoxData () : maxx(0), maxy(0) {}
+ void pixel (int x, int y, bool set, const Bitmap &bm) {
+ if (set) {
+ maxx = max(maxx, x);
+ maxy = max(maxy, y);
+ }
+ }
+ int maxx, maxy;
+};
+
+
+void Bitmap::bbox (int &w, int &h) const {
+ BBoxData data;
+ forAllPixels(data);
+ w = data.maxx+1;
+ h = data.maxy+1;
+}
+
+
+ostream& Bitmap::write (ostream &os) const {
+#if 0
+ for (int r=_rows-1; r >= 0 ; r--) {
+ for (int c=0; c < _bpr; c++) {
+ UInt8 byte = _bytes[r*_bpr+c];
+ for (int b=128; b; b>>=1)
+ os << (byte & b ? '*' : '-');
+ os << ' ';
+ }
+ os << endl;
+ }
+#endif
+ return os;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Bitmap.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Bitmap.h
new file mode 100644
index 00000000000..1a1f19caf15
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Bitmap.h
@@ -0,0 +1,109 @@
+/*************************************************************************
+** Bitmap.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef BITMAP_H
+#define BITMAP_H
+
+#include <ostream>
+#include <vector>
+#include "types.h"
+
+
+class Bitmap
+{
+ public:
+ struct ForAllData {
+ virtual ~ForAllData() {}
+ virtual void pixel (int x, int y, bool set, Bitmap &bm) {}
+ virtual void pixel (int x, int y, bool set, const Bitmap &bm) {}
+ };
+
+ public:
+ Bitmap ();
+ Bitmap (int minx, int maxx, int miny , int maxy);
+ void resize (int minx, int maxx, int miny , int maxy);
+ void setBits(int r, int c, int n);
+ const UInt8* operator[] (int r) const {return &_bytes[r*_bpr];}
+ int height () const {return _rows;}
+ int width () const {return _cols;}
+ int xshift () const {return _xshift;}
+ int yshift () const {return _yshift;}
+ int bytesPerRow () const {return _bpr;}
+ bool empty () const {return (!_rows && !_cols) || _bytes.empty();}
+ void bbox (int &w, int &h) const;
+ void forAllPixels (ForAllData &data) const;
+
+ template <typename T>
+ int copy (std::vector<T> &target, bool vflip=false) const;
+
+// template <typename T>
+// void write (std::ostream &os, const std::vector<T> &v) const;
+
+ std::ostream& write (std::ostream &os) const;
+
+ private:
+ int _rows, _cols; ///< number of rows, columns
+ int _xshift, _yshift; ///< horizontal/vertical shift
+ int _bpr; ///< number of bytes per row
+ std::vector<UInt8> _bytes;
+};
+
+
+/** Copies the bitmap to a new target area and reorganize the bits.
+ * @param[out] target points to first T of new bitmap (must be deleted after usage)
+ * @param[in] vflip true if the new bitmap should be flipped vertically
+ * @return number of Ts per row */
+template <typename T>
+int Bitmap::copy (std::vector<T> &target, bool vflip) const {
+ const int s = sizeof(T);
+ const int tpr = _bpr/s + (_bpr%s ? 1 : 0); // number of Ts per row
+ target.resize(_rows*tpr);
+ for (int r=0; r < _rows; r++) {
+ int targetrow = vflip ? _rows-r-1 : r;
+ for (int b=0; b < _bpr; b++) {
+ T &t = target[targetrow*tpr + b/s];
+ T chunk = (T)_bytes[r*_bpr+b] << (8*(s-1-b%s));
+ if (b % s == 0)
+ t = chunk;
+ else
+ t |= chunk;
+ }
+ }
+ return tpr;
+}
+
+
+/*
+template <typename T>
+void Bitmap::write (std::ostream &os, const std::vector<T> &v) const {
+ const int s = sizeof(T);
+ const int tpr = _bpr/s + (_bpr%s ? 1 : 0); // number of Ts per row
+ for (int r=_rows-1; r >= 0; r--) {
+ for (int t=0; t < tpr; t++) {
+ for (T b=(T)1<<(8*s-1); b; b>>=1)
+ os << ((v[r*tpr+t] & b) ? '*' : '-');
+ os << ' ';
+ }
+ os << std::endl;
+ }
+}*/
+
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BoundingBox.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BoundingBox.cpp
new file mode 100644
index 00000000000..85ec9c4c452
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BoundingBox.cpp
@@ -0,0 +1,262 @@
+/*************************************************************************
+** BoundingBox.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <algorithm>
+#include <sstream>
+#include <string>
+#include "BoundingBox.h"
+#include "Matrix.h"
+#include "XMLNode.h"
+#include "XMLString.h"
+
+using namespace std;
+
+
+BoundingBox::BoundingBox ()
+ : _ulx(0), _uly(0), _lrx(0), _lry(0), _valid(false), _locked(false)
+{
+}
+
+
+BoundingBox::BoundingBox (double ulxx, double ulyy, double lrxx, double lryy)
+ : _ulx(min(ulxx,lrxx)), _uly(min(ulyy,lryy)),
+ _lrx(max(ulxx,lrxx)), _lry(max(ulyy,lryy)),
+ _valid(true), _locked(false)
+{
+}
+
+
+BoundingBox::BoundingBox (const DPair &p1, const DPair &p2)
+ : _ulx(min(p1.x(), p2.x())), _uly(min(p1.y(), p2.y())),
+ _lrx(max(p1.x(), p2.x())), _lry(max(p1.y(), p2.y())),
+ _valid(true), _locked(false)
+{
+}
+
+
+BoundingBox::BoundingBox (const Length &ulxx, const Length &ulyy, const Length &lrxx, const Length &lryy)
+ : _ulx(min(ulxx.pt(),lrxx.pt())), _uly(min(ulyy.pt(),lryy.pt())),
+ _lrx(max(ulxx.pt(),lrxx.pt())), _lry(max(ulyy.pt(),lryy.pt())),
+ _valid(true), _locked(false)
+{
+}
+
+
+BoundingBox::BoundingBox (const string &boxstr)
+ : _valid(false), _locked(false)
+{
+ set(boxstr);
+}
+
+
+/** Removes leading and trailing whitespace from the given string. */
+static string& strip (string &str) {
+ size_t n=0;
+ while (n < str.length() && isspace(str[n]))
+ ++n;
+ str.erase(0, n);
+ n=str.length()-1;
+ while (n > 0 && isspace(str[n]))
+ --n;
+ str.erase(n+1);
+ return str;
+}
+
+
+/** Sets or modifies the bounding box. If 'boxstr' consists of 4 length values,
+ * they denote the absolute position of two diagonal corners of the box. In case
+ * of a single length value l the current box is enlarged by adding (-l,-l) the upper
+ * left and (l,l) to the lower right corner.
+ * @param[in] boxstr whitespace and/or comma separated string of lengths. */
+void BoundingBox::set (string boxstr) {
+ vector<Length> coord;
+ const size_t len = boxstr.length();
+ size_t l=0;
+ strip(boxstr);
+ string lenstr;
+ do {
+ while (l < len && isspace(boxstr[l]))
+ l++;
+ size_t r=l;
+ while (r < len && !isspace(boxstr[r]) && boxstr[r] != ',')
+ r++;
+ lenstr = boxstr.substr(l, r-l);
+ if (!lenstr.empty()) {
+ coord.push_back(Length(lenstr));
+ if (boxstr[r] == ',')
+ r++;
+ l = r;
+ }
+ } while (!lenstr.empty() && coord.size() < 4);
+
+ switch (coord.size()) {
+ case 1:
+ _ulx -= coord[0].pt();
+ _uly -= coord[0].pt();
+ _lrx += coord[0].pt();
+ _lry += coord[0].pt();
+ break;
+ case 2:
+ _ulx -= coord[0].pt();
+ _uly -= coord[1].pt();
+ _lrx += coord[0].pt();
+ _lry += coord[1].pt();
+ break;
+ case 4:
+ _ulx = min(coord[0].pt(), coord[2].pt());
+ _uly = min(coord[1].pt(), coord[3].pt());
+ _lrx = max(coord[0].pt(), coord[2].pt());
+ _lry = max(coord[1].pt(), coord[3].pt());
+ break;
+ default:
+ throw BoundingBoxException("1, 2 or 4 length parameters expected");
+ }
+ _valid = true;
+}
+
+
+/** Enlarges the box so that point (x,y) is enclosed. */
+void BoundingBox::embed (double x, double y) {
+ if (!_locked) {
+ if (_valid) {
+ if (x < _ulx)
+ _ulx = x;
+ else if (x > _lrx)
+ _lrx = x;
+ if (y < _uly)
+ _uly = y;
+ else if (y > _lry)
+ _lry = y;
+ }
+ else {
+ _ulx = _lrx = x;
+ _uly = _lry = y;
+ _valid = true;
+ }
+ }
+}
+
+
+/** Enlarges the box so that box bb is enclosed. */
+void BoundingBox::embed (const BoundingBox &bb) {
+ if (!_locked && bb._valid) {
+ if (_valid) {
+ embed(bb._ulx, bb._uly);
+ embed(bb._lrx, bb._lry);
+ }
+ else {
+ _ulx = bb._ulx;
+ _uly = bb._uly;
+ _lrx = bb._lrx;
+ _lry = bb._lry;
+ _valid = true;
+ }
+ }
+}
+
+
+void BoundingBox::embed (const DPair &c, double r) {
+ embed(BoundingBox(c.x()-r, c.y()-r, c.x()+r, c.y()+r));
+}
+
+
+void BoundingBox::expand (double m) {
+ if (!_locked) {
+ _ulx -= m;
+ _uly -= m;
+ _lrx += m;
+ _lry += m;
+ }
+}
+
+
+/** Intersects the current box with bbox and applies the result to *this.
+ * If both boxes are disjoint, *this is not altered.
+ * @param[in] bbox box to intersect with
+ * @return false if *this is locked or both boxes are disjoint */
+bool BoundingBox::intersect (const BoundingBox &bbox) {
+ if (_locked || _lrx < bbox._ulx || _lry < bbox._uly || _ulx > bbox._lrx || _uly > bbox._lry)
+ return false;
+ _ulx = max(_ulx, bbox._ulx);
+ _uly = max(_uly, bbox._uly);
+ _lrx = min(_lrx, bbox._lrx);
+ _lry = min(_lry, bbox._lry);
+ return true;
+}
+
+
+void BoundingBox::operator += (const BoundingBox &bb) {
+ if (!_locked) {
+ _ulx += bb._ulx;
+ _uly += bb._uly;
+ _lrx += bb._lrx;
+ _lry += bb._lry;
+ }
+}
+
+
+void BoundingBox::scale (double sx, double sy) {
+ if (!_locked) {
+ _ulx *= sx;
+ _lrx *= sx;
+ if (sx < 0) swap(_ulx, _lrx);
+ _uly *= sy;
+ _lry *= sy;
+ if (sy < 0) swap(_uly, _lry);
+ }
+}
+
+
+void BoundingBox::transform (const Matrix &tm) {
+ if (!_locked) {
+ DPair ul = tm * DPair(_lrx, _lry);
+ DPair lr = tm * DPair(_ulx, _uly);
+ DPair ll = tm * DPair(_ulx, _lry);
+ DPair ur = tm * DPair(_lrx, _uly);
+ _ulx = min(min(ul.x(), lr.x()), min(ur.x(), ll.x()));
+ _uly = min(min(ul.y(), lr.y()), min(ur.y(), ll.y()));
+ _lrx = max(max(ul.x(), lr.x()), max(ur.x(), ll.x()));
+ _lry = max(max(ul.y(), lr.y()), max(ur.y(), ll.y()));
+ }
+}
+
+
+string BoundingBox::toSVGViewBox () const {
+ ostringstream oss;
+ oss << XMLString(_ulx) << ' ' << XMLString(_uly) << ' ' << XMLString(width()) << ' ' << XMLString(height());
+ return oss.str();
+}
+
+
+ostream& BoundingBox::write (ostream &os) const {
+ return os << '(' << _ulx << ", " << _uly
+ << ", " << _lrx << ", " << _lry << ')';
+}
+
+
+XMLElementNode* BoundingBox::toSVGRect () const {
+ XMLElementNode *rect = new XMLElementNode("rect");
+ rect->addAttribute("x", minX());
+ rect->addAttribute("y", minY());
+ rect->addAttribute("width", width());
+ rect->addAttribute("height", height());
+ rect->addAttribute("fill", "none");
+ return rect;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BoundingBox.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BoundingBox.h
new file mode 100644
index 00000000000..b3a4016f52a
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/BoundingBox.h
@@ -0,0 +1,86 @@
+/*************************************************************************
+** BoundingBox.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef BOUNDINGBOX_H
+#define BOUNDINGBOX_H
+
+#include <ostream>
+#include <string>
+#include "Length.h"
+#include "MessageException.h"
+#include "Pair.h"
+#include "macros.h"
+#include "types.h"
+
+
+class Matrix;
+class XMLElementNode;
+
+
+struct BoundingBoxException : MessageException
+{
+ BoundingBoxException (const std::string &msg) : MessageException(msg) {}
+};
+
+
+class BoundingBox
+{
+ public:
+ BoundingBox ();
+ BoundingBox (double ulxx, double ulyy, double lrxx, double lryy);
+ BoundingBox (const DPair &p1, const DPair &p2);
+ BoundingBox (const Length &ulxx, const Length &ulyy, const Length &lrxx, const Length &lryy);
+ BoundingBox (const std::string &boxstr);
+ void set (std::string boxstr);
+ void embed (double x, double y);
+ void embed (const BoundingBox &bb);
+ void embed (const DPair &p) {embed(p.x(), p.y());}
+ void embed (const DPair &c, double r);
+
+ template <typename T>
+ void embed (const Pair<T> &p) {embed(p.x(), p.y());}
+
+ void expand (double m);
+ bool intersect (const BoundingBox &bbox);
+ double minX () const {return _ulx;}
+ double minY () const {return _uly;}
+ double maxX () const {return _lrx;}
+ double maxY () const {return _lry;}
+ double width () const {return _lrx-_ulx;}
+ double height () const {return _lry-_uly;}
+ void lock () {_locked = true;}
+ void unlock () {_locked = false;}
+ void operator += (const BoundingBox &bb);
+ void scale (double sx, double sy);
+ void transform (const Matrix &tm);
+ std::string toSVGViewBox () const;
+ std::ostream& write (std::ostream &os) const;
+ XMLElementNode* toSVGRect () const;
+
+ private:
+ double _ulx, _uly; ///< coordinates of upper left vertex (in TeX point units)
+ double _lrx, _lry; ///< coordinates of lower right vertex (in TeX point unitx)
+ bool _valid : 1; ///< true if the box coordinates are properly set
+ bool _locked : 1; ///< if true, the box data is read-only
+};
+
+IMPLEMENT_OUTPUT_OPERATOR(BoundingBox)
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CRC32.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CRC32.cpp
new file mode 100644
index 00000000000..2295ab17bde
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CRC32.cpp
@@ -0,0 +1,112 @@
+/*************************************************************************
+** CRC32.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstring>
+#include "CRC32.h"
+
+using namespace std;
+
+
+CRC32::CRC32 () : _crc32(0xFFFFFFFF)
+{
+ const UInt32 poly = 0xEDB88320;
+ for (int i = 0; i < 256; i++) {
+ UInt32 crc=i;
+ for (int j=8; j > 0; j--) {
+ if (crc & 1)
+ crc = (crc >> 1) ^ poly;
+ else
+ crc >>= 1;
+ }
+ _tab[i] = crc;
+ }
+}
+
+
+/** Resets CRC32 sum to 0. */
+void CRC32::reset () {
+ _crc32 = 0xFFFFFFFF;
+}
+
+
+/** Appends string bytes to the previous data and computes the resulting checksum.
+ * @param[in] data string to update the checksum with */
+void CRC32::update (const char *data) {
+ update((const UInt8*)data, strlen(data));
+}
+
+
+/** Appends a single value to the previous data and computes the resulting checksum.
+ * @param[in] n value to update the checksum with
+ * @param[in] bytes number of bytes to consider (0-4) */
+void CRC32::update (UInt32 n, int bytes) {
+ for (int i=bytes-1; i >= 0; --i) {
+ UInt8 byte = UInt8((n >> (8*i)) & 0xff);
+ update(&byte, 1);
+ }
+}
+
+
+/** Appends a sequence of bytes to the previous data and computes the resulting checksum.
+ * @param[in] bytes pointer to array of bytes
+ * @param[in] len number of bytes in array */
+void CRC32::update (const UInt8 *bytes, size_t len) {
+ for (size_t i=0; i < len; ++i)
+ _crc32 = ((_crc32 >> 8) & 0x00FFFFFF) ^ _tab[(_crc32 ^ *bytes++) & 0xFF];
+}
+
+
+void CRC32::update (istream &is) {
+ char buf [4096];
+ while (is) {
+ is.read(buf, 4096);
+ update((UInt8*)buf, is.gcount());
+ }
+}
+
+
+/** Returns the checksum computed from values added with the update functions. */
+UInt32 CRC32::get () const {
+ return _crc32 ^ 0xFFFFFFFF;
+}
+
+
+/** Computes the CRC32 checksum of a sequence of bytes.
+ * @param[in] bytes pointer to array of bytes
+ * @param[in] len number of bytes in array
+ * @return CRC32 checksum */
+UInt32 CRC32::compute (const UInt8 *bytes, size_t len) {
+ CRC32 crc32;
+ crc32.update(bytes, len);
+ return crc32.get();
+}
+
+
+/** Computes the CRC32 checksum of a string. */
+UInt32 CRC32::compute (const char *str) {
+ return compute((const UInt8*)str, strlen(str));
+}
+
+
+UInt32 CRC32::compute (istream &is) {
+ CRC32 crc32;
+ crc32.update(is);
+ return crc32.get();
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CRC32.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CRC32.h
new file mode 100644
index 00000000000..ca8ec359d0f
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CRC32.h
@@ -0,0 +1,51 @@
+/*************************************************************************
+** CRC32.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef CRC32_H
+#define CRC32_H
+
+#include <cstdlib>
+#include <istream>
+#include "types.h"
+
+class CRC32
+{
+ public:
+ CRC32 ();
+ void update (const UInt8 *bytes, size_t len);
+ void update (UInt32 n, int bytes=4);
+ void update (const char *str);
+ void update (std::istream &is);
+ UInt32 get () const;
+ void reset ();
+ static UInt32 compute (const UInt8 *bytes, size_t len);
+ static UInt32 compute (const char *str);
+ static UInt32 compute (std::istream &is);
+
+ protected:
+ CRC32 (const CRC32 &crc32) {}
+
+ private:
+ UInt32 _crc32;
+ UInt32 _tab[256];
+};
+
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Calculator.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Calculator.cpp
new file mode 100644
index 00000000000..2814cc286e0
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Calculator.cpp
@@ -0,0 +1,178 @@
+/*************************************************************************
+** Calculator.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cmath>
+#include <sstream>
+#include "Calculator.h"
+
+using namespace std;
+
+// token types
+const char END = 0;
+const char NUMBER = 1;
+const char NAME = 2;
+
+
+#include <iostream>
+
+
+/** Evaluates a given arithmetic expression and returns its value.
+ * The evaluator is implemented as a recursive descendent parser.
+ * @param[in] is reads expression from this stream
+ * @return expression value */
+double Calculator::eval (istream &is) {
+ double ret = expr(is, false);
+ if (lookAhead(is) > 0)
+ throw CalculatorException("expression syntax error");
+ return ret;
+}
+
+
+/** Evaluates a given arithmetic expression and returns its value.
+ * @param[in] expr expression to evaluate
+ * @return expression value */
+double Calculator::eval (const string &expr) {
+ istringstream iss;
+ iss.str(expr);
+ return eval(iss);
+}
+
+
+/** Evaluates the root rule of the expression grammar. */
+double Calculator::expr (istream &is, bool skip) { // expr:
+ double left = term(is, skip);
+ while (1)
+ switch (lookAhead(is)) {
+ case '+': left += term(is, true); break; // term '+' term => $1 + $3
+ case '-': left -= term(is, true); break; // term '-' term => $1 - $3
+ default : return left; // term => $1
+ }
+}
+
+
+double Calculator::term (istream &is, bool skip) { // term:
+ double left = prim(is, skip);
+ while (1)
+ switch (lookAhead(is)) {
+ case '*': left *= prim(is, true); break; // prim '*' prim => $1 * $3
+ case '/': { // prim '/' prim => $1 / $3
+ double denom = prim(is, true);
+ if (denom == 0)
+ throw CalculatorException("division by zero");
+ left /= denom;
+ break;
+ }
+ case '%': { // prim '%' prim => $1 mod $3
+ double denom = prim(is, true);
+ if (denom == 0)
+ throw CalculatorException("division by zero");
+ left -= denom*floor(left/denom);
+ break;
+ }
+ default: // prim => $1
+ return left;
+ }
+}
+
+
+double Calculator::prim (istream &is, bool skip) { // prim:
+ if (skip)
+ lex(is);
+ switch (lookAhead(is)) {
+ case NUMBER: { // NUMBER => $1
+ lex(is);
+ double ret = _numValue;
+ if (lookAhead(is) == NAME) { // NUMBER NAME => $1 * $2
+ lex(is);
+ ret *= getVariable(_strValue);
+ }
+ return ret;
+ }
+ case NAME: { // NAME => getVariable($1)
+ lex(is);
+ return getVariable(_strValue);
+ }
+ case '-': // '-' prim => -$2
+ return -prim(is, true);
+ case '(': { // '(' expr ')' => $2
+ double e = expr(is, true);
+ if (lookAhead(is) != ')')
+ throw CalculatorException("')' expected");
+ lex(is);
+ return e;
+ }
+ default:
+ throw CalculatorException("primary expression expected");
+ }
+}
+
+
+/** Determines type of next token without swallowing it. That means
+ * the same token will be read again next time. */
+char Calculator::lookAhead (istream &is) {
+ while (isspace(is.peek())) // skip whitespace
+ is.get();
+ if (is.eof())
+ return END;
+ int c = is.peek();
+ if (isdigit(c) || c == '.')
+ return NUMBER;
+ if (isalpha(c))
+ return NAME;
+ return char(c);
+}
+
+
+/** Reads next token and returns its type. The token value is either assigned
+ * to the object members numValue or strValue depending on the type. The token
+ * type is represented by a unique integer. In contrast to method 'lookAhead'
+ * lex consumes the read token.
+ * @param[in] is next token is read from this stream
+ * @return token type */
+char Calculator::lex (istream &is) {
+ int tokenType = lookAhead(is);
+ switch (tokenType) {
+ case NUMBER:
+ is >> _numValue;
+ break;
+ case NAME: {
+ _strValue.clear();
+ while (isalpha(is.peek()))
+ _strValue += char(is.get());
+ break;
+ }
+ default:
+ tokenType = is.get();
+ }
+ return char(tokenType);
+}
+
+
+/** Returns the value of a previously defined variable. If there
+ * is no variable of the given name, a CalculatorException is thrown.
+ * @param[in] name name of variable
+ * @return assigned value */
+double Calculator::getVariable (const string &name) const {
+ map<string,double>::const_iterator it = _variables.find(name);
+ if (it == _variables.end())
+ throw CalculatorException("undefined variable '" + name + "'");
+ return it->second;
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Calculator.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Calculator.h
new file mode 100644
index 00000000000..36bb39d679c
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Calculator.h
@@ -0,0 +1,57 @@
+/*************************************************************************
+** Calculator.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef CALCULATOR_H
+#define CALCULATOR_H
+
+#include <istream>
+#include <map>
+#include <string>
+#include "MessageException.h"
+
+
+struct CalculatorException : public MessageException
+{
+ CalculatorException (const std::string &msg) : MessageException(msg) {}
+};
+
+class Calculator
+{
+ public:
+ Calculator () : _numValue(0) {}
+ double eval (std::istream &is);
+ double eval (const std::string &expr);
+ void setVariable (const std::string &name, double value) {_variables[name] = value;}
+ double getVariable (const std::string &name) const;
+
+ protected:
+ double expr (std::istream &is, bool skip);
+ double term (std::istream &is, bool skip);
+ double prim (std::istream &is, bool skip);
+ char lex (std::istream &is);
+ char lookAhead (std::istream &is);
+
+ private:
+ std::map<std::string,double> _variables;
+ double _numValue;
+ std::string _strValue;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CmdLineParserBase.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CmdLineParserBase.cpp
new file mode 100644
index 00000000000..27b607555b9
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CmdLineParserBase.cpp
@@ -0,0 +1,369 @@
+/*************************************************************************
+** CmdLineParserBase.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <algorithm>
+#include <cstdio>
+#include <cstring>
+#include "CmdLineParserBase.h"
+#include "InputBuffer.h"
+#include "InputReader.h"
+#include "Message.h"
+
+using namespace std;
+
+void CmdLineParserBase::init () {
+ _error = false;
+ _files.clear();
+}
+
+
+/** Parses all options given on the command line.
+ * @param[in] printErrors enable/disable printing of error messages */
+void CmdLineParserBase::parse (int argc, char **argv, bool printErrors) {
+ init();
+ _printErrors = printErrors;
+ bool filesOnly = false; //
+ for (int i=1; i < argc; i++) {
+ CharInputBuffer ib(argv[i], strlen(argv[i]));
+ BufferInputReader ir(ib);
+ if (filesOnly || ir.peek() != '-')
+ _files.push_back(argv[i]);
+ else {
+ ir.get();
+ if (ir.peek() == '-') {
+ // scan long option
+ ir.get();
+ if (ir.eof()) // "--" only
+ filesOnly = true; // treat all following options as filenames
+ else {
+ string longname;
+ while (isalnum(ir.peek()) || ir.peek() == '-')
+ longname += char(ir.get());
+ if (const Option *opt = option(longname))
+ (*opt->handler)(this, ir, *opt, true);
+ else if (!_error) {
+ if (printErrors)
+ Message::estream(false) << "unknown option --" << longname << '\n';
+ _error = true;
+ }
+ }
+ }
+ else {
+ // scan short option(s)
+ bool combined = false; // multiple short options combined, e.g -abc
+ do {
+ int shortname = ir.get();
+ if (const Option *opt = option(shortname)) {
+ if (!combined || opt->argmode == 0) {
+ if (opt->argmode == 'r' && strlen(argv[i]) == 2) { // required argument separated by whitespace?
+ if (i+1 < argc && argv[i+1][0] != '-')
+ ib.assign(argv[++i]);
+ }
+ (*opt->handler)(this, ir, *opt, false);
+ if (opt->argmode == 0)
+ combined = true;
+ }
+ else {
+ if (printErrors)
+ Message::estream(false) << "option -" << char(shortname) << " must be given separately\n";
+ _error = true;
+ }
+ }
+ else if (shortname > 0) {
+ if (printErrors)
+ Message::estream(false) << "unknown option -" << char(shortname) << '\n';
+ _error = true;
+ }
+ }
+ while (!_error && combined && !ir.eof());
+ }
+ }
+ }
+}
+
+
+/** Prints an error message to stdout.
+ * @param[in] opt error occurred in this option
+ * @param[in] longopt the long option name was scanned
+ * @param[in] msg message to be printed */
+void CmdLineParserBase::error (const Option &opt, bool longopt, const char *msg) const {
+ if (_printErrors) {
+ Message::estream(false) << "option ";
+ if (longopt)
+ Message::estream(false) << "--" << opt.longname;
+ else
+ Message::estream(false) << '-' << opt.shortname;
+ Message::estream(false) << ": " << msg << '\n';
+ }
+ _error = true;
+}
+
+
+#if 0
+#include <iostream>
+
+/** Lists the scanned filenames. Just for debugging purposes. */
+void CmdLineParserBase::status () const {
+ cout << "file names:\n";
+ for (size_t i=0; i < _files.size(); i++)
+ cout << " " << _files[i] << endl;
+ cout << endl;
+}
+#endif
+
+
+/** Returns the option information of a given short option name.
+ * If the option name can't be found 0 is returned.
+ * @param[in] longname long version of the option without leading hyphen (e.g. p, not -p) */
+const CmdLineParserBase::Option* CmdLineParserBase::option (char shortname) const {
+ size_t numopts; // number of available options
+ for (const Option *opts = options(&numopts); numopts > 0; ++opts) {
+ if (opts->shortname == shortname)
+ return opts;
+ numopts--;
+ }
+ return 0;
+}
+
+
+/** Returns the option information of a given long option name.
+ * Parameter 'longname' hasn't to be the complete long option name. The function looks up
+ * all options that start with 'longname'. If a unique or an exact match was found, it's returned.
+ * Otherwise, the return value is 0.
+ * @param[in] longname long version of the option without leading hyphens (e.g. param, not --param) */
+const CmdLineParserBase::Option* CmdLineParserBase::option (const string &longname) const {
+ vector<const Option*> matches; // all matching options
+ size_t len = longname.length();
+ size_t numopts; // number of available options
+ for (const Option *opts = options(&numopts); numopts > 0; ++opts) {
+ if (string(opts->longname, len) == longname) {
+ if (len == strlen(opts->longname)) // exact match?
+ return opts;
+ matches.push_back(opts);
+ }
+ numopts--;
+ }
+ switch (matches.size()) {
+ default:
+ if (_printErrors) {
+ Message::estream(false) << "option --" << longname << " is ambiguous (";
+ for (size_t i=0; i < matches.size(); i++) {
+ if (i > 0)
+ Message::estream(false) << ", ";
+ Message::estream(false) << matches[i]->longname;
+ }
+ Message::estream(false) << ")\n";
+ }
+ _error = true;
+
+ case 0 : return 0;
+ case 1 : return matches[0];
+ }
+}
+
+
+/** Returns true if a valid separator between option and argument was found.
+ * Arguments of long options are preceded by a '='. The argument of a short option
+ * directly follows the option without a separation character.
+ * @param[in] ir argument is read from this InputReader
+ * @param[in] opt scans argument of this option
+ * @param[in] longopt true if the long option name was given */
+bool CmdLineParserBase::checkArgPrefix (InputReader &ir, const Option &opt, bool longopt) const {
+ if (longopt) {
+ if (ir.peek() == '=')
+ ir.get();
+ else {
+ error(opt, longopt, "'=' expected");
+ return false;
+ }
+ }
+ return true;
+}
+
+
+/** Returns true if a given option has no argument, .e.g. -p or --param.
+ * @param[in] ir argument is read from this InputReader
+ * @param[in] opt scans argument of this option
+ * @param[in] longopt true if the long option name was given */
+bool CmdLineParserBase::checkNoArg (InputReader &ir, const Option &opt, bool longopt) const {
+ if (ir.eof())
+ return true;
+ error(opt, longopt, "no argument expected");
+ return false;
+}
+
+
+/** Gets an integer argument of a given option, e.g. -p5 or --param=5.
+ * @param[in] ir argument is read from this InputReader
+ * @param[in] opt scans argument of this option
+ * @param[in] longopt true if the long option name was given
+ * @param[out] arg the scanned option argument
+ * @return true if argument could be scanned without errors */
+bool CmdLineParserBase::getIntArg (InputReader &ir, const Option &opt, bool longopt, int &arg) const {
+ if (checkArgPrefix(ir, opt, longopt)) {
+ if (ir.parseInt(arg) && ir.eof())
+ return true;
+ error(opt, longopt, "integer value expected");
+ }
+ return false;
+}
+
+
+/** Gets an unsigned integer argument of a given option, e.g. -p5 or --param=5.
+ * @param[in] ir argument is read from this InputReader
+ * @param[in] opt scans argument of this option
+ * @param[in] longopt true if the long option name was given
+ * @param[out] arg the scanned option argument
+ * @return true if argument could be scanned without errors */
+bool CmdLineParserBase::getUIntArg (InputReader &ir, const Option &opt, bool longopt, unsigned &arg) const {
+ if (checkArgPrefix(ir, opt, longopt)) {
+ if (ir.parseUInt(arg) && ir.eof())
+ return true;
+ error(opt, longopt, "unsigned integer value expected");
+ }
+ return false;
+}
+
+
+/** Gets a double (floating point) argument of a given option, e.g. -p2.5 or --param=2.5.
+ * @param[in] ir argument is read from this InputReader
+ * @param[in] opt scans argument of this option
+ * @param[in] longopt true if the long option name was given
+ * @param[out] arg the scanned option argument
+ * @return true if argument could be scanned without errors */
+bool CmdLineParserBase::getDoubleArg (InputReader &ir, const Option &opt, bool longopt, double &arg) const {
+ if (checkArgPrefix(ir, opt, longopt)) {
+ if (ir.parseDouble(arg) != 0 && ir.eof())
+ return true;
+ error(opt, longopt, "floating point value expected");
+ }
+ return false;
+}
+
+
+/** Gets a string argument of a given option, e.g. -pstr or --param=str.
+ * @param[in] ir argument is read from this InputReader
+ * @param[in] opt scans argument of this option
+ * @param[in] longopt true if the long option name was given
+ * @param[out] arg the scanned option argument
+ * @return true if argument could be scanned without errors */
+bool CmdLineParserBase::getStringArg (InputReader &ir, const Option &opt, bool longopt, string &arg) const {
+ if (checkArgPrefix(ir, opt, longopt)) {
+ arg.clear();
+ while (!ir.eof())
+ arg += char(ir.get());
+ if (!arg.empty())
+ return true;
+ error(opt, longopt, "string argument expected");
+ }
+ return false;
+}
+
+
+/** Gets a boolean argument of a given option, e.g. -pyes or --param=yes.
+ * @param[in] ir argument is read from this InputReader
+ * @param[in] opt scans argument of this option
+ * @param[in] longopt true if the long option name was given
+ * @param[out] arg the scanned option argument
+ * @return true if argument could be scanned without errors */
+bool CmdLineParserBase::getBoolArg (InputReader &ir, const Option &opt, bool longopt, bool &arg) const {
+ if (checkArgPrefix(ir, opt, longopt)) {
+ string str;
+ while (!ir.eof())
+ str += char(ir.get());
+ if (str == "yes" || str == "y" || str == "true" || str == "1") {
+ arg = true;
+ return true;
+ }
+ else if (str == "no" || str == "n" || str == "false" || str == "0") {
+ arg = false;
+ return true;
+ }
+ error(opt, longopt, "boolean argument expected (yes, no, true, false, 0, 1)");
+ }
+ return false;
+}
+
+
+/** Gets a (single) character argument of a given option, e.g. -pc or --param=c.
+ * @param[in] ir argument is read from this InputReader
+ * @param[in] opt scans argument of this option
+ * @param[in] longopt true if the long option name was given
+ * @param[out] arg the scanned option argument
+ * @return true if argument could be scanned without errors */
+bool CmdLineParserBase::getCharArg (InputReader &ir, const Option &opt, bool longopt, char &arg) const {
+ if (checkArgPrefix(ir, opt, longopt)) {
+ arg = char(ir.get());
+ if (arg >= 0 && ir.eof())
+ return true;
+ error(opt, longopt, "character argument expected");
+ }
+ return false;
+}
+
+
+/** Compares the short option characters of two help lines.
+ * @return true if line1 should appear before line2 */
+static bool cmp_short (const char *line1, const char *line2) {
+ if (*line1 != 'o' || *line2 != 'o' || (line1[1] == ' ' && line2[1] == ' '))
+ return strcmp(line1, line2) < 0;
+ char lopt1 = tolower(line1[2]);
+ char lopt2 = tolower(line2[2]);
+ if (lopt1 == lopt2) // same character but different case?
+ return line1[2] > line2[2]; // line with lower-case letter first
+ return lopt1 < lopt2;
+}
+
+
+/** Compares the long option names of two help lines.
+ * @return true if line1 should appear before line2 */
+static bool cmp_long (const char *line1, const char *line2) {
+ if (*line1 != 'o' || *line2 != 'o')
+ return strcmp(line1, line2) < 0;
+ return strcmp(line1+6, line2+6) < 0;
+}
+
+
+/** Prints the help text to stdout.
+ * @param[in] mode format of help text */
+void CmdLineParserBase::help (int mode) const {
+ size_t numlines;
+ const char **lines = helplines(&numlines);
+ if (mode == 0) { // list options with section headers
+ for (size_t i=0; i < numlines; i++) {
+ switch (*lines[i]) {
+ case 's': fputc('\n', stdout); break; // section header
+ case 'o': fputs(" ", stdout); break; // option info
+ }
+ puts(lines[i]+1);
+ }
+ }
+ else {
+ vector<const char*> linevec(lines, lines+numlines);
+ sort(linevec.begin(), linevec.end(), mode == 1 ? cmp_short : cmp_long);
+ for (vector<const char*>::iterator it=linevec.begin(); it != linevec.end(); ++it) {
+ if (**it != 's') { // skip section headers
+ puts(*it+1);
+ if (**it == 'd')
+ puts("\nOptions:");
+ }
+ }
+ }
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CmdLineParserBase.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CmdLineParserBase.h
new file mode 100644
index 00000000000..35e20e3735c
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CmdLineParserBase.h
@@ -0,0 +1,97 @@
+/*************************************************************************
+** CmdLineParserBase.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef CMDLINEPARSERBASE_H
+#define CMDLINEPARSERBASE_H
+
+#include <string>
+#include <vector>
+
+class InputReader;
+
+class CmdLineParserBase
+{
+ protected:
+ struct Option;
+
+ struct OptionHandler {
+ virtual ~OptionHandler () {}
+ virtual void operator () (CmdLineParserBase *obj, InputReader &ir, const Option &opt, bool longopt) const=0;
+ };
+
+ template <typename T>
+ class OptionHandlerImpl : public OptionHandler {
+ protected:
+ typedef void (T::*LocalHandler)(InputReader &ir, const Option &opt, bool longopt);
+
+ public:
+ OptionHandlerImpl (LocalHandler handler) : _handler(handler) {}
+
+ void operator () (CmdLineParserBase *obj, InputReader &ir, const Option &opt, bool longopt) const {
+ if (T *tobj = dynamic_cast<T*>(obj))
+ (tobj->*_handler)(ir, opt, longopt);
+ }
+
+ private:
+ LocalHandler _handler;
+ };
+
+ struct Option {
+ ~Option () {delete handler;}
+ char shortname;
+ const char *longname;
+ char argmode; // mode of option argument: '\0'=none, 'o'=optional, 'r'=required
+ const OptionHandler *handler;
+ };
+
+ public:
+ virtual void parse (int argc, char **argv, bool printErrors=true);
+ virtual void help (int mode=0) const;
+ virtual int numFiles () const {return _files.size();}
+ virtual const char* file (size_t n) {return n < _files.size() ? _files[n].c_str() : 0;}
+// virtual void status () const;
+ virtual bool error () const {return _error;}
+
+ protected:
+ CmdLineParserBase () : _printErrors(true), _error(false) {}
+ CmdLineParserBase (const CmdLineParserBase &cmd) : _printErrors(true), _error(false) {}
+ virtual ~CmdLineParserBase () {}
+ virtual void init ();
+ virtual void error (const Option &opt, bool longopt, const char *msg) const;
+ virtual const Option* options (size_t *numopts) const =0;
+ virtual const char** helplines (size_t *numlines) const =0;
+ bool checkArgPrefix (InputReader &ir, const Option &opt, bool longopt) const;
+ bool checkNoArg (InputReader &ir, const Option &opt, bool longopt) const;
+ bool getIntArg (InputReader &ir, const Option &opt, bool longopt, int &arg) const;
+ bool getUIntArg (InputReader &ir, const Option &opt, bool longopt, unsigned &arg) const;
+ bool getDoubleArg (InputReader &ir, const Option &opt, bool longopt, double &arg) const;
+ bool getStringArg (InputReader &ir, const Option &opt, bool longopt, std::string &arg) const;
+ bool getBoolArg (InputReader &ir, const Option &opt, bool longopt, bool &arg) const;
+ bool getCharArg (InputReader &ir, const Option &opt, bool longopt, char &arg) const;
+ const Option* option (char shortname) const;
+ const Option* option (const std::string &longname) const;
+
+ private:
+ bool _printErrors; ///< if true, print error messages
+ mutable bool _error; ///< error occured while parsing options
+ std::vector<std::string> _files; ///< filename parameters
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Color.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Color.cpp
new file mode 100644
index 00000000000..45d5ce453da
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Color.cpp
@@ -0,0 +1,127 @@
+/*************************************************************************
+** Color.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cmath>
+#include <iomanip>
+#include <sstream>
+#include "Color.h"
+
+using namespace std;
+
+
+
+const Color Color::BLACK(0);
+const Color Color::WHITE(UInt8(255), UInt8(255), UInt8(255));
+const Color Color::TRANSPARENT(0xff000000);
+
+
+static inline UInt8 float_to_byte (float v) {
+ return (UInt8) (floor(255*v+0.5));
+}
+
+
+void Color::set (float r, float g, float b) {
+ set(float_to_byte(r), float_to_byte(g), float_to_byte(b));
+}
+
+
+void Color::setHSB (float h, float s, float b) {
+ vector<float> hsb(3), rgb(3);
+ hsb[0] = h;
+ hsb[1] = s;
+ hsb[2] = b;
+ HSB2RGB(hsb, rgb);
+ set(rgb[0], rgb[1], rgb[2]);
+}
+
+
+void Color::setCMYK (float c, float m, float y, float k) {
+ vector<float> cmyk(4), rgb(3);
+ cmyk[0] = c;
+ cmyk[1] = m;
+ cmyk[2] = y;
+ cmyk[3] = k;
+ CMYK2RGB(cmyk, rgb);
+ set(rgb[0], rgb[1], rgb[2]);
+}
+
+
+void Color::operator *= (double c) {
+ UInt32 rgb=0;
+ for (int i=0; i < 3; i++) {
+ rgb |= UInt32(floor((_rgb & 0xff)*c+0.5)) << (8*i);
+ _rgb >>= 8;
+ }
+ _rgb = rgb;
+}
+
+
+string Color::rgbString () const {
+ ostringstream oss;
+ oss << '#';
+ for (int i=2; i >= 0; i--) {
+ oss << setbase(16) << setfill('0') << setw(2)
+ << (((_rgb >> (8*i)) & 0xff));
+ }
+ return oss.str();
+}
+
+
+/** Approximates a CMYK color by an RGB triple. The component values
+ * are expected to be normalized, i.e. 0 <= cmyk[i],rgb[j] <= 1.
+ * @param[in] cmyk color in CMYK space
+ * @param[out] rgb RGB approximation */
+void Color::CMYK2RGB (const vector<float> &cmyk, vector<float> &rgb) {
+ for (int i=0; i < 3; i++)
+ rgb[i] = 1.0f-min(1.0f, cmyk[i]+cmyk[3]);
+}
+
+
+/** Converts a color given in HSB coordinates to RGB.
+ * @param[in] hsb color in HSB space
+ * @param[out] rgb color in RGB space */
+void Color::HSB2RGB (const vector<float> &hsb, vector<float> &rgb) {
+ if (hsb[1] == 0)
+ rgb[0] = rgb[1] = rgb[2] = hsb[2];
+ else {
+ float h = hsb[0]-floor(hsb[0]);
+ int i = int(6*h);
+ float f = float(6.0*h-i);
+ float p = hsb[2]*(1-hsb[1]);
+ float q = hsb[2]*(1-hsb[1]*f);
+ float t = hsb[2]*(1-hsb[1]*(1-f));
+ switch (i) {
+ case 0 : rgb[0]=hsb[2]; rgb[1]=t; rgb[2]=p; break;
+ case 1 : rgb[0]=q; rgb[1]=hsb[2]; rgb[2]=p; break;
+ case 2 : rgb[0]=p; rgb[1]=hsb[2]; rgb[2]=t; break;
+ case 3 : rgb[0]=p; rgb[1]=q; rgb[2]=hsb[2]; break;
+ case 4 : rgb[0]=t; rgb[1]=p; rgb[2]=hsb[2]; break;
+ case 5 : rgb[0]=hsb[2]; rgb[1]=p; rgb[2]=q; break;
+ default: ; // prevent compiler warning
+ }
+ }
+}
+
+
+void Color::getRGB (float &r, float &g, float &b) const {
+ r = float(((_rgb >> 16) & 255) / 255.0);
+ g = float(((_rgb >> 8) & 255) / 255.0);
+ b = float((_rgb & 255) / 255.0);
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Color.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Color.h
new file mode 100644
index 00000000000..24b33c7bb95
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Color.h
@@ -0,0 +1,64 @@
+/*************************************************************************
+** Color.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef COLOR_H
+#define COLOR_H
+
+#include <string>
+#include <vector>
+#include "types.h"
+
+#ifdef TRANSPARENT
+#undef TRANSPARENT
+#endif
+
+class Color
+{
+ public:
+ static const Color BLACK;
+ static const Color WHITE;
+ static const Color TRANSPARENT;
+
+ public:
+ Color () : _rgb(0) {}
+ Color (UInt32 rgb) : _rgb(rgb) {}
+ Color (UInt8 r, UInt8 g, UInt8 b) {set(r,g,b);}
+ Color (float r, float g, float b) {set(r,g,b);}
+ Color (const std::vector<float> &rgb) {set(rgb[0], rgb[1], rgb[2]);}
+ operator UInt32 () const {return _rgb;}
+ bool operator == (const Color &c) {return _rgb == c._rgb;}
+ bool operator != (const Color &c) {return _rgb != c._rgb;}
+ void set (UInt8 r, UInt8 g, UInt8 b) {_rgb = (r << 16) | (g << 8) | b;}
+ void set (float r, float g, float b);
+ void setGray (UInt8 g) {set(g,g,g);}
+ void setGray (float g) {set(g,g,g);}
+ void setHSB (float h, float s, float b);
+ void setCMYK (float c, float m, float y, float k);
+ void getRGB (float &r, float &g, float &b) const;
+ void operator *= (double c);
+ std::string rgbString () const;
+ static void CMYK2RGB (const std::vector<float> &cmyk, std::vector<float> &rgb);
+ static void HSB2RGB (const std::vector<float> &hsb, std::vector<float> &rgb);
+
+ private:
+ UInt32 _rgb;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/ColorSpecialHandler.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/ColorSpecialHandler.cpp
new file mode 100644
index 00000000000..d156a43770f
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/ColorSpecialHandler.cpp
@@ -0,0 +1,269 @@
+/*************************************************************************
+** ColorSpecialHandler.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <algorithm>
+#include <cmath>
+#include <cstring>
+#include <iomanip>
+#include <sstream>
+#include <vector>
+#include "ColorSpecialHandler.h"
+#include "SpecialActions.h"
+
+using namespace std;
+
+
+
+/** Approximates a CMYK color by an RGB triple. The component values
+ * are expected to be normalized, i.e. 0 <= cmyk[i],rgb[j] <= 1.
+ * @param[in] cmyk color in CMYK space
+ * @param[out] rgb RGB approximation */
+static void cmyk_to_rgb (const vector<float> &cmyk, vector<float> &rgb) {
+ for (int i=0; i < 3; i++)
+ rgb[i] = 1.0f-min(1.0f, cmyk[i]+cmyk[3]);
+}
+
+
+/** Converts a color given in HSB coordinates to RGB.
+ * @param[in] hsb color in HSB space
+ * @param[out] rgb color in RGB space */
+static void hsb_to_rgb (const vector<float> &hsb, vector<float> &rgb) {
+ if (hsb[1] == 0)
+ rgb[0] = rgb[1] = rgb[2] = hsb[2];
+ else {
+ float h = hsb[0]-floor(hsb[0]);
+ float i = floor(6*h);
+ float f = 6.0f*h-i;
+ float p = hsb[2]*(1-hsb[1]);
+ float q = hsb[2]*(1-hsb[1]*f);
+ float t = hsb[2]*(1-hsb[1]*(1-f));
+ switch (int(i)) {
+ case 0 : rgb[0]=hsb[2]; rgb[1]=t; rgb[2]=p; break;
+ case 1 : rgb[0]=q; rgb[1]=hsb[2]; rgb[2]=p; break;
+ case 2 : rgb[0]=p; rgb[1]=hsb[2]; rgb[2]=t; break;
+ case 3 : rgb[0]=p; rgb[1]=q; rgb[2]=hsb[2]; break;
+ case 4 : rgb[0]=t; rgb[1]=p; rgb[2]=hsb[2]; break;
+ case 5 : rgb[0]=hsb[2]; rgb[1]=p; rgb[2]=q; break;
+ default: ; // prevent compiler warning
+ }
+ }
+}
+
+
+/** Converts a gray value to RGB.
+ * @param[in] gray normalized gray value (0 <= gray <= 1)
+ * @param[out] rgb resulting RGB triple */
+static void gray_to_rgb (const float gray, vector<float> &rgb) {
+ for (int i=0; i < 3; i++)
+ rgb[i] = gray;
+}
+
+
+static float read_float (istream &is) {
+ is.clear();
+ float v;
+ is >> v;
+ if (is.fail())
+ throw SpecialException("number expected");
+ return v;
+}
+
+
+/** Reads multiple float values from a given stream. The number of
+ * values read is determined by the size of the result vector.
+ * @param[in] is stream to be read from
+ * @param[out] v the resulting floats */
+static void read_floats (istream &is, vector<float> &v) {
+ for (size_t i=0; i < v.size(); i++)
+ v[i] = read_float(is);
+}
+
+
+static bool color_constant (const string &c, vector<float> &rgb) {
+ // converted color constants from color.pro
+ const struct {
+ const char *name;
+ const float rgb[3];
+ }
+ constants[] = {
+ {"Apricot", {1, 0.68f, 0.48f}},
+ {"Aquamarine", {0.18f, 1, 0.7f}},
+ {"Bittersweet", {0.76f, 0.01f, 0}},
+ {"Black", {0, 0, 0}},
+ {"Blue", {0, 0, 1}},
+ {"BlueGreen", {0.15f, 1, 0.67f}},
+ {"BlueViolet", {0.1f, 0.05f, 0.96f}},
+ {"BrickRed", {0.72f, 0, 0}},
+ {"Brown", {0.4f, 0, 0}},
+ {"BurntOrange", {1, 0.49f, 0}},
+ {"CadetBlue", {0.38f, 0.43f, 0.77f}},
+ {"CarnationPink", {1, 0.37f, 1}},
+ {"Cerulean", {0.06f, 0.89f, 1}},
+ {"CornflowerBlue", {0.35f, 0.87f, 1}},
+ {"Cyan", {0, 1, 1}},
+ {"Dandelion", {1, 0.71f, 0.16f}},
+ {"DarkOrchid", {0.6f, 0.2f, 0.8f}},
+ {"Emerald", {0, 1, 0.5f}},
+ {"ForestGreen", {0, 0.88f, 0}},
+ {"Fuchsia", {0.45f, 0.01f, 0.92f}},
+ {"Goldenrod", {1, 0.9f, 0.16f}},
+ {"Gray", {0.5f, 0.5f, 0.5f}},
+ {"Green", {0, 1, 0}},
+ {"GreenYellow", {0.85f, 1, 0.31f}},
+ {"JungleGreen", {0.01f, 1, 0.48f}},
+ {"Lavender", {1, 0.52f, 1}},
+ {"LimeGreen", {0.5f, 1, 0}},
+ {"Magenta", {1, 0, 1}},
+ {"Mahogany", {0.65f, 0, 0}},
+ {"Maroon", {0.68f, 0, 0}},
+ {"Melon", {1, 0.54f, 0.5f}},
+ {"MidnightBlue", {0, 0.44f, 0.57f}},
+ {"Mulberry", {0.64f, 0.08f, 0.98f}},
+ {"NavyBlue", {0.06f, 0.46f, 1}},
+ {"OliveGreen", {0, 0.6f, 0}},
+ {"Orange", {1, 0.39f, 0.13f}},
+ {"OrangeRed", {1, 0, 0.5f}},
+ {"Orchid", {0.68f, 0.36f, 1}},
+ {"Peach", {1, 0.5f, 0.3f}},
+ {"Periwinkle", {0.43f, 0.45f, 1}},
+ {"PineGreen", {0, 0.75f, 0.16f}},
+ {"Plum", {0.5f, 0, 1}},
+ {"ProcessBlue", {0.04f, 1, 1}},
+ {"Purple", {0.55f, 0.14f, 1}},
+ {"RawSienna", {0.55f, 0, 0}},
+ {"Red", {1, 0, 0}},
+ {"RedOrange", {1, 0.23f, 0.13f}},
+ {"RedViolet", {0.59f, 0, 0.66f}},
+ {"Rhodamine", {1, 0.18f, 1}},
+ {"RoyalBlue", {0, 0.5f, 1}},
+ {"RoyalPurple", {0.25f, 0.1f, 1}},
+ {"RubineRed", {1, 0, 0.87f}},
+ {"Salmon", {1, 0.47f, 0.62f}},
+ {"SeaGreen", {0.31f, 1, 0.5f}},
+ {"Sepia", {0.3f, 0, 0}},
+ {"SkyBlue", {0.38f, 1, 0.88f}},
+ {"SpringGreen", {0.74f, 1, 0.24f}},
+ {"Tan", {0.86f, 0.58f, 0.44f}},
+ {"TealBlue", {0.12f, 0.98f, 0.64f}},
+ {"Thistle", {0.88f, 0.41f, 1}},
+ {"Turquoise", {0.15f, 1, 0.8f}},
+ {"Violet", {0.21f, 0.12f, 1}},
+ {"VioletRed", {1, 0.19f, 1}},
+ {"White", {1, 1, 1}},
+ {"WildStrawberry", {1, 0.04f, 0.61f}},
+ {"Yellow", {1, 1, 0}},
+ {"YellowGreen", {0.56f, 1, 0.26f}},
+ {"YellowOrange", {1, 0.58f, 0}}
+ };
+ // binary search
+ int first=0, last=68-1;
+ while (first <= last) {
+ int mid = first+(last-first)/2;
+ int cmp = strcmp(constants[mid].name, c.c_str());
+ if (cmp > 0)
+ last = mid-1;
+ else if (cmp < 0)
+ first = mid+1;
+ else {
+ rgb[0] = constants[mid].rgb[0];
+ rgb[1] = constants[mid].rgb[1];
+ rgb[2] = constants[mid].rgb[2];
+ return true;
+ }
+ }
+ return false;
+}
+
+
+/** Reads a color statement from an input stream and converts it to RGB.
+ * A color statement has the following syntax:
+ * <color model> <component values>
+ * Currently, the following color models are supported: rgb, cmyk, hsb and gray.
+ * Examples: rgb 1 0.5 0, gray 0.5
+ * @param[in] model if model != "" this value specifies the model, otherwise it's read from the stream
+ * @param[in] is stream to be read from
+ * @param[out] resulting RGB triple
+ * @return true if statement has successfully been read */
+static void read_color (string model, istream &is, vector<float> &rgb) {
+ if (model.empty())
+ is >> model;
+ if (model == "rgb")
+ read_floats(is, rgb);
+ else if (model == "cmyk") {
+ vector<float> cmyk(4);
+ read_floats(is, cmyk);
+ cmyk_to_rgb(cmyk, rgb);
+ }
+ else if (model == "hsb") {
+ vector<float> hsb(3);
+ read_floats(is, hsb);
+ hsb_to_rgb(hsb, rgb);
+ }
+ else if (model == "gray")
+ gray_to_rgb(read_float(is), rgb);
+ else if (!color_constant(model, rgb))
+ throw SpecialException("unknown color statement");
+ if (rgb[0] > 1 || rgb[1] > 1 || rgb[2] > 1) {
+ ostringstream oss;
+ oss << "invalid RGB value (" << rgb[0] << ',' << rgb[1] << ',' << rgb[2] << ')';
+ throw SpecialException(oss.str());
+ }
+}
+
+
+bool ColorSpecialHandler::process (const char *prefix, istream &is, SpecialActions *actions) {
+ vector<float> rgb(3);
+ if (prefix && strcmp(prefix, "background") == 0) {
+ read_color("", is, rgb);
+ actions->setBgColor(rgb);
+ }
+ else {
+ string cmd;
+ is >> cmd;
+ if (cmd == "push") { // color push <model> <params>
+ read_color("", is, rgb);
+ _colorStack.push(rgb);
+ }
+ else if (cmd == "pop") {
+ if (!_colorStack.empty()) // color pop
+ _colorStack.pop();
+ }
+ else { // color <model> <params>
+ read_color(cmd, is, rgb);
+ while (!_colorStack.empty())
+ _colorStack.pop();
+ _colorStack.push(rgb);
+ }
+ if (actions) {
+ if (_colorStack.empty())
+ actions->setColor(Color::BLACK);
+ else
+ actions->setColor(_colorStack.top());
+ }
+ }
+ return true;
+}
+
+
+const char** ColorSpecialHandler::prefixes () const {
+ static const char *pfx[] = {"color", 0};
+ return pfx;
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/ColorSpecialHandler.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/ColorSpecialHandler.h
new file mode 100644
index 00000000000..a9b73dc8b74
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/ColorSpecialHandler.h
@@ -0,0 +1,43 @@
+/*************************************************************************
+** ColorSpecialHandler.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef COLORSPECIALHANDLER_H
+#define COLORSPECIALHANDLER_H
+
+#include <stack>
+#include <vector>
+#include "SpecialHandler.h"
+
+
+class ColorSpecialHandler : public SpecialHandler
+{
+ typedef std::vector<float> RGB;
+
+ public:
+ bool process (const char *prefix, std::istream &is, SpecialActions *actions);
+ const char* name () const {return "color";}
+ const char* info () const {return "complete support of color specials";}
+ const char** prefixes () const;
+
+ private:
+ std::stack<RGB> _colorStack;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CommandLine.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CommandLine.cpp
new file mode 100644
index 00000000000..c62cfe1e6bb
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CommandLine.cpp
@@ -0,0 +1,297 @@
+// This file was automatically generated by opt2cpp.
+// It is part of the dvisvgm package and published under the terms
+// of the GNU General Public License version 3, or (at your option) any later version.
+// See file COPYING for further details.
+// (C) 2009-2013 Martin Gieseking <martin.gieseking@uos.de>
+
+#include <cstdio>
+#include <iostream>
+#include <iomanip>
+#include "InputReader.h"
+#include "CommandLine.h"
+
+using namespace std;
+
+const CmdLineParserBase::Option CommandLine::_options[] = {
+ {'b', "bbox", 'r', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_bbox)},
+ {'C', "cache", 'o', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_cache)},
+ {'\0', "color", 0, new OptionHandlerImpl<CommandLine>(&CommandLine::handle_color)},
+#if !defined(DISABLE_GS)
+ {'E', "eps", 0, new OptionHandlerImpl<CommandLine>(&CommandLine::handle_eps)},
+#endif
+ {'e', "exact", 0, new OptionHandlerImpl<CommandLine>(&CommandLine::handle_exact)},
+ {'m', "fontmap", 'r', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_fontmap)},
+ {'h', "help", 'o', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_help)},
+ {'\0', "keep", 0, new OptionHandlerImpl<CommandLine>(&CommandLine::handle_keep)},
+#if !defined(HAVE_LIBGS) && !defined(DISABLE_GS)
+ {'\0', "libgs", 'r', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_libgs)},
+#endif
+ {'l', "list-specials", 0, new OptionHandlerImpl<CommandLine>(&CommandLine::handle_list_specials)},
+ {'M', "mag", 'r', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_mag)},
+ {'n', "no-fonts", 'o', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_no_fonts)},
+ {'\0', "no-mktexmf", 0, new OptionHandlerImpl<CommandLine>(&CommandLine::handle_no_mktexmf)},
+ {'S', "no-specials", 'o', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_no_specials)},
+ {'\0', "no-styles", 0, new OptionHandlerImpl<CommandLine>(&CommandLine::handle_no_styles)},
+ {'o', "output", 'r', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_output)},
+ {'p', "page", 'r', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_page)},
+ {'d', "precision", 'r', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_precision)},
+ {'P', "progress", 'o', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_progress)},
+ {'r', "rotate", 'r', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_rotate)},
+ {'c', "scale", 'r', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_scale)},
+ {'s', "stdout", 0, new OptionHandlerImpl<CommandLine>(&CommandLine::handle_stdout)},
+ {'a', "trace-all", 'o', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_trace_all)},
+ {'T', "transform", 'r', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_transform)},
+ {'t', "translate", 'r', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_translate)},
+ {'v', "verbosity", 'r', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_verbosity)},
+ {'V', "version", 'o', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_version)},
+ {'z', "zip", 'o', new OptionHandlerImpl<CommandLine>(&CommandLine::handle_zip)},
+};
+
+const CmdLineParserBase::Option* CommandLine::options (size_t *numopts) const {
+ *numopts = sizeof(_options)/sizeof(CmdLineParserBase::Option);
+ return _options;
+}
+
+void CommandLine::init () {
+ CmdLineParserBase::init();
+
+ // disable all options by default
+ _bbox_given = false;
+ _cache_given = false;
+ _color_given = false;
+#if !defined(DISABLE_GS)
+ _eps_given = false;
+#endif
+ _exact_given = false;
+ _fontmap_given = false;
+ _help_given = false;
+ _keep_given = false;
+#if !defined(HAVE_LIBGS) && !defined(DISABLE_GS)
+ _libgs_given = false;
+#endif
+ _list_specials_given = false;
+ _mag_given = false;
+ _no_fonts_given = false;
+ _no_mktexmf_given = false;
+ _no_specials_given = false;
+ _no_styles_given = false;
+ _output_given = false;
+ _page_given = false;
+ _precision_given = false;
+ _progress_given = false;
+ _rotate_given = false;
+ _scale_given = false;
+ _stdout_given = false;
+ _trace_all_given = false;
+ _transform_given = false;
+ _translate_given = false;
+ _verbosity_given = false;
+ _version_given = false;
+ _zip_given = false;
+
+ // set default option values
+ _bbox_arg = "min";
+ _cache_arg.clear();
+ _fontmap_arg.clear();
+ _help_arg = 0;
+#if !defined(HAVE_LIBGS) && !defined(DISABLE_GS)
+ _libgs_arg.clear();
+#endif
+ _mag_arg = 4;
+ _no_fonts_arg = 0;
+ _no_specials_arg.clear();
+ _output_arg.clear();
+ _page_arg = "1";
+ _precision_arg = 0;
+ _progress_arg = 0.5;
+ _rotate_arg = 0;
+ _scale_arg.clear();
+ _trace_all_arg = false;
+ _transform_arg.clear();
+ _translate_arg.clear();
+ _verbosity_arg = 7;
+ _version_arg = false;
+ _zip_arg = 9;
+}
+
+const char** CommandLine::helplines (size_t *numlines) const {
+ static const char *lines[] = {
+ "dThis program converts DVI files, as created by TeX/LaTeX, to\nthe XML-based scalable vector graphics format SVG.\n\nUsage: dvisvgm [options] dvifile\n dvisvgm -E [options] epsfile",
+ "sInput options:",
+ "o-p, --page=ranges choose pages to convert [1]",
+ "o-m, --fontmap=filenames evaluate (additional) font map files",
+#if !defined(DISABLE_GS)
+ "o-E, --eps convert an EPS file to SVG",
+#endif
+ "sSVG output options:",
+ "o-b, --bbox=size set size of bounding box [min]",
+ "o-o, --output=pattern set name pattern of output files",
+ "o-d, --precision=number set number of decimal points (0-6) [0]",
+ "o-s, --stdout write SVG output to stdout",
+ "o-n, --no-fonts[=variant] draw glyphs by using path elements [0]",
+ "o --no-styles don't use styles to reference fonts",
+ "o-z, --zip[=level] create compressed .svgz file [9]",
+ "sSVG transformations:",
+ "o-r, --rotate=angle rotate page content clockwise",
+ "o-c, --scale=sx[,sy] scale page content",
+ "o-t, --translate=tx[,ty] shift page content",
+ "o-T, --transform=commands transform page content",
+ "sProcessing options:",
+ "o-C, --cache[=dir] set/print path of cache directory",
+ "o-e, --exact compute exact glyph boxes",
+ "o --keep keep temporary files",
+#if !defined(HAVE_LIBGS) && !defined(DISABLE_GS)
+ "o --libgs=filename set name of Ghostscript shared library",
+#endif
+ "o-M, --mag=factor magnification of Metafont output [4]",
+ "o --no-mktexmf don't try to create missing fonts",
+ "o-S, --no-specials[=prefixes] don't process [selected] specials",
+ "o-a, --trace-all[=retrace] trace all glyphs of bitmap fonts [no]",
+ "sMessage options:",
+ "o --color colorize messages",
+ "o-h, --help[=mode] print this summary of options and exit [0]",
+ "o-l, --list-specials print supported special sets and exit",
+ "o-P, --progress[=delay] enable progess indicator [0.5]",
+ "o-v, --verbosity=level set verbosity level (0-7) [7]",
+ "o-V, --version[=extended] print version and exit [no]",
+ };
+ *numlines = sizeof(lines)/sizeof(char*);
+ return lines;
+}
+
+void CommandLine::handle_bbox (InputReader &ir, const Option &opt, bool longopt) {
+ if (getStringArg(ir, opt, longopt, _bbox_arg))
+ _bbox_given = true;
+}
+
+void CommandLine::handle_cache (InputReader &ir, const Option &opt, bool longopt) {
+ if (ir.eof() || getStringArg(ir, opt, longopt, _cache_arg))
+ _cache_given = true;
+}
+
+void CommandLine::handle_color (InputReader &ir, const Option &opt, bool longopt) {
+ _color_given = true;
+}
+
+#if !defined(DISABLE_GS)
+void CommandLine::handle_eps (InputReader &ir, const Option &opt, bool longopt) {
+ _eps_given = true;
+}
+#endif
+
+void CommandLine::handle_exact (InputReader &ir, const Option &opt, bool longopt) {
+ _exact_given = true;
+}
+
+void CommandLine::handle_fontmap (InputReader &ir, const Option &opt, bool longopt) {
+ if (getStringArg(ir, opt, longopt, _fontmap_arg))
+ _fontmap_given = true;
+}
+
+void CommandLine::handle_help (InputReader &ir, const Option &opt, bool longopt) {
+ if (ir.eof() || getIntArg(ir, opt, longopt, _help_arg))
+ _help_given = true;
+}
+
+void CommandLine::handle_keep (InputReader &ir, const Option &opt, bool longopt) {
+ _keep_given = true;
+}
+
+#if !defined(HAVE_LIBGS) && !defined(DISABLE_GS)
+void CommandLine::handle_libgs (InputReader &ir, const Option &opt, bool longopt) {
+ if (getStringArg(ir, opt, longopt, _libgs_arg))
+ _libgs_given = true;
+}
+#endif
+
+void CommandLine::handle_list_specials (InputReader &ir, const Option &opt, bool longopt) {
+ _list_specials_given = true;
+}
+
+void CommandLine::handle_mag (InputReader &ir, const Option &opt, bool longopt) {
+ if (getDoubleArg(ir, opt, longopt, _mag_arg))
+ _mag_given = true;
+}
+
+void CommandLine::handle_no_fonts (InputReader &ir, const Option &opt, bool longopt) {
+ if (ir.eof() || getIntArg(ir, opt, longopt, _no_fonts_arg))
+ _no_fonts_given = true;
+}
+
+void CommandLine::handle_no_mktexmf (InputReader &ir, const Option &opt, bool longopt) {
+ _no_mktexmf_given = true;
+}
+
+void CommandLine::handle_no_specials (InputReader &ir, const Option &opt, bool longopt) {
+ if (ir.eof() || getStringArg(ir, opt, longopt, _no_specials_arg))
+ _no_specials_given = true;
+}
+
+void CommandLine::handle_no_styles (InputReader &ir, const Option &opt, bool longopt) {
+ _no_styles_given = true;
+}
+
+void CommandLine::handle_output (InputReader &ir, const Option &opt, bool longopt) {
+ if (getStringArg(ir, opt, longopt, _output_arg))
+ _output_given = true;
+}
+
+void CommandLine::handle_page (InputReader &ir, const Option &opt, bool longopt) {
+ if (getStringArg(ir, opt, longopt, _page_arg))
+ _page_given = true;
+}
+
+void CommandLine::handle_precision (InputReader &ir, const Option &opt, bool longopt) {
+ if (getIntArg(ir, opt, longopt, _precision_arg))
+ _precision_given = true;
+}
+
+void CommandLine::handle_progress (InputReader &ir, const Option &opt, bool longopt) {
+ if (ir.eof() || getDoubleArg(ir, opt, longopt, _progress_arg))
+ _progress_given = true;
+}
+
+void CommandLine::handle_rotate (InputReader &ir, const Option &opt, bool longopt) {
+ if (getDoubleArg(ir, opt, longopt, _rotate_arg))
+ _rotate_given = true;
+}
+
+void CommandLine::handle_scale (InputReader &ir, const Option &opt, bool longopt) {
+ if (getStringArg(ir, opt, longopt, _scale_arg))
+ _scale_given = true;
+}
+
+void CommandLine::handle_stdout (InputReader &ir, const Option &opt, bool longopt) {
+ _stdout_given = true;
+}
+
+void CommandLine::handle_trace_all (InputReader &ir, const Option &opt, bool longopt) {
+ if (ir.eof() || getBoolArg(ir, opt, longopt, _trace_all_arg))
+ _trace_all_given = true;
+}
+
+void CommandLine::handle_transform (InputReader &ir, const Option &opt, bool longopt) {
+ if (getStringArg(ir, opt, longopt, _transform_arg))
+ _transform_given = true;
+}
+
+void CommandLine::handle_translate (InputReader &ir, const Option &opt, bool longopt) {
+ if (getStringArg(ir, opt, longopt, _translate_arg))
+ _translate_given = true;
+}
+
+void CommandLine::handle_verbosity (InputReader &ir, const Option &opt, bool longopt) {
+ if (getUIntArg(ir, opt, longopt, _verbosity_arg))
+ _verbosity_given = true;
+}
+
+void CommandLine::handle_version (InputReader &ir, const Option &opt, bool longopt) {
+ if (ir.eof() || getBoolArg(ir, opt, longopt, _version_arg))
+ _version_given = true;
+}
+
+void CommandLine::handle_zip (InputReader &ir, const Option &opt, bool longopt) {
+ if (ir.eof() || getIntArg(ir, opt, longopt, _zip_arg))
+ _zip_given = true;
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CommandLine.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CommandLine.h
new file mode 100644
index 00000000000..67d00d4e20d
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/CommandLine.h
@@ -0,0 +1,166 @@
+// This file was automatically generated by opt2cpp.
+// It is part of the dvisvgm package and published under the terms
+// of the GNU General Public License version 3, or (at your option) any later version.
+// See file COPYING for further details.
+// (C) 2009-2013 Martin Gieseking <martin.gieseking@uos.de>
+
+#ifndef COMMANDLINE_H
+#define COMMANDLINE_H
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+#include "CmdLineParserBase.h"
+
+class CommandLine : public CmdLineParserBase
+{
+ public:
+ CommandLine () {init();}
+ CommandLine (int argc, char **argv, bool printErrors) {parse(argc, argv, printErrors);}
+ bool page_given () const {return _page_given;}
+ const std::string& page_arg () const {return _page_arg;}
+ bool fontmap_given () const {return _fontmap_given;}
+ const std::string& fontmap_arg () const {return _fontmap_arg;}
+#if !defined(DISABLE_GS)
+ bool eps_given () const {return _eps_given;}
+#endif
+ bool bbox_given () const {return _bbox_given;}
+ const std::string& bbox_arg () const {return _bbox_arg;}
+ bool output_given () const {return _output_given;}
+ const std::string& output_arg () const {return _output_arg;}
+ bool precision_given () const {return _precision_given;}
+ int precision_arg () const {return _precision_arg;}
+ bool stdout_given () const {return _stdout_given;}
+ bool no_fonts_given () const {return _no_fonts_given;}
+ int no_fonts_arg () const {return _no_fonts_arg;}
+ bool no_styles_given () const {return _no_styles_given;}
+ bool zip_given () const {return _zip_given;}
+ int zip_arg () const {return _zip_arg;}
+ bool rotate_given () const {return _rotate_given;}
+ double rotate_arg () const {return _rotate_arg;}
+ bool scale_given () const {return _scale_given;}
+ const std::string& scale_arg () const {return _scale_arg;}
+ bool translate_given () const {return _translate_given;}
+ const std::string& translate_arg () const {return _translate_arg;}
+ bool transform_given () const {return _transform_given;}
+ const std::string& transform_arg () const {return _transform_arg;}
+ bool cache_given () const {return _cache_given;}
+ const std::string& cache_arg () const {return _cache_arg;}
+ bool exact_given () const {return _exact_given;}
+ bool keep_given () const {return _keep_given;}
+#if !defined(HAVE_LIBGS) && !defined(DISABLE_GS)
+ bool libgs_given () const {return _libgs_given;}
+ const std::string& libgs_arg () const {return _libgs_arg;}
+#endif
+ bool mag_given () const {return _mag_given;}
+ double mag_arg () const {return _mag_arg;}
+ bool no_mktexmf_given () const {return _no_mktexmf_given;}
+ bool no_specials_given () const {return _no_specials_given;}
+ const std::string& no_specials_arg () const {return _no_specials_arg;}
+ bool trace_all_given () const {return _trace_all_given;}
+ bool trace_all_arg () const {return _trace_all_arg;}
+ bool color_given () const {return _color_given;}
+ bool help_given () const {return _help_given;}
+ int help_arg () const {return _help_arg;}
+ bool list_specials_given () const {return _list_specials_given;}
+ bool progress_given () const {return _progress_given;}
+ double progress_arg () const {return _progress_arg;}
+ bool verbosity_given () const {return _verbosity_given;}
+ unsigned verbosity_arg () const {return _verbosity_arg;}
+ bool version_given () const {return _version_given;}
+ bool version_arg () const {return _version_arg;}
+
+ protected:
+ void init ();
+ const CmdLineParserBase::Option* options (size_t *numopts) const;
+ const char** helplines (size_t *numlines) const;
+ void handle_page (InputReader &ir, const Option &opt, bool longopt);
+ void handle_fontmap (InputReader &ir, const Option &opt, bool longopt);
+#if !defined(DISABLE_GS)
+ void handle_eps (InputReader &ir, const Option &opt, bool longopt);
+#endif
+ void handle_bbox (InputReader &ir, const Option &opt, bool longopt);
+ void handle_output (InputReader &ir, const Option &opt, bool longopt);
+ void handle_precision (InputReader &ir, const Option &opt, bool longopt);
+ void handle_stdout (InputReader &ir, const Option &opt, bool longopt);
+ void handle_no_fonts (InputReader &ir, const Option &opt, bool longopt);
+ void handle_no_styles (InputReader &ir, const Option &opt, bool longopt);
+ void handle_zip (InputReader &ir, const Option &opt, bool longopt);
+ void handle_rotate (InputReader &ir, const Option &opt, bool longopt);
+ void handle_scale (InputReader &ir, const Option &opt, bool longopt);
+ void handle_translate (InputReader &ir, const Option &opt, bool longopt);
+ void handle_transform (InputReader &ir, const Option &opt, bool longopt);
+ void handle_cache (InputReader &ir, const Option &opt, bool longopt);
+ void handle_exact (InputReader &ir, const Option &opt, bool longopt);
+ void handle_keep (InputReader &ir, const Option &opt, bool longopt);
+#if !defined(HAVE_LIBGS) && !defined(DISABLE_GS)
+ void handle_libgs (InputReader &ir, const Option &opt, bool longopt);
+#endif
+ void handle_mag (InputReader &ir, const Option &opt, bool longopt);
+ void handle_no_mktexmf (InputReader &ir, const Option &opt, bool longopt);
+ void handle_no_specials (InputReader &ir, const Option &opt, bool longopt);
+ void handle_trace_all (InputReader &ir, const Option &opt, bool longopt);
+ void handle_color (InputReader &ir, const Option &opt, bool longopt);
+ void handle_help (InputReader &ir, const Option &opt, bool longopt);
+ void handle_list_specials (InputReader &ir, const Option &opt, bool longopt);
+ void handle_progress (InputReader &ir, const Option &opt, bool longopt);
+ void handle_verbosity (InputReader &ir, const Option &opt, bool longopt);
+ void handle_version (InputReader &ir, const Option &opt, bool longopt);
+
+ private:
+ static const CmdLineParserBase::Option _options[];
+ bool _page_given;
+ std::string _page_arg;
+ bool _fontmap_given;
+ std::string _fontmap_arg;
+#if !defined(DISABLE_GS)
+ bool _eps_given;
+#endif
+ bool _bbox_given;
+ std::string _bbox_arg;
+ bool _output_given;
+ std::string _output_arg;
+ bool _precision_given;
+ int _precision_arg;
+ bool _stdout_given;
+ bool _no_fonts_given;
+ int _no_fonts_arg;
+ bool _no_styles_given;
+ bool _zip_given;
+ int _zip_arg;
+ bool _rotate_given;
+ double _rotate_arg;
+ bool _scale_given;
+ std::string _scale_arg;
+ bool _translate_given;
+ std::string _translate_arg;
+ bool _transform_given;
+ std::string _transform_arg;
+ bool _cache_given;
+ std::string _cache_arg;
+ bool _exact_given;
+ bool _keep_given;
+#if !defined(HAVE_LIBGS) && !defined(DISABLE_GS)
+ bool _libgs_given;
+ std::string _libgs_arg;
+#endif
+ bool _mag_given;
+ double _mag_arg;
+ bool _no_mktexmf_given;
+ bool _no_specials_given;
+ std::string _no_specials_arg;
+ bool _trace_all_given;
+ bool _trace_all_arg;
+ bool _color_given;
+ bool _help_given;
+ int _help_arg;
+ bool _list_specials_given;
+ bool _progress_given;
+ double _progress_arg;
+ bool _verbosity_given;
+ unsigned _verbosity_arg;
+ bool _version_given;
+ bool _version_arg;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DLLoader.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DLLoader.cpp
new file mode 100644
index 00000000000..30317455ba6
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DLLoader.cpp
@@ -0,0 +1,56 @@
+/*************************************************************************
+** DLLoader.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include "DLLoader.h"
+
+
+DLLoader::DLLoader (const char *dlname) {
+#ifdef __WIN32__
+ _handle = LoadLibrary(dlname);
+#else
+ _handle = dlopen(dlname, RTLD_LAZY);
+#endif
+}
+
+
+DLLoader::~DLLoader () {
+ if (_handle) {
+#ifdef __WIN32__
+ FreeLibrary(_handle);
+#else
+ dlclose(_handle);
+#endif
+ }
+}
+
+
+/** Loads a function or variable from the dynamic/shared library.
+ * @param[in] name name of function/variable to load
+ * @return pointer to loaded symbol, or 0 if the symbol could not be loaded */
+void* DLLoader::loadSymbol (const char *name) {
+ if (_handle) {
+#ifdef __WIN32__
+ return (void*)GetProcAddress(_handle, name);
+#else
+ return dlsym(_handle, name);
+#endif
+ }
+ return 0;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DLLoader.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DLLoader.h
new file mode 100644
index 00000000000..3052d13714e
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DLLoader.h
@@ -0,0 +1,52 @@
+/*************************************************************************
+** DLLoader.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef DLLOADER_H
+#define DLLOADER_H
+
+#ifdef __WIN32__
+ #undef NOMINMAX
+ #define NOMINMAX 1
+ #include <windows.h>
+#else
+ #include <dlfcn.h>
+#endif
+
+
+class DLLoader
+{
+ public:
+ DLLoader (const char *dlname);
+ virtual ~DLLoader ();
+ bool loaded () const {return _handle != 0;}
+
+ protected:
+ DLLoader () : _handle(0) {}
+ void* loadSymbol (const char *name);
+
+ private:
+#ifdef __WIN32__
+ HINSTANCE _handle;
+#else
+ void *_handle;
+#endif
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIActions.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIActions.cpp
new file mode 100644
index 00000000000..f9c95dc3754
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIActions.cpp
@@ -0,0 +1,26 @@
+/*************************************************************************
+** DVIActions.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include "DVIActions.h"
+
+const double DVIActions::BP = 72.0/72.27;
+const double DVIActions::IN = 1.0/72.27;
+const double DVIActions::CM = 2.54*IN;
+const double DVIActions::MM = 25.4*IN;
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIActions.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIActions.h
new file mode 100644
index 00000000000..a3fa86a801c
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIActions.h
@@ -0,0 +1,56 @@
+/*************************************************************************
+** DVIActions.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef DVIACTIONS_H
+#define DVIACTIONS_H
+
+#include <string>
+#include "Message.h"
+#include "types.h"
+
+class BoundingBox;
+struct Font;
+class SpecialManager;
+
+
+struct DVIActions
+{
+ static const double BP;
+ static const double IN;
+ static const double CM;
+ static const double MM;
+ virtual ~DVIActions () {}
+ virtual void setChar (double x, double y, unsigned c, const Font *f) {}
+ virtual void setRule (double x, double y, double height, double width) {}
+ virtual void moveToX (double x) {}
+ virtual void moveToY (double y) {}
+ virtual void defineFont (int num, const Font *font) {}
+ virtual void setFont (int num, const Font *font) {}
+ virtual void special (const std::string &s) {}
+ virtual void preamble (const std::string &cmt) {}
+ virtual void postamble () {}
+ virtual void beginPage (unsigned n, Int32 *c) {}
+ virtual void endPage () {}
+ virtual BoundingBox& bbox () =0;
+ virtual const SpecialManager* setProcessSpecials (const char *ignorelist) {return 0;}
+ virtual void progress (size_t current, size_t total, const char *id=0) {}
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIReader.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIReader.cpp
new file mode 100644
index 00000000000..acdb8cd7351
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIReader.cpp
@@ -0,0 +1,682 @@
+/*************************************************************************
+** DVIReader.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstdarg>
+#include <fstream>
+#include <iostream>
+#include <sstream>
+#include "types.h"
+#include "DVIActions.h"
+#include "DVIReader.h"
+#include "Font.h"
+#include "FontManager.h"
+#include "Message.h"
+#include "SignalHandler.h"
+#include "VectorStream.h"
+#include "macros.h"
+
+using namespace std;
+
+bool DVIReader::COMPUTE_PAGE_LENGTH = false;
+
+
+DVIReader::DVIReader (istream &is, DVIActions *a) : StreamReader(is), _actions(a)
+{
+ _inPage = false;
+ _pageHeight = _pageWidth = 0;
+ _scaleFactor = 0.0;
+ _tx = _ty = 0; // no cursor translation
+ _prevYPos = numeric_limits<double>::min();
+ _inPostamble = false;
+ _totalPages = 0; // we don't know the correct value yet
+ _currFontNum = 0;
+ _currPageNum = 0;
+ _pageLength = 0;
+ _pagePos = 0;
+}
+
+
+DVIActions* DVIReader::replaceActions (DVIActions *a) {
+ DVIActions *prev_actions = _actions;
+ _actions = a;
+ return prev_actions;
+}
+
+
+/** Evaluates the next DVI command, and computes the corresponding handler.
+ * @param[in] compute_size if true, the size of variable-length parameters is computed
+ * @param[out] handler handler for current DVI command
+ * @param[out] number of parameter bytes
+ * @param[out] param the handler must be called with this parameter
+ * @return opcode of current DVI command */
+int DVIReader::evalCommand (bool compute_size, CommandHandler &handler, int &length, int &param) {
+ struct DVICommand {
+ CommandHandler handler;
+ int length; // number of parameter bytes
+ };
+
+ /* Each cmdFOO command reads the necessary number of bytes from the stream, so executeCommand
+ doesn't need to know the exact DVI command format. Some cmdFOO methods are used for multiple
+ DVI commands because they only differ in length of their parameters. */
+ static const DVICommand commands[] = {
+ {&DVIReader::cmdSetChar, 1}, {&DVIReader::cmdSetChar, 2}, {&DVIReader::cmdSetChar, 3}, {&DVIReader::cmdSetChar, 4}, // 128-131
+ {&DVIReader::cmdSetRule, 8}, // 132
+ {&DVIReader::cmdPutChar, 1}, {&DVIReader::cmdPutChar, 2}, {&DVIReader::cmdPutChar, 3}, {&DVIReader::cmdPutChar, 4}, // 133-136
+ {&DVIReader::cmdPutRule, 8}, // 137
+ {&DVIReader::cmdNop, 0}, // 138
+ {&DVIReader::cmdBop, 44}, {&DVIReader::cmdEop, 0}, // 139-140
+ {&DVIReader::cmdPush, 0}, {&DVIReader::cmdPop, 0}, // 141-142
+ {&DVIReader::cmdRight, 1}, {&DVIReader::cmdRight, 2}, {&DVIReader::cmdRight, 3}, {&DVIReader::cmdRight, 4}, // 143-146
+ {&DVIReader::cmdW0, 0}, // 147
+ {&DVIReader::cmdW, 1}, {&DVIReader::cmdW, 2}, {&DVIReader::cmdW, 3}, {&DVIReader::cmdW, 4}, // 148-151
+ {&DVIReader::cmdX0, 0}, // 152
+ {&DVIReader::cmdX, 1}, {&DVIReader::cmdX, 2}, {&DVIReader::cmdX, 3}, {&DVIReader::cmdX, 4}, // 153-156
+ {&DVIReader::cmdDown, 1}, {&DVIReader::cmdDown, 2}, {&DVIReader::cmdDown, 3}, {&DVIReader::cmdDown, 4}, // 157-160
+ {&DVIReader::cmdY0, 0}, // 161
+ {&DVIReader::cmdY, 1}, {&DVIReader::cmdY, 2}, {&DVIReader::cmdY, 3}, {&DVIReader::cmdY, 4}, // 162-165
+ {&DVIReader::cmdZ0, 0}, // 166
+ {&DVIReader::cmdZ, 1}, {&DVIReader::cmdZ, 2}, {&DVIReader::cmdZ, 3}, {&DVIReader::cmdZ, 4}, // 167-170
+ {&DVIReader::cmdFontNum, 1}, {&DVIReader::cmdFontNum, 2}, {&DVIReader::cmdFontNum, 3}, {&DVIReader::cmdFontNum, 4}, // 235-238
+ {&DVIReader::cmdXXX, 1}, {&DVIReader::cmdXXX, 2}, {&DVIReader::cmdXXX, 3}, {&DVIReader::cmdXXX, 4}, // 239-242
+ {&DVIReader::cmdFontDef, 1}, {&DVIReader::cmdFontDef, 2}, {&DVIReader::cmdFontDef, 3}, {&DVIReader::cmdFontDef, 4}, // 243-246
+ {&DVIReader::cmdPre, 0}, {&DVIReader::cmdPost, 0}, {&DVIReader::cmdPostPost, 0} // 247-249
+ };
+
+ const int opcode = in().get();
+ if (!in() || opcode < 0) // at end of file
+ throw InvalidDVIFileException("invalid file");
+
+ param = -1;
+ if (opcode >= 0 && opcode <= 127) {
+ handler = &DVIReader::cmdSetChar0;
+ length = 0;
+ param = opcode;
+ }
+ else if (opcode >= 171 && opcode <= 234) {
+ handler = &DVIReader::cmdFontNum0;
+ length = 0;
+ param = opcode-171;
+ }
+ else if (opcode >= 250) {
+ ostringstream oss;
+ oss << "undefined DVI command (opcode " << opcode << ')';
+ throw DVIException(oss.str());
+ }
+ else {
+ const int offset = opcode <= 170 ? 128 : 235-(170-128+1);
+ handler = commands[opcode-offset].handler;
+ if (!compute_size)
+ length = commands[opcode-offset].length;
+ else {
+ if (opcode >= 239 && opcode <= 242) { // specials
+ int len = opcode-238;
+ UInt32 bytes = readUnsigned(len);
+ in().seekg(-len, ios_base::cur);
+ length = len+bytes;
+ }
+ else if (opcode >= 243 && opcode <= 246) { // fontdefs
+ int len = opcode-242;
+ len += 12;
+ in().seekg(len, ios_base::cur); // skip fontnum, checksum, ssize, dsize
+ UInt32 bytes = readUnsigned(1); // length of font path
+ bytes += readUnsigned(1); // length of font name
+ in().seekg(-len-2, ios_base::cur);
+ length = len+bytes;
+ }
+ else
+ length = commands[opcode-offset].length;
+ }
+ }
+ if (param < 0)
+ param = length;
+ return opcode;
+}
+
+
+/** Reads a single DVI command from the current position of the input stream and calls the
+ * corresponding cmdFOO method.
+ * @return opcode of the executed command */
+int DVIReader::executeCommand () {
+ SignalHandler::instance().check();
+ CommandHandler handler;
+ int len; // number of parameter bytes
+ int param; // parameter of handler
+ streampos pos = in().tellg();
+ int opcode = evalCommand(false, handler, len, param);
+ (this->*handler)(param);
+ if (_currPos.v+_ty != _prevYPos) {
+ _tx = _ty = 0;
+ _prevYPos = _currPos.v;
+ }
+ if (COMPUTE_PAGE_LENGTH && _inPage && _actions) {
+ // ensure progress() is called at 0%
+ if (opcode == 139) // bop?
+ _actions->progress(0, _pageLength);
+ // ensure progress() is called at 100%
+ if (in().peek() == 140) // eop reached?
+ _pagePos = _pageLength;
+ else
+ _pagePos += in().tellg()-pos;
+ _actions->progress(_pagePos, _pageLength);
+ }
+ return opcode;
+}
+
+
+/** Executes all DVI commands read from the input stream. */
+void DVIReader::executeAll () {
+ int opcode = 0;
+ while (!in().eof() && opcode >= 0) {
+ try {
+ opcode = executeCommand();
+ }
+ catch (const InvalidDVIFileException &e) {
+ // end of stream reached
+ opcode = -1;
+ }
+ }
+}
+
+
+#if 0
+/** Executes all DVI commands from the preamble to postpost. */
+bool DVIReader::executeDocument () {
+ in().clear(); // reset all status bits
+ if (!in())
+ return false;
+ in().seekg(0); // move file pointer to first byte of the input stream
+ while (!in().eof() && executeCommand() != 249); // stop reading after postpost (249)
+ return true;
+}
+
+bool DVIReader::executeAllPages () {
+ in().clear(); // reset all status bits
+ if (!in())
+ return false;
+ in().seekg(0); // move file pointer to first byte of the input stream
+ while (!in().eof() && executeCommand() != 248); // stop reading when postamble (248) is reached
+ return true;
+}
+#endif
+
+
+/** Reads and executes the commands of a single page.
+ * This methods stops reading after the page's eop command has been executed.
+ * @param[in] n number of page to be executed
+ * @returns true if page was read successfully */
+bool DVIReader::executePage (unsigned n) {
+ in().clear(); // reset all status bits
+ if (!in())
+ throw DVIException("invalid DVI file");
+ in().seekg(-1, ios_base::end); // stream pointer to last byte
+ while (in().peek() == 223)
+ in().seekg(-1, ios_base::cur); // skip fill bytes
+ in().seekg(-4, ios_base::cur); // now on first byte of q (pointer to begin of postamble)
+ UInt32 q = readUnsigned(4); // pointer to begin of postamble
+ in().seekg(q, ios_base::beg); // now on begin of postamble
+ if (executeCommand() != 248) // execute postamble command but not the fontdefs
+ return false;
+ if (n < 1 || n > _totalPages)
+ return false;
+ in().seekg(_prevBop, ios_base::beg); // now on last bop
+ _inPostamble = false; // we jumped out of the postamble
+ unsigned pageCount = _totalPages;
+ for (; pageCount > n && _prevBop > 0; pageCount--) {
+ in().seekg(41, ios_base::cur); // skip bop and 10*4 \count bytes => now on pointer to prev bop
+ _prevBop = readSigned(4);
+ in().seekg(_prevBop, ios_base::beg);
+ }
+ _currPageNum = n;
+ while (pageCount == n && executeCommand() != 140); // 140 == eop
+ return true;
+}
+
+
+bool DVIReader::executePages (unsigned first, unsigned last) {
+ in().clear();
+ if (!in())
+ throw DVIException("invalid DVI file");
+ if (first > last)
+ swap(first, last);
+ in().seekg(-1, ios_base::end); // stream pointer to last byte
+ while (in().peek() == 223)
+ in().seekg(-1, ios_base::cur); // skip fill bytes
+ in().seekg(-4, ios_base::cur); // now on first byte of q (pointer to begin of postamble)
+ UInt32 q = readUnsigned(4); // pointer to begin of postamble
+ in().seekg(q, ios_base::beg); // now on begin of postamble
+ if (executeCommand() != 248) // execute postamble command but not the fontdefs
+ return false;
+ first = max(1u, min(first, _totalPages));
+ last = max(1u, min(last, _totalPages));
+ in().seekg(_prevBop, ios_base::beg); // now on last bop
+ _inPostamble = false; // we jumped out of the postamble
+ unsigned count = _totalPages;
+ for (; count > first && _prevBop > 0; count--) {
+ in().seekg(41, ios_base::cur); // skip bop and 10*4 \count bytes => now on pointer to prev bop
+ _prevBop = readSigned(4);
+ in().seekg(_prevBop, ios_base::beg);
+ }
+ while (first <= last) {
+ _currPageNum = first++;
+ while (executeCommand () != 140); // 140 == eop
+ }
+ return true;
+}
+
+
+void DVIReader::executePreamble () {
+ in().clear();
+ if (!in())
+ throw DVIException("invalid DVI file");
+ in().seekg(0, ios_base::beg);
+ if (in().get() != 247)
+ throw DVIException("invalid DVI file");
+ cmdPre(0);
+}
+
+
+/** Reads and executes the commands of the postamble. */
+void DVIReader::executePostamble () {
+ in().clear(); // reset all status bits
+ if (!in())
+ throw DVIException("invalid DVI file");
+ in().seekg(-1, ios_base::end); // stream pointer to last byte
+ while (in().peek() == 223)
+ in().seekg(-1, ios_base::cur); // skip fill bytes
+
+ in().seekg(-4, ios_base::cur); // now on first byte of q (pointer to begin of postamble)
+ UInt32 q = readUnsigned(4); // pointer to begin of postamble
+ in().seekg(q, ios_base::beg); // now on begin of postamble
+ while (executeCommand() != 249); // read all commands until postpost (= 249) is reached
+}
+
+
+/** Returns the current x coordinate in TeX point units.
+ * This is the horizontal position where the next output would be placed. */
+double DVIReader::getXPos () const {
+ return _currPos.h+_tx;
+}
+
+
+/** Returns the current y coordinate in TeX point units.
+ * This is the vertical position where the next output would be placed. */
+double DVIReader::getYPos () const {
+ return _currPos.v+_ty;
+}
+
+
+double DVIReader::getPageHeight () const {
+ return _pageHeight;
+}
+
+
+double DVIReader::getPageWidth () const {
+ return _pageWidth;
+}
+
+/////////////////////////////////////
+
+/** Reads and executes DVI preamble command. */
+void DVIReader::cmdPre (int) {
+ UInt32 i = readUnsigned(1); // identification number (should be 2)
+ UInt32 num = readUnsigned(4); // numerator units of measurement
+ UInt32 den = readUnsigned(4); // denominator units of measurement
+ _mag = readUnsigned(4); // magnification
+ UInt32 k = readUnsigned(1); // length of following comment
+ string cmt = readString(k); // comment
+ if (i != 2) {
+ ostringstream oss;
+ oss << "DVI format version " << i << " not supported";
+ throw DVIException(oss.str());
+ }
+ // 1 dviunit * num/den == multiples of 0.0000001m
+ // 1 dviunit * _scaleFactor: length of 1 dviunit in TeX points * _mag/1000
+ _scaleFactor = num/25400000.0*7227.0/den*_mag/1000.0;
+ if (_actions)
+ _actions->preamble(cmt);
+}
+
+
+/** Reads and executes DVI postamble command. */
+void DVIReader::cmdPost (int) {
+ _prevBop = readUnsigned(4); // pointer to previous bop
+ UInt32 num = readUnsigned(4);
+ UInt32 den = readUnsigned(4);
+ _mag = readUnsigned(4);
+ _pageHeight = readUnsigned(4); // height of tallest page in dvi units
+ _pageWidth = readUnsigned(4); // width of widest page in dvi units
+ readUnsigned(2); // max. stack depth
+ _totalPages = readUnsigned(2); // total number of pages
+ // 1 dviunit * num/den == multiples of 0.0000001m
+ // 1 dviunit * _scaleFactor: length of 1 dviunit in TeX points * _mag/1000
+ _scaleFactor = num/25400000.0*7227.0/den*_mag/1000.0;
+ _pageHeight *= _scaleFactor; // to pt units
+ _pageWidth *= _scaleFactor;
+ _inPostamble = true;
+ if (_actions)
+ _actions->postamble();
+}
+
+
+/** Reads and executes DVI postpost command. */
+void DVIReader::cmdPostPost (int) {
+ _inPostamble = false;
+ readUnsigned(4); // pointer to begin of postamble
+ UInt32 i = readUnsigned(1); // identification byte (should be 2)
+ if (i == 2)
+ while (readUnsigned(1) == 223); // skip fill bytes (223), eof bit should be set now
+ else
+ throw DVIException("invalid identification value in postpost");
+}
+
+
+/** Reads and executes Begin-Of-Page command. */
+void DVIReader::cmdBop (int) {
+ Int32 c[10];
+ for (int i=0; i < 10; i++)
+ c[i] = readSigned(4);
+ readSigned(4); // pointer to peceeding bop (-1 in case of first page)
+ _currPos.reset(); // set all DVI registers to 0
+ while (!_posStack.empty())
+ _posStack.pop();
+ _currFontNum = 0;
+ _inPage = true;
+ _pageLength = 0;
+ _pagePos = 0;
+ if (COMPUTE_PAGE_LENGTH) {
+ // compute number of bytes in current page
+ int length, param;
+ CommandHandler handler;
+ // read all commands until eop is found
+ while (evalCommand(true, handler, length, param) != 140) {
+ in().seekg(length, ios_base::cur);
+ _pageLength += length+1; // parameter length + opcode length (1 byte)
+ }
+ ++_pageLength; // add length of eop command (1 byte)
+ in().seekg(-int(_pageLength), ios_base::cur); // go back to first command following bop
+ _pageLength += 45; // add length of bop command
+ }
+ beginPage(_currPageNum, c);
+ if (_actions)
+ _actions->beginPage(_currPageNum, c);
+}
+
+
+/** Reads and executes End-Of-Page command. */
+void DVIReader::cmdEop (int) {
+ if (!_posStack.empty())
+ throw DVIException("stack not empty at end of page");
+ _inPage = false;
+ endPage();
+ if (_actions)
+ _actions->endPage();
+}
+
+
+/** Reads and executes push command. */
+void DVIReader::cmdPush (int) {
+ _posStack.push(_currPos);
+}
+
+
+/** Reads and executes pop command (restores pushed position information). */
+void DVIReader::cmdPop (int) {
+ if (_posStack.empty())
+ throw DVIException("stack empty at pop command");
+ else {
+ DVIPosition prevPos = _currPos;
+ _currPos = _posStack.top();
+ _posStack.pop();
+ if (_actions) {
+ if (prevPos.h != _currPos.h)
+ _actions->moveToX(_currPos.h + _tx);
+ if (prevPos.v != _currPos.v)
+ _actions->moveToY(_currPos.v + _ty);
+ }
+ }
+}
+
+
+/** Helper function that actually sets/puts a charater. It is called by the
+ * cmdSetChar and cmdPutChar methods.
+ * @param[in] c character to typeset
+ * @param[in] moveCursor if true, register h is increased by the character width
+ * @throw DVIException if method is called ouside a bop/eop pair */
+void DVIReader::putChar (UInt32 c, bool moveCursor) {
+ if (!_inPage)
+ throw DVIException("set_char or put_char outside of page");
+
+ FontManager &fm = FontManager::instance();
+ Font *font = fm.getFont(_currFontNum);
+ if (!font)
+ throw DVIException("no font selected");
+
+ if (VirtualFont *vf = dynamic_cast<VirtualFont*>(font)) { // is current font a virtual font?
+ vector<UInt8> *dvi = const_cast<vector<UInt8>*>(vf->getDVI(c)); // get DVI snippet that describes character c
+ if (dvi) {
+ DVIPosition pos = _currPos; // save current cursor position
+ _currPos.x = _currPos.y = _currPos.w = _currPos.z = 0;
+ int save_fontnum = _currFontNum; // save current font number
+ fm.enterVF(vf); // new font number context
+ cmdFontNum0(fm.vfFirstFontNum(vf));
+ double save_scale = _scaleFactor;
+ _scaleFactor = vf->scaledSize()/(1 << 20);
+
+ VectorInputStream<UInt8> vis(*dvi);
+ istream &is = replaceStream(vis);
+ try {
+ executeAll(); // execute DVI fragment
+ }
+ catch (const DVIException &e) {
+ // Message::estream(true) << "invalid dvi in vf: " << e.getMessage() << endl; // @@
+ }
+ replaceStream(is); // restore previous input stream
+ _scaleFactor = save_scale; // restore previous scale factor
+ fm.leaveVF(); // restore previous font number context
+ cmdFontNum0(save_fontnum); // restore previous font number
+ _currPos = pos; // restore previous cursor position
+ }
+ }
+ else if (_actions) {
+ _actions->setChar(_currPos.h+_tx, _currPos.v+_ty, c, font);
+ }
+ if (moveCursor)
+ _currPos.h += font->charWidth(c) * font->scaleFactor() * _mag/1000.0;
+}
+
+
+/** Reads and executes set_char_x command. Puts a character at the current
+ * position and advances the cursor.
+ * @param[in] c character to set
+ * @throw DVIException if method is called ouside a bop/eop pair */
+void DVIReader::cmdSetChar0 (int c) {
+ putChar(c, true);
+}
+
+
+/** Reads and executes setx command. Puts a character at the current
+ * position and advances the cursor.
+ * @param[in] len number of parameter bytes (possible values: 1-4)
+ * @throw DVIException if method is called ouside a bop/eop pair */
+void DVIReader::cmdSetChar (int len) {
+ // According to the dvi specification all character codes are unsigned
+ // except len == 4. At the moment all char codes are treated as unsigned...
+ UInt32 c = readUnsigned(len); // if len == 4 c may be signed
+ putChar(c, true);
+}
+
+
+/** Reads and executes putx command. Puts a character at the current
+ * position but doesn't change the cursor position.
+ * @param[in] len number of parameter bytes (possible values: 1-4)
+ * @throw DVIException if method is called ouside a bop/eop pair */
+void DVIReader::cmdPutChar (int len) {
+ // According to the dvi specification all character codes are unsigned
+ // except len == 4. At the moment all char codes are treated as unsigned...
+ Int32 c = readUnsigned(len);
+ putChar(c, false);
+}
+
+
+/** Reads and executes set_rule command. Puts a solid rectangle at the current
+ * position and updates the cursor position.
+ * @throw DVIException if method is called ouside a bop/eop pair */
+void DVIReader::cmdSetRule (int) {
+ if (_inPage) {
+ double height = _scaleFactor*readSigned(4);
+ double width = _scaleFactor*readSigned(4);
+ if (_actions && height > 0 && width > 0)
+ _actions->setRule(_currPos.h+_tx, _currPos.v+_ty, height, width);
+ _currPos.h += width;
+ if (_actions && (height <= 0 || width <= 0))
+ _actions->moveToX(_currPos.h+_tx);
+ }
+ else
+ throw DVIException("set_rule outside of page");
+}
+
+
+/** Reads and executes set_rule command. Puts a solid rectangle at the current
+ * position but leaves the cursor position unchanged.
+ * @throw DVIException if method is called ouside a bop/eop pair */
+void DVIReader::cmdPutRule (int) {
+ if (_inPage) {
+ double height = _scaleFactor*readSigned(4);
+ double width = _scaleFactor*readSigned(4);
+ if (_actions && height > 0 && width > 0)
+ _actions->setRule(_currPos.h+_tx, _currPos.v+_ty, height, width);
+ }
+ else
+ throw DVIException("put_rule outside of page");
+}
+
+
+void DVIReader::cmdNop (int) {}
+
+void DVIReader::cmdRight (int len) {_currPos.h += _scaleFactor*readSigned(len); if (_actions) _actions->moveToX(_currPos.h+_tx);}
+void DVIReader::cmdDown (int len) {_currPos.v += _scaleFactor*readSigned(len); if (_actions) _actions->moveToY(_currPos.v+_ty);}
+void DVIReader::cmdX0 (int) {_currPos.h += _currPos.x; if (_actions) _actions->moveToX(_currPos.h+_tx);}
+void DVIReader::cmdY0 (int) {_currPos.v += _currPos.y; if (_actions) _actions->moveToY(_currPos.v+_ty);}
+void DVIReader::cmdW0 (int) {_currPos.h += _currPos.w; if (_actions) _actions->moveToX(_currPos.h+_tx);}
+void DVIReader::cmdZ0 (int) {_currPos.v += _currPos.z; if (_actions) _actions->moveToY(_currPos.v+_ty);}
+void DVIReader::cmdX (int len) {_currPos.x = _scaleFactor*readSigned(len); cmdX0(0);}
+void DVIReader::cmdY (int len) {_currPos.y = _scaleFactor*readSigned(len); cmdY0(0);}
+void DVIReader::cmdW (int len) {_currPos.w = _scaleFactor*readSigned(len); cmdW0(0);}
+void DVIReader::cmdZ (int len) {_currPos.z = _scaleFactor*readSigned(len); cmdZ0(0);}
+
+
+void DVIReader::cmdXXX (int len) {
+ if (_inPage) {
+ UInt32 numBytes = readUnsigned(len);
+ string s = readString(numBytes);
+ if (_actions)
+ _actions->special(s);
+ }
+ else
+ throw DVIException("special outside of page");
+}
+
+
+/** Selects a previously defined font by its number.
+ * @param[in] num font number
+ * @throw DVIException if font number is undefined */
+void DVIReader::cmdFontNum0 (int num) {
+ if (Font *font = FontManager::instance().getFont(num)) {
+ _currFontNum = num;
+ if (_actions && !dynamic_cast<VirtualFont*>(font))
+ _actions->setFont(FontManager::instance().fontID(num), font); // all fonts get a recomputed ID
+ }
+ else {
+ ostringstream oss;
+ oss << "undefined font number " << num;
+ throw DVIException(oss.str());
+ }
+}
+
+
+/** Selects a previously defined font.
+ * @param[in] len size of font number variable (in bytes)
+ * @throw DVIException if font number is undefined */
+void DVIReader::cmdFontNum (int len) {
+ UInt32 num = readUnsigned(len);
+ cmdFontNum0(num);
+}
+
+
+/** Helper function to handle a font definition.
+ * @param[in] fontnum local font number
+ * @param[in] name font name
+ * @param[in] checksum checksum to be compared with TFM checksum
+ * @param[in] ds design size in TeX point units
+ * @param[in] ss scaled size in TeX point units */
+void DVIReader::defineFont (UInt32 fontnum, const string &name, UInt32 cs, double ds, double ss) {
+ FontManager &fm = FontManager::instance();
+ int id = fm.registerFont(fontnum, name, cs, ds, ss);
+ Font *font = fm.getFontById(id);
+ if (VirtualFont *vf = dynamic_cast<VirtualFont*>(font)) {
+ // read vf file, register its font and character definitions
+ fm.enterVF(vf);
+ ifstream ifs(vf->path(), ios::binary);
+ VFReader vfReader(ifs);
+ vfReader.replaceActions(this);
+ vfReader.executeAll();
+ fm.leaveVF();
+ }
+ if (_actions)
+ _actions->defineFont(id, font);
+}
+
+
+/** Defines a new font.
+ * @param[in] len size of font number variable (in bytes) */
+void DVIReader::cmdFontDef (int len) {
+ UInt32 fontnum = readUnsigned(len); // font number
+ UInt32 checksum = readUnsigned(4); // font checksum (to be compared with corresponding TFM checksum)
+ UInt32 ssize = readUnsigned(4); // scaled size of font in DVI units
+ UInt32 dsize = readUnsigned(4); // design size of font in DVI units
+ UInt32 pathlen = readUnsigned(1); // length of font path
+ UInt32 namelen = readUnsigned(1); // length of font name
+ string fontpath = readString(pathlen);
+ string fontname = readString(namelen);
+
+ // process font definitions between bop and eop only, skip those in the postamble
+ if (_inPage)
+ defineFont(fontnum, fontname, checksum, dsize*_scaleFactor, ssize*_scaleFactor);
+}
+
+
+/** This template method is called by the VFReader after reading a font definition from a VF file.
+ * @param[in] fontnum local font number
+ * @param[in] name font name
+ * @param[in] checksum checksum to be compared with TFM checksum
+ * @param[in] dsize design size in TeX point units
+ * @param[in] ssize scaled size in TeX point units */
+void DVIReader::defineVFFont (UInt32 fontnum, string path, string name, UInt32 checksum, double dsize, double ssize) {
+ VirtualFont *vf = FontManager::instance().getVF();
+ defineFont(fontnum, name, checksum, dsize, ssize * vf->scaleFactor());
+}
+
+
+/** This template method is called by the VFReader after reading a character definition from a VF file.
+ * @param[in] c character number
+ * @param[in] dvi DVI fragment describing the character */
+void DVIReader::defineVFChar (UInt32 c, vector<UInt8> *dvi) {
+ FontManager::instance().assignVfChar(c, dvi);
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIReader.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIReader.h
new file mode 100644
index 00000000000..1a1163900d6
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIReader.h
@@ -0,0 +1,147 @@
+/*************************************************************************
+** DVIReader.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef DVIREADER_H
+#define DVIREADER_H
+
+#include <limits>
+#include <map>
+#include <stack>
+#include <string>
+#include "MessageException.h"
+#include "StreamReader.h"
+#include "VFActions.h"
+#include "types.h"
+
+
+struct DVIException : public MessageException
+{
+ DVIException (const std::string &msg) : MessageException(msg) {}
+};
+
+struct InvalidDVIFileException : public DVIException
+{
+ InvalidDVIFileException(const std::string &msg) : DVIException(msg) {}
+};
+
+struct DVIActions;
+struct FileFinder;
+
+class DVIReader : public StreamReader, protected VFActions
+{
+ typedef void (DVIReader::*CommandHandler)(int);
+
+ struct DVIPosition
+ {
+ double h, v;
+ double x, w, y, z;
+ DVIPosition () {reset();}
+ void reset () {h = v = x = w = y = z = 0.0;}
+ };
+
+ public:
+ DVIReader (std::istream &is, DVIActions *a=0);
+
+ bool executeDocument ();
+ void executeAll ();
+ bool executeAllPages ();
+ void executePreamble ();
+ void executePostamble ();
+ bool executePage (unsigned n);
+ bool executePages (unsigned first, unsigned last);
+ bool inPostamble () const {return _inPostamble;}
+ double getXPos () const;
+ double getYPos () const;
+ void finishLine () {_prevYPos = std::numeric_limits<double>::min();}
+ void translateToX (double x) {_tx=x-_currPos.h-_tx;}
+ void translateToY (double y) {_ty=y-_currPos.v-_ty;}
+ double getPageWidth () const;
+ double getPageHeight () const;
+ int getCurrentFontNumber () const {return _currFontNum;}
+ unsigned getCurrentPageNumber () const {return _currPageNum;}
+ unsigned getTotalPages () const {return _totalPages;}
+ DVIActions* getActions () const {return _actions;}
+ DVIActions* replaceActions (DVIActions *a);
+
+ protected:
+ int executeCommand ();
+ int evalCommand (bool compute_size, CommandHandler &handler, int &length, int &param);
+ void putChar (UInt32 c, bool moveCursor);
+ void defineFont (UInt32 fontnum, const std::string &name, UInt32 cs, double ds, double ss);
+ virtual void beginPage (unsigned n, Int32 *c) {}
+ virtual void endPage () {}
+
+ // VFAction methods
+ void defineVFFont (UInt32 fontnum, std::string path, std::string name, UInt32 checksum, double dsize, double ssize);
+ void defineVFChar (UInt32 c, std::vector<UInt8> *dvi);
+
+ // the following methods represent the DVI commands
+ // they are called by executeCommand and should not be used directly
+ void cmdSetChar0 (int c);
+ void cmdSetChar (int len);
+ void cmdPutChar (int len);
+ void cmdSetRule (int len);
+ void cmdPutRule (int len);
+ void cmdNop (int len);
+ void cmdBop (int len);
+ void cmdEop (int len);
+ void cmdPush (int len);
+ void cmdPop (int len);
+ void cmdRight (int len);
+ void cmdDown (int len);
+ void cmdX0 (int len);
+ void cmdY0 (int len);
+ void cmdW0 (int len);
+ void cmdZ0 (int len);
+ void cmdX (int len);
+ void cmdY (int len);
+ void cmdW (int len);
+ void cmdZ (int len);
+ void cmdFontDef (int len);
+ void cmdFontNum0 (int n);
+ void cmdFontNum (int len);
+ void cmdXXX (int len);
+ void cmdPre (int len);
+ void cmdPost (int len);
+ void cmdPostPost (int len);
+
+ private:
+ DVIActions *_actions; ///< actions to be performed on various DVI events
+ bool _inPage; ///< true if between bop and eop
+ unsigned _totalPages; ///< total number of pages in dvi file
+ unsigned _currPageNum; ///< current page number
+ int _currFontNum; ///< current font number
+ double _scaleFactor; ///< 1 dvi unit = scaleFactor * TeX points
+ UInt32 _mag; ///< magnification factor * 1000
+ bool _inPostamble; ///< true if stream pointer is inside the postamble
+ Int32 _prevBop; ///< pointer to previous bop
+ double _pageHeight, _pageWidth; ///< page height and width in TeX points
+ DVIPosition _currPos; ///< current cursor position
+ std::stack<DVIPosition> _posStack;
+ double _prevYPos; ///< previous vertical cursor position
+ double _tx, _ty; ///< tranlation of cursor position
+ size_t _pageLength; ///< number of bytes between current bop end eop
+ std::streampos _pagePos; ///< distance of current DVI command from bop (in bytes)
+
+ public:
+ static bool COMPUTE_PAGE_LENGTH; ///< if true, the bop handler computes the number of bytes of the current page
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVG.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVG.cpp
new file mode 100644
index 00000000000..24481b670c7
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVG.cpp
@@ -0,0 +1,359 @@
+/*************************************************************************
+** DVIToSVG.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifdef HAVE_CONFIG_H
+ #include "config.h"
+ #ifdef TARGET_SYSTEM
+ #define VERSION_STR VERSION " (" TARGET_SYSTEM ")"
+ #else
+ #define VERSION_STR VERSION
+ #endif
+#else
+ #define VERSION_STR ""
+#endif
+
+#include <cstdlib>
+#include <ctime>
+#include <fstream>
+#include <sstream>
+#include "Calculator.h"
+#include "DVIToSVG.h"
+#include "DVIToSVGActions.h"
+#include "Font.h"
+#include "FontManager.h"
+#include "FileFinder.h"
+#include "GlyphTracerMessages.h"
+#include "InputBuffer.h"
+#include "InputReader.h"
+#include "Matrix.h"
+#include "Message.h"
+#include "PageRanges.h"
+#include "PageSize.h"
+#include "SVGOutputBase.h"
+#include "SVGTree.h"
+#include "TFM.h"
+#include "XMLDocument.h"
+#include "XMLDocTypeNode.h"
+#include "XMLNode.h"
+#include "XMLString.h"
+//
+///////////////////////////////////
+// special handlers
+
+#include "BgColorSpecialHandler.h"
+#include "ColorSpecialHandler.h"
+#include "DvisvgmSpecialHandler.h"
+#include "EmSpecialHandler.h"
+#include "NoPsSpecialHandler.h"
+#include "PdfSpecialHandler.h"
+//#include "HtmlSpecialHandler.h"
+#if !defined(DISABLE_GS)
+ #include "PsSpecialHandler.h"
+#endif
+#include "TpicSpecialHandler.h"
+///////////////////////////////////
+
+
+using namespace std;
+
+
+/** Returns time stamp of current date/time. */
+static string datetime () {
+ time_t t;
+ time(&t);
+ struct tm *tm = localtime(&t);
+ char *timestr = asctime(tm);
+ timestr[24] = 0; // remove newline
+ return timestr;
+}
+
+class PSHeaderActions : public DVIActions
+{
+ public :
+ PSHeaderActions (DVIToSVG &dvisvg) : _dvisvg(dvisvg) {}
+
+ void special (const std::string &s) {
+ // execute PS headers only
+ if (!s.empty() && (s[0] == '!' || s.substr(0, 7) == "header="))
+ _dvisvg.specialManager().process(s, 0);
+ }
+
+ BoundingBox& bbox () {return _bbox;}
+
+ private:
+ DVIToSVG &_dvisvg;
+ BoundingBox _bbox;
+};
+
+
+/** 'a': trace all glyphs even if some of them are already cached
+ * 'm': trace missing glyphs, i.e. glyphs not yet cached
+ * 0 : only trace actually required glyphs */
+char DVIToSVG::TRACE_MODE = 0;
+
+
+DVIToSVG::DVIToSVG (istream &is, SVGOutputBase &out) : DVIReader(is), _out(out)
+{
+ replaceActions(new DVIToSVGActions(*this, _svg));
+}
+
+
+DVIToSVG::~DVIToSVG () {
+ delete replaceActions(0);
+}
+
+
+/** Starts the conversion process.
+ * @param[in] first number of first page to convert
+ * @param[in] last number of last page to convert
+ * @param[out] pageinfo (number of converted pages, number of total pages) */
+void DVIToSVG::convert (unsigned first, unsigned last, pair<int,int> *pageinfo) {
+ if (getTotalPages() == 0) {
+ executePreamble();
+ executePostamble(); // collect scaling information
+ }
+ if (first > last)
+ swap(first, last);
+ if (first > getTotalPages()) {
+ ostringstream oss;
+ oss << "file contains only " << getTotalPages() << " page";
+ if (getTotalPages() > 1)
+ oss << 's';
+ throw DVIException(oss.str());
+ }
+ last = min(last, getTotalPages());
+
+ if (first > 1) {
+ // ensure loading of PostScript prologues given at the beginning of the first page
+ // (prologue files are always referenced in first page)
+ PSHeaderActions headerActions(*this);
+ DVIActions *save = replaceActions(&headerActions);
+ executePage(1);
+ replaceActions(save);
+ }
+ for (unsigned i=first; i <= last; ++i) {
+ executePage(i);
+ embedFonts(_svg.rootNode());
+ _svg.write(_out.getPageStream(getCurrentPageNumber(), getTotalPages()));
+ string fname = _out.filename(i, getTotalPages());
+ Message::mstream(false, Message::MC_PAGE_WRITTEN) << "\npage written to " << (fname.empty() ? "<stdout>" : fname) << '\n';
+ _svg.reset();
+ static_cast<DVIToSVGActions*>(getActions())->reset();
+ }
+ if (pageinfo) {
+ pageinfo->first = last-first+1;
+ pageinfo->second = getTotalPages();
+ }
+}
+
+
+/** Convert DVI pages specified by a page range string.
+ * @param[in] rangestr string describing the pages to convert
+ * @param[out] pageinfo (number of converted pages, number of total pages) */
+void DVIToSVG::convert (const string &rangestr, pair<int,int> *pageinfo) {
+ if (getTotalPages() == 0) {
+ executePreamble();
+ executePostamble(); // collect scaling information
+ }
+ PageRanges ranges;
+ if (!ranges.parse(rangestr, getTotalPages()))
+ throw MessageException("invalid page range format");
+ FORALL(ranges, PageRanges::ConstIterator, it)
+ convert(it->first, it->second);
+ if (pageinfo) {
+ pageinfo->first = ranges.pages();
+ pageinfo->second = getTotalPages();
+ }
+}
+
+
+/** This template method is called by parent class DVIReader before
+ * executing the BOP actions.
+ * @param[in] c contains information about the page (page number etc.) */
+void DVIToSVG::beginPage (unsigned n, Int32 *c) {
+ if (dynamic_cast<DVIToSVGActions*>(getActions())) {
+ Message::mstream().indent(0);
+ Message::mstream(false, Message::MC_PAGE_NUMBER) << "processing page " << n << " [" << c[0] << ']';
+ Message::mstream().indent(1);
+ _svg.appendToDoc(new XMLCommentNode(" This file was generated by dvisvgm " VERSION_STR " "));
+ _svg.appendToDoc(new XMLCommentNode(" " + datetime() + " "));
+ }
+}
+
+
+/** This template method is called by parent class DVIReader before
+ * executing the EOP actions. */
+void DVIToSVG::endPage () {
+ if (!dynamic_cast<DVIToSVGActions*>(getActions()))
+ return;
+
+ _specialManager.notifyEndPage();
+ // set bounding box and apply page transformations
+ BoundingBox &bbox = getActions()->bbox();
+ if (!_transCmds.empty()) {
+ Calculator calc;
+ calc.setVariable("ux", bbox.minX());
+ calc.setVariable("uy", bbox.minY());
+ calc.setVariable("w", bbox.width());
+ calc.setVariable("h", bbox.height());
+ calc.setVariable("pt", 1);
+ calc.setVariable("in", 72.27);
+ calc.setVariable("cm", 72.27/2.54);
+ calc.setVariable("mm", 72.27/25.4);
+ Matrix matrix(_transCmds, calc);
+ static_cast<DVIToSVGActions*>(getActions())->setPageMatrix(matrix);
+ if (_bboxString == "min")
+ bbox.transform(matrix);
+ }
+ if (string("dvi none min").find(_bboxString) == string::npos) {
+ istringstream iss(_bboxString);
+ StreamInputReader ir(iss);
+ ir.skipSpace();
+ if (isalpha(ir.peek())) {
+ // set explicitly given page format
+ PageSize size(_bboxString);
+ if (size.valid()) {
+ // convention: DVI position (0,0) equals (1in, 1in) relative
+ // to the upper left vertex of the page (see DVI specification)
+ const double border = -72.27;
+ bbox = BoundingBox(border, border, size.widthInPT()+border, size.heightInPT()+border);
+ }
+ }
+ else { // set/modify bounding box by explicitly given values
+ try {
+ bbox.set(_bboxString);
+ }
+ catch (const MessageException &e) {
+ }
+ }
+ }
+ else if (_bboxString == "dvi") {
+ // center page content
+ double dx = (getPageWidth()-bbox.width())/2;
+ double dy = (getPageHeight()-bbox.height())/2;
+ bbox += BoundingBox(-dx, -dy, dx, dy);
+ }
+ if (_bboxString != "none") {
+ if (bbox.width() == 0)
+ Message::wstream(false) << "\npage is empty\n";
+ else {
+ _svg.setBBox(bbox);
+
+ Message::mstream(false) << '\n';
+ Message::mstream(false, Message::MC_PAGE_SIZE) << "page size: " << bbox.width() << "pt"
+ " x " << bbox.height() << "pt"
+ " (" << bbox.width()/72.27*25.4 << "mm"
+ " x " << bbox.height()/72.27*25.4 << "mm)";
+ Message::mstream(false) << '\n';
+ }
+ }
+}
+
+
+static void collect_chars (map<const Font*, set<int> > &fm) {
+ typedef const map<const Font*, set<int> > UsedCharsMap;
+ FORALL(fm, UsedCharsMap::const_iterator, it) {
+ if (it->first->uniqueFont() != it->first) {
+ FORALL(it->second, set<int>::const_iterator, cit)
+ fm[it->first->uniqueFont()].insert(*cit);
+ }
+ }
+}
+
+
+/** Adds the font information to the SVG tree.
+ * @param[in] svgElement the font nodes are added to this node */
+void DVIToSVG::embedFonts (XMLElementNode *svgElement) {
+ if (!svgElement)
+ return;
+ if (!getActions()) // no dvi actions => no chars written => no fonts to embed
+ return;
+
+ typedef map<const Font*, set<int> > UsedCharsMap;
+ const DVIToSVGActions *svgActions = static_cast<DVIToSVGActions*>(getActions());
+ UsedCharsMap &usedChars = svgActions->getUsedChars();
+
+ collect_chars(usedChars);
+
+ GlyphTracerMessages messages;
+ FORALL(usedChars, UsedCharsMap::const_iterator, it) {
+ const Font *font = it->first;
+ if (const PhysicalFont *ph_font = dynamic_cast<const PhysicalFont*>(font)) {
+ if (TRACE_MODE)
+ ph_font->traceAllGlyphs(TRACE_MODE == 'a', &messages);
+
+ if (font->path()) // does font file exist?
+ _svg.append(*ph_font, it->second, &messages);
+ else
+ Message::wstream(true) << "can't embed font '" << font->name() << "'\n";
+ }
+ else
+ Message::wstream(true) << "can't embed font '" << font->name() << "'\n";
+ }
+ _svg.appendFontStyles(svgActions->getUsedFonts());
+}
+
+
+/** Enables or disables processing of specials. If ignorelist == 0, all
+ * supported special handlers are loaded. To disable selected sets of specials,
+ * the corresponding prefixes can be given separated by non alpha-numeric characters,
+ * e.g. "color, ps, em" or "color: ps em" etc.
+ * A single "*" in the ignore list disables all specials.
+ * @param[in] ignorelist list of special prefixes to ignore
+ * @param[in] pswarning if true, shows warning about disabled PS support
+ * @return the SpecialManager that handles special statements */
+const SpecialManager* DVIToSVG::setProcessSpecials (const char *ignorelist, bool pswarning) {
+ if (ignorelist && strcmp(ignorelist, "*") == 0) { // ignore all specials?
+ _specialManager.unregisterHandlers();
+ }
+ else {
+ // add special handlers
+ SpecialHandler *handlers[] = {
+ 0, // placeholder for PsSpecialHandler
+ new BgColorSpecialHandler, // handles background color special
+ new ColorSpecialHandler, // handles color specials
+ new DvisvgmSpecialHandler, // handles raw SVG embeddings
+ new EmSpecialHandler, // handles emTeX specials
+ new PdfSpecialHandler, // handles pdf specials
+// new HtmlSpecialHandler, // handles hyperref specials
+ new TpicSpecialHandler, // handles tpic specials
+ 0
+ };
+ SpecialHandler **p = handlers;
+#if !defined(DISABLE_GS)
+ if (Ghostscript().available())
+ *p = new PsSpecialHandler;
+ else
+#endif
+ {
+ *p = new NoPsSpecialHandler; // dummy PS special handler that only prints warning messages
+ if (pswarning) {
+#if defined(DISABLE_GS)
+ Message::wstream() << "this build of dvisvgm doesn't support the processing of PostScript specials\n";
+#else
+ Message::wstream() << "processing of PostScript specials is disabled (Ghostscript not found)\n";
+#endif
+ }
+ }
+ _specialManager.unregisterHandlers();
+ _specialManager.registerHandlers(p, ignorelist);
+ }
+ return &_specialManager;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVG.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVG.h
new file mode 100644
index 00000000000..0efc86a8a07
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVG.h
@@ -0,0 +1,63 @@
+/*************************************************************************
+** DVIToSVG.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef DVITOSVG_H
+#define DVITOSVG_H
+
+#include <iostream>
+#include <string>
+#include <utility>
+#include "DVIReader.h"
+#include "SpecialManager.h"
+#include "SVGTree.h"
+
+struct SVGOutputBase;
+
+class DVIToSVG : public DVIReader
+{
+ public:
+ DVIToSVG (std::istream &is, SVGOutputBase &out);
+ ~DVIToSVG ();
+ void convert (unsigned firstPage, unsigned lastPage, std::pair<int,int> *pageinfo=0);
+ void convert (const std::string &range, std::pair<int,int> *pageinfo=0);
+ const SpecialManager* setProcessSpecials (const char *ignorelist=0, bool pswarning=false);
+ const SpecialManager& specialManager () const {return _specialManager;}
+ void setPageSize (const std::string &name) {_bboxString = name;}
+ void setTransformation (const std::string &cmds) {_transCmds = cmds;}
+
+ public:
+ static char TRACE_MODE;
+
+ protected:
+ DVIToSVG (const DVIToSVG &);
+ DVIToSVG operator = (const DVIToSVG &);
+ void beginPage (unsigned n, Int32 *c);
+ void endPage ();
+ void embedFonts (XMLElementNode *svgElement);
+
+ private:
+ SVGTree _svg;
+ SVGOutputBase &_out;
+ std::string _bboxString;
+ std::string _transCmds;
+ SpecialManager _specialManager;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVGActions.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVGActions.cpp
new file mode 100644
index 00000000000..26637ac07b6
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVGActions.cpp
@@ -0,0 +1,343 @@
+/*************************************************************************
+** DVIToSVGActions.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstring>
+#include <ctime>
+#include "BoundingBox.h"
+#include "DVIToSVG.h"
+#include "DVIToSVGActions.h"
+#include "Font.h"
+#include "FontManager.h"
+#include "GlyphTracerMessages.h"
+#include "SpecialManager.h"
+#include "System.h"
+#include "XMLNode.h"
+#include "XMLString.h"
+
+using namespace std;
+
+
+double DVIToSVGActions::PROGRESSBAR_DELAY=1000; // initial delay in seconds (values >= 1000 disable the progressbar)
+bool DVIToSVGActions::EXACT_BBOX = false;
+
+
+DVIToSVGActions::DVIToSVGActions (DVIToSVG &dvisvg, SVGTree &svg)
+ : _svg(svg), _dvisvg(dvisvg), _pageMatrix(0), _bgcolor(Color::TRANSPARENT), _boxes(0)
+{
+ _currentFontNum = -1;
+ _pageCount = 0;
+}
+
+
+DVIToSVGActions::~DVIToSVGActions () {
+ delete _pageMatrix;
+ delete _boxes;
+}
+
+
+void DVIToSVGActions::reset() {
+ _usedChars.clear();
+ _usedFonts.clear();
+ _bbox = BoundingBox();
+ _currentFontNum = -1;
+ _bgcolor = Color::TRANSPARENT;
+}
+
+
+void DVIToSVGActions::setPageMatrix (const Matrix &matrix) {
+ delete _pageMatrix;
+ _pageMatrix = new Matrix(matrix);
+}
+
+
+void DVIToSVGActions::moveToX (double x) {
+ _dvisvg.specialManager().notifyPositionChange(getX(), getY());
+ _svg.setX(getX()); // get current horizontal DVI position
+}
+
+
+void DVIToSVGActions::moveToY (double y) {
+ _dvisvg.specialManager().notifyPositionChange(getX(), getY());
+ _svg.setY(y);
+}
+
+
+/** This method is called when a "set char" command was found in the DVI file.
+ * It draws a character of the current font.
+ * @param[in] x horizontal position of left bounding box edge
+ * @param[in] y vertical position of the character's baseline
+ * @param[in] c character code relative to the current font
+ * @param[in] font font to be used */
+void DVIToSVGActions::setChar (double x, double y, unsigned c, const Font *font) {
+ // If we use SVG fonts there is no need to record all font name/char/size combinations
+ // because the SVG font mechanism handles this automatically. It's sufficient to
+ // record font names and chars. The various font sizes can be ignored here.
+ // For a given font object, Font::uniqueFont() returns the same unique font object for
+ // all fonts with the same name.
+ _usedChars[SVGTree::USE_FONTS ? font->uniqueFont() : font].insert(c);
+
+ // However, we record all required fonts
+ _usedFonts.insert(font);
+
+ _svg.appendChar(c, x, y, *font);
+ // update bounding box
+ double wl=0, wr=0, h=0, d=0; // left/right width, height, and depth of character c
+ static string fontname;
+ GlyphTracerMessages callback(fontname != font->name(), false);
+ fontname = font->name();
+ BoundingBox charbox;
+ const PhysicalFont *ph_font = dynamic_cast<const PhysicalFont*>(font);
+ if (EXACT_BBOX && ph_font && ph_font->getGlyphBox(c, charbox, &callback)) {
+ if ((wl = charbox.minX()) > 0) wl=0;
+ if ((wr = charbox.maxX()) < 0) wr=0;
+ if ((h = charbox.maxY()) < 0) h=0;
+ if ((d = -charbox.minY()) < 0) d=0;
+ }
+ else {
+ double s = font->scaleFactor();
+ wr = s*(font->charWidth(c) + font->italicCorr(c));
+ h = s*font->charHeight(c);
+ d = s*font->charDepth(c);
+ }
+
+ BoundingBox bbox(x+wl, y-h, x+wr, y+d);
+/* XMLElementNode *rect = new XMLElementNode("rect");
+ rect->addAttribute("x", x+wl);
+ rect->addAttribute("y", y-h);
+ rect->addAttribute("width", (-wl+wr));
+ rect->addAttribute("height", (h+d));
+ rect->addAttribute("fill", "none");
+ rect->addAttribute("stroke", "red");
+ rect->addAttribute("stroke-width", "0.5");
+ _svg.appendToPage(rect);*/
+ if (!getMatrix().isIdentity())
+ bbox.transform(getMatrix());
+ embed(bbox);
+}
+
+
+/** This method is called when a "set rule" or "put rule" command was found in the
+ * DVI file. It draws a solid unrotated rectangle.
+ * @param[in] x horizontal position of left edge
+ * @param[in] y vertical position of bottom(!) edge
+ * @param[in] height length of the vertical edges
+ * @param[in] width length of the horizontal edges */
+void DVIToSVGActions::setRule (double x, double y, double height, double width) {
+/* x *= BP;
+ y *= BP;
+ height *= BP;
+ width *= BP; */
+ // (x,y) is the lower left corner of the rectangle
+ XMLElementNode *rect = new XMLElementNode("rect");
+ rect->addAttribute("x", x);
+ rect->addAttribute("y", y-height);
+ rect->addAttribute("height", height);
+ rect->addAttribute("width", width);
+ if (!getMatrix().isIdentity())
+ rect->addAttribute("transform", getMatrix().getSVG());
+ if (getColor() != Color::BLACK)
+ rect->addAttribute("fill", _svg.getColor().rgbString());
+ _svg.appendToPage(rect);
+
+ // update bounding box
+ BoundingBox bb(x, y-height, x+width, y);
+ if (!getMatrix().isIdentity())
+ bb.transform(getMatrix());
+ embed(bb);
+}
+
+
+/** This method is called when a "set font" command was found in the DVI file. The
+ * font must be previously defined.
+ * @param[in] num unique number of the font in the DVI file (not necessarily equal to the DVI font number)
+ * @param[in] font pointer to the font object (always represents a physical font and never a virtual font) */
+void DVIToSVGActions::setFont (int num, const Font *font) {
+ _currentFontNum = num;
+ _svg.setFont(num, font);
+}
+
+
+/** This method is called when a "special" command was found in the DVI file.
+ * @param[in] s the special expression */
+void DVIToSVGActions::special (const string &s) {
+ try {
+ _dvisvg.specialManager().process(s, this, this);
+ // @@ output message in case of unsupported specials?
+ }
+ catch (const SpecialException &e) {
+ Message::estream(true) << "error in special '" << s << "': " << e.what() << '\n';
+ }
+}
+
+
+void DVIToSVGActions::beginSpecial (const char *prefix) {
+}
+
+
+void DVIToSVGActions::endSpecial (const char *) {
+}
+
+
+/** This method is called when the DVI preamble was read
+ * @param[in] cmt preamble comment text. */
+void DVIToSVGActions::preamble (const string &cmt) {
+}
+
+
+void DVIToSVGActions::postamble () {
+}
+
+
+/** This method is called when a "begin of page (bop)" command was found in the DVI file.
+ * @param[in] c array with 10 components representing \count0 ... \count9. c[0] contains the
+ * current (printed) page number (may differ from page count) */
+void DVIToSVGActions::beginPage (unsigned n, Int32 *c) {
+ _svg.newPage(++_pageCount);
+ _bbox = BoundingBox(); // clear bounding box
+ if (_boxes)
+ _boxes->clear();
+}
+
+
+/** This method is called when an "end of page (eop)" command was found in the DVI file. */
+void DVIToSVGActions::endPage () {
+ _svg.transformPage(_pageMatrix);
+ if (_bgcolor != Color::TRANSPARENT) {
+ // create a rectangle filled with the background color
+ XMLElementNode *r = new XMLElementNode("rect");
+ r->addAttribute("x", _bbox.minX());
+ r->addAttribute("y", _bbox.minY());
+ r->addAttribute("width", _bbox.width());
+ r->addAttribute("height", _bbox.height());
+ r->addAttribute("fill", _bgcolor.rgbString());
+ _svg.prependToPage(r);
+ }
+}
+
+
+void DVIToSVGActions::setBgColor (const Color &color) {
+ _bgcolor = color;
+}
+
+
+void DVIToSVGActions::embed(const BoundingBox& bbox) {
+ _bbox.embed(bbox);
+ if (_boxes) {
+ FORALL(*_boxes, BoxMap::iterator, it)
+ it->second.embed(bbox);
+ }
+}
+
+
+void DVIToSVGActions::embed(const DPair& p, double r) {
+ if (r == 0)
+ _bbox.embed(p);
+ else
+ _bbox.embed(p, r);
+ if (_boxes)
+ FORALL(*_boxes, BoxMap::iterator, it)
+ it->second.embed(p, r);
+}
+
+
+BoundingBox& DVIToSVGActions::bbox(const string& name, bool reset) {
+ if (!_boxes)
+ _boxes = new BoxMap;
+ BoundingBox &box = (*_boxes)[name];
+ if (reset)
+ box = BoundingBox();
+ return box;
+}
+
+
+/** This method is called by subprocesses like the PS handler when
+ * a computation step has finished. Since the total number of steps
+ * can't be determined in advance, we don't show a percent value but
+ * a rotating dash. */
+void DVIToSVGActions::progress (const char *id) {
+ if (PROGRESSBAR_DELAY < 1000) {
+ static double time=0;
+ // slow down updating of the progress indicator to prevent flickering
+ if (System::time() - time > 0.1) {
+ progress(0, 0, id);
+ time = System::time();
+ }
+ }
+}
+
+
+/** Returns the number of digits of a given integer. */
+static int digits (int n) {
+ if (n == 0)
+ return 1;
+ if (n > 0)
+ return int(log10(double(n))+1);
+ return int(log10(double(-n))+2);
+}
+
+
+/** Draws a simple progress indicator.
+ * @param[in] current current iteration step (of 'total' steps)
+ * @param[in] total total number of iteration steps
+ * @param[in] id ID of the subprocess providing the information */
+void DVIToSVGActions::progress (size_t current, size_t total, const char *id) {
+ static double time=0;
+ static bool draw=false; // show progress indicator?
+ static const char *prev_id=0;
+ if (current == 0 && total > 0) {
+ time = System::time();
+ draw = false;
+ Message::mstream() << '\n';
+ }
+ // don't show the progress indicator before the given time has elapsed
+ if (!draw && System::time()-time > PROGRESSBAR_DELAY)
+ draw = true;
+ if (draw && (System::time() - time > 0.1 || (total > 0 && current == total) || prev_id != id)) {
+ static int step = -1; // >=0: rotating dash
+ static size_t prev_current=0, prev_total=1;
+ const char *tips = "-\\|/";
+ if (total == 0) {
+ current = prev_current;
+ total = prev_total;
+ step = (step+1) % 4;
+ }
+ else {
+ prev_current = current;
+ prev_total = total;
+ step = -1;
+ }
+ // adapt length of progress indicator to terminal width
+ int cols = Terminal::columns();
+ int width = (cols == 0 || cols > 60) ? 50 : 49-60+cols;
+ double factor = double(current)/double(total);
+ int length = int(width*factor);
+ Message::mstream(false, Message::MC_PROGRESS)
+ << '[' << string(length, '=')
+ << (factor < 1.0 ? (step < 0 ? ' ' : tips[step]) : '=')
+ << string(width-length, ' ')
+ << "] " << string(3-digits(int(100*factor)), ' ') << int(100*factor)
+ << "%\r";
+ // overprint indicator when finished
+ if (factor == 1.0)
+ Message::estream().clearline();
+ time = System::time();
+ prev_id = id;
+ }
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVGActions.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVGActions.h
new file mode 100644
index 00000000000..2e68bb9cb31
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DVIToSVGActions.h
@@ -0,0 +1,102 @@
+/*************************************************************************
+** DVIToSVGActions.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef DVITOSVGACTIONS_H
+#define DVITOSVGACTIONS_H
+
+#include <map>
+#include <set>
+#include "BoundingBox.h"
+#include "DVIActions.h"
+#include "Matrix.h"
+#include "SpecialActions.h"
+#include "SpecialManager.h"
+#include "SVGTree.h"
+#include "DVIReader.h"
+
+
+class DVIToSVG;
+struct FileFinder;
+struct Font;
+struct XMLNode;
+
+class DVIToSVGActions : public DVIActions, public SpecialActions, public SpecialManager::Listener
+{
+ typedef std::map<const Font*, std::set<int> > CharMap;
+ typedef std::set<const Font*> FontSet;
+ typedef std::map<std::string,BoundingBox> BoxMap;
+
+ public:
+ DVIToSVGActions (DVIToSVG &dvisvg, SVGTree &svg);
+ ~DVIToSVGActions ();
+ void reset ();
+ void setChar (double x, double y, unsigned c, const Font *f);
+ void setRule (double x, double y, double height, double width);
+ void setBgColor (const Color &color);
+ void setColor (const Color &color) {_svg.setColor(color);}
+ void setMatrix (const Matrix &m) {_svg.setMatrix(m);}
+ const Matrix& getMatrix () const {return _svg.getMatrix();}
+ Color getColor () const {return _svg.getColor();}
+ void appendToPage (XMLNode *node) {_svg.appendToPage(node);}
+ void appendToDefs (XMLNode *node) {_svg.appendToDefs(node);}
+ void moveToX (double x);
+ void moveToY (double y);
+ void setFont (int num, const Font *font);
+ void special (const std::string &s);
+ void preamble (const std::string &cmt);
+ void postamble ();
+ void beginPage (unsigned n, Int32 *c);
+ void endPage ();
+ void beginSpecial (const char *prefix);
+ void endSpecial (const char *prefix);
+ void progress (size_t current, size_t total, const char *id=0);
+ void progress (const char *id);
+ CharMap& getUsedChars () const {return _usedChars;}
+ const FontSet& getUsedFonts () const {return _usedFonts;}
+ void setPageMatrix (const Matrix &tm);
+ double getX() const {return _dvisvg.getXPos();}
+ double getY() const {return _dvisvg.getYPos();}
+ void setX (double x) {_dvisvg.translateToX(x); _svg.setX(x);}
+ void setY (double y) {_dvisvg.translateToY(y); _svg.setY(y);}
+ void finishLine () {_dvisvg.finishLine();}
+ BoundingBox& bbox () {return _bbox;}
+ BoundingBox& bbox (const std::string &name, bool reset=false);
+ void embed (const BoundingBox &bbox);
+ void embed (const DPair &p, double r=0);
+
+ public:
+ static double PROGRESSBAR_DELAY; ///< progress bar doesn't appear before this time has elapsed (in sec)
+ static bool EXACT_BBOX;
+
+ private:
+ SVGTree &_svg;
+ DVIToSVG &_dvisvg;
+ BoundingBox _bbox;
+ int _pageCount;
+ int _currentFontNum;
+ mutable CharMap _usedChars;
+ FontSet _usedFonts;
+ Matrix *_pageMatrix; // transformation of whole page
+ Color _bgcolor;
+ BoxMap *_boxes;
+};
+
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Directory.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Directory.cpp
new file mode 100644
index 00000000000..c13ebe35a38
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Directory.cpp
@@ -0,0 +1,116 @@
+/*************************************************************************
+** Directory.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include "Directory.h"
+
+using namespace std;
+
+#ifdef __WIN32__
+ #include <windows.h>
+#else
+ #include <errno.h>
+ #include <sys/stat.h>
+#endif
+
+
+Directory::Directory () {
+#if __WIN32__
+ handle = INVALID_HANDLE_VALUE;
+#else
+ dir = 0;
+ dirent = 0;
+#endif
+}
+
+
+Directory::Directory (string dirname) {
+ open(dirname);
+}
+
+Directory::~Directory () {
+ close();
+}
+
+
+bool Directory::open (string dname) {
+ _dirname = dname;
+#ifdef __WIN32__
+ firstread = true;
+ if (dname[dname.length()-1] == '/' || dname[dname.length()-1] == '\\')
+ dname = dname.substr(0, dname.length()-1);
+ dname += "\\*";
+ handle = FindFirstFile(dname.c_str(), &fileData);
+ return handle != INVALID_HANDLE_VALUE;
+#else
+ dir = opendir(_dirname.c_str());
+ return dir;
+#endif
+}
+
+
+void Directory::close () {
+#ifdef __WIN32__
+ FindClose(handle);
+#else
+ closedir(dir);
+#endif
+}
+
+
+/** Reads first/next directory entry.
+ * @param[in] type type of entry to return (a: file or dir, f: file, d: dir)
+ * @return name of entry */
+const char* Directory::read (char type) {
+#ifdef __WIN32__
+ if (handle == INVALID_HANDLE_VALUE)
+ return 0;
+ while (firstread || FindNextFile(handle, &fileData)) {
+ firstread = false;
+ if (fileData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
+ if (type == 'a' || type == 'd')
+ return fileData.cFileName;
+ }
+ else if (type == 'a' || type == 'f')
+ return fileData.cFileName;
+ }
+ FindClose(handle);
+ handle = INVALID_HANDLE_VALUE;
+ return 0;
+#else
+ if (!dir)
+ return 0;
+ while ((dirent = readdir(dir))) {
+ string path = string(_dirname) + "/" + dirent->d_name;
+ struct stat stats;
+ stat(path.c_str(), &stats);
+ if (S_ISDIR(stats.st_mode)) {
+ if (type == 'a' || type == 'd')
+ return dirent->d_name;
+ }
+ else if (type == 'a' || type == 'f')
+ return dirent->d_name;
+ }
+ closedir(dir);
+ dir = 0;
+ return 0;
+#endif
+}
+
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Directory.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Directory.h
new file mode 100644
index 00000000000..6420bec6d19
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Directory.h
@@ -0,0 +1,54 @@
+/*************************************************************************
+** Directory.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef DIRECTORY_H
+#define DIRECTORY_H
+
+#include <string>
+#ifdef __WIN32__
+ #include <windows.h>
+ #undef max
+#else
+ #include <dirent.h>
+#endif
+
+class Directory
+{
+ public:
+ Directory ();
+ Directory (std::string path);
+ ~Directory ();
+ bool open (std::string path);
+ void close ();
+ const char* read (char type='a');
+
+ private:
+ std::string _dirname;
+#ifdef __WIN32__
+ bool firstread;
+ HANDLE handle;
+ WIN32_FIND_DATA fileData;
+#else
+ DIR *dir;
+ struct dirent *dirent;
+#endif
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DvisvgmSpecialHandler.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DvisvgmSpecialHandler.cpp
new file mode 100644
index 00000000000..11e3c0fc42a
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DvisvgmSpecialHandler.cpp
@@ -0,0 +1,202 @@
+/*************************************************************************
+** DvisvgmSpecialHandler.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstring>
+#include "DvisvgmSpecialHandler.h"
+#include "InputBuffer.h"
+#include "InputReader.h"
+#include "SpecialActions.h"
+#include "XMLNode.h"
+#include "XMLString.h"
+
+using namespace std;
+
+
+/** Replaces constants of the form {?name} by their corresponding value.
+ * @param[in,out] str text to expand
+ * @param[in] actions interfcae to the world outside the special handler */
+static void expand_constants (string &str, SpecialActions *actions) {
+ struct Constant {
+ const char *name;
+ string val;
+ }
+ constants[] = {
+ {"x", XMLString(actions->getX())},
+ {"y", XMLString(actions->getY())},
+ {"color", actions->getColor().rgbString()},
+ {"nl", "\n"},
+ {0, ""}
+ };
+ bool repl_bbox = true;
+ while (repl_bbox) {
+ size_t pos = str.find(string("{?bbox "));
+ if (pos == string::npos)
+ repl_bbox = false;
+ else {
+ size_t endpos = pos+7;
+ while (endpos < str.length() && isalnum(str[endpos]))
+ ++endpos;
+ if (str[endpos] == '}') {
+ BoundingBox &box=actions->bbox(str.substr(pos+7, endpos-pos-7));
+ str.replace(pos, endpos-pos+1, box.toSVGViewBox());
+ }
+ else
+ repl_bbox = false;
+ }
+ }
+ for (const Constant *p=constants; p->name; p++) {
+ const string pattern = string("{?")+p->name+"}";
+ size_t pos = str.find(pattern);
+ while (pos != string::npos) {
+ str.replace(pos, strlen(p->name)+3, p->val);
+ pos = str.find(pattern, pos+p->val.length()); // look for further matches
+ }
+ }
+}
+
+
+/** Embeds the virtual rectangle (x, y ,w , h) into the current bounding box,
+ * where (x,y) is the lower left vertex composed of the current DVI position.
+ * @param[in] w width of the rectangle in TeX point units
+ * @param[in] h height of the rectangle in TeX point units
+ * @param[in] d depth of the rectangle in TeX point units */
+static void update_bbox (double w, double h, double d, SpecialActions *actions) {
+ double x = actions->getX();
+ double y = actions->getY();
+ actions->embed(BoundingBox(x, y, x+w, y-h));
+ actions->embed(BoundingBox(x, y, x+w, y+d));
+}
+
+
+/** Inserts raw text into the SVG tree.
+ * @param[in,out] in the raw text is read from this input buffer
+ * @param[in] actions interfcae to the world outside the special handler
+ * @param[in] group true if the text should be wrapped by a group element */
+static void raw (InputReader &in, SpecialActions *actions, bool group=false) {
+ string str;
+ while (!in.eof()) {
+ int c = in.get();
+ if (isprint(c))
+ str += char(c);
+ }
+ expand_constants(str, actions);
+ if (!str.empty()) {
+ XMLNode *node = new XMLTextNode(str);
+ if (group) {
+ XMLElementNode *g = new XMLElementNode("g");
+ g->addAttribute("x", actions->getX());
+ g->addAttribute("y", actions->getY());
+ if (actions->getColor() != Color::BLACK)
+ g->addAttribute("fill", actions->getColor().rgbString());
+ g->append(node);
+ node = g;
+ }
+ actions->appendToPage(node);
+ }
+}
+
+
+/** Evaluates the special dvisvgm:bbox.
+ * variant 1: dvisvgm:bbox [r[el]] <width> <height> [<depth>]
+ * variant 2: dvisvgm:bbox a[bs] <x1> <y1> <x2> <y2>
+ * variant 3: dvisvgm:bbox f[ix] <x1> <y1> <x2> <y2>
+ * variant 4: dvisvgm:bbox n[ew] <name> */
+static void bbox (InputReader &in, SpecialActions *actions) {
+ in.skipSpace();
+ int c = in.peek();
+ if (isalpha(c)) {
+ while (!isspace(in.peek())) // skip trailing characters
+ in.get();
+ if (c == 'n') {
+ in.skipSpace();
+ string name;
+ while (isalnum(in.peek()))
+ name += char(in.get());
+ in.skipSpace();
+ if (!name.empty() && in.eof())
+ actions->bbox(name, true); // create new user box
+ }
+ else if (c == 'a' || c == 'f') {
+ double p[4];
+ for (int i=0; i < 4; i++)
+ p[i] = in.getDouble();
+ BoundingBox b(p[0], p[1], p[2], p[3]);
+ if (c == 'a')
+ actions->embed(b);
+ else {
+ actions->bbox() = b;
+ actions->bbox().lock();
+ }
+ }
+ }
+ else
+ c = 'r'; // no mode specifier => relative box parameters
+
+ if (c == 'r') {
+ double w = in.getDouble();
+ double h = in.getDouble();
+ double d = in.getDouble();
+ update_bbox(w, h, d, actions);
+ }
+}
+
+
+static void img (InputReader &in, SpecialActions *actions) {
+ double w = in.getDouble();
+ double h = in.getDouble();
+ string f = in.getString();
+ update_bbox(w, h, 0, actions);
+ XMLElementNode *img = new XMLElementNode("image");
+ img->addAttribute("x", actions->getX());
+ img->addAttribute("y", actions->getY());
+ img->addAttribute("width", w);
+ img->addAttribute("height", h);
+ img->addAttribute("xlink:href", f);
+ if (actions && !actions->getMatrix().isIdentity())
+ img->addAttribute("transform", actions->getMatrix().getSVG());
+ actions->appendToPage(img);
+}
+
+
+/** Evaluates and executes a dvisvgm special statement.
+ * @param[in] prefix special prefix read by the SpecialManager
+ * @param[in] is the special statement is read from this stream
+ * @param[in,out] in the raw text is read from this input buffer */
+bool DvisvgmSpecialHandler::process (const char *prefix, istream &is, SpecialActions *actions) {
+ if (actions) {
+ StreamInputBuffer ib(is);
+ BufferInputReader in(ib);
+ string cmd = in.getWord();
+ if (cmd == "raw") // raw <text>
+ raw(in, actions);
+ else if (cmd == "bbox") // bbox [r] <width> <height> <depth> or bbox a <x1> <y1> <x2> <y2>
+ bbox(in, actions);
+ else if (cmd == "img") { // img <width> <height> <file>
+ img(in, actions);
+ }
+ }
+ return true;
+}
+
+
+const char** DvisvgmSpecialHandler::prefixes () const {
+ static const char *pfx[] = {"dvisvgm:", 0};
+ return pfx;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DvisvgmSpecialHandler.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DvisvgmSpecialHandler.h
new file mode 100644
index 00000000000..93e726fe634
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/DvisvgmSpecialHandler.h
@@ -0,0 +1,35 @@
+/*************************************************************************
+** DvisvgmSpecialHandler.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef DVISVGMSPECIALHANDLER_H
+#define DVISVGMSPECIALHANDLER_H
+
+#include "SpecialHandler.h"
+
+class DvisvgmSpecialHandler : public SpecialHandler
+{
+ public:
+ const char* name () const {return "dvisvgm";}
+ const char* info () const {return "special set for embedding raw SVG snippets";}
+ const char** prefixes () const;
+ bool process (const char *prefix, std::istream &in, SpecialActions *actions);
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSFile.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSFile.cpp
new file mode 100644
index 00000000000..cbeb5600366
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSFile.cpp
@@ -0,0 +1,114 @@
+/*************************************************************************
+** EPSFile.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstring>
+#include <istream>
+#include <limits>
+#include "EPSFile.h"
+#include "InputBuffer.h"
+#include "InputReader.h"
+
+using namespace std;
+
+
+/** Reads a little-endian 32-bit integer from the given input stream. */
+static UInt32 getUInt32 (istream &is) {
+ UInt32 value=0;
+ char buf[4];
+ is.read(buf, 4);
+ for (int i=0; i < 4; i++)
+ value |= ((buf[i] & 255) << (8*i));
+ return value;
+}
+
+
+static size_t getline (istream &is, char *line, size_t n) {
+ char buf[512];
+ is.get(buf, min(n, (size_t)512)-1);
+ n = is.gcount();
+ size_t linelen=0;
+ for (size_t i=0; i < n; i++)
+ if (isprint(buf[i]))
+ line[linelen++] = buf[i];
+ line[linelen] = 0;
+ if (is.peek() == '\n')
+ is.get();
+ else
+ is.ignore(numeric_limits<size_t>::max(), '\n');
+ return linelen;
+}
+
+
+EPSFile::EPSFile (const std::string& fname) : _ifs(fname.c_str(), ios::binary), _headerValid(false), _offset(0), _pslength(0)
+{
+ if (_ifs) {
+ if (getUInt32(_ifs) != 0xC6D3D0C5) // no binary header present?
+ _ifs.seekg(0, ios_base::beg); // go back to the first byte
+ else {
+ _offset = getUInt32(_ifs); // stream offset where PS part of the file begins
+ _pslength = getUInt32(_ifs); // length of PS section in bytes
+ _ifs.seekg(_offset, ios_base::beg); // continue reading at the beginning of the PS section
+ }
+ string str;
+ str += _ifs.get();
+ str += _ifs.get();
+ _headerValid = (str == "%!");
+ _ifs.seekg(0, ios_base::beg);
+ }
+}
+
+
+/** Returns an input stream for the EPS file. The stream pointer is automatically moved
+ * to the beginning of the ASCII (PostScript) part of the file. */
+istream& EPSFile::istream () const {
+ _ifs.clear();
+ _ifs.seekg(_offset, ios_base::beg);
+ return _ifs;
+}
+
+
+/** Extracts the bounding box information from the DSC header/footer (if present)
+ * @param[out] the extracted bounding box
+ * @return true if %%BoundingBox data could be read successfully */
+bool EPSFile::bbox (BoundingBox &box) const {
+ std::istream &is = EPSFile::istream();
+ if (is) {
+ char buf[64];
+ while (is) {
+ size_t linelen = getline(is, buf, 64);
+ if (strncmp(buf, "%%BoundingBox:", 14) == 0) {
+ CharInputBuffer ib(buf, linelen);
+ BufferInputReader ir(ib);
+ ir.skip(14);
+ ir.skipSpace();
+ if (!ir.check("(atend)", true)) {
+ int val[4];
+ for (int i=0; i < 4; i++) {
+ ir.skipSpace();
+ ir.parseInt(val[i]);
+ }
+ box = BoundingBox(val[0], val[1], val[2], val[3]);
+ return true;
+ }
+ }
+ }
+ }
+ return false;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSFile.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSFile.h
new file mode 100644
index 00000000000..60a4c007d39
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSFile.h
@@ -0,0 +1,46 @@
+/*************************************************************************
+** EPSFile.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef EPSFILE_H
+#define EPSFILE_H
+
+#include <fstream>
+#include <string>
+#include "BoundingBox.h"
+#include "types.h"
+
+class EPSFile
+{
+ public:
+ EPSFile (const std::string &fname);
+ std::istream& istream () const;
+ bool hasValidHeader () const {return _headerValid;}
+ bool bbox (BoundingBox &box) const;
+ UInt32 pslength () const {return _pslength;}
+
+ private:
+ mutable std::ifstream _ifs;
+ bool _headerValid; ///< true if file has a valid header
+ UInt32 _offset; ///< stream offset where ASCII part of the file begins
+ UInt32 _pslength; ///< length of PS section (in bytes)
+};
+
+#endif
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSToSVG.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSToSVG.cpp
new file mode 100644
index 00000000000..1bf0c81e9b2
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSToSVG.cpp
@@ -0,0 +1,78 @@
+/*************************************************************************
+** EPSToSVG.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <fstream>
+#include <istream>
+#include <sstream>
+#include "EPSFile.h"
+#include "EPSToSVG.h"
+#include "Message.h"
+#include "MessageException.h"
+#include "PsSpecialHandler.h"
+#include "SVGOutputBase.h"
+
+#ifdef HAVE_CONFIG_H
+ #include "config.h"
+ #ifdef TARGET_SYSTEM
+ #define VERSION_STR VERSION " (" TARGET_SYSTEM ")"
+ #else
+ #define VERSION_STR VERSION
+ #endif
+#else
+ #define VERSION_STR ""
+#endif
+
+
+using namespace std;
+
+
+void EPSToSVG::convert () {
+ if (!Ghostscript().available())
+ throw MessageException("Ghostscript is required to process the EPS file");
+ EPSFile epsfile(_fname);
+ if (!epsfile.hasValidHeader())
+ throw PSException("invalid EPS file");
+
+ BoundingBox bbox;
+ epsfile.bbox(bbox);
+ Message::mstream(false, Message::MC_PAGE_NUMBER) << "processing file " << _fname << '\n';
+ Message::mstream().indent(1);
+ _svg.newPage(1);
+ // create a psfile special and forward it to the PsSpecialHandler
+ stringstream ss;
+ ss << "\"" << _fname << "\" "
+ "llx=" << bbox.minX() << " "
+ "lly=" << bbox.minY() << " "
+ "urx=" << bbox.maxX() << " "
+ "ury=" << bbox.maxY();
+ PsSpecialHandler pshandler;
+ pshandler.process("psfile=", ss, this);
+ // output SVG file
+ _svg.setBBox(_bbox);
+ _svg.appendToDoc(new XMLCommentNode(" This file was generated by dvisvgm " VERSION_STR " "));
+ _svg.write(_out.getPageStream(1, 1));
+ string svgfname = _out.filename(1, 1);
+ Message::mstream(false, Message::MC_PAGE_SIZE) << "graphic size: " << bbox.width() << "pt"
+ " x " << bbox.height() << "pt"
+ " (" << bbox.width()/72.27*25.4 << "mm"
+ " x " << bbox.height()/72.27*25.4 << "mm)\n";
+ Message::mstream(false, Message::MC_PAGE_WRITTEN) << "graphic written to " << (svgfname.empty() ? "<stdout>" : svgfname) << '\n';
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSToSVG.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSToSVG.h
new file mode 100644
index 00000000000..92edb5884e0
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EPSToSVG.h
@@ -0,0 +1,65 @@
+/*************************************************************************
+** EPSToSVG.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef EPSTOSVG_H
+#define EPSTOSVG_H
+
+#include <string>
+#include "SpecialActions.h"
+#include "SVGTree.h"
+
+struct SVGOutputBase;
+
+class EPSToSVG : protected SpecialActions
+{
+ public:
+ EPSToSVG (const std::string &fname, SVGOutputBase &out) : _fname(fname), _out(out), _x(0), _y(0) {}
+ void convert ();
+ void setTransformation (const Matrix &m);
+ void setPageSize (const std::string &name);
+
+ protected:
+ // implement abstract base class SpecialActions
+ double getX () const {return _x;}
+ double getY () const {return _y;}
+ void setX (double x) {_x = x; _svg.setX(x);}
+ void setY (double y) {_y = y; _svg.setY(y);}
+ void finishLine () {}
+ void setColor (const Color &color) {_svg.setColor(color);}
+ Color getColor () const {return _svg.getColor();}
+ void setMatrix (const Matrix &m) {_svg.setMatrix(m);}
+ const Matrix& getMatrix () const {return _svg.getMatrix();}
+ void setBgColor (const Color &color) {}
+ void appendToPage (XMLNode *node) {_svg.appendToPage(node);}
+ void appendToDefs (XMLNode *node) {_svg.appendToDefs(node);}
+ void embed (const BoundingBox &bbox) {_bbox.embed(bbox);}
+ void embed (const DPair &p, double r=0) {if (r==0) _bbox.embed(p); else _bbox.embed(p, r);}
+ BoundingBox& bbox () {return _bbox;}
+ BoundingBox& bbox (const std::string &name, bool reset=false) {return _bbox;}
+
+ private:
+ std::string _fname; ///< name of EPS file
+ SVGTree _svg;
+ SVGOutputBase &_out;
+ double _x, _y;
+ BoundingBox _bbox;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EmSpecialHandler.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EmSpecialHandler.cpp
new file mode 100644
index 00000000000..3617e188a64
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EmSpecialHandler.cpp
@@ -0,0 +1,231 @@
+/*************************************************************************
+** EmSpecialHandler.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <sstream>
+#include "EmSpecialHandler.h"
+#include "InputBuffer.h"
+#include "InputReader.h"
+#include "SpecialActions.h"
+#include "XMLNode.h"
+#include "XMLString.h"
+
+using namespace std;
+
+
+EmSpecialHandler::EmSpecialHandler () : _linewidth(0.4), _actions(0) {
+}
+
+
+/** Computes the "cut vector" that is used to compute the line shape.
+ * Because each line has a width > 0 the actual shape of the line is a tetragon.
+ * The 4 vertices can be influenced by the cut parameter c that specifies
+ * a horizontal, vertical or orthogonal cut of a line end. Depending on c and the
+ * line's slope a cut vector v can be computed that, relatively to endpoint p, denotes
+ * the 2 vertices of that line end: v1=p+v and v2=p-v.
+ * @param[in] c cut direction ('h', 'v' or 'p')
+ * @param[in] v direction vector of line to be drawn
+ * @param[in] lw width of line to be drawn
+ * @return the "cut vector" */
+static DPair cut_vector (char c, const DPair &v, double lw) {
+ if (c == 'p')
+ return v.ortho()/v.length() * (lw/2);
+ DPair cut;
+ if (c == 'v' && v.x() != 0) {
+ double slope = v.y()/v.x();
+ double h = sqrt(lw*lw*(1+slope*slope));
+ cut.y(0.5*h);
+ }
+ else if (v.y() != 0) { // c == 'h'
+ double slope = v.x()/v.y();
+ double h = sqrt(lw*lw*(1+slope*slope));
+ double sgn = slope < 0 ? 1.0 : -1.0;
+ cut.x(0.5*h*sgn);
+ }
+ return cut;
+}
+
+
+/** Creates the SVG element that will a the line.
+ * @param[in] p1 first endpoint in TeX point units
+ * @param[in] p2 second endpoint in TeX point units
+ * @param[in] c1 cut method of first endpoint ('h', 'v' or 'p')
+ * @param[in] c2 cut method of second endpoint ('h', 'v' or 'p')
+ * @param[in] lw line width in TeX point units */
+static void create_line (const DPair &p1, const DPair &p2, char c1, char c2, double lw, SpecialActions *actions) {
+ XMLElementNode *node=0;
+ DPair dir = p2-p1;
+ if (dir.x() == 0 || dir.y() == 0 || (c1 == 'p' && c2 == 'p')) {
+ // draw regular line
+ node = new XMLElementNode("line");
+ node->addAttribute("x1", p1.x());
+ node->addAttribute("y1", p1.y());
+ node->addAttribute("x2", p2.x());
+ node->addAttribute("y2", p2.y());
+ node->addAttribute("stroke-width", lw);
+ node->addAttribute("stroke", actions->getColor().rgbString());
+ // update bounding box
+ actions->embed(p1);
+ actions->embed(p2);
+ }
+ else {
+ // draw polygon
+ DPair cv1 = cut_vector(c1, dir, lw);
+ DPair cv2 = cut_vector(c2, dir, lw);
+ DPair q11 = p1+cv1, q12 = p1-cv1;
+ DPair q21 = p2+cv2, q22 = p2-cv2;
+ node = new XMLElementNode("polygon");
+ ostringstream oss;
+ oss << XMLString(q11.x()) << ',' << XMLString(q11.y()) << ' '
+ << XMLString(q12.x()) << ',' << XMLString(q12.y()) << ' '
+ << XMLString(q22.x()) << ',' << XMLString(q22.y()) << ' '
+ << XMLString(q21.x()) << ',' << XMLString(q21.y());
+ node->addAttribute("points", oss.str());
+ if (actions->getColor() != Color::BLACK)
+ node->addAttribute("fill", actions->getColor().rgbString());
+ // update bounding box
+ actions->embed(q11);
+ actions->embed(q12);
+ actions->embed(q21);
+ actions->embed(q22);
+ }
+ actions->appendToPage(node);
+}
+
+
+static double read_length (InputReader &in) {
+ struct Unit {
+ const char *name;
+ double factor;
+ }
+ units[] = {
+ {"pt", 1.0},
+ {"pc", 12.0},
+ {"in", 72.27},
+ {"bp", 72.27/72},
+ {"cm", 72.27/2.54},
+ {"mm", 72.27/25.4},
+ {"dd", 1238.0/1157},
+ {"cc", 1238.0/1157*12},
+ {"sp", 1.0/65536},
+ {0, 0}
+ };
+ double len = in.getDouble();
+ in.skipSpace();
+ for (Unit *p=units; p->name; p++)
+ if (in.check(p->name)) {
+ len *= p->factor;
+ break;
+ }
+ return len;
+}
+
+
+bool EmSpecialHandler::process (const char *prefix, istream &is, SpecialActions *actions) {
+ // em:moveto => move graphic cursor to dvi cursor
+ // em:lineto => draw line from graphic cursor to dvi cursor, move graphic cursor to dvi cursor
+ // em:linewidth <w> => set line width to <w>
+ // em:point <n>[,<x>[,<y>]] => defines point <n> as (<x>,<y>); if <x> and/or <y> is missing,
+ // the corresponding dvi cursor coordinate is inserted
+ // <x> and <y> are lengths
+ // em:line <n>[h|v|p], <m>[h|v|p] [,<w>] => draws line of width <w> from point #<n> to point #<m>
+ // point number suffixes:
+ // h: cut line horizontally
+ // v: cut line vertically
+ // p: cut line orthogonally to line direction (default)
+ // if <w> is omitted, the global line width is used
+ //
+ // supported length units: pt, pc, in, bp, cm, mm, dd, cc, sp
+ // default line width: 0.4pt
+
+ if (actions) {
+ _actions = actions; // save pointer to SpecialActions for later use in endPage
+ StreamInputBuffer ib(is, 128);
+ BufferInputReader in(ib);
+ string cmd = in.getWord();
+ if (cmd == "moveto")
+ _pos = DPair(actions->getX(), actions->getY());
+ else if (cmd == "lineto") {
+ DPair p(actions->getX(), actions->getY());
+ create_line(_pos, p, 'p', 'p', _linewidth, actions);
+ _pos = p;
+ }
+ else if (cmd == "linewidth")
+ _linewidth = read_length(in);
+ else if (cmd == "point") {
+ DPair p(actions->getX(), actions->getY());
+ int n = in.getInt();
+ if (in.getPunct() == ',') {
+ p.x(in.getDouble());
+ if (in.getPunct() == ',')
+ p.y(in.getDouble());
+ }
+ _points[n] = p;
+ }
+ else if (cmd == "line") {
+ int n1 = in.getInt();
+ int c1 = 'p';
+ if (isalpha(in.peek()))
+ c1 = in.get();
+ in.getPunct();
+ int n2 = in.getInt();
+ int c2 = 'p';
+ if (isalpha(in.peek()))
+ c2 = in.get();
+ double lw = _linewidth;
+ if (in.getPunct() == ',')
+ lw = read_length(in);
+ map<int,DPair>::iterator it1=_points.find(n1);
+ map<int,DPair>::iterator it2=_points.find(n2);
+ if (it1 != _points.end() && it2 != _points.end())
+ create_line(it1->second, it2->second, char(c1), char(c2), lw, actions);
+ else {
+ // Line endpoints havn't necessarily to be defined before
+ // a line definition. If a point wasn't defined yet we push the line
+ // in a wait list and process the lines at the end of the page.
+ _lines.push_back(Line(n1, n2, char(c1), char(c2), lw));
+ }
+ }
+ }
+ return true;
+}
+
+
+/** This method is called at the end of a DVI page. Here we have to draw all pending
+ * lines that are still in the line list. All line endpoints must be defined until here. */
+void EmSpecialHandler::dviEndPage () {
+ if (_actions) {
+ FORALL(_lines, list<Line>::iterator, it) {
+ map<int,DPair>::iterator pit1=_points.find(it->p1);
+ map<int,DPair>::iterator pit2=_points.find(it->p2);
+ if (pit1 != _points.end() && pit2 != _points.end())
+ create_line(pit1->second, pit2->second, it->c1, it->c2, it->width, _actions);
+ // all lines with still undefined points are ignored
+ }
+ }
+ // line and point definitions are local to a page
+ _lines.clear();
+ _points.clear();
+}
+
+
+const char** EmSpecialHandler::prefixes () const {
+ static const char *pfx[] = {"em:", 0};
+ return pfx;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EmSpecialHandler.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EmSpecialHandler.h
new file mode 100644
index 00000000000..2a0700ebb9e
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/EmSpecialHandler.h
@@ -0,0 +1,58 @@
+/*************************************************************************
+** EmSpecialHandler.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef EMSPECIALHANDLER_H
+#define EMSPECIALHANDLER_H
+
+#include <list>
+#include <map>
+#include "Pair.h"
+#include "SpecialHandler.h"
+
+
+class EmSpecialHandler : public SpecialHandler
+{
+ struct Line {
+ Line (int pp1, int pp2, char cc1, char cc2, double w) : p1(pp1), p2(pp2), c1(cc1), c2(cc2), width(w) {}
+ int p1, p2; ///< point numbers of line ends
+ char c1, c2; ///< cut type of line ends (h, v or p)
+ double width; ///< line width
+ };
+
+ public:
+ EmSpecialHandler ();
+ const char* name () const {return "em";}
+ const char* info () const {return "line drawing statements of the emTeX special set";}
+ const char** prefixes () const;
+ bool process (const char *prefix, std::istream &in, SpecialActions *actions);
+ void dviEndPage ();
+
+ protected:
+ bool isEndPageListener () const {return true;}
+
+ private:
+ std::map<int, DPair> _points; ///< points defined by special em:point
+ std::list<Line> _lines; ///< list of lines with undefined end points
+ double _linewidth; ///< global line width
+ DPair _pos; ///< current position of "graphic cursor"
+ SpecialActions *_actions;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileFinder.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileFinder.cpp
new file mode 100644
index 00000000000..328b6ea15dd
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileFinder.cpp
@@ -0,0 +1,256 @@
+/*************************************************************************
+** FileFinder.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#undef __cplusplus
+#define __cplusplus 1
+
+#include <cstdlib>
+#include <fstream>
+#include <map>
+#include <string>
+#include "FileFinder.h"
+#include "FileSystem.h"
+#include "FontMap.h"
+#include "Message.h"
+
+using namespace std;
+
+#ifdef MIKTEX
+ #include "MessageException.h"
+ #include "MiKTeXCom.h"
+ static MiKTeXCom *miktex=0;
+#else
+ // unfortunately, the kpathsea headers are not C++-ready,
+ // so we have to wrap it with some ugly code
+ namespace KPS {
+ extern "C" {
+ #include <kpathsea/kpathsea.h>
+ }
+ }
+ using namespace KPS;
+#endif
+
+// ---------------------------------------------------
+
+static bool _initialized = false;
+static bool _mktex_enabled = false;
+
+// ---------------------------------------------------
+
+static const char* find_file (const std::string &fname);
+static const char* find_mapped_file (std::string fname);
+static const char* mktex (const std::string &fname);
+
+
+/** Initializes the file finder. This function must be called before any other
+ * FileFinder function.
+ * @param[in] argv0 argv[0] of main() function
+ * @param[in] progname name of application using the FileFinder
+ * @param[in] enable_mktexmf if true, tfm and mf file generation is activated */
+void FileFinder::init (const char *argv0, const char *progname, bool enable_mktexmf) {
+ if (_initialized)
+ return;
+
+ _mktex_enabled = enable_mktexmf;
+#ifdef MIKTEX
+ miktex = new MiKTeXCom;
+#else
+ kpse_set_program_name(argv0, progname);
+ // enable tfm and mf generation (actually invoked by calls of kpse_make_tex)
+ kpse_set_program_enabled(kpse_tfm_format, 1, kpse_src_env);
+ kpse_set_program_enabled(kpse_mf_format, 1, kpse_src_env);
+ kpse_make_tex_discard_errors = false; // don't suppress messages of mktexFOO tools
+#ifdef TEXLIVEWIN32
+ texlive_gs_init();
+#endif
+#endif
+ _initialized = true;
+}
+
+
+/** Cleans up the FileFinder. This function must be called before leaving the
+ * applications main() function. */
+void FileFinder::finish () {
+#ifdef MIKTEX
+ if (miktex) {
+ delete miktex;
+ miktex = 0;
+ }
+#endif
+ _initialized = false;
+}
+
+
+/** Returns the version string of the underlying file searching library (kpathsea, MiKTeX) */
+std::string FileFinder::version () {
+#ifdef MIKTEX
+ bool autoinit=false;
+ try {
+ if (!_initialized) {
+ init("", "", false);
+ autoinit = true;
+ }
+ string ret = miktex->getVersion();
+ if (autoinit)
+ finish();
+ return ret;
+ }
+ catch (MessageException &e) {
+ if (autoinit)
+ finish();
+ return "not available";
+ }
+#else
+ if (const char *v = strrchr(KPSEVERSION, ' '))
+ return v+1;
+#endif
+ return "unknown";
+}
+
+
+/** Determines filetype by the filename extension and calls kpse_find_file
+ * to actually look up the file.
+ * @param[in] fname name of file to look up
+ * @return file path on success, 0 otherwise */
+static const char* find_file (const std::string &fname) {
+ if (!_initialized)
+ return 0;
+
+ size_t pos = fname.rfind('.');
+ if (pos == std::string::npos)
+ return 0; // no extension => no search
+ const std::string ext = fname.substr(pos+1); // file extension
+#ifdef MIKTEX
+ return miktex->findFile(fname.c_str());
+#else
+ static std::string buf;
+
+#ifdef TEXLIVEWIN32
+ if (ext == "exe") {
+ // lookup exe files in directory where dvisvgm is located
+ if (const char *path = kpse_var_value("SELFAUTOLOC")) {
+ buf = std::string(path) + "/" + fname;
+ return FileSystem::exists(buf.c_str()) ? buf.c_str() : 0;
+ }
+ return 0;
+ }
+#endif
+
+ static std::map<std::string, kpse_file_format_type> types;
+ if (types.empty()) {
+ types["tfm"] = kpse_tfm_format;
+ types["pfb"] = kpse_type1_format;
+ types["vf"] = kpse_vf_format;
+ types["mf"] = kpse_mf_format;
+ types["ttc"] = kpse_truetype_format;
+ types["ttf"] = kpse_truetype_format;
+ types["map"] = kpse_fontmap_format;
+ types["sty"] = kpse_tex_format;
+ types["enc"] = kpse_enc_format;
+ types["pro"] = kpse_tex_ps_header_format;
+ types["sfd"] = kpse_sfd_format;
+ }
+ std::map<std::string, kpse_file_format_type>::iterator it = types.find(ext.c_str());
+ if (it == types.end())
+ return 0;
+
+ if (char *path = kpse_find_file(fname.c_str(), it->second, 0)) {
+ // In the current version of libkpathsea, each call of kpse_find_file produces
+ // a memory leak since the path buffer is not freed. I don't think we can do
+ // anything against it here...
+ buf = path;
+ std::free(path);
+ return buf.c_str();
+ }
+ return 0;
+#endif
+}
+
+
+/** Checks whether the given file is mapped to a different name and if the
+ * file can be found under this name.
+ * @param[in] fname name of file to look up
+ * @param[in] fontmap font mappings
+ * @return file path on success, 0 otherwise */
+static const char* find_mapped_file (std::string fname) {
+ size_t pos = fname.rfind('.');
+ if (pos == std::string::npos)
+ return 0;
+ const std::string ext = fname.substr(pos+1); // file extension
+ const std::string base = fname.substr(0, pos);
+ if (const FontMap::Entry *entry = FontMap::instance().lookup(base)) {
+ const char *path=0;
+ if (entry->fontname.find('.') != std::string::npos) // does the mapped filename has an extension?
+ path = find_file(entry->fontname); // look for that file
+ else { // otherwise, use extension of unmapped file
+ fname = entry->fontname + "." + ext;
+ (path = find_file(fname)) || (path = mktex(fname));
+ }
+ return path;
+ }
+ return 0;
+}
+
+
+/** Runs external mktexFOO tool to create missing tfm or mf file.
+ * @param[in] fname name of file to build
+ * @return file path on success, 0 otherwise */
+static const char* mktex (const std::string &fname) {
+ if (!_initialized)
+ return 0;
+
+ size_t pos = fname.rfind('.');
+ if (!_mktex_enabled || pos == std::string::npos)
+ return 0;
+
+ std::string ext = fname.substr(pos+1); // file extension
+ if (ext != "tfm" && ext != "mf")
+ return 0;
+
+ const char *path = 0;
+#ifdef MIKTEX
+ // maketfm and makemf are located in miktex/bin which is in the search PATH
+ string toolname = (ext == "tfm" ? "miktex-maketfm" : "miktex-makemf");
+ system((toolname+".exe "+fname).c_str());
+ path = find_file(fname);
+#else
+ kpse_file_format_type type = (ext == "tfm" ? kpse_tfm_format : kpse_mf_format);
+ path = kpse_make_tex(type, fname.c_str());
+#endif
+ return path;
+}
+
+
+/** Searches a file in the TeX directory tree.
+ * If the file doesn't exist, maximal two further steps are applied
+ * (if "extended" is true):
+ * - checks whether the filename is mapped to a different name and returns
+ * the path to that name
+ * - in case of tfm or mf files: invokes the external mktextfm/mktexmf tool
+ * to create the missing file
+ * @param[in] fname name of file to look up
+ * @param[in] extended if true, use fontmap lookup and mktexFOO calls
+ * @return path to file on success, 0 otherwise */
+const char* FileFinder::lookup (const std::string &fname, bool extended) {
+ const char *path;
+ if ((path = find_file(fname)) || (extended && ((path = find_mapped_file(fname)) || (path = mktex(fname)))))
+ return path;
+ return 0;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileFinder.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileFinder.h
new file mode 100644
index 00000000000..f0d8dbba001
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileFinder.h
@@ -0,0 +1,34 @@
+/*************************************************************************
+** FileFinder.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef KPSFILEFINDER_H
+#define KPSFILEFINDER_H
+
+#include <string>
+
+struct FileFinder
+{
+ static void init (const char *argv0, const char *progname, bool enable_mktexmf);
+ static void finish ();
+ static std::string version ();
+ static const char* lookup (const std::string &fname, bool extended=true);
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FilePath.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FilePath.cpp
new file mode 100644
index 00000000000..2d7e676772a
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FilePath.cpp
@@ -0,0 +1,257 @@
+/*************************************************************************
+** FilePath.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cctype>
+#include "FilePath.h"
+#include "FileSystem.h"
+#include "MessageException.h"
+#include "macros.h"
+
+using namespace std;
+
+
+/** Removes redundant slashes from a given path. */
+static string& single_slashes (string &str) {
+ size_t pos=0;
+ while ((pos = str.find("//", pos)) != string::npos)
+ str.replace(pos, 2, "/");
+ return str;
+}
+
+
+#ifdef __WIN32__
+static char strip_drive_letter (string &path) {
+ char letter = 0;
+ if (path.length() >= 2 && path[1] == ':' && isalpha(path[0])) {
+ letter = tolower(path[0]);
+ path.erase(0, 2);
+ }
+ return letter;
+}
+
+
+static char adapt_current_path (string &path, char target_drive) {
+ if (char current_drive = strip_drive_letter(path)) {
+ if (target_drive != current_drive) {
+ if (target_drive == 0)
+ target_drive = current_drive;
+ if (path.empty() || path[0] != '/') {
+ if (FileSystem::chdir((string(1, target_drive) + ":").c_str())) {
+ path.insert(0, FileSystem::getcwd()+"/");
+ strip_drive_letter(path);
+ }
+ else
+ throw MessageException("drive " + string(1, target_drive) + ": not accessible");
+ }
+ }
+ }
+ return target_drive;
+}
+
+
+static void tolower (string &str) {
+ for (size_t i=0; i < str.length(); ++i)
+ str[i] = tolower(str[i]);
+}
+#endif
+
+
+/** Constructs a FilePath object from a given path. Relative paths are
+ * relative to the current working directory.
+ * @param[in] path absolute or relative path to a file or directory */
+FilePath::FilePath (const string &path) {
+ init(path, !FileSystem::isDirectory(path.c_str()), FileSystem::getcwd());
+}
+
+
+/** Constructs a FilePath object.
+ * @param[in] path absolute or relative path to a file or directory
+ * @param[in] isfile true if 'path' references a file, false if a directory is referenced
+ * @param[in] current_dir if 'path' is a relative path expression it will be related to 'current_dir' */
+FilePath::FilePath (const string &path, bool isfile, string current_dir) {
+ init(path, isfile, current_dir);
+}
+
+
+/** Initializes a FilePath object. This method should be called by the constructors only.
+ * @param[in] path absolute or relative path to a file or directory
+ * @param[in] isfile true if 'path' references a file, false if a directory is referenced
+ * @param[in] current_dir if 'path' is a relative path expression it will be related to 'current_dir' */
+void FilePath::init (string path, bool isfile, string current_dir) {
+ single_slashes(path);
+ single_slashes(current_dir);
+#ifdef __WIN32__
+ tolower(path);
+ path = FileSystem::adaptPathSeperators(path);
+ _drive = strip_drive_letter(path);
+#endif
+ if (isfile) {
+ size_t pos = path.rfind('/');
+ _fname = path.substr((pos == string::npos) ? 0 : pos+1);
+ if (pos != string::npos)
+ path.erase(pos);
+ else
+ path.clear();
+ }
+ if (current_dir.empty())
+ current_dir = FileSystem::getcwd();
+#ifdef __WIN32__
+ tolower(current_dir);
+ _drive = adapt_current_path(current_dir, _drive);
+#endif
+ if (!path.empty()) {
+ if (path[0] == '/')
+ current_dir.clear();
+ else if (current_dir[0] != '/')
+ current_dir = "/";
+ else {
+ FilePath curr(current_dir, false, "/");
+ current_dir = curr.absolute();
+#ifdef __WIN32__
+ adapt_current_path(current_dir, _drive);
+#endif
+ }
+ }
+ path.insert(0, current_dir + "/");
+ string elem;
+ FORALL (path, string::const_iterator, it) {
+ if (*it == '/') {
+ add(elem);
+ elem.clear();
+ }
+ else
+ elem += *it;
+ }
+ add(elem);
+}
+
+
+/** Adds a location step to the current path. */
+void FilePath::add (const string &dir) {
+ if (dir == ".." && !_dirs.empty())
+ _dirs.pop_back();
+ else if (dir.length() > 0 && dir != ".")
+ _dirs.push_back(dir);
+}
+
+
+/** Returns the suffix of the filename. If FilePath represents the
+ * location of a directory (and not of a file) an empty string
+ * is returned. */
+string FilePath::suffix () const {
+ size_t start = 0;
+ // ignore leading dots
+ while (start < _fname.length() && _fname[start] == '.')
+ start++;
+ string sub = _fname.substr(start);
+ size_t pos = sub.rfind('.');
+ if (pos != string::npos && pos < sub.length()-1)
+ return sub.substr(pos+1);
+ return "";
+}
+
+
+/** Changes the suffix of the filename. If FilePath represents the
+ * location of a directory (and not of a file) nothing happens.
+ * @param[in] s new suffix */
+void FilePath::suffix (const string &s) {
+ if (!_fname.empty()) {
+ string current_suffix = suffix();
+ if (!current_suffix.empty())
+ _fname.erase(_fname.length()-current_suffix.length()-1);
+ _fname += "."+s;
+ }
+}
+
+
+/** Returns the filename without suffix.
+ * Example: FilePath("/a/b/c.def", true) == "c" */
+string FilePath::basename () const {
+ if (!_fname.empty()) {
+ size_t len = suffix().length();
+ if (len > 0)
+ len++; // strip dot too
+ return _fname.substr(0, _fname.length()-len);
+ }
+ return "";
+}
+
+
+/** Returns the absolute path string of this FilePath.
+ * @param[in] with_filename if false, the filename is omitted
+ * @return the absolute path string */
+string FilePath::absolute (bool with_filename) const {
+ string path;
+ FORALL (_dirs, ConstIterator, it) {
+ path += "/" + *it;
+ }
+ if (path.empty())
+ path = "/";
+ if (with_filename && !_fname.empty())
+ path += "/"+_fname;
+#ifdef __WIN32__
+ if (_drive)
+ path.insert(0, string(1, _drive) + ":");
+#endif
+ return single_slashes(path);
+}
+
+
+/** Returns a path string of this FilePath relative to reldir. If we wanted to
+ * navigate from /a/b/c/d to /a/b/e/f using the shell command "cd", we could do that
+ * with the relative path argument: "cd ../../e/f". This function returns such a relative
+ * path. Example: FilePath("/a/b/e/f").relative("/a/b/c/d") => "../../e/f".
+ * @param[in] reldir absolute path to a directory
+ * @param[in] with_filename if false, the filename is omitted
+ * @return the relative path string */
+string FilePath::relative (string reldir, bool with_filename) const {
+ if (reldir.empty())
+ reldir = FileSystem::getcwd();
+#ifdef __WIN32__
+ adapt_current_path(reldir, _drive);
+#endif
+ if (reldir[0] != '/')
+ return absolute();
+ FilePath rel(reldir, false);
+ string path;
+#ifdef __WIN32__
+ if (rel._drive && _drive && rel._drive != _drive)
+ path += string(1, _drive) + ":";
+#endif
+ ConstIterator i = _dirs.begin();
+ ConstIterator j = rel._dirs.begin();
+ while (i != _dirs.end() && j != rel._dirs.end() && *i == *j)
+ ++i, ++j;
+ for (; j != rel._dirs.end(); ++j)
+ path += "../";
+ for (; i != _dirs.end(); ++i)
+ path += *i + "/";
+ if (!path.empty())
+ path.erase(path.length()-1, 1); // remove trailing slash
+ if (with_filename && !_fname.empty()) {
+ if (!path.empty() && path != "/")
+ path += "/";
+ path += _fname;
+ }
+ if (path.empty())
+ path = ".";
+ return single_slashes(path);
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FilePath.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FilePath.h
new file mode 100644
index 00000000000..5bd3fdf98e2
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FilePath.h
@@ -0,0 +1,59 @@
+/*************************************************************************
+** FilePath.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef FILEPATH_H
+#define FILEPATH_H
+
+#include <string>
+#include <vector>
+
+class FilePath
+{
+ typedef std::vector<std::string> Directories;
+ typedef Directories::iterator Iterator;
+ typedef Directories::const_iterator ConstIterator;
+ public:
+ FilePath (const std::string &path);
+ FilePath (const std::string &path, bool isfile, std::string current_dir="");
+ std::string absolute (bool with_filename=true) const;
+ std::string relative (std::string reldir="", bool with_filename=true) const;
+ std::string basename () const;
+ std::string suffix () const;
+ void suffix (const std::string &s);
+ size_t depth () const {return _dirs.size();}
+ bool isFile () const {return !_fname.empty();}
+ bool empty () const {return _dirs.empty() && _fname.empty();}
+ const std::string& filename () const {return _fname;}
+ void filename (const std::string &fname) {_fname = fname;}
+
+ protected:
+ void init (std::string path, bool isfile, std::string current_dir);
+ void add (const std::string &elem);
+
+ private:
+ Directories _dirs;
+ std::string _fname;
+#ifdef __WIN32__
+ char _drive;
+#endif
+};
+
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileSystem.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileSystem.cpp
new file mode 100644
index 00000000000..67e48595db9
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileSystem.cpp
@@ -0,0 +1,333 @@
+/*************************************************************************
+** FileSystem.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstdlib>
+#include <cstring>
+#include <fstream>
+#include "FileSystem.h"
+#include "macros.h"
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
+
+using namespace std;
+
+#ifdef __WIN32__
+ #include <direct.h>
+ #include <windows.h>
+ const char *FileSystem::DEVNULL = "nul";
+ const char FileSystem::PATHSEP = '\\';
+ #define unlink _unlink
+#else
+ #include <dirent.h>
+ #include <pwd.h>
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ const char *FileSystem::DEVNULL = "/dev/null";
+ const char FileSystem::PATHSEP = '/';
+#endif
+
+
+bool FileSystem::remove (const string &fname) {
+ return unlink(fname.c_str()) == 0;
+}
+
+
+/** Copies a file.
+ * @param[in] src path of file to copy
+ * @param[in] dest path of target file
+ * @param[in] remove_src remove file 'src' if true
+ * @return true on success */
+bool FileSystem::copy (const string &src, const string &dest, bool remove_src) {
+ ifstream ifs(src.c_str(), ios::in|ios::binary);
+ ofstream ofs(dest.c_str(), ios::out|ios::binary);
+ if (ifs && ofs) {
+ ofs << ifs.rdbuf();
+ if (!ifs.fail() && !ofs.fail() && remove_src) {
+ ofs.close();
+ ifs.close();
+ return remove(src);
+ }
+ else
+ return !remove_src;
+ }
+ return false;
+}
+
+
+bool FileSystem::rename (const string &oldname, const string &newname) {
+ return ::rename(oldname.c_str(), newname.c_str()) == 0;
+}
+
+
+UInt64 FileSystem::filesize (const string &fname) {
+#ifdef __WIN32__
+ // unfortunately, stat doesn't work properly under Windows
+ // so we have to use this freaky code
+ WIN32_FILE_ATTRIBUTE_DATA attr;
+ GetFileAttributesExA(fname.c_str(), GetFileExInfoStandard, &attr);
+ return (static_cast<UInt64>(attr.nFileSizeHigh) << (8*sizeof(attr.nFileSizeLow))) | attr.nFileSizeLow;
+#else
+ struct stat attr;
+ return (stat(fname.c_str(), &attr) == 0) ? attr.st_size : 0;
+#endif
+}
+
+
+string FileSystem::adaptPathSeperators (string path) {
+ for (size_t i=0; i < path.length(); i++)
+ if (path[i] == PATHSEP)
+ path[i] = '/';
+ return path;
+}
+
+
+string FileSystem::getcwd () {
+ char buf[1024];
+#ifdef __WIN32__
+ return adaptPathSeperators(_getcwd(buf, 1024));
+#else
+ return ::getcwd(buf, 1024);
+#endif
+}
+
+
+/** Changes the work directory.
+ * @param[in] path to new work directory
+ * @return true on success */
+bool FileSystem::chdir (const char *dir) {
+ bool success = false;
+ if (dir) {
+#ifdef __WIN32__
+ success = (_chdir(dir) == 0);
+#else
+ success = (chdir(dir) == 0);
+#endif
+ }
+ return success;
+}
+
+
+/** Returns the user's home directory. */
+const char* FileSystem::userdir () {
+#ifdef __WIN32__
+ const char *drive=getenv("HOMEDRIVE");
+ const char *path=getenv("HOMEPATH");
+ if (drive && path) {
+ static string ret = string(drive)+path;
+ if (!ret.empty())
+ return ret.c_str();
+ }
+ return 0;
+#else
+ const char *dir=getenv("HOME");
+ if (!dir) {
+ if (const char *user=getenv("USER")) {
+ if (struct passwd *pw=getpwnam(user))
+ dir = pw->pw_dir;
+ }
+ }
+ return dir;
+#endif
+}
+
+
+/** Private wrapper function for mkdir: creates a single folder.
+ * @param[in] dir folder name
+ * @return true on success */
+static bool s_mkdir (const char *dir) {
+ bool success = true;
+ if (!FileSystem::exists(dir)) {
+#ifdef __WIN32__
+ success = (_mkdir(dir) == 0);
+#else
+ success = (mkdir(dir, 0776) == 0);
+#endif
+ }
+ return success;
+}
+
+
+static bool inline s_rmdir (const char *dir) {
+#ifdef __WIN32__
+ return (_rmdir(dir) == 0);
+#else
+ return (rmdir(dir) == 0);
+#endif
+}
+
+
+/** Removes leading and trailing whitespace from a string. */
+static string trim (const string &str) {
+ int first=0, last=str.length()-1;
+ while (isspace(str[first]))
+ first++;
+ while (isspace(str[last]))
+ last--;
+ return str.substr(first, last-first+1);
+}
+
+
+/** Creates a new folder relative to the current work directory. If necessary,
+ * the parent folders are also created.
+ * @param[in] dir single folder name or path to folder
+ * @return true if folder(s) could be created */
+bool FileSystem::mkdir (const char *dir) {
+ bool success = false;
+ if (dir) {
+ success = true;
+ const string dirstr = adaptPathSeperators(trim(dir));
+ for (size_t pos=1; success && (pos = dirstr.find('/', pos)) != string::npos; pos++)
+ success &= s_mkdir(dirstr.substr(0, pos).c_str());
+ success &= s_mkdir(dirstr.c_str());
+ }
+ return success;
+}
+
+
+/** Removes a directory and its contents.
+ * @param[in] dirname path to directory
+ * @return true on success */
+bool FileSystem::rmdir (const char *dirname) {
+ bool ok = false;
+ if (dirname && isDirectory(dirname)) {
+ ok = true;
+#ifdef __WIN32__
+ string pattern = string(dirname) + "/*";
+ WIN32_FIND_DATA data;
+ HANDLE h = FindFirstFile(pattern.c_str(), &data);
+ bool ready = (h == INVALID_HANDLE_VALUE);
+ while (!ready && ok) {
+ const char *fname = data.cFileName;
+ string path = string(dirname) + "/" + fname;
+ if (isDirectory(path.c_str())) {
+ if (strcmp(fname, ".") != 0 && strcmp(fname, "..") != 0)
+ ok = rmdir(path.c_str()) && s_rmdir(path.c_str());
+ }
+ else if (isFile(path.c_str()))
+ ok = remove(path);
+ else
+ ok = false;
+ ready = !FindNextFile(h, &data);
+ }
+ FindClose(h);
+#else
+ if (DIR *dir = opendir(dirname)) {
+ struct dirent *ent;
+ while ((ent = readdir(dir)) && ok) {
+ const char *fname = ent->d_name;
+ string path = string(fname) + "/" + fname;
+ if (isDirectory(path.c_str())) {
+ if (strcmp(fname, ".") != 0 && strcmp(fname, "..") != 0)
+ ok = rmdir(path.c_str()) && s_rmdir(path.c_str());
+ }
+ else if (isFile(path.c_str()))
+ ok = remove(path);
+ else
+ ok = false;
+ }
+ closedir(dir);
+ }
+#endif
+ ok = s_rmdir(dirname);
+ }
+ return ok;
+}
+
+
+/** Checks if a file or directory exits. */
+bool FileSystem::exists (const char *fname) {
+ if (!fname)
+ return false;
+#ifdef __WIN32__
+ return GetFileAttributes(fname) != INVALID_FILE_ATTRIBUTES;
+#else
+ struct stat attr;
+ return stat(fname, &attr) == 0;
+#endif
+}
+
+
+/** Returns true if 'fname' references a directory. */
+bool FileSystem::isDirectory (const char *fname) {
+ if (!fname)
+ return false;
+#ifdef __WIN32__
+ return GetFileAttributes(fname) & FILE_ATTRIBUTE_DIRECTORY;
+#else
+ struct stat attr;
+ return stat(fname, &attr) == 0 && S_ISDIR(attr.st_mode);
+#endif
+}
+
+
+/** Returns true if 'fname' references a file. */
+bool FileSystem::isFile (const char *fname) {
+ if (!fname)
+ return false;
+#ifdef __WIN32__
+ ifstream ifs(fname);
+ return ifs;
+#else
+ struct stat attr;
+ return stat(fname, &attr) == 0 && S_ISREG(attr.st_mode);
+#endif
+}
+
+
+int FileSystem::collect (const char *dirname, vector<string> &entries) {
+ entries.clear();
+#ifdef __WIN32__
+ string pattern = string(dirname) + "/*";
+ WIN32_FIND_DATA data;
+ HANDLE h = FindFirstFile(pattern.c_str(), &data);
+ bool ready = (h == INVALID_HANDLE_VALUE);
+ while (!ready) {
+ string fname = data.cFileName;
+ string path = string(dirname)+"/"+fname;
+ string typechar = isFile(path.c_str()) ? "f" : isDirectory(path.c_str()) ? "d" : "?";
+ if (fname != "." && fname != "..")
+ entries.push_back(typechar+fname);
+ ready = !FindNextFile(h, &data);
+ }
+ FindClose(h);
+#else
+ if (DIR *dir = opendir(dirname)) {
+ struct dirent *ent;
+ while ((ent = readdir(dir))) {
+ string fname = ent->d_name;
+ string path = string(dirname)+"/"+fname;
+ string typechar = isFile(path.c_str()) ? "f" : isDirectory(path.c_str()) ? "d" : "?";
+ if (fname != "." && fname != "..")
+ entries.push_back(typechar+fname);
+ }
+ closedir(dir);
+ }
+#endif
+ return entries.size();
+}
+
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileSystem.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileSystem.h
new file mode 100644
index 00000000000..c920a5046e6
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FileSystem.h
@@ -0,0 +1,48 @@
+/*************************************************************************
+** FileSystem.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef FILESYSTEM_H
+#define FILESYSTEM_H
+
+#include <string>
+#include <vector>
+#include "types.h"
+
+struct FileSystem
+{
+ static bool remove (const std::string &fname);
+ static bool rename (const std::string &oldname, const std::string &newname);
+ static bool copy (const std::string &src, const std::string &dest, bool remove_src=false);
+ static UInt64 filesize (const std::string &fname);
+ static std::string adaptPathSeperators (std::string path);
+ static std::string getcwd ();
+ static bool chdir (const char *dir);
+ static bool exists (const char *file);
+ static bool mkdir (const char *dir);
+ static bool rmdir (const char *fname);
+ static int collect (const char *dirname, std::vector<std::string> &entries);
+ static bool isDirectory (const char *fname);
+ static bool isFile (const char *fname);
+ static const char* userdir ();
+ static const char* DEVNULL;
+ static const char PATHSEP;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Font.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Font.cpp
new file mode 100644
index 00000000000..f9ec0737a2d
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Font.cpp
@@ -0,0 +1,444 @@
+/*************************************************************************
+** Font.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstdlib>
+#include <iostream>
+#include <fstream>
+#include <sstream>
+#include "FileSystem.h"
+#include "Font.h"
+#include "FontEngine.h"
+#include "FileFinder.h"
+#include "GFGlyphTracer.h"
+#include "Glyph.h"
+#include "Message.h"
+#include "MetafontWrapper.h"
+#include "TFM.h"
+#include "VFReader.h"
+#include "macros.h"
+#include "FileSystem.h"
+#include "SignalHandler.h"
+#include "Subfont.h"
+#include "SVGTree.h"
+#include "FontMap.h"
+
+using namespace std;
+
+
+/** Returns true if 'unicode' is a valid unicode value in XML documents.
+ * XML version 1.0 doesn't allow various unicode character references
+ * (&#1; for example). */
+static bool valid_unicode (UInt32 unicode) {
+ UInt32 ranges[] = {
+ 0x0000, 0x0020,
+ 0x007f, 0x0084,
+ 0x0086, 0x009f,
+ 0xfdd0, 0xfddf
+ };
+ for (int i=0; i < 4; i++)
+ if (unicode >= ranges[2*i] && unicode <= ranges[2*i+1])
+ return false;
+ return true;
+}
+
+
+UInt32 Font::unicode (UInt32 c) const {
+ // @@ this should be optimized :-)
+ return valid_unicode(c) ? c : 0x3400+c;
+}
+
+
+///////////////////////////////////////////////////////////////////////////////////////
+
+
+TFMFont::TFMFont (string name, UInt32 cs, double ds, double ss)
+ : tfm(0), fontname(name), checksum(cs), dsize(ds), ssize(ss)
+{
+}
+
+
+TFMFont::~TFMFont () {
+ delete tfm;
+}
+
+
+/** Returns a font metrics object for the current font.
+ * @throw FontException if TFM file can't be found */
+const TFM* TFMFont::getTFM () const {
+ if (!tfm) {
+ tfm = TFM::createFromFile(fontname.c_str());
+ if (!tfm)
+ throw FontException("can't find "+fontname+".tfm");
+ }
+ return tfm;
+}
+
+
+double TFMFont::charWidth (int c) const {
+ double w = getTFM()->getCharWidth(c);
+ if (style())
+ w *= style()->extend;
+ return w;
+}
+
+
+double TFMFont::italicCorr (int c) const {
+ double w = getTFM()->getItalicCorr(c);
+ if (style())
+ w *= style()->extend;
+ return w;
+}
+
+
+double TFMFont::charDepth (int c) const {return getTFM()->getCharDepth(c);}
+double TFMFont::charHeight (int c) const {return getTFM()->getCharHeight(c);}
+
+
+bool TFMFont::verifyChecksums () const {
+ if (checksum != 0 && getTFM()->getChecksum() != 0)
+ return checksum == getTFM()->getChecksum();
+ return true;
+}
+
+//////////////////////////////////////////////////////////////////////////////
+
+// static class variables
+bool PhysicalFont::KEEP_TEMP_FILES = false;
+const char *PhysicalFont::CACHE_PATH = 0;
+double PhysicalFont::METAFONT_MAG = 4;
+FontCache PhysicalFont::_cache;
+
+
+Font* PhysicalFont::create (string name, UInt32 checksum, double dsize, double ssize, PhysicalFont::Type type) {
+ return new PhysicalFontImpl(name, 0, checksum, dsize, ssize, type);
+}
+
+
+Font* PhysicalFont::create (string name, int fontindex, UInt32 checksum, double dsize, double ssize) {
+ return new PhysicalFontImpl(name, fontindex, checksum, dsize, ssize, PhysicalFont::TTC);
+}
+
+
+const char* PhysicalFont::path () const {
+ string ext;
+ switch (type()) {
+ case PFB: ext = "pfb"; break;
+ case TTC: ext = "ttc"; break;
+ case TTF: ext = "ttf"; break;
+ case MF : ext = "mf"; break;
+ }
+ return FileFinder::lookup(name()+"."+ext);
+}
+
+
+/** Returns the number of units per EM. The EM square is the virtual area a glyph is designed on.
+ * All coordinates used to specify portions of the glyph are relative to the origin (0,0) at the
+ * lower left corner of this square, while the upper right corner is located at (m,m), where m
+ * is an integer value defined with the font, and returned by this function. */
+int PhysicalFont::unitsPerEm() const {
+ if (type() == MF)
+ return 1000;
+ FontEngine::instance().setFont(*this);
+ return FontEngine::instance().getUnitsPerEM();
+}
+
+
+int PhysicalFont::hAdvance () const {
+ if (type() == MF)
+ return 0;
+ FontEngine::instance().setFont(*this);
+ return FontEngine::instance().getHAdvance();
+}
+
+
+double PhysicalFont::hAdvance (int c) const {
+ if (type() == MF)
+ return unitsPerEm()*charWidth(c)/designSize();
+ FontEngine::instance().setFont(*this);
+ if (FontEncoding *enc = encoding())
+ return FontEngine::instance().getHAdvance(enc->getEntry(c));
+ if (const FontMap::Entry *map_entry = FontMap::instance().lookup(name()))
+ if (Subfont *sf = map_entry->subfont)
+ c = sf->decode(c);
+ return FontEngine::instance().getHAdvance(c);
+}
+
+
+string PhysicalFont::glyphName (int c) const {
+ if (type() == MF)
+ return "";
+ FontEngine::instance().setFont(*this);
+ if (FontEncoding *enc = encoding()) {
+ const char *name = enc->getEntry(c);
+ return name ? name : "";
+ }
+ if (const FontMap::Entry *map_entry = FontMap::instance().lookup(name()))
+ if (Subfont *sf = map_entry->subfont)
+ c = sf->decode(c);
+ return FontEngine::instance().getGlyphName(c);
+}
+
+
+int PhysicalFont::ascent () const {
+ if (type() == MF)
+ return 0;
+ FontEngine::instance().setFont(*this);
+ return FontEngine::instance().getAscender();
+}
+
+
+int PhysicalFont::descent () const {
+ if (type() == MF)
+ return 0;
+ FontEngine::instance().setFont(*this);
+ return FontEngine::instance().getDescender();
+}
+
+
+/** Extracts the glyph outlines of a given character.
+ * @param[in] c character code of requested glyph
+ * @param[out] glyph path segments of the glyph outline
+ * @param[in] cb optional callback object for tracer class
+ * @return true if outline could be computed */
+bool PhysicalFont::getGlyph (int c, GraphicPath<Int32> &glyph, GFGlyphTracer::Callback *cb) const {
+ if (type() == MF) {
+ const Glyph *cached_glyph=0;
+ if (CACHE_PATH) {
+ _cache.write(CACHE_PATH);
+ _cache.read(name().c_str(), CACHE_PATH);
+ cached_glyph = _cache.getGlyph(c);
+ }
+ if (cached_glyph) {
+ glyph = *cached_glyph;
+ return true;
+ }
+ else {
+ string gfname;
+ if (createGF(gfname)) {
+ try {
+ GFGlyphTracer tracer(gfname, unitsPerEm()/getTFM()->getDesignSize(), cb);
+ tracer.setGlyph(glyph);
+ tracer.executeChar(c);
+ glyph.closeOpenSubPaths();
+ if (CACHE_PATH)
+ _cache.setGlyph(c, glyph);
+ return true;
+ }
+ catch (GFException &e) {
+ // @@ print error message
+ }
+ }
+ else {
+ Message::wstream(true) << "failed creating " << name() << ".gf\n";
+ }
+ }
+ }
+ else { // PFB or TTF
+ bool ok=true;
+ FontEngine::instance().setFont(*this);
+ if (FontEncoding *enc = encoding()) {
+ if (const char *encname = enc->getEntry(c))
+ ok = FontEngine::instance().traceOutline(encname, glyph, false);
+ }
+ else {
+ if (const FontMap::Entry *map_entry = FontMap::instance().lookup(name()))
+ if (Subfont *sf = map_entry->subfont)
+ c = sf->decode(c);
+ ok = FontEngine::instance().traceOutline(c, glyph, false);
+ }
+ glyph.closeOpenSubPaths();
+ return ok;
+ }
+ return false;
+}
+
+
+/** Creates a GF file for this font object.
+ * @param[out] gfname name of GF font file
+ * @return true on success */
+bool PhysicalFont::createGF (string &gfname) const {
+ SignalHandler::instance().check();
+ gfname = name()+".gf";
+ MetafontWrapper mf(name());
+ bool ok = mf.make("ljfour", METAFONT_MAG); // call Metafont if necessary
+ return ok && mf.success() && getTFM();
+}
+
+
+/** Traces all glyphs of the current font and stores them in the cache. If caching is disabled, nothing happens.
+ * @param[in] includeCached if true, glyphs already cached are traced again
+ * @param[in] cb optional callback methods called by the tracer
+ * @return number of glyphs traced */
+int PhysicalFont::traceAllGlyphs (bool includeCached, GFGlyphTracer::Callback *cb) const {
+ int count = 0;
+ if (type() == MF && CACHE_PATH) {
+ if (const TFM *tfm = getTFM()) {
+ int fchar = tfm->firstChar();
+ int lchar = tfm->lastChar();
+ string gfname;
+ Glyph glyph;
+ if (createGF(gfname)) {
+ _cache.read(name().c_str(), CACHE_PATH);
+ GFGlyphTracer tracer(gfname, unitsPerEm()/getTFM()->getDesignSize(), cb);
+ tracer.setGlyph(glyph);
+ for (int i=fchar; i <= lchar; i++) {
+ if (includeCached || !_cache.getGlyph(i)) {
+ glyph.newpath();
+ tracer.executeChar(i);
+ glyph.closeOpenSubPaths();
+ _cache.setGlyph(i, glyph);
+ ++count;
+ }
+ }
+ _cache.write(CACHE_PATH);
+ }
+ }
+ }
+ return count;
+}
+
+
+/** Computes the exact bounding box of a glyph.
+ * @param[in] c character code of the glyph
+ * @param[out] bbox the computed bounding box
+ * @param[in] optional calback object forwarded to the tracer
+ * @return true if the box could be computed successfully */
+bool PhysicalFont::getGlyphBox(int c, BoundingBox& bbox, GFGlyphTracer::Callback* cb) const {
+ Glyph glyph;
+ if (getGlyph(c, glyph, cb)) {
+ glyph.computeBBox(bbox);
+ double s = scaledSize()/unitsPerEm();
+ bbox.scale(s, s);
+ return true;
+ }
+ return false;
+}
+
+
+Font* VirtualFont::create (string name, UInt32 checksum, double dsize, double ssize) {
+ return new VirtualFontImpl(name, checksum, dsize, ssize);
+}
+
+
+//////////////////////////////////////////////////////////////////////////////
+
+
+PhysicalFontImpl::PhysicalFontImpl (string name, int fontindex, UInt32 cs, double ds, double ss, PhysicalFont::Type type)
+ : TFMFont(name, cs, ds, ss), _filetype(type), _fontIndex(fontindex), _style(0), _charmap(0)
+{
+}
+
+
+PhysicalFontImpl::~PhysicalFontImpl () {
+ if (CACHE_PATH)
+ _cache.write(CACHE_PATH);
+ if (!KEEP_TEMP_FILES)
+ tidy();
+ delete _style;
+ delete _charmap;
+}
+
+
+UInt32 PhysicalFontImpl::unicode (UInt32 c) const {
+ if (type() == MF)
+ return Font::unicode(c);
+
+ if (_charmap == 0) {
+ FontEngine &fe = FontEngine::instance();
+ if (fe.setFont(*this)) {
+ _charmap = new map<UInt32,UInt32>;
+ fe.buildTranslationMap(*_charmap);
+ }
+ }
+ typedef map<UInt32,UInt32>::const_iterator ConstIterator;
+ ConstIterator it = _charmap->find(c);
+ if (it != _charmap->end())
+ return it->second;
+
+ // No unicode equivalent found in font file.
+ // Now we should look for a smart alternative but at the moment
+ // it's sufficient to simply choose a valid unused unicode value...
+ map<UInt32,UInt32> reverse_map;
+ FORALL(*_charmap, ConstIterator, it)
+ reverse_map[it->second] = it->first;
+ // can we use charcode itself as unicode replacement?
+ if (valid_unicode(c) && (reverse_map.empty() || reverse_map.find(c) != reverse_map.end()))
+ return c;
+ return 0x3400+c;
+}
+
+
+void PhysicalFontImpl::tidy () const {
+ if (type() == MF) {
+ const char *ext[] = {"gf", "tfm", "log", 0};
+ for (const char **p=ext; *p; ++p) {
+ if (FileSystem::exists((name()+"."+(*p)).c_str()))
+ FileSystem::remove(name()+"."+(*p));
+ }
+ }
+}
+
+
+void PhysicalFontImpl::setStyle (double bold, double extend, double slant) {
+ if (_style) {
+ _style->bold = bold;
+ _style->extend = extend;
+ _style->slant = slant;
+ }
+ else if (bold != 0 || extend != 1 || slant != 0)
+ _style = new Style(bold, extend, slant);
+}
+
+
+//////////////////////////////////////////////////////////////////////////////
+
+VirtualFontImpl::VirtualFontImpl (string name, UInt32 cs, double ds, double ss)
+ : TFMFont(name, cs, ds, ss)
+{
+}
+
+
+VirtualFontImpl::~VirtualFontImpl () {
+ // delete dvi vectors received by VFReaderAction
+ for (map<UInt32, DVIVector*>::iterator i=charDefs.begin(); i != charDefs.end(); ++i)
+ delete i->second;
+}
+
+
+const char* VirtualFontImpl::path () const {
+ return FileFinder::lookup(name()+".vf");
+}
+
+
+void VirtualFontImpl::assignChar (UInt32 c, DVIVector *dvi) {
+ if (dvi) {
+ if (charDefs.find(c) == charDefs.end())
+ charDefs[c] = dvi;
+ else
+ delete dvi;
+ }
+}
+
+
+const vector<UInt8>* VirtualFontImpl::getDVI (int c) const {
+ map<UInt32,DVIVector*>::const_iterator it = charDefs.find(c);
+ return (it == charDefs.end() ? 0 : it->second);
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Font.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Font.h
new file mode 100644
index 00000000000..ed3c82f3634
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Font.h
@@ -0,0 +1,280 @@
+/*************************************************************************
+** Font.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef FONT_H
+#define FONT_H
+
+#include <map>
+#include <string>
+#include <vector>
+#include "FontCache.h"
+#include "FontEncoding.h"
+#include "GFGlyphTracer.h"
+#include "Glyph.h"
+#include "GraphicPath.h"
+#include "MessageException.h"
+#include "VFActions.h"
+#include "VFReader.h"
+#include "types.h"
+
+class TFM;
+
+
+/** Abstract base for all font classes. */
+struct Font {
+ struct Style {
+ Style () : bold(0), extend(0), slant(0) {}
+ Style (float b, float e, float s) : bold(b), extend(e), slant(s) {}
+ double bold; ///< stroke width in pt used to draw the glyph outlines
+ double extend; ///< factor to strech/shrink the glyphs horizontally
+ double slant; ///< horizontal slanting/skewing value (= tan(phi))
+ };
+
+ virtual ~Font () {}
+ virtual Font* clone (double ds, double sc) const =0;
+ virtual const Font* uniqueFont () const =0;
+ virtual std::string name () const =0;
+ virtual double designSize () const =0;
+ virtual double scaledSize () const =0;
+ virtual double scaleFactor () const {return scaledSize()/designSize();}
+ virtual double charWidth (int c) const =0;
+ virtual double charDepth (int c) const =0;
+ virtual double charHeight (int c) const =0;
+ virtual double italicCorr (int c) const =0;
+ virtual const TFM* getTFM () const =0;
+ virtual const char* path () const =0;
+ virtual FontEncoding* encoding () const {return FontEncoding::encoding(name());}
+ virtual bool getGlyph (int c, Glyph &glyph, GFGlyphTracer::Callback *cb=0) const =0;
+ virtual UInt32 unicode (UInt32 c) const;
+ virtual void tidy () const {}
+ virtual bool verifyChecksums () const {return true;}
+ virtual int fontIndex () const {return 0;}
+ virtual const Style* style () const {return 0;}
+};
+
+
+/** Empty font without any glyphs. Instances of this class are used
+ * if no physical or virtual font file can be found.
+ * The metric values returned by the member functions are based on cmr10. */
+struct EmptyFont : public Font
+{
+ public:
+ EmptyFont (std::string name) : fontname(name) {}
+ Font* clone (double ds, double sc) const {return new EmptyFont(*this);}
+ const Font* uniqueFont () const {return this;}
+ std::string name () const {return fontname;}
+ double designSize () const {return 10;} // cmr10 design size in pt
+ double scaledSize () const {return 10;} // cmr10 scaled size in pt
+ double charWidth (int c) const {return 9.164;} // width of cmr10's 'M' in pt
+ double charHeight (int c) const {return 6.833;} // height of cmr10's 'M' in pt
+ double charDepth (int c) const {return 0;}
+ double italicCorr (int c) const {return 0;}
+ const TFM* getTFM () const {return 0;}
+ const char* path () const {return 0;}
+ bool getGlyph (int c, Glyph &glyph, GFGlyphTracer::Callback *cb=0) const {return false;}
+
+ private:
+ std::string fontname;
+};
+
+
+/** Interface for all physical fonts. */
+class PhysicalFont : public virtual Font
+{
+ public:
+ enum Type {MF, PFB, TTC, TTF};
+ static Font* create (std::string name, UInt32 checksum, double dsize, double ssize, PhysicalFont::Type type);
+ static Font* create (std::string name, int fontindex, UInt32 checksum, double dsize, double ssize);
+ virtual Type type () const =0;
+ virtual bool getGlyph (int c, Glyph &glyph, GFGlyphTracer::Callback *cb=0) const;
+ virtual bool getGlyphBox (int c, BoundingBox &bbox, GFGlyphTracer::Callback *cb=0) const;
+ virtual int hAdvance () const;
+ virtual double hAdvance (int c) const;
+ std::string glyphName (int c) const;
+ virtual int unitsPerEm () const;
+ virtual int ascent () const;
+ virtual int descent () const;
+ virtual int traceAllGlyphs (bool includeCached, GFGlyphTracer::Callback *cb=0) const;
+ const char* path () const;
+ virtual void setStyle (double bold, double extend, double slant) {}
+
+ protected:
+ bool createGF (std::string &gfname) const;
+
+ public:
+ static bool KEEP_TEMP_FILES;
+ static const char *CACHE_PATH; ///< path to cache directory (0 if caching is disabled)
+ static double METAFONT_MAG; ///< magnification factor for Metafont calls
+
+ protected:
+ static FontCache _cache;
+};
+
+
+/** Interface for all virtual fonts. */
+class VirtualFont : public virtual Font
+{
+ friend class FontManager;
+ public:
+ typedef std::vector<UInt8> DVIVector;
+
+ public:
+ static Font* create (std::string name, UInt32 checksum, double dsize, double ssize);
+ virtual const DVIVector* getDVI (int c) const =0;
+ bool getGlyph (int c, Glyph &glyph, GFGlyphTracer::Callback *cb=0) const {return false;}
+
+ protected:
+ virtual void assignChar (UInt32 c, DVIVector *dvi) =0;
+};
+
+
+class TFMFont : public virtual Font
+{
+ public:
+ TFMFont (std::string name, UInt32 checksum, double dsize, double ssize);
+ ~TFMFont ();
+ const TFM* getTFM () const;
+ std::string name () const {return fontname;}
+ double designSize () const {return dsize;}
+ double scaledSize () const {return ssize;}
+ double charWidth (int c) const;
+ double charDepth (int c) const;
+ double charHeight (int c) const;
+ double italicCorr (int c) const;
+ bool verifyChecksums () const;
+
+ private:
+ mutable TFM *tfm;
+ std::string fontname;
+ UInt32 checksum; ///< cheksum to be compared with TFM checksum
+ double dsize; ///< design size in TeX point units
+ double ssize; ///< scaled size
+};
+
+
+class PhysicalFontProxy : public PhysicalFont
+{
+ friend class PhysicalFontImpl;
+ public:
+ Font* clone (double ds, double sc) const {return new PhysicalFontProxy(*this, ds, sc);}
+ const Font* uniqueFont () const {return pf;}
+ std::string name () const {return pf->name();}
+ double designSize () const {return dsize;}
+ double scaledSize () const {return ssize;}
+ double charWidth (int c) const {return pf->charWidth(c);}
+ double charDepth (int c) const {return pf->charDepth(c);}
+ double charHeight (int c) const {return pf->charHeight(c);}
+ double italicCorr (int c) const {return pf->italicCorr(c);}
+ const TFM* getTFM () const {return pf->getTFM();}
+ Type type () const {return pf->type();}
+ UInt32 unicode (UInt32 c) const {return pf->unicode(c);}
+ int fontIndex () const {return pf->fontIndex();}
+ const Style* style () const {return pf->style();}
+
+ protected:
+ PhysicalFontProxy (const PhysicalFont *font, double ds, double ss) : pf(font), dsize(ds), ssize(ss) {}
+ PhysicalFontProxy (const PhysicalFontProxy &proxy, double ds, double ss) : pf(proxy.pf), dsize(ds), ssize(ss) {}
+
+ private:
+ const PhysicalFont *pf;
+ double dsize; ///< design size in TeX point units
+ double ssize; ///< scaled size
+};
+
+
+class PhysicalFontImpl : public PhysicalFont, public TFMFont
+{
+ friend class PhysicalFont;
+ public:
+ ~PhysicalFontImpl();
+ Font* clone (double ds, double ss) const {return new PhysicalFontProxy(this, ds, ss);}
+ const Font* uniqueFont () const {return this;}
+ Type type () const {return _filetype;}
+ int fontIndex() const {return _fontIndex;}
+ const Style* style () const {return _style;}
+ void setStyle (double bold, double extend, double slant);
+ UInt32 unicode (UInt32 c) const;
+ void tidy () const;
+
+ protected:
+ PhysicalFontImpl (std::string name, int fontindex, UInt32 checksum, double dsize, double ssize, PhysicalFont::Type type);
+
+ private:
+ Type _filetype;
+ int _fontIndex;
+ Style *_style;
+ mutable std::map<UInt32,UInt32> *_charmap;
+};
+
+
+class VirtualFontProxy : public VirtualFont
+{
+ friend class VirtualFontImpl;
+ public:
+ Font* clone (double ds, double ss) const {return new VirtualFontProxy(*this, ds, ss);}
+ const Font* uniqueFont () const {return vf;}
+ std::string name () const {return vf->name();}
+ const DVIVector* getDVI (int c) const {return vf->getDVI(c);}
+ double designSize () const {return dsize;}
+ double scaledSize () const {return ssize;}
+ double charWidth (int c) const {return vf->charWidth(c);}
+ double charDepth (int c) const {return vf->charDepth(c);}
+ double charHeight (int c) const {return vf->charHeight(c);}
+ double italicCorr (int c) const {return vf->italicCorr(c);}
+ const TFM* getTFM () const {return vf->getTFM();}
+ const char* path () const {return vf->path();}
+
+ protected:
+ VirtualFontProxy (const VirtualFont *font, double ds, double ss) : vf(font), dsize(ds), ssize(ss) {}
+ VirtualFontProxy (const VirtualFontProxy &proxy, double ds, double ss) : vf(proxy.vf), dsize(ds), ssize(ss) {}
+ void assignChar (UInt32 c, DVIVector *dvi) {delete dvi;}
+
+ private:
+ const VirtualFont *vf;
+ double dsize; ///< design size in TeX point units
+ double ssize; ///< scaled size in TeX point units
+};
+
+
+class VirtualFontImpl : public VirtualFont, public TFMFont
+{
+ friend class VirtualFont;
+ public:
+ ~VirtualFontImpl ();
+ Font* clone (double ds, double ss) const {return new VirtualFontProxy(this, ds, ss);}
+ const Font* uniqueFont () const {return this;}
+ const DVIVector* getDVI (int c) const;
+ const char* path () const;
+
+ protected:
+ VirtualFontImpl (std::string name, UInt32 checksum, double dsize, double ssize);
+ void assignChar (UInt32 c, DVIVector *dvi);
+
+ private:
+ std::map<UInt32, DVIVector*> charDefs; ///< dvi subroutines defining the characters
+};
+
+
+struct FontException : public MessageException
+{
+ FontException (std::string msg) : MessageException(msg) {}
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontCache.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontCache.cpp
new file mode 100644
index 00000000000..a36df9afa82
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontCache.cpp
@@ -0,0 +1,387 @@
+/*************************************************************************
+** FontCache.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <algorithm>
+#include <cstring>
+#include <fstream>
+#include <iomanip>
+#include <sstream>
+#include "CRC32.h"
+#include "FileSystem.h"
+#include "FontCache.h"
+#include "Glyph.h"
+#include "Pair.h"
+#include "StreamReader.h"
+#include "StreamWriter.h"
+//#include "gzstream.h"
+#include "types.h"
+
+using namespace std;
+
+const UInt8 FontCache::VERSION = 5;
+
+
+static Pair32 read_pair (int bytes, StreamReader &sr) {
+ Int32 x = sr.readSigned(bytes);
+ Int32 y = sr.readSigned(bytes);
+ return Pair32(x, y);
+}
+
+
+FontCache::FontCache () : _changed(false)
+{
+}
+
+
+FontCache::~FontCache () {
+ clear();
+}
+
+
+/** Removes all data from the cache. This does not affect the cache files. */
+void FontCache::clear () {
+ _glyphs.clear();
+ _fontname.clear();
+}
+
+
+/** Assigns glyph data to a character and adds it to the cache.
+ * @param[in] c character code
+ * @param[in] glyph font glyph data */
+void FontCache::setGlyph (int c, const Glyph &glyph) {
+ _glyphs[c] = glyph;
+ _changed = true;
+}
+
+
+/** Returns the corresponding glyph data of a given character of the current font.
+ * @param[in] c character code
+ * @return font glyph data (0 if no matching data was found) */
+const Glyph* FontCache::getGlyph (int c) const {
+ GlyphMap::const_iterator it = _glyphs.find(c);
+ return (it != _glyphs.end()) ? &it->second : 0;
+}
+
+
+/** Writes the current cache data to a file (only if anything changed after
+ * the last call of read()).
+ * @param[in] fontname name of current font
+ * @param[in] dir directory where the cache file should go
+ * @return true if writing was successful */
+bool FontCache::write (const char *fontname, const char *dir) const {
+ if (!_changed)
+ return true;
+
+ if (fontname && strlen(fontname) > 0) {
+ if (dir == 0 || strlen(dir) == 0)
+ dir = FileSystem::getcwd().c_str();
+ ostringstream oss;
+ oss << dir << '/' << fontname << ".fgd";
+// ogzstream ofs(oss.str().c_str(), 9, ios::binary|ios::out);
+ ofstream ofs(oss.str().c_str(), ios::binary);
+ return write(fontname, ofs);
+ }
+ return false;
+}
+
+
+bool FontCache::write (const char* dir) const {
+ return _fontname.empty() ? false : write(_fontname.c_str(), dir);
+}
+
+
+/** Returns the minimal number of bytes needed to store the given value. */
+static int max_int_size (Int32 value) {
+ Int32 limit = 0x7f;
+ for (int i=1; i <= 4; i++) {
+ if ((value < 0 && -value <= limit+1) || (value >= 0 && value <= limit))
+ return i;
+ limit = (limit << 8) | 0xff;
+ }
+ return 4;
+}
+
+
+/** Returns the minimal number of bytes needed to store the biggest
+ * pair component of the given vector. */
+static int max_int_size (const Pair<Int32> *pairs, size_t n) {
+ int ret=0;
+ for (size_t i=0; i < n; i++) {
+ ret = max(ret, max_int_size(pairs[i].x()));
+ ret = max(ret, max_int_size(pairs[i].y()));
+ }
+ return ret;
+}
+
+
+/** Writes the current cache data to a stream (only if anything changed after
+ * the last call of read()).
+ * @param[in] fontname name of current font
+ * @param[in] os output stream
+ * @return true if writing was successful */
+bool FontCache::write (const char *fontname, ostream &os) const {
+ if (!_changed)
+ return true;
+ if (!os)
+ return false;
+
+ StreamWriter sw(os);
+ CRC32 crc32;
+
+ struct WriteActions : Glyph::Actions {
+ WriteActions (StreamWriter &sw, CRC32 &crc32) : _sw(sw), _crc32(crc32) {}
+
+ void draw (char cmd, const Glyph::Point *points, int n) {
+ int bytes = max_int_size(points, n);
+ int cmdchar = (bytes << 5) | (cmd - 'A');
+ _sw.writeUnsigned(cmdchar, 1, _crc32);
+ for (int i=0; i < n; i++) {
+ _sw.writeSigned(points[i].x(), bytes, _crc32);
+ _sw.writeSigned(points[i].y(), bytes, _crc32);
+ }
+ }
+ StreamWriter &_sw;
+ CRC32 &_crc32;
+ } actions(sw, crc32);
+
+ sw.writeUnsigned(VERSION, 1, crc32);
+ sw.writeUnsigned(0, 4); // space for checksum
+ sw.writeString(fontname, crc32, true);
+ sw.writeUnsigned(_glyphs.size(), 4, crc32);
+ FORALL(_glyphs, GlyphMap::const_iterator, it) {
+ const Glyph &glyph = it->second;
+ sw.writeUnsigned(it->first, 4, crc32);
+ sw.writeUnsigned(glyph.size(), 2, crc32);
+ glyph.iterate(actions, false);
+ }
+ os.seekp(1);
+ sw.writeUnsigned(crc32.get(), 4); // insert CRC32 checksum
+ os.seekp(0, ios::end);
+ return true;
+}
+
+
+/** Reads font glyph information from a file.
+ * @param[in] fontname name of font data to read
+ * @param[in] dir directory where the cache files are located
+ * @return true if reading was successful */
+bool FontCache::read (const char *fontname, const char *dir) {
+ if (_fontname == fontname)
+ return true;
+ clear();
+ if (fontname && strlen(fontname) > 0) {
+ if (dir == 0 || strlen(dir) == 0)
+ dir = FileSystem::getcwd().c_str();
+ ostringstream oss;
+ oss << dir << '/' << fontname << ".fgd";
+ ifstream ifs(oss.str().c_str(), ios::binary);
+// igzstream ifs(oss.str().c_str(), 9, ios::binary|ios::in);
+ return read(fontname, ifs);
+ }
+ return false;
+}
+
+
+/** Reads font glyph information from a stream.
+ * @param[in] fontname name of font data to read
+ * @param[in] dir input stream
+ * @return true if reading was successful */
+bool FontCache::read (const char *fontname, istream &is) {
+ if (_fontname == fontname)
+ return true;
+ clear();
+ _fontname = fontname;
+ if (!is)
+ return false;
+
+ StreamReader sr(is);
+ CRC32 crc32;
+ if (sr.readUnsigned(1, crc32) != VERSION)
+ return false;
+
+ UInt32 crc32_cmp = sr.readUnsigned(4);
+ crc32.update(is);
+ if (crc32.get() != crc32_cmp)
+ return false;
+
+ is.clear();
+ is.seekg(5); // continue reading after checksum
+
+ string fname = sr.readString();
+ if (fname != fontname)
+ return false;
+
+ UInt32 num_glyphs = sr.readUnsigned(4);
+ while (num_glyphs-- > 0) {
+ UInt32 c = sr.readUnsigned(4); // character code
+ UInt16 s = sr.readUnsigned(2); // number of path commands
+ Glyph &glyph = _glyphs[c];
+ while (s-- > 0) {
+ UInt8 cmdval = sr.readUnsigned(1);
+ UInt8 cmdchar = (cmdval & 0x1f) + 'A';
+ int bytes = cmdval >> 5;
+ switch (cmdchar) {
+ case 'C': {
+ Pair32 p1 = read_pair(bytes, sr);
+ Pair32 p2 = read_pair(bytes, sr);
+ Pair32 p3 = read_pair(bytes, sr);
+ glyph.cubicto(p1, p2, p3);
+ break;
+ }
+ case 'L':
+ glyph.lineto(read_pair(bytes, sr));
+ break;
+ case 'M':
+ glyph.moveto(read_pair(bytes, sr));
+ break;
+ case 'Q': {
+ Pair32 p1 = read_pair(bytes, sr);
+ Pair32 p2 = read_pair(bytes, sr);
+ glyph.conicto(p1, p2);
+ break;
+ }
+ case 'Z':
+ glyph.closepath();
+ }
+ }
+ }
+ _changed = false;
+ return true;
+}
+
+
+/** Collects font cache information.
+ * @param[in] dirname path to font cache directory
+ * @param[out] infos the collected font information
+ * @param[out] invalid names of outdated/corrupted cache files
+ * @return true on success */
+bool FontCache::fontinfo (const char *dirname, vector<FontInfo> &infos, vector<string> &invalid) {
+ infos.clear();
+ invalid.clear();
+ if (dirname) {
+ vector<string> fnames;
+ FileSystem::collect(dirname, fnames);
+ FORALL(fnames, vector<string>::iterator, it) {
+ if ((*it)[0] == 'f' && it->length() > 5 && it->substr(it->length()-4) == ".fgd") {
+ FontInfo info;
+ string path = string(dirname)+"/"+(it->substr(1));
+ ifstream ifs(path.c_str(), ios::binary);
+ if (fontinfo(ifs, info))
+ infos.push_back(info);
+ else
+ invalid.push_back(it->substr(1));
+ }
+ }
+ }
+ return !infos.empty();
+}
+
+
+/** Collects font cache information of a single font.
+ * @param[in] is input stream of the cache file
+ * @param[out] info the collected data
+ * @return true if data could be read, false if cache file is unavailable, outdated, or corrupted */
+bool FontCache::fontinfo (std::istream &is, FontInfo &info) {
+ info.name.clear();
+ info.numchars = info.numbytes = info.numcmds = 0;
+ if (is) {
+ is.clear();
+ is.seekg(0);
+ StreamReader sr(is);
+ CRC32 crc32;
+ if ((info.version = sr.readUnsigned(1, crc32)) != VERSION)
+ return false;
+
+ info.checksum = sr.readUnsigned(4);
+ crc32.update(is);
+ if (crc32.get() != info.checksum)
+ return false;
+
+ is.clear();
+ is.seekg(5); // continue reading after checksum
+
+ info.name = sr.readString();
+ info.numchars = sr.readUnsigned(4);
+ for (UInt32 i=0; i < info.numchars; i++) {
+ sr.readUnsigned(4); // character code
+ UInt16 s = sr.readUnsigned(2); // number of path commands
+ while (s-- > 0) {
+ UInt8 cmdval = sr.readUnsigned(1);
+ UInt8 cmdchar = (cmdval & 0x1f) + 'A';
+ int bytes = cmdval >> 5;
+ int bc = 0;
+ switch (cmdchar) {
+ case 'C': bc = 6*bytes; break;
+ case 'H':
+ case 'L':
+ case 'M':
+ case 'T':
+ case 'V': bc = 2*bytes; break;
+ case 'Q':
+ case 'S': bc = 4*bytes; break;
+ case 'Z': break;
+ default : return false;
+ }
+ info.numbytes += bc+1; // command length + command
+ info.numcmds++;
+ is.seekg(bc, ios_base::cur);
+ }
+ info.numbytes += 6; // number of path commands + char code
+ }
+ info.numbytes += 6+info.name.length(); // version + 0-byte + fontname + number of chars
+ }
+ return true;
+}
+
+
+/** Collects font cache information and write it to a stream.
+ * @param[in] dirname path to font cache directory
+ * @param[in] os output is written to this stream
+ * @param[in] purge if true, outdated and corrupted cache files are removed */
+void FontCache::fontinfo (const char *dirname, ostream &os, bool purge) {
+ if (dirname) {
+ vector<FontInfo> infos;
+ vector<string> invalid_files;
+ if (fontinfo(dirname, infos, invalid_files)) {
+ os << "cache format version " << infos[0].version << endl;
+ typedef map<string,FontInfo*> SortMap;
+ SortMap sortmap;
+ FORALL(infos, vector<FontInfo>::iterator, it)
+ sortmap[it->name] = &(*it);
+
+ FORALL(sortmap, SortMap::iterator, it) {
+ os << dec << setfill(' ') << left
+ << setw(10) << left << it->second->name
+ << setw(5) << right << it->second->numchars << " glyph" << (it->second->numchars == 1 ? ' ':'s')
+ << setw(10) << right << it->second->numcmds << " cmd" << (it->second->numcmds == 1 ? ' ':'s')
+ << setw(12) << right << it->second->numbytes << " byte" << (it->second->numbytes == 1 ? ' ':'s')
+ << setw(6) << "crc:" << setw(8) << hex << right << setfill('0') << it->second->checksum
+ << endl;
+ }
+ }
+ else
+ os << "cache is empty\n";
+ FORALL(invalid_files, vector<string>::iterator, it) {
+ string path=string(dirname)+"/"+(*it);
+ if (FileSystem::remove(path))
+ os << "invalid cache file " << (*it) << " removed\n";
+ }
+ }
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontCache.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontCache.h
new file mode 100644
index 00000000000..cf4cbef7ec2
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontCache.h
@@ -0,0 +1,74 @@
+/*************************************************************************
+** FontCache.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef FONTCACHE_H
+#define FONTCACHE_H
+
+#include <iostream>
+#include <string>
+#include <map>
+#include "types.h"
+#include "Glyph.h"
+
+#ifdef VERSION
+#undef VERSION
+#endif
+
+
+class FontCache
+{
+ typedef std::map<int, Glyph> GlyphMap;
+
+ public:
+ struct FontInfo
+ {
+ std::string name; // fontname
+ UInt16 version; // file format version
+ UInt32 checksum; // CRC32 checksum of file data
+ UInt32 numchars; // number of characters
+ UInt32 numbytes; // number of bytes
+ UInt32 numcmds; // number of path commands
+ };
+
+ public:
+ FontCache ();
+ ~FontCache ();
+ bool read (const char *fontname, const char *dir);
+ bool read (const char *fontname, std::istream &is);
+ bool write (const char *dir) const;
+ bool write (const char *fontname, const char *dir) const;
+ bool write (const char *fontname, std::ostream &os) const;
+ const Glyph* getGlyph (int c) const;
+ void setGlyph (int c, const Glyph &glyph);
+ void clear ();
+ const std::string& fontname () const {return _fontname;}
+
+ static bool fontinfo (const char *dirname, std::vector<FontInfo> &infos, std::vector<std::string> &invalid);
+ static bool fontinfo (std::istream &is, FontInfo &info);
+ static void fontinfo (const char *dirname, std::ostream &os, bool purge=false);
+
+ private:
+ static const UInt8 VERSION;
+ std::string _fontname;
+ GlyphMap _glyphs;
+ bool _changed;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEncoding.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEncoding.cpp
new file mode 100644
index 00000000000..c506292362c
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEncoding.cpp
@@ -0,0 +1,164 @@
+/*************************************************************************
+** FontEncoding.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <fstream>
+#include "Font.h"
+#include "FontEncoding.h"
+#include "FontMap.h"
+#include "InputBuffer.h"
+#include "InputReader.h"
+#include "FileFinder.h"
+#include "Message.h"
+
+using namespace std;
+
+static string read_entry (InputReader &in);
+static bool valid_name_char (int c);
+
+
+FontEncoding::FontEncoding (const string &encname) : _encname(encname)
+{
+ read();
+}
+
+
+const char* FontEncoding::path () const {
+ return FileFinder::lookup(_encname+".enc", false);
+}
+
+
+/** Search for suitable enc-file and read its encoding information.
+ * The file contents must be a valid PostScript vector with 256 entries. */
+void FontEncoding::read () {
+ if (const char *p = path()) {
+ ifstream ifs(p);
+ read(ifs);
+ }
+ else
+ Message::wstream(true) << "encoding file '" << _encname << ".enc' not found\n";
+}
+
+
+/** Read encoding information from stream. */
+void FontEncoding::read (istream &is) {
+ StreamInputBuffer ib(is, 256);
+ BufferInputReader in(ib);
+ _table.resize(256);
+
+ // find beginning of vector
+ while (!in.eof()) {
+ in.skipSpace();
+ if (in.peek() == '%')
+ in.skipUntil("\n");
+ else
+ if (in.get() == '[')
+ break;
+ }
+
+ // read vector entries
+ int n=0;
+ while (!in.eof()) {
+ in.skipSpace();
+ if (in.peek() == '%')
+ in.skipUntil("\n");
+ else if (in.peek() == ']') {
+ in.get();
+ break;
+ }
+ else {
+ string entry = read_entry(in);
+ if (entry == ".notdef")
+ entry.clear();
+ if (n < 256)
+ _table[n++] = entry;
+ }
+ }
+ // remove trailing .notdef names
+ for (n--; n > 0 && _table[n].empty(); n--);
+ _table.resize(n+1);
+}
+
+
+static string read_entry (InputReader &in) {
+ string entry;
+ bool accept_slashes=true;
+ while (!in.eof() && ((in.peek() == '/' && accept_slashes) || valid_name_char(in.peek()))) {
+ if (in.peek() != '/')
+ accept_slashes = false;
+ entry += in.get();
+ }
+ if (entry.length() > 1) {
+ // strip leading slashes
+ // According to the PostScript specification, a single slash without further
+ // following characters is a valid name.
+ size_t n=0;
+ while (n < entry.length() && entry[n] == '/')
+ n++;
+ entry = entry.substr(n);
+ }
+ return entry;
+}
+
+
+static bool valid_name_char (int c) {
+ const char *delimiters = "<>(){}[]/~%";
+ return isprint(c) && !isspace(c) && !strchr(delimiters, c);
+}
+
+
+/** Returns an entry of the encoding table.
+ * @param[in] c character code
+ * @return character name assigned to character code c*/
+const char* FontEncoding::getEntry (int c) const {
+ if (c >= 0 && (size_t)c < _table.size())
+ return !_table[c].empty() ? _table[c].c_str() : 0;
+ return 0;
+}
+
+
+struct EncodingMap : public map<string, FontEncoding*>
+{
+ ~EncodingMap () {
+ for (EncodingMap::iterator it=begin(); it != end(); ++it)
+ delete it->second;
+ }
+};
+
+
+/** Returns the encoding of a font.
+ * @param[in] fontname name of font whose encoding will be returned
+ * @return pointer to encoding object, or 0 if there is no encoding defined */
+FontEncoding* FontEncoding::encoding (string fontname) {
+ static EncodingMap encmap;
+ size_t pos = fontname.rfind('.');
+ if (pos != string::npos)
+ fontname = fontname.substr(0, pos); // strip extension
+ if (const FontMap::Entry *entry = FontMap::instance().lookup(fontname)) {
+ EncodingMap::const_iterator it = encmap.find(entry->encname);
+ if (it != encmap.end())
+ return it->second;
+ if (FileFinder::lookup(entry->encname + ".enc", false)) {
+ FontEncoding *enc = new FontEncoding(entry->encname);
+ encmap[entry->encname] = enc;
+ return enc;
+ }
+ }
+ return 0;
+} \ No newline at end of file
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEncoding.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEncoding.h
new file mode 100644
index 00000000000..3170d850256
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEncoding.h
@@ -0,0 +1,48 @@
+/*************************************************************************
+** FontEncoding.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef FONTENCODING_H
+#define FONTENCODING_H
+
+#include <istream>
+#include <map>
+#include <string>
+#include <vector>
+#include "types.h"
+
+
+class FontEncoding
+{
+ public:
+ FontEncoding (const std::string &name);
+ void read ();
+ void read (std::istream &is);
+ int size () const {return _table.size();}
+ std::string name () const {return _encname;}
+ const char* getEntry (int c) const;
+ const char* path () const;
+ static FontEncoding* encoding (std::string fontname);
+
+ private:
+ std::string _encname;
+ std::vector<std::string> _table;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEngine.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEngine.cpp
new file mode 100644
index 00000000000..ab53b1bd644
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEngine.cpp
@@ -0,0 +1,379 @@
+/*************************************************************************
+** FontEngine.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <iostream>
+#include <sstream>
+#include <ft2build.h>
+#include FT_GLYPH_H
+#include FT_OUTLINE_H
+#include FT_TRUETYPE_TABLES_H
+#include FT_TYPES_H
+#include "Font.h"
+#include "FontEngine.h"
+#include "Message.h"
+
+using namespace std;
+
+
+/** Converts a floating point value to a 16.16 fixed point value. */
+static inline FT_Fixed to_16dot16 (double val) {
+ return static_cast<FT_Fixed>(val*65536.0 + 0.5);
+}
+
+/** Converts an integer to a 16.16 fixed point value. */
+static inline FT_Fixed to_16dot16 (int val) {
+ return static_cast<FT_Fixed>(val) << 16;
+}
+
+/** Converts a floating point value to a 26.6 fixed point value. */
+static inline FT_F26Dot6 to_26dot6 (double val) {
+ return static_cast<FT_F26Dot6>(val*64.0 + 0.5);
+}
+
+/** Converts an integer to a 26.6 fixed point value. */
+static inline FT_F26Dot6 to_26dot6 (int val) {
+ return static_cast<FT_F26Dot6>(val) << 6;
+}
+
+
+///////////////////////////////////////////////////////////////////////////
+
+
+FontEngine::FontEngine () : _currentFace(0), _currentFont(0)
+{
+ _currentChar = _currentGlyphIndex = 0;
+ _horDeviceRes = _vertDeviceRes = 300;
+ if (FT_Init_FreeType(&_library))
+ Message::estream(true) << "FontEngine: error initializing FreeType library\n";
+}
+
+
+FontEngine::~FontEngine () {
+ if (_currentFace && FT_Done_Face(_currentFace))
+ Message::estream(true) << "FontEngine: error removing glyph\n";
+ if (FT_Done_FreeType(_library))
+ Message::estream(true) << "FontEngine: error removing FreeType library\n";
+}
+
+
+/** Returns the singleton instance of this class. */
+FontEngine& FontEngine::instance () {
+ static FontEngine engine;
+ return engine;
+}
+
+
+string FontEngine::version () {
+ FT_Int major, minor, patch;
+ FT_Library &lib = instance()._library;
+ FT_Library_Version(lib, &major, &minor, &patch);
+ ostringstream oss;
+ oss << major << '.' << minor << '.' << patch;
+ return oss.str();
+}
+
+
+void FontEngine::setDeviceResolution (int x, int y) {
+ _horDeviceRes = x;
+ _vertDeviceRes = y;
+}
+
+
+/** Builds a table that maps glyph indexes to char codes.
+ * @param[in] face font face to be used
+ * @param[out] reverseMap the resulting map */
+static void build_reverse_map (FT_Face face, map<UInt32, UInt32> &reverseMap) {
+ FT_UInt glyphIndex;
+ UInt32 charcode = FT_Get_First_Char(face, &glyphIndex);
+ while (glyphIndex) {
+// if (reverseMap.find(glyphIndex) == reverseMap.end())
+ reverseMap[glyphIndex] = charcode;
+ charcode = FT_Get_Next_Char(face, charcode, &glyphIndex);
+ }
+}
+
+
+/** Sets the font to be used.
+ * @param[in] fname path to font file
+ * @param[in] fontindex index of font in font collection (multi-font files, like TTC)
+ * @return true on success */
+bool FontEngine::setFont (const string &fname, int fontindex) {
+ if (FT_New_Face(_library, fname.c_str(), fontindex, &_currentFace)) {
+ Message::estream(true) << "FontEngine: error reading file " << fname << '\n';
+ return false;
+ }
+ // look for a custom character map
+ for (int i=0; i < _currentFace->num_charmaps; i++) {
+ FT_CharMap charmap = _currentFace->charmaps[i];
+ if (charmap->encoding == FT_ENCODING_ADOBE_CUSTOM) {
+ FT_Set_Charmap(_currentFace, charmap);
+ break;
+ }
+ }
+ return true;
+}
+
+
+bool FontEngine::setFont (const Font &font) {
+ if (!_currentFont || _currentFont->name() != font.name()) {
+ _currentFont = &font;
+ return setFont(font.path(), font.fontIndex());
+ }
+ return true;
+}
+
+
+void FontEngine::buildTranslationMap (map<UInt32, UInt32> &translationMap) const {
+ FT_CharMap unicodeMap=0, customMap=0;
+ for (int i=0; i < _currentFace->num_charmaps; i++) {
+ FT_CharMap charmap = _currentFace->charmaps[i];
+ if (charmap->encoding == FT_ENCODING_ADOBE_CUSTOM)
+ customMap = charmap;
+ else if (charmap->encoding == FT_ENCODING_UNICODE)
+ unicodeMap = charmap;
+ }
+ if (unicodeMap == 0 || customMap == 0)
+ return;
+
+ map<UInt32,UInt32> reverseMap;
+ build_reverse_map(_currentFace, reverseMap);
+
+ FT_Set_Charmap(_currentFace, unicodeMap);
+ FT_UInt glyphIndex;
+ UInt32 charcode = FT_Get_First_Char(_currentFace, &glyphIndex);
+ while (glyphIndex) {
+ translationMap[reverseMap[glyphIndex]] = charcode;
+ charcode = FT_Get_Next_Char(_currentFace, charcode, &glyphIndex);
+ }
+ FT_Set_Charmap(_currentFace, customMap);
+}
+
+
+const char* FontEngine::getFamilyName () const {
+ return _currentFace ? _currentFace->family_name : 0;
+}
+
+
+const char* FontEngine::getStyleName () const {
+ return _currentFace ? _currentFace->style_name : 0;
+}
+
+
+int FontEngine::getUnitsPerEM () const {
+ return _currentFace ? _currentFace->units_per_EM : 0;
+}
+
+
+int FontEngine::getAscender () const {
+ return _currentFace ? _currentFace->ascender : 0;
+}
+
+
+int FontEngine::getDescender () const {
+ return _currentFace ? _currentFace->descender : 0;
+}
+
+
+int FontEngine::getHAdvance () const {
+ if (_currentFace) {
+ TT_OS2 *table = static_cast<TT_OS2*>(FT_Get_Sfnt_Table(_currentFace, ft_sfnt_os2));
+ return table ? table->xAvgCharWidth : 0;
+ }
+ return 0;
+}
+
+
+int FontEngine::getHAdvance (unsigned c) const {
+ if (_currentFace) {
+ int index = FT_Get_Char_Index(_currentFace, (FT_ULong)c);
+ FT_Load_Glyph(_currentFace, index, FT_LOAD_NO_SCALE);
+ return _currentFace->glyph->metrics.horiAdvance;
+ }
+ return 0;
+}
+
+
+int FontEngine::getHAdvance (const char *name) const {
+ if (_currentFace && name) {
+ int index = FT_Get_Name_Index(_currentFace, (FT_String*)name);
+ FT_Load_Glyph(_currentFace, index, FT_LOAD_NO_SCALE);
+ return _currentFace->glyph->metrics.horiAdvance;
+ }
+ return 0;
+}
+
+
+/** Get first available character of the current font face. */
+int FontEngine::getFirstChar () const {
+ if (_currentFace)
+ return _currentChar = FT_Get_First_Char(_currentFace, &_currentGlyphIndex);
+ return 0;
+}
+
+
+/** Get the next available character of the current font face. */
+int FontEngine::getNextChar () const {
+ if (_currentFace && _currentGlyphIndex)
+ return _currentChar = FT_Get_Next_Char(_currentFace, _currentChar, &_currentGlyphIndex);
+ return getFirstChar();
+}
+
+
+/** Returns the glyph name for a given charater code.
+ * @param[in] c char code
+ * @return glyph name */
+string FontEngine::getGlyphName (unsigned c) const {
+ if (_currentFace && FT_HAS_GLYPH_NAMES(_currentFace)) {
+ char buf[256];
+ int index = FT_Get_Char_Index(_currentFace, c);
+ FT_Get_Glyph_Name(_currentFace, index, buf, 256);
+ return string(buf);
+ }
+ return "";
+}
+
+
+/* Returns the character code for a given glyph name.
+ * @param name glyph name
+ * @return char code or 0 if name couldn't be found
+int FontEngine::getCharByGlyphName (const char *name) const {
+ if (_currentFace && FT_HAS_GLYPH_NAMES(_currentFace)) {
+ int index = FT_Get_Name_Index(_currentFace, (FT_String*)name);
+ map<UInt32, UInt32>::const_iterator it = _reverseMap.find(index);
+ if (it != _reverseMap.end())
+ return it->second;
+ }
+ return 0;
+}*/
+
+
+vector<int> FontEngine::getPanose () const {
+ vector<int> panose(10);
+ if (_currentFace) {
+ TT_OS2 *table = static_cast<TT_OS2*>(FT_Get_Sfnt_Table(_currentFace, ft_sfnt_os2));
+ if (table)
+ for (int i=0; i < 10; i++)
+ panose[i] = table->panose[i];
+ }
+ return panose;
+}
+
+
+// handle API change in freetype version 2.2.1
+#if FREETYPE_MAJOR > 2 || (FREETYPE_MAJOR == 2 && (FREETYPE_MINOR > 2 || (FREETYPE_MINOR == 2 && FREETYPE_PATCH >= 1)))
+ typedef const FT_Vector *FTVectorPtr;
+#else
+ typedef FT_Vector *FTVectorPtr;
+#endif
+
+
+// Callback functions used by trace_outline/FT_Outline_Decompose
+static int moveto (FTVectorPtr to, void *user) {
+ Glyph *glyph = static_cast<Glyph*>(user);
+ glyph->moveto(to->x, to->y);
+ return 0;
+}
+
+
+static int lineto (FTVectorPtr to, void *user) {
+ Glyph *glyph = static_cast<Glyph*>(user);
+ glyph->lineto(to->x, to->y);
+ return 0;
+}
+
+
+static int conicto (FTVectorPtr control, FTVectorPtr to, void *user) {
+ Glyph *glyph = static_cast<Glyph*>(user);
+ glyph->conicto(control->x, control->y, to->x, to->y);
+ return 0;
+}
+
+
+static int cubicto (FTVectorPtr control1, FTVectorPtr control2, FTVectorPtr to, void *user) {
+ Glyph *glyph = static_cast<Glyph*>(user);
+ glyph->cubicto(control1->x, control1->y, control2->x, control2->y, to->x, to->y);
+ return 0;
+}
+
+
+/** Traces the outline of a glyph by calling the corresponding "drawing" functions.
+ * Each glyph is composed of straight lines, quadratic (conic) or cubic B�zier curves.
+ * This function takes all these outline segments and processes them by calling
+ * the corresponding functions. The functions must be provided in form of a
+ * FEGlyphCommands object.
+ * @param[in] index index of the glyph that will be traced
+ * @param[in] commands the drawing commands to be executed
+ * @param[in] scale if true the current pt size will be considered otherwise the plain TrueType units are used.
+ * @return false on errors */
+static bool trace_outline (FT_Face face, const Font *font, int index, Glyph &glyph, bool scale) {
+ if (face) {
+ if (FT_Load_Glyph(face, index, scale ? FT_LOAD_DEFAULT : FT_LOAD_NO_SCALE)) {
+ Message::estream(true) << "can't load glyph " << int(index) << '\n';
+ return false;
+ }
+ if (face->glyph->format != FT_GLYPH_FORMAT_OUTLINE) {
+ Message::estream(true) << "no outlines found in glyph " << int(index) << '\n';
+ return false;
+ }
+ FT_Outline outline = face->glyph->outline;
+ // apply style parameters if set
+ if (const Font::Style *style = font->style()) {
+ FT_Matrix matrix = {to_16dot16(style->extend), to_16dot16(style->slant), 0, to_16dot16(1)};
+ FT_Outline_Transform(&outline, &matrix);
+ if (style->bold != 0)
+ FT_Outline_Embolden(&outline, style->bold/font->scaledSize()*face->units_per_EM);
+ }
+ const FT_Outline_Funcs funcs = {moveto, lineto, conicto, cubicto, 0, 0};
+ FT_Outline_Decompose(&outline, &funcs, &glyph);
+ return true;
+ }
+ Message::wstream(true) << "FontEngine: can't trace outline, no font face selected\n";
+ return false;
+}
+
+
+/** Traces the outline of a glyph by calling the corresponding "drawing" functions.
+ * Each glyph is composed of straight lines, quadratic (conic) or cubic B�zier curves.
+ * This function takes all these outline segments and processes them by calling
+ * the corresponding functions. The functions must be provided in form of a
+ * FEGlyphCommands object.
+ * @param[in] chr the glyph of this character will be traced
+ * @param[in] commands the drawing commands to be executed
+ * @param[in] scale if true the current pt size will be considered otherwise
+ * the plain TrueType units are used.
+ * @return false on errors */
+bool FontEngine::traceOutline (UInt16 chr, Glyph &glyph, bool scale) const {
+ if (_currentFace) {
+ int index = FT_Get_Char_Index(_currentFace, chr);
+ return trace_outline(_currentFace, _currentFont, index, glyph, scale);
+ }
+ Message::wstream(true) << "FontEngine: can't trace outline, no font face selected\n";
+ return false;
+}
+
+
+bool FontEngine::traceOutline (const char *name, Glyph &glyph, bool scale) const {
+ if (_currentFace) {
+ int index = FT_Get_Name_Index(_currentFace, (FT_String*)name);
+ return trace_outline(_currentFace, _currentFont, index, glyph, scale);
+ }
+ Message::wstream(true) << "FontEngine: can't trace outline, no font face selected\n";
+ return false;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEngine.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEngine.h
new file mode 100644
index 00000000000..68652b66523
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontEngine.h
@@ -0,0 +1,73 @@
+/*************************************************************************
+** FontEngine.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef FONTENGINE_H
+#define FONTENGINE_H
+
+#include <ft2build.h>
+#include FT_FREETYPE_H
+#include <map>
+#include <string>
+#include <vector>
+#include "types.h"
+#include "Glyph.h"
+
+struct Font;
+
+/** This class provides methods to handle font files and font data.
+ * It's a wrapper for the Freetype font library. */
+class FontEngine
+{
+ public:
+ ~FontEngine ();
+ static FontEngine& instance ();
+ static std::string version ();
+ void setDeviceResolution (int x, int y);
+ bool setFont (const Font &font);
+ bool traceOutline (UInt16 chr, Glyph &glyph, bool scale=true) const;
+ bool traceOutline (const char *name, Glyph &glyph, bool scale) const;
+ const char* getFamilyName () const;
+ const char* getStyleName () const;
+ int getUnitsPerEM () const;
+ int getAscender () const;
+ int getDescender () const;
+ int getHAdvance () const;
+ int getHAdvance (unsigned int c) const;
+ int getHAdvance (const char *name) const;
+ int getFirstChar () const;
+ int getNextChar () const;
+ std::vector<int> getPanose () const;
+ std::string getGlyphName (unsigned int c) const;
+ int getCharByGlyphName (const char *name) const;
+ void buildTranslationMap (std::map<UInt32,UInt32> &translationMap) const;
+
+ protected:
+ FontEngine ();
+ bool setFont (const std::string &fname, int fontindex=0);
+
+ private:
+ int _horDeviceRes, _vertDeviceRes;
+ mutable unsigned int _currentChar, _currentGlyphIndex;
+ FT_Face _currentFace;
+ FT_Library _library;
+ const Font *_currentFont;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontManager.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontManager.cpp
new file mode 100644
index 00000000000..0481b59a969
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontManager.cpp
@@ -0,0 +1,296 @@
+/*************************************************************************
+** FontManager.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstring>
+#include <cstdlib>
+#include <fstream>
+#include <set>
+#include "Font.h"
+#include "FontEncoding.h"
+#include "FontManager.h"
+#include "FontMap.h"
+#include "FileFinder.h"
+#include "Message.h"
+#include "macros.h"
+
+using namespace std;
+
+
+FontManager::~FontManager () {
+ FORALL(_fonts, vector<Font*>::iterator, i)
+ delete *i;
+}
+
+
+/** Returns the singleton instance */
+FontManager& FontManager::instance () {
+ static FontManager fm;
+ return fm;
+}
+
+
+/** Returns a unique ID that identifies the font.
+ * @param[in] n local font number, as used in DVI and VF files
+ * @return non-negative font ID if font was found, -1 otherwise */
+int FontManager::fontID (int n) const {
+ if (_vfStack.empty()) {
+ Num2IdMap::const_iterator it = _num2id.find(n);
+ return (it == _num2id.end()) ? -1 : it->second;
+ }
+ VfNum2IdMap::const_iterator vit = _vfnum2id.find(_vfStack.top());
+ if (vit == _vfnum2id.end())
+ return -1;
+ const Num2IdMap &num2id = vit->second;
+ Num2IdMap::const_iterator it = num2id.find(n);
+ return (it == num2id.end()) ? -1 : it->second;
+}
+
+
+/** Returns a unique ID that identifies the font. Not the font object but the
+ * font pointer is looked up to get the ID. Thus, two different pointers
+ * referencing different objects of the same font are mapped to different IDs.
+ * @param[in] font pointer to font object to be identified
+ * @return non-negative font ID if font was found, -1 otherwise */
+int FontManager::fontID (const Font *font) const {
+ for (size_t i=0; i < _fonts.size(); i++)
+ if (_fonts[i] == font)
+ return i;
+ return -1;
+}
+
+
+/** Returns a unique ID that identifies the font.
+ * @param[in] name name of font to be identified, e.g. cmr10
+ * @return non-negative font ID if font was found, -1 otherwise */
+int FontManager::fontID (const string &name) const {
+ map<string,int>::const_iterator it = _name2id.find(name);
+ if (it == _name2id.end())
+ return -1;
+ return it->second;
+}
+
+
+int FontManager::fontnum (int id) const {
+ if (id < 0 || size_t(id) > _fonts.size())
+ return -1;
+ if (_vfStack.empty()) {
+ FORALL(_num2id, Num2IdMap::const_iterator, i)
+ if (i->second == id)
+ return i->first;
+ }
+ else {
+ VfNum2IdMap::const_iterator it = _vfnum2id.find(_vfStack.top());
+ if (it == _vfnum2id.end())
+ return -1;
+ const Num2IdMap &num2id = it->second;
+ FORALL(num2id, Num2IdMap::const_iterator, i)
+ if (i->second == id)
+ return i->first;
+ }
+ return -1;
+}
+
+
+int FontManager::vfFirstFontNum (VirtualFont *vf) const {
+ VfFirstFontMap::const_iterator it = _vfFirstFontMap.find(vf);
+ return (it == _vfFirstFontMap.end()) ? -1 : (int) it->second;
+}
+
+
+/** Returns a previously registered font.
+ * @param[in] n local font number, as used in DVI and VF files
+ * @return pointer to font if font was found, 0 otherwise */
+Font* FontManager::getFont (int n) const {
+ int id = fontID(n);
+ return (id < 0) ? 0 : _fonts[id];
+}
+
+
+Font* FontManager::getFont (const string &name) const {
+ int id = fontID(name);
+ if (id < 0)
+ return 0;
+ return _fonts[id];
+}
+
+
+Font* FontManager::getFontById (int id) const {
+ if (id < 0 || size_t(id) >= _fonts.size())
+ return 0;
+ return _fonts[id];
+}
+
+
+/** Returns the current active virtual font. */
+VirtualFont* FontManager::getVF () const {
+ return _vfStack.empty() ? 0 : _vfStack.top();
+}
+
+
+static Font* create_font (const string &filename, const string &fontname, int fontindex, UInt32 checksum, double dsize, double ssize) {
+ string ext;
+ if (const char *dot = strrchr(filename.c_str(), '.'))
+ ext = dot+1;
+ if (!ext.empty() && FileFinder::lookup(filename)) {
+ if (ext == "pfb")
+ return PhysicalFont::create(fontname, checksum, dsize, ssize, PhysicalFont::PFB);
+ if (ext == "ttf")
+ return PhysicalFont::create(fontname, checksum, dsize, ssize, PhysicalFont::TTF);
+ if (ext == "ttc")
+ return PhysicalFont::create(fontname, fontindex, checksum, dsize, ssize);
+ if (ext == "vf")
+ return VirtualFont::create(fontname, checksum, dsize, ssize);
+ if (ext == "mf")
+ return PhysicalFont::create(fontname, checksum, dsize, ssize, PhysicalFont::MF);
+ }
+ return 0;
+}
+
+
+/** Registers a new font to be managed by the FontManager. If there is
+ * already a registered font assigned to number n, nothing happens.
+ * @param[in] fontnum local font number, as used in DVI and VF files
+ * @param[in] name TFM fontname given in DVI file, e.g. cmr10
+ * @param[in] checksum checksum to be compared with TFM checksum
+ * @param[in] dsize design size in TeX point units
+ * @param[in] ssize scaled size in TeX point units
+ * @return id of registered font */
+int FontManager::registerFont (UInt32 fontnum, string name, UInt32 checksum, double dsize, double ssize) {
+ int id = fontID(fontnum);
+ if (id >= 0)
+ return id;
+
+ Font *newfont = 0;
+ const int newid = _fonts.size(); // the new font gets this ID
+ Name2IdMap::iterator it = _name2id.find(name);
+ if (it != _name2id.end()) { // font with same name already registered?
+ Font *font = _fonts[it->second];
+ newfont = font->clone(dsize, ssize);
+ }
+ else {
+ string filename = name;
+ int fontindex = 0;
+ const FontMap::Entry *map_entry = FontMap::instance().lookup(name);
+ if (map_entry) {
+ filename = map_entry->fontname;
+ fontindex = map_entry->fontindex;
+ }
+ // try to find font file with the exact given name
+ if (filename.rfind(".") != string::npos)
+ newfont = create_font(filename, name, fontindex, checksum, dsize, ssize);
+ else {
+ // try various font file formats if the given file has no extension
+ const char *exts[] = {".pfb", ".ttc", ".ttf", ".vf", ".mf", 0};
+ for (const char **p = exts; *p && !newfont; ++p)
+ newfont = create_font(filename+*p, name, fontindex, checksum, dsize, ssize);
+ }
+ if (map_entry)
+ if (PhysicalFont *pf = dynamic_cast<PhysicalFont*>(newfont))
+ pf->setStyle(map_entry->bold, map_entry->extend, map_entry->slant);
+ if (!newfont) {
+ // create dummy font as a placeholder if the proper font is not available
+ newfont = new EmptyFont(name);
+ if (filename.rfind(".") == string::npos)
+ filename += ".mf";
+ // print warning message about missing font file (only once for each filename)
+ static set<string> missing_fonts;
+ if (missing_fonts.find(filename) == missing_fonts.end()) {
+ Message::wstream(true) << "font file '" << filename << "' not found\n";
+ missing_fonts.insert(filename);
+ }
+ }
+ else if (!newfont->verifyChecksums())
+ Message::wstream(true) << "checksum mismatch in font " << name << '\n';
+ _name2id[name] = newid;
+ }
+ _fonts.push_back(newfont);
+ if (_vfStack.empty()) // register font referenced in dvi file?
+ _num2id[fontnum] = newid;
+ else { // register font referenced in vf file
+ VirtualFont *vf = const_cast<VirtualFont*>(_vfStack.top());
+ _vfnum2id[vf][fontnum] = newid;
+ if (_vfFirstFontMap.find(vf) == _vfFirstFontMap.end()) // first fontdef of VF?
+ _vfFirstFontMap[vf] = fontnum;
+ }
+ return newid;
+}
+
+
+/** Enters a new virtual font frame.
+ * This method must be called before processing a VF character.
+ * @param[in] vf virtual font */
+void FontManager::enterVF (VirtualFont *vf) {
+ if (vf)
+ _vfStack.push(vf);
+}
+
+
+/** Leaves a previously entered virtual font frame. */
+void FontManager::leaveVF () {
+ if (!_vfStack.empty())
+ _vfStack.pop();
+}
+
+
+/** Assigns a sequence of DVI commands to a char code.
+ * @param[in] c character code
+ * @param[in] dvi points to vector with DVI commands */
+void FontManager::assignVfChar (int c, vector<UInt8> *dvi) {
+ if (!_vfStack.empty() && dvi)
+ _vfStack.top()->assignChar(c, dvi);
+}
+
+
+ostream& FontManager::write (ostream &os, Font *font, int level) {
+#if 0
+ if (font) {
+ int id = -1;
+ for (int i=0; i < fonts.size() && id < 0; i++)
+ if (fonts[i] == font)
+ id = i;
+
+ VirtualFont *vf = dynamic_cast<VirtualFont*>(font);
+ for (int j=0; j < level+1; j++)
+ os << " ";
+ os << "id " << id
+ << " fontnum " << fontnum(id) << " "
+ << (vf ? "VF" : "PF") << " "
+ << font->name()
+ << endl;
+
+ if (vf) {
+ enterVF(vf);
+ const Num2IdMap &num2id = vfnum2id.find(vf)->second;
+ FORALL(num2id, Num2IdMap::const_iterator, i) {
+ Font *font = fonts[i->second];
+ write(os, font, level+1);
+ }
+ leaveVF();
+ }
+ }
+ else {
+ for (int i=0; i < fonts.size(); i++)
+ write(os, fonts[i], level);
+ os << endl;
+ }
+#endif
+ return os;
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontManager.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontManager.h
new file mode 100644
index 00000000000..18966269158
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontManager.h
@@ -0,0 +1,82 @@
+/*************************************************************************
+** FontManager.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef FONTMANAGER_H
+#define FONTMANAGER_H
+
+#include <map>
+#include <ostream>
+#include <set>
+#include <string>
+#include <stack>
+#include <vector>
+#include "types.h"
+
+
+struct FileFinder;
+struct Font;
+class TFM;
+class VirtualFont;
+
+/** This class provides methods for easy DVI font handling.
+ * DVI and VF files use local font numbers to reference fonts. For SVG output
+ * we need a single list with unique IDs of all physical fonts. Characters of
+ * virtual fonts are completely replaced by their DVI description so they don't
+ * appear anywhere in the output. */
+class FontManager
+{
+ typedef std::map<UInt32,int> Num2IdMap;
+ typedef std::map<std::string,int> Name2IdMap;
+ typedef std::map<VirtualFont*,Num2IdMap> VfNum2IdMap;
+ typedef std::map<VirtualFont*, UInt32> VfFirstFontMap;
+ typedef std::stack<VirtualFont*> VfStack;
+
+ public:
+ ~FontManager ();
+ static FontManager& instance ();
+ int registerFont (UInt32 fontnum, std::string fontname, UInt32 checksum, double dsize, double scale);
+ Font* getFont (int n) const;
+ Font* getFont (const std::string &name) const;
+ Font* getFontById (int id) const;
+ VirtualFont* getVF () const;
+ int fontID (int n) const;
+ int fontID (const Font *font) const;
+ int fontID (const std::string &name) const;
+ int fontnum (int id) const;
+ int vfFirstFontNum (VirtualFont *vf) const;
+ void enterVF (VirtualFont *vf);
+ void leaveVF ();
+ void assignVfChar (int c, std::vector<UInt8> *dvi);
+ const std::vector<Font*>& getFonts () const {return _fonts;}
+ std::ostream& write (std::ostream &os, Font *font=0, int level=0);
+
+ protected:
+ FontManager () {}
+
+ private:
+ std::vector<Font*> _fonts; ///< all registered Fonts
+ Num2IdMap _num2id; ///< DVI font number -> fontID
+ Name2IdMap _name2id; ///< fontname -> fontID
+ VfNum2IdMap _vfnum2id;
+ VfStack _vfStack; ///< stack of currently processed virtual fonts
+ VfFirstFontMap _vfFirstFontMap; ///< VF -> local font number of first font defined in VF
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontMap.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontMap.cpp
new file mode 100644
index 00000000000..cd349080d14
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontMap.cpp
@@ -0,0 +1,302 @@
+/*************************************************************************
+** FontMap.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstring>
+#include <fstream>
+#include <iostream>
+#include <limits>
+#include <vector>
+#include "Directory.h"
+#include "FileFinder.h"
+#include "FontManager.h"
+#include "FontMap.h"
+#include "MapLine.h"
+#include "Message.h"
+#include "Subfont.h"
+
+using namespace std;
+
+
+FontMap::~FontMap () {
+ for (Iterator it=_entries.begin(); it != _entries.end(); ++it)
+ delete it->second;
+}
+
+
+/** Returns the singleton instance. */
+FontMap& FontMap::instance() {
+ static FontMap fontmap;
+ return fontmap;
+}
+
+
+/** Reads and evaluates a single font map file.
+ * @param[in] fname name of map file to read
+ * @param[in] mode selects how to integrate the map file entries into the global map tree
+ * @return true if file could be opened */
+bool FontMap::read (const string &fname, FontMap::Mode mode) {
+ ifstream ifs(fname.c_str());
+ if (!ifs)
+ return false;
+
+ int line_number = 1;
+ while (ifs) {
+ if (strchr("\n&#%;*", ifs.peek())) // comment line?
+ ifs.ignore(numeric_limits<int>::max(), '\n');
+ else {
+ try {
+ MapLine mapline(ifs);
+ apply(mapline, mode);
+ }
+ catch (const MapLineException &e) {
+ Message::wstream(true) << fname << ", line " << line_number << ": " << e.what() << '\n';
+ }
+ catch (const SubfontException &e) {
+ Message::wstream(true) << e.filename();
+ if (e.lineno() > 0)
+ Message::wstream(false) << ", line " << e.lineno();
+ Message::wstream(false) << e.what() << '\n';
+ }
+ }
+ line_number++;
+ }
+ return true;
+}
+
+
+bool FontMap::read (const string &fname, char modechar) {
+ Mode mode;
+ switch (modechar) {
+ case '=': mode = FM_REPLACE; break;
+ case '-': mode = FM_REMOVE; break;
+ default : mode = FM_APPEND;
+ }
+ return read(fname, mode);
+}
+
+
+/** Applies a mapline according to the given mode (append, remove, replace).
+ * @param[in] mapline the mapline to be applied
+ * @param[in] mode mode to use
+ * @return true in case of success */
+bool FontMap::apply (const MapLine& mapline, FontMap::Mode mode) {
+ switch (mode) {
+ case FM_APPEND:
+ return append(mapline);
+ case FM_REMOVE:
+ return remove(mapline);
+ default:
+ return replace(mapline);
+ }
+}
+
+
+/** Applies a mapline according to the given mode (append, remove, replace).
+ * @param[in] mapline the mapline to be applied
+ * @param[in] modechar character that denotes the mode (+, -, or =)
+ * @return true in case of success */
+bool FontMap::apply (const MapLine& mapline, char modechar) {
+ Mode mode;
+ switch (modechar) {
+ case '=': mode = FM_REPLACE; break;
+ case '-': mode = FM_REMOVE; break;
+ default : mode = FM_APPEND;
+ }
+ return apply(mapline, mode);
+}
+
+
+/** Reads and evaluates a sequence of map files. Each map file is looked up in the local
+ * directory and the TeX file tree.
+ * @param[in] fname_seq comma-separated list of map file names
+ * @return true if at least one of the given map files was found */
+bool FontMap::read (const string &fname_seq) {
+ bool found = false;
+ size_t left=0;
+ while (left < fname_seq.length()) {
+ const char modechar = fname_seq[left];
+ if (strchr("+-=", modechar))
+ left++;
+ string fname;
+ size_t right = fname_seq.find(',', left);
+ if (right != string::npos)
+ fname = fname_seq.substr(left, right-left);
+ else {
+ fname = fname_seq.substr(left);
+ right = fname_seq.length();
+ }
+ if (!fname.empty()) {
+ if (!read(fname, modechar)) {
+ if (const char *path = FileFinder::lookup(fname, false))
+ found = found || read(path, modechar);
+ else
+ Message::wstream(true) << "map file " << fname << " not found\n";
+ }
+ }
+ left = right+1;
+ }
+ return found;
+}
+
+
+/** Appends given map line data to the font map if there is no entry for the corresponding
+ * font in the map yet.
+ * @param[in] mapline parsed font data
+ * @return true if data has been appended */
+bool FontMap::append (const MapLine &mapline) {
+ bool ret = false;
+ if (!mapline.texname().empty()) {
+ if (!mapline.fontfname().empty() || !mapline.encname().empty()) {
+ vector<Subfont*> subfonts;
+ if (mapline.sfd())
+ mapline.sfd()->subfonts(subfonts);
+ else
+ subfonts.push_back(0);
+ for (size_t i=0; i < subfonts.size(); i++) {
+ string fontname = mapline.texname()+(subfonts[i] ? subfonts[i]->id() : "");
+ Iterator it = _entries.find(fontname);
+ if (it == _entries.end()) {
+ _entries[fontname] = new Entry(mapline, subfonts[i]);
+ ret = true;
+ }
+ }
+ }
+ }
+ return ret;
+}
+
+
+/** Replaces the map data of the given font.
+ * If the font is locked (because it's already in use) nothing happens.
+ * @param[in] mapline parsed font data
+ * @return true if data has been replaced */
+bool FontMap::replace (const MapLine &mapline) {
+ if (mapline.texname().empty())
+ return false;
+ if (mapline.fontfname().empty() && mapline.encname().empty())
+ return remove(mapline);
+
+ vector<Subfont*> subfonts;
+ if (mapline.sfd())
+ mapline.sfd()->subfonts(subfonts);
+ else
+ subfonts.push_back(0);
+ for (size_t i=0; i < subfonts.size(); i++) {
+ string fontname = mapline.texname()+(subfonts[i] ? subfonts[i]->id() : "");
+ Iterator it = _entries.find(fontname);
+ if (it == _entries.end())
+ _entries[fontname] = new Entry(mapline, subfonts[i]);
+ else if (!it->second->locked)
+ *it->second = Entry(mapline, subfonts[i]);
+ }
+ return true;
+}
+
+
+/** Removes the map entry of the given font.
+ * If the font is locked (because it's already in use) nothing happens.
+ * @param[in] mapline parsed font data
+ * @return true if entry has been removed */
+bool FontMap::remove (const MapLine &mapline) {
+ bool ret = false;
+ if (!mapline.texname().empty()) {
+ vector<Subfont*> subfonts;
+ if (mapline.sfd())
+ mapline.sfd()->subfonts(subfonts);
+ else
+ subfonts.push_back(0);
+ for (size_t i=0; i < subfonts.size(); i++) {
+ string fontname = mapline.texname()+(subfonts[i] ? subfonts[i]->id() : "");
+ Iterator it = _entries.find(fontname);
+ if (it != _entries.end() && !it->second->locked) {
+ _entries.erase(it);
+ ret = true;
+ }
+ }
+ }
+ return ret;
+}
+
+
+ostream& FontMap::write (ostream &os) const {
+ for (ConstIterator it=_entries.begin(); it != _entries.end(); ++it)
+ os << it->first << " -> " << it->second->fontname << " [" << it->second->encname << "]\n";
+ return os;
+}
+
+
+/** Reads and evaluates all map files in the given directory.
+ * @param[in] path to directory containing the map files to be read */
+void FontMap::readdir (const string &dirname) {
+ Directory dir(dirname);
+ while (const char *fname = dir.read('f')) {
+ if (strlen(fname) >= 4 && strcmp(fname+strlen(fname)-4, ".map") == 0) {
+ string path = dirname + "/" + fname;
+ read(path.c_str());
+ }
+ }
+}
+
+
+/** Returns name of font that is mapped to a given font.
+ * @param[in] fontname name of font whose mapped name is retrieved
+ * @returns name of mapped font */
+const FontMap::Entry* FontMap::lookup (const string &fontname) const {
+ ConstIterator it = _entries.find(fontname);
+ if (it == _entries.end())
+ return 0;
+ return it->second;
+}
+
+
+/** Sets the lock flag for the given font in order to avoid changing the map data of this font.
+ * @param[in] fontname name of font to be locked */
+void FontMap::lockFont (const string& fontname) {
+ Iterator it = _entries.find(fontname);
+ if (it != _entries.end())
+ it->second->locked = true;
+}
+
+
+/** Removes all (unlocked) entries from the font map.
+ * @param[in] unlocked_only if true, only unlocked entries are removed */
+void FontMap::clear (bool unlocked_only) {
+ if (!unlocked_only)
+ _entries.clear();
+ else {
+ Iterator it=_entries.begin();
+ while (it != _entries.end()) {
+ if (it->second->locked)
+ ++it;
+ else {
+ delete it->second;
+ _entries.erase(it++);
+ }
+ }
+ }
+}
+
+/////////////////////////////////////////////////
+
+FontMap::Entry::Entry (const MapLine &mapline, Subfont *sf)
+ : fontname(mapline.fontfname()), encname(mapline.encname()), subfont(sf), fontindex(mapline.fontindex()), locked(false),
+ bold(mapline.bold()), slant(mapline.slant()), extend(mapline.extend())
+{
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontMap.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontMap.h
new file mode 100644
index 00000000000..b3c1b85a304
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/FontMap.h
@@ -0,0 +1,75 @@
+/*************************************************************************
+** FontMap.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef FONTMAP_H
+#define FONTMAP_H
+
+#include <map>
+#include <ostream>
+#include <string>
+
+class MapLine;
+class Subfont;
+
+class FontMap
+{
+ public:
+ struct Entry
+ {
+ Entry (const MapLine &mapline, Subfont *subfont=0);
+ std::string fontname; ///< target font name
+ std::string encname; ///< name of font encoding
+ Subfont *subfont;
+ int fontindex; ///< index of font in multi-font file
+ bool locked;
+ double bold, slant, extend;
+ };
+
+ protected:
+ typedef std::map<std::string,Entry*>::iterator Iterator;
+ typedef std::map<std::string,Entry*>::const_iterator ConstIterator;
+
+ public:
+ enum Mode {FM_APPEND, FM_REMOVE, FM_REPLACE};
+
+ ~FontMap ();
+ static FontMap& instance ();
+ bool read (const std::string &fname, Mode mode);
+ bool read (const std::string &fname, char modechar);
+ bool read (const std::string &fname_seq);
+ void readdir (const std::string &dirname);
+ bool apply (const MapLine &mapline, Mode mode);
+ bool apply (const MapLine &mapline, char modechar);
+ bool append (const MapLine &mapline);
+ bool replace (const MapLine &mapline);
+ bool remove (const MapLine &mapline);
+ void lockFont (const std::string &fontname);
+ void clear (bool unlocked_only=false);
+ std::ostream& write (std::ostream &os) const;
+ const Entry* lookup(const std::string &fontname) const;
+
+ protected:
+ FontMap () {}
+
+ private:
+ std::map<std::string,Entry*> _entries;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFGlyphTracer.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFGlyphTracer.cpp
new file mode 100644
index 00000000000..c40702e595f
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFGlyphTracer.cpp
@@ -0,0 +1,92 @@
+/*************************************************************************
+** GFGlyphTracer.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include "GFGlyphTracer.h"
+#include "Pair.h"
+
+using namespace std;
+
+GFGlyphTracer::GFGlyphTracer () : GFTracer(_ifs, 0), _glyph(0), _callback(0)
+{
+}
+
+/** Constructs a new glyph tracer.
+ * @param[in] is GF input stream
+ * @param[in] upp target units per TeX point */
+GFGlyphTracer::GFGlyphTracer (string &fname, double upp, Callback *cb)
+ : GFTracer(_ifs, upp), _glyph(0), _callback(cb)
+{
+ if (_callback)
+ _callback->setFont(fname);
+ _ifs.open(fname.c_str(), ios::binary);
+}
+
+
+void GFGlyphTracer::reset (string &fname, double upp) {
+ if (_callback)
+ _callback->setFont(fname);
+ if (_ifs.is_open())
+ _ifs.close();
+ unitsPerPoint(upp);
+ _ifs.open(fname.c_str(), ios::binary);
+}
+
+
+bool GFGlyphTracer::executeChar (UInt8 c) {
+ if (_glyph) {
+ if (_callback)
+ _callback->beginChar(c);
+ bool ok = GFTracer::executeChar(c);
+ if (_callback) {
+ if (ok)
+ _callback->endChar(c);
+ else
+ _callback->emptyChar(c);
+ return ok;
+ }
+ }
+ return false;
+}
+
+
+void GFGlyphTracer::moveTo (double x, double y) {
+ _glyph->moveto(int(x), int(y));
+}
+
+
+void GFGlyphTracer::lineTo (double x, double y) {
+ _glyph->lineto(int(x), int(y));
+}
+
+
+void GFGlyphTracer::curveTo (double c1x, double c1y, double c2x, double c2y, double x, double y) {
+ _glyph->cubicto(int(c1x), int(c1y), int(c2x), int(c2y), int(x), int(y));
+}
+
+
+void GFGlyphTracer::closePath () {
+ _glyph->closepath();
+}
+
+
+void GFGlyphTracer::endChar (UInt32 c) {
+ _glyph->newpath();
+ GFTracer::endChar(c);
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFGlyphTracer.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFGlyphTracer.h
new file mode 100644
index 00000000000..379ed1d98c8
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFGlyphTracer.h
@@ -0,0 +1,60 @@
+/*************************************************************************
+** GFGlyphTracer.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef GFGLYPHTRACER_H
+#define GFGLYPHTRACER_H
+
+#include <fstream>
+#include <string>
+#include "GFTracer.h"
+#include "Glyph.h"
+
+class GFGlyphTracer : public GFTracer
+{
+ public:
+ struct Callback {
+ virtual ~Callback () {}
+ virtual void setFont (const std::string &fontname) {}
+ virtual void beginChar (UInt8 c) {}
+ virtual void endChar (UInt8 c) {}
+ virtual void emptyChar (UInt8 c) {}
+ };
+
+ public:
+ GFGlyphTracer ();
+ GFGlyphTracer (std::string &fname, double upp, Callback *cb=0);
+ void reset (std::string &fname, double upp);
+ void setCallback (Callback *cb) {_callback = cb;}
+ bool executeChar (UInt8 c);
+ void moveTo (double x, double y);
+ void lineTo (double x, double y);
+ void curveTo (double c1x, double c1y, double c2x, double c2y, double x, double y);
+ void closePath ();
+ void endChar (UInt32 c);
+ void setGlyph (Glyph &glyph) {_glyph = &glyph;}
+ const Glyph& getGlyph () const {return *_glyph;}
+
+ private:
+ std::ifstream _ifs;
+ Glyph *_glyph;
+ Callback *_callback;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFReader.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFReader.cpp
new file mode 100644
index 00000000000..1bb6c426549
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFReader.cpp
@@ -0,0 +1,352 @@
+/*************************************************************************
+** GFReader.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <iostream>
+#include <sstream>
+#include "GFReader.h"
+#include "macros.h"
+#include "SignalHandler.h"
+
+using namespace std;
+
+struct GFCommand
+{
+ void (GFReader::*method)(int);
+ int numBytes;
+};
+
+
+static inline double fix2double (Int32 fix) {
+ return double(fix)/(1 << 20);
+}
+
+
+static inline double scaled2double (Int32 scaled) {
+ return double(scaled)/(1 << 16);
+}
+
+
+GFReader::GFReader (istream &is) : _in(is), _penDown(false)
+{
+ _minX = _maxX = _minY = _maxY = _x = _y = 0;
+}
+
+
+UInt32 GFReader::readUnsigned (int bytes) {
+ UInt32 ret = 0;
+ for (int i=bytes-1; i >= 0 && !_in.eof(); i--) {
+ UInt32 b = _in.get();
+ ret |= b << (8*i);
+ }
+ return ret;
+}
+
+
+Int32 GFReader::readSigned (int bytes) {
+ Int32 ret = _in.get();
+ if (ret & 128) // negative value?
+ ret |= 0xffffff00;
+ for (int i=bytes-2; i >= 0 && !_in.eof(); i--)
+ ret = (ret << 8) | _in.get();
+ return ret;
+}
+
+
+string GFReader::readString (int bytes) {
+ vector<char> buf(bytes+1);
+ if (bytes > 0)
+ _in.get(&buf[0], bytes+1); // reads 'bytes' bytes (pos. bytes+1 is set to 0)
+ else
+ buf[0] = 0;
+ return &buf[0];
+}
+
+
+/** Reads a single GF command from the current position of the input stream and calls the
+ * corresponding cmdFOO method.
+ * @return opcode of the executed command */
+int GFReader::executeCommand () {
+ SignalHandler::instance().check();
+ /* Each cmdFOO command reads the necessary number of bytes from the stream so executeCommand
+ doesn't need to know the exact GF command format. Some cmdFOO methods are used for multiple
+ GF commands because they only differ in the size of their parameters. */
+ static const GFCommand commands[] = {
+ {&GFReader::cmdPaint, 1}, {&GFReader::cmdPaint, 2}, {&GFReader::cmdPaint, 3}, // 64-66
+ {&GFReader::cmdBoc, 0}, {&GFReader::cmdBoc1, 0}, // 67-68
+ {&GFReader::cmdEoc, 0}, // 69
+ {&GFReader::cmdSkip, 0}, {&GFReader::cmdSkip, 1}, {&GFReader::cmdSkip, 2},{&GFReader::cmdSkip, 3}, // 70-73
+ {&GFReader::cmdXXX, 1}, {&GFReader::cmdXXX, 2}, {&GFReader::cmdXXX, 3}, {&GFReader::cmdXXX, 4}, // 239-242
+ {&GFReader::cmdYYY, 0}, // 243
+ {&GFReader::cmdNop, 0}, // 244
+ {&GFReader::cmdCharLoc, 0}, {&GFReader::cmdCharLoc0, 0}, // 245-246
+ {&GFReader::cmdPre, 0}, {&GFReader::cmdPost, 0}, {&GFReader::cmdPostPost, 0} // 247-249
+ };
+
+ int opcode = _in.get();
+ if (opcode < 0) // at end of file?
+ throw GFException("unexpected end of file");
+
+ if (opcode >= 0 && opcode <= 63)
+ cmdPaint0(opcode);
+ else if (opcode >= 74 && opcode <= 238)
+ cmdNewRow(opcode-74);
+ else if (opcode >= 250) {
+ ostringstream oss;
+ oss << "undefined GF command (opcode " << opcode << ")";
+ throw GFException(oss.str());
+ }
+ else {
+ int offset = opcode <= 73 ? 64 : 239-(73-64+1);
+ const GFCommand &cmd = commands[opcode-offset];
+ if (cmd.method)
+ (this->*cmd.method)(cmd.numBytes);
+ }
+ return opcode;
+}
+
+
+bool GFReader::executeChar (UInt8 c) {
+ _in.clear();
+ if (_charInfoMap.empty())
+ executePostamble(); // read character info
+ _in.clear();
+ Iterator it = _charInfoMap.find(c);
+ if (_in && it != _charInfoMap.end()) {
+ _in.seekg(it->second.location, ios_base::beg);
+ while (executeCommand() != 69); // execute all commands until eoc is reached
+ return true;
+ }
+ return false;
+}
+
+
+bool GFReader::executeAllChars () {
+ _in.clear();
+ if (_charInfoMap.empty())
+ executePostamble(); // read character info
+ _in.clear();
+ if (_in) {
+ _in.seekg(0);
+ while (executeCommand() != 248); // execute all commands until postamble is reached
+ return true;
+ }
+ return false;
+}
+
+
+bool GFReader::executePostamble () {
+ _in.clear();
+ if (!_in)
+ return false;
+ _in.seekg(-1, ios_base::end);
+ while (_in.peek() == 223) // skip fill bytes
+ _in.seekg(-1, ios_base::cur);
+ _in.seekg(-4, ios_base::cur);
+ UInt32 q = readUnsigned(4); // pointer to begin of postamble
+ _in.seekg(q, ios_base::beg); // now on begin of postamble
+ while (executeCommand() != 249); // execute all commands until postpost is reached
+ return true;
+}
+
+
+/** Returns the design size of this font int TeX point units. */
+double GFReader::getDesignSize () const {
+ return fix2double(_designSize);
+}
+
+/** Returns the number of horizontal pixels per point. */
+double GFReader::getHPixelsPerPoint () const {
+ return scaled2double(_hppp);
+}
+
+/** Returns the number of vertical pixels per point. */
+double GFReader::getVPixelsPerPoint () const {
+ return scaled2double(_vppp);
+}
+
+/** Returns the width of character c in TeX point units */
+double GFReader::getCharWidth (UInt32 c) const {
+ ConstIterator it = _charInfoMap.find(c%256);
+ return it == _charInfoMap.end() ? 0 : it->second.width*getDesignSize()/(1<<24);
+}
+
+///////////////////////
+
+
+/** Reads the preamble. */
+void GFReader::cmdPre (int) {
+ UInt32 i = readUnsigned(1);
+ if (i == 131) {
+ UInt32 k = readUnsigned(1);
+ string s = readString(k);
+ preamble(s);
+ }
+ else
+ throw GFException("invalid identification number in GF preamble");
+}
+
+
+/** Reads the postamble. */
+void GFReader::cmdPost (int) {
+ readUnsigned(4); // pointer to byte after final eoc
+ _designSize = readUnsigned(4); // design size of font in points
+ _checksum = readUnsigned(4); // checksum
+ _hppp = readUnsigned(4); // horizontal pixels per point (scaled int)
+ _vppp = readUnsigned(4); // vertical pixels per point (scaled int)
+ _in.seekg(16, ios_base::cur); // skip x and y bounds
+ postamble();
+}
+
+
+/** Reads trailing bytes at end of stream. */
+void GFReader::cmdPostPost (int) {
+ readUnsigned(4); // pointer to begin of postamble
+ UInt32 i = readUnsigned(1);
+ if (i == 131)
+ while (readUnsigned(1) == 223); // skip fill bytes
+ else
+ throw GFException("invalid identification number in GF preamble");
+}
+
+
+/** Inverts "paint color" (black to white or vice versa) of n pixels
+ * and advances the cursor by n.
+ * @param[in] n number of pixels to be inverted */
+void GFReader::cmdPaint0 (int n) {
+ if (_penDown) // set pixels?
+ _bitmap.setBits(_y, _x, n);
+ _x += n;
+ _penDown = !_penDown; // inverse pen state
+}
+
+
+/** Inverts "paint color" (black to white or vice versa) of n pixels
+ * and advances the cursor by n. The number n of pixels is read from
+ * the input stream.
+ * @param[in] len size of n in bytes */
+void GFReader::cmdPaint (int len) {
+ UInt32 pixels = readUnsigned(len);
+ cmdPaint0(pixels);
+}
+
+
+/** Beginning of character (generic format). */
+void GFReader::cmdBoc (int) {
+ _currentChar = readSigned(4);
+ readSigned(4); // pointer to previous boc with same c mod 256
+ _minX = readSigned(4);
+ _maxX = readSigned(4);
+ _minY = readSigned(4);
+ _maxY = readSigned(4);
+ _x = _minX;
+ _y = _maxY;
+ _penDown = false;
+ _bitmap.resize(_minX, _maxX, _minY, _maxY);
+ beginChar(_currentChar);
+}
+
+
+/** Beginning of character (compact format). */
+void GFReader::cmdBoc1 (int) {
+ _currentChar = readUnsigned(1);
+ UInt32 dx = readUnsigned(1);
+ _maxX = readUnsigned(1);
+ _minX = _maxX - dx;
+ UInt32 dy = readUnsigned(1);
+ _maxY = readUnsigned(1);
+ _minY = _maxY - dy;
+ _x = _minX;
+ _y = _maxY;
+ _penDown = false;
+ _bitmap.resize(_minX, _maxX, _minY, _maxY);
+ beginChar(_currentChar);
+}
+
+
+/** End of character. */
+void GFReader::cmdEoc (int) {
+ endChar(_currentChar);
+}
+
+
+/** Moves cursor to the beginning of a following row and sets
+ * paint color to white.
+ * @param[in] len if 0: move to next row, otherwise: number of bytes to read.
+ * The read value denotes the number of rows to be skipped. */
+void GFReader::cmdSkip (int len) {
+ if (len == 0)
+ _y--;
+ else
+ _y -= readUnsigned(len)+1;
+ _x = _minX;
+ _penDown = false;
+}
+
+
+/** Moves cursor to pixel number 'col' in the next row and sets
+ * the paint color to black.
+ * @param[in] col pixel/column number */
+void GFReader::cmdNewRow (int col) {
+ _x = _minX + col ;
+ _y--;
+ _penDown = true;
+}
+
+
+void GFReader::cmdXXX (int len) {
+ UInt32 n = readUnsigned(len);
+ string str = readString(n);
+ special(str);
+}
+
+
+void GFReader::cmdYYY (int) {
+ Int32 y = readSigned(4);
+ numspecial(y);
+}
+
+
+/** Does nothing. */
+void GFReader::cmdNop (int) {
+}
+
+
+/** Reads character locator (part of postamble) */
+void GFReader::cmdCharLoc0 (int) {
+ UInt8 c = readUnsigned(1); // character code mod 256
+ UInt8 dm = readUnsigned(1); //
+ Int32 w = readSigned(4); // (1<<24)*characterWidth/designSize
+ Int32 p = readSigned(4); // pointer to begin of (last) character data
+ Int32 dx = 65536*dm;
+ Int32 dy = 0;
+ _charInfoMap[c] = CharInfo(dx, dy, w, p);
+}
+
+
+/** Reads character locator (part of postamble) */
+void GFReader::cmdCharLoc (int) {
+ UInt32 c = readUnsigned(1); // character code mod 256
+ Int32 dx = readSigned(4); // horizontal escapement (scaled pixel units)
+ Int32 dy = readSigned(4); // vertical escapement (scaled pixel units)
+ Int32 w = readSigned(4); // (1<<24)*characterWidth/designSize
+ Int32 p = readSigned(4); // pointer to begin of (last) character data
+ _charInfoMap[c] = CharInfo(dx, dy, w, p);
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFReader.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFReader.h
new file mode 100644
index 00000000000..0d9a7bb0e32
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFReader.h
@@ -0,0 +1,110 @@
+/*************************************************************************
+** GFReader.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef GFREADER_H
+#define GFREADER_H
+
+#include <istream>
+#include <map>
+#include <string>
+#include "Bitmap.h"
+#include "MessageException.h"
+#include "types.h"
+
+
+class CharInfo;
+
+
+struct GFException : public MessageException
+{
+ GFException (const std::string &msg) : MessageException(msg) {}
+};
+
+
+class GFReader
+{
+ struct CharInfo
+ {
+ CharInfo () : dx(0), dy(0), width(0), location(0) {}
+ CharInfo (Int32 dxx, Int32 dyy, Int32 w, UInt32 p) : dx(dxx), dy(dyy), width(w), location(p) {}
+
+ Int32 dx, dy;
+ Int32 width; // 2^24 * (true width)/(design size)
+ UInt32 location;
+ };
+
+ typedef std::map<UInt8,CharInfo>::iterator Iterator;
+ typedef std::map<UInt8,CharInfo>::const_iterator ConstIterator;
+ public:
+ GFReader (std::istream &is);
+ virtual ~GFReader () {}
+ bool executeChar (UInt8 c);
+ bool executeAllChars ();
+ bool executePostamble ();
+ virtual void preamble (const std::string &str) {}
+ virtual void postamble () {}
+ virtual void beginChar (UInt32 c) {}
+ virtual void endChar (UInt32 c) {}
+ virtual void special (std::string str) {}
+ virtual void numspecial (Int32 y) {}
+ const Bitmap& getBitmap () const {return _bitmap;}
+ double getDesignSize () const;
+ double getHPixelsPerPoint () const;
+ double getVPixelsPerPoint () const;
+ double getCharWidth (UInt32 c) const;
+ UInt32 getChecksum () const {return _checksum;}
+
+ protected:
+ Int32 readSigned (int bytes);
+ UInt32 readUnsigned (int bytes);
+ std::string readString (int len);
+ int executeCommand ();
+ std::istream& getInputStream () const {return _in;}
+
+ void cmdPre (int);
+ void cmdPost (int);
+ void cmdPostPost (int);
+ void cmdPaint0 (int pixels);
+ void cmdPaint (int len);
+ void cmdBoc (int);
+ void cmdBoc1 (int);
+ void cmdEoc (int);
+ void cmdSkip (int len);
+ void cmdNewRow (int col);
+ void cmdXXX (int len);
+ void cmdYYY (int);
+ void cmdNop (int);
+ void cmdCharLoc0 (int);
+ void cmdCharLoc (int);
+
+ private:
+ std::istream &_in;
+ Int32 _minX, _maxX, _minY, _maxY;
+ Int32 _x, _y; // current pen location (pixel units)
+ Int32 _currentChar;
+ Bitmap _bitmap; // bitmap of current char
+ FixWord _designSize; // designSize
+ ScaledInt _hppp, _vppp; // horizontal and vertical pixel per point
+ UInt32 _checksum;
+ std::map<UInt8,CharInfo> _charInfoMap;
+ bool _penDown;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFTracer.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFTracer.cpp
new file mode 100644
index 00000000000..69a078456a0
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFTracer.cpp
@@ -0,0 +1,102 @@
+/*************************************************************************
+** GFTracer.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <iostream>
+#include <fstream>
+#include <sstream>
+#include "GFTracer.h"
+#include "Glyph.h"
+#include "Message.h"
+
+#ifdef __MSVC__
+#include <potracelib.h>
+#else
+extern "C" {
+#include <potracelib.h>
+}
+#endif
+
+using namespace std;
+
+
+GFTracer::GFTracer (istream &is)
+ : GFReader(is), _unitsPerPoint(0.0)
+{
+}
+
+
+/** Constructs a new GFTracer.
+ * @param[in] is GF file is read from this stream
+ * @param[in] upp target units per TeX point */
+GFTracer::GFTracer (istream &is, double upp)
+ : GFReader(is), _unitsPerPoint(upp)
+{
+}
+
+
+void GFTracer::beginChar (UInt32 c) {
+}
+
+
+void GFTracer::endChar (UInt32 c) {
+ const Bitmap &bitmap = getBitmap();
+ if (bitmap.empty())
+ return;
+
+ // prepare potrace's bitmap structure
+ vector<potrace_word> buffer;
+ potrace_bitmap_t pobitmap;
+ pobitmap.w = bitmap.width();
+ pobitmap.h = bitmap.height();
+ pobitmap.dy = bitmap.copy(buffer);
+ pobitmap.map = &buffer[0];
+ potrace_param_t *param = potrace_param_default();
+ potrace_state_t *state = potrace_trace(param, &pobitmap);
+ potrace_param_free(param);
+
+ if (!state || state->status == POTRACE_STATUS_INCOMPLETE)
+ Message::wstream(true) << "error while tracing character\n";
+ else {
+ double hsf=1.0, vsf=1.0; // horizontal a d vertical scale factor
+ if (_unitsPerPoint != 0.0) {
+ hsf = _unitsPerPoint/getHPixelsPerPoint(); // horizontal scale factor
+ vsf = _unitsPerPoint/getVPixelsPerPoint(); // vertical scale factor
+ }
+ for (potrace_path_t *path = state->plist; path; path = path->next) {
+ potrace_dpoint_t &p = path->curve.c[path->curve.n-1][2]; // start/end point
+ moveTo(hsf*(p.x+bitmap.xshift()), vsf*(p.y+bitmap.yshift()));
+ for (int i=0; i < path->curve.n; i++) {
+ if (path->curve.tag[i] == POTRACE_CURVETO) {
+ curveTo(hsf*(path->curve.c[i][0].x+bitmap.xshift()), vsf*(path->curve.c[i][0].y+bitmap.yshift()),
+ hsf*(path->curve.c[i][1].x+bitmap.xshift()), vsf*(path->curve.c[i][1].y+bitmap.yshift()),
+ hsf*(path->curve.c[i][2].x+bitmap.xshift()), vsf*(path->curve.c[i][2].y+bitmap.yshift()));
+ }
+ else {
+ lineTo(hsf*(path->curve.c[i][1].x+bitmap.xshift()), vsf*(path->curve.c[i][1].y+bitmap.yshift()));
+ if (i == path->curve.n-1)
+ closePath();
+ else
+ lineTo(hsf*(path->curve.c[i][2].x+bitmap.xshift()), vsf*(path->curve.c[i][2].y+bitmap.yshift()));
+ }
+ }
+ }
+ }
+ potrace_state_free(state);
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFTracer.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFTracer.h
new file mode 100644
index 00000000000..ba15961db65
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GFTracer.h
@@ -0,0 +1,47 @@
+/*************************************************************************
+** GFTracer.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef GFTRACER_H
+#define GFTRACER_H
+
+#include <istream>
+#include "GFReader.h"
+
+class GFTracer : public GFReader
+{
+ public:
+ GFTracer (std::istream &is);
+ GFTracer (std::istream &is, double upp);
+ virtual ~GFTracer () {}
+ virtual void moveTo (double x, double y) {}
+ virtual void lineTo (double x, double y) {}
+ virtual void curveTo (double c1x, double c1y, double c2x, double c2y, double x, double y) {}
+ virtual void closePath () {}
+ void beginChar (UInt32 c);
+ void endChar (UInt32 c);
+
+ protected:
+ void unitsPerPoint(double upp) {_unitsPerPoint = upp;}
+
+ private:
+ double _unitsPerPoint; ///< target units per TeX point
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Ghostscript.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Ghostscript.cpp
new file mode 100644
index 00000000000..7da863cbc82
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Ghostscript.cpp
@@ -0,0 +1,269 @@
+/*************************************************************************
+** Ghostscript.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include "Ghostscript.h"
+#if !defined(DISABLE_GS)
+
+#include <cstring>
+#include <iomanip>
+#include <sstream>
+
+#if defined(HAVE_LIBGS)
+ #include <ghostscript/ierrors.h>
+#else
+ #include "ierrors.h"
+#endif
+
+using namespace std;
+
+// default name of dynamic/shared Ghostscript library
+#if defined(__WIN64__)
+ #define GS_DL_NAME "gsdll64.dll"
+#elif defined(__WIN32__)
+ #define GS_DL_NAME "gsdll32.dll"
+#else
+ #define GS_DL_NAME "libgs.so"
+#endif
+
+
+string Ghostscript::LIBGS_NAME;
+
+
+/** Loads the Ghostscript library but does not create an instance. This
+ * constructor should only be used to call available() and revision(). */
+Ghostscript::Ghostscript ()
+#if !defined(HAVE_LIBGS)
+ : DLLoader(LIBGS_NAME.empty() ? GS_DL_NAME : LIBGS_NAME.c_str())
+#endif
+{
+ _inst = 0;
+}
+
+
+/** Tries to load the shared library and to initialize Ghostscript.
+ * @param[in] argc number of parameters in array argv
+ * @param[in] argv parameters passed to Ghostscript
+ * @param[in] caller this parameter is passed to all callback functions */
+Ghostscript::Ghostscript (int argc, const char **argv, void *caller)
+#if !defined(HAVE_LIBGS)
+ : DLLoader(LIBGS_NAME.empty() ? GS_DL_NAME : LIBGS_NAME.c_str())
+#endif
+{
+ _inst = 0;
+ init(argc, argv, caller);
+}
+
+
+/** Exits Ghostscript and unloads the dynamic library. */
+Ghostscript::~Ghostscript () {
+ if (_inst) {
+ exit();
+ delete_instance();
+ }
+}
+
+
+bool Ghostscript::init (int argc, const char **argv, void *caller) {
+ if (!_inst) {
+ int status = new_instance(&_inst, caller);
+ if (status < 0)
+ _inst = 0;
+ else {
+ init_with_args(argc, (char**)argv);
+ }
+ }
+ return _inst != 0;
+}
+
+
+/** Returns true if Ghostscript library was found and can be loaded. */
+bool Ghostscript::available () {
+#if defined(HAVE_LIBGS)
+ return true;
+#else
+ return loaded();
+#endif
+}
+
+
+/** Retrieves version information about Ghostscript.
+ * @param[out] r takes the revision information (see GS API documentation for further details)
+ * @return true on success */
+bool Ghostscript::revision (gsapi_revision_t *r) {
+#if defined(HAVE_LIBGS)
+ return (gsapi_revision(r, sizeof(gsapi_revision_t)) == 0);
+#else
+ if (PFN_gsapi_revision fn = (PFN_gsapi_revision)loadSymbol("gsapi_revision"))
+ return (fn(r, sizeof(gsapi_revision_t)) == 0);
+ return false;
+#endif
+}
+
+
+/** Returns product name and revision number of the GS library.
+ * @param[in] revonly if true, only the revision number is returned */
+string Ghostscript::revision (bool revonly) {
+ gsapi_revision_t r;
+ if (revision(&r)) {
+ ostringstream oss;
+ if (!revonly)
+ oss << r.product << ' ';
+ oss << (r.revision/100) << '.' << setfill('0') << setw(2) << (r.revision%100);
+ return oss.str();
+ }
+ return "";
+}
+
+
+/** Creates a new instance of Ghostscript. This method is called by the constructor and
+ * should not be used elsewhere.
+ * @param[out] psinst handle of newly created instance (or 0 on error)
+ * @param[in] caller pointer forwarded to callback functions */
+int Ghostscript::new_instance (void **psinst, void *caller) {
+#if defined(HAVE_LIBGS)
+ return gsapi_new_instance(psinst, caller);
+#else
+ if (PFN_gsapi_new_instance fn = (PFN_gsapi_new_instance)loadSymbol("gsapi_new_instance"))
+ return fn(psinst, caller);
+ *psinst = 0;
+ return 0;
+#endif
+}
+
+
+/** Destroys the current instance of Ghostscript. This method is called by the destructor
+ * and should not be used elsewhere. */
+void Ghostscript::delete_instance () {
+#if defined(HAVE_LIBGS)
+ gsapi_delete_instance(_inst);
+#else
+ if (PFN_gsapi_delete_instance fn = (PFN_gsapi_delete_instance)loadSymbol("gsapi_delete_instance"))
+ fn(_inst);
+#endif
+}
+
+
+/** Exits the interpreter. Must be called before destroying the GS instance. */
+int Ghostscript::exit () {
+#if defined(HAVE_LIBGS)
+ return gsapi_exit(_inst);
+#else
+ if (PFN_gsapi_exit fn = (PFN_gsapi_exit)loadSymbol("gsapi_exit"))
+ return fn(_inst);
+ return 0;
+#endif
+}
+
+
+/** Sets the I/O callback functions.
+ * @param[in] in pointer to stdin handler
+ * @param[in] out pointer to stdout handler
+ * @param[in] err pointer to stderr handler */
+int Ghostscript::set_stdio (Stdin in, Stdout out, Stderr err) {
+#if defined(HAVE_LIBGS)
+ return gsapi_set_stdio(_inst, in, out, err);
+#else
+ if (PFN_gsapi_set_stdio fn = (PFN_gsapi_set_stdio)loadSymbol("gsapi_set_stdio"))
+ return fn(_inst, in, out, err);
+ return 0;
+#endif
+}
+
+
+/** Initializes Ghostscript with a set of optional parameters. This
+ * method is called by the constructor and should not be used elsewhere.
+ * @param[in] argc number of paramters
+ * @param[in] argv parameters passed to Ghostscript */
+int Ghostscript::init_with_args (int argc, char **argv) {
+#if defined(HAVE_LIBGS)
+ return gsapi_init_with_args(_inst, argc, argv);
+#else
+ if (PFN_gsapi_init_with_args fn = (PFN_gsapi_init_with_args)loadSymbol("gsapi_init_with_args"))
+ return fn(_inst, argc, argv);
+ return 0;
+#endif
+}
+
+
+/** Tells Ghostscript that several calls of run_string_continue will follow. */
+int Ghostscript::run_string_begin (int user_errors, int *pexit_code) {
+#if defined(HAVE_LIBGS)
+ return gsapi_run_string_begin(_inst, user_errors, pexit_code);
+#else
+ if (PFN_gsapi_run_string_begin fn = (PFN_gsapi_run_string_begin)loadSymbol("gsapi_run_string_begin"))
+ return fn(_inst, user_errors, pexit_code);
+ *pexit_code = 0;
+ return 0;
+#endif
+}
+
+
+/** Executes a chunk of PostScript commands given by a buffer of characters. The size of
+ * this buffer must not exceed 64KB. Longer programs can be split into arbitrary smaller chunks
+ * and passed to Ghostscript by successive calls of run_string_continue.
+ * @param[in] str buffer containing the PostScript code
+ * @param[in] length number of characters in buffer
+ * @param[in] user_errors if non-negative, the default PS error values will be generated, otherwise this value is returned
+ * @param[out] pexit_code takes the PS error code */
+int Ghostscript::run_string_continue (const char *str, unsigned length, int user_errors, int *pexit_code) {
+#if defined(HAVE_LIBGS)
+ return gsapi_run_string_continue(_inst, str, length, user_errors, pexit_code);
+#else
+ if (PFN_gsapi_run_string_continue fn = (PFN_gsapi_run_string_continue)loadSymbol("gsapi_run_string_continue"))
+ return fn(_inst, str, length, user_errors, pexit_code);
+ *pexit_code = 0;
+ return 0;
+#endif
+}
+
+
+/** Terminates the successive code feeding. Must be called after the last call of run_string_continue. */
+int Ghostscript::run_string_end (int user_errors, int *pexit_code) {
+#if defined(HAVE_LIBGS)
+ return gsapi_run_string_end(_inst, user_errors, pexit_code);
+#else
+ if (PFN_gsapi_run_string_end fn = (PFN_gsapi_run_string_end)loadSymbol("gsapi_run_string_end"))
+ return fn(_inst, user_errors, pexit_code);
+ *pexit_code = 0;
+ return 0;
+#endif
+}
+
+
+const char* Ghostscript::error_name (int code) {
+ if (code < 0)
+ code = -code;
+ const char *error_names[] = { ERROR_NAMES };
+ if (code == 0 || (size_t)code > sizeof(error_names)/sizeof(error_names[0]))
+ return 0;
+#if defined(HAVE_LIBGS)
+ // use array defined in libgs to avoid linking the error strings into the binary
+ return gs_error_names[code-1];
+#elif defined(__WIN32__)
+ // gs_error_names is private in the Ghostscript DLL so we can't access it here
+ return error_names[code-1];
+#else
+ if (const char **error_names = (const char**)loadSymbol("gs_error_names"))
+ return error_names[code-1];
+ return 0;
+#endif
+}
+
+#endif // !DISABLE_GS
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Ghostscript.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Ghostscript.h
new file mode 100644
index 00000000000..ccfd5b0b0f4
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Ghostscript.h
@@ -0,0 +1,104 @@
+/*************************************************************************
+** Ghostscript.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef GHOSTSCRIPT_H
+#define GHOSTSCRIPT_H
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <string>
+
+#if defined(DISABLE_GS)
+ #include "iapi.h"
+#elif defined(HAVE_LIBGS)
+ #include <ghostscript/iapi.h>
+#else
+ #include "DLLoader.h"
+ #include "iapi.h"
+#endif
+
+#if defined(__WIN32__) && !defined(_Windows)
+ #define _Windows
+#endif
+
+#if defined(DISABLE_GS)
+struct Ghostscript
+{
+ typedef int (GSDLLCALLPTR Stdin) (void *caller, char *buf, int len);
+ typedef int (GSDLLCALLPTR Stdout) (void *caller, const char *str, int len);
+ typedef int (GSDLLCALLPTR Stderr) (void *caller, const char *str, int len);
+
+ Ghostscript () {}
+ Ghostscript (int argc, const char **argv, void *caller=0) {}
+ bool available () {return false;}
+ bool revision (gsapi_revision_t *r) {return false;}
+ std::string revision (bool revonly=false) {return "";}
+ int set_stdio (Stdin in, Stdout out, Stderr err) {return 0;}
+ int run_string_begin (int user_errors, int *pexit_code) {return 0;}
+ int run_string_continue (const char *str, unsigned int length, int user_errors, int *pexit_code) {return 0;}
+ int run_string_end (int user_errors, int *pexit_code) {return 0;}
+ int exit () {return 0;}
+};
+
+#else
+
+/** Wrapper class of (a subset of) the Ghostscript API. */
+class Ghostscript
+#if !defined(HAVE_LIBGS)
+: public DLLoader
+#endif
+{
+ public:
+ typedef int (GSDLLCALLPTR Stdin) (void *caller, char *buf, int len);
+ typedef int (GSDLLCALLPTR Stdout) (void *caller, const char *str, int len);
+ typedef int (GSDLLCALLPTR Stderr) (void *caller, const char *str, int len);
+
+ public:
+ Ghostscript ();
+ Ghostscript (int argc, const char **argv, void *caller=0);
+ ~Ghostscript ();
+ bool init (int argc, const char **argv, void *caller=0);
+ bool available ();
+ bool revision (gsapi_revision_t *r);
+ std::string revision (bool revonly=false);
+ int set_stdio (Stdin in, Stdout out, Stderr err);
+ int run_string_begin (int user_errors, int *pexit_code);
+ int run_string_continue (const char *str, unsigned int length, int user_errors, int *pexit_code);
+ int run_string_end (int user_errors, int *pexit_code);
+ int exit ();
+ const char* error_name (int code);
+
+ static std::string LIBGS_NAME;
+
+ protected:
+ Ghostscript (const Ghostscript &gs) {}
+ int init_with_args (int argc, char **argv);
+ int new_instance (void **psinst, void *caller);
+ void delete_instance ();
+
+ private:
+ void *_inst; ///< Ghostscript handle needed to call the gsapi_foo functions
+};
+
+#endif // DISABLE_GS
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Glyph.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Glyph.h
new file mode 100644
index 00000000000..b598dc5002d
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Glyph.h
@@ -0,0 +1,28 @@
+/*************************************************************************
+** Glyph.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef GLYPH_H
+#define GLYPH_H
+
+#include "GraphicPath.h"
+
+typedef GraphicPath<Int32> Glyph;
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GlyphTracerMessages.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GlyphTracerMessages.h
new file mode 100644
index 00000000000..2b0cedcd8b6
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GlyphTracerMessages.h
@@ -0,0 +1,65 @@
+/*************************************************************************
+** GlyphTracerMessages.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef GLYPHTRACERMESSAGES_H
+#define GLYPHTRACERMESSAGES_H
+
+#include <sstream>
+#include "GFGlyphTracer.h"
+#include "Message.h"
+#include "types.h"
+
+class GlyphTracerMessages : public GFGlyphTracer::Callback
+{
+ public:
+ GlyphTracerMessages (bool sfmsg=true, bool autonl=true) : _sfmsg(sfmsg), _autonl(autonl) {}
+
+ ~GlyphTracerMessages () {
+ if (_autonl)
+ Message::mstream() << '\n';
+ }
+
+ void endChar (UInt8 c) {
+ std::ostringstream oss;
+ oss << '[';
+ if (isprint(c))
+ oss << c;
+ else
+ oss << '#' << unsigned(c);
+ oss << ']';
+ Message::mstream(false, Message::MC_TRACING) << oss.str();
+ }
+
+ void setFont (const std::string &fname) {
+ if (_sfmsg && fname != _fname) {
+ if (!_fname.empty())
+ Message::mstream() << '\n';
+ Message::mstream(false, Message::MC_STATE) << "tracing glyphs of " << fname.substr(0, fname.length()-3) << '\n';
+ _fname = fname;
+ }
+ }
+
+ private:
+ std::string _fname;
+ bool _sfmsg, _autonl;
+};
+
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GraphicPath.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GraphicPath.h
new file mode 100644
index 00000000000..46a3b0cc335
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/GraphicPath.h
@@ -0,0 +1,340 @@
+/*************************************************************************
+** GraphicPath.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef GRAPHICPATH_H
+#define GRAPHICPATH_H
+
+#include <list>
+#include <ostream>
+#include <vector>
+#include "BoundingBox.h"
+#include "Matrix.h"
+#include "Pair.h"
+#include "XMLString.h"
+
+
+template <typename T>
+class GraphicPath
+{
+ public:
+ typedef Pair<T> Point;
+
+ struct Command {
+ enum Type {MOVETO, LINETO, CONICTO, CUBICTO, CLOSEPATH};
+
+ Command (Type t) : type(t) {}
+
+ Command (Type t, const Point &p) : type(t) {
+ params[0] = p;
+ }
+
+ Command (Type t, const Point &p1, const Point &p2) : type(t) {
+ params[0] = p1;
+ params[1] = p2;
+ }
+
+ Command (Type t, const Point &p1, const Point &p2, const Point &p3) : type(t) {
+ params[0] = p1;
+ params[1] = p2;
+ params[2] = p3;
+ }
+
+ int numParams () const {
+ switch (type) {
+ case CLOSEPATH : return 0;
+ case MOVETO :
+ case LINETO : return 1;
+ case CONICTO : return 2;
+ case CUBICTO : return 3;
+ }
+ return 0;
+ }
+
+ void transform (const Matrix &matrix) {
+ for (int i=0; i < numParams(); i++)
+ params[i] = matrix * params[i];
+ }
+
+ Type type;
+ Point params[3];
+ };
+
+ struct Actions
+ {
+ virtual ~Actions () {}
+ virtual void moveto (const Point &p) {}
+ virtual void lineto (const Point &p) {}
+ virtual void hlineto (const T &y) {}
+ virtual void vlineto (const T &x) {}
+ virtual void sconicto (const Point &p) {}
+ virtual void conicto (const Point &p1, const Point &p2) {}
+ virtual void scubicto (const Point &p1, const Point &p2) {}
+ virtual void cubicto (const Point &p1, const Point &p2, const Point &p3) {}
+ virtual void closepath () {}
+ virtual void draw (char cmd, const Point *points, int n) {}
+ virtual bool quit () {return false;}
+ };
+
+ typedef typename std::vector<Command>::iterator Iterator;
+ typedef typename std::vector<Command>::const_iterator ConstIterator;
+ typedef typename std::vector<Command>::const_reverse_iterator ConstRevIterator;
+
+ public:
+ void newpath () {
+ _commands.clear();
+ }
+
+ /// Returns true if path is empty (there is nothing to draw)
+ bool empty () const {
+ return _commands.empty();
+ }
+
+
+ /// Returns the number of path commands used to describe the path.
+ size_t size () const {
+ return _commands.size();
+ }
+
+ void moveto (const T &x, const T &y) {
+ moveto(Point(x, y));
+ }
+
+ void moveto (const Point &p) {
+ // avoid sequences of several MOVETOs; always use latest
+ if (_commands.empty() || _commands.back().type != Command::MOVETO)
+ _commands.push_back(Command(Command::MOVETO, p));
+ else
+ _commands.back().params[0] = p;
+ }
+
+ void lineto (const T &x, const T &y) {
+ lineto(Point(x, y));
+ }
+
+ void lineto (const Point &p) {
+ _commands.push_back(Command(Command::LINETO, p));
+ }
+
+ void conicto (const T &x1, const T &y1, const T &x2, const T &y2) {
+ conicto(Point(x1, y1), Point(x2, y2));
+ }
+
+ void conicto (const Point &p1, const Point &p2) {
+ _commands.push_back(Command(Command::CONICTO, p1, p2));
+ }
+
+ void cubicto (const T &x1, const T &y1, const T &x2, const T &y2, const T &x3, const T &y3) {
+ cubicto(Point(x1, y1), Point(x2, y2), Point(x3, y3));
+ }
+
+ void cubicto (const Point &p1, const Point &p2, const Point &p3) {
+ _commands.push_back(Command(Command::CUBICTO, p1, p2, p3));
+ }
+
+ void closepath () {
+ _commands.push_back(Command(Command::CLOSEPATH));
+ }
+
+
+ const std::vector<Command>& commands () const {
+ return _commands;
+ }
+
+
+ /** Detects all open subpaths and closes them by adding a closePath command.
+ * Most font formats only support closed outline paths so there are no explicit closePath statements
+ * in the glyph's outline description. All open paths are automatically closed by the renderer.
+ * This method detects all open paths and adds the missing closePath statement. */
+ void closeOpenSubPaths () {
+ Command *prevCommand = 0;
+ FORALL(_commands, Iterator, it) {
+ if (it->type == Command::MOVETO && prevCommand && prevCommand->type != Command::CLOSEPATH) {
+ prevCommand = &(*it);
+ it = _commands.insert(it, Command(Command::CLOSEPATH))+1;
+// ++it; // skip inserted closePath command in next iteration step
+ }
+ else
+ prevCommand = &(*it);
+ }
+ if (!_commands.empty() && _commands.back().type != Command::CLOSEPATH)
+ closepath();
+ }
+
+
+ /** Writes the path data as SVG path drawing command to a given output stream.
+ * @param[in] os output stream used to write the SVG commands to
+ * @param[in] sx horizontal scale factor
+ * @param[in] sy vertical scale factor
+ * @param[in] dx horizontal translation in TeX point units
+ * @param[in] sy vertical translation in TeX point units */
+ void writeSVG (std::ostream &os, double sx=1.0, double sy=1.0, double dx=0.0, double dy=0.0) const {
+ struct WriteActions : Actions {
+ WriteActions (std::ostream &os, double sx, double sy, double dx, double dy)
+ : _os(os), _sx(sx), _sy(sy), _dx(dx), _dy(dy) {}
+
+ void draw (char cmd, const Point *points, int n) {
+ _os << cmd;
+ switch (cmd) {
+ case 'H': _os << XMLString(_sx*points->x()+_dx); break;
+ case 'V': _os << XMLString(_sy*points->y()+_dy); break;
+ default :
+ for (int i=0; i < n; i++) {
+ if (i > 0)
+ _os << ' ';
+ _os << XMLString(_sx*points[i].x()+_dx) << ' ' << XMLString(_sy*points[i].y()+_dy);
+ }
+ }
+ }
+ std::ostream &_os;
+ double _sx, _sy, _dx, _dy;
+ } actions(os, sx, sy, dx, dy);
+ iterate(actions, true);
+ }
+
+
+ /** Computes the bounding box of the current path.
+ * @param[out] bbox the computed bounding box */
+ void computeBBox (BoundingBox &bbox) const {
+ struct BBoxActions : Actions {
+ BBoxActions (BoundingBox &bb) : bbox(bb) {}
+ void moveto (const Point &p) {bbox.embed(p);}
+ void lineto (const Point &p) {bbox.embed(p);}
+ void conicto (const Point &p1, const Point &p2) {bbox.embed(p1); bbox.embed(p2);}
+ void cubicto (const Point &p1, const Point &p2, const Point &p3) {bbox.embed(p1); bbox.embed(p2); bbox.embed(p3);}
+ BoundingBox &bbox;
+ } actions(bbox);
+ iterate(actions, false);
+ }
+
+
+ /** Checks whether the current path describes a dot/point only (with no extent).
+ * @param[out] p coordinates of the point if path describes a dot
+ * @return true if path is a dot/point */
+ bool isDot (Point &p) const {
+ struct DotActions : Actions {
+ DotActions () : differs(false) {}
+ void moveto (const Point &p) {point = p;}
+ void lineto (const Point &p) {differs = (p != point);}
+ void conicto (const Point &p1, const Point &p2) {differs = (point != p1 || point != p2);}
+ void cubicto (const Point &p1, const Point &p2, const Point &p3) {differs = (point != p1 || point != p2 || point != p3);}
+ bool quit () {return differs;}
+ Point point;
+ bool differs;
+ } actions;
+ iterate(actions, false);
+ p = actions.point;
+ return !actions.differs;
+ }
+
+
+ /** Transforms the path according to a given Matrix.
+ * @param[in] matrix Matrix describing the affine transformation */
+ void transform (const Matrix &matrix) {
+ FORALL(_commands, Iterator, it)
+ it->transform(matrix);
+ }
+
+ void iterate (Actions &actions, bool optimize) const;
+
+ private:
+ std::vector<Command> _commands;
+};
+
+
+/** Iterates over all commands defining this path and calls the corresponding template methods.
+ * In the case of successive bezier curve sequences, control points or tangent slopes are often
+ * identical so that the path description contains redundant information. SVG provides shorthand
+ * curve commands that require less parameters. If 'optimize' is true, this method detects such
+ * command sequences.
+ * @param[in] actions template methods called by each iteration step
+ * @param[in] optimize if true, shorthand drawing commands (sconicto, scubicto,...) are considered */
+template <typename T>
+void GraphicPath<T>::iterate (Actions &actions, bool optimize) const {
+ ConstIterator prev = _commands.end(); // pointer to preceding command
+ Point fp; // first point of current path
+ Point cp; // current point
+ Point pstore[2];
+ for (ConstIterator it=_commands.begin(); it != _commands.end() && !actions.quit(); ++it) {
+ const Point *params = it->params;
+ switch (it->type) {
+ case Command::MOVETO:
+ actions.moveto(params[0]);
+ actions.draw('M', params, 1);
+ fp = params[0];
+ break;
+ case Command::LINETO:
+ if (optimize) {
+ if (cp.x() == params[0].x()) {
+ actions.vlineto(params[0].y());
+ actions.draw('V', params, 1);
+ }
+ else if (cp.y() == params[0].y()) {
+ actions.hlineto(params[0].x());
+ actions.draw('H', params, 1);
+ }
+ else {
+ actions.lineto(params[0]);
+ actions.draw('L', params, 1);
+ }
+ }
+ else {
+ actions.lineto(params[0]);
+ actions.draw('L', params, 1);
+ }
+ break;
+ case Command::CONICTO:
+ if (optimize && prev != _commands.end() && prev->type == Command::CONICTO && params[0] == pstore[1]*T(2)-pstore[0]) {
+ actions.sconicto(params[1]);
+ actions.draw('T', params+1, 1);
+ }
+ else {
+ actions.conicto(params[0], params[1]);
+ actions.draw('Q', params, 2);
+ }
+ pstore[0] = params[0]; // store control point and
+ pstore[1] = params[1]; // curve endpoint
+ break;
+ case Command::CUBICTO:
+ // is first control point reflection of preceding second control point?
+ if (optimize && prev != _commands.end() && prev->type == Command::CUBICTO && params[0] == pstore[1]*T(2)-pstore[0]) {
+ actions.scubicto(params[1], params[2]);
+ actions.draw('S', params+1, 2);
+ }
+ else {
+ actions.cubicto(params[0], params[1], params[2]);
+ actions.draw('C', params, 3);
+ }
+ pstore[0] = params[1]; // store second control point and
+ pstore[1] = params[2]; // curve endpoint
+ break;
+ case Command::CLOSEPATH:
+ actions.closepath();
+ actions.draw('Z', params, 0);
+ cp = fp;
+ }
+ // update current point
+ const int np = it->numParams();
+ if (np > 0)
+ cp = it->params[np-1];
+ prev = it;
+ }
+}
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputBuffer.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputBuffer.cpp
new file mode 100644
index 00000000000..ad99305fa3c
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputBuffer.cpp
@@ -0,0 +1,137 @@
+/*************************************************************************
+** InputBuffer.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cmath>
+#include <cstring>
+#include "InputBuffer.h"
+
+using namespace std;
+
+
+StreamInputBuffer::StreamInputBuffer (istream &is, size_t bufsize)
+ : _is(is), _bufsize(bufsize), _buf1(new UInt8[_bufsize]), _buf2(new UInt8[_bufsize]), _bufptr(_buf1)
+{
+ _size1 = fillBuffer(_buf1);
+ _size2 = fillBuffer(_buf2);
+}
+
+
+StreamInputBuffer::~StreamInputBuffer () {
+ delete [] _buf1;
+ delete [] _buf2;
+}
+
+
+int StreamInputBuffer::get () {
+ if (pos() == _size1) {
+ if (_size2 == 0)
+ return -1;
+ swap(_buf1, _buf2);
+ _size1 = _size2;
+ _bufptr = _buf1;
+ _size2 = fillBuffer(_buf2);
+ }
+ UInt8 c = *_bufptr++;
+ return c;
+}
+
+
+/** Returns the next character to be read without skipping it.
+ * Same as peek(0). */
+int StreamInputBuffer::peek () const {
+ if (pos() < _size1)
+ return *_bufptr;
+ return _size2 > 0 ? *_buf2 : -1;
+}
+
+
+/** Returns the n-th next character without skipping it. */
+int StreamInputBuffer::peek (size_t n) const {
+ if (pos()+n < _size1)
+ return *(_bufptr+n);
+ if (pos()+n < _size1+_size2)
+ return *(_buf2 + pos()+n-_size1);
+ return -1;
+}
+
+
+/** Fills the buffer by reading a sequence of characters from the assigned
+ * input stream.
+ * @param[in] buf pointer to character buffer to be filled
+ * @return number of characters read */
+int StreamInputBuffer::fillBuffer (UInt8 *buf) {
+ if (_is && !_is.eof()) {
+ _is.read((char*)buf, _bufsize);
+ return _is.gcount();
+ }
+ return 0;
+}
+
+///////////////////////////////////////////////
+
+SplittedCharInputBuffer::SplittedCharInputBuffer (const char *buf1, size_t s1, const char *buf2, size_t s2) {
+ _buf[0] = buf1;
+ _buf[1] = buf2;
+ _size[0] = buf1 ? s1 : 0;
+ _size[1] = buf2 ? s2 : 0;
+ _index = _size[0] ? 0 : 1;
+}
+
+
+int SplittedCharInputBuffer::get () {
+ if (_size[_index] == 0)
+ return -1;
+ int ret = *_buf[_index]++;
+ _size[_index]--;
+ if (_index == 0 && _size[0] == 0)
+ _index++;
+ return ret;
+}
+
+
+int SplittedCharInputBuffer::peek () const {
+ return _size[_index] ? *_buf[_index] : -1;
+}
+
+
+int SplittedCharInputBuffer::peek (size_t n) const {
+ if (n < _size[_index])
+ return _buf[_index][n];
+ n -= _size[_index];
+ if (_index == 0 && n < _size[1])
+ return _buf[1][n];
+ return -1;
+}
+
+///////////////////////////////////////////////
+
+
+int TextStreamInputBuffer::get () {
+ int c = StreamInputBuffer::get();
+ if (c == '\n') {
+ _line++;
+ _col = 1;
+ }
+ else
+ _col++;
+ return c;
+}
+
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputBuffer.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputBuffer.h
new file mode 100644
index 00000000000..c25df9a1452
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputBuffer.h
@@ -0,0 +1,145 @@
+/*************************************************************************
+** InputBuffer.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef INPUTBUFFER_H
+#define INPUTBUFFER_H
+
+#include <algorithm>
+#include <cstring>
+#include <istream>
+#include <string>
+#include <ostream>
+#include "types.h"
+
+struct InputBuffer
+{
+ virtual ~InputBuffer () {}
+ virtual int get () =0;
+ virtual int peek () const =0;
+ virtual int peek (size_t n) const =0;
+ virtual bool eof () const =0;
+ virtual void invalidate () =0;
+};
+
+
+class StreamInputBuffer : public InputBuffer
+{
+ public:
+ StreamInputBuffer (std::istream &is, size_t bufsize=1024);
+ ~StreamInputBuffer ();
+ int get ();
+ int peek () const;
+ int peek (size_t n) const;
+ bool eof () const {return pos() == _size1 && _size2 == 0;}
+ void invalidate () {_bufptr = _buf1+_size1; _size2 = 0;}
+
+ protected:
+ int fillBuffer (UInt8 *buf);
+ size_t pos () const {return _bufptr-_buf1;}
+
+ private:
+ std::istream &_is;
+ const size_t _bufsize; ///< maximal number of bytes each buffer can hold
+ UInt8 *_buf1; ///< pointer to first buffer
+ UInt8 *_buf2; ///< pointer to second buffer
+ size_t _size1; ///< number of bytes in buffer 1
+ size_t _size2; ///< number of bytes in buffer 2
+ UInt8 *_bufptr; ///< pointer to next byte to read
+};
+
+
+class StringInputBuffer : public InputBuffer
+{
+ public:
+ StringInputBuffer (const std::string &str) : _str(str), _pos(0) {}
+ int get () {return _pos < _str.length() ? _str[_pos++] : -1;}
+ int peek () const {return _pos < _str.length() ? _str[_pos] : -1;}
+ int peek (size_t n) const {return _pos+n < _str.length() ? _str[_pos+n] : -1;}
+ bool eof () const {return _pos >= _str.length();}
+ void invalidate () {_pos = _str.length();}
+
+ private:
+ const std::string &_str;
+ size_t _pos;
+};
+
+
+class CharInputBuffer : public InputBuffer
+{
+ public:
+ CharInputBuffer (const char *buf, size_t size) : _pos(buf), _size(buf ? size : 0) {}
+
+ int get () {
+ if (_size <= 0)
+ return -1;
+ else {
+ _size--;
+ return *_pos++;
+ }
+ }
+
+
+ void assign (const char *buf, size_t size) {
+ _pos = buf;
+ _size = size;
+ }
+
+ void assign (const char *buf) {assign(buf, std::strlen(buf));}
+ int peek () const {return _size > 0 ? *_pos : -1;}
+ int peek (size_t n) const {return _size >= n ? _pos[n] : -1;}
+ bool eof () const {return _size <= 0;}
+ void invalidate () {_size = 0;}
+
+ private:
+ const char *_pos;
+ size_t _size;
+};
+
+
+class SplittedCharInputBuffer : public InputBuffer
+{
+ public:
+ SplittedCharInputBuffer (const char *buf1, size_t s1, const char *buf2, size_t s2);
+ int get ();
+ int peek () const;
+ int peek (size_t n) const;
+ bool eof () const {return _size[_index] == 0;}
+ void invalidate () {_size[_index] = 0;}
+
+ private:
+ const char *_buf[2];
+ size_t _size[2];
+ int _index;
+};
+
+
+class TextStreamInputBuffer : public StreamInputBuffer
+{
+ public:
+ TextStreamInputBuffer (std::istream &is) : StreamInputBuffer(is), _line(1), _col(1) {}
+ int get ();
+ int line () const {return _line;}
+ int col () const {return _col;}
+
+ private:
+ int _line, _col;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputReader.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputReader.cpp
new file mode 100644
index 00000000000..3899a2362b2
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputReader.cpp
@@ -0,0 +1,342 @@
+/*************************************************************************
+** InputReader.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cmath>
+#include <vector>
+#include "InputReader.h"
+
+using namespace std;
+
+
+/** Skips n characters. */
+void InputReader::skip (size_t n) {
+ while (n-- > 0)
+ get();
+}
+
+
+/** Moves the buffer pointer to the next non-space character. A following call
+ * of get() returns this character. */
+void InputReader::skipSpace () {
+ while (isspace(peek()))
+ get();
+}
+
+
+/** Tries to find a given string and skips all characters preceding that string.
+ * @param[in] s string to look for (must not be longer than the maximal buffer size)
+ * @param[in] consume if true, the buffer pointer is moved to the first character following string s
+ * @return true if s was found */
+bool InputReader::skipUntil (const char *s, bool consume) {
+ bool found = false;
+ while (!eof() && !(found = check(s, consume)))
+ get();
+ return found;
+}
+
+
+/** Looks for the first occurrence of a given character.
+ * @param[in] c character to lookup
+ * @return position of character relative to current location, -1 if character was not found */
+int InputReader::find (char c) const {
+ int pos = 0;
+ int cc;
+ while ((cc = peek(pos)) >= 0 && cc != c)
+ pos++;
+ return cc < 0 ? -1 : pos;
+}
+
+
+/** Checks if the next characters to be read match a given string.
+ * @param[in] s string to be matched
+ * @param[in] consume if true, the characters of the matched string are skipped
+ * @return true if s matches */
+bool InputReader::check (const char *s, bool consume) {
+ size_t count = 0;
+ for (const char *p=s; *p; p++) {
+ if (peek(count++) != *p)
+ return false;
+ }
+ if (consume)
+ skip(count);
+ return true;
+}
+
+
+int InputReader::compare (const char *s, bool consume) {
+ size_t count = 0;
+ for (const char *p=s; *p; p++) {
+ int c = peek(count++);
+ if (c != *p)
+ return *p < c ? -1 : 1;
+ }
+ if (consume)
+ skip(count);
+ return 0;
+}
+
+
+/** Reads an integer from the buffer. All characters that are part of
+ * the read integer constant are skipped. If this function returns false,
+ * the buffer pointer points to the same position as before the function call.
+ * @param[out] val contains the read integer value on success
+ * @param[in] accept_sign if false, only positive integers (without sign) are accepted
+ * @return true if integer could be read */
+bool InputReader::parseInt (int &val, bool accept_sign) {
+ val = 0;
+ int fac=1;
+ char sign; // explicitly given sign
+ if (accept_sign && ((sign = peek()) == '+' || sign == '-')) {
+ if (isdigit(peek(1))) {
+ get(); // skip sign
+ if (sign == '-')
+ fac = -1;
+ }
+ else
+ return false;
+ }
+ else if (!isdigit(peek()))
+ return false;
+
+ while (isdigit(peek()))
+ val = val*10 + (get()-'0');
+ val *= fac;
+ return true;
+}
+
+
+bool InputReader::parseUInt (unsigned &val) {
+ val = 0;
+ if (!isdigit(peek()))
+ return false;
+ while (isdigit(peek()))
+ val = val*10 + (get()-'0');
+ return true;
+}
+
+
+bool InputReader::parseInt (int base, int &val) {
+ if (base < 2 || base > 32)
+ return false;
+
+ const char *digits = "0123456789abcdefghijklmnopqrstuvwxyz";
+ const char maxdigit = digits[base-1];
+ char c;
+ if (!isalnum(c = tolower(peek())) || c > maxdigit)
+ return false;
+
+ val = 0;
+ while (isalnum(c = tolower(peek())) && c <= maxdigit) {
+ get();
+ int digit = c - (c <= '9' ? '0' : 'a'-10);
+ val = val*base + digit;
+ }
+ return true;
+}
+
+
+/** Reads a double from the buffer. All characters that are part of
+ * the read double constant are skipped. If this function returns false,
+ * the buffer pointer points to the same position as before the function call.
+ * @param[out] val contains the read double value on success
+ * @return number details: 0=no number, 'i'=integer, 'f'=floating point number */
+char InputReader::parseDouble (double &val) {
+ int fac=1;
+ int int_part=0;
+ bool is_float = false;
+ skipSpace();
+ char sign = peek();
+ if (parseInt(int_part)) { // match [+-]?[0-9]+\.?
+ if (peek() == '.') {
+ get();
+ is_float = true;
+ }
+ if (int_part < 0 || sign == '-') {
+ fac = -1;
+ int_part = -int_part;
+ }
+ }
+ else { // match [+-]?\.
+ char sign; // explicitly given sign
+ if ((sign = peek()) == '+' || sign == '-') { // match [+-]?\.[0-9]
+ if (peek(1) != '.' || !isdigit(peek(2)))
+ return 0;
+ if (sign == '-')
+ fac = -1;
+ skip(2); // skip sign and dot
+ }
+ else if (peek() == '.' && isdigit(peek(1)))
+ get();
+ else
+ return 0;
+ is_float = true;
+ }
+ // parse fractional part
+ double frac_part=0.0;
+ for (double u=10; isdigit(peek()); u*=10)
+ frac_part += (get()-'0')/u;
+ val = (int_part + frac_part) * fac;
+ // parse exponent
+ char c;
+ if (tolower(peek()) == 'e' && (isdigit(c=peek(1)) || ((c == '+' || c == '-') && isdigit(peek(2))))) {
+ get(); // skip 'e'
+ int exp;
+ parseInt(exp);
+ val *= pow(10.0, exp);
+ is_float = true;
+ }
+ return is_float ? 'f' : 'i';
+}
+
+
+/** Reads an integer value from the buffer. If no valid integer constant
+ * could be found at the current position 0 is returned. */
+int InputReader::getInt () {
+ skipSpace();
+ int val;
+ return parseInt(val) ? val : 0;
+}
+
+
+/** Reads an double value from the buffer. If no valid double constant
+ * could be found at the current position 0 is returned. */
+double InputReader::getDouble () {
+ skipSpace();
+ double val;
+ return parseDouble(val) ? val : 0.0;
+}
+
+
+string InputReader::getWord () {
+ string ret;
+ skipSpace();
+ while (isalpha(peek()))
+ ret += get();
+ return ret;
+}
+
+
+char InputReader::getPunct () {
+ skipSpace();
+ if (ispunct(peek()))
+ return get();
+ return 0;
+}
+
+
+/** Reads a string delimited by a given quotation character.
+ * Before reading the string, all leading whitespace is skipped. Then, the function checks
+ * for the given quotation character. If it is found, all characters until the second
+ * appearance of the quotation char are appended to the result. Otherwise, an empty string
+ * is returned. If the quotation character is 0, the behavior of this function is identical to
+ * a call of getString().
+ * @param[in] quotechar the quotation character bounding the string to be read
+ * @return the string read */
+string InputReader::getQuotedString (char quotechar) {
+ if (quotechar == 0)
+ return getString();
+
+ string ret;
+ skipSpace();
+ if (peek() == quotechar) {
+ get();
+ while (!eof() && peek() != quotechar)
+ ret += get();
+ get();
+ }
+ return ret;
+}
+
+
+/** Reads a string delimited by whitespace and/or invisible characters.
+ * Before reading the string, all leading whitespace is skipped. Then, the function adds
+ * all printable characters to the result until a whitespace, an unprintable character, or
+ * EOF is found.
+ * @return the string read */
+string InputReader::getString () {
+ string ret;
+ skipSpace();
+ while (!eof() && !isspace(peek()) && isprint(peek()))
+ ret += get();
+ return ret;
+}
+
+
+/** Reads a given number of characters and returns the resulting string.
+ * @param n number of character to read
+ * @return the string read */
+string InputReader::getString (size_t n) {
+ string ret;
+ while (n-- > 0)
+ ret += get();
+ return ret;
+}
+
+
+/*string InputReader::getString (char quotechar) {
+ string ret;
+ skipSpace();
+ if (quotechar == 0) {
+ while (!eof() && !isspace(peek()) && isprint(peek()))
+ ret += get();
+ }
+ else if (peek() == quotechar) {
+ get();
+ while (!eof() && peek() != quotechar)
+ ret += get();
+ get();
+ }
+ return ret;
+}*/
+
+
+int InputReader::parseAttributes (map<string,string> &attr) {
+ bool ready=false;
+ while (!eof() && !ready) {
+ string key;
+ skipSpace();
+ while (isalnum(peek()))
+ key += get();
+ skipSpace();
+ if (peek() == '=') {
+ get();
+ skipSpace();
+ string val = getString();
+ attr[key] = val;
+ }
+ else
+ ready = true;
+ }
+ return attr.size();
+}
+
+//////////////////////////////////////////
+
+
+int StreamInputReader::peek (size_t n) const {
+ if (n == 0)
+ return peek();
+ vector<char> chars(n);
+ _is.read(&chars[0], n);
+ int ret = peek();
+ for (int i=n-1; i >= 0; i--)
+ _is.putback(chars[i]);
+ return ret;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputReader.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputReader.h
new file mode 100644
index 00000000000..23a16421567
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/InputReader.h
@@ -0,0 +1,89 @@
+/*************************************************************************
+** InputReader.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef INPUTREADER_H
+#define INPUTREADER_H
+
+#include <istream>
+#include <map>
+#include <string>
+#include "InputBuffer.h"
+
+
+class InputReader
+{
+ public:
+ virtual ~InputReader() {}
+ virtual int get () =0;
+ virtual int peek () const =0;
+ virtual int peek (size_t n) const =0;
+ virtual bool eof () const =0;
+ virtual bool check (char c) const {return peek() == c;}
+ virtual bool check (const char *s, bool consume=true);
+ virtual int compare (const char *s, bool consume=true);
+ virtual void skip (size_t n);
+ virtual bool skipUntil (const char *s, bool consume=true);
+ virtual int find (char c) const;
+ virtual void skipSpace ();
+ virtual int getInt ();
+ virtual bool parseInt (int &val, bool accept_sign=true);
+ virtual bool parseInt (int base, int &val);
+ virtual bool parseUInt (unsigned &val);
+ virtual char parseDouble (double &val);
+ virtual double getDouble ();
+ virtual std::string getWord ();
+ virtual char getPunct ();
+ virtual std::string getQuotedString (char quotechar);
+ virtual std::string getString ();
+ virtual std::string getString (size_t n);
+ virtual int parseAttributes (std::map<std::string,std::string> &attr);
+ virtual operator bool () const {return !eof();}
+};
+
+
+class StreamInputReader : public InputReader
+{
+ public:
+ StreamInputReader (std::istream &is) : _is(is) {}
+ int get () {return _is.get();}
+ int peek () const {return _is.peek();}
+ int peek (size_t n) const;
+ bool eof () const {return !_is || _is.eof();}
+
+ private:
+ std::istream &_is;
+};
+
+
+class BufferInputReader : public InputReader
+{
+ public:
+ BufferInputReader (InputBuffer &ib) : _ib(&ib) {}
+ void assign (InputBuffer &ib) {_ib = &ib;}
+ int get () {return _ib->get();}
+ int peek () const {return _ib->peek();}
+ int peek (size_t n) const {return _ib->peek(n);}
+ bool eof () const {return _ib->eof();}
+
+ private:
+ InputBuffer *_ib;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Length.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Length.cpp
new file mode 100644
index 00000000000..aae20b74e59
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Length.cpp
@@ -0,0 +1,84 @@
+/*************************************************************************
+** Length.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <sstream>
+#include "InputReader.h"
+#include "Length.h"
+
+#define UNIT(c1,c2) ((c1 << 8)|c2)
+
+using namespace std;
+
+
+void Length::set (const string &len) {
+ switch (len.length()) {
+ case 0:
+ _pt = 0;
+ break;
+ case 1:
+ if (isdigit(len[0]))
+ _pt = len[0] - '0';
+ else
+ throw UnitException("invalid length: "+len);
+ break;
+ default:
+ istringstream iss(len);
+ StreamInputReader ir(iss);
+ double val;
+ if (!ir.parseDouble(val))
+ throw UnitException("invalid length: "+len);
+ string unit = ir.getWord();
+ set(val, unit);
+ }
+}
+
+
+void Length::set (double val, Unit unit) {
+ switch (unit) {
+ case PT: _pt = val; break;
+ case BP: _pt = val*72.27/72; break;
+ case IN: _pt = val*72.27; break;
+ case CM: _pt = val/2.54*72.27; break;
+ case MM: _pt = val/25.4*72.27; break;
+ case PC: _pt = val/12*72.27; break;
+ }
+}
+
+
+void Length::set (double val, string unitstr) {
+ if (unitstr.empty())
+ unitstr = "pt";
+ else if (unitstr.length() != 2)
+ throw UnitException("invalid length unit: "+unitstr);
+
+ Unit unit;
+ switch (UNIT(unitstr[0], unitstr[1])) {
+ case UNIT('p','t'): unit = PT; break;
+ case UNIT('b','p'): unit = BP; break;
+ case UNIT('i','n'): unit = IN; break;
+ case UNIT('c','m'): unit = CM; break;
+ case UNIT('m','m'): unit = MM; break;
+ case UNIT('p','c'): unit = PC; break;
+ default:
+ throw UnitException("invalid length unit: "+unitstr);
+ }
+ set(val, unit);
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Length.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Length.h
new file mode 100644
index 00000000000..995ba068cee
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Length.h
@@ -0,0 +1,62 @@
+/*************************************************************************
+** Length.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef LENGTH_H
+#define LENGTH_H
+
+#include <string>
+#include "MessageException.h"
+
+#ifdef IN
+#undef IN
+#endif
+
+struct UnitException : MessageException
+{
+ UnitException (const std::string &msg) : MessageException(msg) {}
+};
+
+
+class Length
+{
+ public:
+ enum Unit {PT, BP, CM, MM, IN, PC};
+
+ public:
+ Length () : _pt(0) {}
+ Length (double val, Unit unit=PT) {set(val, unit);}
+ Length (double val, const std::string &unit) {set(val, unit);}
+ Length (const std::string &len) {set(len);}
+ void set (double val, Unit unit);
+ void set (double val, std::string unit);
+ void set (const std::string &len);
+
+ double pt () const {return _pt;}
+ double in () const {return _pt/72.27;}
+ double bp () const {return in()*72;}
+ double cm () const {return in()*2.54;}
+ double mm () const {return cm()*10;}
+ double pc () const {return in()*12;}
+
+ private:
+ double _pt; // length in TeX point units
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Makefile.am b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Makefile.am
new file mode 100644
index 00000000000..dd5fb8c11c3
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Makefile.am
@@ -0,0 +1,52 @@
+:## This file is part of dvisvgm
+## Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de>
+##
+## Process this file with automake.
+
+bin_PROGRAMS = dvisvgm
+noinst_LIBRARIES = libdvisvgm.a
+
+dvisvgm_SOURCES = gzstream.h \
+ dvisvgm.cpp gzstream.cpp
+
+dvisvgm_LDADD = $(noinst_LIBRARIES) @EXTRA_LIBS@
+dvisvgm_DEPENDENCIES = $(noinst_LIBRARIES) @EXTRA_LIBS@
+
+libdvisvgm_a_SOURCES = Bitmap.h BoundingBox.h BgColorSpecialHandler.h Calculator.h CmdLineParserBase.h Color.h CRC32.h \
+ ColorSpecialHandler.h CommandLine.h Directory.h DLLoader.h DVIActions.h DVIReader.h DvisvgmSpecialHandler.h DVIToSVG.h \
+ DVIToSVGActions.h EmSpecialHandler.h EPSFile.h EPSToSVG.h FileFinder.h FilePath.h FileSystem.h Font.h FontCache.h \
+ FontEncoding.h FontEngine.h FontManager.h FontMap.h GFReader.h GFTracer.h GFGlyphTracer.h Ghostscript.h Glyph.h \
+ GlyphTracerMessages.h GraphicPath.h InputBuffer.h InputReader.h Length.h macros.h MapLine.h Matrix.h Message.h \
+ MessageException.h MetafontWrapper.h NoPsSpecialHandler.h PageRanges.h PageSize.h Pair.h PdfSpecialHandler.h Process.h \
+ PSInterpreter.h PSPattern.h PsSpecialHandler.h SignalHandler.h SpecialActions.h SpecialHandler.h SpecialManager.h \
+ StreamReader.h StreamWriter.h Subfont.h SVGOutputBase.h SVGTree.h System.h Terminal.h TpicSpecialHandler.h TFM.h types.h \
+ VectorStream.h VFActions.h VFReader.h XMLDocTypeNode.h XMLDocument.h XMLNode.h XMLString.h \
+ BgColorSpecialHandler.cpp Bitmap.cpp BoundingBox.cpp Calculator.cpp CmdLineParserBase.cpp Color.cpp \
+ ColorSpecialHandler.cpp CommandLine.cpp CRC32.cpp Directory.cpp DLLoader.cpp DVIActions.cpp DVIReader.cpp \
+ DvisvgmSpecialHandler.cpp DVIToSVG.cpp DVIToSVGActions.cpp EmSpecialHandler.cpp EPSFile.cpp EPSToSVG.cpp FileFinder.cpp \
+ FilePath.cpp FileSystem.cpp Font.cpp FontCache.cpp FontEncoding.cpp FontEngine.cpp FontManager.cpp FontMap.cpp \
+ GFReader.cpp GFGlyphTracer.cpp GFTracer.cpp Ghostscript.cpp InputBuffer.cpp InputReader.cpp Length.cpp MapLine.cpp \
+ Matrix.cpp Message.cpp MetafontWrapper.cpp NoPsSpecialHandler.cpp PageRanges.cpp PageSize.cpp PdfSpecialHandler.cpp \
+ Process.cpp psdefs.cpp PSInterpreter.cpp PSPattern.cpp PsSpecialHandler.cpp SignalHandler.cpp SpecialManager.cpp \
+ StreamReader.cpp StreamWriter.cpp Subfont.cpp SVGTree.cpp System.cpp Terminal.cpp TFM.cpp TpicSpecialHandler.cpp \
+ VFReader.cpp XMLDocument.cpp XMLNode.cpp XMLString.cpp
+
+EXTRA_DIST = options.xml iapi.h ierrors.h MiKTeXCom.h MiKTeXCom.cpp
+
+AM_CXXFLAGS = -Wall -Wnon-virtual-dtor
+
+# the command-line parser is generated from options.xml by opt2cpp
+CommandLine.cpp: options.xml
+ if test -f opt2cpp.xsl; then \
+ rm -f $@ $*.h; \
+ xsltproc opt2cpp.xsl $<; \
+ fi
+
+# Create a C string definition containing the PostScript routines psdefs.ps needed by class PSInterpreter
+$(srcdir)/psdefs.cpp: psdefs.ps
+ if test -f $<; then \
+ ps2c PSInterpreter::PSDEFS $< >$@; \
+ fi
+
+psdefs.ps: ;
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MapLine.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MapLine.cpp
new file mode 100644
index 00000000000..99dce4f9547
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MapLine.cpp
@@ -0,0 +1,275 @@
+/*************************************************************************
+** MapLine.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstring>
+#include <sstream>
+#include "InputBuffer.h"
+#include "InputReader.h"
+#include "MapLine.h"
+#include "Subfont.h"
+
+using namespace std;
+
+
+/** Constructs a MapLine object by parsing a single mapline from the given stream. */
+MapLine::MapLine (istream &is)
+ : _sfd(0), _fontindex(0), _slant(0), _bold(0), _extend(1)
+{
+ char buf[256];
+ is.getline(buf, 256);
+ parse(buf);
+}
+
+
+// Some of the following functions have been derived from the dvipdfmx source file fontmap.c:
+// http://cvs.ktug.or.kr/viewcvs/dvipdfmx/src/fontmap.c?revision=1.43&view=markup
+
+
+/** Returns true if the given string is in dvips mapline format, and false if it's in dvipdfm format.
+ @param[in] line string to check */
+bool MapLine::isDVIPSFormat (const char *line) const {
+ if (strchr(line, '"') || strchr(line, '<')) // these chars are only present in dvips maps
+ return true;
+ char prevchar = ' ';
+ int entry_count=0;
+ for (const char *p=line; *p; ++p) {
+ if (isspace(prevchar)) {
+ if (*p == '-') // options starting with '-' are only present in dvipdfm map files
+ return false;
+ if (!isspace(*p))
+ entry_count++;
+ }
+ prevchar = *p;
+ }
+ // tfm_name and ps_name only => dvips map
+ return entry_count == 2;
+}
+
+
+/** Separates main font name and subfont definition name from a given combined name.
+ * Example: "basename@sfdname@10" => {"basename10", "sfdname"}
+ * @param[in,out] fontname complete fontname; after separation: main fontname only
+ * @param[out] sfdname name of subfont definition
+ * @return true on success */
+static bool split_fontname (string &fontname, string &sfdname) {
+ size_t pos1; // index of first '@'
+ if ((pos1 = fontname.find('@')) != string::npos && pos1 > 0) {
+ size_t pos2; // index of second '@'
+ if ((pos2 = fontname.find('@', pos1+1)) != string::npos && pos2 > pos1+1) {
+ sfdname = fontname.substr(pos1+1, pos2-pos1-1);
+ fontname = fontname.substr(0, pos1) + fontname.substr(pos2+1);
+ return true;
+ }
+ }
+ return false;
+}
+
+
+/** Parses a single mapline and stores the scanned data in member variables.
+ * The line may either be given in dvips or dvipdfmx mapfile format.
+ * @param[in] line the mapline */
+void MapLine::parse (const char *line) {
+ CharInputBuffer ib(line, strlen(line));
+ BufferInputReader ir(ib);
+ _texname = ir.getString();
+ string sfdname;
+ split_fontname(_texname, sfdname);
+ if (!sfdname.empty())
+ _sfd = SubfontDefinition::lookup(sfdname);
+ if (isDVIPSFormat(line))
+ parseDVIPSLine(ir);
+ else
+ parseDVIPDFMLine(ir);
+}
+
+
+/** Parses a single line in dvips mapfile format.
+ * @param[in] ir the input stream must be assigned to this reader */
+void MapLine::parseDVIPSLine (InputReader &ir) {
+ ir.skipSpace();
+ if (ir.peek() != '<' && ir.peek() != '"')
+ _psname = ir.getString();
+ ir.skipSpace();
+ while (ir.peek() == '<' || ir.peek() == '"') {
+ if (ir.peek() == '<') {
+ ir.get();
+ if (ir.peek() == '[')
+ ir.get();
+ string name = ir.getString();
+ if (name.length() > 4 && name.substr(name.length()-4) == ".enc")
+ _encname = name.substr(0, name.length()-4);
+ else
+ _fontfname = name;
+ }
+ else { // ir.peek() == '"' => list of PS font operators
+ string options = ir.getQuotedString('"');
+ StringInputBuffer sib(options);
+ BufferInputReader sir(sib);
+ while (!sir.eof()) {
+ double number;
+ if (sir.parseDouble(number)) {
+ // operator with preceding numeric parameter (value opstr)
+ string opstr = sir.getString();
+ if (opstr == "SlantFont")
+ _slant = number;
+ else if (opstr == "ExtendFont")
+ _extend = number;
+ }
+ else {
+ // operator without parameter => skip for now
+ sir.getString();
+ }
+ }
+ }
+ ir.skipSpace();
+ }
+}
+
+
+static void throw_number_expected (char opt, bool integer_only=false) {
+ ostringstream oss;
+ oss << "option -" << opt << ": " << (integer_only ? "integer" : "floating point") << " value expected";
+ throw MapLineException(oss.str());
+}
+
+
+/** Parses a single line in dvipdfmx mapfile format.
+ * @param[in] ir the input stream must be assigned to this reader */
+void MapLine::parseDVIPDFMLine (InputReader &ir) {
+ ir.skipSpace();
+ if (ir.peek() != '-') {
+ _encname = ir.getString();
+ if (_encname == "default" || _encname == "none")
+ _encname.clear();
+ }
+ ir.skipSpace();
+ if (ir.peek() != '-')
+ _fontfname = ir.getString();
+ if (!_fontfname.empty()) {
+ parseFilenameOptions(_fontfname);
+ }
+ ir.skipSpace();
+ while (ir.peek() == '-') {
+ ir.get();
+ char option = ir.get();
+ if (!isprint(option))
+ throw MapLineException("option character expected");
+ ir.skipSpace();
+ switch (option) {
+ case 's': // slant
+ if (!ir.parseDouble(_slant))
+ throw_number_expected('s');
+ break;
+ case 'e': // extend
+ if (!ir.parseDouble(_extend))
+ throw_number_expected('e');
+ break;
+ case 'b': // bold
+ if (!ir.parseDouble(_bold))
+ throw_number_expected('b');
+ break;
+ case 'r': //remap (deprecated)
+ break;
+ case 'i': // ttc index
+ if (!ir.parseInt(_fontindex, false))
+ throw_number_expected('i', true);
+ break;
+ case 'p': // UCS plane
+ int dummy;
+ if (!ir.parseInt(dummy, false))
+ throw_number_expected('p', true);
+ break;
+ case 'u': // to unicode
+ ir.getString();
+ break;
+ case 'v': // stemV
+ int stemv;
+ if (!ir.parseInt(stemv, true))
+ throw_number_expected('v', true);
+ break;
+ case 'm': // map single chars
+ ir.skipUntil("-");
+ break;
+ case 'w': // writing mode (horizontal=0, vertical=1)
+ int vertical;
+ if (!ir.parseInt(vertical, false))
+ throw_number_expected('w', true);
+ break;
+ default:
+ ostringstream oss;
+ oss << "invalid option: -" << option;
+ throw MapLineException(oss.str());
+ }
+ ir.skipSpace();
+ }
+}
+
+
+/** [:INDEX:][!]FONTNAME[/CSI][,VARIANT] */
+void MapLine::parseFilenameOptions (string fname) {
+ _fontfname = fname;
+ StringInputBuffer ib(fname);
+ BufferInputReader ir(ib);
+ if (ir.peek() == ':' && isdigit(ir.peek(1))) { // index given?
+ ir.get();
+ _fontindex = ir.getInt(); // font index of file with multiple fonts
+ if (ir.peek() == ':')
+ ir.get();
+ else
+ _fontindex = 0;
+ }
+ if (ir.peek() == '!') // no embedding
+ ir.get();
+
+ bool csi_given=false, style_given=false;
+ int pos;
+ if ((pos = ir.find('/')) >= 0) { // csi delimiter
+ csi_given = true;
+ _fontfname = ir.getString(pos);
+ }
+ else if ((pos = ir.find(',')) >= 0) {
+ style_given = true;
+ _fontfname = ir.getString(pos);
+ }
+ else
+ _fontfname = ir.getString();
+
+ if (csi_given) {
+ if ((pos = ir.find(',')) >= 0) {
+ style_given = true;
+ ir.getString(pos); // charcoll
+ }
+ else if (ir.eof())
+ throw MapLineException("CSI specifier expected");
+ else
+ ir.getString(); // charcoll
+ }
+ if (style_given) {
+ ir.get(); // skip ','
+ if (ir.check("BoldItalic")) {
+ }
+ else if (ir.check("Bold")) {
+ }
+ else if (ir.check("Italic")) {
+ }
+ if (!ir.eof())
+ throw MapLineException("invalid style given");
+ }
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MapLine.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MapLine.h
new file mode 100644
index 00000000000..87451dc912d
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MapLine.h
@@ -0,0 +1,72 @@
+/*************************************************************************
+** MapLine.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef MAPLINE_H
+#define MAPLINE_H
+
+#include <istream>
+#include <string>
+#include "MessageException.h"
+
+
+class InputReader;
+class SubfontDefinition;
+
+
+struct MapLineException : MessageException
+{
+ MapLineException (const std::string &msg) : MessageException(msg) {}
+};
+
+
+class MapLine
+{
+ public:
+ MapLine (std::istream &is);
+ const std::string& texname () const {return _texname;}
+ const std::string& psname () const {return _psname;}
+ const std::string& fontfname () const {return _fontfname;}
+ const std::string& encname () const {return _encname;}
+ int fontindex () const {return _fontindex;}
+ double bold () const {return _bold;}
+ double slant () const {return _slant;}
+ double extend () const {return _extend;}
+ SubfontDefinition* sfd () const {return _sfd;}
+
+ protected:
+ void init ();
+ bool isDVIPSFormat (const char *line) const;
+ void parse (const char *line);
+ void parseDVIPSLine (InputReader &ir);
+ void parseDVIPDFMLine (InputReader &ir);
+ void parseFilenameOptions (std::string opt);
+
+ private:
+ std::string _texname; ///< TeX font name
+ std::string _psname; ///< PS font name
+ std::string _fontfname; ///< name of fontfile
+ std::string _encname; ///< name of encoding (without file suffix ".enc")
+ SubfontDefinition *_sfd; ///< subfont definition to be used
+ int _fontindex; ///< font index of file with multiple fonts (e.g. ttc files)
+ double _slant, _bold, _extend;
+};
+
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Matrix.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Matrix.cpp
new file mode 100644
index 00000000000..6aba0d04bdd
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Matrix.cpp
@@ -0,0 +1,465 @@
+/*************************************************************************
+** Matrix.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cmath>
+#include <limits>
+#include <sstream>
+#include "Calculator.h"
+#include "Matrix.h"
+#include "XMLString.h"
+
+using namespace std;
+
+
+
+/** Computes the determinant of a given matrix */
+double det (const Matrix &m) {
+ double sum=0;
+ for (int i=0; i < 3; ++i) {
+ sum += m._values[0][i] * m._values[1][(i+1)%3] * m._values[2][(i+2)%3]
+ - m._values[0][2-i] * m._values[1][(4-i)%3] * m._values[2][(3-i)%3];
+ }
+ return sum;
+}
+
+
+/** Computes the determinant of the 2x2 submatrix of m where a given
+ * row and column were removed.
+ * @param[in] m base matrix
+ * @param[in] row row to remove
+ * @param[in] col column to remove */
+double det (const Matrix &m, int row, int col) {
+ int c1 = (col+1)%3, c2 = (col+2)%3;
+ int r1 = (row+1)%3, r2 = (row+2)%3;
+ if (c1 > c2)
+ swap(c1, c2);
+ if (r1 > r2)
+ swap(r1, r2);
+ return m._values[r1][c1] * m._values[r2][c2]
+ - m._values[r1][c2] * m._values[r2][c1];
+}
+
+
+static inline double deg2rad (double deg) {
+ const double PI = acos(-1.0);
+ return PI*deg/180.0;
+}
+
+
+/** Creates a diagonal matrix ((d,0,0),(0,d,0),(0,0,d)).
+ * @param[in] d value of diagonal elements */
+Matrix::Matrix (double d) {
+ for (int i=0; i < 3; i++)
+ for (int j=0; j < 3; j++)
+ _values[i][j] = (i==j ? d : 0);
+}
+
+
+/** Creates the matrix ((v0,v1,v2),(v3,v4,v5),(v6,v7,v8)).
+ * Expects that array v consists of 'size' elements. If size is less than 9, the
+ * remaining matrix components will be set to those of the identity matrix.
+ * @param[in] v array containing the matrix components
+ * @param[in] size size of array v */
+Matrix::Matrix (double v[], unsigned size) {
+ set(v, size);
+}
+
+
+/** Creates the matrix ((v0,v1,v2),(v3,v4,v5),(v6,v7,v8)).
+ * If vector v has less than 9 elements, the remaining matrix components will be set to
+ * those of the identity matrix.
+ * @param[in] v array containing the matrix components
+ * @param[in] start use vector components start,...,start+8 */
+Matrix::Matrix (const std::vector<double> &v, int start) {
+ set(v, start);
+}
+
+
+Matrix::Matrix (const string &cmds, Calculator &calc) {
+ parse(cmds, calc);
+}
+
+
+Matrix& Matrix::set (double v[], unsigned size) {
+ size = min(size, 9u);
+ for (unsigned i=0; i < size; i++)
+ _values[i/3][i%3] = v[i];
+ for (unsigned i=size; i < 9; i++)
+ _values[i/3][i%3] = (i%4 ? 0 : 1);
+ return *this;
+}
+
+
+/** Set matrix values ((v0,v1,v2),(v3,v4,v5),(v6,v7,v8)).
+ * If vector v has less than 9 elements, the remaining matrix components will be set to
+ * those of the identity matrix.
+ * @param[in] v array containing the matrix components
+ * @param[in] start use vector components start,...,start+8 */
+Matrix& Matrix::set (const vector<double> &v, int start) {
+ unsigned size = min((unsigned)v.size()-start, 9u);
+ for (unsigned i=0; i < size; i++)
+ _values[i/3][i%3] = v[i+start];
+ for (unsigned i=size; i < 9; i++)
+ _values[i/3][i%3] = (i%4 ? 0 : 1);
+ return *this;
+}
+
+
+Matrix& Matrix::translate (double tx, double ty) {
+ if (tx != 0 || ty != 0) {
+ TranslationMatrix t(tx, ty);
+ rmultiply(t);
+ }
+ return *this;
+}
+
+
+Matrix& Matrix::scale (double sx, double sy) {
+ if (sx != 1 || sy != 1) {
+ ScalingMatrix s(sx, sy);
+ rmultiply(s);
+ }
+ return *this;
+}
+
+
+/** Multiplies this matrix by ((cos d, -sin d, 0), (sin d, cos d, 0), (0,0,1)) that
+ * describes an anti-clockwise rotation by d degrees.
+ * @param[in] deg rotation angle in degrees */
+Matrix& Matrix::rotate (double deg) {
+ RotationMatrix r(deg);
+ rmultiply(r);
+ return *this;
+}
+
+
+Matrix& Matrix::xskew (double deg) {
+ double t = tan(deg2rad(deg));
+ if (t != 0) {
+ double v[] = {1, t};
+ Matrix t(v, 2);
+ rmultiply(t);
+ }
+ return *this;
+}
+
+
+Matrix& Matrix::yskew (double deg) {
+ double t = tan(deg2rad(deg));
+ if (t != 0) {
+ double v[] = {1, 0, 0, t};
+ Matrix t(v, 4);
+ rmultiply(t);
+ }
+ return *this;
+}
+
+
+Matrix& Matrix::flip (bool haxis, double a) {
+ double s = 1;
+ if (haxis) // mirror at horizontal axis?
+ s = -1;
+ double v[] = {-s, 0, (haxis ? 0 : 2*a), 0, s, (haxis ? 2*a : 0), 0, 0, 1};
+ Matrix t(v);
+ rmultiply(t);
+ return *this;
+}
+
+
+/** Swaps rows and columns of the matrix. */
+Matrix& Matrix::transpose () {
+ for (int i=0; i < 3; i++)
+ for (int j=i+1; j < 3; j++)
+ swap(_values[i][j], _values[j][i]);
+ return *this;
+}
+
+
+/** Multiplies this matrix M with matrix tm (tm is the factor on the left side): M := tm * M */
+Matrix& Matrix::lmultiply (const Matrix &tm) {
+ Matrix ret;
+ for (int i=0; i < 3; i++)
+ for (int j=0; j < 3; j++)
+ for (int k=0; k < 3; k++)
+ ret._values[i][j] += _values[i][k] * tm._values[k][j];
+ return *this = ret;
+}
+
+
+/** Multiplies this matrix M with matrix tm (tm is the factor on the right side): M := M * tm */
+Matrix& Matrix::rmultiply (const Matrix &tm) {
+ Matrix ret;
+ for (int i=0; i < 3; i++)
+ for (int j=0; j < 3; j++)
+ for (int k=0; k < 3; k++)
+ ret._values[i][j] += tm._values[i][k] * _values[k][j];
+ return *this = ret;
+}
+
+
+Matrix& Matrix::invert () {
+ Matrix ret;
+ if (double denom = det(*this)) {
+ for (int i=0; i < 3; ++i) {
+ for (int j=0; j < 3; ++j) {
+ ret._values[i][j] = det(*this, i, j)/denom;
+ if ((i+j)%2 != 0)
+ ret._values[i][j] *= -1;
+ }
+ }
+ return *this = ret;
+ }
+ throw exception();
+}
+
+
+Matrix& Matrix::operator *= (double c) {
+ for (int i=0; i < 3; i++)
+ for (int j=0; j < 3; j++)
+ _values[i][j] *= c;
+ return *this;
+}
+
+
+DPair Matrix::operator * (const DPair &p) const {
+ double pp[] = {p.x(), p.y(), 1};
+ double ret[]= {0, 0};
+ for (int i=0; i < 2; i++)
+ for (int j=0; j < 3; j++)
+ ret[i] += _values[i][j] * pp[j];
+ return DPair(ret[0], ret[1]);
+}
+
+
+/** Returns true if this matrix equals. Checks equality by comparing the matrix components. */
+bool Matrix::operator == (const Matrix &m) const {
+ for (int i=0; i < 2; i++)
+ for (int j=0; j < 3; j++)
+ if (_values[i][j] != m._values[i][j])
+ return false;
+ return true;
+}
+
+
+/** Returns true if this matrix doesn't equal m. Checks inequality by comparing the matrix components. */
+bool Matrix::operator != (const Matrix &m) const {
+ for (int i=0; i < 2; i++)
+ for (int j=0; j < 3; j++)
+ if (_values[i][j] != m._values[i][j])
+ return true;
+ return false;
+}
+
+
+/** Returns true if this matrix is the identity matrix ((1,0,0),(0,1,0),(0,0,1)). */
+bool Matrix::isIdentity() const {
+ for (int i=0; i < 2; i++)
+ for (int j=0; j < 3; j++) {
+ const double &v = _values[i][j];
+ if ((i == j && v != 1) || (i != j && v != 0))
+ return false;
+ }
+ return true;
+}
+
+
+/** Checks whether this matrix describes a plain translation (without any other transformations).
+ * If so, the parameters tx and ty are filled with the translation components.
+ * @param[out] tx horizontal translation
+ * @param[out] ty vertical translation
+ * @return true if matrix describes a pure translation */
+bool Matrix::isTranslation (double &tx, double &ty) const {
+ tx = _values[0][2];
+ ty = _values[1][2];
+ for (int i=0; i < 3; i++)
+ for (int j=0; j < 2; j++) {
+ const double &v = _values[i][j];
+ if ((i == j && v != 1) || (i != j && v != 0))
+ return false;
+ }
+ return _values[2][2] == 1;
+}
+
+
+/** Gets a parameter for the transformation command.
+ * @param[in] is parameter chars are read from this stream
+ * @param[in] calc parameters can be arithmetic expressions, so we need a calculator to evaluate them
+ * @param[in] def default value if parameter is optional
+ * @param[in] optional true if parameter is optional
+ * @param[in] leadingComma true if first non-blank must be a comma
+ * @return value of argument */
+static double getArgument (istream &is, Calculator &calc, double def, bool optional, bool leadingComma) {
+ while (isspace(is.peek()))
+ is.get();
+ if (!optional && leadingComma && is.peek() != ',')
+ throw ParserException("',' expected");
+ if (is.peek() == ',') {
+ is.get(); // skip comma
+ optional = false; // now we expect a parameter
+ }
+ string expr;
+ while (is && !isupper(is.peek()) && is.peek() != ',')
+ expr += is.get();
+ if (expr.length() == 0) {
+ if (optional)
+ return def;
+ else
+ throw ParserException("parameter expected");
+ }
+ return calc.eval(expr);
+}
+
+
+Matrix& Matrix::parse (istream &is, Calculator &calc) {
+ *this = Matrix(1);
+ while (is) {
+ while (isspace(is.peek()))
+ is.get();
+ char cmd = is.get();
+ switch (cmd) {
+ case 'T': {
+ double tx = getArgument(is, calc, 0, false, false);
+ double ty = getArgument(is, calc, 0, true, true);
+ translate(tx, ty);
+ break;
+ }
+ case 'S': {
+ double sx = getArgument(is, calc, 1, false, false);
+ double sy = getArgument(is, calc, sx, true, true );
+ scale(sx, sy);
+ break;
+ }
+ case 'R': {
+ double a = getArgument(is, calc, 0, false, false);
+ double x = getArgument(is, calc, calc.getVariable("ux")+calc.getVariable("w")/2, true, true);
+ double y = getArgument(is, calc, calc.getVariable("uy")+calc.getVariable("h")/2, true, true);
+ translate(-x, -y);
+ rotate(a);
+ translate(x, y);
+ break;
+ }
+ case 'F': {
+ char c = is.get();
+ if (c != 'H' && c != 'V')
+ throw ParserException("'H' or 'V' expected");
+ double a = getArgument(is, calc, 0, false, false);
+ flip(c == 'H', a);
+ break;
+ }
+ case 'K': {
+ char c = is.get();
+ if (c != 'X' && c != 'Y')
+ throw ParserException("transformation command 'K' must be followed by 'X' or 'Y'");
+ double a = getArgument(is, calc, 0, false, false);
+ if (fabs(cos(deg2rad(a))) <= numeric_limits<double>::epsilon()) {
+ ostringstream oss;
+ oss << "illegal skewing angle: " << a << " degrees";
+ throw ParserException(oss.str());
+ }
+ if (c == 'X')
+ xskew(a);
+ else
+ yskew(a);
+ break;
+ }
+ case 'M': {
+ double v[9];
+ for (int i=0; i < 6; i++)
+ v[i] = getArgument(is, calc, i%4 ? 0 : 1, i!=0, i!=0);
+ // third row (0, 0, 1)
+ v[6] = v[7] = 0;
+ v[8] = 1;
+ Matrix tm(v);
+ rmultiply(tm);
+ break;
+ }
+ default:
+ ostringstream oss;
+ oss << "transformation command expected (found '" << cmd << "' instead)";
+ throw ParserException(oss.str());
+ }
+ }
+ return *this;
+}
+
+
+Matrix& Matrix::parse (const string &cmds, Calculator &calc) {
+ istringstream iss;
+ iss.str(cmds);
+ return parse(iss, calc);
+}
+
+
+/** Returns an SVG matrix expression that can be used in transform attributes.
+ * ((a,b,c),(d,e,f),(0,0,1)) => matrix(a d b e c f) */
+string Matrix::getSVG () const {
+ ostringstream oss;
+ oss << "matrix(";
+ for (int i=0; i < 3; i++) {
+ for (int j=0; j < 2; j++) {
+ if (i > 0 || j > 0)
+ oss << ' ';
+ oss << XMLString(_values[j][i]);
+ }
+ }
+ oss << ')';
+ return oss.str();
+}
+
+
+ostream& Matrix::write (ostream &os) const {
+ os << '(';
+ for (int i=0; i < 3; i++) {
+ os << '(' << _values[i][0];
+ for (int j=1; j < 3; j++)
+ os << ',' << _values[i][j];
+ os << ')';
+ if (i < 2)
+ os << ',';
+ }
+ os << ')';
+ return os;
+}
+
+
+//////////////////////////////////////////////////////////////////
+
+
+TranslationMatrix::TranslationMatrix (double tx, double ty) {
+ double v[] = {1, 0, tx, 0, 1, ty};
+ set(v, 6);
+}
+
+
+ScalingMatrix::ScalingMatrix (double sx, double sy) {
+ double v[] = {sx, 0, 0, 0, sy};
+ set(v, 5);
+}
+
+
+RotationMatrix::RotationMatrix (double deg) {
+ double rad = deg2rad(deg);
+ double c = cos(rad);
+ double s = sin(rad);
+ double v[] = {c, -s, 0, s, c};
+ set(v, 5);
+}
+
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Matrix.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Matrix.h
new file mode 100644
index 00000000000..d3a52439021
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Matrix.h
@@ -0,0 +1,104 @@
+/*************************************************************************
+** Matrix.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef MATRIX_H
+#define MATRIX_H
+
+#include <istream>
+#include <string>
+#include <vector>
+#include "MessageException.h"
+#include "Pair.h"
+
+
+struct ParserException : public MessageException
+{
+ ParserException (const std::string &msg) : MessageException(msg) {}
+};
+
+class Calculator;
+
+class Matrix
+{
+ friend double det (const Matrix &m);
+ friend double det (const Matrix &m, int row, int col);
+
+ public:
+ Matrix (const std::string &cmds, Calculator &calc);
+ Matrix (double d=0);
+ Matrix (double v[], unsigned size=9);
+ Matrix (const std::vector<double> &v, int start=0);
+ Matrix& set (double v[], unsigned size);
+ Matrix& set (const std::vector<double> &v, int start=0);
+ double get (int row, int col) const {return _values[row][col];}
+ Matrix& transpose ();
+ Matrix& invert ();
+ Matrix& parse (std::istream &is, Calculator &c);
+ Matrix& parse (const std::string &cmds, Calculator &c);
+ Matrix& lmultiply (const Matrix &tm);
+ Matrix& rmultiply (const Matrix &tm);
+ Matrix& translate (double tx, double ty);
+ Matrix& scale (double sx, double sy);
+ Matrix& rotate (double deg);
+ Matrix& xskew (double deg);
+ Matrix& yskew (double deg);
+ Matrix& flip (bool h, double a);
+ Matrix& operator *= (double c);
+ DPair operator * (const DPair &p) const;
+ bool operator == (const Matrix &m) const;
+ bool operator != (const Matrix &m) const;
+ bool isIdentity() const;
+ bool isTranslation (double &tx, double &ty) const;
+ std::string getSVG () const;
+ std::ostream& write (std::ostream &os) const;
+
+ private:
+ double _values[3][3]; // row x col
+};
+
+
+struct TranslationMatrix : public Matrix
+{
+ TranslationMatrix (double tx, double ty);
+};
+
+
+struct ScalingMatrix : public Matrix
+{
+ ScalingMatrix (double sx, double sy);
+};
+
+
+struct RotationMatrix : public Matrix
+{
+ RotationMatrix (double deg);
+};
+
+
+inline std::ostream& operator << (std::ostream &os, const Matrix &m) {
+ return m.write(os);
+}
+
+
+double det (const Matrix &m);
+double det (const Matrix &m, int row, int col);
+
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Message.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Message.cpp
new file mode 100644
index 00000000000..38407ad5f6d
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Message.cpp
@@ -0,0 +1,273 @@
+/*************************************************************************
+** Message.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstdarg>
+#include <cstdlib>
+#include <cstring>
+#include <iostream>
+#include <map>
+#include "Message.h"
+#include "Terminal.h"
+
+using namespace std;
+
+MessageStream::MessageStream () : _os(0), _nl(false), _col(1), _indent(0) {
+}
+
+
+MessageStream::MessageStream (std::ostream &os)
+ : _os(&os), _nl(true), _col(1), _indent(0)
+{
+ Terminal::init(os);
+}
+
+
+MessageStream::~MessageStream () {
+ if (_os && Message::COLORIZE)
+ Terminal::finish(*_os);
+}
+
+
+void MessageStream::putChar (const char c, ostream &os) {
+ switch (c) {
+ case '\r':
+ os << '\r';
+ _nl = true;
+ _col = 1;
+ return;
+ case '\n':
+ if (!_nl) {
+ _col = 1;
+ _nl = true;
+ os << '\n';
+ }
+ return;
+ default:
+ if (_nl) {
+ os << string(_indent, ' ');
+ _col += _indent;
+ }
+ else {
+ const int cols = Terminal::columns();
+ if (cols > 0 && _col >= cols) {
+#ifndef __WIN32__
+ // move cursor to next line explicitly (not necessary in Windows/DOS terminal)
+ os << '\n';
+#endif
+ os << string(_indent, ' ');
+ _col = _indent+1;
+ }
+ else
+ _col++;
+ }
+ _nl = false;
+ if (!_nl || c != '\n')
+ os << c;
+ }
+}
+
+
+MessageStream& MessageStream::operator << (const char *str) {
+ if (_os && str) {
+ const char *first = str;
+ while (*first) {
+ const char *last = strchr(first, '\n');
+ if (!last)
+ last = first+strlen(first)-1;
+#ifndef __WIN32__
+ // move cursor to next line explicitly (not necessary in Windows/DOS terminal)
+ const int cols = Terminal::columns();
+ int len = last-first+1;
+ if (cols > 0 && _col+len > cols && _indent+len <= cols)
+ putChar('\n', *_os);
+#endif
+ while (first <= last)
+ putChar(*first++, *_os);
+ first = last+1;
+ }
+ }
+ return *this;
+}
+
+
+MessageStream& MessageStream::operator << (const char &c) {
+ if (_os)
+ putChar(c, *_os);
+ return *this;
+}
+
+
+void MessageStream::indent (bool reset) {
+ if (reset)
+ _indent = 0;
+ _indent += 2;
+}
+
+
+void MessageStream::outdent (bool all) {
+ if (all)
+ _indent = 0;
+ else if (_indent > 0)
+ _indent -= 2;
+}
+
+
+void MessageStream::clearline () {
+ if (_os) {
+ int cols = Terminal::columns();
+ *_os << '\r' << string(cols ? cols-1 : 79, ' ') << '\r';
+ _nl = true;
+ _col = 1;
+ }
+}
+
+static MessageStream nullStream;
+static MessageStream messageStream(cerr);
+
+
+//////////////////////////////
+
+// maximal verbosity
+int Message::LEVEL = Message::MESSAGES | Message::WARNINGS | Message::ERRORS;
+bool Message::COLORIZE = false;
+bool Message::_initialized = false;
+Message::Color Message::_classColors[9];
+
+
+/** Returns the stream for usual messages. */
+MessageStream& Message::mstream (bool prefix, MessageClass mclass) {
+ init();
+ MessageStream *ms = (LEVEL & MESSAGES) ? &messageStream : &nullStream;
+ if (COLORIZE && ms && ms->os()) {
+ Terminal::fgcolor(_classColors[mclass].foreground, *ms->os());
+ Terminal::bgcolor(_classColors[mclass].background, *ms->os());
+ }
+ if (prefix)
+ *ms << "\nMESSAGE: ";
+ return *ms;
+}
+
+
+/** Returns the stream for warning messages. */
+MessageStream& Message::wstream (bool prefix) {
+ init();
+ MessageStream *ms = (LEVEL & WARNINGS) ? &messageStream : &nullStream;
+ if (COLORIZE && ms && ms->os()) {
+ Terminal::fgcolor(_classColors[MC_WARNING].foreground, *ms->os());
+ Terminal::bgcolor(_classColors[MC_WARNING].background, *ms->os());
+ }
+ if (prefix)
+ *ms << "\nWARNING: ";
+ return *ms;
+}
+
+
+/** Returns the stream for error messages. */
+MessageStream& Message::estream (bool prefix) {
+ init();
+ MessageStream *ms = (LEVEL & ERRORS) ? &messageStream : &nullStream;
+ if (COLORIZE && ms && ms->os()) {
+ Terminal::fgcolor(_classColors[MC_ERROR].foreground, *ms->os());
+ Terminal::bgcolor(_classColors[MC_ERROR].background, *ms->os());
+ }
+ if (prefix)
+ *ms << "\nERROR: ";
+ return *ms;
+}
+
+
+static bool colorchar2int (char colorchar, int *val) {
+ colorchar = tolower(colorchar);
+ if (colorchar >= '0' && colorchar <= '9')
+ *val = int(colorchar-'0');
+ else if (colorchar >= 'a' && colorchar <= 'f')
+ *val = int(colorchar-'a'+10);
+ else if (colorchar == '*')
+ *val = -1;
+ else
+ return false;
+ return true;
+}
+
+
+/** Initializes the Message class. Sets the colors for each message set.
+ * The colors can be changed via environment variable DVISVGM_COLORS. Its
+ * value must be a sequence of color entries of the form gg:BF where the
+ * two-letter ID gg specifies a message set, B the hex digit of the
+ * background, and F the hex digit of the foreground/text color.
+ * Color codes:
+ * - 1: red, 2: green, 4: blue
+ * - 0-7: dark colors
+ * - 8-F: light colors
+ * - *: default color
+ * Example: num:01 sets page number messages to red on black background */
+void Message::init () {
+ if (_initialized || !Message::COLORIZE)
+ return;
+
+ // set default message colors
+ _classColors[MC_ERROR] = Color(Terminal::RED, true);
+ _classColors[MC_WARNING] = Color(Terminal::YELLOW);
+ _classColors[MC_PAGE_NUMBER] = Color(Terminal::BLUE, true);
+ _classColors[MC_PAGE_SIZE] = Color(Terminal::MAGENTA);
+ _classColors[MC_PAGE_WRITTEN] = Color(Terminal::GREEN);
+ _classColors[MC_STATE] = Color(Terminal::CYAN);
+ _classColors[MC_TRACING] = Color(Terminal::BLUE);
+ _classColors[MC_PROGRESS] = Color(Terminal::MAGENTA);
+
+ if (const char *color_str = getenv("DVISVGM_COLORS")) {
+ map<string, MessageClass> classes;
+ classes["er"] = MC_ERROR;
+ classes["wn"] = MC_WARNING;
+ classes["pn"] = MC_PAGE_NUMBER;
+ classes["ps"] = MC_PAGE_SIZE;
+ classes["fw"] = MC_PAGE_WRITTEN;
+ classes["sm"] = MC_STATE;
+ classes["tr"] = MC_TRACING;
+ classes["pi"] = MC_PROGRESS;
+ const char *p=color_str;
+
+ // skip leading whitespace
+ while (isspace(*p))
+ ++p;
+
+ // iterate over color assignments
+ while (strlen(p) >= 5) {
+ map<string, MessageClass>::iterator it = classes.find(string(p, 2));
+ if (it != classes.end() && p[2] == '=') {
+ int bgcolor, fgcolor;
+ if (colorchar2int(p[3], &bgcolor) && colorchar2int(p[4], &fgcolor)) {
+ _classColors[it->second].background = bgcolor;
+ _classColors[it->second].foreground = fgcolor;
+ }
+ }
+ p += 5;
+
+ // skip trailing characters in a malformed entry
+ while (!isspace(*p) && *p != ':' && *p != ';')
+ ++p;
+ // skip separation characters
+ while (isspace(*p) || *p == ':' || *p == ';')
+ ++p;
+ }
+ }
+ _initialized = true;
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Message.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Message.h
new file mode 100644
index 00000000000..bc4a9ed016c
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Message.h
@@ -0,0 +1,114 @@
+/*************************************************************************
+** Message.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef MESSAGE_H
+#define MESSAGE_H
+
+#include <algorithm>
+#include <string>
+#include <ostream>
+#include <sstream>
+#include "Terminal.h"
+#include "types.h"
+
+
+class Message;
+
+class MessageStream
+{
+ friend class Message;
+
+ public:
+ MessageStream ();
+ MessageStream (std::ostream &os);
+ ~MessageStream ();
+
+ template <typename T>
+ MessageStream& operator << (const T &obj) {
+ std::ostringstream oss;
+ oss << obj;
+ (*this) << oss.str();
+ return *this;
+ }
+
+ MessageStream& operator << (const char *str);
+ MessageStream& operator << (const char &c);
+ MessageStream& operator << (const std::string &str) {return (*this) << str.c_str();}
+
+ void indent (int level) {_indent = std::max(0, level*2);}
+ void indent (bool reset=false);
+ void outdent (bool all=false);
+ void clearline ();
+
+ protected:
+ void putChar (const char c, std::ostream &os);
+ std::ostream* os () {return _os;}
+
+ private:
+ std::ostream *_os;
+ bool _nl; ///< true if previous character was a newline
+ int _col; ///< current terminal column
+ int _indent; ///< indentation width (number of columns/characters)
+};
+
+
+class Message
+{
+ struct Color {
+ Color () : foreground(-1), background(-1) {}
+ Color (Int8 fgcolor) : foreground(fgcolor), background(-1) {}
+ Color (Int8 fgcolor, bool light) : foreground(fgcolor + (light ? 8 : 0)), background(-1) {}
+ Color (Int8 fgcolor, Int8 bgcolor) : foreground(fgcolor), background(bgcolor) {}
+ Int8 foreground;
+ Int8 background;
+ };
+
+ public:
+ enum MessageClass {
+ MC_ERROR,
+ MC_WARNING,
+ MC_MESSAGE,
+ MC_PAGE_NUMBER,
+ MC_PAGE_SIZE,
+ MC_PAGE_WRITTEN,
+ MC_STATE,
+ MC_TRACING,
+ MC_PROGRESS,
+ };
+
+ public:
+ static MessageStream& mstream (bool prefix=false, MessageClass mclass=MC_MESSAGE);
+ static MessageStream& estream (bool prefix=false);
+ static MessageStream& wstream (bool prefix=false);
+
+ enum {ERRORS=1, WARNINGS=2, MESSAGES=4};
+ static int LEVEL;
+ static bool COLORIZE;
+
+ protected:
+ static void init ();
+
+
+ private:
+ static Color _classColors[];
+ static bool _initialized;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MessageException.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MessageException.h
new file mode 100644
index 00000000000..e6c4ace019f
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MessageException.h
@@ -0,0 +1,39 @@
+/*************************************************************************
+** MessageException.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef MESSAGEEXCEPTION_H
+#define MESSAGEEXCEPTION_H
+
+#include <exception>
+#include <string>
+
+
+class MessageException : public std::exception
+{
+ public:
+ MessageException (const std::string &msg) : _message(msg) {}
+ virtual ~MessageException () throw() {}
+ const char* what () const throw() {return _message.c_str();}
+
+ private:
+ std::string _message;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MetafontWrapper.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MetafontWrapper.cpp
new file mode 100644
index 00000000000..37e3b68f92f
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MetafontWrapper.cpp
@@ -0,0 +1,133 @@
+/*************************************************************************
+** MetafontWrapper.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstdlib>
+#include <cctype>
+#include <fstream>
+#include <sstream>
+#include "FileSystem.h"
+#include "FileFinder.h"
+#include "Message.h"
+#include "MetafontWrapper.h"
+#include "Process.h"
+#include "SignalHandler.h"
+#include "macros.h"
+
+using namespace std;
+
+
+MetafontWrapper::MetafontWrapper (const string &fname) : _fontname(fname)
+{
+}
+
+
+/** Calls Metafont and evaluates the logfile. If a gf file was successfully
+ * generated the dpi value is stripped from the filename
+ * (e.g. cmr10.600gf => cmr10.gf). This makes life easier...
+ * @param[in] mode Metafont mode, e.g. "ljfour"
+ * @param[in] mag magnification factor
+ * @return true on success */
+bool MetafontWrapper::call (const string &mode, double mag) {
+ if (!FileFinder::lookup(_fontname+".mf"))
+ return false; // mf file not available => no need to call the "slow" Metafont
+ FileSystem::remove(_fontname+".gf");
+
+#ifdef __WIN32__
+#ifdef TEXLIVEWIN32
+ const char *mfname = "mf-nowin.exe";
+#else
+ const char *mfname = "mf.exe";
+#endif
+ const char *cmd = FileFinder::lookup(mfname, false);
+ if (!cmd) {
+ Message::estream(true) << "can't run Metafont (" << mfname << " not found)\n";
+ return false;
+ }
+#else
+ const char *cmd = "mf";
+#endif
+ ostringstream oss;
+ oss << "\"\\mode=" << mode << ";"
+ "mag:=" << mag << ";"
+ "batchmode;"
+ "input " << _fontname << "\"";
+ Message::mstream(false, Message::MC_STATE) << "\nrunning Metafont for " << _fontname << '\n';
+ Process mf_process(cmd, oss.str().c_str());
+ mf_process.run();
+
+ // try to read Metafont's logfile and get name of created GF file
+ ifstream ifs((_fontname+".log").c_str());
+ if (ifs) {
+ char buf[128];
+ while (ifs) {
+ ifs.getline(buf, 128);
+ string line = buf;
+ if (line.substr(0, 15) == "! Interruption.")
+ SignalHandler::instance().trigger(true);
+ if (line.substr(0, 17) == "Output written on") {
+ size_t pos = line.find("gf ", 18+_fontname.length());
+ if (pos != string::npos) {
+ string gfname = line.substr(18, pos-16); // GF filename found
+ FileSystem::rename(gfname, _fontname+".gf");
+ }
+ break;
+ }
+ }
+ }
+ ifstream gf((_fontname+".gf").c_str());
+ return gf;
+}
+
+
+/** Calls Metafont if output files (tfm and gf) don't already exist.
+ * @param[in] mode Metafont mode to be used (e.g. 'ljfour')
+ * @param[in] mag magnification factor
+ * @return true on success */
+bool MetafontWrapper::make (const string &mode, double mag) {
+ ifstream tfm((_fontname+".tfm").c_str());
+ ifstream gf((_fontname+".gf").c_str());
+ if (gf && tfm) // @@ distinguish between gf and tfm
+ return true;
+ return call(mode, mag);
+}
+
+
+bool MetafontWrapper::success () const {
+ ifstream tfm((_fontname+".tfm").c_str());
+ ifstream gf((_fontname+".gf").c_str());
+ return tfm && gf;
+}
+
+
+/** Remove all files created by a Metafont call (tfm, gf, log).
+ * @param[in] keepGF if true, GF files won't be removed */
+void MetafontWrapper::removeOutputFiles (bool keepGF) {
+ removeOutputFiles(_fontname, keepGF);
+}
+
+
+/** Remove all files created by a Metafont call for a given font (tfm, gf, log).
+ * @param[in] fontname name of font whose temporary files should be removed
+ * @param[in] keepGF if true, GF files will be kept */
+void MetafontWrapper::removeOutputFiles (const string &fontname, bool keepGF) {
+ const char *ext[] = {"gf", "tfm", "log", 0};
+ for (const char **p = keepGF ? ext+2 : ext; *p; ++p)
+ FileSystem::remove(fontname + "." + *p);
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MetafontWrapper.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MetafontWrapper.h
new file mode 100644
index 00000000000..2a69654ff95
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MetafontWrapper.h
@@ -0,0 +1,43 @@
+/*************************************************************************
+** MetafontWrapper.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef METAFONTWRAPPER_H
+#define METAFONTWRAPPER_H
+
+#include <string>
+
+
+struct FileFinder;
+
+class MetafontWrapper
+{
+ public:
+ MetafontWrapper (const std::string &fontname);
+ bool call (const std::string &mode, double mag);
+ bool make (const std::string &mode, double mag);
+ bool success () const;
+ void removeOutputFiles (bool keepGF=false);
+ static void removeOutputFiles (const std::string &fontname, bool keepGF=false);
+
+ private:
+ std::string _fontname;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MiKTeXCom.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MiKTeXCom.cpp
new file mode 100644
index 00000000000..ddf5af52f80
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MiKTeXCom.cpp
@@ -0,0 +1,89 @@
+/*************************************************************************
+** MiKTeXCom.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <comdef.h>
+#include <string>
+#include "MessageException.h"
+#include "MiKTeXCom.h"
+#include "macros.h"
+
+using namespace std;
+
+
+MiKTeXCom::MiKTeXCom () : _session(0) {
+ if (FAILED(CoInitialize(0)))
+ throw MessageException("COM library could not be initialized\n");
+#ifdef _MSC_VER
+ HRESULT hres = _session.CreateInstance(L"MiKTeX.Session");
+#elif defined(__WIN64__)
+ HRESULT hres = CoCreateInstance(CLSID_MiKTeXSession2_9, 0, CLSCTX_LOCAL_SERVER, IID_ISession2, (void**)&_session);
+#else
+ HRESULT hres = CoCreateInstance(CLSID_MiKTeXSession2_9, 0, CLSCTX_INPROC_SERVER, IID_ISession2, (void**)&_session);
+#endif
+ if (FAILED(hres))
+ throw MessageException("MiKTeX.Session could not be initialized");
+}
+
+
+MiKTeXCom::~MiKTeXCom () {
+#ifdef _MSC_VER
+ _session.Release();
+#else
+ _session->Release();
+#endif
+ _session = 0; // avoid automatic calling of Release() after CoUninitialize()
+ CoUninitialize();
+}
+
+
+string MiKTeXCom::getVersion () {
+#ifdef _MSC_VER
+ MiKTeXSetupInfo info = _session->GetMiKTeXSetupInfo();
+#else
+ MiKTeXSetupInfo info;
+ _session->GetMiKTeXSetupInfo(&info);
+#endif
+ _bstr_t version = info.version;
+ return string(version);
+}
+
+
+const char* MiKTeXCom::findFile (const char *fname) {
+ try {
+ _bstr_t path;
+ static string ret;
+#ifdef _MSC_VER
+ HRESULT hres = _session->FindFile(fname, path.GetAddress());
+ bool found = (hres != 0);
+#else
+ VARIANT_BOOL found_var;
+ _session->FindFile(_bstr_t(fname), path.GetAddress(), &found_var);
+ bool found = (found_var == VARIANT_TRUE);
+#endif
+ if (found) {
+ ret = _bstr_t(path);
+ return ret.c_str();
+ }
+ return 0;
+ }
+ catch (_com_error &e) {
+ throw MessageException((const char*)e.Description());
+ }
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MiKTeXCom.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MiKTeXCom.h
new file mode 100644
index 00000000000..8649cc9f377
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/MiKTeXCom.h
@@ -0,0 +1,51 @@
+/*************************************************************************
+** MiKTeXCom.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef MIKTEXCOM_H
+#define MIKTEXCOM_H
+
+#include <string>
+
+#ifdef _MSC_VER
+#import <MiKTeX209-session.tlb>
+using namespace MiKTeXSession2_9;
+#else
+#include "miktex209-session.h"
+#endif
+
+
+class MiKTeXCom
+{
+ public:
+ MiKTeXCom ();
+ ~MiKTeXCom ();
+ std::string getVersion ();
+ const char* findFile (const char* fname);
+
+ private:
+#ifdef _MSC_VER
+ ISession2Ptr _session;
+#else
+ ISession2 *_session;
+#endif
+};
+
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/NoPsSpecialHandler.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/NoPsSpecialHandler.cpp
new file mode 100644
index 00000000000..31fb41da3c2
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/NoPsSpecialHandler.cpp
@@ -0,0 +1,45 @@
+/*************************************************************************
+** NoPsSpecialHandler.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include "Message.h"
+#include "NoPsSpecialHandler.h"
+
+using namespace std;
+
+
+bool NoPsSpecialHandler::process (const char *prefix, istream &is, SpecialActions *actions) {
+ _count++;
+ return true;
+}
+
+
+void NoPsSpecialHandler::dviEndPage () {
+ if (_count > 0) {
+ string suffix = (_count > 1 ? "s" : "");
+ Message::wstream(true) << _count << " PostScript special" << suffix << " ignored. The resulting SVG might look wrong.\n";
+ _count = 0;
+ }
+}
+
+
+const char** NoPsSpecialHandler::prefixes () const {
+ static const char *pfx[] = {"header=", "psfile=", "PSfile=", "ps:", "ps::", "!", "\"", 0};
+ return pfx;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/NoPsSpecialHandler.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/NoPsSpecialHandler.h
new file mode 100644
index 00000000000..a73768ca808
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/NoPsSpecialHandler.h
@@ -0,0 +1,43 @@
+/*************************************************************************
+** NoPsSpecialHandler.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef NOPSSPECIALHANDLER_H
+#define NOPSSPECIALHANDLER_H
+
+#include "SpecialHandler.h"
+
+class NoPsSpecialHandler : public SpecialHandler
+{
+ public:
+ NoPsSpecialHandler () : _count(0) {}
+ bool process (const char *prefix, std::istream &is, SpecialActions *actions);
+ void dviEndPage ();
+ const char* name () const {return 0;}
+ const char* info () const {return 0;}
+ const char** prefixes () const;
+
+ protected:
+ bool isEndPageListener () const {return true;}
+
+ private:
+ unsigned _count; // number of PS specials skipped
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSInterpreter.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSInterpreter.cpp
new file mode 100644
index 00000000000..f1fad9448d8
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSInterpreter.cpp
@@ -0,0 +1,324 @@
+/*************************************************************************
+** PSInterpreter.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstring>
+#include <fstream>
+#include <iostream>
+#include <sstream>
+#include "FileFinder.h"
+#include "InputReader.h"
+#include "Message.h"
+#include "PSInterpreter.h"
+#include "SignalHandler.h"
+
+using namespace std;
+
+
+const char *PSInterpreter::GSARGS[] = {
+ "gs", // dummy name
+ "-q", // be quiet, suppress gs banner
+ "-dSAFER", // disallow writing of files
+ "-dNODISPLAY", // we don't need a display device
+ "-dNOPAUSE", // keep going
+ "-dWRITESYSTEMDICT", // leave systemdict writable as some operators must be replaced
+ "-dNOPROMPT",
+// "-dNOBIND",
+};
+
+
+/** Constructs a new PSInterpreter object.
+ * @param[in] actions template methods to be executed after recognizing the corresponding PS operator. */
+PSInterpreter::PSInterpreter (PSActions *actions)
+ : _mode(PS_NONE), _actions(actions), _bytesToRead(0), _inError(false), _initialized(false)
+{
+}
+
+
+void PSInterpreter::init () {
+ if (!_initialized) {
+ _gs.init(sizeof(GSARGS)/sizeof(char*), GSARGS, this);
+ _gs.set_stdio(input, output, error);
+ _initialized = true;
+ // Before executing any random PS code redefine some operators and run
+ // initializing PS code. This cannot be done in the constructor because we
+ // need the completely initialized PSInterpreter object here.
+ execute(PSDEFS);
+ }
+}
+
+
+PSActions* PSInterpreter::setActions (PSActions *actions) {
+ PSActions *old_actions = _actions;
+ _actions = actions;
+ return old_actions;
+}
+
+
+/** Checks if the given status value returned by Ghostscript indicates an error.
+ * @param[in] status status value returned by Ghostscript after the execution of a PS snippet
+ * @throw PSException if the status value indicates a PostScript error */
+void PSInterpreter::checkStatus (int status) {
+ if (status < 0) {
+ _mode = PS_QUIT;
+ if (status < -100)
+ throw PSException("fatal error");
+ if (_errorMessage.empty())
+ throw PSException(_gs.error_name(status));
+ throw PSException(_errorMessage);
+ }
+}
+
+
+/** Executes a chunk of PostScript code.
+ * @param[in] str buffer containing the code
+ * @param[in] len number of characters in buffer
+ * @param[in] flush If true, a final 'flush' is sent which forces the output buffer to be written immediately.
+ * @return true if the assigned number of bytes have been read */
+bool PSInterpreter::execute (const char *str, size_t len, bool flush) {
+ init();
+ if (_mode == PS_QUIT)
+ return false;
+
+ int status=0;
+ if (_mode == PS_NONE) {
+ _gs.run_string_begin(0, &status);
+ _mode = PS_RUNNING;
+ }
+ checkStatus(status);
+
+ bool finished=false;
+ if (_bytesToRead > 0 && len >= _bytesToRead) {
+ len = _bytesToRead;
+ finished = true;
+ }
+
+ // feed Ghostscript with code chunks that are not larger than 64KB
+ // => see documentation of gsapi_run_string_foo()
+ const char *p=str;
+ while (PS_RUNNING && len > 0) {
+ SignalHandler::instance().check();
+ size_t chunksize = min(len, (size_t)0xffff);
+ _gs.run_string_continue(p, chunksize, 0, &status);
+ p += chunksize;
+ len -= chunksize;
+ if (_bytesToRead > 0)
+ _bytesToRead -= chunksize;
+ if (status == -101) // e_Quit
+ _mode = PS_QUIT;
+ else
+ checkStatus(status);
+ }
+ if (flush) {
+ // force writing contents of output buffer
+ _gs.run_string_continue("\nflush ", 7, 0, &status);
+ }
+ return finished;
+}
+
+
+/** Executes a chunk of PostScript code read from a stream. The method returns on EOF.
+ * @param[in] is the input stream
+ * @return true if the assigned number of bytes have been read */
+bool PSInterpreter::execute (istream &is) {
+ char buf[4096];
+ bool finished = false;
+ while (is && !is.eof() && !finished) {
+ is.read(buf, 4096);
+ finished = execute(buf, is.gcount(), false);
+ }
+ execute("\n", 1);
+ return finished;
+}
+
+
+/** This callback function handles input from stdin to Ghostscript. Currently not needed.
+ * @param[in] inst pointer to calling instance of PSInterpreter
+ * @param[in] buf takes the read characters
+ * @param[in] len size of buffer buf
+ * @return number of characters read */
+int GSDLLCALL PSInterpreter::input (void *inst, char *buf, int len) {
+ return 0;
+}
+
+
+/** This callback function handles output from Ghostscript to stdout. It looks for
+ * emitted commands staring with "dvi." and executes them by calling method callActions.
+ * Ghostscript sends the text in chunks by several calls of this function.
+ * Unfortunately, the PostScript specification wants error messages also to be sent to stdout
+ * instead of stderr. Thus, we must collect and concatenate the chunks until an evaluable text
+ * snippet is completely received. Furthermore, error messages have to be recognized and to be
+ * filtered out.
+ * @param[in] inst pointer to calling instance of PSInterpreter
+ * @param[in] buf contains the characters to be output
+ * @param[in] len number of characters in buf
+ * @return number of processed characters (equals 'len') */
+int GSDLLCALL PSInterpreter::output (void *inst, const char *buf, int len) {
+ PSInterpreter *self = static_cast<PSInterpreter*>(inst);
+ if (self && self->_actions) {
+ const size_t MAXLEN = 512; // maximal line length (longer lines are of no interest)
+ const char *end = buf+len-1; // last position of buf
+ for (const char *first=buf, *last=buf; first <= end; last++, first=last) {
+ // move first and last to begin and end of the next line, respectively
+ while (last < end && *last != '\n')
+ last++;
+ size_t linelength = last-first+1;
+ if (linelength > MAXLEN) // skip long lines since they don't contain any relevant information
+ continue;
+
+ vector<char> &linebuf = self->_linebuf; // just a shorter name...
+ if ((*last == '\n' || !self->active()) || self->_inError) {
+ if (linelength + linebuf.size() > 1) { // prefix "dvi." plus final newline
+ SplittedCharInputBuffer ib(linebuf.empty() ? 0 : &linebuf[0], linebuf.size(), first, linelength);
+ BufferInputReader in(ib);
+ if (self->_inError)
+ self->_errorMessage += string(first, linelength);
+ else {
+ in.skipSpace();
+ if (in.check("Unrecoverable error: ")) {
+ self->_errorMessage.clear();
+ while (!in.eof())
+ self->_errorMessage += in.get();
+ self->_inError = true;
+ }
+ else if (in.check("dvi."))
+ self->callActions(in);
+ }
+ }
+ linebuf.clear();
+ }
+ else { // no line end found =>
+ // save remaining characters and prepend them to the next incoming chunk of characters
+ if (linebuf.size() + linelength > MAXLEN)
+ linebuf.clear(); // don't care for long lines
+ else {
+ size_t currsize = linebuf.size();
+ linebuf.resize(currsize+linelength);
+ memcpy(&linebuf[currsize], first, linelength);
+ }
+ }
+ }
+ }
+ return len;
+}
+
+
+/** Converts a vector of strings to a vector of doubles.
+ * @param[in] str the strings to be converted
+ * @param[out] d the resulting doubles */
+static void str2double (const vector<string> &str, vector<double> &d) {
+ for (size_t i=0; i < str.size(); i++) {
+ istringstream iss(str[i]);
+ iss >> d[i];
+ }
+}
+
+
+/** Evaluates a command emitted by Ghostscript and invokes the corresponding
+ * method of interface class PSActions.
+ * @param[in] in reader pointing to the next command */
+void PSInterpreter::callActions (InputReader &in) {
+ // array of currently supported operators (must be ascendingly sorted)
+ static const struct Operator {
+ const char *name; // name of operator
+ int pcount; // number of parameters (< 0 : variable number of parameters)
+ void (PSActions::*op)(vector<double> &p); // operation handler
+ } operators [] = {
+ {"applyscalevals", 3, &PSActions::applyscalevals},
+ {"clip", 0, &PSActions::clip},
+ {"closepath", 0, &PSActions::closepath},
+ {"curveto", 6, &PSActions::curveto},
+ {"eoclip", 0, &PSActions::eoclip},
+ {"eofill", 0, &PSActions::eofill},
+ {"fill", 0, &PSActions::fill},
+ {"grestore", 0, &PSActions::grestore},
+ {"grestoreall", 0, &PSActions::grestoreall},
+ {"gsave", 0, &PSActions::gsave},
+ {"initclip", 0, &PSActions::initclip},
+ {"lineto", 2, &PSActions::lineto},
+ {"makepattern", -1, &PSActions::makepattern},
+ {"moveto", 2, &PSActions::moveto},
+ {"newpath", 0, &PSActions::newpath},
+ {"querypos", 2, &PSActions::querypos},
+ {"restore", 1, &PSActions::restore},
+ {"rotate", 1, &PSActions::rotate},
+ {"save", 1, &PSActions::save},
+ {"scale", 2, &PSActions::scale},
+ {"setcmykcolor", 4, &PSActions::setcmykcolor},
+ {"setdash", -1, &PSActions::setdash},
+ {"setgray", 1, &PSActions::setgray},
+ {"sethsbcolor", 3, &PSActions::sethsbcolor},
+ {"setlinecap", 1, &PSActions::setlinecap},
+ {"setlinejoin", 1, &PSActions::setlinejoin},
+ {"setlinewidth", 1, &PSActions::setlinewidth},
+ {"setmatrix", 6, &PSActions::setmatrix},
+ {"setmiterlimit", 1, &PSActions::setmiterlimit},
+ {"setopacityalpha", 1, &PSActions::setopacityalpha},
+ {"setpattern", -1, &PSActions::setpattern},
+ {"setrgbcolor", 3, &PSActions::setrgbcolor},
+ {"stroke", 0, &PSActions::stroke},
+ {"translate", 2, &PSActions::translate},
+ };
+ if (_actions) {
+ in.skipSpace();
+ // binary search
+ int first=0, last=sizeof(operators)/sizeof(Operator)-1;
+ while (first <= last) {
+ int mid = first+(last-first)/2;
+ int cmp = in.compare(operators[mid].name);
+ if (cmp > 0)
+ last = mid-1;
+ else if (cmp < 0)
+ first = mid+1;
+ else {
+ // collect parameters and call handler
+ vector<string> params;
+ int pcount = operators[mid].pcount;
+ if (pcount < 0) { // variable number of parameters?
+ in.skipSpace();
+ while (!in.eof()) { // read all available parameters
+ params.push_back(in.getString());
+ in.skipSpace();
+ }
+ }
+ else { // fixed number of parameters
+ for (int i=0; i < pcount; i++) {
+ in.skipSpace();
+ params.push_back(in.getString());
+ }
+ }
+ vector<double> v(params.size());
+ str2double(params, v);
+ (_actions->*operators[mid].op)(v);
+ _actions->executed();
+ }
+ }
+ }
+}
+
+
+/** This callback function handles output from Ghostscript to stderr.
+ * @param[in] inst pointer to calling instance of PSInterpreter
+ * @param[in] buf contains the characters to be output
+ * @param[in] len number of chars in buf
+ * @return number of processed characters */
+int GSDLLCALL PSInterpreter::error (void *inst, const char *buf, int len) {
+ return len;
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSInterpreter.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSInterpreter.h
new file mode 100644
index 00000000000..4e46732a420
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSInterpreter.h
@@ -0,0 +1,121 @@
+/*************************************************************************
+** PSInterpreter.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef PSINTERPRETER_H
+#define PSINTERPRETER_H
+
+#include <cstring>
+#include <istream>
+#include <string>
+#include <vector>
+#include "Ghostscript.h"
+#include "InputReader.h"
+#include "MessageException.h"
+
+
+struct PSException : public MessageException
+{
+ PSException (const std::string &msg) : MessageException(msg) {}
+};
+
+
+/** This interface provides the template methods called by PSInterpreter when executing a PS snippet.
+ * Each method corresponds to a PostScript operator of the same name. */
+struct PSActions
+{
+ virtual ~PSActions () {}
+ virtual void applyscalevals (std::vector<double> &p) =0;
+ virtual void clip (std::vector<double> &p) =0;
+ virtual void closepath (std::vector<double> &p) =0;
+ virtual void curveto (std::vector<double> &p) =0;
+ virtual void eoclip (std::vector<double> &p) =0;
+ virtual void eofill (std::vector<double> &p) =0;
+ virtual void fill (std::vector<double> &p) =0;
+ virtual void gsave (std::vector<double> &p) =0;
+ virtual void grestore (std::vector<double> &p) =0;
+ virtual void grestoreall (std::vector<double> &p) =0;
+ virtual void initclip (std::vector<double> &p) =0;
+ virtual void lineto (std::vector<double> &p) =0;
+ virtual void makepattern (std::vector<double> &p) =0;
+ virtual void moveto (std::vector<double> &p) =0;
+ virtual void newpath (std::vector<double> &p) =0;
+ virtual void querypos (std::vector<double> &p) =0;
+ virtual void restore (std::vector<double> &p) =0;
+ virtual void rotate (std::vector<double> &p) =0;
+ virtual void save (std::vector<double> &p) =0;
+ virtual void scale (std::vector<double> &p) =0;
+ virtual void setcmykcolor (std::vector<double> &cmyk) =0;
+ virtual void setdash (std::vector<double> &p) =0;
+ virtual void setgray (std::vector<double> &p) =0;
+ virtual void sethsbcolor (std::vector<double> &hsb) =0;
+ virtual void setlinecap (std::vector<double> &p) =0;
+ virtual void setlinejoin (std::vector<double> &p) =0;
+ virtual void setlinewidth (std::vector<double> &p) =0;
+ virtual void setmatrix (std::vector<double> &p) =0;
+ virtual void setmiterlimit (std::vector<double> &p) =0;
+ virtual void setopacityalpha (std::vector<double> &p) =0;
+ virtual void setpattern (std::vector<double> &p) =0;
+ virtual void setrgbcolor (std::vector<double> &rgb) =0;
+ virtual void stroke (std::vector<double> &p) =0;
+ virtual void translate (std::vector<double> &p) =0;
+ virtual void executed () {} // triggered if one of the above PS operators has been executed
+};
+
+
+/** This class provides methods to execute chunks of PostScript code and calls
+ * several template methods on invocation of selected PS operators (see PSActions). */
+class PSInterpreter
+{
+ enum Mode {PS_NONE, PS_RUNNING, PS_QUIT};
+
+ public:
+ PSInterpreter (PSActions *actions=0);
+ bool execute (const char *str, size_t len, bool flush=true);
+ bool execute (const char *str) {return execute(str, std::strlen(str));}
+ bool execute (const std::string &str) {return execute(str.c_str());}
+ bool execute (std::istream &is);
+ bool active () const {return _mode != PS_QUIT;}
+ void limit (size_t max_bytes) {_bytesToRead = max_bytes;}
+ PSActions* setActions (PSActions *actions);
+
+ protected:
+ void init ();
+ // callback functions
+ static int GSDLLCALL input (void *inst, char *buf, int len);
+ static int GSDLLCALL output (void *inst, const char *buf, int len);
+ static int GSDLLCALL error (void *inst, const char *buf, int len);
+
+ void checkStatus (int status);
+ void callActions (InputReader &cib);
+
+ private:
+ Ghostscript _gs;
+ Mode _mode; ///< current execution mode
+ PSActions *_actions; ///< actions to be performed
+ size_t _bytesToRead; ///< if > 0, maximal number of bytes to be processed by following calls of execute()
+ std::vector<char> _linebuf;
+ std::string _errorMessage; ///< text of error message
+ bool _inError; ///< true if scanning error message
+ bool _initialized; ///< true if PSInterpreter has been completely initialized
+ static const char *GSARGS[]; ///< parameters passed to Ghostscript
+ static const char *PSDEFS; ///< initial PostScript definitions
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSPattern.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSPattern.cpp
new file mode 100644
index 00000000000..52fbf16c589
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSPattern.cpp
@@ -0,0 +1,178 @@
+/*************************************************************************
+** PSPattern.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <sstream>
+#include <vector>
+#include "BoundingBox.h"
+#include "PSPattern.h"
+#include "SpecialActions.h"
+#include "SVGTree.h"
+#include "XMLNode.h"
+
+using namespace std;
+
+
+string PSPattern::svgID () const {
+ return XMLString("pat")+XMLString(_id);
+}
+
+
+/** Appends the definition of this pattern to the "def" section of the SVG tree. */
+void PSPattern::apply (SpecialActions *actions) {
+ if (XMLElementNode *pattern = createPatternNode())
+ actions->appendToDefs(pattern);
+}
+
+
+/////////////////////////////////////////////////////////////////////////////
+
+PSTilingPattern::PSTilingPattern (int id, BoundingBox &bbox, Matrix &matrix, double xstep, double ystep)
+ : PSPattern(id), _bbox(bbox), _matrix(matrix), _xstep(xstep), _ystep(ystep), _groupNode(0)
+{
+ const double bp2pt = 72.27/72.0; // factor to convert bp to pt
+ _bbox.scale(bp2pt, bp2pt);
+ _xstep *= bp2pt;
+ _ystep *= bp2pt;
+ _groupNode = PSTilingPattern::createGroupNode();
+}
+
+
+PSTilingPattern::~PSTilingPattern () {
+ delete _groupNode;
+}
+
+
+/** Creates a new pattern element representing the pattern defined in the PS code. */
+XMLElementNode* PSTilingPattern::createPatternNode () const {
+ if (!_groupNode)
+ return 0;
+ BoundingBox box(_bbox.minX(), _bbox.minY(), _bbox.minX()+_xstep, _bbox.minY()+_ystep);
+ XMLElementNode *pattern = new XMLElementNode("pattern");
+ pattern->addAttribute("id", svgID());
+ pattern->addAttribute("x", box.minX());
+ pattern->addAttribute("y", box.minY());
+ pattern->addAttribute("width", box.width());
+ pattern->addAttribute("height", box.height());
+ pattern->addAttribute("viewBox", box.toSVGViewBox());
+ pattern->addAttribute("patternUnits", "userSpaceOnUse");
+ if (!_matrix.isIdentity())
+ pattern->addAttribute("patternTransform", _matrix.getSVG());
+ if (_xstep < _bbox.width() || _ystep < _bbox.height()) { // overlapping tiles?
+ // disable clipping at the tile borders => tiles become "transparent"
+ pattern->addAttribute("overflow", "visible");
+ }
+ if (XMLElementNode *clip=createClipNode())
+ pattern->append(clip);
+ pattern->append(_groupNode);
+ return pattern;
+}
+
+
+/** Creates a new clip element restricting the drawing area to the
+ * dimensions given in the definition of the pattern. */
+XMLElementNode* PSTilingPattern::createClipNode() const {
+ XMLElementNode *clip = new XMLElementNode("clipPath");
+ clip->addAttribute("id", "pc"+XMLString(psID()));
+ XMLElementNode *rect = new XMLElementNode("rect");
+ rect->addAttribute("x", _bbox.minX());
+ rect->addAttribute("y", _bbox.minY());
+ rect->addAttribute("width", _bbox.width());
+ rect->addAttribute("height", _bbox.height());
+ clip->append(rect);
+ return clip;
+}
+
+
+/** Creates a new group element that contains all "drawing" elements that
+ * define the pattern graphic. */
+XMLElementNode* PSTilingPattern::createGroupNode () const {
+ // add all succeeding path elements to this group
+ XMLElementNode *group = new XMLElementNode("g");
+ group->addAttribute("clip-path", XMLString("url(#pc")+XMLString(psID())+")");
+ return group;
+}
+
+
+void PSTilingPattern::apply (SpecialActions *actions) {
+ PSPattern::apply(actions);
+ _groupNode = 0;
+}
+
+
+/////////////////////////////////////////////////////////////////////////////
+
+PSColoredTilingPattern::PSColoredTilingPattern (int id, BoundingBox &bbox, Matrix &matrix, double xstep, double ystep)
+ : PSTilingPattern(id, bbox, matrix, xstep, ystep)
+{
+}
+
+
+/////////////////////////////////////////////////////////////////////////////
+
+PSUncoloredTilingPattern::PSUncoloredTilingPattern (int id, BoundingBox &bbox, Matrix &matrix, double xstep, double ystep)
+ : PSTilingPattern(id, bbox, matrix, xstep, ystep), _applied(false)
+{
+}
+
+
+PSUncoloredTilingPattern::~PSUncoloredTilingPattern () {
+ if (_applied)
+ setGroupNode(0); // prevent deleting the group node in the parent destructor
+}
+
+
+/** Returns an SVG id value that identifies this pattern with the current color applied. */
+string PSUncoloredTilingPattern::svgID () const {
+ ostringstream oss;
+ oss << PSPattern::svgID() << '-' << hex << _currentColor;
+ return oss.str();
+}
+
+
+/** Appends the definition of this pattern with the current color applied
+ * to the "def" section of the SVG tree. */
+void PSUncoloredTilingPattern::apply (SpecialActions* actions) {
+ set<Color>::iterator it=_colors.find(_currentColor);
+ if (it == _colors.end()) {
+ if (_applied)
+ setGroupNode(static_cast<XMLElementNode*>(getGroupNode()->clone()));
+ // assign current color to the pattern graphic
+ vector<XMLElementNode*> colored_elems;
+ const char *attribs[] = {"fill", "stroke"};
+ for (int i=0; i < 2; i++) {
+ getGroupNode()->findDescendants(0, attribs[i], colored_elems);
+ for (vector<XMLElementNode*>::iterator it=colored_elems.begin(); it != colored_elems.end(); ++it)
+ if (string((*it)->getAttributeValue(attribs[i])) != "none")
+ (*it)->addAttribute(attribs[i], _currentColor.rgbString());
+ colored_elems.clear();
+ }
+ PSPattern::apply(actions);
+ _colors.insert(_currentColor);
+ _applied = true;
+ }
+}
+
+
+XMLElementNode* PSUncoloredTilingPattern::createClipNode() const {
+ // only the first instance of this patterns get a clip element
+ if (_colors.empty())
+ return PSTilingPattern::createClipNode();
+ return 0;
+} \ No newline at end of file
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSPattern.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSPattern.h
new file mode 100644
index 00000000000..7e2848dea3b
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PSPattern.h
@@ -0,0 +1,100 @@
+/*************************************************************************
+** PSPattern.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef PSPATTERN_H
+#define PSPATTERN_H
+
+#include <set>
+#include <string>
+#include "BoundingBox.h"
+#include "Color.h"
+#include "Matrix.h"
+
+
+struct SpecialActions;
+class SVGTree;
+class XMLElementNode;
+
+class PSPattern
+{
+ public:
+ virtual ~PSPattern () {}
+ virtual int psID () const {return _id;}
+ virtual std::string svgID () const;
+ virtual void apply (SpecialActions *actions);
+
+ protected:
+ PSPattern (int id) : _id(id) {}
+ virtual XMLElementNode* createPatternNode () const =0;
+
+ private:
+ int _id; ///< PostSCript ID of this pattern
+};
+
+
+class PSTilingPattern : public PSPattern
+{
+ public:
+ ~PSTilingPattern ();
+ virtual XMLElementNode* getContainerNode () {return _groupNode;}
+ void apply (SpecialActions *actions);
+
+ protected:
+ PSTilingPattern (int id, BoundingBox &bbox, Matrix &matrix, double xstep, double ystep);
+ XMLElementNode* createPatternNode () const;
+ virtual XMLElementNode* createClipNode () const;
+ virtual XMLElementNode* createGroupNode () const;
+ virtual XMLElementNode* getGroupNode () const {return _groupNode;}
+ virtual void setGroupNode (XMLElementNode *node) {_groupNode = node;}
+
+ private:
+ BoundingBox _bbox; ///< bounding box of the tile graphics
+ Matrix _matrix; ///< tile transformation
+ double _xstep, _ystep; ///< horizontal and vertical distance between neighboured tiles
+ XMLElementNode *_groupNode; ///< group containing the drawing elements
+};
+
+
+class PSColoredTilingPattern : public PSTilingPattern
+{
+ public:
+ PSColoredTilingPattern (int id, BoundingBox &bbox, Matrix &matrix, double xstep, double ystep);
+};
+
+
+class PSUncoloredTilingPattern : public PSTilingPattern
+{
+ public:
+ PSUncoloredTilingPattern (int id, BoundingBox &bbox, Matrix &matrix, double xstep, double ystep);
+ ~PSUncoloredTilingPattern ();
+ std::string svgID () const;
+ void setColor (Color color) {_currentColor = color;}
+ void apply (SpecialActions *actions);
+
+ protected:
+ XMLElementNode* createClipNode () const;
+
+ private:
+ std::set<Color> _colors; ///< colors this pattern has already been drawn with
+ Color _currentColor; ///< current color to be applied
+ bool _applied; ///< has pattern with current group node already been applied to the SVG tree?
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageRanges.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageRanges.cpp
new file mode 100644
index 00000000000..8a20a35d52b
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageRanges.cpp
@@ -0,0 +1,135 @@
+/*************************************************************************
+** PageRanges.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <sstream>
+#include "InputBuffer.h"
+#include "InputReader.h"
+#include "PageRanges.h"
+
+#include "macros.h"
+
+using namespace std;
+
+
+/** Analyzes a string describing a range sequence.
+ * Syntax: ([0-9]+(-[0-9]*)?)|(-[0-9]+)(,([0-9]+(-[0-9]*)?)|(-[0-9]+))*
+ * @param[in] str string to parse
+ * @param[in] max_page greatest allowed value
+ * @param[out] ranges the extracted range sequence
+ * @return true on success; false denotes a syntax error */
+bool PageRanges::parse (string str, int max_page) {
+ StringInputBuffer ib(str);
+ BufferInputReader ir(ib);
+ while (ir) {
+ int first=1;
+ int last=max_page;
+ ir.skipSpace();
+ if (!isdigit(ir.peek()) && ir.peek() != '-')
+ return false;
+
+ if (isdigit(ir.peek()))
+ first = ir.getInt();
+ ir.skipSpace();
+ if (ir.peek() == '-') {
+ while (ir.peek() == '-')
+ ir.get();
+ ir.skipSpace();
+ if (isdigit(ir.peek()))
+ last = ir.getInt();
+ }
+ else
+ last = first;
+ ir.skipSpace();
+ if (ir.peek() == ',') {
+ ir.get();
+ if (ir.eof())
+ return false;
+ }
+ else if (!ir.eof())
+ return false;
+ if (first > last)
+ swap(first, last);
+ first = max(1, first);
+ last = max(first, last);
+ if (max_page > 0) {
+ first = min(first, max_page);
+ last = min(last, max_page);
+ }
+ insert(first, last);
+ }
+ return true;
+}
+
+
+/** Adds a page range to the range collection.
+ * @param[in] first first page of new range
+ * @param[in] last last page of new range */
+void PageRanges::insert (int first, int last) {
+ if (first > last)
+ swap(first, last);
+ Container::iterator it = _ranges.begin();
+ while (it != _ranges.end() && first > it->first+1 && first > it->second+1)
+ ++it;
+ if (it == _ranges.end() || last < it->first-1 || first > it->second+1)
+ it = _ranges.insert(it, Range(first, last));
+ else if ((first < it->first && last >= it->first-1) || (first <= it->second+1 && last > it->second)) {
+ it->first = min(it->first, first);
+ it->second = max(it->second, last);
+ }
+ // merge adjacent ranges
+ if (it != _ranges.end()) {
+ Container::iterator l = it;
+ Container::iterator r = it;
+ if (l == _ranges.begin())
+ l = _ranges.end();
+ else
+ --l;
+ ++r;
+ bool l_modified = false;
+ bool r_modified = false;
+ if (l != _ranges.end() && l->second >= it->first-1) {
+ l->first = min(l->first, it->first);
+ l->second = max(l->second, it->second);
+ l_modified = true;
+ }
+ if (r != _ranges.end() && r->first <= it->second+1) {
+ r->first = min(r->first, it->first);
+ r->second = max(r->second, it->second);
+ r_modified = true;
+ }
+ if (l_modified || r_modified) {
+ _ranges.erase(it);
+ if (l_modified && r_modified && l->second >= r->first-1) {
+ l->first = min(l->first, r->first);
+ l->second = max(l->second, r->second);
+ _ranges.erase(r);
+ }
+ }
+ }
+}
+
+
+/** Returns the number of pages. */
+size_t PageRanges::pages () const {
+ size_t sum=0;
+ for (ConstIterator it=_ranges.begin(); it != _ranges.end(); ++it)
+ sum += it->second - it->first + 1;
+ return sum;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageRanges.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageRanges.h
new file mode 100644
index 00000000000..0e5cd58e5ff
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageRanges.h
@@ -0,0 +1,49 @@
+/*************************************************************************
+** PageRanges.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef PAGERANGES_H
+#define PAGERANGES_H
+
+#include <list>
+#include <string>
+#include <utility>
+
+class PageRanges
+{
+ public:
+ typedef std::pair<int,int> Range;
+ typedef std::list<Range> Container;
+ typedef Container::iterator Iterator;
+ typedef Container::const_iterator ConstIterator;
+
+ public:
+ bool parse (std::string str, int max_page=0);
+ void insert (int first, int last);
+ size_t pages () const;
+ size_t size () const {return _ranges.size();}
+ const Container& ranges () const {return _ranges;}
+ ConstIterator begin () const {return _ranges.begin();}
+ ConstIterator end () const {return _ranges.end();}
+
+ private:
+ Container _ranges;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageSize.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageSize.cpp
new file mode 100644
index 00000000000..7ff9eb42c0f
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageSize.cpp
@@ -0,0 +1,156 @@
+/*************************************************************************
+** PageSize.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <algorithm>
+#include <cctype>
+#include <cmath>
+#include <sstream>
+#include "PageSize.h"
+
+using namespace std;
+
+// make sure tolower is a function (and not a macro)
+// so that 'transform' can be applied
+static int my_tolower (int c) {
+ return tolower(c);
+}
+
+
+/** Computes width and height of ISO/DIN An in millimeters.
+ * @param[in] n the A level (e.g. n=4 => DIN A4)
+ * @param[out] width contains the page width when function returns
+ * @param[out] height contains the page height when function returns */
+static void computeASize (int n, double &width, double &height) {
+ double sqrt2 = sqrt(2.0);
+ height = floor(1189.0/pow(sqrt2, n)+0.5);
+ width = floor(height/sqrt2+0.5);
+}
+
+
+/** Computes width and height of ISO/DIN Bn in millimeters.
+ * @param[in] n the B level (e.g. n=4 => DIN B4)
+ * @param[out] width contains the page width when function returns
+ * @param[out] height contains the page height when function returns */
+static void computeBSize (int n, double &width, double &height) {
+ double w, h;
+ computeASize(n, width, height);
+ computeASize(n-1, w, h);
+ width = floor(sqrt(width * w)+0.5);
+ height = floor(sqrt(height * h)+0.5);
+}
+
+
+/** Computes width and height of ISO/DIN Cn in millimeters.
+ * @param[in] n the C level (e.g. n=4 => DIN C4)
+ * @param[out] width contains the page width when function returns
+ * @param[out] height contains the page height when function returns */
+static void computeCSize (int n, double &width, double &height) {
+ double w, h;
+ computeASize(n, width, height);
+ computeBSize(n, w, h);
+ width = floor(sqrt(width * w)+0.5);
+ height = floor(sqrt(height * h)+0.5);
+}
+
+
+/** Computes width and height of ISO/DIN Dn in millimeters.
+ * @param[in] n the D level (e.g. n=4 => DIN D4)
+ * @param[out] width contains the page width when function returns
+ * @param[out] height contains the page height when function returns */
+static void computeDSize (int n, double &width, double &height) {
+ double w, h;
+ computeASize(n, width, height);
+ computeBSize(n+1, w, h);
+ width = floor(sqrt(width * w)+0.5);
+ height = floor(sqrt(height * h)+0.5);
+}
+
+
+/** Constructs a PageSize object of given size.
+ * @param[in] name specifies the page size, e.g. "A4" or "letter" */
+PageSize::PageSize (string name) : _width(0), _height(0) {
+ resize(name);
+}
+
+
+void PageSize::resize (double w, double h) {
+ _width = w;
+ _height = h;
+}
+
+void PageSize::resize (string name) {
+ if (name.length() < 2)
+ throw PageSizeException("unknown page format: "+name);
+
+ transform(name.begin(), name.end(), name.begin(), my_tolower);
+ // extract optional suffix
+ size_t pos = name.rfind("-");
+ bool landscape = false;
+ if (pos != string::npos) {
+ string suffix = name.substr(pos);
+ name = name.substr(0, pos);
+ if (suffix == "-l" || suffix == "-landscape")
+ landscape = true;
+ else if (suffix != "-p" && suffix != "-portrait")
+ throw PageSizeException("invalid page format suffix: " + suffix);
+ }
+
+ if (name == "invoice") {
+ _width = 140;
+ _height = 216;
+ }
+ else if (name == "executive") {
+ _width = 184;
+ _height = 267;
+ }
+ else if (name == "legal") {
+ _width = 216;
+ _height = 356;
+ }
+ else if (name == "letter") {
+ _width = 216;
+ _height = 279;
+ }
+ else if (name == "ledger") {
+ _width = 279;
+ _height = 432;
+ }
+ else if (isdigit(name[1]) && name.length() < 5) { // limit length of number to prevent arithmetic errors
+ istringstream iss(name.substr(1));
+ int n;
+ iss >> n;
+ switch (name[0]) {
+ case 'a' : computeASize(n, _width, _height); break;
+ case 'b' : computeBSize(n, _width, _height); break;
+ case 'c' : computeCSize(n, _width, _height); break;
+ case 'd' : computeDSize(n, _width, _height); break;
+ default : throw PageSizeException("invalid page format: "+name);
+ }
+ }
+ if (_width == 0 || _height == 0)
+ throw PageSizeException("unknown page format: "+name);
+ if (landscape)
+ swap(_width, _height);
+
+ const double ptpmm = 72.27/25.4; // TeX points per millimeter (72.27pt = 1in = 25.4mm)
+ _width *= ptpmm;
+ _height *= ptpmm;
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageSize.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageSize.h
new file mode 100644
index 00000000000..bb7a55c7cdc
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PageSize.h
@@ -0,0 +1,48 @@
+/*************************************************************************
+** PageSize.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef PAGESIZE_H
+#define PAGESIZE_H
+
+#include "MessageException.h"
+
+struct PageSizeException : public MessageException
+{
+ PageSizeException (const std::string &msg) : MessageException(msg) {}
+};
+
+class PageSize
+{
+ public:
+ PageSize (double w=0, double h=0) : _width(w), _height(h) {}
+ PageSize (std::string name);
+ void resize (std:: string name);
+ void resize (double w, double h);
+ double widthInPT () const {return _width;}
+ double heightInPT () const {return _height;}
+ double widthInMM () const {return _width*25.4/72.27;}
+ double heightInMM () const {return _height*25.4/72.27;}
+ bool valid () const {return _width > 0 && _height > 0;}
+
+ private:
+ double _width, _height; // in pt
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Pair.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Pair.h
new file mode 100644
index 00000000000..a3dc5a12af3
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Pair.h
@@ -0,0 +1,79 @@
+/*************************************************************************
+** Pair.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef PAIR_H
+#define PAIR_H
+
+#include <cmath>
+#include <ostream>
+#include "macros.h"
+#include "types.h"
+
+template <typename T>
+class Pair
+{
+ public:
+ Pair (T x=0, T y=0) : _x(x), _y(y) {}
+ Pair operator += (const Pair &p) {_x += p._x; _y += p._y; return *this;}
+ Pair operator -= (const Pair &p) {_x -= p._x; _y -= p._y; return *this;}
+ Pair operator *= (T c) {_x *= c; _y *= c; return *this;}
+ Pair operator /= (T c) {_x /= c; _y /= c; return *this;}
+ Pair ortho () const {return Pair(-_y, _x);}
+ double length () const {return std::sqrt(_x*_x + _y*_y);}
+ bool operator == (const Pair &p) const {return _x == p._x && _y == p._y;}
+ bool operator != (const Pair &p) const {return _x != p._x || _y != p._y;}
+ T x () const {return _x;}
+ T y () const {return _y;}
+ void x (const T &xx) {_x = xx;}
+ void y (const T &yy) {_y = yy;}
+ std::ostream& write (std::ostream &os) const {return os << '(' << _x << ',' << _y << ')';}
+
+ private:
+ T _x, _y;
+};
+
+
+struct Pair32 : public Pair<Int32>
+{
+ Pair32 (Int32 x=0, Int32 y=0) : Pair<Int32>(x, y) {}
+ explicit Pair32 (double x, double y) : Pair<Int32>(Int32(x+0.5), Int32(y+0.5)) {}
+ Pair32 (const Pair<Int32> &p) : Pair<Int32>(p) {}
+// operator Pair<Int32> () {return *this;}
+};
+
+typedef Pair<double> DPair;
+
+template <typename T>
+IMPLEMENT_ARITHMETIC_OPERATOR(Pair<T>, +)
+
+template <typename T>
+IMPLEMENT_ARITHMETIC_OPERATOR(Pair<T>, -)
+
+template <typename T>
+IMPLEMENT_ARITHMETIC_OPERATOR2(Pair<T>, T, *)
+
+template <typename T>
+IMPLEMENT_ARITHMETIC_OPERATOR2(Pair<T>, T, /)
+
+template <typename T>
+IMPLEMENT_OUTPUT_OPERATOR(Pair<T>)
+
+IMPLEMENT_ARITHMETIC_OPERATOR2(Pair32, Int32, *)
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PdfSpecialHandler.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PdfSpecialHandler.cpp
new file mode 100644
index 00000000000..f3d8464704c
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PdfSpecialHandler.cpp
@@ -0,0 +1,76 @@
+/*************************************************************************
+** PdfSpecialHandler.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstring>
+#include "InputReader.h"
+#include "MapLine.h"
+#include "PdfSpecialHandler.h"
+#include "FontMap.h"
+#include "Message.h"
+
+using namespace std;
+
+
+PdfSpecialHandler::PdfSpecialHandler () : _maplineProcessed(false)
+{
+}
+
+
+bool PdfSpecialHandler::process (const char *prefix, istream &is, SpecialActions *actions) {
+ if (!actions)
+ return true;
+ StreamInputReader ir(is);
+ ir.skipSpace();
+ string cmd = ir.getWord();
+ ir.skipSpace();
+ if (cmd == "mapline" || cmd == "mapfile") {
+ // read mode selector ('+', '-', or '=')
+ char modechar = '+'; // default mode (append if new, do not replace existing mapping)
+ if (strchr("=+-", ir.peek())) // leading modifier given?
+ modechar = ir.get();
+ else if (!_maplineProcessed) { // no modifier given?
+ // remove default map entries if this is the first mapline/mapfile special called
+ FontMap::instance().clear();
+ }
+
+ if (cmd == "mapline") {
+ try {
+ MapLine mapline(is);
+ FontMap::instance().apply(mapline, modechar);
+ }
+ catch (const MapLineException &ex) {
+ Message::wstream(true) << "pdf:mapline: " << ex.what() << '\n';
+ }
+ }
+ else { // mapfile
+ string fname = ir.getString();
+ if (!FontMap::instance().read(fname, modechar))
+ Message::wstream(true) << "can't open map file " << fname << '\n';
+ }
+ _maplineProcessed = true;
+ }
+ return true;
+}
+
+
+const char** PdfSpecialHandler::prefixes () const {
+ static const char *pfx[] = {"pdf:", 0};
+ return pfx;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PdfSpecialHandler.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PdfSpecialHandler.h
new file mode 100644
index 00000000000..43cdd1045de
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PdfSpecialHandler.h
@@ -0,0 +1,39 @@
+/*************************************************************************
+** PdfSpecialHandler.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef PDFSPECIALHANDLER_H
+#define PDFSPECIALHANDLER_H
+
+#include "SpecialHandler.h"
+
+class PdfSpecialHandler : public SpecialHandler
+{
+ public:
+ PdfSpecialHandler ();
+ const char* info () const {return "pdfTeX font map specials";}
+ const char* name () const {return "pdf";}
+ const char** prefixes () const;
+ bool process (const char *prefix, std::istream &is, SpecialActions *actions);
+
+ private:
+ bool _maplineProcessed; ///< true if a mapline or mapfile special has already been processed
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Process.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Process.cpp
new file mode 100644
index 00000000000..a76219e9846
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Process.cpp
@@ -0,0 +1,142 @@
+/*************************************************************************
+** Process.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifdef __WIN32__
+#include <windows.h>
+#else
+#include <fcntl.h>
+#include <sys/wait.h>
+#include <unistd.h>
+#include <signal.h>
+#endif
+
+#include <cstdlib>
+#include "FileSystem.h"
+#include "Process.h"
+#include "SignalHandler.h"
+#include "macros.h"
+
+using namespace std;
+
+Process::Process (const string &cmd, const string &paramstr)
+ : _cmd(cmd), _paramstr(paramstr)
+{
+}
+
+
+#ifndef __WIN32__
+/** Extracts whitespace-sparated parameters from a string.
+ * @param[in] paramstr the parameter string
+ * @param[out] params vector holding the extracted parameters */
+static void split_paramstr (string paramstr, vector<const char*> &params) {
+ size_t left=0, right=0; // index of first and last character of current parameter
+ char quote=0; // current quote character, 0=none
+ const size_t len = paramstr.length();
+ while (left <= right && right < len) {
+ while (left < len && isspace(paramstr[left]))
+ ++left;
+ if (left < len && (paramstr[left] == '"' || paramstr[left] == '\''))
+ quote = paramstr[left++];
+ right = left;
+ while (right < len && (quote || !isspace(paramstr[right]))) {
+ if (quote && paramstr[right] == quote) {
+ quote=0;
+ break;
+ }
+ else
+ ++right;
+ }
+ if (right < len)
+ paramstr[right]=0;
+ if (left < len)
+ params.push_back(&paramstr[left]);
+ left = ++right;
+ }
+}
+#endif
+
+
+/** Runs the process and waits until it's finished.
+ * @param[in] quiet if true, output to stdout/stderr is suppressed
+ * @return true if process terminated properly
+ * @throw SignalException if CTRL-C was pressed during execution */
+bool Process::run (bool quiet) {
+#ifdef __WIN32__
+ SECURITY_ATTRIBUTES sa;
+ ZeroMemory(&sa, sizeof(sa));
+ sa.nLength = sizeof(sa);
+ sa.bInheritHandle = true;
+
+ STARTUPINFO si;
+ ZeroMemory(&si, sizeof(si));
+ si.cb = sizeof(si);
+ si.dwFlags = STARTF_USESTDHANDLES;
+ HANDLE devnull = CreateFile("nul", GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, &sa, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
+ si.hStdInput = GetStdHandle(STD_INPUT_HANDLE);
+ si.hStdError = GetStdHandle(STD_ERROR_HANDLE);
+ si.hStdOutput = quiet ? devnull : GetStdHandle(STD_OUTPUT_HANDLE);
+ PROCESS_INFORMATION pi;
+ ZeroMemory(&pi, sizeof(pi));
+
+ string cmdline = _cmd+" "+_paramstr;
+ CreateProcess(NULL, (LPSTR)cmdline.c_str(), NULL, NULL, true, 0, NULL, NULL, &si, &pi);
+ WaitForSingleObject(pi.hProcess, INFINITE);
+ DWORD exitcode = (DWORD)-1;
+ GetExitCodeProcess(pi.hProcess, &exitcode);
+ CloseHandle(devnull);
+ return exitcode == 0;
+#else
+ pid_t pid = fork();
+ if (pid == 0) { // child process
+ if (quiet) {
+ int devnull = open(FileSystem::DEVNULL, O_WRONLY);
+ if (devnull >= 0) {
+ dup2(devnull, STDOUT_FILENO);
+ dup2(devnull, STDERR_FILENO);
+ close(devnull);
+ }
+ }
+ vector<const char*> params;
+ params.push_back(_cmd.c_str());
+ split_paramstr(_paramstr, params);
+ params.push_back(0); // trailing NULL marks end
+ execvp(_cmd.c_str(), const_cast<char* const*>(&params[0]));
+ exit(1);
+ }
+ if (pid > 0) { // main process
+ int status;
+ for (;;) {
+ waitpid(pid, &status, WNOHANG);
+ if (WIFEXITED(status)) // child process exited normally
+ return WEXITSTATUS(status) == 0;
+
+ try {
+ SignalHandler::instance().check();
+ }
+ catch (SignalException &e) { // caught ctrl-c
+ kill(pid, SIGKILL);
+ throw;
+ }
+ }
+ }
+ return false;
+#endif
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Process.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Process.h
new file mode 100644
index 00000000000..973fabf2baf
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Process.h
@@ -0,0 +1,41 @@
+/*************************************************************************
+** Process.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef PROCESS_H
+#define PROCESS_H
+
+#include <string>
+
+class Process
+{
+ public:
+ Process (const std::string &cmd, const std::string &paramstr);
+ bool run (bool quiet=true);
+
+ protected:
+ Process (const Process& orig) {}
+
+ private:
+ std::string _cmd;
+ std::string _paramstr;
+};
+
+#endif
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PsSpecialHandler.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PsSpecialHandler.cpp
new file mode 100644
index 00000000000..91020b9f28c
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PsSpecialHandler.cpp
@@ -0,0 +1,806 @@
+/*************************************************************************
+** PsSpecialHandler.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cmath>
+#include <fstream>
+#include <iostream>
+#include <sstream>
+#include "EPSFile.h"
+#include "FileFinder.h"
+#include "Ghostscript.h"
+#include "Message.h"
+#include "PSPattern.h"
+#include "PsSpecialHandler.h"
+#include "SpecialActions.h"
+#include "XMLNode.h"
+#include "XMLString.h"
+
+using namespace std;
+
+
+static inline double str2double (const string &str) {
+ double ret;
+ istringstream iss(str);
+ iss >> ret;
+ return ret;
+}
+
+
+PsSpecialHandler::PsSpecialHandler () : _psi(this), _actions(0), _initialized(false), _xmlnode(0)
+{
+}
+
+
+PsSpecialHandler::~PsSpecialHandler () {
+ _psi.setActions(0); // ensure no further PS actions are performed
+ for (map<int, PSPattern*>::iterator it=_patterns.begin(); it != _patterns.end(); ++it)
+ delete it->second;
+}
+
+
+/** Initializes the PostScript handler. It's called by the first use of process(). The
+ * deferred initialization speeds up the conversion of DVI files that doesn't contain
+ * PS specials. */
+void PsSpecialHandler::initialize (SpecialActions *actions) {
+ if (!_initialized) {
+ // initial values of graphics state
+ _linewidth = 1;
+ _linecap = _linejoin = 0;
+ _miterlimit = 4;
+ _xmlnode = _savenode = 0;
+ _opacityalpha = 1; // fully opaque
+ _sx = _sy = _cos = 1.0;
+ _pattern = 0;
+
+ // execute dvips prologue/header files
+ const char *headers[] = {"tex.pro", "texps.pro", "special.pro", /*"color.pro",*/ 0};
+ for (const char **p=headers; *p; ++p) {
+ if (const char *path = FileFinder::lookup(*p, false)) {
+ ifstream ifs(path);
+ _psi.execute(ifs);
+ }
+ else
+ Message::wstream(true) << "PostScript header file " << *p << " not found\n";
+ }
+ // push dictionary "TeXDict" with dvips definitions on dictionary stack
+ // and initialize basic dvips PostScript variables
+ ostringstream oss;
+ oss << " TeXDict begin 0 0 1000 72 72 () @start "
+ " 0 0 moveto ";
+ if (actions) {
+ float r, g, b;
+ actions->getColor().getRGB(r, g, b);
+ oss << r << ' ' << g << ' ' << b << " setrgbcolor ";
+ }
+ _psi.execute(oss.str());
+ _initialized = true;
+ }
+}
+
+
+/** Move PS graphic position to current DVI location. */
+void PsSpecialHandler::moveToDVIPos () {
+ if (_actions) {
+ const double bp=72.0/72.27; // pt -> bp
+ const double x = _actions->getX()*bp;
+ const double y = _actions->getY()*bp;
+ ostringstream oss;
+ oss << '\n' << x << ' ' << y << " moveto ";
+ _psi.execute(oss.str());
+ _currentpoint = DPair(x, y);
+ }
+}
+
+
+/** Executes a PS snippet and moves the DVI cursor to the current DVI position afterwards.
+ * It's just a shorthand function as this action sequence is required several times.
+ * @param[in] psi PS interpreter instance
+ * @param[in] is stream to read the PS code from
+ * @param[in] pos current PS graphic position
+ * @param[in] actions special actions */
+static void exec_and_syncpos (PSInterpreter &psi, istream &is, const DPair &pos, SpecialActions *actions) {
+ psi.execute(is);
+ psi.execute("\nquerypos "); // retrieve current PS position (stored in 'pos')
+ const double pt = 72.27/72.0; // bp -> pt
+ actions->setX(pos.x()*pt);
+ actions->setY(pos.y()*pt);
+}
+
+
+bool PsSpecialHandler::process (const char *prefix, istream &is, SpecialActions *actions) {
+ if (!_initialized)
+ initialize(actions);
+ _actions = actions;
+
+ if (*prefix == '"') {
+ // read and execute literal PostScript code (isolated by a wrapping save/restore pair)
+ moveToDVIPos();
+ _psi.execute("\n@beginspecial @setspecial ");
+ _psi.execute(is);
+ _psi.execute("\n@endspecial ");
+ }
+ else if (*prefix == '!') {
+ // execute literal PostScript header
+ _psi.execute("\nTeXDict begin @defspecial ");
+ _psi.execute(is);
+ _psi.execute("\n@fedspecial end ");
+ }
+ else if (strcmp(prefix, "header=") == 0) {
+ // read and execute PS header files
+ string fname;
+ is >> fname;
+ if (const char *path = FileFinder::lookup(fname, false)) {
+ ifstream ifs(path);
+ _psi.execute(ifs);
+ }
+ else
+ Message::estream(true) << "PS header file '" << fname << "' not found";
+ }
+ else if (strcmp(prefix, "psfile=") == 0 || strcmp(prefix, "PSfile=") == 0) {
+ if (_actions) {
+ StreamInputReader in(is);
+ string fname = in.getQuotedString(in.peek() == '"' ? '"' : 0);
+ map<string,string> attr;
+ in.parseAttributes(attr);
+ psfile(fname, attr);
+ }
+ }
+ else if (strcmp(prefix, "ps::") == 0) {
+ _actions->finishLine(); // reset DVI position on next DVI command
+ if (is.peek() == '[') {
+ // collect characters inside the brackets
+ string code;
+ for (int i=0; i < 9 && is.peek() != ']' && !is.eof(); ++i)
+ code += is.get();
+ if (is.peek() == ']')
+ code += is.get();
+
+ if (code == "[begin]" || code == "[nobreak]") {
+ moveToDVIPos();
+ exec_and_syncpos(_psi, is, _currentpoint, _actions);
+ }
+ else {
+ // no move to DVI position here
+ if (code != "[end]") // PS array?
+ _psi.execute(code);
+ exec_and_syncpos(_psi, is, _currentpoint, _actions);
+ }
+ }
+ else { // ps::<code> behaves like ps::[end]<code>
+ // no move to DVI position here
+ exec_and_syncpos(_psi, is, _currentpoint, _actions);
+ }
+ }
+ else { // ps: ...
+ _actions->finishLine();
+ moveToDVIPos();
+ StreamInputReader in(is);
+ if (in.check(" plotfile ")) { // ps: plotfile fname
+ string fname = in.getString();
+ ifstream ifs(fname.c_str());
+ if (ifs)
+ _psi.execute(ifs);
+ else
+ Message::wstream(true) << "file '" << fname << "' not found in ps: plotfile\n";
+ }
+ else {
+ // ps:<code> is almost identical to ps::[begin]<code> but does
+ // a final repositioning to the current DVI location
+ exec_and_syncpos(_psi, is, _currentpoint, _actions);
+ moveToDVIPos();
+ }
+ }
+ return true;
+}
+
+
+/** Handles psfile special.
+ * @param[in] fname EPS file to be included
+ * @param[in] attr attributes given with \special psfile */
+void PsSpecialHandler::psfile (const string &fname, const map<string,string> &attr) {
+ EPSFile epsfile(fname);
+ istream &is = epsfile.istream();
+ if (!is)
+ Message::wstream(true) << "file '" << fname << "' not found in special 'psfile'\n";
+ else {
+ map<string,string>::const_iterator it;
+ const double pt = 72.27/72.0; // bp -> pt
+
+ // bounding box of EPS figure
+ double llx = (it = attr.find("llx")) != attr.end() ? str2double(it->second)*pt : 0;
+ double lly = (it = attr.find("lly")) != attr.end() ? str2double(it->second)*pt : 0;
+ double urx = (it = attr.find("urx")) != attr.end() ? str2double(it->second)*pt : 0;
+ double ury = (it = attr.find("ury")) != attr.end() ? str2double(it->second)*pt : 0;
+
+ // desired width/height of resulting figure
+ double rwi = (it = attr.find("rwi")) != attr.end() ? str2double(it->second)/10.0*pt : -1;
+ double rhi = (it = attr.find("rhi")) != attr.end() ? str2double(it->second)/10.0*pt : -1;
+ if (rwi == 0 || rhi == 0 || urx-llx == 0 || ury-lly == 0)
+ return;
+
+ // user transformations (default values chosen according to dvips manual)
+ double hoffset = (it = attr.find("hoffset")) != attr.end() ? str2double(it->second)*pt : 0;
+ double voffset = (it = attr.find("voffset")) != attr.end() ? str2double(it->second)*pt : 0;
+// double hsize = (it = attr.find("hsize")) != attr.end() ? str2double(it->second) : 612;
+// double vsize = (it = attr.find("vsize")) != attr.end() ? str2double(it->second) : 792;
+ double hscale = (it = attr.find("hscale")) != attr.end() ? str2double(it->second) : 100;
+ double vscale = (it = attr.find("vscale")) != attr.end() ? str2double(it->second) : 100;
+ double angle = (it = attr.find("angle")) != attr.end() ? str2double(it->second) : 0;
+
+ Matrix m(1);
+ m.rotate(angle).scale(hscale/100, vscale/100).translate(hoffset, voffset);
+ BoundingBox bbox(llx, lly, urx, ury);
+ bbox.transform(m);
+
+ double sx = rwi/bbox.width();
+ double sy = rhi/bbox.height();
+ if (sx < 0) sx = sy;
+ if (sy < 0) sy = sx;
+ if (sx < 0) sx = sy = 1.0;
+
+ // save current DVI position (in pt units)
+ const double x = _actions->getX();
+ const double y = _actions->getY();
+
+ // all following drawings are relative to (0,0)
+ _actions->setX(0);
+ _actions->setY(0);
+ moveToDVIPos();
+
+ _xmlnode = new XMLElementNode("g");
+ _psi.execute("\n@beginspecial @setspecial "); // enter \special environment
+ _psi.limit(epsfile.pslength()); // limit the number of bytes to be processed
+ _psi.execute(is); // process EPS file
+ _psi.limit(0); // disable limitation
+ _psi.execute("\n@endspecial "); // leave special environment
+ if (!_xmlnode->empty()) { // has anything been drawn?
+ Matrix m(1);
+ m.rotate(angle).scale(hscale/100, vscale/100).translate(hoffset, voffset);
+ m.translate(-llx, lly);
+ m.scale(sx, sy); // resize image to width "rwi" and height "rhi"
+ m.translate(x, y); // move image to current DVI position
+ _xmlnode->addAttribute("transform", m.getSVG());
+ _actions->appendToPage(_xmlnode);
+ }
+ else
+ delete _xmlnode;
+ _xmlnode = 0;
+
+ // restore DVI position
+ _actions->setX(x);
+ _actions->setY(y);
+ moveToDVIPos();
+
+ // update bounding box
+ m.scale(sx, -sy);
+ m.translate(x, y);
+ bbox = BoundingBox(0, 0, fabs(urx-llx), fabs(ury-lly));
+ bbox.transform(m);
+ _actions->embed(bbox);
+ }
+}
+
+///////////////////////////////////////////////////////
+
+void PsSpecialHandler::gsave (vector<double> &p) {
+ _clipStack.dup();
+}
+
+
+void PsSpecialHandler::grestore (vector<double> &p) {
+ _clipStack.pop();
+}
+
+
+void PsSpecialHandler::grestoreall (vector<double> &p) {
+ _clipStack.pop(-1, true);
+}
+
+
+void PsSpecialHandler::save (vector<double> &p) {
+ _clipStack.dup(static_cast<int>(p[0]));
+}
+
+
+void PsSpecialHandler::restore (vector<double> &p) {
+ _clipStack.pop(static_cast<int>(p[0]));
+}
+
+
+void PsSpecialHandler::moveto (vector<double> &p) {
+ _path.moveto(p[0], p[1]);
+}
+
+
+void PsSpecialHandler::lineto (vector<double> &p) {
+ _path.lineto(p[0], p[1]);
+}
+
+
+void PsSpecialHandler::curveto (vector<double> &p) {
+ _path.cubicto(p[0], p[1], p[2], p[3], p[4], p[5]);
+}
+
+
+void PsSpecialHandler::closepath (vector<double> &p) {
+ _path.closepath();
+}
+
+
+/** Draws the current path recorded by previously executed path commands (moveto, lineto,...).
+ * @param[in] p not used */
+void PsSpecialHandler::stroke (vector<double> &p) {
+ if (!_path.empty() && _actions) {
+ BoundingBox bbox;
+ if (!_actions->getMatrix().isIdentity()) {
+ _path.transform(_actions->getMatrix());
+ if (!_xmlnode)
+ bbox.transform(_actions->getMatrix());
+ }
+
+ const double pt = 72.27/72.0; // factor to convert bp -> pt
+ ScalingMatrix scale(pt, pt);
+ _path.transform(scale);
+ bbox.transform(scale);
+
+ XMLElementNode *path=0;
+ Pair<double> point;
+ if (_path.isDot(point)) { // zero-length path?
+ if (_linecap == 1) { // round line ends? => draw dot
+ double x = point.x();
+ double y = point.y();
+ double r = _linewidth/2.0;
+ path = new XMLElementNode("circle");
+ path->addAttribute("cx", x);
+ path->addAttribute("cy", y);
+ path->addAttribute("r", r);
+ path->addAttribute("fill", _actions->getColor().rgbString());
+ bbox = BoundingBox(x-r, y-r, x+r, y+r);
+ }
+ }
+ else {
+ // compute bounding box
+ _path.computeBBox(bbox);
+ bbox.expand(_linewidth/2);
+
+ ostringstream oss;
+ _path.writeSVG(oss);
+ path = new XMLElementNode("path");
+ path->addAttribute("d", oss.str());
+ path->addAttribute("stroke", _actions->getColor().rgbString());
+ path->addAttribute("fill", "none");
+ if (_linewidth != 1)
+ path->addAttribute("stroke-width", _linewidth);
+ if (_miterlimit != 4)
+ path->addAttribute("stroke-miterlimit", _miterlimit);
+ if (_linecap > 0) // default value is "butt", no need to set it explicitly
+ path->addAttribute("stroke-linecap", _linecap == 1 ? "round" : "square");
+ if (_linejoin > 0) // default value is "miter", no need to set it explicitly
+ path->addAttribute("stroke-linejoin", _linecap == 1 ? "round" : "bevel");
+ if (_opacityalpha < 1)
+ path->addAttribute("stroke-opacity", _opacityalpha);
+ if (!_dashpattern.empty()) {
+ ostringstream oss;
+ for (size_t i=0; i < _dashpattern.size(); i++) {
+ if (i > 0)
+ oss << ',';
+ oss << XMLString(_dashpattern[i]);
+ }
+ path->addAttribute("stroke-dasharray", oss.str());
+ if (_dashoffset != 0)
+ path->addAttribute("stroke-dashoffset", _dashoffset);
+ }
+ }
+ if (path && _clipStack.top()) {
+ // assign clipping path and clip bounding box
+ path->addAttribute("clip-path", XMLString("url(#clip")+XMLString(_clipStack.topID())+")");
+ BoundingBox clipbox;
+ _clipStack.top()->computeBBox(clipbox);
+ bbox.intersect(clipbox);
+ }
+
+ if (_xmlnode)
+ _xmlnode->append(path);
+ else {
+ _actions->appendToPage(path);
+ _actions->embed(bbox);
+ }
+ _path.newpath();
+ }
+}
+
+
+/** Draws a closed path filled with the current color.
+ * @param[in] p not used
+ * @param[in] evenodd true: use even-odd fill algorithm, false: use nonzero fill algorithm */
+void PsSpecialHandler::fill (vector<double> &p, bool evenodd) {
+ if (!_path.empty() && _actions) {
+ // compute bounding box
+ BoundingBox bbox;
+ _path.computeBBox(bbox);
+ if (!_actions->getMatrix().isIdentity()) {
+ _path.transform(_actions->getMatrix());
+ if (!_xmlnode)
+ bbox.transform(_actions->getMatrix());
+ }
+ const double pt = 72.27/72.0; // factor to convert bp -> pt
+ ScalingMatrix scale(pt, pt);
+ _path.transform(scale);
+ bbox.transform(scale);
+
+ ostringstream oss;
+ _path.writeSVG(oss);
+ XMLElementNode *path = new XMLElementNode("path");
+ path->addAttribute("d", oss.str());
+ if (_pattern)
+ path->addAttribute("fill", XMLString("url(#")+_pattern->svgID()+")");
+ else if (_actions->getColor() != Color::BLACK || _savenode)
+ path->addAttribute("fill", _actions->getColor().rgbString());
+ if (_clipStack.top()) {
+ // assign clipping path and clip bounding box
+ path->addAttribute("clip-path", XMLString("url(#clip")+XMLString(_clipStack.topID())+")");
+ BoundingBox clipbox;
+ _clipStack.top()->computeBBox(clipbox);
+ bbox.intersect(clipbox);
+ }
+ if (evenodd) // SVG default fill rule is "nonzero" algorithm
+ path->addAttribute("fill-rule", "evenodd");
+ if (_opacityalpha < 1)
+ path->addAttribute("fill-opacity", _opacityalpha);
+ if (_xmlnode)
+ _xmlnode->append(path);
+ else {
+ _actions->appendToPage(path);
+ _actions->embed(bbox);
+ }
+ _path.newpath();
+ }
+}
+
+
+/** Creates a Matrix object out of a given sequence of 6 double values.
+ * The given values must be arranged in PostScript matrix order.
+ * @param[in] v vector containing the matrix values
+ * @param[in] startindex vector index of first component
+ * @param[out] matrix the generated matrix */
+static void create_matrix (vector<double> &v, int startindex, Matrix &matrix) {
+ // Ensure vector p has 6 elements. If necessary, add missing ones
+ // using corresponding values of the identity matrix.
+ if (v.size()-startindex < 6) {
+ v.resize(6+startindex);
+ for (int i=v.size()-startindex; i < 6; ++i)
+ v[i+startindex] = (i%3 ? 0 : 1);
+ }
+ // PS matrix [a b c d e f] equals ((a,b,0),(c,d,0),(e,f,1)).
+ // Since PS uses left multiplications, we must transpose and reorder
+ // the matrix to ((a,c,e),(b,d,f),(0,0,1)). This is done by the
+ // following swaps.
+ swap(v[startindex+1], v[startindex+2]); // => (a, c, b, d, e, f)
+ swap(v[startindex+2], v[startindex+4]); // => (a, c, e, d, b, f)
+ swap(v[startindex+3], v[startindex+4]); // => (a, c, e, b, d, f)
+ matrix.set(v, startindex);
+}
+
+
+/** Starts the definition of a new fill pattern. This operator
+ * expects 9 parameters for tiling patterns (see PS reference 4.9.2):
+ * @param[in] p the 9 values defining a tiling pattern (see PS reference 4.9.2):
+ * 0: pattern type (0:none, 1:tiling, 2:shading)
+ * 1: pattern ID
+ * 2-5: lower left and upper right coordinates of pattern box
+ * 6: horizontal distance of adjacent tiles
+ * 7: vertical distance of adjacent tiles
+ * 8: paint type (1: colored pattern, 2: uncolored pattern)
+ * 9-14: pattern matrix */
+void PsSpecialHandler::makepattern (vector<double> &p) {
+ int pattern_type = static_cast<int>(p[0]);
+ int id = static_cast<int>(p[1]);
+ switch (pattern_type) {
+ case 0:
+ // pattern definition completed
+ if (_savenode) {
+ _xmlnode = _savenode;
+ _savenode = 0;
+ }
+ break;
+ case 1: { // tiling pattern
+ BoundingBox bbox(p[2], p[3], p[4], p[5]);
+ const double &xstep=p[6], &ystep=p[7]; // horizontal and vertical distance of adjacent tiles
+ int paint_type = static_cast<int>(p[8]);
+
+ Matrix matrix; // transformation matrix given together with pattern definition
+ create_matrix(p, 9, matrix);
+ matrix.rmultiply(_actions->getMatrix());
+
+ PSTilingPattern *pattern=0;
+ if (paint_type == 1)
+ pattern = new PSColoredTilingPattern(id, bbox, matrix, xstep, ystep);
+ else
+ pattern = new PSUncoloredTilingPattern(id, bbox, matrix, xstep, ystep);
+ _patterns[id] = pattern;
+ _savenode = _xmlnode;
+ _xmlnode = pattern->getContainerNode(); // insert the following SVG elements into this node
+ break;
+ }
+ case 2: {
+ // define a shading pattern
+ }
+ }
+}
+
+
+/** Selects a previously defined fill pattern.
+ * 0: pattern ID
+ * 1-3: (optional) RGB values for uncolored tiling patterns
+ * further parameters depend on the pattern type */
+void PsSpecialHandler::setpattern (vector<double> &p) {
+ int pattern_id = p[0];
+ Color color;
+ if (p.size() == 4)
+ color.set((float)p[1], (float)p[2], (float)p[3]);
+ map<int,PSPattern*>::iterator it = _patterns.find(pattern_id);
+ if (it == _patterns.end())
+ _pattern = 0;
+ else {
+ if (PSUncoloredTilingPattern *pattern = dynamic_cast<PSUncoloredTilingPattern*>(it->second))
+ pattern->setColor(color);
+ it->second->apply(_actions);
+ if (PSTilingPattern *pattern = dynamic_cast<PSTilingPattern*>(it->second))
+ _pattern = pattern;
+ else
+ _pattern = 0;
+ }
+}
+
+
+/** Clears the current clipping path.
+ * @param[in] p not used */
+void PsSpecialHandler::initclip (vector<double> &p) {
+ _clipStack.push(); // push empty path
+}
+
+
+/** Assigns a new clipping path.
+ * @param[in] p not used
+ * @param[in] evenodd true: use even-odd fill algorithm, false: use nonzero fill algorithm */
+void PsSpecialHandler::clip (vector<double> &p, bool evenodd) {
+ // when this method is called, _path contains the clipping path
+ if (!_path.empty() && _actions) {
+ if (!_actions->getMatrix().isIdentity())
+ _path.transform(_actions->getMatrix());
+
+ const double pt = 72.27/72.0; // factor to convert bp -> pt
+ ScalingMatrix scale(pt, pt);
+ _path.transform(scale);
+
+
+ int oldID = _clipStack.topID();
+ _clipStack.replace(_path);
+ int newID = _clipStack.topID();
+
+ ostringstream oss;
+ _path.writeSVG(oss);
+ XMLElementNode *path = new XMLElementNode("path");
+ path->addAttribute("d", oss.str());
+ if (evenodd)
+ path->addAttribute("clip-rule", "evenodd");
+
+ XMLElementNode *clip = new XMLElementNode("clipPath");
+ clip->addAttribute("id", XMLString("clip")+XMLString(newID));
+ if (oldID)
+ clip->addAttribute("clip-path", XMLString("url(#clip")+XMLString(oldID)+")");
+
+ clip->append(path);
+ _actions->appendToDefs(clip);
+ }
+}
+
+
+/** Clears current path */
+void PsSpecialHandler::newpath (vector<double> &p) {
+ _path.newpath();
+}
+
+
+void PsSpecialHandler::setmatrix (vector<double> &p) {
+ if (_actions) {
+ Matrix m;
+ create_matrix(p, 0, m);
+ _actions->setMatrix(m);
+ }
+}
+
+
+// In contrast to SVG, PostScript transformations are applied in
+// reverse order (M' = T*M). Thus, the transformation matrices must be
+// left-multiplied in the following methods scale(), translate() and rotate().
+
+
+void PsSpecialHandler::scale (vector<double> &p) {
+ if (_actions) {
+ Matrix m = _actions->getMatrix();
+ ScalingMatrix s(p[0], p[1]);
+ m.lmultiply(s);
+ _actions->setMatrix(m);
+ }
+}
+
+
+void PsSpecialHandler::translate (vector<double> &p) {
+ if (_actions) {
+ Matrix m = _actions->getMatrix();
+ TranslationMatrix t(p[0], p[1]);
+ m.lmultiply(t);
+ _actions->setMatrix(m);
+ }
+}
+
+
+void PsSpecialHandler::rotate (vector<double> &p) {
+ if (_actions) {
+ Matrix m = _actions->getMatrix();
+ RotationMatrix r(p[0]);
+ m.lmultiply(r);
+ _actions->setMatrix(m);
+ }
+}
+
+
+void PsSpecialHandler::setgray (vector<double> &p) {
+ _pattern = 0;
+ if (_actions) {
+ Color c;
+ c.setGray((float)p[0]);
+ _actions->setColor(c);
+ }
+}
+
+
+void PsSpecialHandler::setrgbcolor (vector<double> &p) {
+ _pattern= 0;
+ if (_actions)
+ _actions->setColor(Color((float)p[0], (float)p[1], (float)p[2]));
+}
+
+
+void PsSpecialHandler::setcmykcolor (vector<double> &p) {
+ _pattern = 0;
+ if (_actions) {
+ Color c;
+ c.setCMYK((float)p[0], (float)p[1], (float)p[2], (float)p[3]);
+ _actions->setColor(c);
+ }
+}
+
+
+void PsSpecialHandler::sethsbcolor (vector<double> &p) {
+ _pattern = 0;
+ if (_actions) {
+ Color c;
+ c.setHSB((float)p[0], (float)p[1], (float)p[2]);
+ _actions->setColor(c);
+ }
+}
+
+
+/** Sets the dash parameters used for stroking.
+ * @param[in] p dash pattern array m1,...,mn plus trailing dash offset */
+void PsSpecialHandler::setdash (vector<double> &p) {
+ _dashpattern.clear();
+ for (size_t i=0; i < p.size()-1; i++)
+ _dashpattern.push_back(scale(p[i]));
+ _dashoffset = scale(p.back());
+}
+
+
+/** This method is called by the PSInterpreter if an PS operator has been executed. */
+void PsSpecialHandler::executed () {
+ if (_actions)
+ _actions->progress("ps");
+}
+
+////////////////////////////////////////////
+
+void PsSpecialHandler::ClippingStack::push () {
+ if (!_stack.empty())
+ _stack.push(Entry(0, -1));
+}
+
+
+void PsSpecialHandler::ClippingStack::push (const Path &path, int saveID) {
+ if (path.empty())
+ _stack.push(Entry(0, saveID));
+ else {
+ _paths.push_back(path);
+ _stack.push(Entry(_paths.size(), saveID));
+ }
+}
+
+
+/** Pops a single or several elements from the clipping stack.
+ * The method distingushes between the following cases:
+ * 1) saveID < 0 and grestoreall == false:
+ * pop top element if it was pushed by gsave (its saveID is < 0 as well)
+ * 2) saveID < 0 and grestoreall == true
+ * repeat popping until stack is empty or the top element was pushed
+ * by save (its saveID is >= 0)
+ * 3) saveID >= 0:
+ * pop all elements until the saveID of the top element equals parameter saveID */
+void PsSpecialHandler::ClippingStack::pop (int saveID, bool grestoreall) {
+ if (!_stack.empty()) {
+ if (saveID < 0) { // grestore?
+ if (_stack.top().saveID < 0) // pushed by 'gsave'?
+ _stack.pop();
+ // pop all further elements pushed by 'gsave' if grestoreall == true
+ while (grestoreall && !_stack.empty() && _stack.top().saveID < 0)
+ _stack.pop();
+ }
+ else {
+ // pop elements pushed by 'gsave'
+ while (!_stack.empty() && _stack.top().saveID != saveID)
+ _stack.pop();
+ // pop element pushed by 'save'
+ if (!_stack.empty())
+ _stack.pop();
+ }
+ }
+}
+
+
+/** Returns a pointer to the path on top of the stack, or 0 if the stack is empty. */
+PsSpecialHandler::Path* PsSpecialHandler::ClippingStack::top () {
+ return (!_stack.empty() && _stack.top().pathID)
+ ? &_paths[_stack.top().pathID-1]
+ : 0;
+}
+
+
+/** Pops all elements from the stack. */
+void PsSpecialHandler::ClippingStack::clear() {
+ _paths.clear();
+ while (!_stack.empty())
+ _stack.pop();
+}
+
+
+/** Replaces the top element by a new one.
+ * @param[in] path new path to be on top of the stack */
+void PsSpecialHandler::ClippingStack::replace (const Path &path) {
+ if (_stack.empty())
+ push(path, -1);
+ else {
+ _paths.push_back(path);
+ _stack.top().pathID = _paths.size();
+ }
+}
+
+
+/** Duplicates the top element, i.e. the top element is pushed again. */
+void PsSpecialHandler::ClippingStack::dup (int saveID) {
+ _stack.push(_stack.empty() ? Entry(0, -1) : _stack.top());
+ _stack.top().saveID = saveID;
+}
+
+
+const char** PsSpecialHandler::prefixes () const {
+ static const char *pfx[] = {"header=", "psfile=", "PSfile=", "ps:", "ps::", "!", "\"", 0};
+ return pfx;
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PsSpecialHandler.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PsSpecialHandler.h
new file mode 100644
index 00000000000..afb9b3cfc36
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/PsSpecialHandler.h
@@ -0,0 +1,140 @@
+/*************************************************************************
+** PsSpecialHandler.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef PSSPECIALHANDLER_H
+#define PSSPECIALHANDLER_H
+
+#include <set>
+#include <stack>
+#include <string>
+#include <vector>
+#include "GraphicPath.h"
+#include "PSInterpreter.h"
+#include "SpecialHandler.h"
+#include "PSPattern.h"
+
+
+class PSPattern;
+class XMLElementNode;
+
+class PsSpecialHandler : public SpecialHandler, protected PSActions
+{
+ typedef GraphicPath<double> Path;
+
+ class ClippingStack
+ {
+ public:
+ void push ();
+ void push (const Path &path, int saveID=-1);
+ void replace (const Path &path);
+ void dup (int saveID=-1);
+ void pop (int saveID=-1, bool grestore=false);
+ void clear ();
+ bool empty () {return _stack.empty();}
+ Path* top ();
+ int topID () {return _stack.empty() ? 0 : _stack.top().pathID;}
+
+ private:
+ struct Entry {
+ int pathID; ///< index referencing a path of the pool
+ int saveID; ///< if >=0, path was pushed by 'save', and saveID holds the ID of the
+ Entry (int pid, int sid) : pathID(pid), saveID(sid) {}
+ };
+ std::vector<Path> _paths; ///< pool of all clipping paths
+ std::stack<Entry> _stack;
+ };
+
+ public:
+ PsSpecialHandler ();
+ ~PsSpecialHandler ();
+ const char* name () const {return "ps";}
+ const char* info () const {return "dvips PostScript specials";}
+ const char** prefixes () const;
+ bool process (const char *prefix, std::istream &is, SpecialActions *actions);
+
+ protected:
+ void initialize (SpecialActions *actions);
+ void moveToDVIPos ();
+ void psfile (const std::string &fname, const std::map<std::string,std::string> &attr);
+
+ /// scale given value by current PS scale factors
+ double scale (double v) const {return v*(_sx*_cos*_cos + _sy*(1-_cos*_cos));}
+
+ void applyscalevals (std::vector<double> &p) {_sx = p[0]; _sy = p[1]; _cos = p[2];}
+ void clip (std::vector<double> &p) {clip(p, false);}
+ void clip (std::vector<double> &p, bool evenodd);
+ void closepath (std::vector<double> &p);
+ void curveto (std::vector<double> &p);
+ void eoclip (std::vector<double> &p) {clip(p, true);}
+ void eofill (std::vector<double> &p) {fill(p, true);}
+ void fill (std::vector<double> &p, bool evenodd);
+ void fill (std::vector<double> &p) {fill(p, false);}
+ void grestore (std::vector<double> &p);
+ void grestoreall (std::vector<double> &p);
+ void gsave (std::vector<double> &p);
+ void initclip (std::vector<double> &p);
+ void lineto (std::vector<double> &p);
+ void makepattern (std::vector<double> &p);
+ void moveto (std::vector<double> &p);
+ void newpath (std::vector<double> &p);
+ void querypos (std::vector<double> &p) {_currentpoint = DPair(p[0], p[1]);}
+ void restore (std::vector<double> &p);
+ void rotate (std::vector<double> &p);
+ void save (std::vector<double> &p);
+ void scale (std::vector<double> &p);
+ void setcmykcolor (std::vector<double> &cmyk);
+ void setdash (std::vector<double> &p);
+ void setgray (std::vector<double> &p);
+ void sethsbcolor (std::vector<double> &hsb);
+ void setlinecap (std::vector<double> &p) {_linecap = UInt8(p[0]);}
+ void setlinejoin (std::vector<double> &p) {_linejoin = UInt8(p[0]);}
+ void setlinewidth (std::vector<double> &p) {_linewidth = p[0] ? scale(p[0])*1.00375 : 0.5;}
+ void setmatrix (std::vector<double> &p);
+ void setmiterlimit (std::vector<double> &p) {_miterlimit = p[0]*1.00375;}
+ void setopacityalpha (std::vector<double> &p){_opacityalpha = p[0];}
+ void setpattern (std::vector<double> &p);
+ void setrgbcolor (std::vector<double> &rgb);
+ void stroke (std::vector<double> &p);
+ void translate (std::vector<double> &p);
+ void executed ();
+
+ private:
+ PSInterpreter _psi;
+ SpecialActions *_actions;
+ bool _initialized;
+ XMLElementNode *_xmlnode; ///< if != 0, created SVG elements are appended to this node
+ XMLElementNode *_savenode; ///< pointer to temporaryly store _xmlnode
+ Path _path;
+ DPair _currentpoint; ///< current PS position in bp units
+ double _sx, _sy; ///< horizontal and vertical scale factors retrieved by operator "applyscalevals"
+ double _cos; ///< cosine of angle between (1,0) and transform(1,0)
+ double _linewidth; ///< current linewidth
+ double _miterlimit; ///< current miter limit
+ double _opacityalpha; ///< opacity level (0=fully transparent, ..., 1=opaque)
+ UInt8 _linecap : 2; ///< current line cap (0=butt, 1=round, 2=projecting square)
+ UInt8 _linejoin : 2; ///< current line join (0=miter, 1=round, 2=bevel)
+ double _dashoffset; ///< current dash offset
+ std::vector<double> _dashpattern;
+ ClippingStack _clipStack;
+ std::map<int, PSPattern*> _patterns;
+ PSTilingPattern *_pattern; ///< current pattern
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SVGOutputBase.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SVGOutputBase.h
new file mode 100644
index 00000000000..f53815c0a28
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SVGOutputBase.h
@@ -0,0 +1,33 @@
+/*************************************************************************
+** SVGOutputBase.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef SVGOUTPUTBASE_H
+#define SVGOUTPUTBASE_H
+
+#include <ostream>
+#include <string>
+
+struct SVGOutputBase {
+ virtual ~SVGOutputBase () {}
+ virtual std::ostream& getPageStream (int page, int numPages) const =0;
+ virtual std::string filename (int page, int numPages) const =0;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SVGTree.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SVGTree.cpp
new file mode 100644
index 00000000000..d37dba6dc7f
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SVGTree.cpp
@@ -0,0 +1,341 @@
+/*************************************************************************
+** SVGTree.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <sstream>
+#include <string>
+#include "BoundingBox.h"
+#include "DVIToSVG.h"
+#include "Font.h"
+#include "FontManager.h"
+#include "SVGTree.h"
+#include "XMLDocument.h"
+#include "XMLDocTypeNode.h"
+#include "XMLNode.h"
+#include "XMLString.h"
+
+using namespace std;
+
+
+// static class variables
+bool SVGTree::CREATE_STYLE=true;
+bool SVGTree::USE_FONTS=true;
+bool SVGTree::CREATE_USE_ELEMENTS=false;
+
+
+SVGTree::SVGTree () : _font(0), _color(Color::BLACK), _matrix(1) {
+ _xchanged = _ychanged = false;
+ _fontnum = 0;
+ reset();
+}
+
+
+/** Clears the SVG tree and initializes the root element. */
+void SVGTree::reset () {
+ _doc.clear();
+ _root = new XMLElementNode("svg");
+ _root->addAttribute("version", "1.1");
+ _root->addAttribute("xmlns", "http://www.w3.org/2000/svg");
+ _root->addAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
+ _doc.setRootNode(_root);
+ _doc.append(new XMLDocTypeNode("svg", "PUBLIC",
+ "\"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\""));
+ _page = _text = _span = _defs = 0;
+}
+
+
+/** Sets the bounding box of the document.
+ * @param[in] bbox bounding box in TeX point units */
+void SVGTree::setBBox (const BoundingBox &bbox) {
+ double bp = 72.0/72.27; // pt -> bp
+ ScalingMatrix scale(bp, bp);
+ BoundingBox scaled_box = bbox;
+ scaled_box.transform(scale);
+ _root->addAttribute("width", XMLString(scaled_box.width())+"pt");
+ _root->addAttribute("height", XMLString(scaled_box.height())+"pt");
+ _root->addAttribute("viewBox", scaled_box.toSVGViewBox());
+}
+
+
+/** Starts a new page.
+ * @param[in] pageno number of new page */
+void SVGTree::newPage (int pageno) {
+ _page = new XMLElementNode("g");
+ if (pageno >= 0)
+ _page->addAttribute("id", string("page")+XMLString(pageno));
+ _root->append(_page);
+ _text = _span = 0;
+}
+
+
+void SVGTree::appendToDefs (XMLNode *node) {
+ if (!_defs) {
+ _defs = new XMLElementNode("defs");
+ _root->prepend(_defs);
+ }
+ _defs->append(node);
+}
+
+
+/** Appends a single charater to the current text node. If necessary, and depending on output mode
+ * and further output states, new XML elements (text, tspan, g, ...) are created.
+ * @param[in] c character to be added
+ * @param[in] x x coordinate
+ * @param[in] y y coordinate
+ * @param[in] font font to be used */
+void SVGTree::appendChar (int c, double x, double y, const Font &font) {
+ XMLElementNode *node=_span;
+ if (USE_FONTS) {
+ // changes of fonts and transformations require a new text element
+ if (!_text || _font.changed() || _matrix.changed()) {
+ newTextNode(x, y);
+ node = _text;
+ _color.changed(true);
+ }
+ if (_xchanged || _ychanged || (_color.changed() && _color.get() != Color::BLACK)) {
+ // if drawing position was explicitly changed, create a new tspan element
+ _span = new XMLElementNode("tspan");
+ if (_xchanged) {
+ _span->addAttribute("x", x);
+ _xchanged = false;
+ }
+ if (_ychanged) {
+ _span->addAttribute("y", y);
+ _ychanged = false;
+ }
+ if (_color.get() != Color::BLACK) {
+ _span->addAttribute("fill", _color.get().rgbString());
+ _color.changed(false);
+ }
+ _text->append(_span);
+ node = _span;
+ }
+ if (!node) {
+ if (!_text)
+ newTextNode(x, y);
+ node = _text;
+ }
+ node->append(XMLString(font.unicode(c), false));
+ }
+ else {
+ if (_color.changed() || _matrix.changed()) {
+ bool set_color = (_color.changed() && _color.get() != Color::BLACK);
+ bool set_matrix = (_matrix.changed() && !_matrix.get().isIdentity());
+ if (set_color || set_matrix) {
+ _span = new XMLElementNode("g");
+ if (_color.get() != Color::BLACK)
+ _span->addAttribute("fill", _color.get().rgbString());
+ if (!_matrix.get().isIdentity())
+ _span->addAttribute("transform", _matrix.get().getSVG());
+ _page->append(_span);
+ node = _span;
+ _color.changed(false);
+ _matrix.changed(false);
+ }
+ else if (_color.get() == Color::BLACK && _matrix.get().isIdentity())
+ node = _span = 0;
+ }
+
+ if (!node)
+ node = _page;
+ if (CREATE_USE_ELEMENTS) {
+ ostringstream oss;
+ oss << "#g" << FontManager::instance().fontID(_font) << '-' << c;
+ XMLElementNode *use = new XMLElementNode("use");
+ use->addAttribute("x", XMLString(x));
+ use->addAttribute("y", XMLString(y));
+ use->addAttribute("xlink:href", oss.str());
+ node->append(use);
+ }
+ else {
+ Glyph glyph;
+ const PhysicalFont *font = dynamic_cast<const PhysicalFont*>(_font.get());
+ if (font && font->getGlyph(c, glyph)) {
+ double sx = font->scaledSize()/font->unitsPerEm();
+ double sy = -sx;
+ ostringstream oss;
+ glyph.writeSVG(oss, sx, sy, x, y);
+ XMLElementNode *glyph_node = new XMLElementNode("path");
+ glyph_node->addAttribute("d", oss.str());
+ node->append(glyph_node);
+ }
+ }
+ }
+}
+
+
+/** Creates a new text element. This is a helper function used by appendChar().
+ * @param[in] x current x coordinate
+ * @param[in] y current y coordinate */
+void SVGTree::newTextNode (double x, double y) {
+ _text = new XMLElementNode("text");
+ _span = 0; // no tspan in text element yet
+ if (USE_FONTS) {
+ const Font *font = _font.get();
+ if (CREATE_STYLE || !font)
+ _text->addAttribute("class", string("f")+XMLString(_fontnum));
+ else {
+ _text->addAttribute("font-family", font->name());
+ _text->addAttribute("font-size", font->scaledSize());
+ }
+ }
+ _text->addAttribute("x", x);
+ _text->addAttribute("y", y);
+ if (!_matrix.get().isIdentity())
+ _text->addAttribute("transform", _matrix.get().getSVG());
+ _page->append(_text);
+ _font.changed(false);
+ _matrix.changed(false);
+ _xchanged = false;
+ _ychanged = false;
+}
+
+
+void SVGTree::setFont (int num, const Font *font) {
+ _font.set(font);
+ _fontnum = num;
+}
+
+
+void SVGTree::transformPage (const Matrix *usermatrix) {
+ double bp = 72.0/72.27; // pt -> bp
+ ScalingMatrix matrix(bp, bp);
+ if (usermatrix)
+ matrix.rmultiply(*usermatrix);
+ if (!matrix.isIdentity())
+ _page->addAttribute("transform", matrix.getSVG());
+}
+
+
+/** Creates an SVG element for a single glyph.
+ * @param[in] c character number
+ * @param[in] font font to extract the glyph from
+ * @return pointer to element node if glyph exists, 0 otherwise */
+static XMLElementNode* createGlyphNode (int c, const PhysicalFont &font, GFGlyphTracer::Callback *cb) {
+ Glyph glyph;
+ if (!font.getGlyph(c, glyph, cb) || (!SVGTree::USE_FONTS && !SVGTree::CREATE_USE_ELEMENTS))
+ return 0;
+
+ double sx=1.0, sy=1.0;
+ double upem = font.unitsPerEm();
+ XMLElementNode *glyph_node=0;
+ if (SVGTree::USE_FONTS) {
+ glyph_node = new XMLElementNode("glyph");
+ glyph_node->addAttribute("unicode", XMLString(font.unicode(c), false));
+ glyph_node->addAttribute("horiz-adv-x", XMLString(font.hAdvance(c)));
+ string name = font.glyphName(c);
+ if (!name.empty())
+ glyph_node->addAttribute("glyph-name", name);
+ }
+ else {
+ ostringstream oss;
+ oss << 'g' << FontManager::instance().fontID(&font) << '-' << c;
+ glyph_node = new XMLElementNode("path");
+ glyph_node->addAttribute("id", oss.str());
+ sx = font.scaledSize()/upem;
+ sy = -sx;
+ }
+ ostringstream oss;
+ glyph.writeSVG(oss, sx, sy);
+ glyph_node->addAttribute("d", oss.str());
+ return glyph_node;
+}
+
+
+void SVGTree::appendFontStyles (const set<const Font*> &fonts) {
+ if (CREATE_STYLE && USE_FONTS && !fonts.empty() && _defs) {
+ XMLElementNode *styleNode = new XMLElementNode("style");
+ styleNode->addAttribute("type", "text/css");
+ _root->insertAfter(styleNode, _defs);
+ typedef map<int, const Font*> SortMap;
+ SortMap sortmap;
+ FORALL(fonts, set<const Font*>::const_iterator, it)
+ if (!dynamic_cast<const VirtualFont*>(*it)) // skip virtual fonts
+ sortmap[FontManager::instance().fontID(*it)] = *it;
+ ostringstream style;
+ // add font style definitions in ascending order
+ FORALL(sortmap, SortMap::const_iterator, it) {
+ style << "text.f" << it->first << ' '
+ << "{font-family:" << it->second->name()
+ << ";font-size:" << it->second->scaledSize() << "}\n";
+ }
+ XMLCDataNode *cdata = new XMLCDataNode(style.str());
+ styleNode->append(cdata);
+ }
+}
+
+
+/** Appends glyph definitions of a given font to the defs section of the SVG tree.
+ * @param[in] font font to be appended
+ * @param[in] chars codes of the characters whose glyph outlines should be appended */
+void SVGTree::append (const PhysicalFont &font, const set<int> &chars, GFGlyphTracer::Callback *cb) {
+ if (chars.empty())
+ return;
+
+ if (USE_FONTS) {
+ XMLElementNode *fontNode = new XMLElementNode("font");
+ string fontname = font.name();
+ fontNode->addAttribute("id", fontname);
+ fontNode->addAttribute("horiz-adv-x", XMLString(font.hAdvance()));
+ appendToDefs(fontNode);
+
+ XMLElementNode *faceNode = new XMLElementNode("font-face");
+ faceNode->addAttribute("font-family", fontname);
+ faceNode->addAttribute("units-per-em", XMLString(font.unitsPerEm()));
+ if (font.type() != PhysicalFont::MF) {
+ faceNode->addAttribute("ascent", XMLString(font.ascent()));
+ faceNode->addAttribute("descent", XMLString(font.descent()));
+ }
+ fontNode->append(faceNode);
+
+ // add required missing-glyph element
+ XMLElementNode *missing = new XMLElementNode("missing-glyph");
+ missing->addAttribute("d", "");
+ fontNode->append(missing);
+ FORALL(chars, set<int>::const_iterator, i)
+ fontNode->append(createGlyphNode(*i, font, cb));
+ }
+ else if (CREATE_USE_ELEMENTS && &font != font.uniqueFont()) {
+ // If the same character is used in various sizes we don't want to embed the complete (lengthy) path
+ // description multiple times because they would only differ by a scale factor. Thus it's better to
+ // reference the already embedded path together with a transformation attribute and let the SVG renderer
+ // scale the glyph properly. This is only necessary if we don't want to use font but path elements.
+ FORALL(chars, set<int>::const_iterator, it) {
+ ostringstream oss;
+ XMLElementNode *use = new XMLElementNode("use");
+ oss << 'g' << FontManager::instance().fontID(&font) << '-' << *it;
+ use->addAttribute("id", oss.str());
+ oss.str("");
+ oss << "#g" << FontManager::instance().fontID(font.uniqueFont()) << '-' << *it;
+ use->addAttribute("xlink:href", oss.str());
+ double scale = font.scaledSize()/font.uniqueFont()->scaledSize();
+ if (scale != 1.0) {
+ oss.str("");
+ oss << "scale(" << scale << ')';
+ use->addAttribute("transform", oss.str());
+ }
+ appendToDefs(use);
+ }
+ }
+ else {
+ FORALL(chars, set<int>::const_iterator, i)
+ appendToDefs(createGlyphNode(*i, font, cb));
+ }
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SVGTree.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SVGTree.h
new file mode 100644
index 00000000000..c81dbd6d62f
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SVGTree.h
@@ -0,0 +1,104 @@
+/*************************************************************************
+** SVGTree.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef SVGTREE_H
+#define SVGTREE_H
+
+#include <map>
+#include <set>
+#include "Color.h"
+#include "GFGlyphTracer.h"
+#include "Matrix.h"
+#include "XMLDocument.h"
+#include "XMLNode.h"
+
+class BoundingBox;
+class Color;
+struct Font;
+class Matrix;
+class PhysicalFont;
+
+class SVGTree
+{
+ template <typename T>
+ class Property {
+ public:
+ Property (const T &v) : _value(v), _changed(false) {}
+
+ void set (const T &v) {
+ if (v != _value) {
+ _value = v;
+ _changed = true;
+ }
+ }
+
+ const T& get () const {return _value;}
+ operator const T& () {return _value;}
+ bool changed () const {return _changed;}
+ void changed (bool c) {_changed = c;}
+
+ private:
+ T _value;
+ bool _changed;
+ };
+
+ public:
+ SVGTree ();
+ void reset ();
+ void write (std::ostream &os) const {_doc.write(os);}
+ void newPage (int pageno);
+ void appendToDefs (XMLNode *node);
+ void appendToPage (XMLNode *node) {_page->append(node);}
+ void prependToPage (XMLNode *node){_page->prepend(node);}
+ void appendToDoc (XMLNode *node) {_doc.append(node);}
+ void appendToRoot (XMLNode *node) {_root->append(node);}
+ void appendChar (int c, double x, double y, const Font &font);
+ void appendFontStyles (const std::set<const Font*> &fonts);
+ void append (const PhysicalFont &font, const std::set<int> &chars, GFGlyphTracer::Callback *cb=0);
+ void setBBox (const BoundingBox &bbox);
+ void setFont (int id, const Font *font);
+ void setX (double x) {_xchanged = true;}
+ void setY (double y) {_ychanged = true;}
+ void setMatrix (const Matrix &m) {_matrix.set(m);}
+ void setColor (const Color &c) {_color.set(c);}
+ void transformPage (const Matrix *m);
+ const Color& getColor () const {return _color.get();}
+ const Matrix& getMatrix () const {return _matrix.get();}
+ XMLElementNode* rootNode () const {return _root;}
+
+ public:
+ static bool USE_FONTS; ///< if true, create font references and don't draw paths directly
+ static bool CREATE_STYLE; ///< should <style>...</style> and class attributes be used to reference fonts?
+ static bool CREATE_USE_ELEMENTS; ///< allow generation of <use/> elements?
+
+ protected:
+ void newTextNode (double x, double y);
+
+ private:
+ XMLDocument _doc;
+ XMLElementNode *_root, *_page, *_text, *_span, *_defs;
+ bool _xchanged, _ychanged;
+ Property<const Font*> _font;
+ Property<Color> _color;
+ Property<Matrix> _matrix;
+ int _fontnum;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SignalHandler.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SignalHandler.cpp
new file mode 100644
index 00000000000..ffcd66165e0
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SignalHandler.cpp
@@ -0,0 +1,85 @@
+/*************************************************************************
+** SignalHandler.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cerrno>
+#include <csignal>
+#include <cstdlib>
+#include "SignalHandler.h"
+
+using namespace std;
+
+bool SignalHandler::_break = false;
+
+
+SignalHandler::~SignalHandler() {
+ stop();
+}
+
+
+/** Returns the singleton handler object. */
+SignalHandler& SignalHandler::instance() {
+ static SignalHandler handler;
+ return handler;
+}
+
+
+/** Starts listening to CTRL-C signals.
+ * @return true if handler was activated. */
+bool SignalHandler::start () {
+ if (!_active) {
+ _break = false;
+ if (signal(SIGINT, SignalHandler::callback) != SIG_ERR) {
+ _active = true;
+ return true;
+ }
+ }
+ return false;
+}
+
+
+/** Stops listening for CTRL-C signals. */
+void SignalHandler::stop () {
+ if (_active) {
+ signal(SIGINT, SIG_DFL);
+ _active = false;
+ }
+}
+
+
+/** Checks for incoming signals and throws an exception if CTRL-C was caught.
+ * @throw SignalException */
+void SignalHandler::check() {
+ if (_break)
+ throw SignalException();
+}
+
+
+void SignalHandler::trigger (bool notify) {
+ _break = true;
+ if (notify)
+ check();
+}
+
+
+/** This function is called on CTRL-C signals. */
+void SignalHandler::callback (int) {
+ _break = true;
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SignalHandler.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SignalHandler.h
new file mode 100644
index 00000000000..e7473f567d8
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SignalHandler.h
@@ -0,0 +1,50 @@
+/*************************************************************************
+** SignalHandler.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef SIGNALHANDLER_H
+#define SIGNALHANDLER_H
+
+#include <exception>
+
+struct SignalException : public std::exception {
+};
+
+
+class SignalHandler
+{
+ public:
+ ~SignalHandler ();
+ static SignalHandler& instance ();
+ bool start ();
+ void stop ();
+ void check ();
+ void trigger (bool notify);
+ bool active () const {return _active;}
+
+ protected:
+ SignalHandler () : _active(false) {}
+ static void callback (int signal);
+
+ private:
+ bool _active; ///< true if listening for signals
+ static bool _break; ///< true if signal has been caught
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialActions.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialActions.h
new file mode 100644
index 00000000000..3d99d9b17c0
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialActions.h
@@ -0,0 +1,80 @@
+/*************************************************************************
+** SpecialActions.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef SPECIALACTIONS_H
+#define SPECIALACTIONS_H
+
+#include <string>
+#include "BoundingBox.h"
+#include "Color.h"
+#include "Matrix.h"
+
+struct XMLNode;
+
+struct SpecialActions
+{
+ virtual ~SpecialActions () {}
+ virtual double getX() const =0;
+ virtual double getY() const =0;
+ virtual void setX(double x) =0;
+ virtual void setY(double y) =0;
+ virtual void finishLine () =0;
+ virtual void setColor (const Color &color) =0;
+ virtual Color getColor () const =0;
+ virtual void setMatrix (const Matrix &m) =0;
+ virtual const Matrix& getMatrix () const =0;
+ virtual void setBgColor (const Color &color) =0;
+ virtual void appendToPage (XMLNode *node) =0;
+ virtual void appendToDefs (XMLNode *node) =0;
+ virtual BoundingBox& bbox () =0;
+ virtual BoundingBox& bbox (const std::string &name, bool reset=false) =0;
+ virtual void embed (const BoundingBox &bbox) =0;
+ virtual void embed (const DPair &p, double r=0) =0;
+ virtual void progress (const char *id) {}
+};
+
+
+class SpecialEmptyActions : public SpecialActions
+{
+ public:
+ double getX() const {return 0;}
+ double getY() const {return 0;}
+ void setX(double x) {}
+ void setY(double y) {}
+ void finishLine () {}
+ void setColor (const Color &color) {}
+ void setBgColor (const Color &color) {}
+ Color getColor () const {return 0;}
+ void setMatrix (const Matrix &m) {}
+ const Matrix& getMatrix () const {return _matrix;}
+ void appendToPage (XMLNode *node) {}
+ void appendToDefs (XMLNode *node) {}
+ BoundingBox& bbox () {return _bbox;}
+ BoundingBox& bbox (const std::string &name, bool reset=false) {return _bbox;}
+ void embed (const BoundingBox &bbox) {}
+ void embed (const DPair &p, double r=0) {}
+
+ private:
+ BoundingBox _bbox;
+ Matrix _matrix;
+};
+
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialHandler.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialHandler.h
new file mode 100644
index 00000000000..7818dbfb108
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialHandler.h
@@ -0,0 +1,58 @@
+/*************************************************************************
+** SpecialHandler.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef SPECIALHANDLER_H
+#define SPECIALHANDLER_H
+
+#include <istream>
+#include <list>
+#include "MessageException.h"
+
+
+struct SpecialActions;
+class SpecialManager;
+
+
+struct SpecialException : public MessageException
+{
+ SpecialException (const std::string &msg) : MessageException(msg) {}
+};
+
+
+class SpecialHandler
+{
+ friend class SpecialManager;
+
+ public:
+ virtual ~SpecialHandler () {}
+ virtual const char** prefixes () const=0;
+ virtual const char* info () const=0;
+ virtual const char* name () const=0;
+ virtual bool process (const char *prefix, std::istream &is, SpecialActions *actions)=0;
+ virtual void dviMovedTo (double x, double y) {}
+ virtual void dviEndPage () {}
+
+ protected:
+ virtual bool isEndPageListener () const {return false;}
+ virtual bool isPositionListener () const {return false;}
+};
+
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialManager.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialManager.cpp
new file mode 100644
index 00000000000..11c697be46d
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialManager.cpp
@@ -0,0 +1,151 @@
+/*************************************************************************
+** SpecialManager.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <iomanip>
+#include <sstream>
+#include "SpecialActions.h"
+#include "SpecialManager.h"
+#include "macros.h"
+
+using namespace std;
+
+
+SpecialManager::~SpecialManager () {
+ unregisterHandlers();
+}
+
+
+/** Remove all registered handlers. */
+void SpecialManager::unregisterHandlers () {
+ FORALL(_pool, vector<SpecialHandler*>::iterator, it)
+ delete *it;
+ _pool.clear();
+ _handlers.clear();
+ _endPageListeners.clear();
+ _positionListeners.clear();
+}
+
+
+/** Registers a single special handler. This method doesn't check if a
+ * handler of the same class is already registered.
+ * @param[in] pointer to handler to be registered */
+void SpecialManager::registerHandler (SpecialHandler *handler) {
+ if (handler) {
+ // get array of prefixes this handler is responsible for
+ _pool.push_back(handler);
+ for (const char **p=handler->prefixes(); *p; ++p)
+ _handlers[*p] = handler;
+ if (handler->isEndPageListener())
+ _endPageListeners.push_back(handler);
+ if (handler->isPositionListener())
+ _positionListeners.push_back(handler);
+ }
+}
+
+
+/** Registers several special handlers at once.
+ * If ignorelist == 0, all given handlers are registered. To exclude selected sets of
+ * specials, the corresponding names can be given separated by non alpha-numeric characters,
+ * e.g. "color, ps, em" or "color: ps em" etc.
+ * @param[in] handlers pointer to zero-terminated array of handlers to be registered
+ * @param[in] ignorelist list of special names to be ignored */
+void SpecialManager::registerHandlers (SpecialHandler **handlers, const char *ignorelist) {
+ if (handlers) {
+ string ign = ignorelist ? ignorelist : "";
+ FORALL(ign, string::iterator, it)
+ if (!isalnum(*it))
+ *it = '%';
+ ign = "%"+ign+"%";
+
+ for (; *handlers; handlers++) {
+ if (!(*handlers)->name() || ign.find("%"+string((*handlers)->name())+"%") == string::npos)
+ registerHandler(*handlers);
+ else
+ delete *handlers;
+ }
+ }
+}
+
+
+/** Looks for an appropriate handler for a given special prefix.
+ * @param[in] prefix the special prefix, e.g. "color" or "em"
+ * @return in case of success: pointer to handler, 0 otherwise */
+SpecialHandler* SpecialManager::findHandler (const string &prefix) const {
+ ConstIterator it = _handlers.find(prefix);
+ if (it != _handlers.end())
+ return it->second;
+ return 0;
+}
+
+
+/** Executes a special command.
+ * @param[in] special the special expression
+ * @param[in] actions actions the special handlers can perform
+ * @param[in] listener object that wants to be notified about the processing state
+ * @return true if a special handler was found
+ * @throw SpecialException in case of errors during special processing */
+bool SpecialManager::process (const string &special, SpecialActions *actions, Listener *listener) const {
+ istringstream iss(special);
+ string prefix;
+ int c;
+ while (isalnum(c=iss.get()))
+ prefix += c;
+ if (ispunct(c)) // also add seperation character to identifying prefix
+ prefix += c;
+ if (prefix == "ps:" && iss.peek() == ':')
+ prefix += iss.get();
+ if (SpecialHandler *handler = findHandler(prefix)) {
+ if (listener)
+ listener->beginSpecial(prefix.c_str());
+ bool ret = handler->process(prefix.c_str(), iss, actions);
+ if (listener)
+ listener->endSpecial(prefix.c_str());
+ return ret;
+ }
+ return false;
+}
+
+
+void SpecialManager::notifyEndPage () const {
+ FORALL(_endPageListeners, HandlerPool::const_iterator, it)
+ (*it)->dviEndPage();
+}
+
+
+void SpecialManager::notifyPositionChange (double x, double y) const {
+ FORALL(_positionListeners, HandlerPool::const_iterator, it)
+ (*it)->dviMovedTo(x, y);
+}
+
+
+void SpecialManager::writeHandlerInfo (ostream &os) const {
+ typedef map<string, SpecialHandler*> SortMap;
+ SortMap m;
+ FORALL(_handlers, ConstIterator, it)
+ if (it->second->name())
+ m[it->second->name()] = it->second;
+ FORALL(m, SortMap::iterator, it) {
+ os << setw(10) << left << it->second->name() << ' ';
+ if (it->second->info())
+ os << it->second->info();
+ os << endl;
+ }
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialManager.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialManager.h
new file mode 100644
index 00000000000..51f9bb08d02
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/SpecialManager.h
@@ -0,0 +1,71 @@
+/*************************************************************************
+** SpecialManager.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef SPECIALMANAGER_H
+#define SPECIALMANAGER_H
+
+#include <map>
+#include <ostream>
+#include <string>
+#include <vector>
+#include "SpecialHandler.h"
+
+struct SpecialActions;
+
+class SpecialManager
+{
+ public:
+ struct Listener
+ {
+ virtual ~Listener () {}
+ virtual void beginSpecial (const char *prefix)=0;
+ virtual void endSpecial (const char *prefix)=0;
+ };
+
+ private:
+ typedef std::vector<SpecialHandler*> HandlerPool;
+ typedef std::map<std::string,SpecialHandler*> HandlerMap;
+ typedef HandlerMap::iterator Iterator;
+ typedef HandlerMap::const_iterator ConstIterator;
+
+ public:
+ SpecialManager () {}
+ virtual ~SpecialManager ();
+ void registerHandler (SpecialHandler *handler);
+ void registerHandlers (SpecialHandler **handlers, const char *ignorelist);
+ void unregisterHandlers ();
+ bool process (const std::string &special, SpecialActions *actions, Listener *listener=0) const;
+ void notifyEndPage () const;
+ void notifyPositionChange (double x, double y) const;
+ void writeHandlerInfo (std::ostream &os) const;
+
+ protected:
+ SpecialManager (const SpecialManager &) {}
+ void operator = (const SpecialManager &) {}
+ SpecialHandler* findHandler (const std::string &prefix) const;
+
+ private:
+ HandlerPool _pool; ///< stores pointers to all handlers
+ HandlerMap _handlers; ///< pointers to handlers for corresponding prefixes
+ HandlerPool _endPageListeners;
+ HandlerPool _positionListeners;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamReader.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamReader.cpp
new file mode 100644
index 00000000000..6e726e4016e
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamReader.cpp
@@ -0,0 +1,164 @@
+/*************************************************************************
+** StreamReader.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include "CRC32.h"
+#include "StreamReader.h"
+#include "macros.h"
+
+using namespace std;
+
+StreamReader::StreamReader (istream &s)
+ : _is(&s)
+{
+}
+
+
+istream& StreamReader::replaceStream (istream &in) {
+ istream &ret = *_is;
+ _is = &in;
+ return ret;
+}
+
+
+/** Reads an unsigned integer from assigned input stream.
+ * @param[in] bytes number of bytes to read (max. 4)
+ * @return read integer */
+UInt32 StreamReader::readUnsigned (int bytes) {
+ UInt32 ret = 0;
+ for (bytes--; bytes >= 0 && !_is->eof(); bytes--) {
+ UInt32 b = _is->get();
+ ret |= b << (8*bytes);
+ }
+ return ret;
+}
+
+
+/** Reads an unsigned integer from assigned input stream and updates the CRC32 checksum.
+ * @param[in] bytes number of bytes to read (max. 4)
+ * @param[in,out] crc32 checksum to be updated
+ * @return read integer */
+UInt32 StreamReader::readUnsigned (int bytes, CRC32 &crc32) {
+ UInt32 ret = readUnsigned(bytes);
+ crc32.update(ret, bytes);
+ return ret;
+}
+
+
+/** Reads an signed integer from assigned input stream.
+ * @param[in] bytes number of bytes to read (max. 4)
+ * @return read integer */
+Int32 StreamReader::readSigned (int bytes) {
+ Int32 ret = _is->get();
+ if (ret & 128) // negative value?
+ ret |= 0xffffff00;
+ for (bytes-=2; bytes >= 0 && !_is->eof(); bytes--)
+ ret = (ret << 8) | _is->get();
+ return ret;
+}
+
+
+/** Reads an signed integer from assigned input stream and updates the CRC32 checksum.
+ * @param[in] bytes number of bytes to read (max. 4)
+ * @param[in,out] crc32 checksum to be updated
+ * @return read integer */
+Int32 StreamReader::readSigned (int bytes, CRC32 &crc32) {
+ Int32 ret = readSigned(bytes);
+ crc32.update(ret, bytes);
+ return ret;
+}
+
+
+/** Reads a string terminated by a 0-byte. */
+string StreamReader::readString () {
+ if (!_is)
+ throw StreamReaderException("no stream assigned");
+ string ret;
+ while (!_is->eof() && _is->peek() > 0)
+ ret += _is->get();
+ _is->get(); // skip 0-byte
+ return ret;
+}
+
+
+/** Reads a string terminated by a 0-byte and updates the CRC32 checksum.
+ * @param[in,out] crc32 checksum to be updated
+ * @param[in] finalZero consider final 0-byte in checksum
+ * @return the string read */
+string StreamReader::readString (CRC32 &crc32, bool finalZero) {
+ string ret = readString();
+ crc32.update((const UInt8*)ret.c_str(), ret.length());
+ if (finalZero)
+ crc32.update(0, 1);
+ return ret;
+}
+
+
+/** Reads a string of a given length.
+ * @param[in] length number of characters to read
+ * @return the string read */
+string StreamReader::readString (int length) {
+ if (!_is)
+ throw StreamReaderException("no stream assigned");
+ char *buf = new char[length+1];
+ if (length <= 0)
+ *buf = 0;
+ else {
+ _is->read(buf, length); // reads 'length' bytes
+ buf[length] = 0;
+ }
+ string ret = buf;
+ delete [] buf;
+ return ret;
+}
+
+
+/** Reads a string of a given length and updates the CRC32 checksum.
+ * @param[in] length number of characters to read
+ * @param[in,out] crc32 checksum to be updated
+ * @return the string read */
+string StreamReader::readString (int length, CRC32 &crc32) {
+ string ret = readString(length);
+ crc32.update(ret.c_str());
+ return ret;
+}
+
+
+vector<UInt8>& StreamReader::readBytes (int n, vector<UInt8> &bytes) {
+ if (n > 0)
+ in().read((char*)&bytes[0], n);
+ return bytes;
+}
+
+
+vector<UInt8>& StreamReader::readBytes (int n, vector<UInt8> &bytes, CRC32 &crc32) {
+ readBytes(n, bytes);
+ crc32.update(&bytes[0], bytes.size());
+ return bytes;
+}
+
+
+int StreamReader::readByte (CRC32 &crc32) {
+ int ret = readByte();
+ if (ret >= 0) {
+ const UInt8 c = UInt8(ret & 0xff);
+ crc32.update(&c, 1);
+ }
+ return ret;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamReader.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamReader.h
new file mode 100644
index 00000000000..341899dd1ec
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamReader.h
@@ -0,0 +1,64 @@
+/*************************************************************************
+** StreamReader.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef STREAMREADER_H
+#define STREAMREADER_H
+
+#include <istream>
+#include <string>
+#include <vector>
+#include "MessageException.h"
+#include "types.h"
+
+class CRC32;
+
+class StreamReader
+{
+ public:
+ StreamReader (std::istream &s);
+ virtual ~StreamReader () {}
+ std::istream& replaceStream (std::istream &s);
+ UInt32 readUnsigned (int n);
+ UInt32 readUnsigned (int n, CRC32 &crc32);
+ Int32 readSigned (int n);
+ Int32 readSigned (int n, CRC32 &crc32);
+ std::string readString ();
+ std::string readString (CRC32 &crc32, bool finalZero=false);
+ std::string readString (int length);
+ std::string readString (int length, CRC32 &crc32);
+ std::vector<UInt8>& readBytes (int n, std::vector<UInt8> &bytes);
+ std::vector<UInt8>& readBytes (int n, std::vector<UInt8> &bytes, CRC32 &crc32);
+ int readByte () {return _is->get();}
+ int readByte (CRC32 &crc32);
+
+ protected:
+ std::istream& in () {return *_is;}
+
+ private:
+ std::istream *_is;
+};
+
+
+struct StreamReaderException : public MessageException
+{
+ StreamReaderException (const std::string &msg) : MessageException(msg) {}
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamWriter.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamWriter.cpp
new file mode 100644
index 00000000000..bdd378f9993
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamWriter.cpp
@@ -0,0 +1,81 @@
+/*************************************************************************
+** StreamWriter.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include "CRC32.h"
+#include "StreamWriter.h"
+
+using namespace std;
+
+
+/** Writes an unsigned integer to the output stream.
+ * @param[in] val the value to write
+ * @param[in] n number of bytes to be considered */
+void StreamWriter::writeUnsigned (UInt32 val, int n) {
+ for (n--; n >= 0; n--)
+ _os.put((val >> (8*n)) & 0xff);
+}
+
+
+/** Writes a signed integer to the output stream.
+ * @param[in] val the value to write
+ * @param[in] n number of bytes to be considered */
+void StreamWriter::writeSigned (Int32 val, int n) {
+ writeUnsigned((UInt32)val, n);
+}
+
+
+/** Writes a signed integer to the output stream.
+ * @param[in] val the value to write
+ * @param[in] finalZero if true, a final 0-byte is appended */
+void StreamWriter::writeString (const string &str, bool finalZero) {
+ for (size_t i=0; i < str.length(); i++)
+ _os.put(str[i]);
+ if (finalZero)
+ _os.put(0);
+}
+
+
+/** Writes an unsigned integer to the output stream.
+ * @param[in] val the value to write
+ * @param[in] n number of bytes to be considered
+ * @param[in,out] crc32 checksum to be updated */
+void StreamWriter::writeUnsigned (UInt32 val, int n, CRC32 &crc32) {
+ writeUnsigned(val, n);
+ crc32.update(val, n);
+}
+
+
+/** Writes a signed integer to the output stream and updates the CRC32 checksum.
+ * @param[in] val the value to write
+ * @param[in] n number of bytes to be considered
+ * @param[in,out] crc32 checksum to be updated */
+void StreamWriter::writeSigned (Int32 val, int n, CRC32 &crc32) {
+ writeUnsigned((UInt32)val, n, crc32);
+}
+
+
+/** Writes a string to the output stream and updates the CRC32 checksum.
+ * @param[in] str the string to write
+ * @param[in,out] crc32 checksum to be updated
+ * @param[in] finalZero if true, a final 0-byte is appended */
+void StreamWriter::writeString (const std::string &str, CRC32 &crc32, bool finalZero) {
+ writeString(str, finalZero);
+ crc32.update((const UInt8*)str.c_str(), str.length() + (finalZero ? 1 : 0));
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamWriter.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamWriter.h
new file mode 100644
index 00000000000..6217800dae6
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/StreamWriter.h
@@ -0,0 +1,46 @@
+/*************************************************************************
+** StreamWriter.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef STREAMWRITER_H
+#define STREAMWRITER_H
+
+#include <ostream>
+#include "types.h"
+
+
+class CRC32;
+
+class StreamWriter
+{
+ public:
+ StreamWriter (std::ostream &os) : _os(os) {}
+ virtual ~StreamWriter () {}
+ void writeUnsigned (UInt32 val, int n);
+ void writeSigned (Int32 val, int n);
+ void writeString (const std::string &str, bool finalZero=false);
+ void writeUnsigned (UInt32 val, int n, CRC32 &crc32);
+ void writeSigned (Int32 val, int n, CRC32 &crc32);
+ void writeString (const std::string &str, CRC32 &crc32, bool finalZero=false);
+
+ private:
+ std::ostream &_os;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Subfont.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Subfont.cpp
new file mode 100644
index 00000000000..aa552d029f6
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Subfont.cpp
@@ -0,0 +1,265 @@
+/*************************************************************************
+** Subfont.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cstdlib>
+#include <cstring>
+#include <fstream>
+#include <limits>
+#include "FileFinder.h"
+#include "Subfont.h"
+#include "Message.h"
+
+using namespace std;
+
+// helper functions
+
+static int skip_mapping_data (istream &is);
+static bool scan_line (const char *line, int lineno, UInt16 *mapping, const string &fname, int &pos);
+
+
+/** Constructs a new SubfontDefinition object.
+ * @param[in] name name of subfont definition
+ * @param[in] fpath path to corresponding .sfd file*/
+SubfontDefinition::SubfontDefinition (const string &name, const char *fpath) : _sfname(name) {
+ // read all subfont IDs from the .sfd file but skip the mapping data
+ ifstream is(fpath);
+ while (is) {
+ if (is.peek() == '#') // comment line?
+ is.ignore(numeric_limits<int>::max(), '\n'); // => skip it
+ else if (isspace(is.peek()))
+ is.get();
+ else {
+ string id;
+ while (is && !isspace(is.peek()))
+ id += is.get();
+ if (!id.empty()) {
+ pair<Iterator, bool> state = _subfonts.insert(pair<string,Subfont*>(id, (Subfont*)0));
+ if (state.second) // id was not present in map already
+ state.first->second = new Subfont(*this, state.first->first);
+ skip_mapping_data(is);
+ }
+ }
+ }
+}
+
+
+SubfontDefinition::~SubfontDefinition () {
+ for (Iterator it=_subfonts.begin(); it != _subfonts.end(); ++it)
+ delete it->second;
+}
+
+
+/** Looks for a subfont definition of the given name and returns the corresponding object.
+ * All objects are only created once for a given name and stored in an internal cache.
+ * @param[in] name name of subfont definition to lookup
+ * @return pointer to subfont definition object or 0 if it doesn't exist */
+SubfontDefinition* SubfontDefinition::lookup (const std::string &name) {
+ typedef map<string,SubfontDefinition*> SFDMap;
+ static SFDMap sfdMap;
+ SFDMap::iterator it = sfdMap.find(name);
+ if (it != sfdMap.end())
+ return it->second;
+ SubfontDefinition *sfd=0;
+ if (const char *path = FileFinder::lookup(name+".sfd", false)) {
+ sfd = new SubfontDefinition(name, path);
+ sfdMap[name] = sfd;
+ }
+ return sfd;
+}
+
+
+/** Returns the full path to the corresponding .sfd file or 0 if it can't be found. */
+const char* SubfontDefinition::path () const {
+ return FileFinder::lookup(filename(), false);
+}
+
+
+/** Returns the subfont with the given ID, or 0 if it doesn't exist. */
+Subfont* SubfontDefinition::subfont (const string &id) const {
+ ConstIterator it = _subfonts.find(id);
+ if (it != _subfonts.end())
+ return it->second;
+ return 0;
+}
+
+
+/** Returns all subfonts defined in this SFD. */
+int SubfontDefinition::subfonts (vector<Subfont*> &sfs) const {
+ for (ConstIterator it=_subfonts.begin(); it != _subfonts.end(); ++it)
+ sfs.push_back(it->second);
+ return sfs.size();
+}
+
+//////////////////////////////////////////////////////////////////////
+
+Subfont::~Subfont () {
+ delete [] _mapping;
+}
+
+
+/** Reads the character mappings for a given subfont ID.
+ * Format of subfont definition (sfd) files:
+ * sfd ::= (ID entries | '#' <string> '\n')*
+ * ID ::= <string without whitespace>
+ * entries ::= (integer | integer ':' | integer '_' integer)*
+ * The mapping data for a subfont is given as a sequence of 256 16-bit values where
+ * value v at position c defines the (global) character code that is assigned to the
+ * local subfont character c. The sequence v,v+1,v+2,...,v+n can be abbreviated with
+ * v '_' v+n, e.g. 10_55. In order to continue the sequence at a different position,
+ * the syntax number ':' can be used. Example: 10: 5 6 7 assigns the values v=5, 6, 7
+ * to c=10, 11 and 12, respectively.
+ * @return true if the data has been read successfully */
+bool Subfont::read () {
+ if (_mapping) // if there's already a mapping assigned, we're finished here
+ return true;
+ if (const char *p = _sfd.path()) {
+ ifstream is(p);
+ if (!is)
+ return false;
+
+ int lineno=1;
+ while (is) {
+ if (is.peek() == '#' || is.peek() == '\n') {
+ is.ignore(numeric_limits<int>::max(), '\n'); // skip comment and empty line
+ lineno++;
+ }
+ else if (isspace(is.peek()))
+ is.get();
+ else {
+ string id;
+ while (is && !isspace(is.peek()))
+ id += is.get();
+ if (id != _id)
+ lineno += skip_mapping_data(is);
+ else {
+ // build mapping array
+ _mapping = new UInt16[256];
+ memset(_mapping, 0, 256*sizeof(UInt16));
+ int pos=0;
+ char buf[1024];
+ bool complete=false;
+ while (!complete) {
+ is.getline(buf, 1024);
+ complete = scan_line(buf, lineno, _mapping, _sfd.filename() ,pos);
+ }
+ return true;
+ }
+ }
+ }
+ }
+ return false;
+}
+
+
+/** Returns the global character code of the target font for a
+ * (local) character code of the subfont.
+ * @param[in] c local character code relative to the subfont
+ * @return character code of the target font */
+UInt16 Subfont::decode (unsigned char c) {
+ if (!_mapping && !read())
+ return 0;
+ return _mapping[c];
+}
+
+
+//////////////////////////////////////////////////////////////////////
+
+
+/** Skips the mapping data of a subfont entry.
+ * @param[in] stream to read from
+ * @return number of lines skipped */
+static int skip_mapping_data (istream &is) {
+ char buf[1024];
+ bool complete=false;
+ int lines=0;
+ while (is && !complete) {
+ is.getline(buf, 1024);
+ if (is.gcount() > 1)
+ lines++;
+ const char *p = buf+is.gcount()-2;
+ while (p >= buf && isspace(*p))
+ p--;
+ complete = (p < buf || *p != '\\'); // line doesn't end with backslash
+ }
+ return lines;
+}
+
+
+/** Scans a single line of mapping data and stores the values in the given array.
+ * @param[in] line the line of text to be scanned
+ * @param[in] lineno line number used in exception messages
+ * @param[in,out] mapping the mapping data
+ * @param[in,out] offest position/index of next mapping value
+ * @return true if the line is the last one the current mapping sequence, i.e. the line doesn't end with a backslash */
+static bool scan_line (const char *line, int lineno, UInt16 *mapping, const string &fname, int &offset) {
+ const char *p=line;
+ char *q;
+ for (; *p && isspace(*p); p++);
+ while (*p) {
+ if (*p == '\\') {
+ while (*++p)
+ if (!isspace(*p))
+ throw SubfontException("unexpected backslash in mapping table", fname, lineno);
+ }
+ else {
+ long val1 = strtol(p, &q, 0); // first value of range
+ long val2; // last value of range
+ ostringstream oss; // output stream for exception messages
+ switch (*q) {
+ case ':':
+ if (val1 < 0 || val1 > 255)
+ throw SubfontException(oss << "offset value " << val1 << " out of range (0-255)", fname, lineno);
+ offset = val1;
+ val1 = -1;
+ q++;
+ break;
+ case '_':
+ p = q+1;
+ val2 = strtol(p, &q, 0);
+ if (val1 < 0 || val1 > 0xffffL)
+ throw SubfontException(oss << "table value " << val1 << " out of range", fname, lineno);
+ if (val2 < 0 || val2 > 0xffffL)
+ throw SubfontException(oss << "table value " << val2 << " out of range", fname, lineno);
+ if (p == q || (!isspace(*q) && *q != '\\' && *q))
+ throw SubfontException(oss << "unexpected character '" << *q << "'", fname, lineno);
+ break;
+ default:
+ if (p == q || (!isspace(*q) && *q != '\\' && *q))
+ throw SubfontException(oss << "unexpected character '" << *q << "'", fname, lineno);
+ if (val1 < 0 || val1 > 0xffffL)
+ throw SubfontException("invalid character code", fname, lineno);
+ val2 = val1;
+ }
+ if (val1 >= 0) {
+ if (val1 > val2 || offset+val2-val1 > 255)
+ throw SubfontException(oss << "invalid range in mapping table: " << hex << val1 << '_' << val2, fname, lineno);
+ for (long v=val1; v <= val2; v++) {
+ if (mapping[offset])
+ throw SubfontException(oss << "mapping of character " << offset << " already defined", fname, lineno);
+ mapping[offset++] = static_cast<UInt16>(v);
+ }
+ }
+ for (p=q; *p && isspace(*p); p++);
+ }
+ }
+ for (p--; p >= line && isspace(*p); p--);
+ return p < line || *p != '\\';
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Subfont.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Subfont.h
new file mode 100644
index 00000000000..b099bc76897
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Subfont.h
@@ -0,0 +1,102 @@
+/*************************************************************************
+** Subfont.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef SUBFONT_H
+#define SUBFONT_H
+
+#include <istream>
+#include <map>
+#include <sstream>
+#include <string>
+#include <vector>
+#include "MessageException.h"
+#include "types.h"
+
+
+class Subfont;
+
+
+/** Represents a collection of subfont mappings as defined in a .sfd file, and
+ * encapsulates the evaluation of these files. */
+class SubfontDefinition
+{
+ typedef std::map<std::string, Subfont*> Subfonts;
+ typedef Subfonts::iterator Iterator;
+ typedef Subfonts::const_iterator ConstIterator;
+ public:
+ ~SubfontDefinition ();
+ static SubfontDefinition* lookup (const std::string &name);
+// int getIDs (std::vector<std::string> &ids) const;
+ const std::string& name() const {return _sfname;}
+ std::string filename() const {return _sfname+".sfd";}
+ Subfont* subfont (const std::string &id) const;
+ int subfonts (std::vector<Subfont*> &sfs) const;
+ const char* path () const;
+
+ protected:
+ SubfontDefinition (const std::string &name, const char *fpath);
+ SubfontDefinition (const SubfontDefinition &sfd) {}
+
+ private:
+ std::string _sfname; ///< name of subfont
+ Subfonts _subfonts; ///< all subfonts defined in the corresponding .sfd file
+};
+
+
+/** Represents a single subfont mapping defined in a SubfontDefinition (.sfd file). */
+class Subfont
+{
+ friend class SubfontDefinition;
+ public:
+ ~Subfont();
+ const std::string& id () const {return _id;}
+ UInt16 decode (unsigned char c);
+
+ protected:
+ Subfont (SubfontDefinition &sfd, const std::string &id) : _sfd(sfd), _id(id), _mapping(0) {}
+ bool read ();
+
+ private:
+ SubfontDefinition &_sfd; ///< SubfontDefinition where this Subfont belongs to
+ const std::string &_id; ///< id of this subfont as specified in the .sfd file
+ UInt16 *_mapping; ///< the character mapping table with 256 entries
+};
+
+
+class SubfontException : public MessageException
+{
+ public:
+ SubfontException (const std::string &msg, const std::string &fname, int lineno=0)
+ : MessageException(msg), _fname(fname), _lineno(lineno) {}
+
+ SubfontException (const std::ostream &oss, const std::string &fname, int lineno=0)
+ : MessageException(dynamic_cast<const std::ostringstream&>(oss).str()), _fname(fname), _lineno(lineno) {}
+
+ virtual ~SubfontException () throw() {}
+
+ const char* filename () const {return _fname.c_str();}
+ int lineno () const {return _lineno;}
+
+ private:
+ std::string _fname;
+ int _lineno;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/System.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/System.cpp
new file mode 100644
index 00000000000..80c71ec7b4c
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/System.cpp
@@ -0,0 +1,53 @@
+/*************************************************************************
+** System.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <ctime>
+#include "System.h"
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#if defined (HAVE_SYS_TIME_H)
+#include <sys/time.h>
+#elif defined (HAVE_SYS_TIMEB_H)
+#include <sys/timeb.h>
+#endif
+
+
+using namespace std;
+
+
+/** Returns timestamp (wall time) in seconds. */
+double System::time () {
+#if defined (HAVE_SYS_TIME_H)
+ struct timeval tv;
+ gettimeofday(&tv, NULL);
+ return tv.tv_sec + tv.tv_usec/1000000.0;
+#elif defined (HAVE_SYS_TIMEB_H)
+ struct timeb tb;
+ ftime(&tb);
+ return tb.time + tb.millitm/1000.0;
+#else
+ clock_t myclock = clock();
+ return double(myclock)/CLOCKS_PER_SEC;
+#endif
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/System.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/System.h
new file mode 100644
index 00000000000..775d6358dd7
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/System.h
@@ -0,0 +1,29 @@
+/*************************************************************************
+** System.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef SYSTEM_H
+#define SYSTEM_H
+
+namespace System
+{
+ double time ();
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TFM.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TFM.cpp
new file mode 100644
index 00000000000..093af8cb5e3
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TFM.cpp
@@ -0,0 +1,149 @@
+/*************************************************************************
+** TFM.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <iostream>
+#include <fstream>
+#include <vector>
+#include "FileFinder.h"
+#include "Message.h"
+#include "StreamReader.h"
+#include "TFM.h"
+
+using namespace std;
+
+
+/** Reads a sequence of n TFM words (4 Bytes each).
+ * @param[in] is reads from this stream
+ * @param[out] v the read words
+ * @param[in] n number of words to be read
+ * @return dynamically allocated array containing the read words
+ * (must be deleted by the caller) */
+template <typename T>
+static void read_words (StreamReader &sr, vector<T> &v, unsigned n) {
+ v.clear();
+ v.resize(n);
+ for (unsigned i=0; i < n; i++)
+ v[i] = sr.readUnsigned(4);
+}
+
+
+/** Converts a TFM fix point value to double. */
+static double fix2double (FixWord fix) {
+ return double(fix)/(1 << 20);
+}
+
+
+TFM::TFM () : _checksum(0), _firstChar(0), _lastChar(0), _designSize(0)
+{
+}
+
+
+TFM::TFM (istream &is) {
+ readFromStream(is);
+}
+
+
+TFM* TFM::createFromFile (const char *fontname) {
+ string filename = string(fontname) + ".tfm";
+ const char *path = FileFinder::lookup(filename);
+ ifstream ifs(path, ios_base::binary);
+ if (ifs)
+ return new TFM(ifs);
+ return 0;
+}
+
+
+bool TFM::readFromStream (istream &is) {
+ StreamReader sr(is);
+ is.seekg(2, ios_base::beg); // skip file size
+ UInt16 lh = UInt16(sr.readUnsigned(2)); // length of header in 4 byte words
+ _firstChar= UInt16(sr.readUnsigned(2)); // smalles character code in font
+ _lastChar = UInt16(sr.readUnsigned(2)); // largest character code in font
+ UInt16 nw = UInt16(sr.readUnsigned(2)); // number of words in width table
+ UInt16 nh = UInt16(sr.readUnsigned(2)); // number of words in height table
+ UInt16 nd = UInt16(sr.readUnsigned(2)); // number of words in depth table
+ UInt16 ni = UInt16(sr.readUnsigned(2)); // number of words in italic corr. table
+// UInt16 nl = UInt16(sr.readUnsigned(2)); // number of words in lig/kern table
+// UInt16 nk = UInt16(sr.readUnsigned(2)); // number of words in kern table
+// UInt16 ne = UInt16(sr.readUnsigned(2)); // number of words in ext. char table
+// UInt16 np = UInt16(sr.readUnsigned(2)); // number of font parameter words
+
+ is.seekg(8, ios_base::cur); // move to header (skip above commented bytes)
+ _checksum = sr.readUnsigned(4);
+ _designSize = sr.readUnsigned(4);
+ is.seekg(24+lh*4, ios_base::beg); // move to char info table
+ read_words(sr, _charInfoTable, _lastChar-_firstChar+1);
+ read_words(sr, _widthTable, nw);
+ read_words(sr, _heightTable, nh);
+ read_words(sr, _depthTable, nd);
+ read_words(sr, _italicTable, ni);
+ return true;
+}
+
+
+/** Returns the design size of this font in TeX point units. */
+double TFM::getDesignSize () const {
+ return fix2double(_designSize);
+}
+
+
+// the char info word for each character consists of 4 bytes holding the following information:
+// width index w, height index (h), depth index (d), italic correction index (it),
+// tag (tg) and a remainder:
+//
+// byte 1 | byte 2 | byte 3 | byte 4
+// xxxxxxxx | xxxx xxxx | xxxxxx xx | xxxxxxxx
+// w | h d | it tg | remainder
+
+/** Returns the width of char c in TeX point units. */
+double TFM::getCharWidth (int c) const {
+ if (c < _firstChar || c > _lastChar || unsigned(c-_firstChar) >= _charInfoTable.size())
+ return 0;
+ int index = (_charInfoTable[c-_firstChar] >> 24) & 0xFF;
+ return fix2double(_widthTable[index]) * fix2double(_designSize);
+}
+
+
+/** Returns the height of char c in TeX point units. */
+double TFM::getCharHeight (int c) const {
+ if (c < _firstChar || c > _lastChar || unsigned(c-_firstChar) >= _charInfoTable.size())
+ return 0;
+ int index = (_charInfoTable[c-_firstChar] >> 20) & 0x0F;
+ return fix2double(_heightTable[index]) * fix2double(_designSize);
+}
+
+
+/** Returns the depth of char c in TeX point units. */
+double TFM::getCharDepth (int c) const {
+ if (c < _firstChar || c > _lastChar || unsigned(c-_firstChar) >= _charInfoTable.size())
+ return 0;
+ int index = (_charInfoTable[c-_firstChar] >> 16) & 0x0F;
+ return fix2double(_depthTable[index]) * fix2double(_designSize);
+}
+
+
+/** Returns the italic correction of char c in TeX point units. */
+double TFM::getItalicCorr (int c) const {
+ if (c < _firstChar || c > _lastChar || unsigned(c-_firstChar) >= _charInfoTable.size())
+ return 0;
+ int index = (_charInfoTable[c-_firstChar] >> 10) & 0x3F;
+ return fix2double(_italicTable[index]) * fix2double(_designSize);
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TFM.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TFM.h
new file mode 100644
index 00000000000..f2ce472ead4
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TFM.h
@@ -0,0 +1,59 @@
+/*************************************************************************
+** TFM.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef TFM_H
+#define TFM_H
+
+#include <istream>
+#include <vector>
+#include "types.h"
+
+struct FileFinder;
+
+class TFM
+{
+ public:
+ TFM ();
+ TFM (std::istream &is);
+ static TFM* createFromFile (const char *fname);
+ double getDesignSize () const;
+ double getCharWidth (int c) const;
+ double getCharHeight (int c) const;
+ double getCharDepth (int c) const;
+ double getItalicCorr (int c) const;
+ UInt32 getChecksum () const {return _checksum;}
+ UInt16 firstChar () const {return _firstChar;}
+ UInt16 lastChar () const {return _lastChar;}
+
+ protected:
+ bool readFromStream (std::istream &is);
+
+ private:
+ UInt32 _checksum;
+ UInt16 _firstChar, _lastChar;
+ FixWord _designSize; ///< design size of the font in TeX points (7227 pt = 254 cm)
+ std::vector<UInt32> _charInfoTable;
+ std::vector<FixWord> _widthTable; ///< character widths in design size units
+ std::vector<FixWord> _heightTable; ///< character height in design size units
+ std::vector<FixWord> _depthTable; ///< character depth in design size units
+ std::vector<FixWord> _italicTable; ///< italic corrections in design size units
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Terminal.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Terminal.cpp
new file mode 100644
index 00000000000..b40a68c73d9
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Terminal.cpp
@@ -0,0 +1,191 @@
+/*************************************************************************
+** Terminal.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include "Terminal.h"
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef HAVE_TERMIOS_H
+#include <termios.h>
+#endif
+
+#ifdef GWINSZ_IN_SYS_IOCTL
+#include <sys/ioctl.h>
+#endif
+
+#ifdef __WIN32__
+#include <windows.h>
+#endif
+
+#include <cstdio>
+
+
+using namespace std;
+
+
+const int Terminal::RED = 1;
+const int Terminal::GREEN = 2;
+const int Terminal::BLUE = 4;
+
+const int Terminal::CYAN = GREEN|BLUE;
+const int Terminal::YELLOW = RED|GREEN;
+const int Terminal::MAGENTA = RED|BLUE;
+const int Terminal::WHITE = RED|GREEN|BLUE;
+const int Terminal::DEFAULT = -1;
+const int Terminal::BLACK = 0;
+
+#ifdef __WIN32__
+int Terminal::_defaultColor;
+#endif
+
+int Terminal::_fgcolor = Terminal::DEFAULT;
+int Terminal::_bgcolor = Terminal::DEFAULT;
+
+
+/** Initializes the terminal. This method should be called before any of the others.
+ * @param[in,out] os terminal output stream (currently unused) */
+void Terminal::init (ostream &os) {
+#ifdef __WIN32__
+ HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);
+ if (h != INVALID_HANDLE_VALUE) {
+ CONSOLE_SCREEN_BUFFER_INFO info;
+ GetConsoleScreenBufferInfo(h, &info);
+ _defaultColor = (info.wAttributes & 0xff);
+ }
+#endif
+}
+
+
+/** Finishes the terminal output. Should be called after last terminal action.
+ * @param[in,out] os terminal output stream */
+void Terminal::finish (ostream &os) {
+ fgcolor(DEFAULT, os);
+ bgcolor(DEFAULT, os);
+}
+
+
+/** Returns the number of terminal columns (number of characters per row).
+ * If it's not possible to retrieve information about the terminal size, 0 is returned. */
+int Terminal::columns () {
+#if defined(TIOCGWINSZ)
+ struct winsize ws;
+ if (ioctl(fileno(stderr), TIOCGWINSZ, &ws) < 0)
+ return 0;
+ return ws.ws_col;
+#elif defined(__WIN32__)
+ CONSOLE_SCREEN_BUFFER_INFO info;
+ if (!GetConsoleScreenBufferInfo(GetStdHandle(STD_ERROR_HANDLE), &info))
+ return 0;
+ return info.dwSize.X;
+#else
+ return 0;
+#endif
+}
+
+
+/** Returns the number of terminal rows.
+ * If it's not possible to retrieve information about the terminal size, 0 is returned. */
+int Terminal::rows () {
+#if defined(TIOCGWINSZ)
+ struct winsize ws;
+ if (ioctl(fileno(stderr), TIOCGWINSZ, &ws) < 0)
+ return 0;
+ return ws.ws_row;
+#elif defined(__WIN32__)
+ CONSOLE_SCREEN_BUFFER_INFO info;
+ if (!GetConsoleScreenBufferInfo(GetStdHandle(STD_ERROR_HANDLE), &info))
+ return 0;
+ return info.dwSize.Y;
+#else
+ return 0;
+#endif
+}
+
+
+/** Sets the foreground color.
+ * @param[in] color color code
+ * @param[in] os terminal output stream */
+void Terminal::fgcolor (int color, ostream &os) {
+ _fgcolor = color;
+
+#ifdef __WIN32__
+ HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);
+ if (h != INVALID_HANDLE_VALUE) {
+ CONSOLE_SCREEN_BUFFER_INFO info;
+ GetConsoleScreenBufferInfo(h, &info);
+ if (_fgcolor == DEFAULT)
+ color = _defaultColor & 0x0f;
+ else {
+ // swap red and blue bits
+ color = (color & 0x0a) | ((color & 1) << 2) | ((color & 4) >> 2);
+ }
+ color = (info.wAttributes & 0xf0) | (color & 0x0f);
+ SetConsoleTextAttribute(h, (DWORD)color);
+ }
+#else
+ bool light = false;
+ if (color != DEFAULT && color > 7) {
+ light = true;
+ color %= 8;
+ }
+ if (color == DEFAULT) {
+ os << "\x1B[0m";
+ if (_bgcolor != DEFAULT)
+ bgcolor(_bgcolor, os);
+ }
+ else
+ os << "\x1B[" << (light ? '1': '0') << ';' << (30+(color & 0x07)) << 'm';
+#endif
+}
+
+
+/** Sets the background color.
+ * @param[in] color color code
+ * @param[in] os terminal output stream */
+void Terminal::bgcolor (int color, ostream &os) {
+ _bgcolor = color;
+#ifdef __WIN32__
+ HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);
+ if (h != INVALID_HANDLE_VALUE) {
+ CONSOLE_SCREEN_BUFFER_INFO info;
+ GetConsoleScreenBufferInfo(h, &info);
+ if (_bgcolor == DEFAULT)
+ color = (_defaultColor & 0xf0) >> 4;
+ else {
+ // swap red and blue bits
+ color = (color & 0x0a) | ((color & 1) << 2) | ((color & 4) >> 2);
+ }
+ color = (info.wAttributes & 0x0f) | ((color & 0x0f) << 4);
+ SetConsoleTextAttribute(h, (DWORD)color);
+ }
+#else
+ if (color != DEFAULT && color > 7)
+ color %= 8;
+ if (color == DEFAULT) {
+ os << "\x1B[0m";
+ if (_fgcolor != DEFAULT)
+ fgcolor(_fgcolor, os);
+ }
+ else
+ os << "\x1B[" << (40+(color & 0x07)) << 'm';
+#endif
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Terminal.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Terminal.h
new file mode 100644
index 00000000000..835ae4571e6
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/Terminal.h
@@ -0,0 +1,56 @@
+/*************************************************************************
+** Terminal.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef TERMINAL_H
+#define TERMINAL_H
+
+#include <ostream>
+
+class Terminal
+{
+ public:
+ static const int DEFAULT;
+ static const int BLACK;
+ static const int RED;
+ static const int GREEN;
+ static const int BLUE;
+ static const int CYAN;
+ static const int YELLOW;
+ static const int MAGENTA;
+ static const int WHITE;
+
+ public:
+ static void init (std::ostream &os);
+ static void finish (std::ostream &os);
+ static int columns ();
+ static int rows ();
+ static void fgcolor (int color, std::ostream &os);
+ static void bgcolor (int color, std::ostream &os);
+
+ private:
+ static int _fgcolor; ///< current foreground color
+ static int _bgcolor; ///< current background color
+
+#ifdef __WIN32__
+ static int _defaultColor;
+#endif
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TpicSpecialHandler.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TpicSpecialHandler.cpp
new file mode 100644
index 00000000000..f61338905e4
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TpicSpecialHandler.cpp
@@ -0,0 +1,323 @@
+/*************************************************************************
+** TpicSpecialHandler.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cmath>
+#include <cstring>
+#include <sstream>
+#include "Color.h"
+#include "InputBuffer.h"
+#include "InputReader.h"
+#include "SpecialActions.h"
+#include "TpicSpecialHandler.h"
+#include "XMLNode.h"
+#include "XMLString.h"
+#include "types.h"
+
+using namespace std;
+
+
+TpicSpecialHandler::TpicSpecialHandler () {
+ reset();
+}
+
+
+void TpicSpecialHandler::dviEndPage () {
+ reset();
+}
+
+
+void TpicSpecialHandler::reset () {
+ _points.clear();
+ _penwidth = 1.0;
+ _fill = -1.0; // no fill
+}
+
+
+/** Creates SVG elements that draw lines through the recorded points.
+ * @param[in] stroke if true, the (out)line is drawn (in black)
+ * @param[in] fill if true, enclosed area is filled with current color
+ * @param[in] ddist dash/dot distance of line in TeX point units
+ * (0:solid line, >0:dashed line, <0:dotted line) */
+void TpicSpecialHandler::drawLines (bool stroke, bool fill, double ddist, SpecialActions *actions) {
+ if (actions && !_points.empty()) {
+ XMLElementNode *elem=0;
+ if (_points.size() == 1) {
+ const DPair &p = _points.back();
+ elem = new XMLElementNode("circle");
+ elem->addAttribute("cx", p.x()+actions->getX());
+ elem->addAttribute("cy", p.y()+actions->getY());
+ elem->addAttribute("r", _penwidth/2.0);
+ actions->embed(p, _penwidth/2.0);
+ }
+ else {
+ if (_points.size() == 2 || (!fill && _points.front() != _points.back())) {
+ elem = new XMLElementNode("polyline");
+ elem->addAttribute("fill", "none");
+ elem->addAttribute("stroke-linecap", "round");
+ }
+ else {
+ if (_points.front() == _points.back())
+ _points.pop_back();
+ if (_fill < 0)
+ _fill = 1;
+ Color color = actions->getColor();
+ color *= _fill;
+ elem = new XMLElementNode("polygon");
+ elem->addAttribute("fill", fill ? color.rgbString() : "none");
+ }
+ ostringstream oss;
+ FORALL(_points, vector<DPair>::iterator, it) {
+ if (it != _points.begin())
+ oss << ' ';
+ double x = it->x()+actions->getX();
+ double y = it->y()+actions->getY();
+ oss << XMLString(x) << ',' << XMLString(y);
+ actions->embed(DPair(x, y));
+ }
+ elem->addAttribute("points", oss.str());
+ if (stroke) { // draw outline?
+ elem->addAttribute("stroke", "black");
+ elem->addAttribute("stroke-width", XMLString(_penwidth));
+ }
+ }
+ if (ddist > 0)
+ elem->addAttribute("stroke-dasharray", XMLString(ddist));
+ else if (ddist < 0)
+ elem->addAttribute("stroke-dasharray", XMLString(_penwidth) + ' ' + XMLString(-ddist));
+ actions->appendToPage(elem);
+ }
+ reset();
+}
+
+
+/** Stroke a quadratic spline through the midpoints of the lines defined by
+ * the previously recorded points. The spline starts with a straight line
+ * from the first point to the mid-point of the first line. The spline ends
+ * with a straight line from the mid-point of the last line to the last point.
+ * If ddist=0, the spline is stroked solid. Otherwise ddist denotes the length
+ * of the dashes and the gaps inbetween.
+ * @param[in] ddist length of dashes and gaps */
+void TpicSpecialHandler::drawSplines (double ddist, SpecialActions *actions) {
+ if (actions && !_points.empty()) {
+ const size_t size = _points.size();
+ if (size < 3)
+ drawLines(true, false, ddist, actions);
+ else {
+ double x = actions->getX();
+ double y = actions->getY();
+ DPair p(x,y);
+ ostringstream oss;
+ oss << 'M' << XMLString(x+_points[0].x()) << ',' << XMLString(y+_points[0].y());
+ DPair mid = p+_points[0]+(_points[1]-_points[0])/2.0;
+ oss << 'L' << XMLString(mid.x()) << ',' << XMLString(mid.y());
+ actions->embed(p+_points[0]);
+ for (size_t i=1; i < size-1; i++) {
+ const DPair p0 = p+_points[i-1];
+ const DPair p1 = p+_points[i];
+ const DPair p2 = p+_points[i+1];
+ mid = p1+(p2-p1)/2.0;
+ oss << 'Q' << XMLString(p1.x()) << ',' << XMLString(p1.y())
+ << ' ' << XMLString(mid.x()) << ',' << XMLString(mid.y());
+ actions->embed(mid);
+ actions->embed((p0+p1*6.0+p2)/8.0, _penwidth);
+ }
+ if (_points[0] == _points[size-1]) // closed path?
+ oss << 'Z';
+ else {
+ oss << 'L' << XMLString(x+_points[size-1].x()) << ',' << XMLString(y+_points[size-1].y());
+ actions->embed(p+_points[size-1]);
+ }
+
+ Color color = actions->getColor();
+ color *= _fill;
+ XMLElementNode *path = new XMLElementNode("path");
+ if (_fill >= 0) {
+ if (_points[0] != _points[size-1])
+ oss << 'Z';
+ path->addAttribute("fill", color.rgbString());
+ }
+ else
+ path->addAttribute("fill", "none");
+
+ path->addAttribute("d", oss.str());
+ path->addAttribute("stroke", actions->getColor().rgbString());
+ path->addAttribute("stroke-width", XMLString(_penwidth));
+ if (ddist > 0)
+ path->addAttribute("stroke-dasharray", XMLString(ddist));
+ else if (ddist < 0)
+ path->addAttribute("stroke-dasharray", XMLString(_penwidth) + ' ' + XMLString(-ddist));
+ actions->appendToPage(path);
+ }
+ }
+ reset();
+}
+
+
+/** Draws an elliptical arc.
+ * @param[in] cx x-coordinate of arc center
+ * @param[in] cy y-coordinate of arc center
+ * @param[in] rx length of horizonal semi-axis
+ * @param[in] ry length of vertical semi-axis
+ * @param[in] angle1 starting angle (clockwise) relative to x-axis
+ * @param[in] angle2 ending angle (clockwise) relative to x-axis */
+void TpicSpecialHandler::drawArc (double cx, double cy, double rx, double ry, double angle1, double angle2, SpecialActions *actions) {
+ if (actions) {
+ const double PI2 = 4*asin(1.0);
+ angle1 *= -1;
+ angle2 *= -1;
+ if (fabs(angle1) > PI2) {
+ int n = (int)(angle1/PI2);
+ angle1 = angle1 - n*PI2;
+ angle2 = angle2 - n*PI2;
+ }
+
+ double x = cx + actions->getX();
+ double y = cy + actions->getY();
+ XMLElementNode *elem=0;
+ if (fabs(angle1-angle2) >= PI2) { // closed ellipse?
+ elem = new XMLElementNode("ellipse");
+ elem->addAttribute("cx", XMLString(x));
+ elem->addAttribute("cy", XMLString(y));
+ elem->addAttribute("rx", XMLString(rx));
+ elem->addAttribute("ry", XMLString(ry));
+ }
+ else {
+ if (angle1 < 0)
+ angle1 = PI2+angle1;
+ if (angle2 < 0)
+ angle2 = PI2+angle2;
+ elem = new XMLElementNode("path");
+ int large_arg = fabs(angle1-angle2) > PI2/2 ? 0 : 1;
+ int sweep_flag = angle1 > angle2 ? 0 : 1;
+ if (angle1 > angle2) {
+ large_arg = 1-large_arg;
+ sweep_flag = 1-sweep_flag;
+ }
+ ostringstream oss;
+ oss << 'M' << XMLString(x+rx*cos(angle1)) << ',' << XMLString(y+ry*sin(-angle1))
+ << 'A' << XMLString(rx) << ',' << XMLString(ry)
+ << " 0 "
+ << large_arg << ' ' << sweep_flag << ' '
+ << XMLString(x+rx*cos(angle2)) << ',' << XMLString(y-ry*sin(angle2));
+ if (_fill >= 0)
+ oss << 'Z';
+ elem->addAttribute("d", oss.str());
+ }
+ elem->addAttribute("stroke-width", _penwidth);
+ elem->addAttribute("stroke", actions->getColor().rgbString());
+ elem->addAttribute("stroke-linecap", "round");
+ elem->addAttribute("fill", "none");
+ if (_fill >= 0) {
+ Color color=actions->getColor();
+ color *= _fill;
+ elem->addAttribute("fill", color.rgbString());
+ }
+ else
+ elem->addAttribute("fill", "none");
+ actions->appendToPage(elem);
+ actions->embed(BoundingBox(cx-rx, cy-ry, cx+rx, cy+ry));
+ }
+ reset();
+}
+
+
+#define cmd_id(c1,c2) ((c1 << 8) | c2)
+
+bool TpicSpecialHandler::process (const char *prefix, istream &is, SpecialActions *actions) {
+ if (!prefix || strlen(prefix) != 2)
+ return false;
+
+ const double PT=0.07227; // factor for milli-inch to TeX points
+ StreamInputBuffer ib(is);
+ BufferInputReader in(ib);
+ switch (cmd_id(prefix[0], prefix[1])) {
+ case cmd_id('p','n'): // set pen width in milli-inches
+ _penwidth = in.getDouble()*PT;
+ break;
+ case cmd_id('b','k'): // set fill color to black
+ _fill = 0;
+ break;
+ case cmd_id('w','h'): // set fill color to white
+ _fill = 1;
+ break;
+ case cmd_id('s','h'): // set fill color to given gray level
+ in.skipSpace();
+ _fill = in.eof() ? 0.5 : max(0.0, min(1.0, in.getDouble()));
+ break;
+ case cmd_id('t','x'): // set fill pattern
+ break;
+ case cmd_id('p','a'): { // add point to path
+ double x=in.getDouble()*PT;
+ double y=in.getDouble()*PT;
+ _points.push_back(DPair(x,y));
+ break;
+ }
+ case cmd_id('f','p'): // draw solid lines through recorded points; close and fill path if fill color was defined
+ drawLines(true, _fill >= 0, 0, actions);
+ break;
+ case cmd_id('i','p'): // don't draw outlines but close the recorded path and fill the resulting polygon
+ drawLines(false, true, 0, actions);
+ break;
+ case cmd_id('d','a'): // as fp but draw dashed lines
+ drawLines(true, _fill >= 0, in.getDouble()*72.27, actions);
+ break;
+ case cmd_id('d','t'): // as fp but draw dotted lines
+ drawLines(true, _fill >= 0, -in.getDouble()*72.27, actions);
+ break;
+ case cmd_id('s','p'): { // draw quadratic splines through recorded points
+ double ddist = in.getDouble();
+ drawSplines(ddist, actions);
+ break;
+ }
+ case cmd_id('a','r'): { // draw elliptical arc
+ double cx = in.getDouble()*PT;
+ double cy = in.getDouble()*PT;
+ double rx = in.getDouble()*PT;
+ double ry = in.getDouble()*PT;
+ double a1 = in.getDouble();
+ double a2 = in.getDouble();
+ drawArc(cx, cy, rx, ry, a1, a2, actions);
+ break;
+ }
+ case cmd_id('i','a'): { // fill elliptical arc
+ double cx = in.getDouble()*PT;
+ double cy = in.getDouble()*PT;
+ double rx = in.getDouble()*PT;
+ double ry = in.getDouble()*PT;
+ double a1 = in.getDouble();
+ double a2 = in.getDouble();
+ if (_fill < 0)
+ _fill = 1;
+ drawArc(cx, cy, rx, ry, a1, a2, actions);
+ if (_fill < 0)
+ _fill = -1;
+ break;
+ }
+ default:
+ return false;
+ }
+ return true;
+}
+
+
+const char** TpicSpecialHandler::prefixes () const {
+ static const char *pfx[] = {"ar", "bk", "da", "dt", "fp", "ia", "ip", "pa", "pn", "sh", "sp", "tx", "wh", 0};
+ return pfx;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TpicSpecialHandler.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TpicSpecialHandler.h
new file mode 100644
index 00000000000..257843d1115
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/TpicSpecialHandler.h
@@ -0,0 +1,51 @@
+/*************************************************************************
+** TpicSpecialHandler.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef TPICSPECIALHANDLER_H
+#define TPICSPECIALHANDLER_H
+
+#include <list>
+#include "Pair.h"
+#include "SpecialHandler.h"
+
+class TpicSpecialHandler : public SpecialHandler
+{
+ public:
+ TpicSpecialHandler ();
+ const char* info () const {return "TPIC specials";}
+ const char* name () const {return "tpic";}
+ const char** prefixes () const;
+ bool process (const char *prefix, std::istream &is, SpecialActions *actions);
+ void dviEndPage ();
+
+ protected:
+ bool isEndPageListener () const {return true;}
+ void reset ();
+ void drawLines (bool stroke, bool fill, double ddist, SpecialActions *actions);
+ void drawSplines (double ddist, SpecialActions *actions);
+ void drawArc (double cx, double cy, double rx, double ry, double angle1, double angle2, SpecialActions *actions);
+
+ private:
+ double _penwidth; ///< pen width in TeX point units
+ double _fill; ///< fill intensity [0,1]; if < 0, we don't fill anything
+ std::vector<DPair> _points;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VFActions.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VFActions.h
new file mode 100644
index 00000000000..ba25639b337
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VFActions.h
@@ -0,0 +1,38 @@
+/*************************************************************************
+** VFActions.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef VFACTIONS_H
+#define VFACTIONS_H
+
+#include <string>
+#include <vector>
+#include "types.h"
+
+
+struct VFActions
+{
+ virtual ~VFActions () {}
+ virtual void preamble (std::string comment, UInt32 checksum, double dsize) {}
+ virtual void postamble () {}
+ virtual void defineVFFont (UInt32 fontnum, std::string path, std::string name, UInt32 checksum, double dsize, double ssize) {}
+ virtual void defineVFChar (UInt32 c, std::vector<UInt8> *dvi) {}
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VFReader.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VFReader.cpp
new file mode 100644
index 00000000000..5980a63054a
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VFReader.cpp
@@ -0,0 +1,190 @@
+/*************************************************************************
+** VFReader.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <sstream>
+#include "Font.h"
+#include "VFActions.h"
+#include "VFReader.h"
+#include "macros.h"
+
+using namespace std;
+
+
+/** Converts a TFM fix point value to double. */
+inline static double fix2double (FixWord fix) {
+ return double(fix)/(1 << 20);
+}
+
+
+VFReader::VFReader (istream &is)
+ : StreamReader(is), _actions(0), _designSize(0) {
+}
+
+
+VFReader::~VFReader () {
+}
+
+
+VFActions* VFReader::replaceActions (VFActions *a) {
+ VFActions *ret = _actions;
+ _actions = a;
+ return ret;
+}
+
+
+/** Reads a single VF command from the current position of the input stream and calls the
+ * corresponding cmdFOO method. The execution can be influenced by a function of type ApproveOpcode.
+ * It takes an opcode and returns true if the command is supposed to be executed.
+ * @param[in] approve function to approve invocation of the action assigned to command
+ * @return opcode of the executed command */
+int VFReader::executeCommand (ApproveAction approve) {
+ int opcode = in().get();
+ if (!in() || opcode < 0) // at end of file
+ throw VFException("invalid file");
+
+ bool approved = !approve || approve(opcode);
+ VFActions *actions = _actions;
+ if (!approved)
+ replaceActions(0); // disable actions
+
+ if (opcode <= 241) // short character definition?
+ cmdShortChar(opcode);
+ else if (opcode >= 243 && opcode <= 246) // font definition?
+ cmdFontDef(opcode-243+1);
+ else {
+ switch (opcode) {
+ case 242: cmdLongChar(); break; // long character definition
+ case 247: cmdPre(); break; // preamble
+ case 248: cmdPost(); break; // postamble
+ default : { // invalid opcode
+ replaceActions(actions); // reenable actions
+ ostringstream oss;
+ oss << "undefined VF command (opcode " << opcode << ')';
+ throw VFException(oss.str());
+ }
+ }
+ }
+ replaceActions(actions); // reenable actions
+ return opcode;
+}
+
+
+bool VFReader::executeAll () {
+ in().clear(); // reset all status bits
+ if (!in())
+ return false;
+ in().seekg(0); // move file pointer to first byte of the input stream
+ while (!in().eof() && executeCommand() != 248); // stop reading after post (248)
+ return true;
+}
+
+
+/// Returns true if op indicates the preamble or a font definition
+static bool is_pre_or_fontdef (int op) {return op > 242;}
+static bool is_chardef (int op) {return op < 243;}
+
+
+bool VFReader::executePreambleAndFontDefs () {
+ in().clear();
+ if (!in())
+ return false;
+ in().seekg(0); // move file pointer to first byte of the input stream
+ while (!in().eof() && executeCommand(is_pre_or_fontdef) > 242); // stop reading after last font definition
+ return true;
+}
+
+
+bool VFReader::executeCharDefs () {
+ in().clear();
+ if (!in())
+ return false;
+ in().seekg(0);
+ while (!in().eof() && executeCommand(is_chardef) < 243); // stop reading after last char definition
+ return true;
+}
+
+//////////////////////////////////////////////////////////////////////////////
+
+/** Reads and executes DVI preamble command. */
+void VFReader::cmdPre () {
+ UInt32 i = readUnsigned(1); // identification number (should be 2)
+ UInt32 k = readUnsigned(1); // length of following comment
+ string cmt = readString(k); // comment
+ UInt32 cs = readUnsigned(4); // check sum to be compared with TFM cecksum
+ UInt32 ds = readUnsigned(4); // design size (same as TFM design size) (fix_word)
+ _designSize = fix2double(ds);
+ if (i != 202)
+ throw VFException("invalid identification value in preamble");
+ if (_actions)
+ _actions->preamble(cmt, cs, ds);
+}
+
+
+void VFReader::cmdPost () {
+ while ((readUnsigned(1)) == 248); // skip fill bytes
+ if (_actions)
+ _actions->postamble();
+}
+
+
+void VFReader::cmdLongChar () {
+ UInt32 pl = readUnsigned(4); // packet length (length of DVI subroutine)
+ if (_actions) {
+ UInt32 cc = readUnsigned(4); // character code
+ readUnsigned(4); // character width from corresponding TFM file
+ vector<UInt8> *dvi = new vector<UInt8>(pl); // DVI subroutine
+ readBytes(pl, *dvi);
+ _actions->defineVFChar(cc, dvi); // call template method for user actions
+ }
+ else
+ in().seekg(8+pl, ios::cur); // skip remaining char definition bytes
+}
+
+
+/** Reads and executes short_char_x command.
+ * @param[in] pl packet length (length of DVI subroutine) */
+void VFReader::cmdShortChar (int pl) {
+ if (_actions) {
+ UInt32 cc = readUnsigned(1); // character code
+ readUnsigned(3); // character width from corresponding TFM file
+ vector<UInt8> *dvi = new vector<UInt8>(pl); // DVI subroutine
+ readBytes(pl, *dvi);
+ _actions->defineVFChar(cc, dvi); // call template method for user actions
+ }
+ else
+ in().seekg(4+pl, ios::cur); // skip char definition bytes
+}
+
+
+void VFReader::cmdFontDef (int len) {
+ UInt32 fontnum = readUnsigned(len); // font number
+ UInt32 checksum = readUnsigned(4); // font checksum (to be compared with corresponding TFM checksum)
+ UInt32 ssize = readUnsigned(4); // scaled size of font relative to design size (fix_word)
+ UInt32 dsize = readUnsigned(4); // design size of font (same as TFM design size) (fix_word)
+ UInt32 pathlen = readUnsigned(1); // length of font path
+ UInt32 namelen = readUnsigned(1); // length of font name
+ string fontpath = readString(pathlen);
+ string fontname = readString(namelen);
+ if (_actions) {
+ double ss = fix2double(ssize);
+ double ds = fix2double(dsize);
+ _actions->defineVFFont(fontnum, fontpath, fontname, checksum, ds, ss*_designSize);
+ }
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VFReader.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VFReader.h
new file mode 100644
index 00000000000..25689dec2c8
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VFReader.h
@@ -0,0 +1,65 @@
+/*************************************************************************
+** VFReader.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef VFREADER_H
+#define VFREADER_H
+
+#include "MessageException.h"
+#include "StreamReader.h"
+#include "types.h"
+
+
+struct VFException : public MessageException
+{
+ VFException (const std::string &msg) : MessageException(msg) {}
+};
+
+
+struct VFActions;
+
+
+class VFReader : public StreamReader
+{
+ typedef bool (*ApproveAction)(int);
+ public:
+ VFReader (std::istream &is);
+ virtual ~VFReader ();
+ VFActions* replaceActions (VFActions *a);
+ bool executeAll ();
+ bool executePreambleAndFontDefs ();
+ bool executeCharDefs ();
+
+ protected:
+ int executeCommand (ApproveAction approve=0);
+
+ // the following methods represent the VF commands
+ // they are called by executeCommand and should not be used directly
+ void cmdPre ();
+ void cmdPost ();
+ void cmdShortChar (int pl);
+ void cmdLongChar ();
+ void cmdFontDef (int len);
+
+ private:
+ VFActions *_actions; ///< actions to execute when reading a VF command
+ double _designSize; ///< design size of currently read VF
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VectorStream.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VectorStream.h
new file mode 100644
index 00000000000..e57dad43ad1
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/VectorStream.h
@@ -0,0 +1,46 @@
+/*************************************************************************
+** VectorStream.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef VECTORSTREAM_H
+#define VECTORSTREAM_H
+
+#include <istream>
+#include <vector>
+
+
+template <typename T>
+struct VectorStreamBuffer : public std::streambuf
+{
+ VectorStreamBuffer (std::vector<T> &source) {
+ setg((char*)&source[0], (char*)&source[0], (char*)&source[0]+source.size());
+ }
+};
+
+
+template <typename T>
+class VectorInputStream : public std::istream
+{
+ public:
+ VectorInputStream (std::vector<T> &source) : std::istream(&_buf), _buf(source) {}
+ private:
+ VectorStreamBuffer<T> _buf;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLDocTypeNode.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLDocTypeNode.h
new file mode 100644
index 00000000000..ad1cd0f3b38
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLDocTypeNode.h
@@ -0,0 +1,41 @@
+/*************************************************************************
+** XMLDocTypeNode.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef XMLDOCTYPENODE_H
+#define XMLDOCTYPENODE_H
+
+#include "XMLNode.h"
+
+class XMLDocTypeNode : public XMLDeclarationNode
+{
+ public:
+ XMLDocTypeNode (const std::string &rootName, const std::string &type, const std::string &param)
+ : XMLDeclarationNode("DOCTYPE", rootName + " " + type + " " + param) {}
+};
+
+
+class XMLEntityNode : public XMLDeclarationNode
+{
+ public:
+ XMLEntityNode (const std::string &n, const std::string &v)
+ : XMLDeclarationNode("ENTITY", n + " " + v) {}
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLDocument.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLDocument.cpp
new file mode 100644
index 00000000000..5b6e3b1354f
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLDocument.cpp
@@ -0,0 +1,100 @@
+/*************************************************************************
+** XMLDocument.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include "macros.h"
+#include "XMLDocument.h"
+
+using namespace std;
+
+XMLDocument::XMLDocument (XMLElementNode *root)
+ : _rootElement(root), _emitted(false)
+{
+}
+
+
+XMLDocument::~XMLDocument () {
+ clear();
+}
+
+
+void XMLDocument::clear () {
+ delete _rootElement;
+ _rootElement = 0;
+ FORALL(_nodes, list<XMLNode*>::iterator, i)
+ delete *i;
+ _nodes.clear();
+}
+
+
+void XMLDocument::append (XMLNode *node) {
+ if (!node)
+ return;
+ XMLElementNode *newRoot = dynamic_cast<XMLElementNode*>(node);
+ if (newRoot) { // there can only be one root element node in the document
+ delete _rootElement; // so if there is already one...
+ _rootElement = newRoot; // ...we replace it
+ }
+ else
+ _nodes.push_back(node);
+}
+
+
+void XMLDocument::setRootNode (XMLElementNode *root) {
+ delete _rootElement;
+ _rootElement = root;
+}
+
+
+ostream& XMLDocument::write (ostream &os) const {
+ if (_rootElement) { // no root element => no output
+ os << "<?xml version='1.0' encoding='ISO-8859-1'?>\n";
+ FORALL(_nodes, list<XMLNode*>::const_iterator, i)
+ (*i)->write(os);
+ _rootElement->write(os);
+ }
+ return os;
+}
+
+/** Writes a part of the XML document to the given output stream and removes
+ * the completely written nodes. The output stops when a stop node is reached
+ * (this node won't be printed at all). If a node was only partly emitted, i.e.
+ * its child was the stop node, a further call of emit will continue the output.
+ * @param[in] os stream to which the output is written
+ * @param[in] stopElement node where emitting stops (if 0 the whole tree will be emitted)
+ * @return true if node was completely emitted */
+bool XMLDocument::emit (ostream& os, XMLNode *stopNode) {
+ if (_rootElement) { // no root element => no output
+ if (!_emitted) {
+ os << "<?xml version='1.0' encoding='ISO-8859-1'?>\n";
+ _emitted = true;
+ }
+ FORALL(_nodes, list<XMLNode*>::iterator, i) {
+ if ((*i)->emit(os, stopNode)) {
+ list<XMLNode*>::iterator it = i++; // prevent i from being invalidated...
+ _nodes.erase(it); // ... by erase
+ --i; // @@ what happens if i points to first child?
+ }
+ else
+ return false;
+ }
+ return _rootElement->emit(os, stopNode);
+ }
+ return true;
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLDocument.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLDocument.h
new file mode 100644
index 00000000000..31cf9dea303
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLDocument.h
@@ -0,0 +1,44 @@
+/*************************************************************************
+** XMLDocument.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef XMLDOCUMENT_H
+#define XMLDOCUMENT_H
+
+#include "XMLNode.h"
+
+class XMLDocument
+{
+ public:
+ XMLDocument (XMLElementNode *root=0);
+ ~XMLDocument ();
+ void clear ();
+ void append (XMLNode *node);
+ void setRootNode (XMLElementNode *root);
+ const XMLElementNode* getRootElement () const {return _rootElement;}
+ std::ostream& write (std::ostream &os) const;
+ bool emit (std::ostream& os, XMLNode *stopNode);
+
+ private:
+ std::list<XMLNode*> _nodes;
+ XMLElementNode *_rootElement;
+ bool _emitted;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLNode.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLNode.cpp
new file mode 100644
index 00000000000..d69b4a9b049
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLNode.cpp
@@ -0,0 +1,343 @@
+/*************************************************************************
+** XMLNode.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include "macros.h"
+#include "XMLNode.h"
+#include "XMLString.h"
+
+using namespace std;
+
+bool XMLNode::emit (ostream &os, XMLNode *stopNode) {
+ if (this == stopNode)
+ return false;
+ write(os);
+ return true;
+}
+
+
+XMLElementNode::XMLElementNode (const string &n) : _name(n), _emitted(false) {
+}
+
+
+XMLElementNode::XMLElementNode (const XMLElementNode &node)
+ : _name(node._name), _attributes(node._attributes), _emitted(false)
+{
+ FORALL(node._children, ChildList::const_iterator, it)
+ _children.push_back((*it)->clone());
+}
+
+
+XMLElementNode::~XMLElementNode () {
+ FORALL(_children, ChildList::iterator, i)
+ delete *i;
+}
+
+
+void XMLElementNode::addAttribute (const string &name, const string &value) {
+ _attributes[name] = value;
+}
+
+
+void XMLElementNode::addAttribute (const string &name, double value) {
+ _attributes[name] = XMLString(value);
+}
+
+
+void XMLElementNode::append (XMLNode *child) {
+ if (!child)
+ return;
+ XMLTextNode *textNode1 = dynamic_cast<XMLTextNode*>(child);
+ if (!textNode1 || _children.empty())
+ _children.push_back(child);
+ else {
+ if (XMLTextNode *textNode2 = dynamic_cast<XMLTextNode*>(_children.back()))
+ textNode2->append(textNode1); // merge two consecutive text nodes
+ else
+ _children.push_back(child);
+ }
+}
+
+
+void XMLElementNode::append (const string &str) {
+ if (_children.empty() || !dynamic_cast<XMLTextNode*>(_children.back()))
+ _children.push_back(new XMLTextNode(str));
+ else
+ static_cast<XMLTextNode*>(_children.back())->append(str);
+}
+
+
+void XMLElementNode::prepend (XMLNode *child) {
+ if (!child)
+ return;
+ XMLTextNode *textNode1 = dynamic_cast<XMLTextNode*>(child);
+ if (!textNode1 || _children.empty())
+ _children.push_front(child);
+ else {
+ if (XMLTextNode *textNode2 = dynamic_cast<XMLTextNode*>(_children.back()))
+ textNode2->prepend(textNode1); // merge two consecutive text nodes
+ else
+ _children.push_front(child);
+ }
+}
+
+
+/** Inserts a new child node before a given child node already present. The latter
+ * will be the following sibling of the node to be inserted. If there's no such
+ * node present, nothing is inserted.
+ * @param[in] child node to be inserted
+ * @param[in] sibling following sibling of 'child'
+ * @return true on success */
+bool XMLElementNode::insertBefore (XMLNode *child, XMLNode *sibling) {
+ ChildList::iterator it = _children.begin();
+ while (it != _children.end() && *it != sibling)
+ ++it;
+ if (it != _children.end()) {
+ _children.insert(it, child);
+ return true;
+ }
+ return false;
+}
+
+
+/** Inserts a new child node after a given child node already present. The latter
+ * will be the preceding sibling of the node to be inserted. If there's no such
+ * node present, nothing is inserted.
+ * @param[in] child node to be inserted
+ * @param[in] sibling preceding sibling of 'child'
+ * @return true on success */
+bool XMLElementNode::insertAfter (XMLNode *child, XMLNode *sibling) {
+ ChildList::iterator it = _children.begin();
+ while (it != _children.end() && *it != sibling)
+ ++it;
+ if (it != _children.end()) {
+ _children.insert(++it, child);
+ return true;
+ }
+ return false;
+}
+
+
+/** Finds all descendant elements of a given name and given attribute.
+ * @param[in] name name of elements to find
+ * @param[in] attr_name name of attribute to find
+ * @param[out] descendants all elements found
+ * @return true if at least one element was found */
+bool XMLElementNode::findDescendants (const char *name, const char *attr_name, vector<XMLElementNode*> &descendants) {
+ FORALL(_children, ChildList::iterator, it) {
+ if (XMLElementNode *elem = dynamic_cast<XMLElementNode*>(*it)) {
+ if ((!name || elem->getName() == name) && (!attr_name || elem->hasAttribute(attr_name)))
+ descendants.push_back(elem);
+ elem->findDescendants(name, attr_name, descendants);
+ }
+ }
+ return !descendants.empty();
+}
+
+
+ostream& XMLElementNode::write (ostream &os) const {
+ os << '<' << _name;
+ FORALL(_attributes, AttribMap::const_iterator, i)
+ os << ' ' << i->first << "='" << i->second << '\'';
+ if (_children.empty())
+ os << "/>\n";
+ else {
+ os << '>';
+ if (dynamic_cast<XMLElementNode*>(_children.front()))
+ os << '\n';
+ FORALL(_children, ChildList::const_iterator, i)
+ (*i)->write(os);
+ os << "</" << _name << ">\n";
+ }
+ return os;
+}
+
+
+/** Writes a part of the XML tree to the given output stream and removes
+ * the completely written nodes. The output stops when a stop node is reached
+ * (this node won't be printed at all). If a node was only partly emitted, i.e.
+ * its child was the stop node, a further call of emit will continue the output.
+ * @param[in] os stream to which the output is sent to
+ * @param[in] stopElement node where emitting stops (if 0 the whole tree will be emitted)
+ * @return true if node was emitted completely */
+bool XMLElementNode::emit (ostream &os, XMLNode *stopNode) {
+ if (this == stopNode)
+ return false;
+
+ if (!_emitted) {
+ os << '<' << _name;
+ FORALL(_attributes, AttribMap::iterator, i)
+ os << ' ' << i->first << "='" << i->second << '\'';
+ if (_children.empty())
+ os << "/>\n";
+ else {
+ os << '>';
+ if (dynamic_cast<XMLElementNode*>(_children.front()))
+ os << '\n';
+ }
+
+ _emitted = true;
+ }
+ if (!_children.empty()) {
+ FORALL(_children, ChildList::iterator, i) {
+ if ((*i)->emit(os, stopNode)) {
+ ChildList::iterator it = i++; // prevent i from being invalidated...
+ _children.erase(it); // ... by erase
+ --i; // @@ what happens if i points to first child?
+ }
+ else
+ return false;
+ }
+ os << "</" << _name << ">\n";
+ }
+ return true;
+}
+
+
+/** Returns true if this element has an attribute of given name. */
+bool XMLElementNode::hasAttribute (const string &name) const {
+ return _attributes.find(name) != _attributes.end();
+}
+
+
+/** Returns the value of an attribute.
+ * @param[in] name name of attribute
+ * @return attribute value or 0 if attribute doesn't exist */
+const char* XMLElementNode::getAttributeValue(const std::string& name) const {
+ AttribMap::const_iterator it = _attributes.find(name);
+ if (it != _attributes.end())
+ return it->second.c_str();
+ return 0;
+}
+
+
+//////////////////////
+
+void XMLTextNode::append (XMLNode *node) {
+ if (XMLTextNode *tn = dynamic_cast<XMLTextNode*>(node))
+ append(tn);
+ else
+ delete node;
+}
+
+
+void XMLTextNode::append (XMLTextNode *node) {
+ if (node)
+ _text += node->_text;
+ delete node;
+}
+
+
+void XMLTextNode::append (const string &str) {
+ _text += str;
+}
+
+
+void XMLTextNode::prepend (XMLNode *node) {
+ if (XMLTextNode *tn = dynamic_cast<XMLTextNode*>(node))
+ prepend(tn);
+ else
+ delete node;
+}
+
+
+//////////////////////
+
+XMLDeclarationNode::XMLDeclarationNode (const string &n, const string &p)
+ : _name(n), _params(p), _emitted(false)
+{
+}
+
+
+XMLDeclarationNode::XMLDeclarationNode (const XMLDeclarationNode &node)
+ : _name(node._name), _params(node._params), _emitted(false)
+{
+ FORALL(node._children, list<XMLDeclarationNode*>::const_iterator, it)
+ _children.push_back(new XMLDeclarationNode(**it));
+}
+
+
+XMLDeclarationNode::~XMLDeclarationNode () {
+ FORALL(_children, list<XMLDeclarationNode*>::iterator, i)
+ delete *i;
+}
+
+
+/** Appends another declaration node to this one.
+ * @param[in] child child to append, must be of type XMLDeclarationNode */
+void XMLDeclarationNode::append (XMLNode *child) {
+ if (XMLDeclarationNode *decl_node = dynamic_cast<XMLDeclarationNode*>(child))
+ _children.push_back(decl_node);
+ else
+ delete child;
+}
+
+
+ostream& XMLDeclarationNode::write (ostream &os) const {
+ os << "<!" << _name << ' ' << _params;
+ if (_children.empty())
+ os << ">\n";
+ else {
+ os << "[\n";
+ FORALL(_children, list<XMLDeclarationNode*>::const_iterator, i)
+ (*i)->write(os);
+ os << "]>\n";
+ }
+ return os;
+}
+
+
+bool XMLDeclarationNode::emit (ostream &os, XMLNode *stopNode) {
+ if (this == stopNode)
+ return false;
+
+ if (!_emitted) {
+ os << "<!" << _name << ' ' << _params;
+ if (_children.empty())
+ os << ">\n";
+ else
+ os << "[\n";
+ _emitted = true;
+ }
+ if (!_children.empty()) {
+ FORALL(_children, list<XMLDeclarationNode*>::iterator, i) {
+ if ((*i)->emit(os, stopNode)) {
+ list<XMLDeclarationNode*>::iterator it = i++; // prevent i from being invalidated...
+ _children.erase(it); // ... by erase
+ --i; // @@ what happens if i points to first child?
+ }
+ else
+ return false;
+ }
+ os << "]>\n";
+ }
+ return true;
+
+}
+
+//////////////////////
+
+ostream& XMLCDataNode::write (ostream &os) const {
+ os << "<![CDATA[\n"
+ << _data
+ << "]]>\n";
+ return os;
+}
+
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLNode.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLNode.h
new file mode 100644
index 00000000000..324bea068aa
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLNode.h
@@ -0,0 +1,134 @@
+/*************************************************************************
+** XMLNode.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef XMLNODE_H
+#define XMLNODE_H
+
+#include <list>
+#include <map>
+#include <ostream>
+#include <string>
+
+#include "SpecialActions.h"
+
+
+struct XMLNode
+{
+ virtual ~XMLNode () {}
+ virtual XMLNode* clone () const =0;
+ virtual std::ostream& write (std::ostream &os) const =0;
+ virtual bool emit (std::ostream &os, XMLNode *stopElement);
+ virtual void append (XMLNode *child) {}
+ virtual void prepend (XMLNode *child) {}
+};
+
+
+class XMLElementNode : public XMLNode
+{
+ typedef std::map<std::string,std::string> AttribMap;
+ typedef std::list<XMLNode*> ChildList;
+ public:
+ XMLElementNode (const std::string &name);
+ XMLElementNode (const XMLElementNode &node);
+ ~XMLElementNode ();
+ XMLNode* clone () const {return new XMLElementNode(*this);}
+ void addAttribute (const std::string &name, const std::string &value);
+ void addAttribute (const std::string &name, double value);
+ void append (XMLNode *child);
+ void append (const std::string &str);
+ void prepend (XMLNode *child);
+ bool insertAfter (XMLNode *child, XMLNode *sibling);
+ bool insertBefore (XMLNode *child, XMLNode *sibling);
+ bool hasAttribute (const std::string &name) const;
+ const char* getAttributeValue (const std::string &name) const;
+ bool findDescendants (const char *name, const char *attr_name, std::vector<XMLElementNode*> &descendants);
+ std::ostream& write (std::ostream &os) const;
+ bool emit (std::ostream &os, XMLNode *stopElement);
+ bool empty () const {return _children.empty();}
+ const std::list<XMLNode*>& children () const {return _children;}
+ const std::string& getName () const {return _name;}
+
+ private:
+ std::string _name; // element name (<name a1="v1" .. an="vn">...</name>)
+ AttribMap _attributes;
+ ChildList _children; // child nodes
+ bool _emitted; // true if node has been (partly) emitted
+};
+
+
+class XMLTextNode : public XMLNode
+{
+ public:
+ XMLTextNode (const std::string &str) : _text(str) {}
+ XMLNode* clone () const {return new XMLTextNode(*this);}
+ void append (XMLNode *node);
+ void append (XMLTextNode *node);
+ void append (const std::string &str);
+ void prepend (XMLNode *child);
+ std::ostream& write (std::ostream &os) const {return os << _text;}
+
+ private:
+ std::string _text;
+};
+
+
+class XMLCommentNode : public XMLNode
+{
+ public:
+ XMLCommentNode (const std::string &str) : _text(str) {}
+ XMLNode* clone () const {return new XMLCommentNode(*this);}
+ std::ostream& write (std::ostream &os) const {return os << "<!--" << _text << "-->\n";}
+
+ private:
+ std::string _text;
+};
+
+
+class XMLDeclarationNode : public XMLNode
+{
+ public:
+ XMLDeclarationNode (const std::string &n, const std::string &p);
+ XMLDeclarationNode (const XMLDeclarationNode &node);
+ ~XMLDeclarationNode ();
+ XMLNode* clone () const {return new XMLDeclarationNode(*this);}
+ void append (XMLNode *child);
+ std::ostream& write (std::ostream &os) const;
+ bool emit (std::ostream &os, XMLNode *stopElement);
+
+ private:
+ std::string _name;
+ std::string _params;
+ std::list<XMLDeclarationNode*> _children;
+ bool _emitted;
+};
+
+
+class XMLCDataNode : public XMLNode
+{
+ public:
+ XMLCDataNode (const std::string &d) : _data(d) {}
+ XMLNode* clone () const {return new XMLCDataNode(*this);}
+ std::ostream& write (std::ostream &os) const;
+
+ private:
+ std::string _data;
+};
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLString.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLString.cpp
new file mode 100644
index 00000000000..326eaf89bdf
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLString.cpp
@@ -0,0 +1,134 @@
+/*************************************************************************
+** XMLString.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cmath>
+#include <cstdlib>
+#include <iomanip>
+#include <sstream>
+#include "macros.h"
+#include "XMLString.h"
+
+using namespace std;
+
+int XMLString::DECIMAL_PLACES = 0;
+
+static string translate (unsigned c) {
+ switch (c) {
+ case '<' : return "&lt;";
+ case '&' : return "&amp;";
+ case '"' : return "&quot;";
+ case '\'': return "&apos;";
+ }
+ ostringstream oss;
+ if (c >= 32 && c <= 126)
+ oss << char(c);
+ else
+ oss <<"&#" << unsigned(c) << ';';
+ return oss.str();
+}
+
+
+#if 0
+/** Returns the number of pre-decimal places of a given floating point value. */
+static int predecimal_places (double x) {
+ int n = abs(static_cast<int>(x));
+ int ret = (n == 0 ? 0 : 1);
+ while (n >= 10) {
+ ret++;
+ n /= 10;
+ }
+ return ret;
+}
+#endif
+
+
+/** Rounds a floating point value to a given number of decimal places.
+ * @param[in] x number to round
+ * @param[in] n number of decimal places (must be between 1 and 6)
+ * @return rounded value */
+static inline double round (double x, long n) {
+ const long pow10[] = {10L, 100L, 1000L, 10000L, 100000L, 1000000L};
+ n--;
+ return floor(x*pow10[n]+0.5)/pow10[n];
+}
+
+
+XMLString::XMLString (const string &str, bool plain) {
+ if (plain)
+ *this = str;
+ else {
+ FORALL(str, string::const_iterator, i)
+ *this += translate(*i);
+ }
+}
+
+
+XMLString::XMLString (const char *str, bool plain) {
+ if (str) {
+ if (plain)
+ *this = str;
+ else {
+ while (*str)
+ *this += translate(*str++);
+ }
+ }
+}
+
+
+XMLString::XMLString (int n, bool cast) {
+ if (cast) {
+ stringstream ss;
+ ss << n;
+ ss >> *this;
+ }
+ else
+ *this += translate(n);
+}
+
+
+XMLString::XMLString (double x) {
+ stringstream ss;
+ if (DECIMAL_PLACES > 0)
+ x = round(x, DECIMAL_PLACES);
+ ss << x;
+ ss >> *this;
+}
+
+
+/*
+ostream& XMLString::write (ostream &os) const {
+ const string *self = static_cast<const string*>(this);
+ FORALL(*self, string::const_iterator, i) {
+ unsigned char c = *i;
+ switch (c) {
+ case '<' : os << "&lt;"; break;
+ case '&' : os << "&amp;"; break;
+ case '"' : os << "&quot;"; break;
+ case '\'': os << "&apos;"; break;
+ default :
+ if (c >= 32 && c <= 126)
+ os << c;
+ else
+ os << "&#" << int(c) << ';';
+ }
+ }
+ return os;
+}
+*/
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLString.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLString.h
new file mode 100644
index 00000000000..b1496b4a503
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/XMLString.h
@@ -0,0 +1,40 @@
+/*************************************************************************
+** XMLString.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef XMLSTRING_H
+#define XMLSTRING_H
+
+#include <string>
+
+
+class XMLString : public std::string
+{
+ public:
+ XMLString () : std::string() {}
+ XMLString (const char *str, bool plain=false);
+ XMLString (const std::string &str, bool plain=false);
+ XMLString (int n, bool cast=true);
+ XMLString (double x);
+
+ static int DECIMAL_PLACES; ///< number of decimal places applied to floating point values (0-6)
+};
+
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/dvisvgm.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/dvisvgm.cpp
new file mode 100644
index 00000000000..f275ee65e52
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/dvisvgm.cpp
@@ -0,0 +1,424 @@
+/*************************************************************************
+** dvisvgm.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <cmath>
+#include <fstream>
+#include <iomanip>
+#include <iostream>
+#include <sstream>
+#include <string>
+#include "gzstream.h"
+#include "CommandLine.h"
+#include "DVIToSVG.h"
+#include "DVIToSVGActions.h"
+#include "EPSToSVG.h"
+#include "FilePath.h"
+#include "FileSystem.h"
+#include "Font.h"
+#include "FontCache.h"
+#include "FontEngine.h"
+#include "FontMap.h"
+#include "Ghostscript.h"
+#include "InputReader.h"
+#include "Message.h"
+#include "FileFinder.h"
+#include "PageSize.h"
+#include "SignalHandler.h"
+#include "SpecialManager.h"
+#include "SVGOutputBase.h"
+#include "System.h"
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#include "PSInterpreter.h"
+#endif
+#ifndef TARGET_SYSTEM
+#define TARGET_SYSTEM ""
+#endif
+
+#ifdef __MSVC__
+#include <potracelib.h>
+#else
+extern "C" {
+#include <potracelib.h>
+}
+#endif
+
+using namespace std;
+
+class SVGOutput : public SVGOutputBase
+{
+ public:
+ SVGOutput (const char *base=0, string pattern="", int zip_level=0)
+ : _path(base ? base : ""),
+ _pattern(pattern),
+ _stdout(base == 0),
+ _zipLevel(zip_level),
+ _page(-1),
+ _os(0) {}
+
+
+ ~SVGOutput () {
+ delete _os;
+ }
+
+
+ /** Returns an output stream for the given page.
+ * @param[in] page number of current page
+ * @param[in] numPages total number of pages in the DVI file
+ * @return output stream for the given page */
+ ostream& getPageStream (int page, int numPages) const {
+ string fname = filename(page, numPages);
+ if (fname.empty()) {
+ delete _os;
+ _os = 0;
+ return cout;
+ }
+ if (page == _page)
+ return *_os;
+
+ _page = page;
+ delete _os;
+
+ if (_zipLevel > 0)
+ _os = new ogzstream(fname.c_str(), _zipLevel);
+ else
+ _os = new ofstream(fname.c_str());
+ if (!_os || !*_os) {
+ delete _os;
+ _os = 0;
+ throw MessageException("can't open file "+fname+" for writing");
+ }
+ return *_os;
+ }
+
+
+ /** Returns the name of the SVG file containing the given page.
+ * @param[in] page number of page */
+ string filename (int page, int numPages) const {
+ if (_stdout)
+ return "";
+ string fname = _pattern;
+ if (fname.empty())
+ fname = numPages > 1 ? "%f-%p" : "%f";
+ else if (numPages > 1 && fname.find("%p") == string::npos)
+ fname += FileSystem::isDirectory(fname.c_str()) ? "/%f-%p" : "-%p";
+
+ // replace pattern variables by their actual values
+ // %f: basename of the DVI file
+ // %p: current page number
+ ostringstream oss;
+ oss << setfill('0') << setw(max(2, int(1+log10((double)numPages)))) << page;
+ size_t pos=0;
+ while ((pos = fname.find('%', pos)) != string::npos && pos < fname.length()-1) {
+ switch (fname[pos+1]) {
+ case 'f': fname.replace(pos, 2, _path.basename()); pos += _path.basename().length(); break;
+ case 'p': fname.replace(pos, 2, oss.str()); pos += oss.str().length(); break;
+ default : ++pos;
+ }
+ }
+ FilePath outpath(fname, true);
+ if (outpath.suffix().empty())
+ outpath.suffix(_zipLevel > 0 ? "svgz" : "svg");
+ string apath = outpath.absolute();
+ string rpath = outpath.relative();
+ return apath.length() < rpath.length() ? apath : rpath;
+ }
+
+ private:
+ FilePath _path;
+ string _pattern;
+ bool _stdout;
+ int _zipLevel;
+ mutable int _page; // number of current page being written
+ mutable ostream *_os;
+};
+
+////////////////////////////////////////////////////////////////////////////////
+
+static void show_help (const CommandLine &cmd) {
+ cout << PACKAGE_STRING "\n\n";
+ cmd.help(cmd.help_arg());
+ cout << "\nCopyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> \n\n";
+}
+
+
+static string remove_path (string fname) {
+ fname = FileSystem::adaptPathSeperators(fname);
+ size_t slashpos = fname.rfind('/');
+ if (slashpos == string::npos)
+ return fname;
+ return fname.substr(slashpos+1);
+}
+
+
+static string ensure_suffix (string fname, const string &suffix) {
+ size_t dotpos = remove_path(fname).rfind('.');
+ if (dotpos == string::npos)
+ fname += "."+suffix;
+ return fname;
+}
+
+
+static string get_transformation_string (const CommandLine &args) {
+ ostringstream oss;
+ if (args.rotate_given())
+ oss << 'R' << args.rotate_arg() << ",w/2,h/2";
+ if (args.translate_given())
+ oss << 'T' << args.translate_arg();
+ if (args.scale_given())
+ oss << 'S' << args.scale_arg();
+ if (args.transform_given())
+ oss << args.transform_arg();
+ return oss.str();
+}
+
+
+static void set_libgs (CommandLine &args) {
+#if !defined(DISABLE_GS) && !defined(HAVE_LIBGS)
+ if (args.libgs_given())
+ Ghostscript::LIBGS_NAME = args.libgs_arg();
+ else if (getenv("LIBGS"))
+ Ghostscript::LIBGS_NAME = getenv("LIBGS");
+#endif
+}
+
+
+static bool set_cache_dir (const CommandLine &args) {
+ if (args.cache_given() && !args.cache_arg().empty()) {
+ if (args.cache_arg() == "none")
+ PhysicalFont::CACHE_PATH = 0;
+ else if (FileSystem::exists(args.cache_arg().c_str()))
+ PhysicalFont::CACHE_PATH = args.cache_arg().c_str();
+ else
+ Message::wstream(true) << "cache directory '" << args.cache_arg() << "' does not exist (caching disabled)\n";
+ }
+ else {
+ if (const char *userdir = FileSystem::userdir()) {
+ static string path = userdir;
+ path += "/.dvisvgm";
+ path = FileSystem::adaptPathSeperators(path);
+ const string cachepath = path+"/cache";
+ if (!FileSystem::exists(cachepath.c_str())) {
+ if (!FileSystem::exists(path.c_str()))
+ FileSystem::mkdir(cachepath.c_str());
+ else {
+ FileSystem::mkdir(cachepath.c_str());
+ // move existing cache files from former location to new one
+ vector<string> files;
+ FileSystem::collect(path.c_str(), files);
+ FORALL(files, vector<string>::iterator, it) {
+ if (it->at(0) == 'f' && it->length() > 4 && it->substr(it->length()-4, 4) == ".fgd") {
+ const char *fname = it->c_str()+1;
+ FileSystem::copy(path+"/"+fname, cachepath+"/"+fname, true);
+ }
+ }
+ }
+ }
+ path = cachepath;
+ PhysicalFont::CACHE_PATH = path.c_str();
+ }
+ if (args.cache_given() && args.cache_arg().empty()) {
+ cout << "cache directory: " << (PhysicalFont::CACHE_PATH ? PhysicalFont::CACHE_PATH : "(none)") << '\n';
+ FontCache::fontinfo(PhysicalFont::CACHE_PATH, cout, true);
+ return false;
+ }
+ }
+ return true;
+}
+
+
+static bool check_bbox (const string &bboxstr) {
+ const char *formats[] = {"none", "min", "dvi", 0};
+ for (const char **p=formats; *p; ++p)
+ if (bboxstr == *p)
+ return true;
+ if (isalpha(bboxstr[0])) {
+ try {
+ PageSize size(bboxstr);
+ return true;
+ }
+ catch (const PageSizeException &e) {
+ Message::estream(true) << "invalid bounding box format '" << bboxstr << "'\n";
+ return false;
+ }
+ }
+ try {
+ BoundingBox bbox;
+ bbox.set(bboxstr);
+ return true;
+ }
+ catch (const MessageException &e) {
+ Message::estream(true) << e.what() << '\n';
+ return false;
+ }
+}
+
+
+static void print_version (bool extended) {
+ ostringstream oss;
+ oss << PACKAGE_STRING;
+ if (extended) {
+ if (strlen(TARGET_SYSTEM) > 0)
+ oss << " (" TARGET_SYSTEM ")";
+ oss << "\n" << string(oss.str().length()-1, '-') << "\n"
+ "freetype: " << FontEngine::version() << "\n";
+
+ string gsver;
+ Ghostscript gs;
+ gsver = gs.revision(true);
+ if (!gsver.empty())
+ oss << "Ghostscript: " << gsver + "\n";
+ oss <<
+#ifdef MIKTEX
+ "MiKTeX: " << FileFinder::version() << "\n"
+#else
+ "kpathsea: " << FileFinder::version() << "\n"
+#endif
+ "potrace: " << (strchr(potrace_version(), ' ') ? strchr(potrace_version(), ' ')+1 : "unknown") << "\n"
+ "zlib: " << zlibVersion();
+ }
+ cout << oss.str() << endl;
+}
+
+
+static void init_fontmap (const CommandLine &args) {
+ const char *mapseq = args.fontmap_given() ? args.fontmap_arg().c_str() : 0;
+ bool additional = mapseq && strchr("+-=", *mapseq);
+ if (!mapseq || additional) {
+ const char *mapfiles[] = {"ps2pk.map", "dvipdfm.map", "psfonts.map", 0};
+ bool found = false;
+ for (const char **p=mapfiles; *p && !found; p++)
+ found = FontMap::instance().read(*p);
+ if (!found)
+ Message::wstream(true) << "none of the default map files could be found";
+ }
+ if (mapseq)
+ FontMap::instance().read(mapseq);
+}
+
+
+int main (int argc, char *argv[]) {
+ CommandLine args;
+ args.parse(argc, argv);
+ if (args.error())
+ return 1;
+
+ Message::COLORIZE = args.color_given();
+
+ set_libgs(args);
+ if (args.version_given()) {
+ print_version(args.version_arg());
+ return 0;
+ }
+ if (args.list_specials_given()) {
+ SVGOutput out;
+ DVIToSVG dvisvg(cin, out);
+ if (const SpecialManager *sm = dvisvg.setProcessSpecials())
+ sm->writeHandlerInfo(cout);
+ return 0;
+ }
+
+ if (!set_cache_dir(args))
+ return 0;
+
+ if (argc == 1 || args.help_given()) {
+ show_help(args);
+ return 0;
+ }
+
+ if (argc > 1 && args.numFiles() < 1) {
+ Message::estream(true) << "no input file given\n";
+ return 1;
+ }
+
+ if (args.stdout_given() && args.zip_given()) {
+ Message::estream(true) << "writing SVGZ files to stdout is not supported\n";
+ return 1;
+ }
+
+ if (!check_bbox(args.bbox_arg()))
+ return 1;
+
+ if (args.progress_given()) {
+ DVIReader::COMPUTE_PAGE_LENGTH = args.progress_given();
+ DVIToSVGActions::PROGRESSBAR_DELAY = args.progress_arg();
+ }
+ SVGTree::CREATE_STYLE = !args.no_styles_given();
+ SVGTree::USE_FONTS = !args.no_fonts_given();
+ SVGTree::CREATE_USE_ELEMENTS = args.no_fonts_arg() < 1;
+ DVIToSVGActions::EXACT_BBOX = args.exact_given();
+ DVIToSVG::TRACE_MODE = args.trace_all_given() ? (args.trace_all_arg() ? 'a' : 'm') : 0;
+ Message::LEVEL = args.verbosity_arg();
+ PhysicalFont::KEEP_TEMP_FILES = args.keep_given();
+ PhysicalFont::METAFONT_MAG = args.mag_arg();
+ XMLString::DECIMAL_PLACES = max(0, min(6, args.precision_arg()));
+
+ double start_time = System::time();
+ string inputfile = ensure_suffix(args.file(0), args.eps_given() ? "eps" : "dvi");
+ ifstream ifs(inputfile.c_str(), ios_base::binary|ios_base::in);
+ if (!ifs) {
+ Message::estream(true) << "can't open file '" << inputfile << "' for reading\n";
+ return 0;
+ }
+ try {
+ FileFinder::init(argv[0], "dvisvgm", !args.no_mktexmf_given());
+ SVGOutput out(args.stdout_given() ? 0 : inputfile.c_str(), args.output_arg(), args.zip_given() ? args.zip_arg() : 0);
+ SignalHandler::instance().start();
+ if (args.eps_given()) {
+ EPSToSVG eps2svg(inputfile, out);
+ eps2svg.convert();
+ Message::mstream().indent(0);
+ Message::mstream(false, Message::MC_PAGE_NUMBER)
+ << "file converted in " << (System::time()-start_time) << " seconds\n";
+ }
+ else {
+ DVIToSVG dvi2svg(ifs, out);
+ const char *ignore_specials = args.no_specials_given() ? (args.no_specials_arg().empty() ? "*" : args.no_specials_arg().c_str()) : 0;
+ dvi2svg.setProcessSpecials(ignore_specials, true);
+ dvi2svg.setTransformation(get_transformation_string(args));
+ dvi2svg.setPageSize(args.bbox_arg());
+
+ init_fontmap(args);
+ pair<int,int> pageinfo;
+ dvi2svg.convert(args.page_arg(), &pageinfo);
+ Message::mstream().indent(0);
+ Message::mstream(false, Message::MC_PAGE_NUMBER) << "\n" << pageinfo.first << " of " << pageinfo.second << " page";
+ if (pageinfo.second > 1)
+ Message::mstream(false, Message::MC_PAGE_NUMBER) << 's';
+ Message::mstream(false, Message::MC_PAGE_NUMBER) << " converted in " << (System::time()-start_time) << " seconds\n";
+ }
+ }
+ catch (DVIException &e) {
+ Message::estream() << "\nDVI error: " << e.what() << '\n';
+ }
+ catch (PSException &e) {
+ Message::estream() << "\nPostScript error: " << e.what() << '\n';
+ }
+ catch (SignalException &e) {
+ Message::wstream(true) << "execution interrupted by user\n";
+ }
+ catch (MessageException &e) {
+ Message::estream(true) << e.what() << '\n';
+ }
+ FileFinder::finish();
+ return 0;
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/gzstream.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/gzstream.cpp
new file mode 100644
index 00000000000..2893c299891
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/gzstream.cpp
@@ -0,0 +1,172 @@
+// ============================================================================
+// gzstream, C++ iostream classes wrapping the zlib compression library.
+// Copyright (C) 2001 Deepak Bandyopadhyay, Lutz Kettner
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library 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
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// ============================================================================
+//
+// File : gzstream.C
+// Revision : $Revision: 1.3 $
+// Revision_date : $Date: 2006/01/05 16:22:35 $
+// Author(s) : Deepak Bandyopadhyay, Lutz Kettner
+//
+// Standard streambuf implementation following Nicolai Josuttis, "The
+// Standard C++ Library".
+// ============================================================================
+
+#include "gzstream.h"
+#include <iostream>
+#include <string.h> // for memcpy
+
+#ifdef GZSTREAM_NAMESPACE
+namespace GZSTREAM_NAMESPACE {
+#endif
+
+const int gzstreambuf::bufferSize = 47+256; // size of data buff
+
+// ----------------------------------------------------------------------------
+// Internal classes to implement gzstream. See header file for user classes.
+// ----------------------------------------------------------------------------
+
+// --------------------------------------
+// class gzstreambuf:
+// --------------------------------------
+
+gzstreambuf* gzstreambuf::open(const char* name, int compression_level, int open_mode) {
+ if ( is_open())
+ return (gzstreambuf*)0;
+ mode = open_mode;
+ // no append nor read/write mode
+ if ((mode & std::ios::ate) || (mode & std::ios::app)
+ || ((mode & std::ios::in) && (mode & std::ios::out)))
+ return (gzstreambuf*)0;
+ if (compression_level < 1)
+ compression_level = 1;
+ else if (compression_level > 9)
+ compression_level = 9;
+ char fmode[10];
+ char* fmodeptr = fmode;
+ if ( mode & std::ios::in)
+ *fmodeptr++ = 'r';
+ else if ( mode & std::ios::out)
+ *fmodeptr++ = 'w';
+ *fmodeptr++ = 'b';
+ *fmodeptr++ = '0'+compression_level;
+ *fmodeptr = '\0';
+ file = gzopen( name, fmode);
+ if (file == 0)
+ return (gzstreambuf*)0;
+ opened = 1;
+ return this;
+}
+
+gzstreambuf * gzstreambuf::close() {
+ if ( is_open()) {
+ sync();
+ opened = 0;
+ if ( gzclose( file) == Z_OK)
+ return this;
+ }
+ return (gzstreambuf*)0;
+}
+
+int gzstreambuf::underflow() { // used for input buffer only
+ if ( gptr() && ( gptr() < egptr()))
+ return * reinterpret_cast<unsigned char *>( gptr());
+
+ if ( ! (mode & std::ios::in) || ! opened)
+ return EOF;
+ // Josuttis' implementation of inbuf
+ int n_putback = gptr() - eback();
+ if ( n_putback > 4)
+ n_putback = 4;
+ memcpy( buffer + (4 - n_putback), gptr() - n_putback, n_putback);
+
+ int num = gzread( file, buffer+4, bufferSize-4);
+ if (num <= 0) // ERROR or EOF
+ return EOF;
+
+ // reset buffer pointers
+ setg( buffer + (4 - n_putback), // beginning of putback area
+ buffer + 4, // read position
+ buffer + 4 + num); // end of buffer
+
+ // return next character
+ return * reinterpret_cast<unsigned char *>( gptr());
+}
+
+int gzstreambuf::flush_buffer() {
+ // Separate the writing of the buffer from overflow() and
+ // sync() operation.
+ int w = pptr() - pbase();
+ if ( gzwrite( file, pbase(), w) != w)
+ return EOF;
+ pbump( -w);
+ return w;
+}
+
+int gzstreambuf::overflow( int c) { // used for output buffer only
+ if ( ! ( mode & std::ios::out) || ! opened)
+ return EOF;
+ if (c != EOF) {
+ *pptr() = c;
+ pbump(1);
+ }
+ if ( flush_buffer() == EOF)
+ return EOF;
+ return c;
+}
+
+int gzstreambuf::sync() {
+ // Changed to use flush_buffer() instead of overflow( EOF)
+ // which caused improper behavior with std::endl and flush(),
+ // bug reported by Vincent Ricard.
+ if ( pptr() && pptr() > pbase()) {
+ if ( flush_buffer() == EOF)
+ return -1;
+ }
+ return 0;
+}
+
+// --------------------------------------
+// class gzstreambase:
+// --------------------------------------
+
+gzstreambase::gzstreambase( const char* name, int compression_level, int mode) {
+ init( &buf);
+ open( name, compression_level, mode);
+}
+
+gzstreambase::~gzstreambase() {
+ buf.close();
+}
+
+void gzstreambase::open( const char* name, int compression_level, int open_mode) {
+ if ( ! buf.open( name, compression_level, open_mode))
+ clear( rdstate() | std::ios::badbit);
+}
+
+void gzstreambase::close() {
+ if ( buf.is_open())
+ if ( ! buf.close())
+ clear( rdstate() | std::ios::badbit);
+}
+
+#ifdef GZSTREAM_NAMESPACE
+} // namespace GZSTREAM_NAMESPACE
+#endif
+
+// ============================================================================
+// EOF //
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/gzstream.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/gzstream.h
new file mode 100644
index 00000000000..60f38c4fac7
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/gzstream.h
@@ -0,0 +1,121 @@
+// ============================================================================
+// gzstream, C++ iostream classes wrapping the zlib compression library.
+// Copyright (C) 2001 Deepak Bandyopadhyay, Lutz Kettner
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library 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
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// ============================================================================
+//
+// File : gzstream.h
+// Revision : $Revision: 1.3 $
+// Revision_date : $Date: 2006/01/05 16:22:35 $
+// Author(s) : Deepak Bandyopadhyay, Lutz Kettner
+//
+// Standard streambuf implementation following Nicolai Josuttis, "The
+// Standard C++ Library".
+// ============================================================================
+
+#ifndef GZSTREAM_H
+#define GZSTREAM_H 1
+
+// standard C++ with new header file names and std:: namespace
+#include <iostream>
+#include <fstream>
+#include <zlib.h>
+
+#ifdef GZSTREAM_NAMESPACE
+namespace GZSTREAM_NAMESPACE {
+#endif
+
+// ----------------------------------------------------------------------------
+// Internal classes to implement gzstream. See below for user classes.
+// ----------------------------------------------------------------------------
+
+class gzstreambuf : public std::streambuf {
+private:
+ static const int bufferSize; // size of data buff
+ // totals 512 bytes under g++ for igzstream at the end.
+
+ gzFile file; // file handle for compressed file
+ char buffer[47+256]; // data buffer
+ char opened; // open/close state of stream
+ int mode; // I/O mode
+
+ int flush_buffer();
+public:
+ gzstreambuf() : opened(0) {
+ setp( buffer, buffer + (bufferSize-1));
+ setg( buffer + 4, // beginning of putback area
+ buffer + 4, // read position
+ buffer + 4); // end position
+ // ASSERT: both input & output capabilities will not be used together
+ }
+ int is_open() { return opened; }
+ gzstreambuf* open(const char* name, int compression_level, int open_mode);
+ gzstreambuf* close();
+ ~gzstreambuf() { close(); }
+
+ virtual int overflow( int c = EOF);
+ virtual int underflow();
+ virtual int sync();
+};
+
+class gzstreambase : virtual public std::ios {
+protected:
+ gzstreambuf buf;
+public:
+ gzstreambase() { init(&buf); }
+ gzstreambase( const char* name, int compression_level, int open_mode);
+ ~gzstreambase();
+ void open( const char* name, int compression_level, int open_mode);
+ void close();
+ gzstreambuf* rdbuf() { return &buf; }
+};
+
+// ----------------------------------------------------------------------------
+// User classes. Use igzstream and ogzstream analogously to ifstream and
+// ofstream respectively. They read and write files based on the gz*
+// function interface of the zlib. Files are compatible with gzip compression.
+// ----------------------------------------------------------------------------
+
+class igzstream : public gzstreambase, public std::istream {
+public:
+ igzstream() : std::istream( &buf) {}
+ igzstream( const char* name, int compression_level, int open_mode = std::ios::in)
+ : gzstreambase(name, compression_level, open_mode), std::istream( &buf) {}
+ gzstreambuf* rdbuf() { return gzstreambase::rdbuf(); }
+ void open( const char* name, int compression_level, int open_mode = std::ios::in) {
+ gzstreambase::open( name, compression_level, open_mode);
+ }
+};
+
+class ogzstream : public gzstreambase, public std::ostream {
+public:
+ ogzstream() : std::ostream( &buf) {}
+ ogzstream( const char* name, int compression_level, int mode = std::ios::out)
+ : gzstreambase(name, compression_level, mode), std::ostream( &buf) {}
+ gzstreambuf* rdbuf() { return gzstreambase::rdbuf(); }
+ void open( const char* name, int compression_level, int open_mode = std::ios::out) {
+ gzstreambase::open(name, compression_level, open_mode);
+ }
+};
+
+#ifdef GZSTREAM_NAMESPACE
+} // namespace GZSTREAM_NAMESPACE
+#endif
+
+#endif // GZSTREAM_H
+// ============================================================================
+// EOF //
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/iapi.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/iapi.h
new file mode 100644
index 00000000000..8e29d938d03
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/iapi.h
@@ -0,0 +1,300 @@
+/* Copyright (C) 2001-2006 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied, modified
+ or distributed except as expressly authorized under the terms of that
+ license. Refer to licensing information at http://www.artifex.com/
+ or contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134,
+ San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information.
+*/
+
+/* $Id: iapi.h 9043 2008-08-28 22:48:19Z giles $ */
+
+/*
+ * Public API for Ghostscript interpreter
+ * for use both as DLL and for static linking.
+ *
+ * Should work for Windows, OS/2, Linux, Mac.
+ *
+ * DLL exported functions should be as similar as possible to imain.c
+ * You will need to include "ierrors.h".
+ *
+ * Current problems:
+ * 1. Ghostscript does not support multiple instances.
+ * 2. Global variables in gs_main_instance_default()
+ * and gsapi_instance_counter
+ */
+
+/* Exported functions may need different prefix
+ * GSDLLEXPORT marks functions as exported
+ * GSDLLAPI is the calling convention used on functions exported
+ * by Ghostscript
+ * GSDLLCALL is used on callback functions called by Ghostscript
+ * When you include this header file in the caller, you may
+ * need to change the definitions by defining these
+ * before including this header file.
+ * Make sure you get the calling convention correct, otherwise your
+ * program will crash either during callbacks or soon after returning
+ * due to stack corruption.
+ */
+
+#ifndef iapi_INCLUDED
+# define iapi_INCLUDED
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if defined(_WINDOWS_) || defined(__WINDOWS__)
+# ifndef _Windows
+# define _Windows
+# endif
+#endif
+
+#ifdef _Windows
+# ifndef GSDLLEXPORT
+# define GSDLLEXPORT __declspec(dllexport)
+# endif
+# ifndef GSDLLAPI
+# define GSDLLAPI __stdcall
+# endif
+# ifndef GSDLLCALL
+# define GSDLLCALL __stdcall
+# endif
+#endif /* _Windows */
+
+#if defined(OS2) && defined(__IBMC__)
+# ifndef GSDLLAPI
+# define GSDLLAPI _System
+# endif
+# ifndef GSDLLCALL
+# define GSDLLCALL _System
+# endif
+#endif /* OS2 && __IBMC */
+
+#ifdef __MACOS__
+# pragma export on
+#endif
+
+#ifndef GSDLLEXPORT
+# define GSDLLEXPORT
+#endif
+#ifndef GSDLLAPI
+# define GSDLLAPI
+#endif
+#ifndef GSDLLCALL
+# define GSDLLCALL
+#endif
+
+#if defined(__IBMC__)
+# define GSDLLAPIPTR * GSDLLAPI
+# define GSDLLCALLPTR * GSDLLCALL
+#else
+# define GSDLLAPIPTR GSDLLAPI *
+# define GSDLLCALLPTR GSDLLCALL *
+#endif
+
+#ifndef display_callback_DEFINED
+# define display_callback_DEFINED
+typedef struct display_callback_s display_callback;
+#endif
+
+typedef struct gsapi_revision_s {
+ const char *product;
+ const char *copyright;
+ long revision;
+ long revisiondate;
+} gsapi_revision_t;
+
+
+/* Get version numbers and strings.
+ * This is safe to call at any time.
+ * You should call this first to make sure that the correct version
+ * of the Ghostscript is being used.
+ * pr is a pointer to a revision structure.
+ * len is the size of this structure in bytes.
+ * Returns 0 if OK, or if len too small (additional parameters
+ * have been added to the structure) it will return the required
+ * size of the structure.
+ */
+GSDLLEXPORT int GSDLLAPI
+gsapi_revision(gsapi_revision_t *pr, int len);
+
+/*
+ * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
+ * Ghostscript supports only one instance.
+ * The current implementation uses a global static instance
+ * counter to make sure that only a single instance is used.
+ * If you try to create two instances, the second attempt
+ * will return < 0 and set pinstance to NULL.
+ * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
+ */
+/* Create a new instance of Ghostscript.
+ * This instance is passed to most other API functions.
+ * The caller_handle will be provided to callback functions.
+ */
+
+GSDLLEXPORT int GSDLLAPI
+gsapi_new_instance(void **pinstance, void *caller_handle);
+
+/*
+ * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
+ * Ghostscript supports only one instance.
+ * The current implementation uses a global static instance
+ * counter to make sure that only a single instance is used.
+ * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
+ */
+/* Destroy an instance of Ghostscript
+ * Before you call this, Ghostscript must have finished.
+ * If Ghostscript has been initialised, you must call gsapi_exit()
+ * before gsapi_delete_instance.
+ */
+GSDLLEXPORT void GSDLLAPI
+gsapi_delete_instance(void *instance);
+
+/* Set the callback functions for stdio
+ * The stdin callback function should return the number of
+ * characters read, 0 for EOF, or -1 for error.
+ * The stdout and stderr callback functions should return
+ * the number of characters written.
+ * If a callback address is NULL, the real stdio will be used.
+ */
+GSDLLEXPORT int GSDLLAPI
+gsapi_set_stdio(void *instance,
+ int (GSDLLCALLPTR stdin_fn)(void *caller_handle, char *buf, int len),
+ int (GSDLLCALLPTR stdout_fn)(void *caller_handle, const char *str, int len),
+ int (GSDLLCALLPTR stderr_fn)(void *caller_handle, const char *str, int len));
+
+/* Set the callback function for polling.
+ * This is used for handling window events or cooperative
+ * multitasking. This function will only be called if
+ * Ghostscript was compiled with CHECK_INTERRUPTS
+ * as described in gpcheck.h.
+ * The polling function should return 0 if all is well,
+ * and negative if it wants ghostscript to abort.
+ * The polling function must be fast.
+ */
+GSDLLEXPORT int GSDLLAPI gsapi_set_poll(void *instance,
+ int (GSDLLCALLPTR poll_fn)(void *caller_handle));
+
+/* Set the display device callback structure.
+ * If the display device is used, this must be called
+ * after gsapi_new_instance() and before gsapi_init_with_args().
+ * See gdevdisp.h for more details.
+ */
+GSDLLEXPORT int GSDLLAPI gsapi_set_display_callback(
+ void *instance, display_callback *callback);
+
+
+/* Initialise the interpreter.
+ * This calls gs_main_init_with_args() in imainarg.c
+ * 1. If quit or EOF occur during gsapi_init_with_args(),
+ * the return value will be e_Quit. This is not an error.
+ * You must call gsapi_exit() and must not call any other
+ * gsapi_XXX functions.
+ * 2. If usage info should be displayed, the return value will be e_Info
+ * which is not an error. Do not call gsapi_exit().
+ * 3. Under normal conditions this returns 0. You would then
+ * call one or more gsapi_run_*() functions and then finish
+ * with gsapi_exit().
+ */
+GSDLLEXPORT int GSDLLAPI gsapi_init_with_args(void *instance,
+ int argc, char **argv);
+
+/*
+ * The gsapi_run_* functions are like gs_main_run_* except
+ * that the error_object is omitted.
+ * If these functions return <= -100, either quit or a fatal
+ * error has occured. You then call gsapi_exit() next.
+ * The only exception is gsapi_run_string_continue()
+ * which will return e_NeedInput if all is well.
+ */
+
+GSDLLEXPORT int GSDLLAPI
+gsapi_run_string_begin(void *instance,
+ int user_errors, int *pexit_code);
+
+GSDLLEXPORT int GSDLLAPI
+gsapi_run_string_continue(void *instance,
+ const char *str, unsigned int length, int user_errors, int *pexit_code);
+
+GSDLLEXPORT int GSDLLAPI
+gsapi_run_string_end(void *instance,
+ int user_errors, int *pexit_code);
+
+GSDLLEXPORT int GSDLLAPI
+gsapi_run_string_with_length(void *instance,
+ const char *str, unsigned int length, int user_errors, int *pexit_code);
+
+GSDLLEXPORT int GSDLLAPI
+gsapi_run_string(void *instance,
+ const char *str, int user_errors, int *pexit_code);
+
+GSDLLEXPORT int GSDLLAPI
+gsapi_run_file(void *instance,
+ const char *file_name, int user_errors, int *pexit_code);
+
+
+/* Exit the interpreter.
+ * This must be called on shutdown if gsapi_init_with_args()
+ * has been called, and just before gsapi_delete_instance().
+ */
+GSDLLEXPORT int GSDLLAPI
+gsapi_exit(void *instance);
+
+/* Visual Tracer */
+/* This function is only for debug purpose clients */
+struct vd_trace_interface_s;
+GSDLLEXPORT void GSDLLAPI
+gsapi_set_visual_tracer(struct vd_trace_interface_s *I);
+
+
+/* function prototypes */
+typedef int (GSDLLAPIPTR PFN_gsapi_revision)(
+ gsapi_revision_t *pr, int len);
+typedef int (GSDLLAPIPTR PFN_gsapi_new_instance)(
+ void **pinstance, void *caller_handle);
+typedef void (GSDLLAPIPTR PFN_gsapi_delete_instance)(
+ void *instance);
+typedef int (GSDLLAPIPTR PFN_gsapi_set_stdio)(void *instance,
+ int (GSDLLCALLPTR stdin_fn)(void *caller_handle, char *buf, int len),
+ int (GSDLLCALLPTR stdout_fn)(void *caller_handle, const char *str, int len),
+ int (GSDLLCALLPTR stderr_fn)(void *caller_handle, const char *str, int len));
+typedef int (GSDLLAPIPTR PFN_gsapi_set_poll)(void *instance,
+ int(GSDLLCALLPTR poll_fn)(void *caller_handle));
+typedef int (GSDLLAPIPTR PFN_gsapi_set_display_callback)(
+ void *instance, display_callback *callback);
+typedef int (GSDLLAPIPTR PFN_gsapi_init_with_args)(
+ void *instance, int argc, char **argv);
+typedef int (GSDLLAPIPTR PFN_gsapi_run_string_begin)(
+ void *instance, int user_errors, int *pexit_code);
+typedef int (GSDLLAPIPTR PFN_gsapi_run_string_continue)(
+ void *instance, const char *str, unsigned int length,
+ int user_errors, int *pexit_code);
+typedef int (GSDLLAPIPTR PFN_gsapi_run_string_end)(
+ void *instance, int user_errors, int *pexit_code);
+typedef int (GSDLLAPIPTR PFN_gsapi_run_string_with_length)(
+ void *instance, const char *str, unsigned int length,
+ int user_errors, int *pexit_code);
+typedef int (GSDLLAPIPTR PFN_gsapi_run_string)(
+ void *instance, const char *str,
+ int user_errors, int *pexit_code);
+typedef int (GSDLLAPIPTR PFN_gsapi_run_file)(void *instance,
+ const char *file_name, int user_errors, int *pexit_code);
+typedef int (GSDLLAPIPTR PFN_gsapi_exit)(void *instance);
+typedef void (GSDLLAPIPTR PFN_gsapi_set_visual_tracer)
+ (struct vd_trace_interface_s *I);
+
+
+#ifdef __MACOS__
+#pragma export off
+#endif
+
+#ifdef __cplusplus
+} /* extern 'C' protection */
+#endif
+
+#endif /* iapi_INCLUDED */
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/ierrors.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/ierrors.h
new file mode 100644
index 00000000000..3184341177e
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/ierrors.h
@@ -0,0 +1,153 @@
+/* Copyright (C) 2001-2006 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied, modified
+ or distributed except as expressly authorized under the terms of that
+ license. Refer to licensing information at http://www.artifex.com/
+ or contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134,
+ San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information.
+*/
+
+/* $Id: ierrors.h 8022 2007-06-05 22:23:38Z giles $ */
+/* Definition of error codes */
+
+#ifndef ierrors_INCLUDED
+# define ierrors_INCLUDED
+
+/*
+ * DO NOT USE THIS FILE IN THE GRAPHICS LIBRARY.
+ * THIS FILE IS PART OF THE POSTSCRIPT INTERPRETER.
+ * USE gserrors.h IN THE LIBRARY.
+ */
+
+/*
+ * A procedure that may return an error always returns
+ * a non-negative value (zero, unless otherwise noted) for success,
+ * or negative for failure.
+ * We use ints rather than an enum to avoid a lot of casting.
+ */
+
+/* Define the error name table */
+extern const char *const gs_error_names[];
+
+ /* ------ PostScript Level 1 errors ------ */
+
+#define e_unknownerror (-1) /* unknown error */
+#define e_dictfull (-2)
+#define e_dictstackoverflow (-3)
+#define e_dictstackunderflow (-4)
+#define e_execstackoverflow (-5)
+#define e_interrupt (-6)
+#define e_invalidaccess (-7)
+#define e_invalidexit (-8)
+#define e_invalidfileaccess (-9)
+#define e_invalidfont (-10)
+#define e_invalidrestore (-11)
+#define e_ioerror (-12)
+#define e_limitcheck (-13)
+#define e_nocurrentpoint (-14)
+#define e_rangecheck (-15)
+#define e_stackoverflow (-16)
+#define e_stackunderflow (-17)
+#define e_syntaxerror (-18)
+#define e_timeout (-19)
+#define e_typecheck (-20)
+#define e_undefined (-21)
+#define e_undefinedfilename (-22)
+#define e_undefinedresult (-23)
+#define e_unmatchedmark (-24)
+#define e_VMerror (-25) /* must be the last Level 1 error */
+
+#define LEVEL1_ERROR_NAMES\
+ "unknownerror", "dictfull", "dictstackoverflow", "dictstackunderflow",\
+ "execstackoverflow", "interrupt", "invalidaccess", "invalidexit",\
+ "invalidfileaccess", "invalidfont", "invalidrestore", "ioerror",\
+ "limitcheck", "nocurrentpoint", "rangecheck", "stackoverflow",\
+ "stackunderflow", "syntaxerror", "timeout", "typecheck", "undefined",\
+ "undefinedfilename", "undefinedresult", "unmatchedmark", "VMerror"
+
+ /* ------ Additional Level 2 errors (also in DPS) ------ */
+
+#define e_configurationerror (-26)
+#define e_undefinedresource (-27)
+#define e_unregistered (-28)
+
+#define LEVEL2_ERROR_NAMES\
+ "configurationerror", "undefinedresource", "unregistered"
+
+ /* ------ Additional DPS errors ------ */
+
+#define e_invalidcontext (-29)
+/* invalidid is for the NeXT DPS extension. */
+#define e_invalidid (-30)
+
+#define DPS_ERROR_NAMES\
+ "invalidcontext", "invalidid"
+
+#define ERROR_NAMES\
+ LEVEL1_ERROR_NAMES, LEVEL2_ERROR_NAMES, DPS_ERROR_NAMES
+
+ /* ------ Pseudo-errors used internally ------ */
+
+/*
+ * Internal code for a fatal error.
+ * gs_interpret also returns this for a .quit with a positive exit code.
+ */
+#define e_Fatal (-100)
+
+/*
+ * Internal code for the .quit operator.
+ * The real quit code is an integer on the operand stack.
+ * gs_interpret returns this only for a .quit with a zero exit code.
+ */
+#define e_Quit (-101)
+
+/*
+ * Internal code for a normal exit from the interpreter.
+ * Do not use outside of interp.c.
+ */
+#define e_InterpreterExit (-102)
+
+/*
+ * Internal code that indicates that a procedure has been stored in the
+ * remap_proc of the graphics state, and should be called before retrying
+ * the current token. This is used for color remapping involving a call
+ * back into the interpreter -- inelegant, but effective.
+ */
+#define e_RemapColor (-103)
+
+/*
+ * Internal code to indicate we have underflowed the top block
+ * of the e-stack.
+ */
+#define e_ExecStackUnderflow (-104)
+
+/*
+ * Internal code for the vmreclaim operator with a positive operand.
+ * We need to handle this as an error because otherwise the interpreter
+ * won't reload enough of its state when the operator returns.
+ */
+#define e_VMreclaim (-105)
+
+/*
+ * Internal code for requesting more input from run_string.
+ */
+#define e_NeedInput (-106)
+
+/*
+ * Internal code for a normal exit when usage info is displayed.
+ * This allows Window versions of Ghostscript to pause until
+ * the message can be read.
+ */
+#define e_Info (-110)
+
+/*
+ * Define which error codes require re-executing the current object.
+ */
+#define ERROR_IS_INTERRUPT(ecode)\
+ ((ecode) == e_interrupt || (ecode) == e_timeout)
+
+#endif /* ierrors_INCLUDED */
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/macros.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/macros.h
new file mode 100644
index 00000000000..8935b9babe9
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/macros.h
@@ -0,0 +1,42 @@
+/*************************************************************************
+** macros.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef MACROS_H
+#define MACROS_H
+
+#define FORALL(container, itertype, itervar) \
+ for (itertype itervar=(container).begin(); itervar != (container).end(); ++itervar)
+
+#define IMPLEMENT_ARITHMETIC_OPERATOR(class, op) \
+ inline class operator op (class a, const class &b) { \
+ return a op##= b; \
+ }
+
+#define IMPLEMENT_ARITHMETIC_OPERATOR2(class, scalar, op) \
+ inline class operator op (class a, scalar b) { \
+ return a op##= b; \
+ }
+
+#define IMPLEMENT_OUTPUT_OPERATOR(class) \
+ inline std::ostream& operator << (std::ostream &os, class obj) { \
+ return obj.write(os); \
+ }
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/options.xml b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/options.xml
new file mode 100644
index 00000000000..6f4e2875cd2
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/options.xml
@@ -0,0 +1,147 @@
+<?xml version="1.0"?>
+<!-- *********************************************************************
+** options.xml **
+** **
+** This file is part of dvisvgm - the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+***********************************************************************-->
+<!DOCTYPE cmdline SYSTEM "options.dtd">
+
+<cmdline class="CommandLine">
+ <program>
+ <name>dvisvgm</name>
+ <usage>[options] dvifile</usage>
+ <usage>-E [options] epsfile</usage>
+ <description>This program converts DVI files, as created by TeX/LaTeX, to\nthe XML-based scalable vector graphics format SVG.</description>
+ </program>
+ <options>
+ <section title="Input options">
+ <option long="page" short="p">
+ <arg type="string" name="ranges" default="1"/>
+ <description>choose pages to convert</description>
+ </option>
+ <option long="fontmap" short="m">
+ <arg type="string" name="filenames"/>
+ <description>evaluate (additional) font map files</description>
+ </option>
+ <option long="eps" short="E" if="!defined(DISABLE_GS)">
+ <description>convert an EPS file to SVG</description>
+ </option>
+ </section>
+ <section title="SVG output options">
+ <option long="bbox" short="b">
+ <arg type="string" name="size" default="min"/>
+ <description>set size of bounding box</description>
+ </option>
+ <option long="output" short="o">
+ <arg type="string" name="pattern"/>
+ <description>set name pattern of output files</description>
+ </option>
+ <option long="precision" short="d">
+ <arg type="int" name="number" default="0"/>
+ <description>set number of decimal points (0-6)</description>
+ </option>
+ <option long="stdout" short="s">
+ <description>write SVG output to stdout</description>
+ </option>
+ <option long="no-fonts" short="n">
+ <arg type="int" name="variant" default="0" optional="yes"/>
+ <description>draw glyphs by using path elements</description>
+ </option>
+ <option long="no-styles">
+ <description>don't use styles to reference fonts</description>
+ </option>
+ <option long="zip" short="z">
+ <arg type="int" name="level" default="9" optional="yes"/>
+ <description>create compressed .svgz file</description>
+ </option>
+ </section>
+ <section title="SVG transformations">
+ <option long="rotate" short="r">
+ <arg type="double" name="angle"/>
+ <description>rotate page content clockwise</description>
+ </option>
+ <option long="scale" short="c">
+ <arg type="string" name="sx[,sy]"/>
+ <description>scale page content</description>
+ </option>
+ <option long="translate" short="t">
+ <arg type="string" name="tx[,ty]"/>
+ <description>shift page content</description>
+ </option>
+ <option long="transform" short="T">
+ <arg type="string" name="commands"/>
+ <description>transform page content</description>
+ </option>
+ </section>
+ <section title="Processing options">
+ <option long="cache" short="C">
+ <arg type="string" name="dir" optional="yes"/>
+ <description>set/print path of cache directory</description>
+ </option>
+ <option long="exact" short="e">
+ <description>compute exact glyph boxes</description>
+ </option>
+ <option long="keep">
+ <description>keep temporary files</description>
+ </option>
+ <option long="libgs" if="!defined(HAVE_LIBGS) &amp;&amp; !defined(DISABLE_GS)">
+ <arg name="filename" type="string"/>
+ <description>set name of Ghostscript shared library</description>
+ </option>
+ <option long="mag" short="M">
+ <arg type="double" name="factor" default="4"/>
+ <description>magnification of Metafont output</description>
+ </option>
+ <option long="no-mktexmf">
+ <description>don't try to create missing fonts</description>
+ </option>
+ <option long="no-specials" short="S">
+ <arg type="string" name="prefixes" optional="yes"/>
+ <description>don't process [selected] specials</description>
+ </option>
+ <option long="trace-all" short="a">
+ <arg name="retrace" type="bool" optional="yes" default="no"/>
+ <description>trace all glyphs of bitmap fonts</description>
+ </option>
+ </section>
+ <section title="Message options">
+ <option long="color">
+ <description>colorize messages</description>
+ </option>
+ <option long="help" short="h">
+ <arg name="mode" type="int" optional="yes" default="0"/>
+ <description>print this summary of options and exit</description>
+ </option>
+ <option long="list-specials" short="l">
+ <description>print supported special sets and exit</description>
+ </option>
+ <option long="progress" short="P">
+ <arg name="delay" type="double" optional="yes" default="0.5"/>
+ <description>enable progess indicator</description>
+ </option>
+ <option long="verbosity" short="v">
+ <arg type="unsigned" name="level" default="7"/>
+ <description>set verbosity level (0-7)</description>
+ </option>
+ <option long="version" short="V">
+ <arg type="bool" name="extended" optional="yes" default="no"/>
+ <description>print version and exit</description>
+ </option>
+ </section>
+ </options>
+</cmdline>
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/psdefs.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/psdefs.cpp
new file mode 100644
index 00000000000..259105a3529
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/psdefs.cpp
@@ -0,0 +1,84 @@
+/*************************************************************************
+** psdefs.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include "PSInterpreter.h"
+
+const char *PSInterpreter::PSDEFS =
+"3 dict dup begin/Install{matrix setmatrix}def/HWResolution[72 72]def/PageSize[10"
+"000 10000]def end setpagedevice/@dodraw true store/@patcnt 0 store/@SD systemdic"
+"t def/@UD userdict def true setglobal @SD/:save @SD/save get put @SD/:restore @S"
+"D/restore get put @SD/:gsave @SD/gsave get put @SD/:grestore @SD/grestore get pu"
+"t @SD/:grestoreall @SD/grestoreall get put @SD/:stroke @SD/stroke get put @SD/:f"
+"ill @SD/fill get put @SD/:eofill @SD/eofill get put @SD/:clip @SD/clip get put @"
+"SD/:eoclip @SD/eoclip get put @SD/:charpath @SD/charpath get put @SD/:show @SD/s"
+"how get put @SD/.setopacityalpha known not{@SD/.setopacityalpha{pop}put}if @SD/p"
+"rval{dup type/stringtype eq{print}{30 string cvs print}ifelse}put @SD/prseq{-1 1"
+"{-1 roll prval( )print}for(\\n)print}put @SD/prcmd{( )exch(\\ndvi.)3{print}repea"
+"t prseq}put @SD/cvxall{{cvx}forall}put @SD/defpr{[exch[/copy @SD]cvxall 5 -1 rol"
+"l dup 6 1 roll[/get/exec]cvxall 6 -1 roll dup 7 1 roll 4 -1 roll dup 5 1 roll du"
+"p length string cvs/prcmd cvx]cvx def}put @SD/querypos{{currentpoint}stopped{$er"
+"ror/newerror false put}{2(querypos)prcmd}ifelse}put @SD/applyscalevals{1 0 trans"
+"form 0 0 transform 3 -1 roll sub dup mul 3 1 roll sub dup mul add sqrt 0 1 trans"
+"form 0 0 transform 3 -1 roll sub dup mul 3 1 roll sub dup mul add sqrt 1 0 trans"
+"form dup mul exch dup dup mul 3 -1 roll add sqrt div 3(applyscalevals)prcmd}def "
+"@SD/prpath{{2(moveto)prcmd}{2(lineto)prcmd}{6(curveto)prcmd}{0(closepath)prcmd}p"
+"athforall}put @SD/charpath{/@dodraw false store :charpath/@dodraw true store}put"
+" @SD/show{@dodraw{dup :gsave true charpath eofill :grestore :show}if}put @SD/str"
+"oke{@dodraw{0(newpath)prcmd prpath 0(stroke)prcmd newpath}{:stroke}ifelse}put @S"
+"D/fill{@dodraw{0(newpath)prcmd prpath 0(fill)prcmd newpath}{:fill}ifelse}put @SD"
+"/eofill{@dodraw{0(newpath)prcmd prpath 0(eofill)prcmd newpath}{:eofill}ifelse}pu"
+"t @SD/clip{:clip 0(newpath)prcmd prpath 0(clip)prcmd}put @SD/eoclip{:eoclip 0(ne"
+"wpath)prcmd prpath 0(eoclip)prcmd}put @SD/bop{pop pop}put/@rect{4 -2 roll moveto"
+" exch dup 0 rlineto exch 0 exch rlineto neg 0 rlineto closepath}bind def/@rectcc"
+"{4 -2 roll moveto 2 copy 0 lt exch 0 lt xor{dup 0 exch rlineto exch 0 rlineto ne"
+"g 0 exch rlineto}{exch dup 0 rlineto exch 0 exch rlineto neg 0 rlineto}ifelse cl"
+"osepath}bind def @SD/rectclip{newpath dup type/arraytype eq{aload length 4 idiv{"
+"@rectcc}repeat}{@rectcc}ifelse clip newpath}put @SD/rectfill{gsave newpath dup t"
+"ype/arraytype eq{aload length 4 idiv{@rectcc}repeat}{@rectcc}ifelse fill grestor"
+"e}put @SD/rectstroke{gsave newpath dup type/arraytype eq{aload length 4 idiv{@re"
+"ct}repeat}{@rect}ifelse stroke grestore}put false setglobal @SD readonly pop/ini"
+"tclip 0 defpr/sysexec{@SD exch get exec}def/adddot{dup length 1 add string dup 0"
+" 46 put dup 3 -1 roll 1 exch putinterval}def/setlinewidth{dup/setlinewidth sysex"
+"ec applyscalevals 1(setlinewidth)prcmd}def/setlinecap 1 defpr/setlinejoin 1 defp"
+"r/setmiterlimit 1 defpr/setdash{mark 3 1 roll 2 copy/setdash sysexec applyscalev"
+"als exch aload length 1 add -1 roll counttomark(setdash)prcmd pop}def/setgstate{"
+"currentlinewidth 1(setlinewidth)prcmd currentlinecap 1(setlinecap)prcmd currentl"
+"inejoin 1(setlinejoin)prcmd currentmiterlimit 1(setmiterlimit)prcmd currentrgbco"
+"lor 3(setrgbcolor)prcmd 6 array currentmatrix aload pop 6(setmatrix)prcmd curren"
+"tdash mark 3 1 roll exch aload length 1 add -1 roll counttomark(setdash)prcmd po"
+"p}def/save{@UD begin/@saveID vmstatus pop pop def end :save @saveID 1(save)prcmd"
+"}def/restore{:restore setgstate @UD/@saveID known{@UD begin @saveID end}{0}ifels"
+"e 1(restore)prcmd}def/gsave 0 defpr/grestore{:grestore setgstate 0(grestore)prcm"
+"d}def/grestoreall{:grestoreall setstate 0(grestoreall)prcmd}def/rotate{dup type/"
+"arraytype ne{dup 1(rotate)prcmd}if/rotate sysexec}def/scale{dup type/arraytype n"
+"e{2 copy 2(scale)prcmd}if/scale sysexec}def/translate{dup type/arraytype ne{2 co"
+"py 2(translate)prcmd}if/translate sysexec}def/setmatrix{dup/setmatrix sysexec al"
+"oad pop 6(setmatrix)prcmd}def/initmatrix{matrix setmatrix}def/concat{matrix curr"
+"entmatrix matrix concatmatrix setmatrix}def/makepattern{gsave <</mx 3 -1 roll >>"
+" begin dup/XUID[1000000 @patcnt]put mx/makepattern sysexec dup dup begin Pattern"
+"Type @patcnt BBox aload pop XStep YStep PaintType mx aload pop 15(makepattern)pr"
+"cmd newpath matrix setmatrix PaintProc 0 1(makepattern)prcmd end/@patcnt @patcnt"
+" 1 add store end grestore}def/setpattern{begin PatternType 1 eq{PaintType 1 eq{X"
+"UID aload pop exch pop 1}{:gsave[currentcolorspace aload length -1 roll pop]setc"
+"olorspace/setcolor sysexec XUID aload pop exch pop currentrgbcolor :grestore 4}i"
+"felse(setpattern)prcmd}{/setpattern sysexec}ifelse end}def/setcolor{dup type/dic"
+"ttype eq{setpattern}{/setcolor sysexec}ifelse}def/setgray 1 defpr/setcmykcolor 4"
+" defpr/sethsbcolor 3 defpr/setrgbcolor 3 defpr/.setopacityalpha{dup/.setopacitya"
+"lpha sysexec 1(setopacityalpha)prcmd}def ";
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/types.h b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/types.h
new file mode 100644
index 00000000000..c22d0e1bf47
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/src/types.h
@@ -0,0 +1,84 @@
+/*************************************************************************
+** types.h **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#ifndef TYPES_H
+#define TYPES_H
+
+namespace internal {
+ template<unsigned BYTES>
+ class ERROR_inttype_not_available
+ {
+ ERROR_inttype_not_available();
+ };
+
+ template<bool FIRST, typename A, typename B>
+ struct select
+ {
+ typedef A T;
+ };
+
+ template<typename A, typename B>
+ struct select<false, A, B>
+ {
+ typedef B T;
+ };
+}
+
+
+// Retrieves a signed integer type with sizeof(T) == BYTES
+template<unsigned BYTES, bool SIGNED>
+struct int_t
+{
+ typedef typename internal::select<sizeof(signed char) == BYTES, signed char,
+ typename internal::select<sizeof(signed short) == BYTES, signed short,
+ typename internal::select<sizeof(signed int) == BYTES, signed int,
+ typename internal::select<sizeof(signed long) == BYTES, signed long,
+ typename internal::select<sizeof(signed long long) == BYTES, signed long long,
+ internal::ERROR_inttype_not_available<BYTES> >::T>::T>::T>::T>::T T;
+};
+
+
+// Retrieves an unsigned integer type with sizeof(T) == BYTES
+template<unsigned BYTES>
+struct int_t<BYTES, false>
+{
+ typedef typename internal::select<sizeof(unsigned char) == BYTES, unsigned char,
+ typename internal::select<sizeof(unsigned short) == BYTES, unsigned short,
+ typename internal::select<sizeof(unsigned int) == BYTES, unsigned int,
+ typename internal::select<sizeof(unsigned long) == BYTES, unsigned long,
+ typename internal::select<sizeof(unsigned long long) == BYTES, unsigned long long,
+ internal::ERROR_inttype_not_available<BYTES> >::T>::T>::T>::T>::T T;
+};
+
+
+// Machine independent definition of sized integer types
+typedef int_t<1, true>::T Int8;
+typedef int_t<2, true>::T Int16;
+typedef int_t<4, true>::T Int32;
+typedef int_t<8, true>::T Int64;
+typedef int_t<1, false>::T UInt8;
+typedef int_t<2, false>::T UInt16;
+typedef int_t<4, false>::T UInt32;
+typedef int_t<8, false>::T UInt64;
+
+typedef Int32 FixWord;
+typedef UInt32 ScaledInt;
+
+#endif
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/BoundingBoxTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/BoundingBoxTest.cpp
new file mode 100644
index 00000000000..53bf63c3bf4
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/BoundingBoxTest.cpp
@@ -0,0 +1,53 @@
+/*************************************************************************
+** BoundingBoxTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include "BoundingBox.h"
+
+TEST(BoundingBoxTest, set) {
+ BoundingBox bbox;
+ bbox.set("1pt 2pt 3pt 4pt");
+ EXPECT_EQ(bbox.minX(), 1);
+ EXPECT_EQ(bbox.minY(), 2);
+ EXPECT_EQ(bbox.maxX(), 3);
+ EXPECT_EQ(bbox.maxY(), 4);
+
+ bbox.set("4pt 3pt 2pt 1pt");
+ EXPECT_EQ(bbox.minX(), 2);
+ EXPECT_EQ(bbox.minY(), 1);
+ EXPECT_EQ(bbox.maxX(), 4);
+ EXPECT_EQ(bbox.maxY(), 3);
+
+ bbox.set("1pt");
+ EXPECT_EQ(bbox.minX(), 1);
+ EXPECT_EQ(bbox.minY(), 0);
+ EXPECT_EQ(bbox.maxX(), 5);
+ EXPECT_EQ(bbox.maxY(), 4);
+
+ bbox.set("2pt 3pt");
+ EXPECT_EQ(bbox.minX(), -1);
+ EXPECT_EQ(bbox.minY(), -3);
+ EXPECT_EQ(bbox.maxX(), 7);
+ EXPECT_EQ(bbox.maxY(), 7);
+
+ EXPECT_THROW(bbox.set(""), BoundingBoxException);
+ EXPECT_THROW(bbox.set("1pt 2pt 3pt"), BoundingBoxException);
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/CRC32Test.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/CRC32Test.cpp
new file mode 100644
index 00000000000..40bc3415363
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/CRC32Test.cpp
@@ -0,0 +1,71 @@
+/*************************************************************************
+** CRC32Test.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <string>
+#include "CRC32.h"
+
+using namespace std;
+
+TEST(CRC32Test, init) {
+ CRC32 crc;
+ EXPECT_EQ(crc.get(), 0);
+ crc.reset();
+ EXPECT_EQ(crc.get(), 0);
+}
+
+
+TEST(CRC32Test, update_numbers) {
+ CRC32 crc;
+ const UInt32 comp[]={0xf8923be6, 0x4dcd2866, 0x4fdbb57a, 0xcb40f3bf, 0xf1a33887, 0x3422c816, 0x3a8b92a4, 0xedafc4ce, 0x4f5d17ec, 0x4a9f2f68};
+ for (int i=-5; i < 5; ++i) {
+ crc.update(i);
+ EXPECT_EQ(crc.get(), comp[i+5]);
+ }
+ crc.reset();
+ EXPECT_EQ(crc.get(), 0);
+ // add 32 bit values
+ for (int i=0; i < 256; ++i)
+ crc.update(i);
+ EXPECT_EQ(crc.get(), 0xd4c2968b);
+ for (int i=256; i < 10000; ++i)
+ crc.update(i);
+ EXPECT_EQ(crc.get(), 0x6de9e841);
+}
+
+
+TEST(CRC32Test, update_array) {
+ CRC32 crc;
+ UInt8 vals[256];
+ // add 8 bit values
+ for (int i=0; i < 256; ++i)
+ vals[i] = i;
+ crc.update(vals, 256);
+ EXPECT_EQ(crc.get(), 0x29058c73);
+}
+
+
+TEST(CRC32Test, update_string) {
+ CRC32 crc;
+ crc.update("dvisvgm converts DVI files to SVG.");
+ EXPECT_EQ(crc.get(), 0x7c4ef359);
+ crc.update("It is published under the GNU General Public License.");
+ EXPECT_EQ(crc.get(), 0xa732081b);
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/CalculatorTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/CalculatorTest.cpp
new file mode 100644
index 00000000000..a4bb24c6215
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/CalculatorTest.cpp
@@ -0,0 +1,60 @@
+/*************************************************************************
+** CalculatorTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include "Calculator.h"
+
+TEST(CalculatorTest, eval) {
+ Calculator calc;
+ EXPECT_EQ(calc.eval("2+3+4"), 9);
+ EXPECT_EQ(calc.eval("2*3+4"), 10);
+ EXPECT_EQ(calc.eval("2+3*4"), 14);
+ EXPECT_EQ(calc.eval("(2+3)*4"), 20);
+ EXPECT_EQ(calc.eval("2*(3+4)"), 14);
+ EXPECT_EQ(calc.eval("-2+3+4"), 5);
+ EXPECT_EQ(calc.eval("3/2"), 1.5);
+ EXPECT_EQ(calc.eval("3%2"), 1);
+}
+
+
+TEST(CalculatorTest, variables) {
+ Calculator calc;
+ calc.setVariable("a", 1);
+ EXPECT_EQ(calc.getVariable("a"), 1);
+
+ calc.setVariable("a", 2);
+ EXPECT_EQ(calc.getVariable("a"), 2);
+
+ calc.setVariable("b", 3);
+ EXPECT_EQ(calc.eval("a+b"), 5);
+ EXPECT_EQ(calc.eval("2a+2b"), 10);
+}
+
+
+TEST(CalculatorTest, exceptions) {
+ Calculator calc;
+ ASSERT_THROW(calc.eval("2++3"), CalculatorException);
+ ASSERT_THROW(calc.eval("c"), CalculatorException);
+ ASSERT_THROW(calc.eval("1/0"), CalculatorException);
+ ASSERT_THROW(calc.eval("1%0"), CalculatorException);
+ ASSERT_THROW(calc.eval("2*(3+4"), CalculatorException);
+ ASSERT_THROW(calc.eval("2*(3+4))"), CalculatorException);
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/ColorSpecialTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/ColorSpecialTest.cpp
new file mode 100644
index 00000000000..48d4d57729b
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/ColorSpecialTest.cpp
@@ -0,0 +1,91 @@
+/*************************************************************************
+** ColorSpecialTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <sstream>
+#include "ColorSpecialHandler.h"
+#include "SpecialActions.h"
+
+class ColorSpecialTest : public ::testing::Test
+{
+ protected:
+ struct SetColor : SpecialEmptyActions
+ {
+ SetColor () : color(0) {}
+ void setColor (const Color &c) {color = c;}
+ bool equals (UInt32 c) {return color == c;}
+ UInt32 color;
+ };
+ ColorSpecialHandler handler;
+ SetColor actions;
+};
+
+
+TEST_F(ColorSpecialTest, rgb) {
+ std::istringstream iss("rgb 1 0 1");
+ handler.process(0, iss, &actions);
+ EXPECT_TRUE(actions.equals(0xff00ff));
+}
+
+
+TEST_F(ColorSpecialTest, hsb) {
+ std::istringstream iss("hsb 1 0.5 1");
+ handler.process(0, iss, &actions);
+ EXPECT_TRUE(actions.equals(0xff8080));
+}
+
+
+TEST_F(ColorSpecialTest, cmyk) {
+ std::istringstream iss("cmyk 0.1 0.2 0.4 0.6");
+ handler.process(0, iss, &actions);
+ EXPECT_TRUE(actions.equals(0x4c3300));
+}
+
+
+TEST_F(ColorSpecialTest, stack) {
+ std::istringstream iss("push rgb 1 0 0");
+ handler.process(0, iss, &actions);
+ EXPECT_TRUE(actions.equals(0xff0000));
+ iss.clear();
+ iss.str("push Blue");
+ handler.process(0, iss, &actions);
+ EXPECT_TRUE(actions.equals(0x0000ff));
+ iss.clear();
+ iss.str("pop");
+ handler.process(0, iss, &actions);
+ EXPECT_TRUE(actions.equals(0xff0000));
+}
+
+
+TEST_F(ColorSpecialTest, constant) {
+ std::istringstream iss("RedViolet");
+ handler.process(0, iss, &actions);
+ EXPECT_TRUE(actions.equals(0x9600a8));
+}
+
+
+TEST_F(ColorSpecialTest, errors) {
+ std::istringstream iss("UnknownColor");
+ EXPECT_THROW(handler.process(0, iss, &actions), SpecialException);
+ iss.clear();
+ iss.str("rgb 0 0.3 3.1");
+ EXPECT_THROW(handler.process(0, iss, &actions), SpecialException);
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/CommandLineTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/CommandLineTest.cpp
new file mode 100644
index 00000000000..7d1e5874b33
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/CommandLineTest.cpp
@@ -0,0 +1,216 @@
+/*************************************************************************
+** CommandLineTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <cstring>
+#include "CommandLine.h"
+
+TEST(CommandLineTest, noarg_short) {
+ CommandLine cmd;
+ const char *args[] = {"progname", "-s", "-n", "-h"};
+ char **argv = const_cast<char**>(args);
+ cmd.parse(4, argv, false);
+
+ EXPECT_TRUE(cmd.stdout_given());
+ EXPECT_TRUE(cmd.no_fonts_given());
+ EXPECT_TRUE(cmd.help_given());
+ EXPECT_FALSE(cmd.list_specials_given());
+ EXPECT_FALSE(cmd.error());
+ EXPECT_EQ(cmd.numFiles(), 0);
+}
+
+
+TEST(CommandLineTest, noarg_long) {
+ CommandLine cmd;
+ const char *args[] = {"progname", "--no-fonts", "--stdout", "--help"};
+ char **argv = const_cast<char**>(args);
+ cmd.parse(4, argv, false);
+
+ EXPECT_TRUE(cmd.stdout_given());
+ EXPECT_TRUE(cmd.no_fonts_given());
+ EXPECT_TRUE(cmd.help_given());
+ EXPECT_FALSE(cmd.list_specials_given());
+ EXPECT_FALSE(cmd.error());
+ EXPECT_EQ(cmd.numFiles(), 0);
+}
+
+
+TEST(CommandLineTest, arg_short) {
+ CommandLine cmd;
+ const char *args[] = {"progname", "-p5", "-r45", "-omyfile.xyz", "-ayes"};
+ char **argv = const_cast<char**>(args);
+ cmd.parse(5, argv, false);
+
+ EXPECT_TRUE(cmd.page_given());
+ EXPECT_EQ(cmd.page_arg(), "5");
+ EXPECT_TRUE(cmd.rotate_given());
+ EXPECT_EQ(cmd.rotate_arg(), 45);
+ EXPECT_TRUE(cmd.output_given());
+ EXPECT_EQ(cmd.output_arg(), "myfile.xyz");
+ EXPECT_FALSE(cmd.bbox_given());
+ EXPECT_EQ(cmd.bbox_arg(), "min");
+ EXPECT_FALSE(cmd.error());
+ EXPECT_EQ(cmd.numFiles(), 0);
+ EXPECT_TRUE(cmd.trace_all_given());
+ EXPECT_TRUE(cmd.trace_all_arg());
+}
+
+
+TEST(CommandLineTest, arg_combined) {
+ CommandLine cmd;
+ const char *args[] = {"progname", "-lse", "-p5", "-omyfile.xyz"};
+ char **argv = const_cast<char**>(args);
+ cmd.parse(4, argv, false);
+
+ EXPECT_TRUE(cmd.page_given());
+ EXPECT_EQ(cmd.page_arg(), "5");
+ EXPECT_TRUE(cmd.list_specials_given());
+ EXPECT_TRUE(cmd.stdout_given());
+ EXPECT_TRUE(cmd.exact_given());
+ EXPECT_FALSE(cmd.error());
+}
+
+
+TEST(CommandLineTest, arg_separated) {
+ CommandLine cmd;
+ const char *args[] = {"progname", "-p", "5", "-r", "45", "myfile.xyz", "-afalse"};
+ char **argv = const_cast<char**>(args);
+ cmd.parse(7, argv, false);
+
+ EXPECT_TRUE(cmd.page_given());
+ EXPECT_EQ(cmd.page_arg(), "5");
+ EXPECT_TRUE(cmd.rotate_given());
+ EXPECT_EQ(cmd.rotate_arg(), 45);
+ EXPECT_FALSE(cmd.error());
+ EXPECT_EQ(cmd.numFiles(), 1);
+ EXPECT_TRUE(cmd.trace_all_given());
+ EXPECT_FALSE(cmd.trace_all_arg());
+}
+
+
+TEST(CommandLineTest, arg_long) {
+ CommandLine cmd;
+ const char *args[] = {"progname", "--page=9", "--rotate=-45.5", "--trace-all", "--output=myfile.zyx"};
+ char **argv = const_cast<char**>(args);
+ cmd.parse(5, argv, false);
+
+ EXPECT_TRUE(cmd.page_given());
+ EXPECT_EQ(cmd.page_arg(), "9");
+ EXPECT_TRUE(cmd.rotate_given());
+ EXPECT_EQ(cmd.rotate_arg(), -45.5);
+ EXPECT_TRUE(cmd.output_given());
+ EXPECT_EQ(cmd.output_arg(), "myfile.zyx");
+ EXPECT_FALSE(cmd.bbox_given());
+ EXPECT_EQ(cmd.bbox_arg(), "min");
+ EXPECT_FALSE(cmd.error());
+ EXPECT_EQ(cmd.numFiles(), 0);
+ EXPECT_TRUE(cmd.trace_all_given());
+ EXPECT_FALSE(cmd.trace_all_arg());
+}
+
+
+TEST(CommandLineTest, abbrev_long) {
+ CommandLine cmd;
+ const char *args[] = {"progname", "--pa=9", "--rot=-45.5", "--out=myfile.zyx"};
+ char **argv = const_cast<char**>(args);
+ cmd.parse(4, argv, false);
+
+ EXPECT_TRUE(cmd.page_given());
+ EXPECT_EQ(cmd.page_arg(), "9");
+ EXPECT_TRUE(cmd.rotate_given());
+ EXPECT_EQ(cmd.rotate_arg(), -45.5);
+ EXPECT_TRUE(cmd.output_given());
+ EXPECT_EQ(cmd.output_arg(), "myfile.zyx");
+ EXPECT_FALSE(cmd.bbox_given());
+ EXPECT_EQ(cmd.bbox_arg(), "min");
+ EXPECT_FALSE(cmd.error());
+ EXPECT_EQ(cmd.numFiles(), 0);
+}
+
+
+TEST(CommandLineTest, error) {
+ CommandLine cmd;
+ // error on wrong argument type
+ const char *args1[] = {"progname", "--rotate=x"};
+ char **argv = const_cast<char**>(args1);
+ cmd.parse(2, argv, false);
+
+ EXPECT_FALSE(cmd.rotate_given());
+ EXPECT_TRUE(cmd.error());
+
+ // error on missing arguments
+ const char *args2[] = {"progname", "--page", "--zip"};
+ argv = const_cast<char**>(args2);
+ cmd.parse(3, argv, false);
+ EXPECT_TRUE(cmd.zip_given());
+ EXPECT_EQ(cmd.zip_arg(), 9);
+ EXPECT_FALSE(cmd.page_given());
+ EXPECT_FALSE(cmd.rotate_given());
+ EXPECT_TRUE(cmd.error());
+ EXPECT_EQ(cmd.numFiles(), 0);
+
+ // error on ambiguous abbreviation of long option
+ const char *args3[] = {"progname", "--no"};
+ argv = const_cast<char**>(args3);
+ cmd.parse(2, argv, false);
+ EXPECT_TRUE(cmd.error());
+
+ // incorrect boolean value
+ const char *args4[] = {"progname", "--trace-all=nope"};
+ argv = const_cast<char**>(args4);
+ cmd.parse(2, argv, false);
+ EXPECT_FALSE(cmd.trace_all_given());
+ EXPECT_TRUE(cmd.error());
+}
+
+
+TEST(CommandLineTest, file) {
+ CommandLine cmd;
+ const char *args1[] = {"progname", "--page=3", "-z5", "myfile1", "-l", "myfile2"};
+ char **argv = const_cast<char**>(args1);
+ cmd.parse(6, argv, false);
+
+ EXPECT_TRUE(cmd.page_given());
+ EXPECT_EQ(cmd.page_arg(), "3");
+ EXPECT_TRUE(cmd.zip_given());
+ EXPECT_EQ(cmd.zip_arg(), 5);
+ EXPECT_TRUE(cmd.list_specials_given());
+ EXPECT_EQ(cmd.numFiles(), 2);
+ EXPECT_EQ(strcmp(cmd.file(0), "myfile1"), 0);
+ EXPECT_EQ(strcmp(cmd.file(1), "myfile2"), 0);
+ EXPECT_FALSE(cmd.error());
+}
+
+
+TEST(CommandLineTest, files_only) {
+ CommandLine cmd;
+ const char *args1[] = {"progname", "--page=3", "-z5", "--", "-l", "myfile"};
+ char **argv = const_cast<char**>(args1);
+ cmd.parse(6, argv, false);
+
+ EXPECT_TRUE(cmd.page_given());
+ EXPECT_EQ(cmd.page_arg(), "3");
+ EXPECT_TRUE(cmd.zip_given());
+ EXPECT_EQ(cmd.zip_arg(), 5);
+ EXPECT_EQ(cmd.numFiles(), 2);
+ EXPECT_EQ(strcmp(cmd.file(0), "-l"), 0);
+ EXPECT_EQ(strcmp(cmd.file(1), "myfile"), 0);
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/DirectoryTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/DirectoryTest.cpp
new file mode 100644
index 00000000000..5a503b9bfd7
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/DirectoryTest.cpp
@@ -0,0 +1,66 @@
+/*************************************************************************
+** DirectoryTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <iostream>
+#include <set>
+#include <unistd.h>
+#include "Directory.h"
+#include "FileSystem.h"
+#include "macros.h"
+
+#ifndef SRCDIR
+#define SRCDIR "."
+#endif
+
+
+using namespace std;
+
+TEST(DirectoryTest, dirs) {
+ const char *dirs_to_find[] = {"doc", "src", 0};
+ set<string> found_dirs;
+ Directory dir("..");
+ while (const char *dname = dir.read('d'))
+ found_dirs.insert(dname);
+ for (const char **p=dirs_to_find; *p; ++p) {
+ EXPECT_TRUE(found_dirs.find(*p) != found_dirs.end());
+ }
+}
+
+
+TEST(DirectoryTest, file) {
+ const char *files_to_find[] = {
+ "Bitmap.cpp", "BoundingBox.cpp", "Calculator.cpp",
+ "Directory.cpp", "DVIReader.cpp", "DVIToSVG.cpp", "DVIToSVGActions.cpp",
+ "FileSystem.cpp", "Font.cpp", "FontEngine.cpp", "FontManager.cpp",
+ "FontMap.cpp", "GFReader.cpp", "GFTracer.cpp", "FileFinder.cpp", "Message.cpp",
+ "MetafontWrapper.cpp", "PageSize.cpp", "StreamReader.cpp",
+ "TFM.cpp", "VFReader.cpp", "XMLDocument.cpp", "XMLNode.cpp", "XMLString.cpp",
+ 0
+ };
+ set<string> found_files;
+ Directory dir(string(SRCDIR)+"/../src");
+ while (const char *fname = dir.read('f'))
+ found_files.insert(fname);
+ for (const char **p=files_to_find; *p; ++p) {
+ EXPECT_TRUE(found_files.find(*p) != found_files.end());
+ }
+ EXPECT_TRUE(found_files.find("tests") == found_files.end());
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FileFinderTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FileFinderTest.cpp
new file mode 100644
index 00000000000..9286237ad30
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FileFinderTest.cpp
@@ -0,0 +1,82 @@
+/*************************************************************************
+** FileFinderTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <fstream>
+#include "FileFinder.h"
+
+using std::ifstream;
+
+
+class FileFinderTest : public ::testing::Test
+{
+ protected:
+ void SetUp () {
+ FileFinder::init("FileFinderTest", "FileFinderTest", false);
+ }
+
+ void TearDown () {
+ FileFinder::finish();
+ }
+};
+
+
+TEST_F(FileFinderTest, find_base_file) {
+ const char *path = FileFinder::lookup("cmr10.tfm");
+ EXPECT_TRUE(path);
+ ifstream ifs(path);
+ EXPECT_TRUE(ifs);
+}
+
+
+TEST_F(FileFinderTest, find_mapped_file) {
+ // mapped base tfm file => should be resolved by kpathsea
+ // circle10.tfm is usually mapped to lcircle.tfm
+ if (const char *path = FileFinder::lookup("circle10.tfm")) {
+ EXPECT_TRUE(path);
+ ifstream ifs(path);
+ EXPECT_TRUE(ifs);
+ }
+
+ // mapped lm font => should be resolved using dvisvgm's FontMap
+ // cork-lmr10 is usually mapped to lmr10
+ bool have_lmodern = FileFinder::lookup("lmodern.sty");
+ if (have_lmodern) { // package lmodern installed?
+ if (const char *path = FileFinder::lookup("cork-lmr10.pfb")) {
+ ifstream ifs(path);
+ EXPECT_TRUE(ifs);
+ }
+ }
+}
+
+
+TEST_F(FileFinderTest, mktexmf) {
+ // ensure availability of ec font => call mktexmf if necessary
+ if (const char *path = FileFinder::lookup("ecrm2000.mf")) {
+ ifstream ifs(path);
+ EXPECT_TRUE(ifs);
+ }
+}
+
+
+TEST_F(FileFinderTest, find_unavailable_file) {
+ const char *path = FileFinder::lookup("not-available.xyz");
+ EXPECT_FALSE(path);
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FilePathTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FilePathTest.cpp
new file mode 100644
index 00000000000..6f1ef7677ab
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FilePathTest.cpp
@@ -0,0 +1,107 @@
+/*************************************************************************
+** FilePathTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <string>
+#include "FilePath.h"
+#include "FileSystem.h"
+
+using namespace std;
+
+
+TEST(FilePathTest, dir1) {
+ FilePath fp("a/b/c/d", false, "/");
+ ASSERT_EQ(fp.absolute(), "/a/b/c/d");
+ ASSERT_EQ(fp.relative("/"), "a/b/c/d");
+ ASSERT_EQ(fp.relative("/a/b"), "c/d");
+ ASSERT_EQ(fp.relative("/a/b/c"), "d");
+ ASSERT_EQ(fp.relative("/a/b/c/d"), ".");
+ ASSERT_EQ(fp.relative("/a/b/x"), "../c/d");
+ ASSERT_EQ(fp.relative("/a/b/x/y"), "../../c/d");
+}
+
+
+TEST(FilePathTest, dir2) {
+ FilePath fp("a/b/c/d", false, "/x/y");
+ ASSERT_EQ(fp.absolute(), "/x/y/a/b/c/d");
+ ASSERT_EQ(fp.relative("/"), "x/y/a/b/c/d");
+ ASSERT_EQ(fp.relative("/x/y/a/b"), "c/d");
+ ASSERT_EQ(fp.relative("/x/y/a/b/c"), "d");
+ ASSERT_EQ(fp.relative("/x/y/a/b/c/d"), ".");
+ ASSERT_EQ(fp.relative("/x/y/a/b/x"), "../c/d");
+ ASSERT_EQ(fp.relative("/x/y/a/b/x/y"), "../../c/d");
+}
+
+
+TEST(FilePathTest, file1) {
+ FilePath fp("a/b/c/d/f.ext", true, "/");
+ ASSERT_EQ(fp.absolute(), "/a/b/c/d/f.ext");
+ ASSERT_EQ(fp.relative("/"), "a/b/c/d/f.ext");
+ ASSERT_EQ(fp.relative("/a/b"), "c/d/f.ext");
+ ASSERT_EQ(fp.relative("/a/b/c"), "d/f.ext");
+ ASSERT_EQ(fp.relative("/a/b/c/d"), "f.ext");
+ ASSERT_EQ(fp.relative("/a/b/x"), "../c/d/f.ext");
+ ASSERT_EQ(fp.relative("/a/b/x/y"), "../../c/d/f.ext");
+ ASSERT_EQ(fp.basename(), "f");
+ ASSERT_EQ(fp.suffix(), "ext");
+ fp.suffix("new");
+ ASSERT_EQ(fp.suffix(), "new");
+ ASSERT_EQ(fp.relative("/a/b/x/y"), "../../c/d/f.new");
+}
+
+
+TEST(FilePathTest, file2) {
+ FilePath fp("/f.ext", true, "/");
+ ASSERT_EQ(fp.absolute(), "/f.ext");
+ ASSERT_EQ(fp.relative("/a/b"), "../../f.ext");
+}
+
+
+#ifdef __WIN32__
+static string tolower (const string &str) {
+ string ret;
+ for (string::const_iterator it=str.begin(); it != str.end(); ++it)
+ ret += tolower(*it);
+ return ret;
+}
+#endif
+
+
+TEST(FilePathTest, autodetect) {
+ FilePath fp1("FilePathTest.cpp");
+ ASSERT_TRUE(fp1.isFile());
+ ASSERT_FALSE(fp1.empty());
+ string cwd = FileSystem::getcwd();
+#ifdef __WIN32__
+ ASSERT_EQ(fp1.absolute(), tolower(cwd + "/FilePathTest.cpp"));
+#else
+ ASSERT_EQ(fp1.absolute(), cwd + "/FilePathTest.cpp");
+#endif
+
+ FilePath fp2("");
+ ASSERT_FALSE(fp2.isFile());
+ ASSERT_FALSE(fp2.empty());
+#ifdef __WIN32__
+ ASSERT_EQ(fp2.absolute(), tolower(FileSystem::getcwd()));
+#else
+ ASSERT_EQ(fp2.absolute(), FileSystem::getcwd());
+#endif
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FileSystemTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FileSystemTest.cpp
new file mode 100644
index 00000000000..bd7adeef383
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FileSystemTest.cpp
@@ -0,0 +1,121 @@
+/*************************************************************************
+** FileSystemTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <fstream>
+#include "FileSystem.h"
+
+#ifndef SRCDIR
+#define SRCDIR "."
+#endif
+
+using namespace std;
+
+
+TEST(FileSystemTest, exists) {
+ EXPECT_TRUE(FileSystem::exists(SRCDIR"/FileSystemTest.cpp"));
+ EXPECT_FALSE(FileSystem::exists(SRCDIR"/FileSystemTest.cxx"));
+}
+
+
+TEST(FileSystemTest, filetype) {
+ EXPECT_TRUE(FileSystem::isFile(SRCDIR"/FileSystemTest.cpp"));
+ EXPECT_FALSE(FileSystem::isDirectory(SRCDIR"/FileSystemTest.cpp"));
+ EXPECT_TRUE(FileSystem::isDirectory("../tests"));
+ EXPECT_FALSE(FileSystem::isFile("../tests"));
+}
+
+
+TEST(FileSystemTest, remove) {
+ const char *tmpfile = "out.tmp";
+ ofstream ofs(tmpfile);
+ ofs << "FileSystemTest::remove\n";
+ ofs.close();
+ EXPECT_TRUE(FileSystem::exists(tmpfile));
+ FileSystem::remove(tmpfile);
+ EXPECT_FALSE(FileSystem::exists(tmpfile));
+}
+
+
+TEST(FileSystemTest, rename) {
+ const char *tmpfile1 = "out.tmp";
+ const char *tmpfile2 = "out-new.tmp";
+ ofstream ofs(tmpfile1);
+ ofs << "FileSystemTest::remove\n";
+ ofs.close();
+ EXPECT_TRUE(FileSystem::exists(tmpfile1));
+ FileSystem::rename(tmpfile1, tmpfile2);
+#ifndef __WIN32__
+ EXPECT_FALSE(FileSystem::exists(tmpfile1));
+#endif
+ EXPECT_TRUE(FileSystem::exists(tmpfile2));
+ FileSystem::remove(tmpfile2);
+ EXPECT_FALSE(FileSystem::exists(tmpfile2));
+}
+
+
+TEST(FileSystemTest, filesize) {
+ const char *tmpfile = "out.tmp";
+ ofstream ofs(tmpfile, ios::binary);
+ for (int i=0; i < 123; ++i)
+ ofs.put(i);
+ ofs.close();
+ EXPECT_EQ(FileSystem::filesize(tmpfile), 123);
+ FileSystem::remove(tmpfile);
+}
+
+
+TEST(FileSystemTest, copy) {
+ const char *tmpfile1 = "out.tmp";
+ const char *tmpfile2 = "out-new.tmp";
+ ofstream ofs(tmpfile1);
+ ofs << "FileSystemTest::copy\n";
+ ofs.close();
+ FileSystem::copy(tmpfile1, tmpfile2);
+ ifstream ifs1(tmpfile1);
+ ifstream ifs2(tmpfile2);
+ EXPECT_TRUE(ifs1 && ifs2);
+ while (!ifs1.eof()) {
+ EXPECT_EQ(ifs1.get(), ifs2.get());
+ }
+ EXPECT_TRUE(ifs2.eof());
+ FileSystem::remove(tmpfile1);
+ FileSystem::remove(tmpfile2);
+}
+
+
+TEST(FileSystemTest, move) {
+ const char *tmpfile1 = "out.tmp";
+ const char *tmpfile2 = "out-new.tmp";
+ ofstream ofs(tmpfile1);
+ const char *str = "FileSystemTest::copy\n";
+ ofs << str;
+ ofs.close();
+ FileSystem::copy(tmpfile1, tmpfile2, true);
+ ifstream ifs1(tmpfile1);
+ ifstream ifs2(tmpfile2);
+ EXPECT_TRUE(!ifs1 && ifs2);
+ while (*str) {
+ EXPECT_EQ(*str++, ifs2.get());
+ }
+ ifs2.get();
+ EXPECT_TRUE(ifs2.eof());
+ FileSystem::remove(tmpfile2);
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FontManagerTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FontManagerTest.cpp
new file mode 100644
index 00000000000..d7d0fb30f57
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FontManagerTest.cpp
@@ -0,0 +1,76 @@
+/*************************************************************************
+** FontManagerTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <sstream>
+#include "Font.h"
+#include "FontManager.h"
+#include "FileFinder.h"
+
+class FontManagerTest : public ::testing::Test
+{
+ protected:
+ void SetUp () {
+ FileFinder::init("FontManagerTest", "FontManagerTest", false);
+ FontManager &fm = FontManager::instance();
+ fm.registerFont(10, "cmr10", 1274110073, 10, 10);
+ fm.registerFont(11, "cmr10", 1274110073, 10, 12);
+ fm.registerFont( 9, "cmr10", 1274110073, 10, 14);
+ }
+};
+
+
+TEST_F(FontManagerTest, fontID1) {
+ FontManager &fm = FontManager::instance();
+ EXPECT_EQ(fm.fontID(10), 0);
+ EXPECT_EQ(fm.fontID(11), 1);
+ EXPECT_EQ(fm.fontID(9), 2);
+ EXPECT_EQ(fm.fontID(1), -1);
+}
+
+
+TEST_F(FontManagerTest, font_ID2) {
+ FontManager &fm = FontManager::instance();
+ EXPECT_EQ(fm.fontID("cmr10"), 0);
+}
+
+
+TEST_F(FontManagerTest, getFont) {
+ FontManager &fm = FontManager::instance();
+ const Font *f1 = fm.getFont(10);
+ EXPECT_TRUE(f1);
+ EXPECT_EQ(f1->name(), "cmr10");
+ EXPECT_TRUE(dynamic_cast<const PhysicalFontImpl*>(f1));
+
+ const Font *f2 = fm.getFont(11);
+ EXPECT_TRUE(f2);
+ EXPECT_NE(f1, f2);
+ EXPECT_EQ(f2->name(), "cmr10");
+ EXPECT_TRUE(dynamic_cast<const PhysicalFontProxy*>(f2));
+ EXPECT_EQ(f2->uniqueFont(), f1);
+}
+
+
+TEST_F(FontManagerTest, getFontById) {
+ FontManager &fm = FontManager::instance();
+ EXPECT_EQ(fm.getFont(10), fm.getFontById(0));
+ EXPECT_EQ(fm.getFont("cmr10"), fm.getFontById(0));
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FontMapTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FontMapTest.cpp
new file mode 100644
index 00000000000..a853b829295
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/FontMapTest.cpp
@@ -0,0 +1,70 @@
+/*************************************************************************
+** FontMapTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <fstream>
+#include "FontMap.h"
+
+using std::ifstream;
+
+TEST(FontMapTest, pdf_map) {
+ const char *fname = "tests/dvipdfm_test.map";
+ ifstream ifs(fname);
+ if (ifs) {
+ FontMap &fm = FontMap::instance();
+ fm.read(fname);
+ const FontMap::Entry *entry;
+ ASSERT_TRUE((entry = fm.lookup("MyriadPro-Bold-8t")) != 0);
+ EXPECT_EQ(entry->fontname, "MyriadPro-Bold");
+ EXPECT_EQ(entry->encname, "my-lf-t1");
+ ASSERT_TRUE((entry = fm.lookup("cmbsy8")) != 0);
+ EXPECT_EQ(entry->fontname, "cmbsy7");
+ EXPECT_EQ(entry->encname, "");
+
+ // entry without mapped name
+ EXPECT_TRUE(fm.lookup("msam10") == 0);
+ EXPECT_TRUE(fm.lookup("msbm10") == 0);
+ EXPECT_TRUE(fm.lookup("msbm10") == 0);
+ EXPECT_TRUE(fm.lookup("i don't exist") == 0);
+ }
+}
+
+
+TEST(FontMapTest, ps_map) {
+ const char *fname = "tests/dvips_test.map";
+ ifstream ifs(fname);
+ if (ifs) {
+ FontMap &fm = FontMap::instance();
+ fm.read(fname);
+ const FontMap::Entry *entry;
+ ASSERT_TRUE((entry = fm.lookup("MyriadPro-Bold-8t")) != 0);
+ EXPECT_EQ(entry->fontname, "MyriadPro-Bold");
+ EXPECT_EQ(entry->encname, "my-lf-t1");
+ ASSERT_TRUE((entry = fm.lookup("cmbsy8")) != 0);
+ EXPECT_EQ(entry->fontname, "cmbsy7");
+ EXPECT_EQ(entry->encname, "");
+
+ // entry without mapped name
+ EXPECT_TRUE(fm.lookup("msam10") == 0);
+ EXPECT_TRUE(fm.lookup("msbm10") == 0);
+ EXPECT_TRUE(fm.lookup("msbm10") == 0);
+ EXPECT_TRUE(fm.lookup("i don't exist") == 0);
+ }
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/GFReaderTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/GFReaderTest.cpp
new file mode 100644
index 00000000000..333eacfb7c4
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/GFReaderTest.cpp
@@ -0,0 +1,252 @@
+/*************************************************************************
+** GFReaderTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <cstdlib>
+#include <fstream>
+#include <string>
+#include <vector>
+#include "GFReader.h"
+#include "macros.h"
+
+#ifndef SRCDIR
+#define SRCDIR "."
+#endif
+
+using namespace std;
+
+
+struct PixelActions : public Bitmap::ForAllData
+{
+ void pixel (int x, int y, bool set, const Bitmap &bm) {
+ if (charmap.size() == 0) {
+ charmap.resize(bm.height());
+ for (int i=0; i < bm.height(); i++)
+ charmap[i] = string(bm.width(), ' ');
+ }
+ ASSERT_GE(x, 0);
+ ASSERT_LT(x, bm.width());
+ ASSERT_GE(y, 0);
+ ASSERT_LT(y, bm.height());
+ charmap[y][x] = (set ? '*' : '-');
+ }
+
+ vector<string> charmap;
+};
+
+
+const char *letter_a[] = {
+ "-----------********--------------------",
+ "--------**************-----------------",
+ "------*****-------******---------------",
+ "-----***------------*****--------------",
+ "----*****------------******------------",
+ "---*******------------******-----------",
+ "---********-----------******-----------",
+ "---********------------******----------",
+ "---********------------******----------",
+ "---********-------------******---------",
+ "----******--------------******---------",
+ "-----****---------------******---------",
+ "------------------------******---------",
+ "------------------------******---------",
+ "------------------------******---------",
+ "------------------------******---------",
+ "-----------------*************---------",
+ "-------------*****************---------",
+ "----------*********-----******---------",
+ "--------*******---------******---------",
+ "------*******-----------******---------",
+ "----********------------******---------",
+ "---*******--------------******---------",
+ "--********--------------******---------",
+ "-********---------------******---------",
+ "-*******----------------******---------",
+ "-*******----------------******------**-",
+ "*******-----------------******------**-",
+ "*******-----------------******------**-",
+ "*******-----------------******------**-",
+ "*******----------------*******------**-",
+ "*******----------------*******------**-",
+ "********--------------********------**-",
+ "-*******-------------***-*****------**-",
+ "-********------------**---*****----**--",
+ "--********---------****---*****----**--",
+ "----*******------****------*********---",
+ "------**************--------*******----",
+ "---------********------------*****-----",
+};
+
+
+const char *letter_g[] = {
+ "------------------------------******---",
+ "------------********--------*********--",
+ "----------************----****----****-",
+ "--------*****------*****-***-----*****-",
+ "-------*****--------*******------*****-",
+ "------*****----------*****-------*****-",
+ "-----*****------------*****--------*---",
+ "----******------------******-----------",
+ "----******------------******-----------",
+ "---******--------------******----------",
+ "---******--------------******----------",
+ "---******--------------******----------",
+ "---******--------------******----------",
+ "---******--------------******----------",
+ "---******--------------******----------",
+ "---******--------------******----------",
+ "---******--------------******----------",
+ "----******------------******-----------",
+ "----******------------******-----------",
+ "-----*****------------*****------------",
+ "------*****----------*****-------------",
+ "------******--------*****--------------",
+ "------*******------*****---------------",
+ "-----***--************-----------------",
+ "-----**-----********-------------------",
+ "----***--------------------------------",
+ "----***--------------------------------",
+ "----***--------------------------------",
+ "----***--------------------------------",
+ "----****-------------------------------",
+ "----****-------------------------------",
+ "----******-----------------------------",
+ "-----*********************-------------",
+ "-----************************----------",
+ "------*************************--------",
+ "-------**************************------",
+ "------****************************-----",
+ "----*****----------------**********----",
+ "---*****--------------------********---",
+ "--*****-----------------------******---",
+ "-*****-------------------------*****---",
+ "-*****-------------------------******--",
+ "*****---------------------------*****--",
+ "*****---------------------------*****--",
+ "*****---------------------------*****--",
+ "*****---------------------------*****--",
+ "*****---------------------------*****--",
+ "******-------------------------******--",
+ "-*****-------------------------*****---",
+ "--*****-----------------------*****----",
+ "--******---------------------******----",
+ "----*****-------------------*****------",
+ "-----******---------------******-------",
+ "-------*******---------*******---------",
+ "---------*******************-----------",
+ "-------------***********---------------",
+};
+
+
+const char *letter_M[] = {
+ "****************-------------------------------------****************-",
+ "*****************-----------------------------------*****************-",
+ "*****************-----------------------------------*****************-",
+ "-------**********-----------------------------------**********--------",
+ "--------**-*******---------------------------------**-*******---------",
+ "--------**-*******---------------------------------**-*******---------",
+ "--------**--*******-------------------------------**--*******---------",
+ "--------**--*******-------------------------------**--*******---------",
+ "--------**--*******-------------------------------**--*******---------",
+ "--------**---*******-----------------------------**---*******---------",
+ "--------**---*******-----------------------------**---*******---------",
+ "--------**---*******-----------------------------**---*******---------",
+ "--------**----*******---------------------------**----*******---------",
+ "--------**----*******---------------------------**----*******---------",
+ "--------**-----*******-------------------------**-----*******---------",
+ "--------**-----*******-------------------------**-----*******---------",
+ "--------**-----*******-------------------------**-----*******---------",
+ "--------**------*******-----------------------**------*******---------",
+ "--------**------*******-----------------------**------*******---------",
+ "--------**-------*******---------------------**-------*******---------",
+ "--------**-------*******---------------------**-------*******---------",
+ "--------**-------*******---------------------**-------*******---------",
+ "--------**--------*******-------------------**--------*******---------",
+ "--------**--------*******-------------------**--------*******---------",
+ "--------**--------*******-------------------**--------*******---------",
+ "--------**---------*******-----------------**---------*******---------",
+ "--------**---------*******-----------------**---------*******---------",
+ "--------**----------*******---------------**----------*******---------",
+ "--------**----------*******---------------**----------*******---------",
+ "--------**----------*******---------------**----------*******---------",
+ "--------**-----------*******-------------**-----------*******---------",
+ "--------**-----------*******-------------**-----------*******---------",
+ "--------**------------*******-----------**------------*******---------",
+ "--------**------------*******-----------**------------*******---------",
+ "--------**------------*******-----------**------------*******---------",
+ "--------**-------------*******---------**-------------*******---------",
+ "--------**-------------*******---------**-------------*******---------",
+ "--------**-------------*******---------**-------------*******---------",
+ "--------**--------------*******-------**--------------*******---------",
+ "--------**--------------*******-------**--------------*******---------",
+ "--------**---------------*******-----**---------------*******---------",
+ "--------**---------------*******-----**---------------*******---------",
+ "--------**---------------*******-----**---------------*******---------",
+ "--------**----------------*******---**----------------*******---------",
+ "--------**----------------*******---**----------------*******---------",
+ "--------**-----------------*******-**-----------------*******---------",
+ "--------**-----------------*******-**-----------------*******---------",
+ "--------**-----------------*******-**-----------------*******---------",
+ "--------**------------------********------------------*******---------",
+ "--------**------------------********------------------*******---------",
+ "--------**------------------********------------------*******---------",
+ "-------****------------------******-------------------*******---------",
+ "------******-----------------******-------------------*******---------",
+ "----**********----------------****-------------------*********--------",
+ "******************------------****------------***********************-",
+ "******************------------****------------***********************-",
+ "******************-------------**-------------***********************-",
+};
+
+
+static void check_letter (const char **lettermap, const vector<string> &charmap) {
+ for (size_t i=0; i < charmap.size(); i++)
+ ASSERT_EQ(lettermap[i], charmap[charmap.size()-i-1]);
+}
+
+
+TEST(GFReaderTest, executeChar) {
+ string gf = string(SRCDIR)+"/cmr10.600gf";
+ ifstream ifs(gf.c_str(), ios::binary);
+ ASSERT_TRUE(ifs);
+ GFReader gfReader(ifs);
+ PixelActions actions;
+
+ gfReader.executeChar('a');
+ ASSERT_EQ(gfReader.getBitmap().width(), 39);
+ ASSERT_EQ(gfReader.getBitmap().height(), 39);
+ gfReader.getBitmap().forAllPixels(actions);
+ check_letter(letter_a, actions.charmap);
+
+ actions.charmap.clear();
+ gfReader.executeChar('g');
+ ASSERT_EQ(gfReader.getBitmap().width(), 39);
+ ASSERT_EQ(gfReader.getBitmap().height(), 56);
+ gfReader.getBitmap().forAllPixels(actions);
+ check_letter(letter_g, actions.charmap);
+
+ actions.charmap.clear();
+ gfReader.executeChar('M');
+ ASSERT_EQ(gfReader.getBitmap().width(), 70);
+ ASSERT_EQ(gfReader.getBitmap().height(), 57);
+ gfReader.getBitmap().forAllPixels(actions);
+ check_letter(letter_M, actions.charmap);
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/GraphicPathTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/GraphicPathTest.cpp
new file mode 100644
index 00000000000..6df695604f2
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/GraphicPathTest.cpp
@@ -0,0 +1,82 @@
+/*************************************************************************
+** GraphicPathTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <sstream>
+#include "GraphicPath.h"
+
+using std::ostringstream;
+
+TEST(GraphicPathTest, svg) {
+ GraphicPath<int> path;
+ path.moveto(0,0);
+ path.lineto(10,10);
+ path.cubicto(20,20,30,30,40,40);
+ path.closepath();
+ ostringstream oss;
+ path.writeSVG(oss);
+ EXPECT_EQ(oss.str(), "M0 0L10 10C20 20 30 30 40 40Z");
+}
+
+
+TEST(GraphicPathTest, optimize) {
+ GraphicPath<int> path;
+ path.moveto(0,0);
+ path.lineto(10,0);
+ path.lineto(10,20);
+ ostringstream oss;
+ path.writeSVG(oss);
+ EXPECT_EQ(oss.str(), "M0 0H10V20");
+}
+
+
+TEST(GraphicPathTest, transform) {
+ GraphicPath<double> path;
+ path.moveto(0,0);
+ path.lineto(1,0);
+ path.lineto(1,1);
+ path.lineto(0,1);
+ path.closepath();
+ Matrix m(1);
+ m.scale(2,2);
+ m.translate(10, 100);
+ m.rotate(90);
+ path.transform(m);
+ ostringstream oss;
+ path.writeSVG(oss);
+ EXPECT_EQ(oss.str(), "M-100 10V12H-102V10Z");
+}
+
+
+TEST(GraphicPathTest, closeOpenSubPaths) {
+ GraphicPath<double> path;
+ path.moveto(0,0);
+ path.lineto(1,0);
+ path.lineto(1,1);
+ path.lineto(0,1);
+ path.moveto(10,10);
+ path.lineto(11,10);
+ path.lineto(11,11);
+ path.lineto(10,11);
+ path.closeOpenSubPaths();
+ ostringstream oss;
+ path.writeSVG(oss);
+ EXPECT_EQ(oss.str(), "M0 0H1V1H0ZM10 10H11V11H10Z");
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/LengthTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/LengthTest.cpp
new file mode 100644
index 00000000000..e6c7bbd5dac
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/LengthTest.cpp
@@ -0,0 +1,120 @@
+/*************************************************************************
+** LengthTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include "Length.h"
+
+TEST(LengthTest, set1) {
+ Length len;
+ len.set(1, Length::PT);
+ EXPECT_EQ(len.pt(), 1);
+
+ len.set(72, Length::BP);
+ EXPECT_EQ(len.pt(), 72.27);
+ EXPECT_EQ(len.bp(), 72);
+ EXPECT_EQ(len.in(), 1);
+
+ len.set(1, Length::IN);
+ EXPECT_EQ(len.pt(), 72.27);
+
+ len.set(12, Length::PC);
+ EXPECT_EQ(len.pt(), 72.27);
+ EXPECT_EQ(len.in(), 1);
+
+ len.set(2.54, Length::CM);
+ EXPECT_EQ(len.pt(), 72.27);
+ EXPECT_EQ(len.cm(), 2.54);
+ EXPECT_EQ(len.mm(), 25.4);
+
+ len.set(25.4, Length::MM);
+ EXPECT_EQ(len.pt(), 72.27);
+ EXPECT_EQ(len.cm(), 2.54);
+ EXPECT_EQ(len.mm(), 25.4);
+}
+
+
+TEST(LengthTest, set2) {
+ Length len;
+ len.set(1, "pt");
+ EXPECT_EQ(len.pt(), 1);
+
+ len.set(72, "bp");
+ EXPECT_EQ(len.pt(), 72.27);
+ EXPECT_EQ(len.bp(), 72);
+ EXPECT_EQ(len.in(), 1);
+ EXPECT_EQ(len.pc(), 12);
+
+ len.set(1, "in");
+ EXPECT_EQ(len.pt(), 72.27);
+
+ len.set(12, "pc");
+ EXPECT_EQ(len.pt(), 72.27);
+ EXPECT_EQ(len.in(), 1);
+ EXPECT_EQ(len.pc(), 12);
+
+ len.set(2.54, "cm");
+ EXPECT_EQ(len.pt(), 72.27);
+ EXPECT_EQ(len.cm(), 2.54);
+ EXPECT_EQ(len.mm(), 25.4);
+
+ len.set(10, "mm");
+ EXPECT_EQ(len.cm(), 1);
+ EXPECT_EQ(len.mm(), 10);
+
+ len.set(1, "");
+ EXPECT_EQ(len.pt(), 1);
+
+ ASSERT_THROW(len.set(1, "xy"), UnitException);
+}
+
+TEST(LengthTest, set3) {
+ Length len;
+ len.set("1pt");
+ EXPECT_EQ(len.pt(), 1);
+
+ len.set("72bp");
+ EXPECT_EQ(len.pt(), 72.27);
+ EXPECT_EQ(len.bp(), 72);
+ EXPECT_EQ(len.in(), 1);
+ EXPECT_EQ(len.pc(), 12);
+
+ len.set("1in");
+ EXPECT_EQ(len.pt(), 72.27);
+
+ len.set("12pc");
+ EXPECT_EQ(len.pt(), 72.27);
+ EXPECT_EQ(len.in(), 1);
+ EXPECT_EQ(len.pc(), 12);
+
+ len.set("2.54cm");
+ EXPECT_EQ(len.pt(), 72.27);
+ EXPECT_EQ(len.cm(), 2.54);
+ EXPECT_EQ(len.mm(), 25.4);
+
+ len.set("10mm");
+ EXPECT_EQ(len.cm(), 1);
+ EXPECT_EQ(len.mm(), 10);
+
+ len.set("1");
+ EXPECT_EQ(len.pt(), 1);
+
+ ASSERT_THROW(len.set("1xy"), UnitException);
+ ASSERT_THROW(len.set("pt"), UnitException);
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/Makefile.am b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/Makefile.am
new file mode 100644
index 00000000000..3cc15efde22
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/Makefile.am
@@ -0,0 +1,155 @@
+## This file is part of dvisvgm
+## Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de>
+##
+## Process this file with automake.
+
+AM_CXXFLAGS = -I$(srcdir)/../src -I$(srcdir)/../../src -Wall -DSRCDIR='"$(srcdir)"'
+
+TESTS =
+check_PROGRAMS =
+
+TESTS += BoundingBoxTest
+check_PROGRAMS += BoundingBoxTest
+BoundingBoxTest_SOURCES = BoundingBoxTest.cpp
+BoundingBoxTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += CalculatorTest
+check_PROGRAMS += CalculatorTest
+CalculatorTest_SOURCES = CalculatorTest.cpp
+CalculatorTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += ColorSpecialTest
+check_PROGRAMS += ColorSpecialTest
+ColorSpecialTest_SOURCES = ColorSpecialTest.cpp
+ColorSpecialTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += CommandLineTest
+check_PROGRAMS += CommandLineTest
+CommandLineTest_SOURCES = CommandLineTest.cpp
+CommandLineTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += CRC32Test
+check_PROGRAMS += CRC32Test
+CRC32Test_SOURCES = CRC32Test.cpp
+CRC32Test_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += DirectoryTest
+check_PROGRAMS += DirectoryTest
+DirectoryTest_SOURCES = DirectoryTest.cpp
+DirectoryTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += FileFinderTest
+check_PROGRAMS += FileFinderTest
+FileFinderTest_SOURCES = FileFinderTest.cpp
+FileFinderTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += FilePathTest
+check_PROGRAMS += FilePathTest
+FilePathTest_SOURCES = FilePathTest.cpp
+FilePathTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += FileSystemTest
+check_PROGRAMS += FileSystemTest
+FileSystemTest_SOURCES = FileSystemTest.cpp
+FileSystemTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += FontManagerTest
+check_PROGRAMS += FontManagerTest
+FontManagerTest_SOURCES = FontManagerTest.cpp
+FontManagerTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += FontMapTest
+check_PROGRAMS += FontMapTest
+FontMapTest_SOURCES = FontMapTest.cpp
+FontMapTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += GFReaderTest
+check_PROGRAMS += GFReaderTest
+GFReaderTest_SOURCES = GFReaderTest.cpp
+GFReaderTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += GraphicPathTest
+check_PROGRAMS += GraphicPathTest
+GraphicPathTest_SOURCES = GraphicPathTest.cpp
+GraphicPathTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += LengthTest
+check_PROGRAMS += LengthTest
+LengthTest_SOURCES = LengthTest.cpp
+LengthTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += MapLineTest
+check_PROGRAMS += MapLineTest
+MapLineTest_SOURCES = MapLineTest.cpp
+MapLineTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += MatrixTest
+check_PROGRAMS += MatrixTest
+MatrixTest_SOURCES = MatrixTest.cpp
+MatrixTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += MessageExceptionTest
+check_PROGRAMS += MessageExceptionTest
+MessageExceptionTest_SOURCES = MessageExceptionTest.cpp
+MessageExceptionTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += PageRagesTest
+check_PROGRAMS += PageRagesTest
+PageRagesTest_SOURCES = PageRagesTest.cpp
+PageRagesTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += PageSizeTest
+check_PROGRAMS += PageSizeTest
+PageSizeTest_SOURCES = PageSizeTest.cpp
+PageSizeTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += PairTest
+check_PROGRAMS += PairTest
+PairTest_SOURCES = PairTest.cpp
+PairTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += PSInterpreterTest
+check_PROGRAMS += PSInterpreterTest
+PSInterpreterTest_SOURCES = PSInterpreterTest.cpp
+PSInterpreterTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += SplittedCharInputBufferTest
+check_PROGRAMS += SplittedCharInputBufferTest
+SplittedCharInputBufferTest_SOURCES = SplittedCharInputBufferTest.cpp
+SplittedCharInputBufferTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += StreamInputBufferTest
+check_PROGRAMS += StreamInputBufferTest
+StreamInputBufferTest_SOURCES = StreamInputBufferTest.cpp
+StreamInputBufferTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += StreamReaderTest
+check_PROGRAMS += StreamReaderTest
+StreamReaderTest_SOURCES = StreamReaderTest.cpp
+StreamReaderTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += StreamWriterTest
+check_PROGRAMS += StreamWriterTest
+StreamWriterTest_SOURCES = StreamWriterTest.cpp
+StreamWriterTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += SubfontTest
+check_PROGRAMS += SubfontTest
+SubfontTest_SOURCES = SubfontTest.cpp
+SubfontTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += TypesTest
+check_PROGRAMS += TypesTest
+TypesTest_SOURCES = TypesTest.cpp
+TypesTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTS += VectorStreamTest
+check_PROGRAMS += VectorStreamTest
+VectorStreamTest_SOURCES = VectorStreamTest.cpp
+VectorStreamTest_LDADD = ../src/libdvisvgm.a -L../potracelib -lpotrace -lgtest -lgtest_main -lpthread
+
+TESTDATA =
+TESTDATA += frktest.dvi frktest-wf-cmp.svg frktest-nf-cmp.svg
+TESTDATA += sample.dvi sample-wf-cmp.svg sample-nf-cmp.svg
+EXTRA_DIST = check-conv normalize.xsl cmr10.600gf sample.sfd $(TESTDATA)
+TESTS += check-conv
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/MapLineTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/MapLineTest.cpp
new file mode 100644
index 00000000000..e03f53c4b21
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/MapLineTest.cpp
@@ -0,0 +1,131 @@
+/*************************************************************************
+** MapLineTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2012 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <sstream>
+#include "FileFinder.h"
+#include "MapLine.h"
+#include "Subfont.h"
+
+using namespace std;
+
+
+class MapLineTest : public ::testing::Test
+{
+ protected:
+ void SetUp () {
+ FileFinder::init("MapLineTest", "MapLineTest", false);
+ }
+
+ void TearDown () {
+ FileFinder::finish();
+ }
+};
+
+
+TEST_F(MapLineTest, psline1) {
+ istringstream iss("texname0 TEXNAME0 <texname.pfb <encname.enc");
+ MapLine mapline(iss);
+ EXPECT_EQ(mapline.texname(), "texname0");
+ EXPECT_EQ(mapline.psname(), "TEXNAME0");
+ EXPECT_EQ(mapline.fontfname(), "texname.pfb");
+ EXPECT_EQ(mapline.encname(), "encname");
+ EXPECT_DOUBLE_EQ(mapline.slant(), 0);
+ EXPECT_DOUBLE_EQ(mapline.extend(), 1);
+ EXPECT_DOUBLE_EQ(mapline.bold(), 0);
+}
+
+TEST_F(MapLineTest, psline2) {
+ istringstream iss("texname0 TEXNAME0 \".123 SlantFont .456 ExtendFont\" <encname.enc <[texname.ttf");
+ MapLine mapline(iss);
+ EXPECT_EQ(mapline.texname(), "texname0");
+ EXPECT_EQ(mapline.psname(), "TEXNAME0");
+ EXPECT_EQ(mapline.fontfname(), "texname.ttf");
+ EXPECT_EQ(mapline.encname(), "encname");
+ EXPECT_DOUBLE_EQ(mapline.slant(), 0.123);
+ EXPECT_DOUBLE_EQ(mapline.extend(), 0.456);
+ EXPECT_DOUBLE_EQ(mapline.bold(), 0);
+}
+
+TEST_F(MapLineTest, psline3) {
+ istringstream iss("texname0 TEXNAME0 <encname.enc \".123 SlantFont IgnoreMe .456 ExtendFont\" <texname.ttf");
+ MapLine mapline(iss);
+ EXPECT_EQ(mapline.texname(), "texname0");
+ EXPECT_EQ(mapline.psname(), "TEXNAME0");
+ EXPECT_EQ(mapline.fontfname(), "texname.ttf");
+ EXPECT_EQ(mapline.encname(), "encname");
+ EXPECT_DOUBLE_EQ(mapline.slant(), 0.123);
+ EXPECT_DOUBLE_EQ(mapline.extend(), 0.456);
+ EXPECT_DOUBLE_EQ(mapline.bold(), 0);
+}
+
+TEST_F(MapLineTest, pdfline1) {
+ istringstream iss("texname");
+ MapLine mapline(iss);
+ EXPECT_EQ(mapline.texname(), "texname");
+ EXPECT_EQ(mapline.psname(), "");
+ EXPECT_EQ(mapline.encname(), "");
+ EXPECT_EQ(mapline.fontfname(), "");
+}
+
+TEST_F(MapLineTest, pdfline2) {
+ istringstream iss("gbk unicode simsun.ttc");
+ MapLine mapline(iss);
+ EXPECT_EQ(mapline.texname(), "gbk");
+ EXPECT_EQ(mapline.psname(), "");
+ EXPECT_EQ(mapline.encname(), "unicode");
+ EXPECT_EQ(mapline.fontfname(), "simsun.ttc");
+ EXPECT_EQ(mapline.fontindex(), 0);
+ EXPECT_TRUE(mapline.sfd() == 0);
+ EXPECT_EQ(mapline.fontindex(), 0);
+ EXPECT_DOUBLE_EQ(mapline.slant(), 0);
+ EXPECT_DOUBLE_EQ(mapline.extend(), 1);
+}
+
+TEST_F(MapLineTest, pdfline3) {
+ istringstream iss("gbk@UGBK@10 unicode simsun.ttc -v 50 -r -s .123 -b 1 -e 0.456");
+ MapLine mapline(iss);
+ EXPECT_EQ(mapline.texname(), "gbk10");
+ EXPECT_EQ(mapline.psname(), "");
+ EXPECT_EQ(mapline.encname(), "unicode");
+ EXPECT_EQ(mapline.fontfname(), "simsun.ttc");
+ if (mapline.sfd() != 0) { // if UGBK.sfd is installed do some more checks
+ EXPECT_EQ(mapline.sfd()->name(), "UGBK");
+ EXPECT_EQ(mapline.fontindex(), 0);
+ EXPECT_DOUBLE_EQ(mapline.slant(), 0.123);
+ EXPECT_DOUBLE_EQ(mapline.extend(), 0.456);
+ EXPECT_DOUBLE_EQ(mapline.bold(), 1);
+ }
+}
+
+TEST_F(MapLineTest, pdfline4) {
+ istringstream iss("gbk@UGBK@ default :1:!simsun.ttc/UCS,Bold -e.345");
+ MapLine mapline(iss);
+ EXPECT_EQ(mapline.texname(), "gbk");
+ EXPECT_EQ(mapline.psname(), "");
+ EXPECT_EQ(mapline.encname(), ""); // encodings "default" and "none" are replaced with ""
+ EXPECT_EQ(mapline.fontfname(), "simsun.ttc");
+ if (mapline.sfd() != 0) { // if UGBK.sfd is installed do some more checks
+ EXPECT_EQ(mapline.sfd()->name(), "UGBK");
+ EXPECT_EQ(mapline.fontindex(), 1);
+ EXPECT_DOUBLE_EQ(mapline.slant(), 0);
+ EXPECT_DOUBLE_EQ(mapline.extend(), 0.345);
+ }
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/MatrixTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/MatrixTest.cpp
new file mode 100644
index 00000000000..f01878900e1
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/MatrixTest.cpp
@@ -0,0 +1,151 @@
+/*************************************************************************
+** MatrixTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <sstream>
+#include <vector>
+#include "Matrix.h"
+
+using namespace std;
+
+
+TEST(MatrixTest, svg) {
+ double v1[] = {1,2,3,4,5,6,7,8,9};
+ Matrix m1(v1);
+ ostringstream oss;
+ m1.write(oss);
+ EXPECT_EQ(oss.str(), "((1,2,3),(4,5,6),(7,8,9))");
+ EXPECT_EQ(m1.getSVG(), "matrix(1 4 2 5 3 6)");
+
+ double v2[] = {1,2};
+ Matrix m2(v2, 2);
+ oss.str("");
+ m2.write(oss);
+ EXPECT_EQ(oss.str(), "((1,2,0),(0,1,0),(0,0,1))");
+ EXPECT_EQ(m2.getSVG(), "matrix(1 0 2 1 0 0)");
+}
+
+
+TEST(MatrixTest, transpose) {
+ double v[] = {1,2,3,4,5,6,7,8,9};
+ Matrix m(v);
+ m.transpose();
+ ostringstream oss;
+ m.write(oss);
+ EXPECT_EQ(oss.str(), "((1,4,7),(2,5,8),(3,6,9))");
+ EXPECT_EQ(m.getSVG(), "matrix(1 2 4 5 7 8)");
+}
+
+
+TEST(MatrixTest, scale) {
+ ScalingMatrix m(2,2);
+ DPair p = m*DPair(3,3);
+ EXPECT_DOUBLE_EQ(p.x(), 6);
+ EXPECT_DOUBLE_EQ(p.y(), 6);
+
+ m = ScalingMatrix(-2,-2);
+ p = m*DPair(3,3);
+ EXPECT_DOUBLE_EQ(p.x(), -6);
+ EXPECT_DOUBLE_EQ(p.y(), -6);
+}
+
+
+TEST(MatrixTest, rotate) {
+ RotationMatrix m(90);
+ DPair p = m*DPair(2,0);
+ EXPECT_NEAR(p.x(), 0, 0.0000000001);
+ EXPECT_NEAR(p.y(), 2, 0.0000000001);
+
+ p = m*p;
+ EXPECT_NEAR(p.x(), -2, 0.0000000001);
+ EXPECT_NEAR(p.y(), 0, 0.0000000001);
+}
+
+
+TEST(MatrixTest, checks) {
+ Matrix m(1);
+ EXPECT_TRUE(m.isIdentity());
+ double tx, ty;
+ EXPECT_TRUE(m.isTranslation(tx, ty));
+ EXPECT_EQ(tx, 0);
+ EXPECT_EQ(ty, 0);
+ m.translate(1,2);
+ EXPECT_TRUE(m.isTranslation(tx, ty));
+ EXPECT_EQ(tx, 1);
+ EXPECT_EQ(ty, 2);
+ m.scale(2, 2);
+ EXPECT_FALSE(m.isTranslation(tx, ty));
+}
+
+
+TEST(MatrixTest, vec) {
+ vector<double> v;
+ for (int i=1; i <= 15; ++i)
+ v.push_back(i);
+ Matrix m(v);
+ ostringstream oss;
+ m.write(oss);
+ EXPECT_EQ(oss.str(), "((1,2,3),(4,5,6),(7,8,9))");
+ oss.str("");
+
+ m.set(v, 2);
+ m.write(oss);
+ EXPECT_EQ(oss.str(), "((3,4,5),(6,7,8),(9,10,11))");
+}
+
+
+TEST(MatrixTest, det) {
+ Matrix m1(1);
+ EXPECT_EQ(det(m1), 1);
+
+ double v2[] = {1,2,3, 4,5,6, 7,8,9};
+ Matrix m2(v2);
+ EXPECT_EQ(det(m2), 1*5*9 + 2*6*7 + 3*4*8 - 3*5*7 - 2*4*9 - 1*6*8);
+
+ EXPECT_EQ(det(m2, 0, 0), 5*9-6*8);
+ EXPECT_EQ(det(m2, 0, 1), 4*9-6*7);
+ EXPECT_EQ(det(m2, 0, 2), 4*8-5*7);
+ EXPECT_EQ(det(m2, 1, 0), 2*9-3*8);
+
+ double v3[] = {1,1,1, 2,2,2, 3,3,3};
+ Matrix m3(v3);
+ EXPECT_EQ(det(m2), 0);
+ m3.transpose();
+ EXPECT_EQ(det(m2), 0);
+}
+
+
+TEST(MatrixTest, invert) {
+ Matrix m1(1);
+ EXPECT_EQ(m1.invert(), m1);
+
+ double v2[] = {1,2,3, 2,3,1, 3,1,2};
+ Matrix m2(v2);
+ EXPECT_EQ(det(m2), -18);
+
+ double v3[] = {5,-1,-7, -1,-7,5, -7,5,-1};
+ Matrix m3(v3);
+
+ m3 *= 1.0/det(m2);
+ m2.invert();
+ for (int i=0; i < 3; ++i)
+ for (int j=0; j < 3; ++j)
+ EXPECT_DOUBLE_EQ(m2.get(i,j), m3.get(i,j));
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/MessageExceptionTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/MessageExceptionTest.cpp
new file mode 100644
index 00000000000..14d6ed94978
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/MessageExceptionTest.cpp
@@ -0,0 +1,78 @@
+/*************************************************************************
+** BoundingBoxTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <string>
+#include <cstring>
+#include "MessageException.h"
+
+using namespace std;
+
+static void throw_exception (const string &msg) {
+ throw MessageException(msg);
+}
+
+
+TEST(MessageExceptionTest, catch_direct) {
+ bool caught=false;
+ try {
+ throw_exception("test message");
+ FAIL();
+ }
+ catch (MessageException &e) {
+ ASSERT_TRUE(strcmp(e.what(), "test message") == 0);
+ caught = true;
+ }
+ catch (...) {
+ FAIL();
+ }
+ ASSERT_TRUE(caught);
+}
+
+
+TEST(MessageExceptionTest, catch_indirect1) {
+ bool caught=false;
+ try {
+ throw_exception("test message");
+ FAIL();
+ }
+ catch (exception &e) {
+ ASSERT_TRUE(strcmp(e.what(), "test message") == 0);
+ caught = true;
+ }
+ catch (...) {
+ FAIL();
+ }
+ ASSERT_TRUE(caught);
+}
+
+
+TEST(MessageExceptionTest, catch_indirect2) {
+ bool caught=false;
+ try {
+ throw_exception("test message");
+ FAIL();
+ }
+ catch (...) {
+ caught = true;
+ }
+ ASSERT_TRUE(caught);
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PSInterpreterTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PSInterpreterTest.cpp
new file mode 100644
index 00000000000..06a9e7ce0dc
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PSInterpreterTest.cpp
@@ -0,0 +1,180 @@
+/*************************************************************************
+** PSInterpreterTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include "PSInterpreter.h"
+
+#include <sstream>
+#include <vector>
+
+using namespace std;
+
+class PSTestActions : public PSActions
+{
+ public:
+ void applyscalevals (vector<double> &p) {print("applyscalevals", p);}
+ void clip (vector<double> &p) {print("clip", p);}
+ void closepath (vector<double> &p) {print("closepath", p);}
+ void curveto (vector<double> &p) {print("curveto", p);}
+ void eoclip (vector<double> &p) {print("eoclip", p);}
+ void eofill (vector<double> &p) {print("eofill", p);}
+ void fill (vector<double> &p) {print("fill", p);}
+ void gsave (vector<double> &p) {print("gsave", p);}
+ void grestore (vector<double> &p) {print("grestore", p);}
+ void grestoreall(std::vector<double> &p) {print("grestoreall", p);}
+ void initclip (vector<double> &p) {print("initclip", p);}
+ void lineto (vector<double> &p) {print("lineto", p);}
+ void moveto (vector<double> &p) {print("moveto", p);}
+ void makepattern (vector<double> &p) {print("makepattern", p);}
+ void setpattern (vector<double> &p) {print("setpattern", p);}
+ void newpath (vector<double> &p) {print("newpath", p);}
+ void querypos (vector<double> &p) {print("querypos", p);}
+ void restore(std::vector<double> &p) {print("restore", p);}
+ void rotate (vector<double> &p) {print("rotate", p);}
+ void save(std::vector<double> &p) {print("save", p);}
+ void scale (vector<double> &p) {print("scale", p);}
+ void setcmykcolor (vector<double> &p) {print("setcmykcolor", p);}
+ void setdash (vector<double> &p) {print("setdash", p);}
+ void setgray (vector<double> &p) {print("setgray", p);}
+ void sethsbcolor (vector<double> &p) {print("sethsbcolor", p);}
+ void setlinecap (vector<double> &p) {print("setlinecap", p);}
+ void setlinejoin (vector<double> &p) {print("setlinejoin", p);}
+ void setlinewidth (vector<double> &p) {print("setlinewidth", p);}
+ void setmatrix (vector<double> &p) {print("setmatrix", p);}
+ void setmiterlimit (vector<double> &p) {print("setmiterlimit", p);}
+ void setopacityalpha (vector<double> &p) {print("setopacityalpha", p);}
+ void setrgbcolor (vector<double> &p) {print("setrgbcolor", p);}
+ void stroke (vector<double> &p) {print("stroke", p);}
+ void translate (vector<double> &p) {print("translate", p);}
+
+
+ string result () const {return _oss.str();}
+ void clear () {_oss.str("");}
+
+ protected:
+ void print (const char *op, const vector<double> &p) {
+ _oss << op;
+ for (size_t i=0; i < p.size(); ++i)
+ _oss << ' ' << p[i];
+ _oss << ';';
+ }
+
+ private:
+ ostringstream _oss;
+};
+
+
+TEST(PSInterpreterTest, init) {
+ PSTestActions actions;
+ PSInterpreter psi(&actions);
+ ASSERT_TRUE(psi.active());
+ ASSERT_EQ(actions.result(), "");
+}
+
+
+TEST(PSInterpreterTest, gsave_grestore) {
+ PSTestActions actions;
+ PSInterpreter psi(&actions);
+ psi.execute("gsave ");
+ ASSERT_EQ(actions.result(), "gsave;");
+ actions.clear();
+
+ psi.execute("grestore ");
+ ASSERT_EQ(actions.result(), "setlinewidth 1;setlinecap 0;setlinejoin 0;setmiterlimit 10;setrgbcolor 0 0 0;setmatrix 1 0 0 1 0 0;setdash 0;grestore;");
+ actions.clear();
+
+ psi.execute("1 setlinecap 5 setmiterlimit 0 1 0 setrgbcolor gsave 0 setlinecap 10 setmiterlimit ");
+ ASSERT_EQ(actions.result(), "setlinecap 1;setmiterlimit 5;setrgbcolor 0 1 0;gsave;setlinecap 0;setmiterlimit 10;");
+ actions.clear();
+
+ psi.execute("grestore ");
+ ASSERT_EQ(actions.result(), "setlinewidth 1;setlinecap 1;setlinejoin 0;setmiterlimit 5;setrgbcolor 0 1 0;setmatrix 1 0 0 1 0 0;setdash 0;grestore;");
+}
+
+
+TEST(PSInterpreterTest, stroke_fill) {
+ PSTestActions actions;
+ PSInterpreter psi(&actions);
+ psi.execute("0 0 moveto 10 10 lineto 0 10 lineto closepath stroke ");
+ ASSERT_EQ(actions.result(), "newpath;moveto 0 0;lineto 10 10;lineto 0 10;closepath;stroke;");
+ actions.clear();
+
+ psi.execute("0 0 moveto 10 10 lineto 0 10 lineto closepath fill ");
+ ASSERT_EQ(actions.result(), "newpath;moveto 0 0;lineto 10 10;lineto 0 10;closepath;fill;");
+}
+
+
+TEST(PSInterpreterTest, clip) {
+ PSTestActions actions;
+ PSInterpreter psi(&actions);
+ psi.execute("initclip ");
+ ASSERT_EQ(actions.result(), "initclip;");
+ actions.clear();
+
+ psi.execute("0 0 moveto 10 10 lineto 0 10 lineto closepath clip ");
+ ASSERT_EQ(actions.result(), "newpath;moveto 0 0;lineto 10 10;lineto 0 10;closepath;clip;");
+}
+
+
+TEST(PSInterpreterTest, transform) {
+ PSTestActions actions;
+ PSInterpreter psi(&actions);
+ psi.execute("10 10 scale 90 rotate 100 -100 translate ");
+ ASSERT_EQ(actions.result(), "scale 10 10;rotate 90;translate 100 -100;");
+}
+
+
+TEST(PSInterpreterTest, calculate) {
+ PSTestActions actions;
+ PSInterpreter psi(&actions);
+ psi.execute("2 3 add 4 mul 5 div rotate ");
+ ASSERT_EQ(actions.result(), "rotate 4;");
+}
+
+
+TEST(PSInterpreterTest, setlinewidth) {
+ PSTestActions actions;
+ PSInterpreter psi(&actions);
+ psi.execute("10 setlinewidth ");
+ ASSERT_EQ(actions.result(), "applyscalevals 1 1 1;setlinewidth 10;");
+ actions.clear();
+
+ psi.execute("5 5 scale 10 setlinewidth ");
+ ASSERT_EQ(actions.result(), "scale 5 5;applyscalevals 5 5 1;setlinewidth 10;");
+ actions.clear();
+
+ psi.execute("90 rotate 10 setlinewidth ");
+ ASSERT_EQ(actions.result(), "rotate 90;applyscalevals 5 5 0;setlinewidth 10;");
+ actions.clear();
+
+ psi.execute("-30 rotate 10 setlinewidth ");
+ ASSERT_EQ(actions.result(), "rotate -30;applyscalevals 5 5 0.5;setlinewidth 10;");
+}
+
+
+TEST(PSInterpreterTest, matrix) {
+ PSTestActions actions;
+ PSInterpreter psi(&actions);
+ psi.execute("matrix setmatrix ");
+ ASSERT_EQ(actions.result(), "setmatrix 1 0 0 1 0 0;");
+ actions.clear();
+ psi.execute("10 100 translate 30 rotate matrix currentmatrix setmatrix ");
+ ASSERT_EQ(actions.result(), "translate 10 100;rotate 30;setmatrix 0.866025 0.5 -0.5 0.866025 10 100;");
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PageRagesTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PageRagesTest.cpp
new file mode 100644
index 00000000000..ec0da0dfb28
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PageRagesTest.cpp
@@ -0,0 +1,167 @@
+/*************************************************************************
+** PageRagesTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <ostream>
+#include "PageRanges.h"
+
+using namespace std;
+
+static ostream& operator << (ostream &os, const PageRanges::Range &r) {
+ return os << '(' << r.first << ',' << r.second << ')';
+}
+
+
+struct Range
+{
+ int l, r;
+};
+
+
+static bool is_equal (const PageRanges &pr, const Range *r) {
+ int i=0;
+ for (PageRanges::ConstIterator it=pr.begin(); it != pr.end(); ++it) {
+ if (it->first != r[i].l || it->second != r[i].r)
+ return false;
+ ++i;
+ }
+ return true;
+}
+
+
+TEST(PageRangesTest, single) {
+ PageRanges pr;
+ ASSERT_TRUE(pr.parse("123"));
+ ASSERT_FALSE(pr.ranges().empty());
+ ASSERT_EQ(pr.ranges().front(), PageRanges::Range(123,123));
+ ASSERT_EQ(pr.pages(), 1);
+}
+
+
+TEST(PageRangesTest, single_range) {
+ PageRanges pr;
+ ASSERT_TRUE(pr.parse("3-19"));
+ ASSERT_FALSE(pr.ranges().empty());
+ ASSERT_EQ(pr.ranges().front(), PageRanges::Range(3,19));
+ ASSERT_EQ(pr.pages(), 17);
+}
+
+
+TEST(PageRangesTest, single_range_inv) {
+ PageRanges pr;
+ ASSERT_TRUE(pr.parse("19-3"));
+ ASSERT_FALSE(pr.ranges().empty());
+ ASSERT_EQ(pr.ranges().front(), PageRanges::Range(3,19));
+ ASSERT_EQ(pr.pages(), 17);
+}
+
+
+TEST(PageRangesTest, single_range_lopen) {
+ PageRanges pr;
+ ASSERT_TRUE(pr.parse("-19"));
+ ASSERT_FALSE(pr.ranges().empty());
+ ASSERT_EQ(pr.ranges().front(), PageRanges::Range(1,19));
+ ASSERT_EQ(pr.pages(), 19);
+}
+
+
+TEST(PageRangesTest, single_range_ropen) {
+ PageRanges pr;
+ ASSERT_TRUE(pr.parse("4-", 100));
+ ASSERT_FALSE(pr.ranges().empty());
+ ASSERT_EQ(pr.ranges().front(), PageRanges::Range(4,100));
+ ASSERT_EQ(pr.pages(), 97);
+}
+
+
+TEST(PageRangesTest, multiple1) {
+ PageRanges pr;
+ ASSERT_TRUE(pr.parse("11,6,9,1,75,6,3"));
+ ASSERT_EQ(pr.size(), 6);
+ Range cmp[] = {{1,1},{3,3},{6,6},{9,9},{11,11},{75,75}};
+ ASSERT_TRUE(is_equal(pr, cmp));
+ ASSERT_EQ(pr.pages(), 6);
+}
+
+
+TEST(PageRangesTest, multiple2) {
+ PageRanges pr;
+ ASSERT_TRUE(pr.parse("2,6,9,1,75,6,3"));
+ ASSERT_EQ(pr.size(), 4);
+ Range cmp[] = {{1,3},{6,6},{9,9},{75,75}};
+ ASSERT_TRUE(is_equal(pr, cmp));
+}
+
+
+TEST(PageRangesTest, multiple3) {
+ PageRanges pr;
+ ASSERT_TRUE(pr.parse("2,6,9-11,1,25-,19-13,6,3", 100));
+ ASSERT_EQ(pr.size(), 5);
+ Range cmp[] = {{1,3},{6,6},{9,11},{13,19},{25,100}};
+ ASSERT_TRUE(is_equal(pr, cmp));
+}
+
+
+TEST(PageRangesTest, overlap1) {
+ PageRanges pr;
+ ASSERT_TRUE(pr.parse("5-11, 8-15"));
+ ASSERT_EQ(pr.size(), 1);
+ Range cmp[] = {{5,15}};
+ ASSERT_TRUE(is_equal(pr, cmp));
+}
+
+
+TEST(PageRangesTest, overlap2) {
+ PageRanges pr;
+ ASSERT_TRUE(pr.parse("23-30, 5-11, 17-23, 12-19"));
+ ASSERT_EQ(pr.size(), 1);
+ Range cmp[] = {{5,30}};
+ ASSERT_TRUE(is_equal(pr, cmp));
+}
+
+
+TEST(PageRangesTest, overlap3) {
+ PageRanges pr;
+ ASSERT_TRUE(pr.parse("22-30, 5-11, 21-23, 12-19"));
+ ASSERT_EQ(pr.size(), 2);
+ Range cmp[] = {{5,19},{21,30}};
+ ASSERT_TRUE(is_equal(pr, cmp));
+}
+
+
+TEST(PageRangesTest, overlap4) {
+ PageRanges pr;
+ ASSERT_TRUE(pr.parse("-15, 20-, 8, 12-16, 18-19", 100));
+ ASSERT_EQ(pr.size(), 2);
+ Range cmp[] = {{1,16},{18,100}};
+ ASSERT_TRUE(is_equal(pr, cmp));
+ ASSERT_TRUE(pr.parse("17"));
+ ASSERT_EQ(pr.size(), 1);
+ ASSERT_EQ(pr.ranges().front(), PageRanges::Range(1,100));
+}
+
+
+TEST(PageRangesTest, error) {
+ PageRanges pr;
+ ASSERT_FALSE(pr.parse("x"));
+ ASSERT_FALSE(pr.parse("5-x"));
+ ASSERT_FALSE(pr.parse("5 6"));
+ ASSERT_FALSE(pr.parse("5,"));
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PageSizeTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PageSizeTest.cpp
new file mode 100644
index 00000000000..cb0bf778f9a
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PageSizeTest.cpp
@@ -0,0 +1,73 @@
+/*************************************************************************
+** PageSizeTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <limits>
+#include "PageSize.h"
+
+
+class PageSizeTest : public ::testing::Test
+{
+ protected:
+ struct PageData
+ {
+ const char *id;
+ double width, height;
+ };
+
+ static const PageData pageData[];
+
+ PageSize ps;
+};
+
+
+const PageSizeTest::PageData PageSizeTest::pageData[] = {
+ {"A4", 210, 297},
+ {"a4", 210, 297},
+ {"a4-p", 210, 297},
+ {"a4-portrait", 210, 297},
+ {"a4-l", 297, 210},
+ {"a4-landscape", 297, 210},
+ {"a5", 148, 210},
+ {"c10", 28, 40},
+ {"letter", 216, 279},
+ {0, 0, 0}
+};
+
+
+TEST_F(PageSizeTest, resize) {
+ EXPECT_FALSE(ps.valid());
+
+ for (const PageData *p = pageData; p && p->id; p++) {
+ ps.resize(p->id);
+ EXPECT_DOUBLE_EQ(ps.widthInMM(), p->width);
+ EXPECT_DOUBLE_EQ(ps.heightInMM(), p->height);
+ }
+}
+
+
+TEST_F(PageSizeTest, exceptions) {
+ EXPECT_THROW(ps.resize("a"), PageSizeException);
+ EXPECT_THROW(ps.resize("e4"), PageSizeException);
+ EXPECT_THROW(ps.resize("a4-unknown"), PageSizeException);
+}
+
+
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PairTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PairTest.cpp
new file mode 100644
index 00000000000..68157243f43
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/PairTest.cpp
@@ -0,0 +1,125 @@
+/*************************************************************************
+** PairTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <sstream>
+#include "Pair.h"
+
+using namespace std;
+
+TEST(PairTest, constructor) {
+ DPair p(-1.5, 2);
+ ASSERT_EQ(p.x(), -1.5);
+ ASSERT_EQ(p.y(), 2);
+ DPair q = p;
+ ASSERT_EQ(q.x(), -1.5);
+ ASSERT_EQ(q.y(), 2);
+}
+
+
+TEST(PairTest, setter) {
+ DPair p(1,2);
+ ASSERT_EQ(p, DPair(1,2));
+ p.x(3);
+ ASSERT_EQ(p, DPair(3,2));
+ p.y(5);
+ ASSERT_EQ(p, DPair(3,5));
+}
+
+
+TEST(PairTest, length) {
+ ASSERT_EQ(DPair(0,0).length(), 0);
+ ASSERT_EQ(DPair(1,0).length(), 1);
+ ASSERT_EQ(DPair(0,1).length(), 1);
+ ASSERT_EQ(DPair(-1,0).length(), 1);
+ ASSERT_EQ(DPair(0,-1).length(), 1);
+
+ // check some Pythagorean triples
+ for (int i=1; i < 10; ++i) {
+ for (int j=i+1; j <= 10; ++j) {
+ int a = j*j-i*i;
+ int b = 2*i*j;
+ int c = j*j+i*i;
+ ASSERT_EQ(DPair(a, b).length(), c);
+ ASSERT_EQ(DPair(b, a).length(), c);
+ ASSERT_EQ(DPair(-a, b).length(), c);
+ ASSERT_EQ(DPair(-b, a).length(), c);
+ ASSERT_EQ(DPair(-a, -b).length(), c);
+ }
+ }
+}
+
+
+TEST(PairTest, add) {
+ ASSERT_EQ(DPair(2,3)+DPair(0,0), DPair(2,3));
+ ASSERT_EQ(DPair(2,3)+DPair(4,5), DPair(6,8));
+ ASSERT_EQ(DPair(2,3)+DPair(-4,-5), DPair(-2,-2));
+}
+
+
+TEST(PairTest, sub) {
+ ASSERT_EQ(DPair(2,3)-DPair(0,0), DPair(2,3));
+ ASSERT_EQ(DPair(2,3)-DPair(4,5), DPair(-2,-2));
+ ASSERT_EQ(DPair(2,3)-DPair(-4,-5), DPair(6,8));
+}
+
+
+TEST(PairTest, mul) {
+ ASSERT_EQ(DPair(2,3)*0.0, DPair(0,0));
+ ASSERT_EQ(DPair(2,3)*1.0, DPair(2,3));
+ ASSERT_EQ(DPair(2,3)*2.0, DPair(4,6));
+ ASSERT_EQ(DPair(2,3)*(-2.0), DPair(-4,-6));
+}
+
+
+TEST(PairTest, div) {
+ ASSERT_EQ(DPair(2,3)/1.0, DPair(2,3));
+ ASSERT_EQ(DPair(2,3)/2.0, DPair(1,1.5));
+ ASSERT_EQ(DPair(2,3)/(-2.0), DPair(-1,-1.5));
+}
+
+
+TEST(PairTest, equality) {
+ ASSERT_TRUE(DPair(2,3) == DPair(2,3));
+ ASSERT_FALSE(DPair(2,3) == DPair(-2,-3));
+ ASSERT_TRUE(DPair(2,3)+DPair(4,5) == DPair(6,8));
+ ASSERT_FALSE(DPair(2,3)+DPair(4,5) != DPair(6,8));
+}
+
+
+TEST(PairTest, ortho) {
+ ASSERT_EQ(DPair(0,0).ortho(), DPair(0,0));
+ ASSERT_EQ(DPair(1,0).ortho(), DPair(0,1));
+ ASSERT_EQ(DPair(0,1).ortho(), DPair(-1,0));
+ ASSERT_EQ(DPair(-1,0).ortho(), DPair(0,-1));
+ ASSERT_EQ(DPair(0,-1).ortho(), DPair(1,0));
+}
+
+
+TEST(PairTest, write) {
+ ostringstream oss;
+ DPair p(3,4);
+ oss << p;
+ ASSERT_EQ(oss.str(), "(3,4)");
+ p *= 2;
+ oss.str("");
+ oss << p;
+ ASSERT_EQ(oss.str(), "(6,8)");
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/SplittedCharInputBufferTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/SplittedCharInputBufferTest.cpp
new file mode 100644
index 00000000000..ff35f1c265c
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/SplittedCharInputBufferTest.cpp
@@ -0,0 +1,181 @@
+/*************************************************************************
+** SplittedCharInputBufferTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <cstring>
+#include <sstream>
+#include "InputBuffer.h"
+#include "InputReader.h"
+
+using std::istringstream;
+
+TEST(SplittedCharInputBufferTest, get) {
+ const char *buf1 = "abcdef";
+ const char *buf2 = "ghijklmnopqrstuvwxyz";
+ SplittedCharInputBuffer buffer(buf1, strlen(buf1), buf2, strlen(buf2));
+ BufferInputReader in(buffer);
+ bool ok=true;
+ for (int i=0; !in.eof() && ok; i++) {
+ EXPECT_LT(i, 26);
+ EXPECT_EQ(in.get(), 'a'+i);
+ ok = (i < 26);
+ }
+}
+
+
+TEST(SplittedCharInputBufferTest, peek) {
+ const char *buf1 = "abcdef";
+ const char *buf2 = "ghijklmnopqrstuvwxyz";
+ SplittedCharInputBuffer buffer(buf1, strlen(buf1), buf2, strlen(buf2));
+ BufferInputReader in(buffer);
+ EXPECT_EQ(in.peek(), 'a');
+ for (int i=0; i < 26; i++)
+ EXPECT_EQ(in.peek(i), 'a'+i);
+ EXPECT_EQ(in.peek(26), -1);
+}
+
+
+TEST(SplittedCharInputBufferTest, check) {
+ const char *buf1 = "abcde";
+ const char *buf2 = "fghijklmnopqrstuvwxyz";
+ SplittedCharInputBuffer buffer(buf1, strlen(buf1), buf2, strlen(buf2));
+ BufferInputReader in(buffer);
+ EXPECT_TRUE(in.check("abc", false));
+ EXPECT_TRUE(in.check("abc", true));
+ EXPECT_TRUE(in.check("def", true));
+ EXPECT_TRUE(in.check("ghi", true));
+ EXPECT_TRUE(in.check("jkl", true));
+ EXPECT_TRUE(in.check("mnopqrst", false));
+ EXPECT_TRUE(in.check("mnopqrst", true));
+ EXPECT_TRUE(in.check("uvwxyz", true));
+ EXPECT_EQ(in.get(), -1);
+}
+
+
+TEST(SplittedCharInputBufferTest, skip) {
+ const char *buf1 = "abcde";
+ const char *buf2 = "fghijklmnopqrstuvwxyz";
+ SplittedCharInputBuffer buffer(buf1, strlen(buf1), buf2, strlen(buf2));
+ BufferInputReader in(buffer);
+ in.skip(3);
+ EXPECT_EQ(in.peek(), 'd');
+ in.skipUntil("ijk", false);
+ EXPECT_EQ(in.peek(), 'i');
+ in.skipUntil("ijk", true);
+ EXPECT_EQ(in.peek(), 'l');
+ in.skipUntil("z", true);
+ EXPECT_TRUE(in.eof());
+}
+
+
+TEST(SplittedCharInputBufferTest, parseInt) {
+ const char *buf1 = "1234,-";
+ const char *buf2 = "5,+6,10.-";
+ SplittedCharInputBuffer buffer(buf1, strlen(buf1), buf2, strlen(buf2));
+ BufferInputReader in(buffer);
+ int n;
+ EXPECT_TRUE(in.parseInt(n));
+ EXPECT_EQ(n, 1234);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_TRUE(in.parseInt(n));
+ EXPECT_EQ(n, -5);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_TRUE(in.parseInt(n));
+ EXPECT_EQ(n, 6);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_TRUE(in.parseInt(n));
+ EXPECT_EQ(n, 10);
+ EXPECT_EQ(in.get(), '.');
+
+ EXPECT_FALSE(in.parseInt(n));
+ EXPECT_EQ(in.get(), '-');
+}
+
+
+TEST(SplittedCharInputBufferTest, parseInt_base) {
+ const char *buf1 = "1234,-5,10,1a";
+ const char *buf2 = "bc,1234a";
+ SplittedCharInputBuffer buffer(buf1, strlen(buf1), buf2, strlen(buf2));
+ BufferInputReader in(buffer);
+ int n;
+ EXPECT_TRUE(in.parseInt(10, n));
+ EXPECT_EQ(n, 1234);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_FALSE(in.parseInt(10, n));
+ in.get();
+ EXPECT_TRUE(in.parseInt(10, n));
+ EXPECT_EQ(n, 5);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_TRUE(in.parseInt(16, n));
+ EXPECT_EQ(n, 16);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_TRUE(in.parseInt(16, n));
+ EXPECT_EQ(n, 0x1abc);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_TRUE(in.parseInt(8, n));
+ EXPECT_EQ(n, 01234);
+ EXPECT_EQ(in.get(), 'a');
+}
+
+
+TEST(SplittedCharInputBufferTest, parseDouble) {
+ const char *buf1 = "1234,-5,6.12,-3";
+ const char *buf2 = ".1415,-.1,12e2,10.-";
+ SplittedCharInputBuffer buffer(buf1, strlen(buf1), buf2, strlen(buf2));
+ BufferInputReader in(buffer);
+ double d;
+ EXPECT_EQ(in.parseDouble(d), 'i');
+ EXPECT_EQ(d, 1234.0);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_EQ(in.parseDouble(d), 'i');
+ EXPECT_EQ(d, -5.0);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_EQ(in.parseDouble(d), 'f');
+ EXPECT_EQ(d, 6.12);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_EQ(in.parseDouble(d), 'f');
+ EXPECT_EQ(d, -3.1415);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_EQ(in.parseDouble(d), 'f');
+ EXPECT_EQ(d, -0.1);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_EQ(in.parseDouble(d), 'f');
+ EXPECT_EQ(d, 1200);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_EQ(in.parseDouble(d), 'f');
+ EXPECT_EQ(d, 10.0);
+ EXPECT_EQ(in.peek(), '-');
+
+ EXPECT_FALSE(in.parseDouble(d));
+ EXPECT_EQ(in.get(), '-');
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/StreamInputBufferTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/StreamInputBufferTest.cpp
new file mode 100644
index 00000000000..8a1fbd103c2
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/StreamInputBufferTest.cpp
@@ -0,0 +1,230 @@
+/*************************************************************************
+** StreamInputBufferTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <map>
+#include <sstream>
+#include <string>
+#include "InputBuffer.h"
+#include "InputReader.h"
+
+using std::istringstream;
+using std::map;
+using std::string;
+
+TEST(StreamInputBufferTest, get) {
+ istringstream iss("abcdefghijklmnopqrstuvwxyz");
+ StreamInputBuffer buffer(iss, 10);
+ BufferInputReader in(buffer);
+ bool ok=true;
+ for (int i=0; !in.eof() && ok; i++) {
+ EXPECT_LT(i, 26);
+ EXPECT_EQ(in.get(), 'a'+i);
+ ok = (i < 26);
+ }
+}
+
+
+TEST(StreamInputBufferTest, peek) {
+ istringstream iss("abcdefghijklmnopqrstuvwxyz");
+ StreamInputBuffer buffer(iss, 10);
+ BufferInputReader in(buffer);
+ EXPECT_EQ(in.peek(), 'a');
+ for (int i=0; i < 20; i++)
+ EXPECT_EQ(in.peek(i), 'a'+i);
+ // we can't look forward more than BUFSIZE characters (10 in this case)
+ for (int i=21; i < 26; i++)
+ EXPECT_EQ(in.peek(i), -1);
+}
+
+
+TEST(StreamInputBufferTest, check) {
+ istringstream iss("abcdefghijklmnopqrstuvwxyz");
+ StreamInputBuffer buffer(iss, 10);
+ BufferInputReader in(buffer);
+ EXPECT_TRUE(in.check("abc", false));
+ EXPECT_TRUE(in.check("abc", true));
+ EXPECT_TRUE(in.check("def", true));
+ EXPECT_TRUE(in.check("ghi", true));
+ EXPECT_TRUE(in.check("jkl", true));
+ EXPECT_TRUE(in.check("mnopqrst", false));
+ EXPECT_TRUE(in.check("mnopqrst", true));
+ EXPECT_TRUE(in.check("uvwxyz", true));
+}
+
+
+TEST(StreamInputBufferTest, skip) {
+ istringstream iss("abcdefghijklmnopqrstuvwxyz");
+ StreamInputBuffer buffer(iss, 10);
+ BufferInputReader in(buffer);
+ in.skip(3);
+ EXPECT_EQ(in.peek(), 'd');
+ in.skipUntil("ijk", false);
+ EXPECT_EQ(in.peek(), 'i');
+ in.skipUntil("ijk", true);
+ EXPECT_EQ(in.peek(), 'l');
+ in.skipUntil("z", true);
+ EXPECT_TRUE(in.eof());
+}
+
+
+TEST(StreamInputBufferTest, parseInt) {
+ istringstream iss("1234,-5,+6,10.-");
+ StreamInputBuffer buffer(iss, 10);
+ BufferInputReader in(buffer);
+ int n;
+ EXPECT_TRUE(in.parseInt(n));
+ EXPECT_EQ(n, 1234);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_TRUE(in.parseInt(n));
+ EXPECT_EQ(n, -5);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_TRUE(in.parseInt(n));
+ EXPECT_EQ(n, 6);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_TRUE(in.parseInt(n));
+ EXPECT_EQ(n, 10);
+ EXPECT_EQ(in.get(), '.');
+
+ EXPECT_FALSE(in.parseInt(n));
+ EXPECT_EQ(in.get(), '-');
+}
+
+
+TEST(StreamInputBufferTest, parseInt_base) {
+ istringstream iss("1234,-5,10,1abc,1234a");
+ StreamInputBuffer buffer(iss, 10);
+ BufferInputReader in(buffer);
+ int n;
+ EXPECT_TRUE(in.parseInt(10, n));
+ EXPECT_EQ(n, 1234);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_FALSE(in.parseInt(10, n));
+ in.get();
+ EXPECT_TRUE(in.parseInt(10, n));
+ EXPECT_EQ(n, 5);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_TRUE(in.parseInt(16, n));
+ EXPECT_EQ(n, 16);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_TRUE(in.parseInt(16, n));
+ EXPECT_EQ(n, 0x1abc);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_TRUE(in.parseInt(8, n));
+ EXPECT_EQ(n, 01234);
+ EXPECT_EQ(in.get(), 'a');
+}
+
+
+TEST(StreamInputBufferTest, parseDouble) {
+ istringstream iss("1234,-5,6.12,-3.1415,-0.5,-.1,12e2,10.-");
+ StreamInputBuffer buffer(iss, 10);
+ BufferInputReader in(buffer);
+ double d;
+ EXPECT_EQ(in.parseDouble(d), 'i');
+ EXPECT_EQ(d, 1234.0);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_EQ(in.parseDouble(d), 'i');
+ EXPECT_EQ(d, -5.0);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_EQ(in.parseDouble(d), 'f');
+ EXPECT_EQ(d, 6.12);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_EQ(in.parseDouble(d), 'f');
+ EXPECT_EQ(d, -3.1415);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_EQ(in.parseDouble(d), 'f');
+ EXPECT_EQ(d, -0.5);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_EQ(in.parseDouble(d), 'f');
+ EXPECT_EQ(d, -0.1);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_EQ(in.parseDouble(d), 'f');
+ EXPECT_EQ(d, 1200);
+ EXPECT_EQ(in.get(), ',');
+
+ EXPECT_EQ(in.parseDouble(d), 'f');
+ EXPECT_EQ(d, 10.0);
+ EXPECT_EQ(in.peek(), '-');
+
+ EXPECT_FALSE(in.parseDouble(d));
+ EXPECT_EQ(in.get(), '-');
+}
+
+
+TEST(StreamInputBufferTest, attribs) {
+ istringstream iss("aaa=1 bbb=2 ccc=3 d e");
+ StreamInputBuffer buffer(iss, 10);
+ BufferInputReader in(buffer);
+ map<string,string> attr;
+ int s = in.parseAttributes(attr);
+ EXPECT_EQ(s, 3);
+ EXPECT_EQ(attr["aaa"], "1");
+ EXPECT_EQ(attr["bbb"], "2");
+ EXPECT_EQ(attr["ccc"], "3");
+}
+
+
+TEST(StreamInputBufferTest, invalidate) {
+ istringstream iss("aaa=1 bbb=2 ccc=3 d e");
+ StreamInputBuffer buffer(iss, 10);
+ EXPECT_EQ(buffer.get(), 'a');
+ EXPECT_EQ(buffer.get(), 'a');
+ EXPECT_EQ(buffer.get(), 'a');
+ EXPECT_EQ(buffer.get(), '=');
+ buffer.invalidate();
+ EXPECT_TRUE(buffer.eof());
+}
+
+
+TEST(StreamInputBufferTest, find) {
+ istringstream iss("abcd efgh ijklmn abc");
+ StreamInputBuffer buffer(iss);
+ BufferInputReader reader(buffer);
+ EXPECT_EQ(reader.find('x'), -1);
+ EXPECT_EQ(reader.find('c'), 2);
+ EXPECT_EQ(reader.find(' '), 4);
+}
+
+
+TEST(StreamInputBufferTest, getString) {
+ istringstream iss("abcd efgh \"ijklm\"n abcdef 01234");
+ StreamInputBuffer buffer(iss);
+ BufferInputReader reader(buffer);
+ EXPECT_EQ(reader.getString(), "abcd");
+ EXPECT_EQ(reader.getString(), "efgh");
+ EXPECT_EQ(reader.getQuotedString('"'), "ijklm");
+ EXPECT_EQ(reader.getQuotedString('"'), "");
+ EXPECT_EQ(reader.getString(4), "n ab");
+ EXPECT_EQ(reader.getQuotedString(0), "cdef");
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/StreamReaderTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/StreamReaderTest.cpp
new file mode 100644
index 00000000000..ba294a87201
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/StreamReaderTest.cpp
@@ -0,0 +1,100 @@
+/*************************************************************************
+** StreamReaderTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <sstream>
+#include <string>
+#include "CRC32.h"
+#include "StreamReader.h"
+
+using namespace std;
+
+TEST(StreamReaderTest, readString) {
+ istringstream iss("dvisvgm converts DVI files to SVG.");
+ StreamReader reader(iss);
+ string str = reader.readString(iss.str().length());
+ EXPECT_EQ(str, iss.str());
+}
+
+
+TEST(StreamReaderTest, readStringCRC) {
+ istringstream iss("dvisvgm converts DVI files to SVG.");
+ StreamReader reader(iss);
+ CRC32 crc;
+ string str = reader.readString(iss.str().length(), crc);
+ EXPECT_EQ(str, iss.str());
+ EXPECT_EQ(crc.get(), 0x7c4ef359);
+}
+
+
+TEST(StreamReaderTest, readUnsigned) {
+ string str;
+ str.push_back('\x00');
+ str.push_back('\x01');
+ str.push_back('\x02');
+ str.push_back('\x03');
+ istringstream iss(str);
+ StreamReader reader(iss);
+ UInt32 val = reader.readUnsigned(4);
+ EXPECT_EQ(val, 0x00010203);
+}
+
+
+TEST(StreamReaderTest, readUnsignedCRC) {
+ string str;
+ str.push_back('\x00');
+ str.push_back('\x01');
+ str.push_back('\x02');
+ str.push_back('\x03');
+ istringstream iss(str);
+ StreamReader reader(iss);
+ CRC32 crc;
+ UInt32 val = reader.readUnsigned(4, crc);
+ EXPECT_EQ(val, 0x00010203);
+ EXPECT_EQ(crc.get(), 0x8bb98613);
+}
+
+
+TEST(StreamReaderTest, readSigned) {
+ string str;
+ str.push_back('\xff');
+ str.push_back('\xee');
+ str.push_back('\xdd');
+ str.push_back('\xcc');
+ istringstream iss(str);
+ StreamReader reader(iss);
+ Int32 val = reader.readUnsigned(4);
+ EXPECT_EQ(val, 0xffeeddcc);
+}
+
+
+TEST(StreamReaderTest, readSignedCRC) {
+ string str;
+ str.push_back('\xff');
+ str.push_back('\xee');
+ str.push_back('\xdd');
+ str.push_back('\xcc');
+ istringstream iss(str);
+ StreamReader reader(iss);
+ CRC32 crc;
+ Int32 val = reader.readUnsigned(4, crc);
+ EXPECT_EQ(val, 0xffeeddcc);
+ EXPECT_EQ(crc.get(), 0xfa79118e);
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/StreamWriterTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/StreamWriterTest.cpp
new file mode 100644
index 00000000000..0e142c205fa
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/StreamWriterTest.cpp
@@ -0,0 +1,114 @@
+/*************************************************************************
+** StreamWriterTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <sstream>
+#include <string>
+#include "CRC32.h"
+#include "StreamWriter.h"
+
+using namespace std;
+
+TEST(StreamWriterTest, writeString) {
+ ostringstream oss;
+ StreamWriter writer(oss);
+ string str = "dvisvgm converts DVI files to SVG.";
+ writer.writeString(str);
+ EXPECT_EQ(oss.str(), str);
+
+ oss.str("");
+ writer.writeString(str, true);
+ str.push_back('\0');
+ EXPECT_EQ(oss.str(), str);
+}
+
+
+TEST(StreamWriterTest, writeStringCRC) {
+ ostringstream oss;
+ StreamWriter writer(oss);
+ CRC32 crc;
+ string str = "dvisvgm converts DVI files to SVG.";
+ writer.writeString(str, crc);
+ EXPECT_EQ(oss.str(), str);
+ EXPECT_EQ(crc.get(), 0x7C4EF359);
+
+ oss.str("");
+ crc.reset();
+ writer.writeString(str, crc, true);
+ str.push_back('\0');
+ EXPECT_EQ(oss.str(), str);
+ EXPECT_EQ(crc.get(), 0xc0c9482e);
+}
+
+
+TEST(StreamWriterTest, writeUnsigned) {
+ ostringstream oss;
+ StreamWriter writer(oss);
+ writer.writeUnsigned(0x00010203, 4);
+ string str;
+ str.push_back('\x00');
+ str.push_back('\x01');
+ str.push_back('\x02');
+ str.push_back('\x03');
+ EXPECT_EQ(oss.str(), str);
+}
+
+
+TEST(StreamWriterTest, writeUnsignedCRC) {
+ ostringstream oss;
+ StreamWriter writer(oss);
+ CRC32 crc;
+ writer.writeUnsigned(0x00010203, 4, crc);
+ string str;
+ str.push_back('\x00');
+ str.push_back('\x01');
+ str.push_back('\x02');
+ str.push_back('\x03');
+ EXPECT_EQ(oss.str(), str);
+ EXPECT_EQ(crc.get(), 0x8bb98613);
+}
+
+
+TEST(StreamWriterTest, writeSigned) {
+ ostringstream oss;
+ StreamWriter writer(oss);
+ writer.writeUnsigned(0xffeeddcc, 4);
+ string str;
+ str.push_back('\xff');
+ str.push_back('\xee');
+ str.push_back('\xdd');
+ str.push_back('\xcc');
+ EXPECT_EQ(oss.str(), str);
+}
+
+
+TEST(StreamWriterTest, writeSignedCRC) {
+ ostringstream oss;
+ StreamWriter writer(oss);
+ CRC32 crc;
+ writer.writeUnsigned(0xffeeddcc, 4, crc);
+ string str;
+ str.push_back('\xff');
+ str.push_back('\xee');
+ str.push_back('\xdd');
+ str.push_back('\xcc');
+ EXPECT_EQ(oss.str(), str);
+ EXPECT_EQ(crc.get(), 0xfa79118e);
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/SubfontTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/SubfontTest.cpp
new file mode 100644
index 00000000000..de93aafcbaf
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/SubfontTest.cpp
@@ -0,0 +1,96 @@
+/*************************************************************************
+** SubfontTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2012 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include "FileFinder.h"
+#include "Subfont.h"
+
+using namespace std;
+
+
+class SubfontTest : public ::testing::Test
+{
+ protected:
+ void SetUp () {
+ FileFinder::init("SubfontTest", "SubfontTest", false);
+ }
+
+ void TearDown () {
+ FileFinder::finish();
+ }
+};
+
+
+TEST_F(SubfontTest, collect_subfonts) {
+ try {
+ if (SubfontDefinition *sfd = SubfontDefinition::lookup("sample")) {
+ vector<Subfont*> subfonts;
+ const char *ids_cmp[] = {"00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "x1"};
+ int size = sizeof(ids_cmp)/sizeof(Subfont*);
+ EXPECT_EQ(sfd->subfonts(subfonts), size);
+ for (int i=0; i < size; i++) {
+ EXPECT_EQ(subfonts[i]->id(), ids_cmp[i]);
+ }
+ }
+ }
+ catch (SubfontException &e) {
+ FAIL() << e.what();
+ }
+}
+
+
+TEST_F(SubfontTest, read_table) {
+ try {
+ if (SubfontDefinition *sfd = SubfontDefinition::lookup("sample")) {
+ // check scanning of single value entries
+ Subfont *subfont = sfd->subfont("02");
+ ASSERT_TRUE(subfont != 0);
+ EXPECT_EQ(subfont->id(), "02");
+ EXPECT_EQ(subfont->decode(0), 0xff45);
+ EXPECT_EQ(subfont->decode(1), 0xff46);
+ EXPECT_EQ(subfont->decode(2), 0xff47);
+ EXPECT_EQ(subfont->decode(8), 0xff4d);
+ EXPECT_EQ(subfont->decode(32), 0x3047);
+ EXPECT_EQ(subfont->decode(255), 0x03ba);
+
+ // check scanning of ranges
+ subfont = sfd->subfont("x1");
+ ASSERT_TRUE(subfont != 0);
+ EXPECT_EQ(subfont->id(), "x1");
+ EXPECT_EQ(subfont->decode(0), 0x0010);
+ EXPECT_EQ(subfont->decode(1), 0x0011);
+ EXPECT_EQ(subfont->decode(2), 0x0012);
+ EXPECT_EQ(subfont->decode(0x20), 0x0030);
+ EXPECT_EQ(subfont->decode(0x21), 0x1010);
+ EXPECT_EQ(subfont->decode(0x41), 0x1030);
+ EXPECT_EQ(subfont->decode(0x42), 0xe000);
+ EXPECT_EQ(subfont->decode(0x43), 0);
+
+ //check scanning of offset values
+ EXPECT_EQ(subfont->decode(0x9f), 0);
+ EXPECT_EQ(subfont->decode(0xa0), 0x1000);
+ EXPECT_EQ(subfont->decode(0xa1), 0x2000);
+ EXPECT_EQ(subfont->decode(0xa2), 0);
+ }
+ }
+ catch (SubfontException &e) {
+ FAIL() << e.what() << " in line " << e.lineno();
+ }
+}
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/TypesTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/TypesTest.cpp
new file mode 100644
index 00000000000..11cb44fc191
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/TypesTest.cpp
@@ -0,0 +1,57 @@
+/*************************************************************************
+** TypesTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include "types.h"
+
+using namespace std;
+
+
+TEST(TypesTest, size_signed) {
+ ASSERT_EQ(sizeof(Int8), 1);
+ ASSERT_EQ(sizeof(Int16), 2);
+ ASSERT_EQ(sizeof(Int32), 4);
+ ASSERT_EQ(sizeof(Int64), 8);
+}
+
+
+TEST(TypesTest, neg_signed) {
+ ASSERT_LT(Int8(-1), 0);
+ ASSERT_LT(Int16(-1), 0);
+ ASSERT_LT(Int32(-1), 0);
+ ASSERT_LT(Int64(-1), 0);
+}
+
+
+TEST(TypesTest, unsigned_types) {
+ ASSERT_EQ(sizeof(UInt8), 1);
+ ASSERT_EQ(sizeof(UInt16), 2);
+ ASSERT_EQ(sizeof(UInt32), 4);
+ ASSERT_EQ(sizeof(UInt64), 8);
+}
+
+
+TEST(TypesTest, neg_unsigned) {
+ ASSERT_GT(UInt8(-1), 0);
+ ASSERT_GT(UInt16(-1), 0);
+ ASSERT_GT(UInt32(-1), 0);
+ ASSERT_GT(UInt64(-1), 0);
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/VectorStreamTest.cpp b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/VectorStreamTest.cpp
new file mode 100644
index 00000000000..2d5d0b0bc3e
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/VectorStreamTest.cpp
@@ -0,0 +1,42 @@
+/*************************************************************************
+** VectorStreamTest.cpp **
+** **
+** This file is part of dvisvgm -- the DVI to SVG converter **
+** Copyright (C) 2005-2013 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+*************************************************************************/
+
+#include <gtest/gtest.h>
+#include <vector>
+#include "VectorStream.h"
+
+using std::string;
+using std::vector;
+
+TEST(VectorStreamTest, read) {
+ const char *str = "abcdefghijklm\0nopqrstuvwxyz";
+ vector<char> vec(str, str+27);
+ VectorInputStream<char> vs(vec);
+ for (unsigned count = 0; vs; count++) {
+ int c = vs.get();
+ if (count < vec.size()) {
+ EXPECT_EQ(c, str[count]);
+ }
+ else {
+ EXPECT_EQ(c, -1);
+ }
+ }
+}
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/check-conv b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/check-conv
new file mode 100755
index 00000000000..9aeda3a2d74
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/check-conv
@@ -0,0 +1,50 @@
+#!/bin/bash
+# This file is part of the dvisvgm package and published under the
+# terms of the GNU General Public License version 3 or later.
+# See file COPYING for further details.
+# (C) 2009-2012 Martin Gieseking <martin.gieseking@uos.de>
+
+
+files=(sample frktest)
+state=0
+
+BLUE="\E[0;34m"
+GREEN="\E[0;32m"
+RED="\E[0;31m"
+COLOR_OFF="\E[0m"
+
+if [ \! -e enable-check-conv ]; then
+ echo -e "${BLUE}conversion checks skipped${COLOR_OFF}"
+ exit 0
+fi
+
+for f in ${files[@]}; do
+ for m in "wf" "nf"; do
+ infile=${srcdir}/$f
+ outfile=$f-$m.svg
+ cmpfile=${srcdir}/$f-$m-cmp.svg
+ if [ $m = "wf" ]; then
+ ../src/dvisvgm -v0 -o$outfile $infile
+ else
+ ../src/dvisvgm -v0 -n -o$outfile $infile
+ fi
+ xsltproc --novalid ${srcdir}/normalize.xsl $outfile | xmllint --format - >tmp1.svg
+ xsltproc --novalid ${srcdir}/normalize.xsl $cmpfile | xmllint --format - >tmp2.svg
+ mv tmp1.svg $outfile
+
+ diff $outfile tmp2.svg >$f-$m.diff #>/dev/null
+ if [ $? -ne 0 ]; then
+ echo -en "${RED}FAILED $COLOR_OFF"
+ state=1
+ else
+ echo -en "${GREEN}PASSED $COLOR_OFF"
+ rm $outfile
+ fi
+ echo "converting $f.dvi (mode $m)"
+ if [ \! -s $f-$m.diff ]; then
+ rm $f-$m.diff
+ fi
+ rm tmp2.svg
+ done
+done
+exit $state
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/cmr10.600gf b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/cmr10.600gf
new file mode 100644
index 00000000000..6dca421e21c
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/cmr10.600gf
Binary files differ
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/frktest-nf-cmp.svg b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/frktest-nf-cmp.svg
new file mode 100644
index 00000000000..372662c6b95
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/frktest-nf-cmp.svg
@@ -0,0 +1,1223 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="440.209pt" version="1.1" viewBox="-13.4025 53.7983 396.851 440.209" width="396.851pt">
+ <defs>
+ <path id="g1" d="M0 -9.144C0.3744 -8.8704 0.7776 -8.5104 0.7776 -7.8912V-7.56V-2.1312C0.5472 -1.8144 0.3456 -1.4544 0.1584 -1.08C0.9648 -0.6336 1.6992 -0.1296 2.5488 0.2736L2.7072 0.216C3.1824 -0.0576 3.672 -0.3312 4.1328 -0.6192H4.1472L4.5072 -0.36C4.8528 -0.1584 5.1264 0.1152 5.5152 0.2736L5.6592 0.216C6.408 -0.2016 7.1424 -0.6192 7.848 -1.0656C7.8192 -1.1952 7.7616 -1.2816 7.7184 -1.3824C7.7184 -2.8224 7.704 -4.2768 7.7328 -5.688L7.8768 -6.0048L5.7456 -7.056C5.6016 -6.696 5.4 -6.3504 5.1264 -6.0624C5.0832 -6.0192 4.896 -5.8032 4.824 -5.8032C4.7664 -5.8032 4.7232 -5.8608 4.68 -5.904C4.5936 -5.976 3.2976 -7.128 3.2688 -7.128L1.9872 -5.616V-7.5888V-8.064C1.9872 -8.3088 2.0016 -8.5392 2.0736 -8.7696C2.16 -9.072 2.4192 -9.4464 2.8224 -9.4464C3.024 -9.4464 3.1392 -9.3312 3.1968 -9.1296C3.2544 -9.1728 3.3408 -9.2304 3.3408 -9.3312C3.3408 -9.5328 3.1104 -9.6336 2.9232 -9.6336C2.592 -9.6336 2.3472 -9.4608 2.1312 -9.3312L1.5696 -8.9712C1.4976 -8.928 1.1952 -8.6976 1.1232 -8.6976H1.1088C1.0224 -8.6976 0.936 -8.8128 0.864 -8.856L0.4032 -9.2304C0.36 -9.2736 0.288 -9.3456 0.216 -9.3456S0 -9.2016 0 -9.144ZM6.3936 -0.5616C5.9328 -0.8928 5.4144 -1.1664 4.9824 -1.5408L4.9536 -1.8144V-5.1408C5.1408 -5.3712 5.3568 -5.5728 5.616 -5.7456C5.9472 -5.6304 6.2208 -5.472 6.4944 -5.2992C6.4944 -5.2992 6.5088 -4.9968 6.5088 -4.9968C6.5088 -3.5424 6.5232 -2.0736 6.4944 -0.6624L6.3936 -0.5616ZM3.4272 -1.08C3.5568 -0.9936 3.5568 -0.9072 3.5568 -0.7632C3.5568 -0.6912 3.528 -0.6048 3.4416 -0.6048S3.096 -0.792 3.096 -0.792L2.3472 -1.224C2.2032 -1.3104 1.9872 -1.3536 1.9872 -1.5984V-1.7568V-4.824V-4.9536C1.9872 -5.2128 2.1456 -5.3136 2.2752 -5.4576L2.592 -5.8176C2.6208 -5.8608 2.6784 -5.9616 2.7504 -5.9616C2.8368 -5.9616 2.9088 -5.8608 2.9664 -5.8176L3.3984 -5.4288C3.4704 -5.3712 3.5424 -5.3136 3.5568 -5.2128V-1.8432C3.5568 -1.7424 3.5712 -1.6272 3.5712 -1.512C3.5712 -1.4544 3.5712 -1.4112 3.5568 -1.3536C3.528 -1.2528 3.456 -1.1808 3.4272 -1.08Z"/>
+ <path id="g2" d="M0.012 -4.488H0.432C0.432 -2.208 0.516 -0.984 0.732 1.236C0.768 1.524 0.828 1.824 0.84 2.124H1.092L1.176 0.876H1.188C1.392 1.356 1.98 1.728 2.532 1.728C2.748 1.728 2.952 1.68 3.144 1.584C3.888 1.212 4.236 0.216 4.236 -0.792C4.236 -0.996 4.224 -1.188 4.188 -1.38C4.044 -2.076 3.624 -2.724 3.036 -3.12C2.856 -3.252 2.652 -3.36 2.436 -3.432C2.76 -3.756 3.108 -4.14 3.108 -4.752C3.108 -5.304 2.832 -5.736 2.496 -6.048H2.484L1.824 -5.208L1.464 -4.728C1.428 -4.824 1.404 -4.932 1.368 -5.028S1.032 -5.832 1.032 -5.892C1.044 -5.94 1.068 -5.988 1.092 -6.024C1.272 -6.336 1.62 -6.612 2.04 -6.612C2.268 -6.612 2.472 -6.516 2.64 -6.444C2.676 -6.528 3.012 -7.332 3.012 -7.392C3.012 -7.5 2.892 -7.512 2.808 -7.524L2.784 -7.44C2.556 -7.548 2.328 -7.692 2.052 -7.692C1.704 -7.692 1.452 -7.464 1.296 -7.164C1.056 -6.648 0.852 -5.808 0.624 -5.34C0.48 -5.016 0.204 -4.776 0.012 -4.488ZM1.488 -2.904C1.512 -3.216 1.548 -3.54 1.548 -3.852C1.548 -3.936 1.536 -4.032 1.536 -4.116C1.536 -4.212 1.524 -4.296 1.512 -4.392C1.512 -4.416 1.512 -4.428 1.512 -4.452C1.512 -4.584 1.656 -4.632 1.776 -4.632C2.124 -4.632 2.316 -4.272 2.316 -3.996C2.316 -3.6 2.004 -3.312 1.716 -3.084C1.644 -3.024 1.572 -2.964 1.488 -2.904ZM2.88 1.092C2.688 1.272 2.424 1.38 2.16 1.38C1.596 1.38 1.236 0.78 1.236 0.216C1.236 0.096 1.428 -2.316 1.44 -2.376C1.452 -2.424 1.488 -2.448 1.536 -2.448C1.608 -2.448 1.692 -2.412 1.728 -2.4C2.676 -2.196 3.384 -1.212 3.384 -0.228C3.384 0.324 3.216 0.792 2.88 1.092Z"/>
+ <path id="g3" d="M0.012 -4.488H0.432C0.432 -2.232 0.564 -0.156 0.828 1.98C0.828 2.064 0.852 2.136 0.972 2.136C1.008 2.136 1.056 2.124 1.092 2.124C1.092 1.968 1.32 -0.84 1.416 -2.088C1.464 -2.652 1.548 -3.228 1.548 -3.792C1.548 -4.248 1.5 -4.704 1.332 -5.136C1.296 -5.22 1.044 -5.796 1.044 -5.88C1.044 -6 1.164 -6.144 1.212 -6.192C1.416 -6.432 1.728 -6.612 2.052 -6.612C2.232 -6.6 2.376 -6.528 2.544 -6.492C2.4 -6.06 2.256 -5.64 2.076 -5.244L1.512 -4.488H1.944C1.944 -4.416 1.932 -4.332 1.932 -4.26C1.932 -4.08 1.944 -3.912 1.944 -3.732C1.956 -2.472 2.004 -1.212 2.124 0.048C2.184 0.744 2.232 1.44 2.352 2.124H2.592C2.628 1.644 3.048 -3.696 3.048 -3.828C3.048 -4.284 3 -4.74 2.82 -5.16L2.604 -5.688C2.58 -5.748 2.544 -5.82 2.544 -5.88C2.544 -5.988 2.664 -6.132 2.7 -6.18C2.892 -6.42 3.216 -6.612 3.552 -6.612C3.768 -6.612 3.972 -6.504 4.152 -6.444L4.548 -7.44L4.32 -7.536L4.296 -7.44C4.056 -7.548 3.816 -7.692 3.54 -7.692C3.396 -7.692 3.276 -7.644 3.168 -7.584C3.12 -7.56 3.06 -7.488 3 -7.476C2.94 -7.476 2.868 -7.512 2.82 -7.536L2.784 -7.44C2.58 -7.548 2.304 -7.692 2.04 -7.692C1.344 -7.692 1.14 -6.756 0.96 -6.228C0.864 -5.928 0.756 -5.616 0.624 -5.328C0.48 -5.016 0.216 -4.764 0.012 -4.488Z"/>
+ <path id="g4" d="M0.012 -4.488H0.432C0.432 -2.376 0.516 -0.672 0.744 1.332C0.78 1.596 0.828 1.86 0.84 2.124H1.092C1.092 1.956 1.2 0.66 1.2 0.66L1.416 -2.112C1.464 -2.112 1.548 -3.804 1.548 -3.804S1.536 -4.488 1.5 -4.488H2.604V-5.088H1.488C1.452 -5.088 1.404 -5.088 1.356 -5.112C1.32 -5.136 1.308 -5.184 1.296 -5.22C1.236 -5.328 1.032 -5.844 1.032 -5.892C1.044 -5.952 1.08 -6.012 1.104 -6.06C1.296 -6.348 1.62 -6.612 2.052 -6.612C2.292 -6.612 2.46 -6.516 2.64 -6.444C2.772 -6.768 2.904 -7.104 3.036 -7.44L2.808 -7.524L2.784 -7.44C2.556 -7.548 2.328 -7.692 2.052 -7.692C1.32 -7.692 1.14 -6.756 0.948 -6.192C0.864 -5.904 0.744 -5.616 0.624 -5.34C0.48 -5.016 0.204 -4.776 0.012 -4.488Z"/>
+ <path id="g5" d="M0.012 -4.488H0.432C0.432 -2.4 0.516 -0.636 0.744 1.332C0.78 1.596 0.828 1.86 0.84 2.124H1.092C1.092 1.956 1.344 -1.236 1.428 -2.256C1.476 -2.256 1.536 -3.816 1.536 -3.816S1.524 -4.488 1.5 -4.488H1.932C1.932 -2.4 2.016 -0.636 2.244 1.332C2.28 1.596 2.328 1.86 2.34 2.124H2.592C2.592 1.956 2.844 -1.236 2.928 -2.256C2.976 -2.256 3.036 -3.816 3.036 -3.816S3.024 -4.488 3 -4.488H4.104V-5.088H2.976C2.94 -5.088 2.892 -5.088 2.856 -5.112S2.796 -5.196 2.784 -5.232C2.748 -5.34 2.532 -5.868 2.532 -5.88C2.532 -5.952 2.58 -6.012 2.616 -6.072C2.796 -6.336 3.12 -6.612 3.54 -6.612C3.78 -6.612 3.96 -6.516 4.14 -6.444L4.536 -7.44L4.308 -7.524L4.284 -7.44C4.044 -7.548 3.792 -7.692 3.516 -7.692C3.384 -7.692 3.264 -7.656 3.168 -7.596C3.108 -7.56 3.06 -7.488 2.988 -7.488C2.952 -7.488 2.808 -7.5 2.808 -7.524L2.784 -7.44C2.568 -7.536 2.316 -7.692 2.064 -7.692C1.332 -7.692 1.116 -6.744 0.948 -6.168C0.9 -6.024 0.828 -5.88 0.78 -5.736C0.72 -5.604 0.684 -5.46 0.624 -5.328C0.48 -5.004 0.204 -4.776 0.012 -4.488ZM2.544 -6.492C2.46 -6.24 2.376 -5.988 2.28 -5.736L2.136 -5.376C2.076 -5.244 2.028 -5.088 1.836 -5.088C1.788 -5.088 1.74 -5.088 1.704 -5.088H1.476C1.332 -5.088 1.308 -5.16 1.26 -5.292L1.104 -5.676C1.08 -5.736 1.032 -5.808 1.032 -5.88C1.032 -5.976 1.116 -6.072 1.164 -6.144C1.356 -6.396 1.656 -6.612 2.028 -6.612C2.256 -6.612 2.34 -6.552 2.544 -6.492Z"/>
+ <path id="g6" d="M0.012 -4.488H0.444C0.432 -4.44 0.432 -4.392 0.432 -4.344C0.432 -4.284 0.432 -4.236 0.432 -4.188C0.432 -4.02 0.432 -3.852 0.444 -3.684C0.444 -3.684 0.444 -3.072 0.444 -3.072C0.444 -2.208 0.624 0.036 0.66 0.444C0.708 1.008 0.756 1.572 0.852 2.124H1.092C1.116 1.596 1.176 1.08 1.212 0.552C1.272 -0.276 1.332 -1.092 1.404 -1.92C1.44 -2.328 1.548 -3.432 1.548 -3.792C1.548 -4.272 1.488 -4.728 1.308 -5.172C1.284 -5.22 1.044 -5.844 1.044 -5.892C1.044 -6 1.176 -6.156 1.212 -6.192C1.416 -6.456 1.728 -6.6 2.052 -6.6C2.304 -6.6 2.448 -6.504 2.652 -6.444C2.784 -6.768 2.916 -7.104 3.048 -7.44L2.82 -7.524L2.796 -7.44C2.568 -7.548 2.34 -7.692 2.064 -7.692C1.332 -7.692 1.128 -6.744 0.948 -6.18C0.864 -5.892 0.744 -5.616 0.624 -5.34C0.492 -5.016 0.216 -4.776 0.012 -4.488Z"/>
+ <path id="g7" d="M0.1152 -5.7312H0.72V-1.8864V-1.6704C0.72 -1.584 0.72 -1.512 0.6912 -1.4544C0.648 -1.3968 0.432 -1.1664 0.432 -1.08C0.4608 -0.9792 0.6336 -0.8064 0.6768 -0.7632L1.3104 -0.0144C1.3536 0.0288 1.512 0.2736 1.584 0.2736C1.6416 0.2736 1.7136 0.216 1.7712 0.1872L2.1744 -0.0432C2.304 -0.1152 3.6864 -0.9216 3.7584 -0.9504C3.7296 -1.0224 3.672 -1.1952 3.5568 -1.1952C3.528 -1.1952 3.4992 -1.1808 3.4704 -1.1664L2.4048 -0.5472C2.2464 -0.7488 2.088 -0.936 1.944 -1.152C1.9008 -2.6352 1.944 -4.2192 1.9296 -5.7312H3.1392V-6.6528H1.9296C1.9296 -7.2576 2.0016 -7.848 2.088 -8.4528L1.7856 -8.4384L1.6272 -8.2368L0.1152 -5.7312Z"/>
+ <path id="g8" d="M0.1584 -1.1088V-1.0944C0.72 -0.6768 1.2384 -0.2304 1.8144 0.1584L1.9728 0.0864C2.4624 -0.3024 2.9664 -0.6768 3.4272 -1.0944L3.456 -1.4112C3.2976 -1.296 3.024 -1.0944 2.7648 -1.0944C2.1888 -1.0944 2.1168 -1.7424 2.1024 -2.1888C2.1024 -2.2752 2.088 -2.3472 2.088 -2.4336V-4.3344V-8.1504C2.088 -8.2512 2.1024 -8.3376 2.1024 -8.4384C2.16 -8.9712 2.4336 -9.7344 3.1392 -9.7344V-10.0512C2.88 -9.9792 2.6208 -9.8928 2.3616 -9.8208L0.9216 -9.3744C0.7344 -9.3168 0.5616 -9.2736 0.3744 -9.216C0.2448 -9.1584 0.1584 -9.1872 0.1584 -8.9856C0.1584 -8.928 0.1584 -8.856 0.1872 -8.8272C0.2304 -8.7984 0.3024 -8.784 0.3456 -8.7552C0.6048 -8.64 0.72 -8.352 0.72 -8.0064V-7.8912V-2.9088V-2.6352C0.72 -2.0304 0.4608 -1.4688 0.1584 -1.1088Z"/>
+ <path id="g9" d="M0.1584 -1.5552V-0.7344H0.3744C0.432 -0.7344 0.5184 -0.7344 0.576 -0.72C0.7056 -0.6912 1.4688 -0.288 1.728 -0.144C1.8 -0.1008 2.2608 0.1728 2.3472 0.1728C2.4768 0.1728 2.6064 0.0144 2.664 -0.0288L3.1824 -0.3888L4.1184 -1.0368C4.608 -1.3968 5.2128 -1.8432 5.2128 -2.6496C5.2128 -3.1824 4.9248 -3.744 4.5216 -4.0752C4.2912 -4.2768 4.0032 -4.392 3.7152 -4.4784L5.112 -6.1488C5.0544 -6.2064 4.968 -6.3216 4.8816 -6.3216C4.8384 -6.3216 4.7952 -6.2928 4.7664 -6.2784C4.6656 -6.2064 4.536 -6.1488 4.3488 -6.1488C3.8592 -6.1488 3.4704 -6.4512 3.1968 -6.6528C3.1248 -6.696 2.9088 -6.8688 2.808 -6.8688C2.7216 -6.8688 2.2032 -6.4512 2.0304 -6.3216C1.4112 -5.832 0.1584 -5.1408 0.1584 -4.1184C0.1584 -4.0752 0.1584 -4.032 0.1728 -3.9888C0.2448 -3.5856 0.6336 -3.2688 0.9072 -2.9808C1.08 -2.7936 1.2672 -2.5632 1.2672 -2.2896C1.2672 -2.2032 1.2528 -2.1168 1.2096 -2.0448C1.008 -1.6272 0.576 -1.5552 0.1584 -1.5552ZM3.6288 -4.8816L2.7792 -3.8736C2.736 -3.816 2.52 -3.528 2.448 -3.528H2.4336C2.3904 -3.528 2.3472 -3.5712 2.304 -3.6C1.9008 -3.9024 1.1664 -4.2336 1.1664 -4.8528C1.1664 -5.2416 1.4688 -5.6448 1.9152 -5.6448C2.1312 -5.6448 2.3472 -5.5728 2.5344 -5.4864C2.7072 -5.4 3.4992 -4.9248 3.6288 -4.8816ZM1.512 -1.8432C1.7568 -2.1744 2.0304 -2.4768 2.304 -2.7936L2.5056 -3.0384C2.5632 -3.096 2.6208 -3.1824 2.736 -3.1824S3.24 -3.096 3.2544 -3.096C3.7584 -2.952 4.2912 -2.5488 4.3056 -1.9728C4.3056 -1.8432 4.2912 -1.7136 4.2192 -1.5984C4.0464 -1.3392 3.7296 -1.1376 3.312 -1.1376C2.8368 -1.1376 2.376 -1.3824 2.0592 -1.5552C1.8864 -1.656 1.6992 -1.7712 1.512 -1.8432Z"/>
+ <path id="g10" d="M0.1584 -5.1264H0.9648C1.0944 -2.4912 1.2816 0.0576 1.5552 2.5488H1.6416C1.6848 2.5488 1.728 2.5488 1.7568 2.52C1.7856 2.5056 1.8432 2.1888 1.8576 2.088C2.1456 0.3744 2.3904 -1.5408 2.5344 -3.312C2.5632 -3.6144 2.664 -4.8816 2.664 -5.1264H3.8448V-6.0336H2.9664H2.8368C2.6784 -6.0336 2.52 -6.048 2.376 -6.12C2.0736 -6.2784 1.8576 -6.8256 1.8576 -7.2288C1.8576 -7.5744 1.9872 -7.92 2.2896 -8.136C2.4048 -8.2224 2.5344 -8.2944 2.736 -8.2944C2.9664 -8.2944 3.168 -8.1936 3.384 -8.064C3.5568 -7.9488 3.7728 -7.7904 3.9744 -7.7904C4.1472 -7.7904 4.2192 -7.992 4.2912 -8.1072L4.7376 -8.7408C4.824 -8.856 4.9104 -8.9856 4.9824 -9.1152C4.9248 -9.1584 4.824 -9.2448 4.7376 -9.2448H4.7088C4.5792 -9.1872 4.5792 -8.9856 4.4208 -8.9856H4.3776C4.0176 -9.0576 3.8016 -9.4464 3.4128 -9.4608C1.9728 -9.4608 1.6416 -8.0928 1.2096 -7.1136C0.9648 -6.5232 0.7632 -6.0336 0.3168 -5.5872C0.2304 -5.5008 0.1584 -5.472 0.1584 -5.2704V-5.1264Z"/>
+ <path id="g11" d="M0.1584 -5.1264H0.9648C1.0944 -2.4912 1.2816 0.0576 1.5552 2.5488H1.6416C1.7568 2.5488 1.8 2.5056 1.8 2.376C2.1168 0.9648 2.4912 -2.6784 2.5632 -3.6576C2.592 -3.888 2.6784 -5.1408 2.6784 -5.3136C2.6784 -5.3856 2.6928 -5.4432 2.6928 -5.5152C2.6784 -5.616 2.6208 -5.688 2.5632 -5.76C2.2608 -6.1488 1.8576 -6.6672 1.8576 -7.2144S2.232 -8.2944 2.7504 -8.2944C2.9952 -8.2944 3.2256 -8.1648 3.4416 -8.0208C3.6 -7.9344 3.8016 -7.7904 3.9888 -7.7904H4.0176C4.1184 -7.8192 4.2624 -8.064 4.2912 -8.1072L4.7376 -8.7408C4.824 -8.856 4.9104 -8.9856 4.9824 -9.1152C4.9248 -9.1584 4.824 -9.2448 4.7376 -9.2448H4.7088C4.5792 -9.1872 4.5792 -8.9856 4.4208 -8.9856H4.3776C4.0176 -9.0576 3.8016 -9.4464 3.4128 -9.4608C1.9728 -9.4608 1.6416 -8.0928 1.2096 -7.1136C0.9648 -6.5232 0.7632 -6.0336 0.3168 -5.5872C0.2304 -5.5008 0.1584 -5.472 0.1584 -5.2704V-5.1264Z"/>
+ <path id="g12" d="M0.204 -0.696H0.468C0.48 -0.768 0.504 -0.828 0.552 -0.876L0.684 -0.924C0.684 -0.924 0.732 -0.924 0.732 -0.924C0.852 -0.912 0.96 -0.888 1.068 -0.84C1.428 -0.672 1.692 -0.372 1.992 -0.12C2.064 -0.06 2.304 0.144 2.412 0.144C2.472 0.144 2.544 0.108 2.592 0.072C3.216 -0.24 3.72 -0.744 4.056 -1.32C4.152 -1.488 4.26 -1.668 4.308 -1.86C4.26 -1.884 4.176 -1.932 4.104 -1.932S4.032 -1.872 4.008 -1.812C3.84 -1.416 3.696 -0.936 3.144 -0.936C2.952 -0.948 2.772 -1.032 2.616 -1.128C2.304 -1.344 1.788 -1.92 1.368 -1.98C1.812 -2.34 2.544 -2.592 2.544 -3.372C2.484 -4.632 1.176 -5.304 1.176 -6.492C1.176 -6.684 1.2 -6.852 1.26 -6.996C1.452 -7.524 1.932 -7.992 2.604 -7.992C3.156 -7.992 3.516 -7.548 3.516 -7.068C3.516 -6.468 2.976 -6.012 2.712 -5.496C2.628 -5.304 2.556 -5.112 2.556 -4.908C2.556 -4.788 2.58 -4.668 2.64 -4.548C2.796 -4.224 3.252 -3.816 3.6 -3.816C3.984 -3.816 4.14 -4.176 4.176 -4.512H3.9C3.9 -4.344 3.828 -4.092 3.6 -4.092C3.252 -4.092 3 -4.332 3 -4.644C3 -4.8 3.072 -4.944 3.18 -5.076C3.396 -5.328 3.696 -5.484 3.9 -5.748C4.008 -5.904 4.032 -6.048 4.032 -6.24C4.032 -6.504 3.972 -6.78 3.888 -7.032C3.672 -7.644 3.252 -8.46 2.388 -8.46C2.28 -8.46 2.16 -8.448 2.04 -8.424C1.26 -8.28 0.648 -7.704 0.372 -6.972C0.264 -6.708 0.204 -6.408 0.204 -6.108C0.204 -5.952 0.216 -5.784 0.264 -5.628C0.492 -4.656 1.584 -3.864 1.584 -2.844C1.584 -2.772 1.584 -2.688 1.56 -2.616C1.44 -2.256 1.032 -2.076 0.756 -1.848C0.42 -1.56 0.204 -1.14 0.204 -0.696Z"/>
+ <path id="g13" d="M0.204 -4.536H0.564V-1.692C0.564 -1.596 0.564 -1.5 0.564 -1.404C0.564 -1.032 0.492 -0.744 0.204 -0.564L0.384 -0.408C0.636 -0.312 0.864 -0.192 1.08 -0.06C1.176 0.012 1.26 0.084 1.38 0.132L1.5 0.024L2.604 -1.2V-1.212C2.556 -1.248 2.484 -1.32 2.424 -1.332C2.364 -1.332 2.316 -1.26 2.28 -1.224L2.076 -0.996C2.028 -0.948 1.992 -0.876 1.92 -0.876C1.872 -0.876 1.836 -0.912 1.8 -0.936C1.68 -1.008 1.536 -1.068 1.416 -1.152C1.368 -1.2 1.368 -1.26 1.368 -1.32C1.368 -1.344 1.368 -1.368 1.368 -1.392V-4.536H2.34V-5.148H1.38C1.416 -5.7 1.512 -6.18 1.608 -6.672L1.38 -6.66L1.284 -6.516L0.204 -4.536Z"/>
+ <path id="g14" d="M0.204 -4.536H0.564V-1.704C0.564 -1.596 0.576 -1.476 0.576 -1.356C0.576 -1.008 0.48 -0.732 0.204 -0.564C0.396 -0.36 0.672 -0.3 0.912 -0.168C1.032 -0.072 1.152 -0.06 1.152 0.156C1.176 0.252 1.2 0.336 1.236 0.42C1.428 0.84 1.824 1.188 2.412 1.188C2.556 1.188 2.688 1.176 2.82 1.14C3.612 0.924 4.116 0.096 4.116 -0.828C4.116 -1.692 3.684 -2.556 2.988 -3.072C2.784 -3.216 2.556 -3.36 2.304 -3.432V-3.444C2.436 -3.516 2.532 -3.66 2.628 -3.78C2.82 -4.044 2.988 -4.356 2.988 -4.764C2.988 -5.28 2.7 -5.832 2.352 -6.048C2.1 -5.712 1.884 -5.196 1.392 -5.148C1.392 -5.508 1.452 -5.88 1.524 -6.228C1.548 -6.372 1.596 -6.528 1.608 -6.672L1.38 -6.66L1.284 -6.516L0.204 -4.536ZM1.368 -2.904V-4.392C1.368 -4.56 1.464 -4.632 1.632 -4.632C2.004 -4.632 2.184 -4.272 2.184 -3.984C2.184 -3.492 1.704 -3.18 1.368 -2.904ZM1.368 -2.448C2.352 -2.316 3.036 -1.56 3.204 -0.684C3.24 -0.54 3.264 -0.396 3.264 -0.252C3.264 -0.036 3.204 0.168 3.072 0.36C2.856 0.624 2.52 0.852 2.1 0.852C1.92 0.852 1.74 0.792 1.608 0.648C1.524 0.552 1.404 0.324 1.404 0.192C1.404 0.18 1.404 0.18 1.404 0.168C1.428 0.072 1.596 -0.072 1.632 -0.12C1.716 -0.216 2.28 -0.792 2.28 -0.888C2.28 -0.936 2.172 -1.008 2.124 -1.008C2.052 -1.008 1.992 -0.888 1.956 -0.84C1.764 -0.948 1.56 -1.056 1.392 -1.188C1.32 -1.548 1.392 -2.04 1.368 -2.448Z"/>
+ <path id="g15" d="M0.216 -1.14V-1.116C0.504 -0.948 1.884 -0.096 2.088 0.048C2.124 0.084 2.172 0.132 2.232 0.132C2.232 0.132 2.244 0.132 2.244 0.132C2.28 0.12 2.868 -0.564 3.132 -0.984C3.624 -1.764 3.828 -2.712 3.828 -3.636C3.828 -4.488 3.66 -5.184 3.264 -5.808L1.176 -4.968L0.66 -4.752C0.54 -4.704 0.468 -4.716 0.468 -4.536C0.468 -4.488 0.468 -4.452 0.468 -4.416V-1.728C0.468 -1.704 0.468 -1.68 0.468 -1.656C0.468 -1.488 0.456 -1.332 0.324 -1.212L0.216 -1.14ZM2.712 -0.828C2.688 -0.792 2.652 -0.72 2.604 -0.72C2.568 -0.72 2.544 -0.732 2.52 -0.744C2.148 -0.984 2.028 -1.056 1.572 -1.332L1.38 -1.452C1.308 -1.5 1.26 -1.524 1.26 -1.644C1.26 -1.704 1.272 -1.764 1.272 -1.812V-3.936C1.272 -3.996 1.272 -4.68 1.272 -4.68C1.296 -4.776 1.44 -4.812 1.524 -4.836C1.776 -4.944 2.04 -5.04 2.292 -5.148C2.352 -5.172 2.448 -5.232 2.52 -5.232C2.556 -5.232 2.58 -5.22 2.604 -5.196C2.652 -5.112 2.688 -5.004 2.724 -4.908C2.988 -4.212 3.096 -3.312 3.096 -2.4C3.096 -1.824 2.976 -1.164 2.712 -0.828Z"/>
+ <path id="g16" d="M0.264 -7.02C0.252 -6.996 0.156 -6.612 0.156 -6.588C0.156 -6.48 0.264 -6.408 0.312 -6.348C0.468 -6.12 0.552 -5.868 0.552 -5.496C0.552 -5.352 0.54 -5.208 0.54 -5.064V-2.16C0.54 -2.076 0.54 -1.992 0.54 -1.908C0.54 -1.68 0.504 -1.524 0.372 -1.38C0.276 -1.284 0.204 -1.308 0.204 -1.104V-0.876C0.708 -0.792 1.212 -0.552 1.62 -0.264C1.704 -0.204 1.8 -0.144 1.86 -0.072C1.884 -0.036 1.872 0 1.896 0.036C1.92 0.096 2.016 0.132 2.076 0.156C2.364 -0.336 2.712 -0.792 3 -1.284C3.432 -2.004 3.78 -2.844 3.78 -3.696C3.78 -4.524 3.456 -5.148 3.048 -5.592C3.024 -5.616 2.832 -5.808 2.808 -5.808L1.356 -4.68C1.356 -4.896 1.344 -5.112 1.344 -5.328C1.344 -5.856 1.392 -6.384 1.728 -6.828C1.944 -7.116 2.304 -7.38 2.772 -7.38V-7.74C2.016 -7.74 1.404 -7.296 0.924 -6.864C0.876 -6.816 0.816 -6.72 0.744 -6.72C0.744 -6.72 0.732 -6.72 0.732 -6.72C0.672 -6.72 0.384 -6.96 0.264 -7.02ZM2.604 -1.104C2.196 -1.344 1.776 -1.572 1.38 -1.824L1.356 -2.016C1.368 -2.82 1.32 -3.636 1.38 -4.356C1.632 -4.596 1.92 -4.812 2.196 -5.028C2.724 -4.572 3.072 -3.936 3.072 -3.024C3.072 -2.568 3 -2.124 2.892 -1.752C2.82 -1.524 2.7 -1.32 2.604 -1.104Z"/>
+ <path id="g17" d="M0.3312 -5.6448L0.504 -5.3712C0.5472 -4.0896 0.5184 -2.7072 0.504 -1.44C0.4176 -1.1952 0.3024 -0.9792 0.2016 -0.7488L2.0736 0.144L1.5696 0.7344L0.1008 2.3904H0.3168C0.576 2.3904 0.6192 2.2752 0.7632 2.1312C0.9504 1.944 1.1808 1.7568 1.4976 1.7568C1.7136 1.7568 1.9584 1.8144 2.1744 1.8432C2.664 1.9008 4.3776 2.1456 4.4352 2.1456C4.464 2.1456 4.4784 2.1456 4.5072 2.1312C4.6224 2.088 4.7376 1.9296 4.824 1.8432L6.0192 0.648C6.0768 0.5904 6.2064 0.4896 6.2064 0.4032C6.2064 0.3312 5.9472 -0.072 5.8752 -0.216L5.2128 -1.368C5.0976 -1.5552 4.8816 -1.8 4.8816 -2.088V-2.2608V-5.184C4.968 -5.1552 5.3136 -5.112 5.3856 -5.112C5.7024 -5.112 5.7888 -5.3568 5.904 -5.5728C6.048 -5.8608 6.2064 -6.1488 6.336 -6.4368L6.0768 -6.2928L5.76 -6.3072L2.952 -6.7104L3.0384 -6.84C2.9808 -6.8688 2.5632 -7.0992 2.5056 -7.0992C2.4192 -7.0992 2.3472 -6.9696 2.304 -6.9264C1.8432 -6.4656 1.4544 -6.1488 0.792 -5.832C0.648 -5.76 0.4896 -5.7168 0.3312 -5.6448ZM1.728 -5.6448L3.672 -5.3568V-1.9728C3.672 -1.9152 3.6864 -1.8432 3.6864 -1.7712C3.6864 -1.584 3.5856 -1.5264 3.4848 -1.4112L3.1392 -1.0224C3.0816 -0.9648 2.9952 -0.8208 2.8944 -0.8208C2.808 -0.8208 2.6928 -0.8928 2.6352 -0.9216L2.0016 -1.224C1.872 -1.3104 1.728 -1.3104 1.728 -1.5408V-1.7136V-5.6448ZM2.1168 0.6192L3.8448 -1.3104C4.2768 -0.5184 4.7376 0.2448 5.184 1.0224C4.1616 0.8928 3.168 0.72 2.1168 0.6192Z"/>
+ <path id="g18" d="M0.3744 -1.1664V-1.152C0.4608 -1.0656 0.576 -1.0224 0.6912 -0.9648L1.08 -0.792L2.5488 -0.144L3.0528 0.0864C3.1104 0.1152 3.1968 0.1584 3.2544 0.1584H3.2832C3.3984 0.1584 3.5136 0.0144 3.6 -0.0576L4.3632 -0.648C5.4576 -1.4688 6.7824 -2.6496 6.7824 -4.176C6.7824 -5.112 6.3504 -6.0048 5.5728 -6.5232C5.4432 -6.6096 4.9824 -6.8832 4.8096 -6.8832C4.7952 -6.8832 4.7664 -6.8688 4.752 -6.8688C4.6656 -6.8544 4.0896 -6.4368 4.0896 -6.4368L2.592 -5.3856C2.5056 -5.832 2.1312 -6.3504 1.8864 -6.5952C1.8288 -6.6528 1.6416 -6.8688 1.5264 -6.8688C1.44 -6.8544 1.3536 -6.768 1.296 -6.7248L0.792 -6.336L0.36 -6.0192C0.3168 -5.976 0.216 -5.9328 0.2016 -5.8752C0.2016 -5.832 0.2304 -5.8032 0.2592 -5.7888C0.3312 -5.7168 0.4176 -5.6592 0.4896 -5.5872C1.0224 -5.112 1.4976 -4.32 1.4976 -3.384C1.4976 -2.9088 1.368 -2.4336 1.1232 -2.016C0.936 -1.6848 0.6624 -1.4112 0.3744 -1.1664ZM1.8144 -2.1312C1.9152 -2.304 2.0736 -2.4624 2.1744 -2.6352C2.5056 -3.1536 2.7216 -3.8016 2.7216 -4.5648V-4.6944C2.7216 -4.7808 2.7072 -4.8672 2.6928 -4.9536V-5.0544C2.6928 -5.1552 2.7648 -5.1984 2.8224 -5.256C3.0384 -5.4288 3.2688 -5.6016 3.6288 -5.6016C3.7008 -5.6016 3.7872 -5.6016 3.8592 -5.5872C4.7952 -5.4432 5.4432 -4.4352 5.4432 -3.384C5.4432 -2.5344 5.0256 -1.7712 4.5648 -1.2528C4.5216 -1.1808 4.4352 -1.0368 4.32 -1.0368C4.2624 -1.0368 3.6432 -1.3248 3.6432 -1.3248C3.0384 -1.584 2.4336 -1.8864 1.8144 -2.1312Z"/>
+ <path id="g19" d="M0.468 -3.888H0.204C0.204 -3.384 0.432 -2.76 1.056 -2.76C1.236 -2.76 1.404 -2.808 1.512 -2.868C1.908 -3.084 2.22 -3.528 2.22 -4.116C2.22 -4.512 2.016 -4.788 1.8 -5.004C1.416 -5.388 0.492 -5.712 0.468 -6.396C0.468 -6.516 0.492 -6.648 0.528 -6.768C0.648 -7.212 0.948 -7.548 1.488 -7.548C1.812 -7.548 2.136 -7.44 2.4 -7.236C3.06 -6.792 3.3 -5.7 3.384 -4.8C3.444 -4.2 3.468 -3.6 3.468 -3C3.468 -1.944 3.468 -0.672 2.832 -0.252C2.64 -0.144 2.592 -0.144 2.328 -0.108C2.328 -0.108 2.1 -0.12 2.1 -0.144C1.74 -0.252 1.476 -0.612 1.476 -0.984C1.476 -1.236 1.584 -1.488 1.764 -1.656C1.86 -1.74 1.968 -1.8 2.076 -1.848L1.908 -2.052C1.584 -1.86 1.32 -1.68 0.816 -1.656C0.672 -1.656 0.516 -1.668 0.372 -1.68C0.432 -1.524 0.468 -1.368 0.468 -1.212C0.468 -0.984 0.396 -0.78 0.3 -0.624C0.276 -0.588 0.228 -0.54 0.228 -0.492C0.228 -0.42 0.324 -0.3 0.396 -0.3C0.432 -0.3 0.48 -0.324 0.504 -0.348C0.6 -0.396 0.708 -0.432 0.816 -0.432C1.236 -0.432 1.572 -0.096 1.932 0.072C2.064 0.132 2.22 0.156 2.364 0.156C2.724 0.156 3.096 0 3.372 -0.216C4.152 -0.876 4.428 -2.148 4.428 -3.456C4.428 -3.6 4.416 -3.732 4.416 -3.864L4.38 -4.596C4.38 -4.692 4.356 -4.776 4.356 -4.872C4.368 -4.944 4.428 -4.968 4.488 -4.992C4.572 -5.04 4.692 -5.076 4.788 -5.076C4.824 -5.076 4.86 -5.076 4.896 -5.064C5.052 -5.016 5.064 -4.848 5.076 -4.704L5.4 -2.184C5.46 -1.296 5.736 -0.36 6.204 0.156C6.624 -0.42 7.068 -0.984 7.476 -1.584L7.248 -1.716C7.188 -1.62 7.104 -1.524 7.032 -1.428C6.996 -1.368 6.924 -1.272 6.828 -1.272C6.756 -1.272 6.684 -1.32 6.636 -1.368C6.312 -1.692 6.3 -2.268 6.24 -2.82C6.24 -2.82 5.964 -5.088 5.916 -5.388C5.916 -5.424 5.832 -5.736 5.832 -5.772S5.88 -5.832 5.916 -5.856L6.156 -6L6.6 -6.252C6.696 -6.312 6.804 -6.336 6.804 -6.48C6.804 -6.54 6.792 -6.6 6.792 -6.636C6.48 -6.684 6.564 -7.056 6.504 -7.332C6.456 -7.776 6.168 -8.148 5.844 -8.352C5.784 -8.388 5.724 -8.436 5.652 -8.436C5.652 -8.436 5.64 -8.436 5.64 -8.436C5.568 -8.436 5.532 -8.376 5.484 -8.34C5.388 -8.268 5.292 -8.208 5.184 -8.16C4.524 -7.836 4.212 -7.884 3.78 -7.248C3.492 -7.884 2.892 -8.46 2.004 -8.46C0.948 -8.46 0.324 -7.584 0.216 -6.696C0.204 -6.504 0.204 -6.312 0.204 -6.12V-5.352C0.204 -5.304 0.204 -5.244 0.204 -5.196C0.204 -5.04 0.216 -4.896 0.324 -4.764C0.528 -4.56 1.032 -4.452 1.272 -4.356C1.512 -4.272 1.68 -4.104 1.68 -3.804C1.68 -3.456 1.416 -3.024 1.032 -3.024C0.6 -3.024 0.468 -3.576 0.468 -3.888ZM4.32 -5.208C4.284 -5.616 4.2 -6.024 4.104 -6.408L3.996 -6.756C3.972 -6.756 3.948 -6.936 3.948 -6.936C4.02 -7.26 4.5 -7.548 4.788 -7.548C4.92 -7.548 5.04 -7.512 5.148 -7.416C5.412 -7.2 5.46 -6.78 5.52 -6.456C5.544 -6.348 5.604 -6.048 5.604 -6.012C5.604 -5.94 5.532 -5.916 5.484 -5.88L4.32 -5.208Z"/>
+ <path id="g20" d="M0.516 -5.796C0.504 -5.88 0.492 -5.964 0.492 -6.048C0.492 -6.9 0.876 -7.548 1.296 -8.028C1.344 -8.088 1.488 -8.196 1.488 -8.28C1.488 -8.34 1.44 -8.412 1.368 -8.412S1.224 -8.34 1.176 -8.292C0.648 -7.764 0.228 -7.02 0.228 -6.036C0.228 -5.772 0.276 -5.496 0.384 -5.256S0.72 -4.788 1.02 -4.788C1.176 -4.788 1.356 -4.836 1.488 -4.944C1.62 -5.064 1.68 -5.244 1.68 -5.424C1.68 -5.808 1.416 -6.072 1.032 -6.072C0.828 -6.072 0.612 -5.988 0.516 -5.796ZM2.856 -5.808C2.856 -5.904 2.844 -6.012 2.844 -6.108C2.88 -6.924 3.216 -7.596 3.708 -8.088C3.756 -8.136 3.852 -8.196 3.852 -8.28C3.852 -8.292 3.84 -8.304 3.84 -8.316C3.84 -8.364 3.756 -8.412 3.72 -8.412C3.66 -8.412 3.612 -8.376 3.564 -8.328C3.024 -7.824 2.58 -6.996 2.58 -6.084C2.58 -5.46 2.784 -4.788 3.396 -4.788C3.768 -4.788 4.032 -5.076 4.032 -5.424C4.032 -5.604 3.972 -5.772 3.852 -5.904C3.732 -6.012 3.564 -6.072 3.384 -6.072C3.132 -6.072 2.988 -5.952 2.856 -5.808Z"/>
+ <path id="g21" d="M0.6 -4.368C0.54 -4.332 0.432 -4.248 0.432 -4.176C0.432 -4.116 0.48 -4.068 0.516 -4.032C0.696 -3.804 1.008 -3.612 1.368 -3.612C1.92 -3.612 2.292 -4.104 2.292 -4.704S1.8 -5.64 1.416 -5.856C1.128 -6.012 0.492 -6.144 0.492 -6.6C0.492 -6.756 0.564 -6.912 0.624 -7.056C0.756 -7.344 0.924 -7.788 1.332 -7.788C1.68 -7.788 2.004 -7.572 2.184 -7.428C2.796 -6.876 3.24 -6.012 3.384 -5.088C3.42 -4.908 3.444 -4.704 3.444 -4.512C3.444 -3.804 3.144 -3.276 2.796 -2.844C2.7 -2.724 2.4 -2.316 2.232 -2.316C2.196 -2.316 2.148 -2.328 2.112 -2.328C2.088 -2.328 1.752 -2.34 1.752 -2.328C1.128 -2.292 0.564 -1.692 0.564 -1.008C0.564 -0.756 0.648 -0.588 0.768 -0.432C0.792 -0.396 0.84 -0.336 0.888 -0.336C0.888 -0.336 0.9 -0.336 0.9 -0.336C0.984 -0.336 1.056 -0.432 1.092 -0.492C0.948 -0.612 0.84 -0.804 0.84 -0.984C0.84 -1.296 1.164 -1.464 1.476 -1.464C1.56 -1.464 1.644 -1.464 1.716 -1.452C2.712 -1.332 3.552 -0.672 4.2 -0.072C4.236 -0.036 4.404 0.132 4.452 0.132C4.476 0.132 4.56 0.12 4.56 0.096L4.752 -0.012L5.532 -0.468C5.832 -0.636 6.168 -0.792 6.432 -1.02C6.792 -1.308 7.128 -1.8 7.128 -2.388C7.128 -2.904 6.828 -3.216 6.576 -3.504C6.264 -3.84 5.712 -4.272 5.712 -4.872C5.724 -5.076 5.892 -5.244 6.024 -5.388C6.336 -5.712 6.72 -6.012 7.128 -6.216C7.092 -6.288 7.068 -6.384 7.02 -6.432C6.972 -6.492 6.876 -6.492 6.816 -6.54C6.708 -6.612 6.612 -6.708 6.54 -6.828C6.192 -7.392 6.24 -8.46 5.376 -8.46C4.716 -8.46 4.224 -8.016 3.996 -7.596C3.912 -7.452 3.84 -7.296 3.804 -7.128L3.528 -7.56C3.192 -7.992 2.688 -8.46 1.968 -8.46C1.896 -8.46 1.824 -8.448 1.752 -8.448C0.828 -8.316 0.324 -7.332 0.228 -6.492C0.216 -6.384 0.204 -6.276 0.204 -6.168C0.204 -5.82 0.348 -5.58 0.456 -5.328C0.504 -5.148 0.66 -5.184 0.84 -5.136C1.2 -5.052 1.812 -4.92 1.812 -4.404C1.812 -4.152 1.656 -3.876 1.38 -3.876C1.02 -3.876 0.768 -4.128 0.6 -4.368ZM5.82 -5.556C5.472 -5.196 4.968 -4.836 4.968 -4.164C4.968 -4.08 4.968 -3.996 4.992 -3.912C5.136 -3.408 5.808 -3.084 6.12 -2.784C6.336 -2.568 6.48 -2.388 6.48 -2.028C6.48 -1.464 6.096 -0.864 5.448 -0.864C5.4 -0.864 5.352 -0.864 5.304 -0.876C4.824 -0.984 4.512 -1.428 4.176 -1.644C3.888 -1.848 3.564 -2.004 3.228 -2.124C3.06 -2.172 2.88 -2.208 2.712 -2.256C3.036 -2.484 3.36 -2.712 3.66 -2.964C4.056 -3.312 4.356 -3.672 4.356 -4.38C4.356 -5.196 4.248 -5.988 4.032 -6.6C4.008 -6.672 3.888 -6.924 3.888 -7.008C3.9 -7.092 3.948 -7.188 3.972 -7.272C4.116 -7.596 4.368 -7.86 4.74 -7.86C4.752 -7.86 4.752 -7.86 4.764 -7.86C5.112 -7.86 5.268 -7.56 5.316 -7.296C5.424 -6.72 5.244 -5.676 5.82 -5.556Z"/>
+ <path id="g22" d="M0.6048 -8.352C0.432 -8.0208 0.2016 -7.5312 0.2016 -7.1136C0.2016 -6.984 0.2448 -6.9408 0.3456 -6.912C0.6192 -6.7536 1.7856 -6.192 1.8288 -6.1776C1.584 -5.9328 1.3392 -5.7168 1.0944 -5.4864C0.9504 -5.3712 0.7776 -5.256 0.7776 -5.0112V-4.8672V-2.5056C0.7776 -2.4192 0.792 -1.656 0.7632 -1.656C0.7488 -1.584 0.4608 -1.1088 0.4608 -1.0944L1.9584 -0.0864C2.1456 0.0432 2.3184 0.1872 2.5488 0.2736L2.7648 0.1872L4.9104 -1.0512L4.7664 -1.3536C4.7232 -2.7648 4.752 -4.3056 4.7664 -5.7024L4.9104 -6.0048C3.5568 -6.6816 2.16 -7.3296 0.8352 -8.0352L0.6336 -8.352H0.6048ZM3.4272 -0.5616C2.9664 -0.8928 2.448 -1.1808 2.016 -1.5408L1.9872 -1.8C1.9872 -3.0816 1.9728 -4.3632 2.0016 -5.6016C2.0592 -5.7312 2.0736 -5.904 2.1888 -5.976C2.6496 -5.7744 3.096 -5.5584 3.5136 -5.3136L3.5424 -5.04C3.5424 -3.5712 3.5568 -2.088 3.528 -0.6624L3.4272 -0.5616Z"/>
+ <path id="g23" d="M0.6192 -8.3664C0.4176 -8.0352 0.2016 -7.56 0.2016 -7.1136C0.2016 -7.0704 0.2016 -7.0272 0.216 -6.9984C0.2736 -6.9264 0.6048 -6.7824 0.6336 -6.768L1.3968 -6.3936C1.5408 -6.3216 1.6848 -6.2352 1.8432 -6.1776C1.4976 -5.832 1.1232 -5.5296 0.792 -5.1696L0.7776 -4.9968V-1.6704L0.4752 -1.08C1.1808 -0.6336 1.8144 -0.144 2.5488 0.2736L2.7072 0.216C3.1824 -0.0576 3.672 -0.3312 4.1328 -0.6192H4.1472L4.5072 -0.36C4.8528 -0.1584 5.1264 0.1152 5.5152 0.2736L5.6592 0.216C6.408 -0.2016 7.1424 -0.6192 7.848 -1.0656C7.8192 -1.1952 7.7616 -1.2816 7.7184 -1.3824C7.7184 -2.8224 7.704 -4.2768 7.7328 -5.688L7.8768 -6.0048L5.7456 -7.056C5.5296 -6.5232 5.1984 -6.1056 4.7808 -5.7312L4.9248 -6.0048L3.744 -6.5808C2.7792 -7.0704 1.7856 -7.5312 0.8352 -8.0352L0.6192 -8.3664ZM3.4272 -1.08C3.5568 -0.9936 3.5568 -0.9072 3.5568 -0.7632C3.5568 -0.6768 3.5136 -0.6048 3.4272 -0.6048H3.4128C3.3552 -0.6048 3.024 -0.8352 3.024 -0.8352L2.3616 -1.2816C2.232 -1.3824 1.9872 -1.4544 1.9872 -1.6992V-1.7856V-4.9968V-5.2416C1.9872 -5.4144 1.9872 -5.5728 2.0304 -5.7312C2.0592 -5.8032 2.1024 -5.9616 2.2176 -5.9616C2.2464 -5.9616 2.2752 -5.9616 2.2896 -5.9472C2.3616 -5.9184 2.9952 -5.5872 3.2544 -5.472C3.4272 -5.3856 3.5712 -5.3856 3.5712 -5.1264C3.5712 -5.0544 3.5568 -4.9824 3.5568 -4.9104V-1.7136V-1.4688C3.5568 -1.2384 3.4992 -1.3104 3.4272 -1.08ZM6.3936 -0.5616C5.9328 -0.8928 5.4144 -1.1664 4.9824 -1.5408L4.9536 -1.8144V-5.1408C5.1408 -5.3712 5.3568 -5.5728 5.616 -5.7456C5.9472 -5.6304 6.2208 -5.472 6.4944 -5.2992C6.4944 -5.2992 6.5088 -4.9968 6.5088 -4.9968C6.5088 -3.5424 6.5232 -2.0736 6.4944 -0.6624L6.3936 -0.5616Z"/>
+ <path id="g24" d="M0.684 -4.692V-1.5C0.684 -1.44 0.684 -1.368 0.684 -1.296C0.684 -1.068 0.66 -0.816 0.42 -0.72V-0.468C0.6 -0.408 0.732 -0.264 0.828 -0.108C0.888 0 0.912 0.168 1.092 0.168C1.128 0.168 1.176 0.156 1.212 0.156C1.284 -0.12 1.464 -0.384 1.752 -0.468C1.752 -0.504 1.752 -0.54 1.752 -0.576C1.752 -0.624 1.752 -0.66 1.74 -0.696C1.716 -0.756 1.632 -0.792 1.596 -0.84C1.524 -0.936 1.5 -1.056 1.488 -1.176C1.476 -1.176 1.488 -2.832 1.488 -4.152C1.488 -4.224 1.476 -4.68 1.512 -4.68C1.536 -4.728 1.584 -4.752 1.632 -4.788L1.884 -4.98C1.92 -5.004 2.1 -5.148 2.16 -5.148C2.232 -5.148 2.328 -5.052 2.352 -5.028L2.664 -4.812C2.748 -4.74 2.856 -4.716 2.856 -4.56C2.856 -4.512 2.844 -4.452 2.844 -4.416V-1.452C2.844 -1.404 2.844 -1.368 2.844 -1.32C2.844 -1.14 2.832 -0.972 2.664 -0.852C2.616 -0.816 2.568 -0.804 2.52 -0.78C2.64 -0.684 2.784 -0.612 2.916 -0.528L3.636 -0.084C3.684 -0.048 3.96 0.132 4.02 0.132C4.104 0.132 4.176 0.012 4.212 -0.024C4.368 -0.18 4.512 -0.348 4.668 -0.504C5.328 -1.224 6 -2.148 6 -3.24C6 -3.432 5.988 -3.636 5.952 -3.828C5.772 -4.608 5.22 -5.196 4.74 -5.808H4.728C4.368 -5.556 4.044 -5.244 3.66 -5.016L3.552 -5.064C3.228 -5.304 2.88 -5.532 2.58 -5.808C2.316 -5.628 2.064 -5.424 1.812 -5.232C1.704 -5.16 1.548 -4.98 1.404 -4.98C1.08 -4.98 0.84 -5.268 0.84 -5.52C0.84 -5.628 0.888 -5.7 0.984 -5.76C1.044 -5.784 1.164 -5.832 1.164 -5.916C1.164 -5.988 1.08 -6.048 1.044 -6.096C0.924 -6.036 0.816 -5.964 0.696 -5.904C0.48 -5.796 0.204 -5.688 0.204 -5.376C0.204 -5.04 0.42 -4.752 0.684 -4.692ZM4.176 -5.088C4.692 -4.536 5.328 -3.72 5.388 -2.88C5.388 -2.88 5.376 -2.34 5.364 -2.34C5.232 -1.74 5.028 -1.344 4.692 -0.912C4.644 -0.852 4.536 -0.696 4.452 -0.696C4.38 -0.708 4.32 -0.768 4.26 -0.804L3.852 -1.056C3.756 -1.116 3.648 -1.14 3.648 -1.296C3.648 -1.356 3.66 -1.416 3.66 -1.464V-4.392C3.66 -4.44 3.66 -4.476 3.66 -4.524C3.66 -4.704 3.708 -4.716 3.828 -4.812C3.948 -4.896 4.08 -4.98 4.176 -5.088Z"/>
+ <path id="g25" d="M0.732 -3.324C0.756 -3.252 0.804 -3.084 0.912 -3.084C0.936 -3.084 0.984 -3.096 1.008 -3.108C1.644 -3.228 2.124 -3.792 2.124 -4.44C2.124 -5.016 1.668 -5.352 1.308 -5.556C0.948 -5.772 0.468 -6.012 0.468 -6.492C0.468 -6.948 0.588 -7.632 1.188 -7.632C1.26 -7.632 1.344 -7.62 1.416 -7.608C1.884 -7.488 2.232 -7.092 2.4 -6.66C2.544 -6.288 2.58 -5.892 2.58 -5.496C2.58 -5.292 2.568 -5.076 2.568 -4.872V-1.956L1.956 -2.208C1.788 -1.668 1.644 -1.224 1.332 -0.78C1.296 -0.744 1.224 -0.648 1.224 -0.588S1.356 -0.456 1.416 -0.42C1.608 -0.672 1.884 -0.912 2.208 -0.912C2.22 -0.912 2.22 -0.912 2.232 -0.912C2.376 -0.912 2.58 -0.864 2.58 -0.672C2.58 -0.624 2.568 -0.564 2.568 -0.528C2.568 0.348 2.664 0.912 2.784 1.764C2.82 1.764 2.88 1.776 2.928 1.776C3.084 1.776 3.084 1.704 3.144 1.584C3.36 1.056 3.564 0.372 3.588 -0.252C3.888 -0.084 4.2 0.072 4.512 0.228C4.596 0.084 4.668 -0.06 4.74 -0.216C4.788 -0.324 4.836 -0.456 4.908 -0.552C4.968 -0.624 5.052 -0.672 5.124 -0.732C5.256 -0.84 5.4 -0.96 5.52 -1.092C6.072 -1.704 6.564 -2.484 6.564 -3.42C6.564 -4.728 5.76 -5.46 5.76 -6.756C5.76 -7.008 5.784 -7.272 5.844 -7.524C5.892 -7.728 5.976 -7.92 6.036 -8.124C5.22 -8.1 4.416 -7.692 3.984 -7.26C3.804 -7.08 3.612 -6.852 3.528 -6.612C3.468 -6.792 3.42 -6.984 3.348 -7.164C3.072 -7.824 2.544 -8.46 1.596 -8.46C1.488 -8.46 1.38 -8.436 1.284 -8.4C0.504 -8.148 0.192 -7.224 0.192 -6.42C0.192 -5.892 0.396 -5.22 0.636 -4.836C0.684 -4.752 0.72 -4.68 0.852 -4.68C0.9 -4.68 0.96 -4.68 0.996 -4.68C1.044 -4.68 1.08 -4.668 1.128 -4.668C1.392 -4.656 1.788 -4.572 1.788 -4.224C1.788 -3.66 1.272 -3.312 0.852 -3.312C0.804 -3.312 0.768 -3.324 0.732 -3.324ZM4.836 -7.536C4.8 -7.152 4.752 -6.768 4.752 -6.372C4.752 -5.28 5.268 -4.632 5.556 -3.768C5.64 -3.492 5.712 -3.192 5.712 -2.904C5.712 -2.88 5.712 -2.868 5.712 -2.844C5.712 -2.136 5.376 -1.416 4.956 -0.996C4.908 -0.948 4.848 -0.876 4.788 -0.852C4.764 -0.852 4.68 -0.852 4.68 -0.888C4.62 -0.912 4.56 -0.948 4.5 -0.984L3.912 -1.308C3.78 -1.38 3.612 -1.392 3.612 -1.584V-5.58C3.612 -5.772 3.612 -5.964 3.648 -6.156C3.78 -6.768 4.272 -7.284 4.836 -7.536Z"/>
+ <path id="g26" d="M0.7344 -8.6688L0.216 -9.3744C0.144 -9.3312 0.0144 -9.2592 0.0144 -9.1584C0.0144 -9.072 0.1152 -9 0.144 -8.9568C0.3744 -8.5824 0.432 -8.1936 0.432 -7.6032V-7.3872V-1.8576V-1.7568C0.432 -1.6128 0.3168 -1.5408 0.2304 -1.4688L-0.2016 -1.1088L0.216 -0.5904L0.9648 0.3024H0.9792L1.8864 -0.4608L1.3824 -1.0944H1.6416V-7.8768V-8.1072C1.6416 -8.1936 1.6416 -8.2656 1.656 -8.3376C1.7136 -8.8272 2.1456 -9.1728 2.6928 -9.216V-9.432C2.1888 -9.432 1.6992 -9.3024 1.2672 -9.0432C1.08 -8.9424 0.9216 -8.784 0.7344 -8.6688Z"/>
+ <path id="g27" d="M0.7632 -9.072L0.4176 -8.6544C0.1728 -8.2944 -0.0144 -7.848 -0.0144 -7.4016C-0.0144 -7.2144 0.0144 -7.0128 0.1152 -6.8256C0.288 -6.4656 0.7056 -6.2352 0.7776 -5.8176V-2.1312C0.6768 -2.0736 0.6192 -1.9296 0.5616 -1.8288C0.432 -1.584 0.2736 -1.3392 0.144 -1.0944C0.3024 -0.9936 2.448 0.2736 2.5344 0.2736H2.5632C2.664 0.2736 2.952 0.072 2.9664 0.0576L3.8592 -0.4464C3.9456 -0.4896 4.2048 -0.6768 4.3056 -0.6768C4.3632 -0.6768 4.6944 -0.432 4.6944 -0.432L5.3568 0.0288C5.4288 0.0864 5.6448 0.288 5.7456 0.288C5.8032 0.288 5.8464 0.2448 5.8896 0.216C6.0048 0.1584 7.272 -0.576 7.272 -0.576C7.3584 -0.6336 7.4304 -0.6624 7.4304 -0.8208C7.4304 -0.864 7.416 -0.9216 7.416 -0.9648C7.1712 -0.8496 6.8976 -0.648 6.6096 -0.648C6.3936 -0.648 6.0912 -0.9504 6.0192 -0.9936L5.544 -1.3248C5.4288 -1.3968 5.2704 -1.4544 5.2704 -1.656C5.2704 -1.7136 5.2848 -1.7712 5.2848 -1.8144V-2.3616V-2.5056C5.2848 -2.6784 5.328 -2.7504 5.4288 -2.8512L5.7024 -3.1824L6.768 -4.4352L7.4736 -5.256C7.5168 -5.3136 7.704 -5.5008 7.704 -5.5728C7.704 -5.6304 7.6464 -5.6736 7.6032 -5.7168L6.192 -7.128H6.1776C5.8176 -6.7824 5.4 -6.48 4.968 -6.2208C4.896 -6.1632 4.6224 -5.9904 4.5216 -5.9904C4.392 -5.9904 4.2768 -6.12 4.2048 -6.1632C3.9888 -6.3072 3.7728 -6.4944 3.5424 -6.6096C3.6288 -6.696 3.7152 -6.7968 3.7872 -6.8976L3.6144 -7.128C3.0528 -6.6384 2.5344 -6.12 1.9872 -5.616C1.9872 -6.2064 1.8432 -6.5376 1.5696 -6.9408C1.2816 -7.344 0.7776 -7.6464 0.7776 -8.28C0.7776 -8.5248 0.8784 -8.712 1.008 -8.8416L0.7632 -9.072ZM5.2992 -3.1824H5.2848V-5.4288C5.2848 -5.544 5.2704 -5.6736 5.2704 -5.7888C5.2704 -5.9472 5.2848 -6.1056 5.4288 -6.1056H5.4432C5.4864 -6.1056 5.5152 -6.0768 5.544 -6.048L6.3648 -5.2272C6.48 -5.112 6.5952 -4.9824 6.7248 -4.8816C6.2496 -4.3056 5.7456 -3.7728 5.2992 -3.1824ZM1.9872 -1.5984V-1.6992V-4.8816V-5.0112C1.9872 -5.184 2.0448 -5.2416 2.16 -5.328C2.232 -5.3856 2.5488 -5.7312 2.6352 -5.7456C2.7216 -5.7456 2.808 -5.6592 2.8656 -5.616L3.2832 -5.328C3.4128 -5.2272 3.5424 -5.2128 3.5424 -4.9824V-4.8672V-0.936V-0.792C3.5424 -0.7056 3.528 -0.6048 3.4416 -0.6048C3.3408 -0.6048 3.2112 -0.72 3.1392 -0.7632L2.3328 -1.224L2.1168 -1.3536C2.016 -1.3824 1.9872 -1.4688 1.9872 -1.5984Z"/>
+ <path id="g28" d="M0.7632 -9.072L0.4176 -8.6544C0.1728 -8.2944 -0.0144 -7.848 -0.0144 -7.4016C-0.0144 -7.2144 0.0144 -7.0128 0.1152 -6.8256C0.288 -6.4656 0.7056 -6.2352 0.7776 -5.8176V-2.1312C0.6768 -2.0736 0.6192 -1.9296 0.5616 -1.8288C0.432 -1.584 0.2736 -1.3392 0.144 -1.0944L1.872 -0.0864C2.088 0.0432 2.2896 0.1872 2.5488 0.2736L2.7648 0.1872L4.9104 -1.0512L4.7664 -1.3536C4.7232 -2.6496 4.7664 -4.0464 4.752 -5.3712L4.9104 -5.688C4.4496 -5.9904 4.0176 -6.3216 3.5424 -6.6096C3.6288 -6.696 3.7152 -6.7968 3.7872 -6.8976L3.6144 -7.128C3.0528 -6.6384 2.5344 -6.12 1.9872 -5.616C1.9872 -6.2064 1.8432 -6.5376 1.5696 -6.9408C1.2816 -7.344 0.7776 -7.6464 0.7776 -8.28C0.7776 -8.5248 0.8784 -8.712 1.008 -8.8416L0.7632 -9.072ZM1.9872 -1.5984V-1.6992V-4.8816V-5.0112C1.9872 -5.184 2.0448 -5.2416 2.16 -5.328C2.232 -5.3856 2.5488 -5.7312 2.6352 -5.7456C2.7216 -5.7456 2.808 -5.6592 2.8656 -5.616L3.2832 -5.328C3.4128 -5.2272 3.5424 -5.2128 3.5424 -4.9824V-4.8672V-0.936V-0.792C3.5424 -0.7056 3.528 -0.6048 3.4416 -0.6048C3.3408 -0.6048 3.2112 -0.72 3.1392 -0.7632L2.3328 -1.224L2.1168 -1.3536C2.016 -1.3824 1.9872 -1.4688 1.9872 -1.5984Z"/>
+ <path id="g29" d="M0.768 -6.804H0.756C0.648 -6.936 0.528 -7.068 0.408 -7.2L0.36 -6.984L0.48 -6.744L0.564 -6.36C0.564 -5.952 0.564 -5.544 0.552 -5.16C0.444 -4.944 0.324 -4.74 0.204 -4.536H0.564V-1.692C0.564 -1.596 0.564 -1.5 0.564 -1.404C0.564 -1.032 0.492 -0.744 0.204 -0.564L0.384 -0.408C0.636 -0.312 0.864 -0.192 1.08 -0.06C1.176 0.012 1.26 0.084 1.38 0.132L1.476 0.048L2.364 -0.936V-0.948L2.16 -1.092C2.124 -1.044 2.016 -0.876 1.932 -0.876C1.884 -0.876 1.836 -0.912 1.788 -0.936L1.5 -1.104C1.392 -1.164 1.368 -1.2 1.368 -1.368C1.368 -1.452 1.368 -1.536 1.368 -1.62V-4.536H2.604V-5.148H2.448C2.604 -5.532 2.784 -6.108 2.784 -6.552C2.784 -6.66 2.76 -6.768 2.688 -6.864C2.556 -7.032 2.34 -7.032 2.148 -7.068L1.368 -6.228C1.368 -6.348 1.356 -6.468 1.356 -6.6C1.356 -7.092 1.584 -7.452 2.16 -7.452C2.208 -7.452 2.268 -7.452 2.328 -7.452V-7.692C2.256 -7.692 2.196 -7.692 2.124 -7.692C2.028 -7.692 1.932 -7.692 1.836 -7.668C1.488 -7.56 1.224 -7.296 0.984 -7.032C0.912 -6.96 0.828 -6.888 0.768 -6.804ZM1.368 -5.148V-5.592C1.368 -5.64 1.368 -5.688 1.368 -5.748C1.368 -5.928 1.476 -5.976 1.572 -6.084L1.74 -6.252C1.764 -6.288 1.824 -6.36 1.896 -6.36C1.956 -6.36 2.04 -6.336 2.088 -6.3C2.256 -6.216 2.376 -6.108 2.376 -5.856C2.376 -5.676 2.292 -5.412 2.244 -5.256C2.22 -5.184 2.184 -5.136 2.076 -5.136C2.04 -5.136 1.992 -5.148 1.956 -5.148H1.368Z"/>
+ <path id="g30" d="M0.768 -6.804H0.756C0.66 -6.936 0.54 -7.104 0.408 -7.2C0.396 -7.128 0.36 -7.056 0.36 -6.984C0.372 -6.936 0.408 -6.888 0.432 -6.84C0.54 -6.684 0.564 -6.444 0.564 -6.204C0.564 -6.144 0.564 -6.072 0.564 -6.012V-1.536C0.564 -1.488 0.564 -1.428 0.564 -1.38C0.564 -1.02 0.492 -0.744 0.204 -0.564C0.252 -0.516 0.312 -0.444 0.384 -0.42C0.42 -0.42 0.564 -0.42 0.564 -0.444C0.624 -0.456 0.672 -0.456 0.72 -0.456C1.02 -0.456 1.164 -0.36 1.404 -0.24C1.368 -0.204 1.212 -0.06 1.212 0C1.212 0 1.212 0 1.212 0.012C1.212 0.072 1.308 0.132 1.368 0.132C1.44 0.132 1.5 0.012 1.524 -0.012L1.74 -0.252C1.992 -0.528 2.232 -0.816 2.496 -1.08V-1.092L2.292 -1.236L1.956 -0.84C1.824 -0.924 1.692 -0.996 1.56 -1.068C1.452 -1.128 1.368 -1.152 1.368 -1.308C1.368 -1.344 1.368 -1.392 1.368 -1.428V-3.876C1.368 -3.924 1.368 -3.984 1.368 -4.032C1.368 -4.188 1.416 -4.224 1.512 -4.296L1.86 -4.596C1.908 -4.632 1.944 -4.668 1.98 -4.668C2.004 -4.668 2.028 -4.656 2.064 -4.632C2.256 -4.44 2.412 -4.188 2.544 -3.96C2.88 -3.372 3.048 -2.7 3.048 -2.028C3.048 -1.788 3.024 -1.548 2.988 -1.32C2.808 -0.396 2.376 0.396 1.896 1.056C1.824 1.164 1.74 1.26 1.668 1.368C1.632 1.404 1.572 1.452 1.572 1.512C1.572 1.596 1.752 1.692 1.776 1.704C2.712 0.492 3.864 -0.744 3.864 -2.808C3.864 -3.684 3.468 -4.548 2.988 -5.112C2.964 -5.136 2.808 -5.328 2.796 -5.352C2.796 -5.388 2.832 -5.424 2.856 -5.448S3.048 -5.604 3.048 -5.628C3.012 -5.676 2.952 -5.772 2.88 -5.772C2.88 -5.772 2.868 -5.772 2.868 -5.772C2.808 -5.76 2.424 -5.412 2.424 -5.412L1.368 -4.5V-6.588C1.368 -6.708 1.368 -6.828 1.392 -6.948C1.464 -7.26 1.752 -7.488 2.076 -7.5V-7.74C1.632 -7.74 1.32 -7.404 1.044 -7.104C0.948 -7.008 0.852 -6.912 0.768 -6.804Z"/>
+ <path id="g31" d="M0.768 -6.804H0.756L0.42 -7.212H0.408C0.396 -7.152 0.36 -7.08 0.36 -7.008S0.42 -6.864 0.444 -6.816C0.516 -6.672 0.552 -6.516 0.552 -6.312C0.552 -6.216 0.552 -6.12 0.552 -6.036V-1.512C0.552 -1.452 0.552 -1.404 0.552 -1.344C0.552 -1.008 0.492 -0.732 0.204 -0.564C0.384 -0.372 0.636 -0.312 0.864 -0.192C1.044 -0.084 1.2 0.06 1.38 0.156C1.596 -0.108 1.836 -0.348 2.052 -0.6C2.088 -0.636 2.268 -0.804 2.268 -0.876C2.268 -0.936 2.148 -0.996 2.124 -0.996C2.04 -0.996 2.004 -0.876 1.92 -0.876C1.872 -0.876 1.404 -1.14 1.368 -1.224C1.368 -1.224 1.368 -5.64 1.368 -5.64C1.368 -5.748 1.356 -6.864 1.38 -6.864C1.428 -7.26 1.848 -7.452 2.208 -7.452V-7.692C1.752 -7.692 1.368 -7.44 1.056 -7.128C0.948 -7.032 0.852 -6.924 0.768 -6.804Z"/>
+ <path id="g32" d="M0.7776 -9.072C0.36 -8.6544 -0.0288 -8.0208 -0.0288 -7.4016C-0.0288 -7.2 0.0144 -6.9984 0.1152 -6.8112C0.3024 -6.4656 0.7056 -6.2496 0.7776 -5.832V-2.1312C0.5328 -1.8144 0.3456 -1.44 0.1584 -1.08L1.8864 -0.0864C2.1024 0.0432 2.304 0.1872 2.5632 0.2736C2.9232 0.1008 3.2688 -0.1008 3.6144 -0.3024C3.7296 -0.36 3.888 -0.5328 4.0752 -0.432C4.4784 -0.1872 4.8816 0.0576 5.3136 0.2736L5.5296 0.1872L7.704 -1.0656L7.56 -1.368C7.5168 -2.6784 7.5456 -4.0896 7.56 -5.3712L7.704 -5.688L6.4944 -6.5232C6.3504 -6.6096 6.2208 -6.7248 6.048 -6.7824C5.6304 -6.4512 5.2992 -6.048 4.8672 -5.7456C4.4064 -6.0048 4.0176 -6.3504 3.5568 -6.6096C3.5856 -6.6528 3.8016 -6.8688 3.8016 -6.8976C3.8016 -6.984 3.6864 -7.0704 3.6288 -7.128H3.6144L1.9872 -5.616V-5.9472C1.9296 -6.2928 1.7856 -6.624 1.584 -6.912C1.3104 -7.3152 0.7776 -7.6464 0.7776 -8.2656C0.7776 -8.3808 0.8064 -8.496 0.8496 -8.5968C0.8784 -8.6832 1.008 -8.856 1.008 -8.856L0.7776 -9.072ZM3.4272 -1.9728C3.2544 -1.6848 3.0816 -1.3968 2.9376 -1.08L3.4416 -0.8064C3.4416 -1.1952 3.4416 -1.5984 3.4272 -1.9728ZM2.6352 -5.7888C2.8368 -5.6304 3.0528 -5.5008 3.2688 -5.3568C3.4128 -5.2416 3.5568 -5.2128 3.5568 -4.9824V-4.8672V-0.9504V-0.792C3.5568 -0.7056 3.5424 -0.6048 3.4416 -0.6048C3.3552 -0.6048 3.24 -0.6912 3.1824 -0.7344C2.9808 -0.8496 2.304 -1.2384 2.1312 -1.3536C2.016 -1.4112 1.9872 -1.4544 1.9872 -1.6128V-1.7424V-4.8384V-4.9968C1.9872 -5.0544 1.9872 -5.112 2.0016 -5.1552C2.0304 -5.2416 2.5056 -5.6304 2.6352 -5.7888ZM5.4144 -5.7888C5.616 -5.6304 5.832 -5.5008 6.048 -5.3568C6.192 -5.2416 6.336 -5.2128 6.336 -4.9824V-4.8672V-0.9504V-0.792C6.336 -0.7056 6.3216 -0.6048 6.2208 -0.6048C6.1344 -0.6048 6.0192 -0.6912 5.9616 -0.7344C5.76 -0.8496 5.0832 -1.2384 4.9104 -1.3536C4.7952 -1.4112 4.7664 -1.4544 4.7664 -1.6128V-1.7424V-4.8384V-4.9968C4.7664 -5.0544 4.7664 -5.112 4.7808 -5.1552C4.8096 -5.2416 5.2848 -5.6304 5.4144 -5.7888Z"/>
+ <path id="g33" d="M0.792 -4.284L1.5 -5.136C1.128 -5.436 0.912 -5.892 0.9 -6.372C0.9 -6.9 1.188 -7.5 1.716 -7.692C1.836 -7.728 1.956 -7.74 2.088 -7.74C2.412 -7.74 2.712 -7.56 2.964 -7.368C3.48 -6.936 3.996 -6.084 4.848 -6.084C5.52 -6.084 5.94 -6.696 5.94 -7.248C5.94 -7.416 5.868 -7.56 5.796 -7.716L5.556 -7.608C5.604 -7.488 5.664 -7.38 5.664 -7.26C5.664 -6.996 5.484 -6.792 5.22 -6.792C4.836 -6.792 4.596 -7.056 4.428 -7.26C4.068 -7.716 3.816 -8.46 3.036 -8.46C2.94 -8.46 2.856 -8.46 2.772 -8.448C1.656 -8.316 0.624 -7.56 0.312 -6.456C0.252 -6.264 0.204 -6.036 0.204 -5.832C0.204 -5.484 0.324 -5.28 0.456 -5.016C0.504 -4.92 0.552 -4.824 0.576 -4.716C0.6 -4.644 0.576 -4.548 0.6 -4.476C0.636 -4.392 0.72 -4.32 0.792 -4.284ZM0.744 1.536C0.804 1.512 0.96 1.476 0.96 1.392C0.936 1.248 0.864 1.092 0.864 0.936C0.864 0.696 1.068 0.588 1.32 0.588S1.776 0.708 1.968 0.864C2.292 1.14 2.556 1.548 2.988 1.656C3.072 1.668 3.144 1.668 3.228 1.668C3.984 1.668 4.572 1.02 4.92 0.552C5.376 -0.036 5.736 -0.78 5.736 -1.596C5.736 -1.776 5.724 -1.956 5.664 -2.136C5.46 -2.832 4.92 -3.36 4.608 -3.996C4.488 -4.248 4.38 -4.536 4.38 -4.824C4.38 -5.028 4.428 -5.22 4.524 -5.352C4.62 -5.448 4.68 -5.532 4.848 -5.532C4.992 -5.532 5.136 -5.436 5.244 -5.328C5.412 -5.136 5.472 -4.848 5.472 -4.596H5.736C5.736 -5.148 5.46 -5.796 4.788 -5.796C4.728 -5.796 4.656 -5.796 4.584 -5.784C3.96 -5.688 3.324 -5.22 3.324 -4.44C3.324 -4.08 3.444 -3.72 3.612 -3.408C4.104 -2.532 5.052 -1.836 5.052 -0.66C5.052 0.036 4.68 0.804 3.828 0.804C3.768 0.804 3.72 0.792 3.672 0.792C2.952 0.684 2.616 -0.156 1.896 -0.264C1.848 -0.264 1.8 -0.276 1.752 -0.276C1.056 -0.276 0.6 0.252 0.6 0.864C0.6 1.092 0.66 1.332 0.744 1.536Z"/>
+ <path id="g34" d="M0.864 -5.976C0.66 -5.664 0.36 -5.316 0.36 -4.872C0.36 -4.788 0.372 -4.716 0.408 -4.644C0.564 -4.38 0.924 -4.26 0.972 -3.936C0.984 -3.828 0.984 -3.732 0.984 -3.624V-1.584L0.708 -1.68L0.192 -0.852C0.468 -0.744 0.756 -0.648 1.02 -0.528L1.056 -0.312C1.116 0.552 1.188 1.404 1.26 2.256H1.512C1.584 1.404 1.644 0.552 1.716 -0.3L2.928 0.132C3 0 3.084 -0.12 3.168 -0.252C3.648 -1.02 4.368 -2.016 4.368 -3.072C4.368 -4.056 3.876 -4.824 3.456 -5.352C3.42 -5.4 3.288 -5.604 3.204 -5.604C3.156 -5.604 3.108 -5.568 3.072 -5.544L2.808 -5.352C2.46 -5.124 2.148 -4.86 1.788 -4.644C1.776 -4.764 1.656 -4.812 1.56 -4.872C1.356 -4.98 1.104 -5.04 0.96 -5.22C0.9 -5.292 0.852 -5.376 0.852 -5.472C0.852 -5.64 1.02 -5.784 1.092 -5.868L0.864 -5.976ZM3.216 -0.768C2.76 -0.96 2.244 -1.092 1.812 -1.308L1.788 -1.512C1.8 -2.472 1.752 -3.456 1.812 -4.332C2.04 -4.524 2.304 -4.692 2.556 -4.86C2.64 -4.704 2.772 -4.572 2.88 -4.44C3.288 -3.912 3.708 -3.192 3.708 -2.376C3.708 -1.872 3.564 -1.452 3.384 -1.068C3.324 -0.972 3.264 -0.876 3.216 -0.768Z"/>
+ <path id="g35" d="M0.888 -6.396L1.092 -6.264C1.38 -6.708 1.908 -7.008 2.448 -7.008C2.568 -7.008 2.7 -6.996 2.82 -6.96C3.228 -6.84 3.636 -6.516 3.636 -6.024C3.636 -5.916 3.6 -5.808 3.552 -5.724C3.408 -5.472 3.12 -5.388 2.844 -5.388C2.436 -5.388 1.98 -5.568 1.74 -5.712C1.704 -5.736 1.656 -5.772 1.608 -5.772C1.548 -5.772 1.512 -5.688 1.476 -5.652C1.056 -5.064 0.612 -4.488 0.204 -3.888C0.648 -3.564 1.176 -3.024 1.176 -2.304C1.176 -1.92 0.996 -1.716 0.816 -1.476C0.612 -1.188 0.384 -0.9 0.204 -0.588C0.288 -0.516 0.36 -0.456 0.504 -0.456C0.552 -0.456 0.588 -0.456 0.624 -0.456C1.26 -0.456 1.8 -0.18 2.184 0.048C2.232 0.084 2.28 0.132 2.34 0.132C2.34 0.132 2.352 0.132 2.352 0.132C2.4 0.12 2.592 -0.06 2.592 -0.06L3.144 -0.564C3.624 -0.996 4.176 -1.56 4.176 -2.256C4.176 -2.868 3.792 -3.228 3.456 -3.492C3.336 -3.588 2.952 -3.864 2.844 -3.924C3.096 -4.26 3.324 -4.608 3.564 -4.944C3.72 -5.16 3.936 -5.388 3.996 -5.652C4.008 -5.652 4.02 -5.832 4.02 -5.832S4.008 -6.084 3.984 -6.084C3.96 -6.228 3.9 -6.36 3.828 -6.492C3.6 -6.948 2.988 -7.248 2.436 -7.248C1.8 -7.248 1.152 -6.876 0.888 -6.396ZM1.008 -4.584C1.104 -4.716 1.2 -4.86 1.32 -4.98C1.872 -4.824 2.352 -4.584 2.88 -4.404L1.908 -3.024C1.884 -3.156 1.86 -3.3 1.824 -3.432C1.716 -3.744 1.548 -4.032 1.344 -4.272C1.236 -4.38 1.14 -4.512 1.008 -4.584ZM0.912 -1.176L2.256 -3.096C2.364 -3.036 2.46 -2.964 2.568 -2.892C2.976 -2.64 3.492 -2.304 3.492 -1.764C3.492 -1.452 3.348 -1.2 3.216 -1.032C3.168 -0.972 2.868 -0.6 2.784 -0.6C2.736 -0.6 2.676 -0.66 2.628 -0.684C2.088 -0.984 1.74 -1.116 0.912 -1.176Z"/>
+ <path id="g36" d="M0.984 -6.06C1.008 -6.06 1.044 -6.06 1.08 -6.06C1.26 -6.06 1.308 -6.132 1.38 -6.252C1.5 -6.444 1.608 -6.672 1.608 -6.936C1.608 -7.116 1.476 -7.2 1.296 -7.2C1.056 -7.2 0.96 -7.008 0.96 -6.756C0.96 -6.708 0.96 -6.648 0.96 -6.6C0.96 -6.42 0.984 -6.24 0.984 -6.06ZM0.204 -4.704V-4.692L0.372 -4.536H0.384L0.636 -4.8V-1.548C0.636 -1.476 0.636 -1.416 0.636 -1.344C0.636 -1.236 0.636 -1.128 0.66 -1.032C0.744 -0.564 0.996 -0.156 1.356 0.156H1.368C1.632 -0.168 1.884 -0.492 2.124 -0.84C2.076 -0.876 2.004 -0.948 1.944 -0.948C1.896 -0.948 1.788 -0.9 1.788 -0.9C1.668 -0.9 1.56 -1.008 1.5 -1.104C1.44 -1.236 1.44 -1.392 1.44 -1.536V-3.696C1.44 -3.828 1.44 -3.96 1.44 -4.092C1.44 -4.62 1.56 -4.908 1.848 -5.196C1.644 -5.388 1.464 -5.604 1.236 -5.772L1.128 -5.712C0.828 -5.364 0.516 -5.04 0.204 -4.704Z"/>
+ <path id="g37" d="M1.044 -3.696L1.164 -3.456C1.44 -3.54 1.716 -3.672 1.968 -3.816C2.16 -3.912 2.412 -4.104 2.412 -4.368C2.412 -4.488 2.376 -4.596 2.34 -4.728C2.256 -5.052 2.22 -5.448 1.98 -5.7C1.872 -5.796 1.728 -5.82 1.596 -5.82C1.512 -5.82 1.416 -5.808 1.332 -5.808C1.032 -5.808 0.792 -5.904 0.792 -6.204C0.792 -6.24 0.804 -6.288 0.804 -6.324C0.876 -6.912 1.392 -7.416 2.088 -7.416C2.628 -7.416 2.988 -7.104 3.252 -6.744C3.6 -6.24 3.72 -5.592 3.768 -4.992C3.768 -4.956 3.768 -4.908 3.768 -4.872C3.768 -4.788 3.768 -4.704 3.768 -4.62C3.768 -4.512 3.78 -4.392 3.78 -4.272C3.78 -4.02 3.756 -3.744 3.636 -3.516C3.42 -3.096 2.928 -2.892 2.424 -2.844C2.256 -2.832 2.088 -2.844 1.92 -2.832C1.152 -2.76 0.204 -2.316 0.204 -1.392C0.204 -1.104 0.312 -0.804 0.576 -0.804C0.792 -0.804 0.876 -1.02 0.876 -1.188C0.876 -1.332 0.828 -1.488 0.768 -1.572C0.756 -1.596 0.612 -1.776 0.612 -1.8C0.624 -1.836 0.648 -1.872 0.672 -1.896C0.828 -2.052 1.008 -2.172 1.296 -2.172C1.56 -2.172 1.848 -2.064 2.064 -1.92C2.724 -1.5 3.072 -0.756 3.66 -0.264C3.876 -0.084 4.104 0.06 4.38 0.12C4.392 0.12 4.668 0.18 4.668 0.156C4.8 0.144 4.92 0.06 5.04 0L5.772 -0.324C6.216 -0.516 6.684 -0.684 7.092 -0.936C7.848 -1.392 8.544 -2.184 8.544 -3.336C8.544 -4.38 7.968 -5.448 6.924 -5.748C6.744 -5.808 6.564 -5.832 6.372 -5.832V-5.844L7.644 -6.48L7.572 -6.648C7.536 -6.636 7.5 -6.624 7.464 -6.624C7.452 -6.624 7.452 -6.624 7.44 -6.624C7.296 -6.624 7.188 -6.768 7.116 -6.888C7.02 -7.044 6.996 -7.224 6.948 -7.404C6.792 -7.86 6.492 -8.292 5.916 -8.292C5.184 -8.292 4.764 -7.668 4.536 -7.164C4.488 -7.032 4.416 -6.9 4.392 -6.768C4.32 -6.936 4.248 -7.116 4.152 -7.284C3.816 -7.896 3.24 -8.46 2.316 -8.46C2.088 -8.46 1.944 -8.412 1.752 -8.352C0.936 -8.028 0.528 -7.056 0.528 -6.18C0.528 -5.688 0.66 -5.076 1.02 -4.896C1.224 -4.8 1.464 -4.824 1.68 -4.8C1.908 -4.764 2.16 -4.656 2.16 -4.368C2.16 -4.224 2.064 -4.116 1.944 -4.044C1.68 -3.876 1.344 -3.804 1.044 -3.696ZM6.168 -5.724L4.704 -4.992V-4.98C4.884 -4.98 5.076 -4.968 5.256 -4.944C6.324 -4.812 7.572 -4.236 7.692 -2.952C7.692 -2.808 7.692 -2.664 7.656 -2.52C7.548 -1.968 7.164 -1.536 6.78 -1.152C6.528 -0.9 6.216 -0.576 5.784 -0.576C5.736 -0.576 5.688 -0.588 5.64 -0.588C4.8 -0.696 4.248 -1.452 3.696 -2.004C3.564 -2.136 3.42 -2.268 3.276 -2.388C3.18 -2.46 3.072 -2.52 2.988 -2.604C3.216 -2.604 3.468 -2.664 3.684 -2.736C4.32 -2.952 4.704 -3.408 4.704 -4.26C4.704 -4.416 4.692 -4.572 4.692 -4.728C4.668 -5.256 4.68 -5.652 4.572 -6.144C4.548 -6.216 4.524 -6.3 4.524 -6.384C4.524 -6.396 4.524 -6.408 4.524 -6.42C4.524 -6.492 4.548 -6.552 4.572 -6.624C4.668 -6.96 4.884 -7.356 5.316 -7.356C5.472 -7.356 5.616 -7.296 5.724 -7.164C5.868 -6.996 5.904 -6.768 5.952 -6.564C6 -6.276 6.048 -6 6.168 -5.724Z"/>
+ <path id="g38" d="M1.044 -5.808C0.768 -5.46 0.48 -5.124 0.204 -4.764C0.264 -4.728 0.324 -4.692 0.384 -4.644C0.648 -4.392 0.648 -4.068 0.648 -3.732V-1.488C0.648 -1.08 0.612 -0.72 0.204 -0.564C0.252 -0.516 0.336 -0.42 0.408 -0.42C0.456 -0.42 0.516 -0.432 0.552 -0.444C0.648 -0.456 0.744 -0.468 0.84 -0.468C0.996 -0.444 1.128 -0.42 1.272 -0.36C1.344 -0.324 1.416 -0.276 1.488 -0.24C1.44 -0.192 1.296 -0.072 1.296 0C1.296 0.06 1.38 0.132 1.44 0.132C1.524 0.132 1.56 0.036 1.596 0L1.848 -0.276C2.136 -0.612 2.472 -0.924 2.736 -1.272C2.688 -1.308 2.616 -1.38 2.556 -1.38S2.436 -1.308 2.4 -1.26L2.16 -0.996C2.112 -0.948 2.076 -0.876 2.004 -0.876C1.956 -0.876 1.92 -0.912 1.884 -0.936C1.764 -1.008 1.608 -1.068 1.5 -1.152C1.452 -1.2 1.452 -1.248 1.452 -1.296C1.452 -1.32 1.452 -1.332 1.452 -1.356V-3.864C1.452 -3.888 1.452 -3.912 1.452 -3.948C1.452 -4.14 1.596 -4.176 1.716 -4.272C1.908 -4.428 2.136 -4.56 2.304 -4.74H2.316C2.412 -4.62 2.52 -4.512 2.616 -4.392C3.096 -3.828 3.456 -2.964 3.456 -2.04C3.456 -1.884 3.444 -1.728 3.42 -1.572C3.276 -0.588 2.7 0.264 2.184 0.936C2.1 1.032 1.764 1.452 1.716 1.536C1.776 1.572 1.86 1.68 1.932 1.68C1.98 1.68 2.028 1.596 2.064 1.56L2.364 1.2C2.76 0.72 3.156 0.216 3.48 -0.324C3.876 -0.984 4.272 -1.752 4.272 -2.712C4.272 -3.84 3.744 -4.728 3.108 -5.364C3.216 -5.448 3.348 -5.508 3.42 -5.628L3.3 -5.808L1.452 -4.38C1.452 -4.404 1.464 -4.92 1.452 -4.92C1.416 -5.244 1.284 -5.58 1.044 -5.808Z"/>
+ <path id="g39" d="M1.068 -5.808L0.204 -4.764C0.42 -4.668 0.588 -4.476 0.648 -4.236C0.672 -4.104 0.672 -3.972 0.672 -3.84V-2.076C0.672 -1.896 0.684 -1.716 0.684 -1.524C0.684 -1.272 0.672 -0.972 0.552 -0.828C0.492 -0.744 0.396 -0.756 0.396 -0.6C0.396 -0.564 0.408 -0.504 0.408 -0.468C0.6 -0.408 0.72 -0.264 0.816 -0.096C0.888 0.024 0.888 0.168 1.08 0.168C1.116 0.168 1.164 0.156 1.2 0.156C1.272 -0.12 1.452 -0.384 1.74 -0.468V-0.72C1.488 -0.828 1.476 -1.056 1.476 -1.392V-4.212C1.476 -4.248 1.476 -4.296 1.476 -4.332C1.476 -4.488 1.548 -4.524 1.656 -4.596S1.86 -4.74 1.968 -4.824C2.016 -4.86 2.076 -4.92 2.148 -4.92S2.304 -4.8 2.352 -4.74C2.484 -4.572 2.628 -4.416 2.76 -4.248C2.868 -4.14 2.964 -4.08 2.964 -3.876C2.964 -3.804 2.952 -3.72 2.952 -3.636V-1.704C2.952 -1.572 2.964 -1.416 2.964 -1.284C2.964 -1.068 2.952 -0.924 2.832 -0.804C2.772 -0.744 2.688 -0.732 2.688 -0.6C2.688 -0.564 2.7 -0.504 2.7 -0.468C2.88 -0.408 3 -0.276 3.096 -0.12L3.192 0.048C3.216 0.132 3.264 0.168 3.372 0.168C3.408 0.168 3.456 0.156 3.492 0.156C3.552 -0.12 3.756 -0.384 4.032 -0.468V-0.72C3.78 -0.816 3.768 -1.08 3.768 -1.32C3.768 -1.356 3.768 -1.392 3.768 -1.428V-4.104C3.768 -4.164 3.768 -4.248 3.768 -4.308C3.768 -4.476 3.792 -4.476 3.912 -4.572L4.284 -4.836C4.32 -4.872 4.38 -4.92 4.44 -4.92S4.536 -4.86 4.572 -4.824C4.632 -4.74 4.98 -4.332 5.088 -4.212C5.136 -4.152 5.208 -4.092 5.232 -4.02C5.244 -4.02 5.244 -3.936 5.244 -3.936V-1.152C5.244 -1.104 5.244 -1.032 5.244 -0.984C5.244 -0.816 5.268 -0.756 5.328 -0.636C5.364 -0.564 5.556 -0.204 5.556 -0.144C5.556 -0.048 5.472 -0.012 5.472 0.072C5.472 0.144 5.58 0.204 5.64 0.228L6.48 -1.02V-1.032L6.276 -1.176L6.18 -1.008C6.096 -1.092 6.06 -1.128 6.06 -1.308C6.06 -1.344 6.06 -1.38 6.06 -1.416V-4.548C6.06 -4.572 6.06 -4.608 6.06 -4.632C6.06 -4.812 6.168 -4.86 6.324 -4.884V-5.052C6.012 -5.052 5.724 -5.196 5.508 -5.412C5.436 -5.496 5.364 -5.58 5.292 -5.676C5.268 -5.712 5.244 -5.772 5.196 -5.772C5.184 -5.772 5.184 -5.772 5.172 -5.772C5.136 -5.772 5.112 -5.748 5.076 -5.724C4.848 -5.556 3.828 -4.812 3.792 -4.812C3.78 -4.812 3.78 -4.812 3.768 -4.812C3.744 -4.812 3.732 -4.824 3.708 -4.848C3.516 -5.1 3.3 -5.328 3.108 -5.568C3.06 -5.616 2.976 -5.772 2.892 -5.772C2.856 -5.772 2.832 -5.748 2.796 -5.736C2.712 -5.664 2.616 -5.604 2.532 -5.544C2.184 -5.292 1.836 -5.016 1.476 -4.776C1.476 -5.148 1.344 -5.544 1.068 -5.808Z"/>
+ <path id="g40" d="M1.1088 -8.6544H1.0944C1.0224 -8.7408 0.936 -8.7984 0.8496 -8.8704L0.4464 -9.1872C0.3888 -9.2448 0.3024 -9.3456 0.216 -9.3456H0.2016C0.1152 -9.3456 0.0288 -9.2304 -0.0288 -9.1584C0.4896 -8.8416 0.7776 -8.3376 0.7776 -7.5168V-7.0128V-2.1312C0.6768 -2.0736 0.6192 -1.9296 0.5616 -1.8288C0.432 -1.584 0.2736 -1.3392 0.144 -1.0944L1.872 -0.0864C2.088 0.0432 2.2896 0.1872 2.5488 0.2736L2.7648 0.1872L4.9104 -1.0512L4.7664 -1.3536C4.7232 -2.6496 4.7664 -4.0464 4.752 -5.3712L4.9104 -5.688L3.7296 -6.4944C3.5856 -6.5952 3.456 -6.7104 3.2688 -6.7824L3.1392 -6.696L1.9872 -5.616V-7.56V-8.0352C1.9872 -8.2656 2.0016 -8.496 2.0736 -8.7264C2.1744 -9.0432 2.448 -9.432 2.8512 -9.432C3.0384 -9.432 3.1392 -9.3168 3.1824 -9.1296C3.24 -9.1728 3.3408 -9.2448 3.3408 -9.3456C3.3408 -9.5328 3.0816 -9.6336 2.9088 -9.6336C2.4192 -9.6336 2.016 -9.2592 1.7424 -9.0864C1.5408 -8.9424 1.296 -8.8272 1.1088 -8.6544ZM1.9872 -1.5984V-1.6992V-4.8816V-5.0112C1.9872 -5.184 2.0448 -5.2416 2.16 -5.328C2.232 -5.3856 2.5488 -5.7312 2.6352 -5.7456C2.7216 -5.7456 2.808 -5.6592 2.8656 -5.616L3.2832 -5.328C3.4128 -5.2272 3.5424 -5.2128 3.5424 -4.9824V-4.8672V-0.936V-0.792C3.5424 -0.7056 3.528 -0.6048 3.4416 -0.6048C3.3408 -0.6048 3.2112 -0.72 3.1392 -0.7632L2.3328 -1.224L2.1168 -1.3536C2.016 -1.3824 1.9872 -1.4688 1.9872 -1.5984Z"/>
+ <path id="g41" d="M1.1664 -8.4096C1.5408 -8.4096 1.9296 -8.3664 2.2464 -8.3088C3.168 -8.1216 4.2336 -7.6032 4.4208 -6.5808C4.4352 -6.5808 4.4352 -6.1056 4.4352 -6.1056C4.4208 -5.8752 4.3632 -5.6448 4.2768 -5.4288C3.8016 -4.248 2.592 -3.6 1.3968 -3.2544C1.1232 -3.1824 0.288 -2.9952 0.1584 -2.952L0.2736 -2.6208C0.4896 -2.6496 0.6912 -2.7072 0.9072 -2.7504L1.9872 -2.9952C2.7072 -3.1536 3.4272 -3.2832 4.0896 -3.6432C4.6944 -3.9888 5.1408 -4.4352 5.544 -5.0112C5.6016 -5.1408 5.6304 -5.256 5.8176 -5.256C5.8896 -5.256 6.5664 -5.1696 6.84 -5.1264C8.1648 -4.896 9.9216 -4.2912 9.9216 -2.5488C9.9216 -2.1168 9.8064 -1.6848 9.5616 -1.3248C9.2592 -0.864 8.6256 -0.432 7.8912 -0.432C7.4592 -0.432 7.0416 -0.576 6.6528 -0.7632C5.8464 -1.1376 5.1408 -1.7136 4.4352 -2.2464L3.816 -2.6928C3.7152 -2.7648 3.5712 -2.9232 3.4272 -2.9232C3.3552 -2.9232 0.4176 -2.2608 0.4176 -2.2608C0.432 -2.1888 0.4608 -2.1024 0.4896 -2.0304C0.5328 -1.8864 0.6624 -1.9296 0.8496 -1.9008C1.6992 -1.8432 2.3184 -1.5696 2.9808 -1.2528C4.2048 -0.7056 5.4432 0.1872 7.0992 0.1872C7.3296 0.1872 7.56 0.1584 7.776 0.1152C8.5824 -0.1008 9.2592 -0.432 9.8208 -0.9216C10.5264 -1.5264 11.1888 -2.376 11.1888 -3.6C11.1888 -4.9248 10.3536 -6.2784 9.0864 -6.408V-6.4224L9.5328 -6.696C9.8784 -7.0128 10.3392 -7.2432 10.6128 -7.632L10.4544 -7.8336L8.3088 -10.0512H8.2944L5.976 -7.8048C5.688 -8.6688 4.9968 -9.3312 4.1904 -9.7344C4.0608 -9.792 3.5712 -10.0368 3.4272 -10.0368C3.312 -10.0224 3.1824 -9.9216 3.096 -9.864L2.3616 -9.4032L1.5408 -8.8848L1.3104 -8.7408C1.224 -8.6832 1.1664 -8.6544 1.1664 -8.5104V-8.4096ZM9.072 -6.8256C8.9136 -6.7392 8.7552 -6.6384 8.5968 -6.552C7.8336 -6.1056 6.8832 -5.8176 5.8608 -5.6592C6.0048 -6.0192 6.0768 -6.3936 6.1056 -6.7824V-7.1568C6.0912 -7.2 6.0912 -7.2432 6.0912 -7.2864C6.0912 -7.488 6.264 -7.5744 6.3648 -7.6608C6.5088 -7.7904 6.6384 -7.9344 6.7824 -8.064C6.8544 -8.1216 7.2432 -8.568 7.344 -8.568C7.416 -8.568 7.488 -8.4672 7.5168 -8.4384L9.072 -6.8256Z"/>
+ <path id="g42" d="M1.176 -5.808L0.204 -4.74C0.564 -4.668 0.768 -4.404 0.768 -3.96C0.768 -3.888 0.768 -3.816 0.768 -3.744V-1.728C0.768 -1.596 0.768 -1.452 0.768 -1.308C0.768 -1.236 0.768 -1.176 0.768 -1.104C0.744 -0.828 0.48 -0.576 0.204 -0.564C0.276 -0.468 0.36 -0.384 0.528 -0.384C0.804 -0.336 1.044 -0.216 1.248 -0.096C1.296 -0.072 1.524 0.132 1.572 0.132C1.644 0.132 1.692 0.048 1.728 0.012C1.812 -0.096 3.06 -1.476 3.06 -1.476V-1.488L2.88 -1.632H2.868C2.688 -1.452 2.532 -1.26 2.364 -1.068C2.304 -1.008 2.232 -0.888 2.148 -0.876C2.064 -0.876 1.956 -0.96 1.896 -0.996L1.704 -1.116C1.62 -1.14 1.584 -1.2 1.584 -1.308C1.584 -1.344 1.584 -1.392 1.584 -1.428V-4.176C1.584 -4.212 1.584 -4.248 1.584 -4.296C1.584 -4.476 1.668 -4.512 1.776 -4.62C1.896 -4.74 2.016 -4.872 2.148 -4.98C2.412 -4.62 2.688 -4.272 2.964 -3.924H2.976L3.588 -4.536V-4.548L2.964 -5.34C2.856 -5.484 2.712 -5.628 2.652 -5.808L1.584 -4.752C1.584 -5.136 1.44 -5.532 1.176 -5.808Z"/>
+ <path id="g43" d="M1.1808 -7.128L0.504 -6.552C0.4464 -6.5088 0.3024 -6.4368 0.3024 -6.3504V-6.336C0.3024 -6.264 0.3888 -6.192 0.432 -6.1488L0.7776 -5.7312H0.5184C0.504 -4.3776 0.5472 -2.9664 0.504 -1.656C0.3168 -1.4544 0.1008 -1.2816 -0.1152 -1.0944V-1.08L1.0512 0.3024H1.0656L1.7424 -0.2736C1.8 -0.3168 1.944 -0.3888 1.944 -0.4752V-0.4896C1.944 -0.5616 1.8576 -0.6336 1.8144 -0.6768L1.4688 -1.0944H1.728C1.7424 -2.3472 1.6992 -3.6576 1.7424 -4.8816C2.1888 -5.328 2.7072 -5.688 3.1824 -6.1056L3.4704 -5.7312H3.2256C3.2112 -4.3776 3.2544 -2.9664 3.2112 -1.656C3.024 -1.4544 2.808 -1.2816 2.592 -1.1088C2.9664 -0.6192 3.3696 -0.1584 3.7584 0.3024H3.7728L4.68 -0.4608C4.5216 -0.6768 4.3488 -0.8928 4.176 -1.0944H4.4352C4.464 -2.3472 4.3776 -3.7152 4.464 -4.896C4.896 -5.328 5.4 -5.688 5.8608 -6.1056H5.8752L6.1776 -5.7312H5.9184V-1.728C5.9184 -1.6272 5.8464 -1.5696 5.7744 -1.512L5.4864 -1.2672C5.4288 -1.224 5.328 -1.1664 5.328 -1.08C5.328 -1.008 5.4 -0.9504 5.4288 -0.9216L5.6448 -0.6624C5.9184 -0.3456 6.192 -0.0288 6.4512 0.3024H6.4656L7.1424 -0.2592C7.2 -0.3168 7.344 -0.3888 7.344 -0.4752V-0.4896C7.344 -0.5616 7.2576 -0.6336 7.2288 -0.6768L6.8688 -1.0944H7.128C7.1424 -2.448 7.0992 -3.8592 7.1424 -5.1696C7.3296 -5.3712 7.5456 -5.544 7.7616 -5.7168C7.3872 -6.2064 6.984 -6.6672 6.5952 -7.128H6.5808L4.4352 -5.328V-6.3504H4.536L3.9024 -7.128C3.1536 -6.552 2.4624 -5.9184 1.728 -5.3136V-6.3504H1.8288C1.6272 -6.624 1.4112 -6.8832 1.1808 -7.128Z"/>
+ <path id="g44" d="M1.1808 -7.128L0.504 -6.552C0.4464 -6.5088 0.3024 -6.4368 0.3024 -6.3504V-6.336C0.3024 -6.264 0.3888 -6.192 0.432 -6.1488L0.7776 -5.7312H0.5184C0.504 -4.3776 0.5472 -2.9664 0.504 -1.656C0.3168 -1.4544 0.1008 -1.2816 -0.1152 -1.0944V-1.08L1.0512 0.3024H1.0656L1.7424 -0.2736C1.8 -0.3168 1.944 -0.3888 1.944 -0.4752V-0.4896C1.944 -0.5616 1.8576 -0.6336 1.8144 -0.6768L1.4688 -1.0944H1.728C1.7424 -2.3472 1.6992 -3.6576 1.7424 -4.8816C2.1888 -5.328 2.7072 -5.688 3.1824 -6.1056L3.4704 -5.7312H3.2256C3.2112 -4.3776 3.2544 -2.9664 3.2112 -1.656C3.024 -1.4544 2.808 -1.2816 2.592 -1.1088C2.9664 -0.6192 3.3696 -0.1584 3.7584 0.3024H3.7728L4.68 -0.4608C4.5216 -0.6768 4.3488 -0.8928 4.176 -1.0944H4.4352V-4.6656V-4.968C4.4352 -5.1696 4.4496 -5.2128 4.5792 -5.3136L4.8816 -5.5728C4.9248 -5.616 5.0256 -5.6736 5.0256 -5.7456C5.0256 -5.8032 4.968 -5.8464 4.9392 -5.8896C4.68 -6.2064 4.0608 -6.912 3.9024 -7.128C3.1536 -6.552 2.4624 -5.9184 1.728 -5.3136V-6.3504H1.8288C1.6272 -6.624 1.4112 -6.8832 1.1808 -7.128Z"/>
+ <path id="g45" d="M1.1808 -7.128L0.504 -6.552C0.4464 -6.5088 0.3024 -6.4368 0.3024 -6.3504V-6.336C0.3024 -6.264 0.3888 -6.192 0.432 -6.1488L0.7776 -5.7312H0.5184C0.504 -4.3776 0.5472 -2.9664 0.504 -1.656C0.3168 -1.4544 0.1008 -1.2816 -0.1152 -1.0944V-1.08L1.0512 0.3024H1.0656L3.2256 -1.512C3.2256 -1.1088 3.2256 -0.7056 3.24 -0.3312C3.3984 -0.1008 3.5856 0.1008 3.7584 0.3024H3.7728L4.68 -0.4608C4.5216 -0.6768 4.3488 -0.8928 4.176 -1.0944H4.4352V-4.6656V-4.968C4.4352 -5.1696 4.4496 -5.2128 4.5792 -5.3136L4.8816 -5.5728C4.9248 -5.616 5.0256 -5.6736 5.0256 -5.7456C5.0256 -5.8032 4.968 -5.8464 4.9392 -5.8896C4.68 -6.2064 4.0608 -6.912 3.9024 -7.128C3.5856 -6.8832 3.2688 -6.624 2.9664 -6.3648L3.4704 -5.7312H3.2256C3.1968 -4.4784 3.2832 -3.1248 3.1968 -1.944C2.8512 -1.6272 2.4912 -1.3248 2.1312 -1.0224C2.016 -0.936 1.9296 -0.8208 1.7856 -0.7632C1.656 -0.8496 1.5696 -0.9792 1.4688 -1.0944H1.728C1.7424 -2.448 1.6992 -3.8592 1.7424 -5.1696C1.9296 -5.3712 2.1456 -5.544 2.3616 -5.7312V-5.7456L1.1808 -7.128Z"/>
+ <path id="g46" d="M1.1808 -7.128L0.504 -6.552C0.4464 -6.5088 0.3024 -6.4368 0.3024 -6.3504V-6.336C0.3024 -6.264 0.3888 -6.192 0.432 -6.1488L0.7776 -5.7312H0.5184V-1.5264C0.5184 -1.2096 0.5184 -0.9072 0.4608 -0.5904C0.3744 -0.0864 0.1872 0.432 0.1872 0.9504C0.1872 1.296 0.288 1.584 0.432 1.8432C0.6336 2.16 0.9648 2.4336 1.44 2.4336C1.9584 2.4336 2.4192 2.016 2.4192 1.4832C2.4192 1.1664 2.1888 0.8784 1.8288 0.8784C1.4832 0.8784 1.2096 1.1088 1.2096 1.4832C1.2096 1.6272 1.2528 1.7712 1.3536 1.8864C1.44 1.9872 1.5552 2.0304 1.6704 2.0736C1.5984 2.1024 1.512 2.1168 1.44 2.1168C0.8928 2.1168 0.5616 1.4976 0.5616 0.9072C0.5616 0.216 0.9792 -0.3744 1.4976 -0.648C1.7424 -0.7776 4.536 -1.656 4.536 -1.656C4.4784 -1.8576 4.4208 -1.9008 4.4208 -2.16C4.4208 -2.304 4.4352 -2.448 4.4352 -2.5776V-4.68V-4.9824C4.4352 -5.184 4.4496 -5.2128 4.5792 -5.3136L4.8816 -5.5728C4.9248 -5.616 5.0256 -5.6736 5.0256 -5.7456C5.0256 -5.8032 4.968 -5.8464 4.9392 -5.8896C4.68 -6.2064 4.0608 -6.912 3.9024 -7.128C3.1536 -6.552 2.4624 -5.9184 1.728 -5.3136V-6.3504H1.8288C1.6272 -6.624 1.4112 -6.8832 1.1808 -7.128ZM3.2256 -5.7312V-1.8864V-1.728C3.2256 -1.584 3.168 -1.5552 3.0528 -1.512C2.6928 -1.4112 1.9728 -1.1664 1.728 -1.08C1.7424 -2.3472 1.6992 -3.6576 1.7424 -4.8816C2.1888 -5.328 2.7072 -5.688 3.1824 -6.1056L3.4704 -5.7312H3.2256Z"/>
+ <path id="g47" d="M1.188 -5.808L0.204 -4.548V-4.536L0.384 -4.392H0.396C0.432 -4.44 0.588 -4.668 0.648 -4.668C0.744 -4.668 0.828 -4.488 0.852 -4.452C0.96 -4.248 0.972 -4.032 0.972 -3.804C0.972 -3.768 0.972 -3.72 0.972 -3.684V-1.368C0.972 -1.332 0.972 -1.284 0.972 -1.248C0.972 -0.936 0.744 -0.828 0.492 -0.756V-0.504C0.924 -0.504 1.296 -0.276 1.512 0.024C1.56 0.084 1.584 0.156 1.692 0.156C1.86 0.156 1.98 -0.036 2.088 -0.144L3.12 -1.176C3.24 -0.9 3.384 -0.624 3.516 -0.348C3.564 -0.252 3.648 -0.132 3.648 -0.024C3.648 0 3.636 0.012 3.636 0.036L3.84 0.156L4.776 -1.344L4.56 -1.464C4.524 -1.404 4.38 -1.14 4.332 -1.128C4.296 -1.128 4.272 -1.14 4.248 -1.164C4.056 -1.308 3.936 -1.536 3.936 -1.848C3.936 -1.92 3.936 -1.992 3.936 -2.052V-3.888C3.936 -4.092 3.936 -4.308 3.936 -4.524C3.936 -4.728 3.924 -4.968 4.02 -5.088C4.044 -5.136 4.116 -5.16 4.128 -5.208C4.14 -5.208 4.14 -5.352 4.14 -5.352C3.9 -5.4 3.684 -5.568 3.612 -5.808C3.588 -5.808 3.564 -5.808 3.54 -5.808C3.444 -5.808 3.432 -5.76 3.396 -5.7C3.312 -5.52 3.096 -5.4 2.916 -5.352C2.916 -5.328 2.916 -5.304 2.916 -5.28C2.916 -5.16 3.024 -5.112 3.06 -5.052C3.12 -4.92 3.12 -4.764 3.12 -4.584C3.12 -4.416 3.12 -4.248 3.12 -4.092V-1.932C3.12 -1.848 3.132 -1.764 3.132 -1.68C3.132 -1.488 3.06 -1.464 2.94 -1.344L2.52 -0.924C2.472 -0.876 2.388 -0.756 2.316 -0.756C2.256 -0.756 2.208 -0.816 2.172 -0.84L1.932 -1.056C1.848 -1.116 1.788 -1.164 1.788 -1.308V-3.54C1.788 -4.056 1.776 -4.536 1.608 -5.028C1.536 -5.256 1.332 -5.664 1.188 -5.808Z"/>
+ <path id="g48" d="M1.1952 -7.6608L1.4688 -7.5168C1.4544 -7.56 1.4544 -7.6176 1.4544 -7.6752C1.4544 -7.848 1.512 -8.0352 1.584 -8.1936C1.7712 -8.6544 2.2896 -9.0144 2.8512 -9.0144C3.0384 -9.0144 3.2112 -8.9856 3.384 -8.9136C3.7728 -8.7552 4.104 -8.4528 4.536 -8.4528C5.112 -8.4528 5.472 -8.856 5.8176 -9.2016C5.6448 -8.9712 5.4144 -8.784 5.2128 -8.568C4.6944 -8.0208 4.2048 -7.4736 3.9168 -6.768C3.8448 -6.5808 3.7728 -6.3792 3.744 -6.1776C3.4848 -6.3504 3.168 -6.4512 2.8656 -6.4512C2.3616 -6.4512 1.8144 -6.1488 1.6272 -5.7168C2.16 -5.7168 2.6928 -5.5296 3.1104 -5.184C3.2256 -5.0832 3.5568 -4.8096 3.5568 -4.608C3.5568 -4.5504 3.5424 -4.4928 3.5424 -4.4352C3.3408 -4.536 3.1104 -4.5936 2.88 -4.5936C2.4336 -4.5936 1.9872 -4.392 1.7856 -3.9456C2.3328 -3.9456 2.8224 -3.6 3.024 -3.096C3.0816 -2.9664 3.1248 -2.808 3.1248 -2.664C3.1248 -2.5056 2.9952 -2.3472 2.9376 -2.2608C2.5488 -1.656 1.9728 -1.1376 1.3536 -0.7776C1.152 -0.6624 0.9216 -0.576 0.7056 -0.4752C0.5184 -0.3744 0.3312 -0.2592 0.144 -0.1728L0.2592 0.1296C0.4176 0.0576 0.576 -0.0288 0.7344 -0.1008C1.7568 -0.5904 3.0384 -0.9648 4.3776 -0.9648C5.7456 -0.9648 6.9408 -0.5184 7.8336 0.3024H7.848L9.5184 -1.944V-1.9584L9.2736 -2.1456H9.2592C8.9856 -1.8288 8.6976 -1.656 8.136 -1.656C7.6032 -1.656 7.1712 -1.7712 6.6672 -1.8C6.5808 -1.8 5.7168 -1.8288 5.7168 -1.8C5.5152 -1.7856 5.328 -1.7568 5.1264 -1.7568V-1.7712C5.4144 -1.944 5.6736 -2.232 5.8896 -2.4912C6.5088 -3.2544 6.8976 -4.2048 6.8976 -5.256C6.8976 -5.688 6.8544 -6.1344 6.8256 -6.552C6.8112 -6.552 6.7824 -7.1568 6.7968 -7.1568C6.8112 -7.5168 6.8688 -7.8624 7.0272 -8.1936C7.344 -8.856 8.0496 -9.1584 8.7552 -9.1584V-9.4032H8.5536C8.0064 -9.4032 7.4592 -9.3888 6.9552 -9.1872C6.8112 -9.1152 6.6816 -9.0432 6.552 -8.9568C5.5584 -8.1792 5.6304 -6.6528 5.5728 -5.2848V-4.8816C5.544 -4.0896 5.472 -3.2688 5.0688 -2.5632C4.8816 -2.2464 4.5504 -1.8432 4.248 -1.6704C4.1472 -1.5984 4.032 -1.5984 3.9168 -1.5696C3.744 -1.5408 3.5568 -1.4976 3.384 -1.4544V-1.4688C3.816 -1.6704 4.3344 -2.1744 4.5648 -2.5488C4.968 -3.1392 5.0976 -3.888 5.0976 -4.824V-5.4864C5.0976 -5.8032 5.0976 -6.1056 5.1408 -6.4224C5.2848 -7.3008 5.688 -7.9632 6.1056 -8.6256C6.264 -8.9136 6.5808 -9.5472 6.7824 -9.7488C6.8256 -9.792 6.912 -9.8496 6.912 -9.9216C6.912 -10.008 6.8256 -10.0944 6.7824 -10.1664C6.3792 -9.936 6.1344 -9.36 5.5296 -9.36C5.2848 -9.36 5.0688 -9.432 4.8384 -9.5472C4.3488 -9.792 3.9744 -10.1664 3.312 -10.1664C2.5056 -10.152 2.0592 -9.36 1.728 -8.7264C1.6416 -8.568 1.1952 -7.6752 1.1952 -7.6608ZM6.1344 -9.5616C6.1344 -9.5616 6.0624 -9.4752 6.0624 -9.4752S6.1344 -9.5616 6.1344 -9.5616ZM5.9472 -9.3456L6.048 -9.4608L5.9472 -9.3456ZM5.8176 -9.2016L5.9472 -9.3456L5.8176 -9.2016Z"/>
+ <path id="g49" d="M1.284 -6.78C1.2 -6.696 1.116 -6.6 1.02 -6.516C0.66 -6.18 0.204 -5.784 0.204 -5.256C0.204 -5.004 0.432 -4.872 0.6 -4.728C0.732 -4.62 0.84 -4.476 0.924 -4.32C1.152 -3.888 1.164 -3.408 1.164 -2.928V-1.632C1.164 -1.548 1.164 -1.464 1.164 -1.38C1.164 -1.056 1.068 -0.816 0.744 -0.756V-0.516C0.936 -0.576 1.116 -0.672 1.332 -0.672C1.836 -0.672 2.316 -0.336 2.46 0.156C2.496 0.156 2.544 0.168 2.58 0.168C2.628 0.168 2.664 0.156 2.7 0.132C2.772 0.096 2.94 -0.192 2.952 -0.216L3.48 -1.08C3.912 -1.776 4.308 -2.544 4.308 -3.372C4.308 -4.248 3.876 -4.932 3.432 -5.316C3.372 -5.376 3.3 -5.436 3.228 -5.472C3.24 -5.508 3.3 -5.508 3.3 -5.556L3.12 -5.724L1.788 -4.344C1.728 -4.62 1.488 -4.992 1.344 -5.148C1.176 -5.328 0.888 -5.496 0.888 -5.76C0.888 -5.796 0.888 -5.82 0.9 -5.856C0.9 -5.916 0.924 -5.964 0.948 -6.012C1.056 -6.228 1.32 -6.456 1.464 -6.6V-6.612L1.284 -6.78ZM3.084 -0.852C2.724 -1.044 2.544 -1.236 1.98 -1.236C1.98 -1.692 1.98 -2.148 1.98 -2.592C1.98 -2.82 1.98 -3.048 1.98 -3.276C1.98 -3.456 1.956 -3.636 1.932 -3.804C1.92 -3.864 1.884 -3.948 1.884 -4.008C1.884 -4.128 1.992 -4.188 2.052 -4.248L2.436 -4.644C2.484 -4.692 2.568 -4.824 2.64 -4.824S2.796 -4.704 2.844 -4.656C3.288 -4.176 3.636 -3.492 3.636 -2.664C3.636 -2.052 3.468 -1.584 3.24 -1.128C3.18 -1.032 3.12 -0.948 3.084 -0.852Z"/>
+ <path id="g50" d="M1.32 2.7C1.572 2.172 1.788 1.62 2.028 1.092L2.508 -0.012L2.76 -0.576C2.82 -0.684 2.868 -0.792 2.868 -0.924C2.868 -0.936 2.868 -0.948 2.868 -0.96C2.808 -1.332 2.532 -1.584 2.124 -1.584C1.932 -1.584 1.74 -1.524 1.596 -1.392C1.38 -1.2 1.356 -0.912 1.308 -0.54C1.176 0.12 0.72 2.268 0.72 2.292C0.72 2.4 0.804 2.4 0.888 2.46C1.032 2.544 1.176 2.628 1.32 2.7Z"/>
+ <path id="g51" d="M1.332 -1.728L0.204 -1.524C0.276 -0.96 0.348 -0.408 0.408 0.156C0.528 0.108 0.636 0.036 0.756 -0.012C1.14 -0.18 1.56 -0.252 2.088 -0.252C2.7 -0.36 2.904 -1.032 2.952 -1.596C2.964 -1.596 2.964 -2.352 2.952 -2.352C2.916 -3.156 2.784 -3.792 2.448 -4.38L3.072 -4.5C3.12 -4.26 3.564 -3.144 3.576 -3.108C4.104 -1.656 4.248 -1.14 5.076 0.156C5.58 -0.336 6.084 -0.816 6.552 -1.332L6.564 -1.584C6.348 -1.416 6.096 -1.248 5.772 -1.248C5.412 -1.248 5.268 -1.632 5.172 -1.86C5.076 -2.1 4.152 -4.584 4.152 -4.68C4.152 -4.728 4.188 -4.752 4.236 -4.752C4.32 -4.776 4.932 -4.896 5.148 -4.944C5.22 -4.956 5.388 -4.968 5.388 -5.064C5.388 -5.076 5.388 -5.088 5.388 -5.1C5.376 -5.16 5.364 -5.208 5.352 -5.268C5.304 -5.256 5.232 -5.232 5.172 -5.232S5.088 -5.292 5.088 -5.352C5.064 -5.436 5.04 -5.532 5.028 -5.616L4.884 -6.288C4.86 -6.408 4.824 -6.528 4.812 -6.648L5.016 -6.708C5.04 -6.792 5.004 -6.876 4.992 -6.96C4.644 -6.888 4.26 -6.852 3.9 -6.852C3.792 -6.852 3.696 -6.852 3.588 -6.852C3.408 -6.852 3.228 -6.84 3.048 -6.792C2.376 -6.588 1.98 -5.88 1.98 -5.016C1.74 -5.28 1.452 -5.652 1.452 -6.084C1.452 -6.18 1.464 -6.288 1.488 -6.372C1.632 -7.356 2.604 -8.124 3.756 -8.124C5.028 -8.124 6.132 -7.164 6.132 -5.88C6.132 -5.076 5.736 -4.572 5.28 -4.176V-4.164L5.472 -3.996C6 -4.38 6.396 -5.1 6.396 -5.88C6.396 -6.492 6.168 -7.116 5.736 -7.596C5.208 -8.172 4.488 -8.46 3.732 -8.46C3.588 -8.46 3.444 -8.448 3.3 -8.424C1.98 -8.22 1.02 -7.092 0.684 -5.844C0.612 -5.604 0.54 -5.088 0.54 -4.824C0.54 -4.764 0.54 -4.716 0.564 -4.668C0.672 -4.488 1.128 -4.02 1.2 -3.948L1.608 -3.516C2.088 -3.012 2.676 -2.364 2.676 -1.56C2.676 -1.116 2.46 -0.516 1.98 -0.516C1.464 -0.516 1.332 -1.272 1.332 -1.728ZM4.032 -4.98C3.888 -4.968 2.448 -4.644 2.448 -4.644C2.424 -4.644 2.388 -4.632 2.364 -4.632S2.328 -4.632 2.316 -4.644C2.244 -4.68 2.232 -5.028 2.232 -5.088C2.232 -5.172 2.244 -5.256 2.256 -5.352C2.328 -5.832 2.616 -6.42 3.216 -6.42C3.444 -6.42 3.612 -6.3 3.708 -6.144C3.876 -5.856 3.984 -5.316 4.032 -4.98Z"/>
+ <path id="g52" d="M1.368 -6.3648C0.9936 -6.048 0.4752 -5.472 0.4752 -4.824V-4.7952C0.4752 -4.032 1.0224 -3.4416 1.6704 -3.1104C2.16 -2.8656 2.6928 -2.7792 3.2112 -2.7792C3.4992 -2.7792 3.7728 -2.808 4.0464 -2.8368L3.8592 -2.1888C2.6496 -2.1888 1.4976 -2.1024 0.7488 -1.5264C0.4464 -1.3248 0.1872 -0.9648 0.1872 -0.4896C0.1872 -0.2304 0.2736 0.0288 0.432 0.2304C0.7344 0.6192 1.2528 0.792 1.9008 0.792C3.1968 0.792 4.4352 0.5184 5.3424 0.0576C5.4144 0.0144 5.7024 -0.1584 5.7888 -0.1584S6.3936 0.1728 6.552 0.3024H6.5664C7.1712 -0.3024 8.0352 -1.0656 8.568 -1.6848C9.2592 -2.5344 10.008 -3.6432 10.008 -5.0544C10.008 -5.5008 9.8928 -5.9328 9.6192 -6.2928C9.1872 -6.84 8.6256 -7.1424 7.6176 -7.1424H7.416C7.0848 -7.1424 5.8032 -7.0704 5.5728 -7.0272L6.4512 -10.08L6.1344 -10.1664L5.9328 -9.432C5.7168 -9.504 3.2544 -10.152 3.2112 -10.152C3.0528 -10.152 2.9376 -9.9792 2.8656 -9.9216C2.6064 -9.6912 1.4976 -8.7552 1.368 -8.6544L1.1088 -8.424C0.9936 -8.3376 0.9216 -8.2944 0.9216 -8.1072V-7.8192C0.9216 -7.4304 0.9936 -7.056 1.1664 -6.7104C1.224 -6.5952 1.368 -6.3648 1.368 -6.3648ZM5.5008 -8.0064V-7.9776C5.5008 -7.9056 5.472 -7.8192 5.4576 -7.7616C5.4144 -7.632 5.2848 -7.0848 5.1984 -7.0272C5.112 -6.9552 4.2336 -6.9552 4.2192 -6.9552H3.7584H3.5424C3.1536 -6.9552 2.7648 -6.9696 2.4048 -7.0992C2.0304 -7.2288 1.6992 -7.5312 1.6992 -8.0352C1.6992 -8.4672 1.9584 -8.7408 2.4768 -8.7408H2.5776C3.1824 -8.7408 4.1472 -8.4528 4.5216 -8.3376L5.2704 -8.1216C5.3424 -8.1072 5.5008 -8.0928 5.5008 -8.0064ZM4.5072 -4.4352C3.9456 -4.4208 3.96 -4.3776 3.3408 -4.3776C2.8944 -4.3776 2.3616 -4.4064 2.0304 -4.5072C1.6704 -4.6224 1.3248 -4.896 1.296 -5.2992C1.296 -5.688 1.4112 -5.7888 1.5696 -6.0912C1.9872 -5.7312 2.4192 -5.4144 3.1968 -5.4144C3.2832 -5.4144 3.3552 -5.4288 3.4416 -5.4288C3.9024 -5.4432 4.3488 -5.472 4.8096 -5.5008L4.5072 -4.4352ZM4.8384 -4.464L5.0544 -5.2128C5.0832 -5.2992 5.0976 -5.4576 5.1696 -5.5152C5.2128 -5.5584 5.2992 -5.5584 5.3856 -5.5584H5.5008C5.8752 -5.6016 8.0352 -5.8032 8.0352 -5.7024C8.3808 -5.6592 8.712 -5.5008 8.9568 -5.256S9.4464 -4.5504 9.4464 -4.104C9.4464 -3.4272 9.0144 -2.7792 8.6112 -2.2608C8.4528 -2.0592 7.7904 -1.2672 7.6608 -1.2672H7.632C7.5888 -1.2672 7.3152 -1.44 7.2144 -1.4832C7.3728 -1.728 7.488 -1.9728 7.6032 -2.232C7.8192 -2.6208 8.1792 -3.312 8.1792 -3.7296C8.1792 -3.9168 8.1216 -4.104 7.9776 -4.2768C7.7616 -4.5216 7.4304 -4.5648 7.1136 -4.5648C6.5376 -4.5648 5.1408 -4.5072 4.8384 -4.464ZM6.8544 -1.6704C6.0048 -2.0016 5.0976 -2.1888 4.1904 -2.1888C4.2192 -2.304 4.3488 -2.8224 4.4208 -2.88C4.4784 -2.9088 4.5648 -2.9088 4.6368 -2.9232L5.112 -3.0096C5.2416 -3.024 5.3712 -3.0528 5.5008 -3.0672C5.5728 -3.0816 6.6528 -3.2112 6.6528 -3.1392C6.9264 -3.0816 7.1856 -2.808 7.1856 -2.4768C7.1856 -2.1744 6.9696 -1.944 6.8544 -1.6704ZM5.4 -0.3456C5.256 -0.288 5.1264 -0.2016 4.9968 -0.144C4.1904 0.2592 3.024 0.4896 1.9152 0.4896C1.5408 0.4896 1.1376 0.3744 0.9792 -0.0144C0.936 -0.0864 0.9216 -0.1584 0.9216 -0.2448C0.9216 -0.8352 1.5696 -1.0224 2.0736 -1.0224C2.4768 -1.0224 2.8656 -0.936 3.2544 -0.864C3.9744 -0.7488 4.7232 -0.6336 5.4 -0.3456Z"/>
+ <path id="g53" d="M1.392 -6.204C1.452 -6.168 1.524 -6.096 1.596 -6.096C1.632 -6.096 1.668 -6.132 1.704 -6.156C2.04 -6.396 2.268 -6.936 2.268 -7.428C2.268 -7.656 2.112 -7.812 1.896 -7.812C1.8 -7.812 1.704 -7.776 1.62 -7.716C1.416 -7.536 1.476 -7.296 1.428 -6.96C1.416 -6.96 1.416 -6.792 1.416 -6.684C1.416 -6.564 1.428 -6.204 1.392 -6.204ZM3.144 -7.416C3.12 -7.416 3.108 -7.2 3.108 -7.02C3.108 -6.888 3.12 -6.552 3.108 -6.552C3.096 -6.48 3.096 -6.42 3.084 -6.348C3.084 -6.324 3.084 -6.3 3.084 -6.264C3.084 -6.156 3.18 -6.096 3.276 -6.096C3.312 -6.096 3.348 -6.132 3.384 -6.156C3.708 -6.396 3.948 -6.996 3.948 -7.428C3.948 -7.644 3.792 -7.812 3.576 -7.812C3.324 -7.812 3.18 -7.632 3.144 -7.416ZM0.216 -1.14V-1.116C0.504 -0.948 1.884 -0.096 2.088 0.048C2.124 0.084 2.172 0.132 2.232 0.132C2.232 0.132 2.244 0.132 2.244 0.132C2.28 0.12 2.868 -0.564 3.132 -0.984C3.624 -1.764 3.828 -2.712 3.828 -3.636C3.828 -4.488 3.66 -5.184 3.264 -5.808L1.176 -4.968L0.66 -4.752C0.54 -4.704 0.468 -4.716 0.468 -4.536C0.468 -4.488 0.468 -4.452 0.468 -4.416V-1.728C0.468 -1.704 0.468 -1.68 0.468 -1.656C0.468 -1.488 0.456 -1.332 0.324 -1.212L0.216 -1.14ZM2.712 -0.828C2.688 -0.792 2.652 -0.72 2.604 -0.72C2.568 -0.72 2.544 -0.732 2.52 -0.744C2.148 -0.984 2.028 -1.056 1.572 -1.332L1.38 -1.452C1.308 -1.5 1.26 -1.524 1.26 -1.644C1.26 -1.704 1.272 -1.764 1.272 -1.812V-3.936C1.272 -3.996 1.272 -4.68 1.272 -4.68C1.296 -4.776 1.44 -4.812 1.524 -4.836C1.776 -4.944 2.04 -5.04 2.292 -5.148C2.352 -5.172 2.448 -5.232 2.52 -5.232C2.556 -5.232 2.58 -5.22 2.604 -5.196C2.652 -5.112 2.688 -5.004 2.724 -4.908C2.988 -4.212 3.096 -3.312 3.096 -2.4C3.096 -1.824 2.976 -1.164 2.712 -0.828Z"/>
+ <path id="g54" d="M1.428 -5.808C1.14 -5.364 0.828 -4.944 0.552 -4.488L0.54 -4.248C0.66 -4.344 0.792 -4.452 0.96 -4.452C1.392 -4.452 1.704 -3.96 1.704 -3.6C1.704 -2.988 1.104 -2.724 0.78 -2.448C0.696 -2.388 0.648 -2.328 0.648 -2.208C0.648 -2.16 0.648 -2.124 0.648 -2.088L1.14 -2.004C1.044 -1.884 0.936 -1.788 0.852 -1.668C0.492 -1.224 0.204 -0.576 0.204 0.168C0.204 0.78 0.408 1.392 0.912 1.776C1.116 1.92 1.428 2.064 1.752 2.064C1.92 2.064 2.1 2.028 2.22 1.98C2.916 1.692 3.276 0.864 3.276 -0.036C3.276 -0.588 3.12 -1.152 2.868 -1.632C2.712 -1.92 2.52 -2.16 2.304 -2.4C2.544 -2.496 2.808 -2.544 3.096 -2.592C3.072 -2.664 3.012 -2.796 2.904 -2.796C2.856 -2.796 2.46 -2.724 2.316 -2.676C2.268 -2.652 2.184 -2.616 2.124 -2.616C2.112 -2.616 2.112 -2.616 2.1 -2.616C2.04 -2.628 1.776 -2.844 1.68 -2.892C1.764 -2.988 1.86 -3.072 1.956 -3.156C2.232 -3.444 2.496 -3.792 2.496 -4.32C2.496 -5.04 2.004 -5.592 1.428 -5.808ZM0.564 0.324C0.564 0.228 0.576 0.12 0.576 0.024C0.6 -0.468 0.78 -0.972 1.056 -1.38C1.104 -1.452 1.368 -1.812 1.452 -1.812C1.5 -1.8 1.548 -1.752 1.584 -1.728C2.124 -1.248 2.424 -0.336 2.424 0.54C2.424 0.744 2.388 0.936 2.304 1.116C2.16 1.428 1.812 1.716 1.404 1.716C1.248 1.716 1.092 1.668 0.96 1.548C0.624 1.248 0.612 0.744 0.564 0.324Z"/>
+ <path id="g55" d="M1.44 -7.128C1.224 -6.9264 0.9936 -6.7536 0.7632 -6.552C0.7056 -6.5088 0.5616 -6.4368 0.5616 -6.3504V-6.336C0.5616 -6.264 0.648 -6.192 0.6912 -6.1488L1.0368 -5.7312H0.7776V-1.9728L0.432 -2.1456L-0.1728 -1.0944C0.0432 -0.9792 0.2592 -0.864 0.4752 -0.7632C0.6336 -0.6912 0.7776 -0.6624 0.7776 -0.432V-0.3312V0.2304V0.5904C0.7776 1.0656 0.7632 1.5408 0.576 1.9872C0.4752 2.2032 0.3456 2.376 0.2016 2.5632L0.4896 2.7072L1.0944 1.8288C1.3824 2.0304 1.6848 2.2176 1.9728 2.4048C2.232 2.5776 2.52 2.808 2.9088 2.808C3.096 2.808 3.3408 2.6928 3.3408 2.52C3.3408 2.4192 3.24 2.3472 3.1824 2.304C3.1392 2.4912 3.0528 2.6064 2.8368 2.6064C2.5056 2.6064 2.2608 2.2896 2.16 2.1024C1.9872 1.7856 1.9872 1.4256 1.9872 1.08V0.0144C2.1744 0.1152 2.3472 0.216 2.5488 0.288C3.1536 -0.0144 3.7008 -0.3744 4.3056 -0.6912L4.4496 -0.6336C4.8816 -0.3312 5.2992 -0.0144 5.7456 0.2736L5.9184 0.2304C6.4224 -0.072 6.9696 -0.3312 7.4304 -0.6768L7.4592 -0.9648C7.2144 -0.8496 6.9408 -0.648 6.6672 -0.648H6.6096C6.4368 -0.6768 6.12 -0.9504 6.0336 -1.008L5.5728 -1.3248C5.4576 -1.4112 5.2992 -1.44 5.2992 -1.6416C5.2992 -1.6992 5.3136 -1.7568 5.3136 -1.8V-2.3616V-2.5056C5.3136 -2.736 5.4144 -2.7936 5.544 -2.9376L6.0336 -3.5136L7.776 -5.5728V-5.5872L6.2352 -7.128H6.2208C5.832 -6.7824 5.4288 -6.4656 4.9824 -6.2064C4.968 -6.2064 4.5072 -5.9184 4.5072 -5.976C4.4064 -6.0048 4.3056 -6.1056 4.2192 -6.1632L3.816 -6.4368C3.7296 -6.4944 3.6432 -6.5664 3.5424 -6.6096C3.6288 -6.696 3.7152 -6.7968 3.7872 -6.8976L3.6144 -7.128L3.1968 -6.7536C2.9232 -6.5232 2.7216 -6.2208 2.3904 -6.048L2.2896 -6.1344C2.0016 -6.4656 1.7424 -6.8112 1.44 -7.128ZM2.6064 -5.76C2.7504 -5.7456 3.2832 -5.3136 3.2976 -5.3136C3.4272 -5.2416 3.5424 -5.1984 3.5424 -4.9824V-4.8384V-0.9648C3.5424 -0.9216 3.5568 -0.864 3.5568 -0.792S3.5424 -0.648 3.4848 -0.6192C3.456 -0.6192 3.3552 -0.6192 3.3552 -0.648C3.2832 -0.6768 2.5776 -1.0512 2.304 -1.1808C2.1456 -1.2528 1.9872 -1.2816 1.9872 -1.5264V-1.656V-4.8384V-4.9968C1.9872 -5.2128 2.0592 -5.256 2.1888 -5.3568C2.3328 -5.4864 2.4768 -5.6016 2.6208 -5.7168L2.6064 -5.76ZM5.3136 -3.1824V-5.7888V-5.9184C5.3136 -6.0336 5.3712 -6.1056 5.472 -6.1056C5.5296 -6.1056 5.5728 -6.0624 5.6016 -6.0336L6.408 -5.2272C6.5232 -5.112 6.6384 -4.9824 6.768 -4.8816L5.3136 -3.1824Z"/>
+ <path id="g56" d="M1.44 -7.128C1.224 -6.9264 0.9936 -6.7536 0.7632 -6.552C0.7056 -6.5088 0.5616 -6.4368 0.5616 -6.3504V-6.336C0.5616 -6.264 0.648 -6.192 0.6912 -6.1488L1.0368 -5.7312H0.7776V-1.9728L0.432 -2.1456L-0.1728 -1.0944C0.0432 -0.9792 0.2592 -0.864 0.4752 -0.7632C0.6336 -0.6912 0.7776 -0.6624 0.7776 -0.432V-0.3312V0.2304V0.5904C0.7776 1.0656 0.7632 1.5408 0.576 1.9872C0.4752 2.2032 0.3456 2.376 0.2016 2.5632L0.4896 2.7072L1.0944 1.8288C1.3824 2.0304 1.6848 2.2176 1.9728 2.4048C2.232 2.5776 2.52 2.808 2.9088 2.808C3.096 2.808 3.3408 2.6928 3.3408 2.52C3.3408 2.4192 3.24 2.3472 3.1824 2.304C3.1392 2.4912 3.0528 2.6064 2.8368 2.6064C2.5056 2.6064 2.2608 2.2896 2.16 2.1024C1.9872 1.7856 1.9872 1.4256 1.9872 1.08V0.0144C2.1744 0.1152 2.3472 0.216 2.5488 0.288C3.3696 -0.1296 4.1184 -0.6192 4.9104 -1.0512L4.7664 -1.3536C4.7232 -2.6496 4.7664 -4.0464 4.752 -5.3712L4.9104 -5.688C4.4496 -5.9904 4.0176 -6.3216 3.5424 -6.6096C3.6288 -6.696 3.7152 -6.7968 3.7872 -6.8976L3.6144 -7.128L3.1968 -6.7536C2.9232 -6.5232 2.7216 -6.2208 2.3904 -6.048L2.2896 -6.1344C2.0016 -6.4656 1.7424 -6.8112 1.44 -7.128ZM2.6064 -5.76C2.7504 -5.7456 3.2832 -5.3136 3.2976 -5.3136C3.4272 -5.2416 3.5424 -5.1984 3.5424 -4.9824V-4.8384V-0.9648C3.5424 -0.9216 3.5568 -0.864 3.5568 -0.792S3.5424 -0.648 3.4848 -0.6192C3.456 -0.6192 3.3552 -0.6192 3.3552 -0.648C3.2832 -0.6768 2.5776 -1.0512 2.304 -1.1808C2.1456 -1.2528 1.9872 -1.2816 1.9872 -1.5264V-1.656V-4.8384V-4.9968C1.9872 -5.2128 2.0592 -5.256 2.1888 -5.3568C2.3328 -5.4864 2.4768 -5.6016 2.6208 -5.7168L2.6064 -5.76Z"/>
+ <path id="g57" d="M1.44 -7.128L0.5328 -6.3648L1.0368 -5.7312H0.7776V-1.9728L0.432 -2.1456C0.2304 -1.8 0.0288 -1.4544 -0.1584 -1.08C0.0576 -0.9792 0.2736 -0.864 0.4896 -0.7488C0.6336 -0.6768 0.7776 -0.6624 0.7776 -0.4608V-0.36V0.216V0.6912C0.7776 1.1232 0.7632 1.5408 0.5904 1.944C0.4896 2.1744 0.3456 2.3616 0.2016 2.5632L0.4896 2.7072L1.0944 1.8288C1.4256 2.0304 1.7424 2.2608 2.0736 2.4624C2.2896 2.6064 2.5632 2.808 2.8944 2.808C3.1104 2.808 3.3552 2.7216 3.3552 2.52C3.3552 2.4048 3.2544 2.3472 3.1968 2.304C3.1536 2.4912 3.0672 2.6064 2.8656 2.6064C2.5344 2.6064 2.2752 2.3184 2.1744 2.1168C1.9872 1.8 1.9872 1.4256 1.9872 1.08V0.0144C2.1744 0.1008 2.3616 0.2016 2.5488 0.288C3.1248 0.0288 3.6144 -0.3168 4.1328 -0.6192H4.1472L4.5072 -0.36C4.8528 -0.1584 5.1264 0.1152 5.5152 0.2736L5.6592 0.216C6.408 -0.2016 7.1424 -0.6192 7.848 -1.0656C7.8192 -1.1952 7.7616 -1.2816 7.7184 -1.3824C7.7184 -2.8224 7.704 -4.2768 7.7328 -5.688L7.8768 -6.0048L5.7456 -7.056C5.6016 -6.6816 5.3856 -6.3216 5.0976 -6.0336C5.04 -5.976 4.896 -5.7888 4.7952 -5.7888C4.7088 -5.8176 4.464 -6.0048 4.4352 -6.0192L3.888 -6.3936C3.7728 -6.4656 3.6576 -6.552 3.5424 -6.624V-6.6384C3.6288 -6.7248 3.744 -6.7824 3.8016 -6.912L3.6288 -7.128H3.6144L2.7216 -6.3072C2.6208 -6.2208 2.5344 -6.1056 2.3904 -6.048L2.2896 -6.1344C2.016 -6.48 1.728 -6.8112 1.44 -7.128ZM2.6496 -5.7888C2.9376 -5.5728 3.24 -5.3712 3.528 -5.1408L3.5568 -4.824V-1.3536L3.4272 -1.08C3.5568 -1.008 3.5568 -0.9216 3.5568 -0.7776C3.5568 -0.7056 3.5424 -0.6192 3.456 -0.6192C3.3984 -0.6192 3.3552 -0.648 3.312 -0.6768C3.1104 -0.7632 2.3328 -1.1664 2.3184 -1.1808C2.1888 -1.2528 1.9872 -1.2816 1.9872 -1.512V-1.6704V-4.9104V-5.0112C1.9872 -5.2128 2.088 -5.2704 2.2032 -5.3712C2.3328 -5.4864 2.4768 -5.6016 2.6208 -5.7168C2.6352 -5.7312 2.6064 -5.7888 2.6496 -5.7888ZM6.3936 -0.5616C5.9328 -0.8928 5.4144 -1.1664 4.9824 -1.5408L4.9536 -1.8144V-5.1408C5.1408 -5.3712 5.3568 -5.5728 5.616 -5.7456C5.9472 -5.6304 6.2208 -5.472 6.4944 -5.2992C6.4944 -5.2992 6.5088 -4.9968 6.5088 -4.9968C6.5088 -3.5424 6.5232 -2.0736 6.4944 -0.6624L6.3936 -0.5616Z"/>
+ <path id="g58" d="M1.44 -7.128L0.5328 -6.3648L1.0368 -5.7312H0.7776V-1.9728L0.432 -2.1456C0.2304 -1.8 0.0288 -1.4544 -0.1584 -1.08C0.0576 -0.9792 0.2736 -0.864 0.4896 -0.7488C0.6336 -0.6768 0.7776 -0.6624 0.7776 -0.4608V-0.36V0.216V0.6912C0.7776 1.1232 0.7632 1.5408 0.5904 1.944C0.4896 2.1744 0.3456 2.3616 0.2016 2.5632L0.4896 2.7072L1.0944 1.8288C1.4256 2.0304 1.7424 2.2608 2.0736 2.4624C2.2896 2.6064 2.5632 2.808 2.8944 2.808C3.1104 2.808 3.3552 2.7216 3.3552 2.52C3.3552 2.4048 3.2544 2.3472 3.1968 2.304C3.1536 2.4912 3.0672 2.6064 2.8656 2.6064C2.5344 2.6064 2.2752 2.3184 2.1744 2.1168C1.9872 1.8 1.9872 1.4256 1.9872 1.08V0.0144C2.1744 0.1008 2.3616 0.2016 2.5488 0.288L2.6928 0.2304C3.1104 -0.0288 3.5424 -0.2592 3.96 -0.5184H3.9744C4.1904 -0.2448 4.4064 0.0288 4.6512 0.2736L4.7952 0.216C5.328 -0.1152 5.832 -0.4896 6.408 -0.792L6.5088 -0.72L7.3728 0.3024H7.3872L8.2944 -0.4608L7.7904 -1.0944H8.0496C8.064 -2.6496 8.0208 -4.2912 8.064 -5.76C8.1936 -5.9184 8.352 -6.048 8.496 -6.1776C7.9344 -6.48 7.4448 -6.84 6.8544 -7.0992L6.6816 -7.0128C6.0624 -6.5952 5.4576 -6.1632 4.8672 -5.7168H4.8528L3.5424 -6.624V-6.6384C3.6288 -6.7248 3.744 -6.7824 3.8016 -6.912L3.6288 -7.128H3.6144L2.7216 -6.3072C2.6208 -6.2208 2.5344 -6.1056 2.3904 -6.048L2.2896 -6.1344C2.016 -6.48 1.728 -6.8112 1.44 -7.128ZM2.6352 -5.7888H2.6496C2.8224 -5.616 3.0672 -5.4864 3.2688 -5.3424C3.4128 -5.2416 3.5568 -5.2272 3.5568 -4.9824V-4.8384V-1.4112V-1.3248C3.5568 -1.2528 3.5424 -1.1808 3.4848 -1.1088C3.5424 -0.9936 3.5568 -0.8928 3.5568 -0.7632C3.5568 -0.6912 3.5424 -0.6192 3.456 -0.6192C3.4128 -0.6192 3.1968 -0.7344 3.1248 -0.7632L2.3328 -1.1664C2.2032 -1.2528 1.9872 -1.2672 1.9872 -1.512V-1.6704V-4.9104V-5.0112C1.9872 -5.2128 2.088 -5.2704 2.2032 -5.3712C2.3328 -5.4864 2.4768 -5.6016 2.6208 -5.7168L2.6352 -5.7888ZM6.84 -3.312C6.6528 -3.312 6.4512 -3.2976 6.2496 -3.2976C5.7024 -3.2976 5.328 -3.4128 4.9824 -3.6864C4.8816 -3.7584 4.7664 -3.8448 4.7664 -4.032V-4.1472V-4.9968V-5.0832C4.7664 -5.2416 4.896 -5.328 4.9824 -5.4C5.1984 -5.5872 5.9184 -6.1488 6.1632 -6.1488C6.336 -6.1488 6.4656 -6.0192 6.5664 -5.9472C6.696 -5.8752 6.84 -5.8176 6.84 -5.616V-5.5296V-3.312ZM4.7664 -3.168V-3.4416L5.0544 -3.24L4.7664 -3.168ZM6.2064 -1.1088L6.2208 -1.0656C5.976 -0.9216 5.76 -0.7632 5.4864 -0.648C5.3136 -0.7632 5.1984 -0.936 5.0688 -1.0944H5.328V-2.2608C5.328 -2.6352 5.472 -2.9952 5.9328 -2.9952H6.0624H6.84C6.84 -2.5344 6.8544 -2.0592 6.8112 -1.6416C6.624 -1.44 6.408 -1.2816 6.2064 -1.1088Z"/>
+ <path id="g59" d="M1.4544 -3.24L0.2016 -2.9088L0.504 -2.2896C0.5184 -2.0592 0.5184 -1.8432 0.4896 -1.6272C0.3024 -1.44 0.0864 -1.2672 -0.1152 -1.0944V-1.08C0.288 -0.6336 0.6192 -0.1296 1.0512 0.2736L1.1952 0.216C1.728 -0.1152 2.232 -0.4896 2.808 -0.792L2.9088 -0.72L3.7728 0.3024H3.7872L4.6944 -0.4608L4.1904 -1.0944H4.4496C4.464 -2.6496 4.4208 -4.2912 4.464 -5.76C4.608 -5.904 4.7664 -6.0336 4.9104 -6.1776C4.608 -6.336 3.3408 -7.0992 3.2544 -7.0992C3.1248 -7.0992 2.9664 -6.9264 2.9088 -6.8976L2.2032 -6.408C1.8288 -6.1344 1.4112 -5.8896 1.08 -5.5584C0.792 -5.2704 0.6048 -5.04 0.6048 -4.4784C0.6048 -3.8592 1.0944 -3.4848 1.4544 -3.24ZM3.24 -3.312C3.0528 -3.312 2.8656 -3.2976 2.6784 -3.2976C2.4624 -3.2976 2.2464 -3.312 2.0304 -3.3696C1.4688 -3.5136 0.9072 -3.96 0.9072 -4.608C0.9072 -4.7376 0.936 -4.8672 1.008 -4.9968C1.1808 -5.2848 1.4976 -5.5152 1.7712 -5.7024C1.9152 -5.8176 2.3616 -6.1488 2.5632 -6.1488C2.736 -6.1488 2.8656 -6.0192 2.9808 -5.9472C3.0816 -5.8608 3.24 -5.832 3.24 -5.6448V-5.5584V-3.312ZM2.6064 -1.1088L2.6208 -1.0656C2.376 -0.9216 2.16 -0.7632 1.8864 -0.648C1.7136 -0.7632 1.5984 -0.936 1.4688 -1.0944H1.728V-1.9584V-2.2032C1.728 -2.664 1.8576 -2.9952 2.3472 -2.9952H2.4768H3.24C3.24 -2.5344 3.2544 -2.0592 3.2112 -1.6416C3.024 -1.44 2.808 -1.2816 2.6064 -1.1088Z"/>
+ <path id="g60" d="M1.4976 -6.8976L0.1584 -5.6448V-5.6304C0.4464 -5.3136 0.7488 -4.9968 1.008 -4.6512L1.0224 -4.464V0.1872L1.9872 -0.2448L2.2464 -0.36C2.3472 -0.3888 2.3904 -0.432 2.3904 -0.576V-0.72V-4.8528V-5.0112C2.3904 -5.0544 2.3904 -5.112 2.4192 -5.1552C2.4624 -5.2128 2.9664 -5.5152 3.1248 -5.6304C3.1968 -5.6736 3.2832 -5.76 3.3696 -5.76H3.384C3.4704 -5.7456 3.816 -5.4144 3.816 -5.4144C3.9024 -5.3424 4.0896 -5.2416 4.1184 -5.112C4.1328 -5.0544 4.1328 -4.9824 4.1328 -4.9248C4.1328 -4.7952 4.1184 -4.6656 4.1184 -4.536V0.1728C4.896 -0.3312 5.688 -0.8208 6.408 -1.3824L6.4224 -1.6848C6.336 -1.656 6.264 -1.6128 6.1776 -1.6128C5.8464 -1.6128 5.6016 -1.9296 5.5296 -2.2176C5.4864 -2.376 5.4864 -2.5344 5.4864 -2.6928V-3.0816V-4.608C5.4864 -4.9104 5.5872 -5.2416 5.8608 -5.3424C5.976 -5.3856 6.0192 -5.3856 6.0192 -5.544V-5.6448C6.0048 -5.7312 5.9184 -5.7888 5.8464 -5.8464C5.7024 -5.976 5.0256 -6.5376 4.8384 -6.696C4.7664 -6.7536 4.6656 -6.8688 4.5792 -6.8688C4.5072 -6.8688 4.464 -6.8112 4.4064 -6.7824C3.7296 -6.3216 3.0672 -5.9616 2.3904 -5.472C2.3904 -5.6304 2.3904 -5.7888 2.376 -5.9328C2.1024 -6.2784 1.8 -6.5808 1.4976 -6.8976Z"/>
+ <path id="g61" d="M1.4976 -6.8976L0.1584 -5.6448V-5.6304C0.4464 -5.3136 0.7488 -5.0112 1.008 -4.6656C1.0512 -3.7152 1.0368 -2.6208 0.9936 -1.7136C0.7344 -1.4976 0.4464 -1.3104 0.1728 -1.1088V-1.08L1.656 -0.1584L2.0304 0.0864C2.088 0.1152 2.1312 0.1584 2.1888 0.1584C2.3184 0.1584 2.448 0.0144 2.52 -0.0288L3.9312 -1.008C3.9888 -1.0512 4.1184 -1.1088 4.1184 -1.1952C4.1184 -1.296 4.032 -1.3968 3.96 -1.3968C3.8736 -1.3968 3.7872 -1.3104 3.744 -1.2816L3.4128 -1.0512C3.3552 -1.008 3.2832 -0.936 3.2112 -0.936C3.1536 -0.936 3.0816 -0.9792 3.0384 -1.008L2.7072 -1.224C2.6064 -1.2816 2.4336 -1.3536 2.3904 -1.4688V-4.7664C2.3904 -4.8528 2.376 -4.9536 2.376 -5.0544C2.376 -5.256 2.448 -5.2992 2.592 -5.3856L3.0816 -5.7312C3.1392 -5.7744 3.2112 -5.8464 3.2976 -5.8464C3.3984 -5.8464 3.4848 -5.7024 3.5424 -5.6448L4.1184 -5.0688H4.1328L4.7664 -5.7024C4.8672 -5.8032 4.968 -5.8752 4.968 -6.0192S4.8384 -6.2496 4.752 -6.336L4.1904 -6.8976H4.176L2.3904 -5.6448L2.376 -5.9328C2.1024 -6.2784 1.8 -6.5808 1.4976 -6.8976Z"/>
+ <path id="g62" d="M1.4976 -6.8976L0.1584 -5.6448V-5.6304C0.4464 -5.328 0.7344 -5.0112 0.9936 -4.68L1.0224 -4.4496C1.0224 -3.6144 1.0368 -2.7792 1.008 -1.9872C0.8064 -1.8144 0.5904 -1.656 0.3888 -1.4976L0.8352 -1.3104C0.9648 -1.2384 1.0224 -1.2672 1.0224 -1.0512V0.36C1.0368 1.08 1.2672 1.8144 1.6416 2.4336C1.7856 2.232 1.8864 1.9584 1.9872 1.728C2.2896 0.9648 2.3904 0.1728 2.3904 -0.648C2.4912 -0.6048 3.8592 -0.0288 3.888 -0.0288C3.9888 -0.0432 4.104 -0.1584 4.176 -0.216L4.824 -0.6912C5.1552 -0.936 5.4864 -1.1664 5.7744 -1.4832C6.336 -2.1312 6.6672 -3.0096 6.6672 -3.8736C6.6672 -3.9888 6.6672 -4.1184 6.6528 -4.2336C6.5088 -5.328 5.6016 -6.1632 4.8672 -6.8976H4.8528L2.3904 -4.4352C2.376 -4.9248 2.4048 -5.4576 2.376 -5.9184C2.1168 -6.2784 1.8144 -6.5952 1.4976 -6.8976ZM3.9168 -5.5152C4.4496 -4.9824 5.0256 -4.3344 5.2272 -3.5856C5.3136 -3.2688 5.328 -2.9232 5.328 -2.5776V-2.3328C5.328 -2.0016 5.3136 -1.6416 5.1264 -1.3536C5.0832 -1.2672 4.968 -1.0944 4.8384 -1.0944C4.7664 -1.0944 4.6512 -1.152 4.5936 -1.1952L2.5632 -2.0448C2.4624 -2.1168 2.3904 -2.088 2.3904 -2.2752V-3.8016C2.3904 -3.8592 2.3904 -3.9168 2.4048 -3.96C2.448 -4.0608 2.8224 -4.4064 2.8368 -4.4208C3.1968 -4.7952 3.5712 -5.1264 3.9168 -5.5152Z"/>
+ <path id="g63" d="M1.524 -5.196V-5.172C1.272 -5.04 1.056 -4.836 0.816 -4.68C0.756 -4.644 0.588 -4.524 0.552 -4.476C0.54 -4.476 0.54 -4.392 0.54 -4.392V-1.848C0.54 -1.776 0.552 -1.704 0.552 -1.644C0.552 -1.38 0.42 -1.248 0.204 -1.188C0.204 -1.152 0.192 -1.116 0.192 -1.068C0.192 -1.032 0.204 -0.984 0.228 -0.96C0.252 -0.912 0.336 -0.912 0.384 -0.888C0.888 -0.744 1.428 -0.468 1.812 -0.228C2.004 -0.108 2.172 0.036 2.364 0.156L2.796 -0.528C3.276 -1.296 3.756 -2.088 3.756 -3.252C3.756 -4.188 3.384 -4.98 2.856 -5.4C2.472 -5.736 2.004 -5.844 1.536 -5.988C1.068 -6.12 0.456 -6.312 0.456 -6.924C0.456 -7.164 0.612 -7.476 0.948 -7.476V-7.716C0.324 -7.716 -0.132 -7.212 -0.132 -6.624C-0.132 -5.904 0.576 -5.592 1.056 -5.388C1.212 -5.316 1.368 -5.244 1.524 -5.196ZM1.356 -1.176V-4.08C1.356 -4.176 1.344 -4.284 1.344 -4.392C1.344 -4.644 1.44 -4.812 1.596 -4.932C1.644 -4.98 1.716 -5.052 1.788 -5.052C1.872 -5.052 1.992 -4.98 2.052 -4.944C2.724 -4.584 3.348 -3.864 3.348 -2.892C3.348 -2.244 3.144 -1.656 2.916 -1.188C2.88 -1.128 2.82 -0.96 2.712 -0.96C2.688 -0.96 2.664 -0.96 2.652 -0.972L2.388 -1.008C2.04 -1.068 1.704 -1.128 1.356 -1.176Z"/>
+ <path id="g64" d="M1.5552 -9.3888L1.656 -7.3152L1.7856 -7.56C2.016 -8.1792 2.2752 -8.784 2.52 -9.3888H1.5552ZM1.656 -7.128L0.9792 -6.552C0.9216 -6.5088 0.7776 -6.4368 0.7776 -6.3504V-6.336C0.7776 -6.264 0.864 -6.192 0.9072 -6.1488L1.2528 -5.7312H0.9936C0.9792 -4.3776 1.0224 -2.9664 0.9792 -1.656C0.792 -1.4544 0.576 -1.2816 0.36 -1.0944V-1.08L1.5264 0.3024H1.5408L2.2176 -0.2736C2.2752 -0.3168 2.4192 -0.3888 2.4192 -0.4752V-0.4896C2.4192 -0.5616 2.3328 -0.6336 2.2896 -0.6768L1.944 -1.0944H2.2032C2.2176 -2.448 2.1744 -3.8592 2.2176 -5.1696C2.4048 -5.3712 2.6208 -5.544 2.8368 -5.7312V-5.7456L1.656 -7.128Z"/>
+ <path id="g65" d="M1.692 -7.428C1.656 -7.428 1.656 -7.164 1.656 -6.96C1.656 -6.84 1.668 -6.564 1.656 -6.564C1.656 -6.492 1.644 -6.42 1.632 -6.348C1.632 -6.324 1.632 -6.3 1.632 -6.264C1.632 -6.252 1.632 -6.228 1.632 -6.216C1.668 -6.168 1.752 -6.096 1.824 -6.096C1.92 -6.096 2.124 -6.348 2.136 -6.372C2.376 -6.66 2.496 -7.056 2.496 -7.428C2.496 -7.644 2.34 -7.812 2.124 -7.812C1.872 -7.812 1.728 -7.632 1.692 -7.428ZM3.288 -6.204C3.348 -6.168 3.42 -6.096 3.492 -6.096C3.528 -6.096 3.564 -6.132 3.6 -6.156C3.936 -6.396 4.164 -6.936 4.164 -7.428C4.164 -7.668 3.996 -7.812 3.78 -7.812C3.384 -7.812 3.324 -7.368 3.324 -6.972C3.312 -6.708 3.336 -6.456 3.288 -6.204ZM1.944 -5.808L1.62 -5.472C1.356 -5.208 1.092 -4.944 0.888 -4.632C0.456 -3.972 0.204 -3.048 0.204 -2.028C0.204 -1.896 0.216 -1.776 0.228 -1.644C0.312 -0.948 0.78 -0.3 1.356 -0.012L1.164 0.156L1.536 0.144C2.004 -0.192 2.4 -0.588 2.844 -0.936C2.88 -0.732 2.94 -0.528 3.012 -0.336C3.036 -0.3 3.156 -0.048 3.156 -0.024C3.156 0.036 3.084 0.108 3.048 0.156L3.348 0.144C3.6 -0.12 3.84 -0.396 4.056 -0.696L4.068 -1.044C4.044 -1.02 3.996 -0.984 3.948 -0.984C3.816 -0.984 3.696 -1.14 3.648 -1.236C3.624 -1.308 3.624 -1.392 3.624 -1.476V-3.048C3.624 -3.192 3.612 -3.348 3.612 -3.504C3.612 -3.936 3.708 -4.248 3.924 -4.512C3.96 -4.572 4.032 -4.62 4.032 -4.68C4.032 -4.764 3.9 -4.884 3.888 -4.908C3.78 -5.052 3.744 -5.064 3.504 -5.1C3.012 -5.232 2.688 -5.352 2.268 -5.592C2.16 -5.664 2.052 -5.748 1.944 -5.808ZM1.452 -4.968C1.608 -4.896 2.4 -4.416 2.424 -4.404L2.664 -4.26C2.76 -4.212 2.808 -4.164 2.808 -4.032C2.808 -3.996 2.808 -3.96 2.808 -3.936V-1.488C2.808 -1.452 2.808 -1.416 2.808 -1.368C2.808 -1.332 2.808 -1.296 2.796 -1.26C2.736 -1.092 2.304 -0.972 2.124 -0.972C1.644 -0.972 1.284 -1.392 1.164 -1.836C1.092 -2.076 1.08 -2.316 1.08 -2.556C1.08 -2.7 1.092 -2.856 1.092 -3C1.104 -3.552 1.092 -4.14 1.296 -4.668C1.332 -4.776 1.404 -4.872 1.452 -4.968Z"/>
+ <path id="g66" d="M1.848 -7.8C1.8 -7.8 1.752 -7.788 1.716 -7.764C1.464 -7.656 1.452 -7.344 1.452 -7.092C1.452 -7.056 1.452 -7.008 1.452 -6.972V-6.792C1.452 -6.708 1.44 -6.624 1.44 -6.54C1.44 -6.48 1.44 -6.408 1.428 -6.348C1.428 -6.324 1.428 -6.3 1.428 -6.264C1.428 -6.252 1.428 -6.228 1.428 -6.216C1.464 -6.168 1.548 -6.096 1.62 -6.096C1.656 -6.096 1.692 -6.132 1.728 -6.156C2.04 -6.42 2.28 -6.924 2.28 -7.392C2.28 -7.644 2.172 -7.812 1.92 -7.812C1.896 -7.812 1.872 -7.8 1.848 -7.8ZM3.084 -6.204C3.144 -6.168 3.216 -6.096 3.288 -6.096C3.336 -6.096 3.384 -6.144 3.408 -6.156C3.732 -6.48 3.96 -6.828 3.96 -7.428C3.96 -7.668 3.792 -7.812 3.576 -7.812C3.336 -7.812 3.204 -7.632 3.156 -7.428C3.108 -7.176 3.108 -6.36 3.084 -6.204ZM1.188 -5.808L0.204 -4.548V-4.536L0.384 -4.392H0.396C0.432 -4.44 0.588 -4.668 0.648 -4.668C0.744 -4.668 0.828 -4.488 0.852 -4.452C0.96 -4.248 0.972 -4.032 0.972 -3.804C0.972 -3.768 0.972 -3.72 0.972 -3.684V-1.368C0.972 -1.332 0.972 -1.284 0.972 -1.248C0.972 -0.936 0.744 -0.828 0.492 -0.756V-0.504C0.924 -0.504 1.296 -0.276 1.512 0.024C1.56 0.084 1.584 0.156 1.692 0.156C1.86 0.156 1.98 -0.036 2.088 -0.144L3.12 -1.176C3.24 -0.9 3.384 -0.624 3.516 -0.348C3.564 -0.252 3.648 -0.132 3.648 -0.024C3.648 0 3.636 0.012 3.636 0.036L3.84 0.156L4.776 -1.344L4.56 -1.464C4.524 -1.404 4.38 -1.14 4.332 -1.128C4.296 -1.128 4.272 -1.14 4.248 -1.164C4.056 -1.308 3.936 -1.536 3.936 -1.848C3.936 -1.92 3.936 -1.992 3.936 -2.052V-3.888C3.936 -4.092 3.936 -4.308 3.936 -4.524C3.936 -4.728 3.924 -4.968 4.02 -5.088C4.044 -5.136 4.116 -5.16 4.128 -5.208C4.14 -5.208 4.14 -5.352 4.14 -5.352C3.9 -5.4 3.684 -5.568 3.612 -5.808C3.588 -5.808 3.564 -5.808 3.54 -5.808C3.444 -5.808 3.432 -5.76 3.396 -5.7C3.312 -5.52 3.096 -5.4 2.916 -5.352C2.916 -5.328 2.916 -5.304 2.916 -5.28C2.916 -5.16 3.024 -5.112 3.06 -5.052C3.12 -4.92 3.12 -4.764 3.12 -4.584C3.12 -4.416 3.12 -4.248 3.12 -4.092V-1.932C3.12 -1.848 3.132 -1.764 3.132 -1.68C3.132 -1.488 3.06 -1.464 2.94 -1.344L2.52 -0.924C2.472 -0.876 2.388 -0.756 2.316 -0.756C2.256 -0.756 2.208 -0.816 2.172 -0.84L1.932 -1.056C1.848 -1.116 1.788 -1.164 1.788 -1.308V-3.54C1.788 -4.056 1.776 -4.536 1.608 -5.028C1.536 -5.256 1.332 -5.664 1.188 -5.808Z"/>
+ <path id="g67" d="M1.872 -5.808L1.152 -5.088C1.068 -5.004 0.972 -4.92 0.912 -4.812L0.972 -4.716L1.872 -3.816H1.884L2.604 -4.536C2.688 -4.62 2.784 -4.704 2.844 -4.812L2.784 -4.908L1.872 -5.808ZM0.888 1.812L1.104 1.92L2.712 -0.588C2.76 -0.648 2.844 -0.744 2.844 -0.816C2.844 -0.876 2.772 -0.936 2.736 -0.972L2.052 -1.656C2.004 -1.704 1.944 -1.788 1.884 -1.8C1.848 -1.8 1.812 -1.776 1.788 -1.752C1.728 -1.704 1.128 -1.092 1.128 -1.092C1.068 -1.032 0.948 -0.948 0.924 -0.864C0.912 -0.864 0.912 -0.828 0.912 -0.828S0.936 -0.756 0.948 -0.756L1.092 -0.576C1.26 -0.312 1.344 0 1.344 0.36C1.344 0.708 1.26 1.056 1.116 1.368C1.044 1.524 0.948 1.656 0.888 1.812Z"/>
+ <path id="g68" d="M1.872 0.156H1.884L2.868 -0.828C2.784 -0.924 2.688 -1.02 2.604 -1.104L2.16 -1.548C2.124 -1.584 1.92 -1.8 1.872 -1.8C1.8 -1.8 1.716 -1.68 1.668 -1.632L1.104 -1.068C1.068 -1.032 0.912 -0.912 0.912 -0.828C0.924 -0.792 0.96 -0.756 0.984 -0.732L1.872 0.156Z"/>
+ <path id="g69" d="M1.944 -5.808L1.62 -5.472C1.356 -5.208 1.092 -4.944 0.888 -4.632C0.456 -3.972 0.204 -3.048 0.204 -2.028C0.204 -1.896 0.216 -1.776 0.228 -1.644C0.312 -0.948 0.78 -0.3 1.356 -0.012L1.164 0.156L1.536 0.144C2.004 -0.192 2.4 -0.588 2.844 -0.936C2.88 -0.732 2.94 -0.528 3.012 -0.336C3.036 -0.3 3.156 -0.048 3.156 -0.024C3.156 0.036 3.084 0.108 3.048 0.156L3.348 0.144C3.6 -0.12 3.84 -0.396 4.056 -0.696L4.068 -1.044C4.044 -1.02 3.996 -0.984 3.948 -0.984C3.816 -0.984 3.696 -1.14 3.648 -1.236C3.624 -1.308 3.624 -1.392 3.624 -1.476V-3.048C3.624 -3.192 3.612 -3.348 3.612 -3.504C3.612 -3.936 3.708 -4.248 3.924 -4.512C3.96 -4.572 4.032 -4.62 4.032 -4.68C4.032 -4.764 3.9 -4.884 3.888 -4.908C3.78 -5.052 3.744 -5.064 3.504 -5.1C3.012 -5.232 2.688 -5.352 2.268 -5.592C2.16 -5.664 2.052 -5.748 1.944 -5.808ZM1.452 -4.968C1.608 -4.896 2.4 -4.416 2.424 -4.404L2.664 -4.26C2.76 -4.212 2.808 -4.164 2.808 -4.032C2.808 -3.996 2.808 -3.96 2.808 -3.936V-1.488C2.808 -1.452 2.808 -1.416 2.808 -1.368C2.808 -1.332 2.808 -1.296 2.796 -1.26C2.736 -1.092 2.304 -0.972 2.124 -0.972C1.644 -0.972 1.284 -1.392 1.164 -1.836C1.092 -2.076 1.08 -2.316 1.08 -2.556C1.08 -2.7 1.092 -2.856 1.092 -3C1.104 -3.552 1.092 -4.14 1.296 -4.668C1.332 -4.776 1.404 -4.872 1.452 -4.968Z"/>
+ <path id="g70" d="M1.9872 -7.128L1.1376 -6.2784V-6.264L1.9872 -5.4144H2.0016L2.8512 -6.264V-6.2784L1.9872 -7.128ZM1.9872 -1.4112L1.1376 -0.5616V-0.5472L1.9872 0.3024H2.0016L2.8512 -0.5472V-0.5616L1.9872 -1.4112Z"/>
+ <path id="g71" d="M17.489 -47.7353C17.0715 -47.5497 16.8396 -47.0858 16.886 -46.4364C16.9787 -45.4622 17.3035 -44.6736 17.9065 -44.0705C18.3704 -43.6066 18.8807 -43.3283 19.4374 -43.2819L19.623 -43.2355L19.4374 -43.1891C18.4168 -42.6788 17.489 -42.6788 16.3757 -43.1427C15.6334 -43.421 14.5665 -43.9777 13.4067 -44.72L12.8036 -45.0911V-45.2766C12.8036 -45.7405 12.3861 -46.0189 11.9686 -45.8333L11.8294 -45.7405L11.0872 -46.1117C10.345 -46.4828 9.60273 -46.7611 8.90688 -46.9003C6.81933 -47.3178 4.639 -46.7611 2.87618 -45.2766C1.80921 -44.3952 0.83502 -43.0035 0.37112 -41.6582C0.27834 -41.4263 0.27834 -41.4263 0.13917 -41.3799C-0.09278 -41.3335 -0.32473 -41.1015 -0.32473 -40.8232C-0.37112 -40.5912 -0.27834 -40.4057 -0.13917 -40.2665L0 -40.1737L-0.04639 -39.8954C-0.04639 -39.7098 -0.09278 -39.4315 -0.09278 -39.2459C-0.13917 -38.8748 -0.13917 -38.8748 -0.23195 -38.8284C-0.41751 -38.7356 -0.4639 -38.5965 -0.51029 -38.4573C-0.51029 -38.2254 -0.41751 -37.9934 -0.23195 -37.9006C-0.09278 -37.8542 -0.09278 -37.8078 -0.04639 -37.5759C-0.04639 -37.1584 0.09278 -36.4161 0.23195 -35.9522C0.55668 -34.6997 1.25253 -33.4472 2.08755 -32.4266L2.45867 -32.0555L2.3195 -31.9627C1.71643 -31.4988 1.29892 -30.9885 1.06697 -30.2927L0.9278 -29.9215V-29.3185C0.9278 -28.7154 0.9278 -28.669 1.02058 -28.3907C1.34531 -27.5557 1.8556 -27.0918 2.55145 -27.0454C2.69062 -27.0454 2.92257 -27.0454 3.01535 -27.0918C3.61842 -27.1845 4.1751 -27.6948 4.31427 -28.3443C4.49983 -28.9937 4.26788 -29.4576 3.61842 -29.6432C3.01535 -29.8288 2.41228 -29.6432 2.18033 -29.2257C1.99477 -28.8082 2.22672 -28.3907 2.64423 -28.3907C3.15452 -28.3907 3.34008 -28.9937 2.96896 -29.3185C2.87618 -29.3649 2.87618 -29.3649 2.96896 -29.4113C2.96896 -29.4113 3.15452 -29.4113 3.29369 -29.4113C3.57203 -29.4113 3.85037 -29.2721 3.98954 -29.0865S4.12871 -28.6226 4.03593 -28.3443C3.89676 -27.9268 3.61842 -27.602 3.2473 -27.4165C3.06174 -27.3701 2.96896 -27.3237 2.69062 -27.3237C2.22672 -27.3237 2.04116 -27.4165 1.76282 -27.6948C1.3917 -28.0659 1.20614 -28.6226 1.20614 -29.3185C1.20614 -30.2927 1.62365 -31.0813 2.41228 -31.6844L2.64423 -31.8699L2.92257 -31.5916C3.57203 -30.9885 4.49983 -30.3854 5.28846 -30.0143C7.56157 -28.9474 10.0202 -28.8546 12.4789 -29.6896C13.7778 -30.1535 14.8448 -30.7102 17.489 -32.3802C18.8807 -33.2616 20.1333 -34.0039 20.0405 -33.8647C19.9941 -33.8647 19.7621 -33.6327 19.4374 -33.4008C17.6746 -31.8699 15.7262 -29.9679 12.8964 -26.8598L12.7109 -26.6279L12.5717 -26.6742C12.2933 -26.767 12.1078 -26.9526 11.9686 -27.4629C11.8294 -27.8804 11.7367 -28.0196 11.5511 -28.1123S11.18 -28.2051 10.9944 -28.0659C10.8553 -27.9268 10.7161 -27.6948 10.4841 -27.0918C10.113 -26.0248 9.69551 -25.3289 9.23161 -24.865C8.53576 -24.2156 7.60796 -23.9836 6.9585 -24.4011C6.68016 -24.5403 6.26265 -25.0506 6.07709 -25.4217C5.79875 -25.8856 5.75236 -26.5351 5.89153 -26.9062L5.93792 -26.999L6.0307 -26.9526C6.21626 -26.767 6.40182 -26.7206 6.63377 -26.8598C6.9585 -27.0454 6.9585 -27.5093 6.63377 -27.7412C6.30904 -27.9268 5.93792 -27.6948 5.70597 -27.1381C5.5668 -26.9062 5.5668 -26.8598 5.5668 -26.4887C5.52041 -25.7001 5.79875 -25.0506 6.44821 -24.4475C6.9585 -23.8908 7.60796 -23.7517 8.39659 -24.03C9.46356 -24.4011 10.345 -25.4681 10.7625 -27.0454C10.948 -27.602 11.0408 -27.7876 11.18 -27.834C11.3655 -27.9732 11.6439 -27.834 11.7367 -27.6484C11.8294 -27.5093 11.7831 -27.3701 11.6903 -26.9526C11.5975 -26.4887 11.5975 -26.3495 11.7367 -26.2103C11.8294 -26.0712 11.9222 -26.0712 12.1542 -26.164L12.3397 -26.2103L12.247 -26.1176C12.2006 -26.0712 11.6439 -25.4217 11.0408 -24.7259C10.0202 -23.6125 9.88107 -23.4733 9.78829 -23.4733C9.78829 -23.5197 9.64912 -23.5197 9.55634 -23.5197C9.09244 -23.5197 8.8141 -23.0558 8.99966 -22.6383L9.04605 -22.4991L8.39659 -21.8497C7.79352 -21.2466 7.09767 -20.6435 7.00489 -20.6435C7.00489 -20.6435 6.91211 -20.6899 6.86572 -20.7827C6.40182 -21.525 5.42763 -22.128 4.59261 -22.2208H4.31427L4.45344 -22.3136C4.96373 -22.4991 5.33485 -23.0094 5.42763 -23.6125C5.52041 -24.1228 5.33485 -24.7259 4.91734 -25.1434C4.22149 -25.7928 3.20091 -25.932 2.3195 -25.4217C2.08755 -25.2362 1.71643 -24.865 1.53087 -24.5867C1.25253 -24.03 1.06697 -23.3342 1.15975 -22.6847C1.25253 -22.128 1.48448 -21.525 1.76282 -21.1074C1.76282 -21.0611 1.76282 -21.0147 1.62365 -20.8291C1.15975 -20.0405 1.02058 -18.9735 1.34531 -18.1849C1.48448 -17.9065 1.71643 -17.5354 1.8556 -17.3962C2.50506 -16.7932 3.43286 -16.7468 3.98954 -17.2571C4.26788 -17.489 4.36066 -17.721 4.36066 -18.0457C4.36066 -18.2777 4.36066 -18.3704 4.26788 -18.5096C4.08232 -18.8807 3.7112 -19.0663 3.29369 -19.0199C2.64423 -18.9735 2.22672 -18.4632 2.45867 -17.9993S3.34008 -17.6282 3.43286 -18.1849C3.47925 -18.324 3.34008 -18.6024 3.20091 -18.6488C3.10813 -18.6952 3.20091 -18.7416 3.38647 -18.7416C3.75759 -18.7416 4.03593 -18.5096 4.08232 -18.1849C4.12871 -17.8138 3.94315 -17.489 3.57203 -17.3035C3.38647 -17.2107 3.29369 -17.2107 3.06174 -17.2107C2.7834 -17.2107 2.73701 -17.2107 2.45867 -17.3499C1.62365 -17.7674 1.25253 -18.9271 1.57726 -19.9941C1.71643 -20.3188 1.90199 -20.7363 1.94838 -20.7827C1.99477 -20.7827 2.08755 -20.6899 2.22672 -20.5508C3.29369 -19.5766 4.87095 -19.2982 6.21626 -19.8549C6.35543 -19.9477 6.58738 -20.0405 6.68016 -20.0869C6.81933 -20.1796 6.91211 -20.226 6.91211 -20.1796C6.9585 -20.1333 7.14406 -19.5766 7.19045 -19.2982C7.28323 -18.8807 7.32962 -18.1385 7.23684 -17.6746C7.05128 -16.7468 6.54099 -15.7726 5.75236 -14.7984C5.61319 -14.6128 5.38124 -14.4273 5.33485 -14.3809C4.31427 -13.7314 3.85037 -13.4067 3.2473 -12.8036C1.94838 -11.5511 1.11336 -10.0202 0.78863 -8.39659C0.69585 -8.11825 0.69585 -8.07186 0.60307 -8.07186C0.4639 -8.02547 0.27834 -7.8863 0.23195 -7.79352C0.04639 -7.46879 0.18556 -7.00489 0.4639 -6.86572C0.60307 -6.81933 0.60307 -6.81933 0.60307 -6.4946C0.64946 -5.65958 0.74224 -5.14929 0.97419 -4.49983C1.11336 -3.98954 1.48448 -3.2473 1.71643 -2.87618C3.01535 -0.88141 5.1029 0.18556 7.32962 0.09278C7.8863 0.09278 8.25742 0 8.76771 -0.09278C10.0666 -0.51029 11.2264 -1.43809 11.8294 -2.55145C12.5253 -3.89676 12.5717 -5.47402 11.9222 -6.72655L11.7367 -7.09767L12.015 -7.00489C12.6181 -6.77294 12.85 -6.77294 13.685 -6.77294C14.4273 -6.77294 14.4737 -6.77294 14.8912 -6.86572L15.3551 -7.00489L15.4943 -6.86572C15.5406 -6.81933 15.819 -6.58738 16.0509 -6.35543C18.0457 -4.54622 20.4116 -3.15452 22.4528 -2.69062C22.6383 -2.64423 22.8239 -2.59784 22.8239 -2.59784C22.8703 -2.55145 22.2672 -1.80921 21.9425 -1.48448C21.293 -0.83502 20.4116 -0.37112 19.6694 -0.23195C19.5302 -0.23195 19.391 -0.18556 19.3446 -0.18556C19.2518 -0.13917 19.2518 -0.18556 19.391 -0.32473C19.5766 -0.51029 19.6694 -0.74224 19.6694 -1.02058C19.6694 -1.76282 19.0199 -2.27311 18.324 -2.04116C18.0457 -1.99477 17.721 -1.67004 17.6282 -1.3917C17.489 -1.02058 17.5818 -0.64946 17.8601 -0.32473L17.9993 -0.18556L17.7674 -0.23195C16.7004 -0.4639 15.819 -1.15975 15.3551 -2.04116C15.1231 -2.50506 14.984 -3.2473 15.0767 -3.61842V-3.75759L15.1695 -3.61842C15.3551 -3.43286 15.587 -3.38647 15.819 -3.52564C16.0045 -3.61842 16.0973 -3.75759 16.0973 -3.98954C16.0973 -4.26788 15.8654 -4.49983 15.587 -4.49983C15.2159 -4.49983 14.9376 -4.26788 14.7984 -3.85037C14.6592 -3.2473 14.8912 -2.22672 15.3551 -1.48448C15.8654 -0.74224 16.8396 -0.13917 17.7674 0.04639C18.1849 0.13917 19.1127 0.13917 19.5766 0.04639C20.226 -0.04639 20.8291 -0.32473 21.4322 -0.69585C21.8961 -1.02058 22.6383 -1.76282 22.9167 -2.18033L23.1486 -2.50506L23.5661 -2.45867C23.8908 -2.41228 24.262 -2.36589 24.865 -2.36589H25.7001L25.7928 -2.18033C26.1176 -1.53087 26.767 -0.9278 27.4629 -0.64946C27.9268 -0.4639 28.1587 -0.41751 28.669 -0.37112C29.0401 -0.37112 29.1329 -0.41751 29.2721 -0.4639C29.8752 -0.74224 30.0143 -1.34531 29.5504 -1.62365C29.4576 -1.71643 29.4113 -1.71643 29.2257 -1.71643C29.0865 -1.67004 29.0401 -1.67004 28.901 -1.53087C28.8082 -1.43809 28.8082 -1.3917 28.8082 -1.20614C28.8082 -0.97419 28.8082 -0.9278 28.901 -0.83502C28.9474 -0.78863 29.0401 -0.69585 29.0401 -0.69585C29.0401 -0.64946 28.4371 -0.64946 28.1587 -0.69585C27.5557 -0.83502 27.0454 -1.11336 26.5815 -1.57726C26.3031 -1.8556 26.0248 -2.27311 26.0248 -2.36589C26.0248 -2.41228 26.1176 -2.41228 26.2567 -2.45867C26.3495 -2.45867 26.6742 -2.50506 26.9062 -2.55145C28.3443 -2.82979 29.736 -3.43286 31.1741 -4.40705L31.638 -4.68539L31.6844 -4.49983C31.8235 -3.89676 32.241 -3.06174 32.6586 -2.45867C33.0297 -1.99477 33.6327 -1.43809 34.0966 -1.06697C34.6997 -0.64946 35.5347 -0.27834 36.277 -0.09278C36.9264 0.04639 37.2976 0.09278 38.0862 0.09278C38.7356 0.09278 38.8748 0.09278 39.2923 0C40.2665 -0.13917 41.1015 -0.55668 41.8902 -1.15975C42.0293 -1.25253 42.1685 -1.34531 42.1685 -1.34531C42.2149 -1.34531 42.3077 -1.20614 42.4005 -1.06697C42.8644 -0.51029 43.4674 -0.09278 44.1633 0.04639C44.3952 0.09278 44.5808 0.13917 44.9055 0.13917C45.4158 0.13917 45.7405 0.04639 46.1117 -0.09278C46.4364 -0.23195 46.7611 -0.60307 46.9003 -0.88141C46.9931 -1.06697 46.9931 -1.11336 46.9931 -1.43809S46.9931 -1.80921 46.9003 -1.99477S46.5756 -2.41228 46.39 -2.45867C46.158 -2.55145 45.6941 -2.50506 45.4622 -2.41228C45.2766 -2.3195 45.0447 -2.08755 44.9519 -1.94838C44.8591 -1.67004 44.9519 -1.34531 45.1839 -1.15975C45.323 -1.06697 45.6478 -1.06697 45.7869 -1.15975C46.0653 -1.34531 46.158 -1.67004 46.0189 -1.90199C45.9725 -1.99477 45.8797 -2.08755 45.8333 -2.08755C45.7405 -2.18033 45.7869 -2.22672 46.0189 -2.22672S46.2972 -2.18033 46.39 -2.13394C46.7611 -1.90199 46.8539 -1.3917 46.6219 -0.9278C46.4828 -0.69585 46.2044 -0.4639 45.9725 -0.32473C45.323 -0.04639 44.488 -0.04639 43.7922 -0.37112C43.3283 -0.55668 42.818 -0.97419 42.5396 -1.34531L42.4005 -1.57726L42.6788 -1.8556C43.5602 -2.7834 44.1633 -3.98954 44.488 -5.28846C44.5808 -5.75236 44.5808 -5.75236 44.6736 -5.75236C44.9055 -5.79875 45.1839 -6.21626 45.0911 -6.44821C45.0447 -6.68016 44.8591 -6.91211 44.72 -6.9585C44.6272 -7.00489 44.6272 -7.00489 44.6272 -7.23684C44.6272 -7.8863 44.4416 -8.8141 44.2097 -9.60273C43.8849 -10.4377 43.3283 -11.4583 42.7252 -12.1542C42.586 -12.3397 42.4932 -12.4325 42.4932 -12.4789C42.4932 -12.4789 42.6324 -12.4325 42.7716 -12.4325C43.2819 -12.3861 44.0241 -12.5253 44.488 -12.7572C45.4158 -13.2211 46.0189 -14.1489 45.9725 -15.0304C45.8797 -15.6798 45.6014 -16.2365 45.0911 -16.5612C44.3024 -17.0715 43.3746 -17.0251 42.7716 -16.4221C42.4932 -16.1901 42.3541 -16.0045 42.2613 -15.6798C42.0293 -14.8912 42.4932 -13.9634 43.2819 -13.7778C43.6994 -13.6387 44.3024 -13.7314 44.6272 -14.0098C44.8591 -14.2417 44.9055 -14.6592 44.7663 -14.8448C44.488 -15.2623 44.0241 -15.2623 43.7922 -14.8448C43.6066 -14.6128 43.6994 -14.2417 43.9313 -14.1026C44.0705 -14.0098 43.9777 -13.9634 43.653 -14.0098C43.2819 -14.0098 43.0499 -14.1026 42.818 -14.3809S42.5396 -14.7984 42.5396 -15.2159C42.5396 -15.5406 42.5396 -15.587 42.6324 -15.819C43.0963 -16.7004 44.3024 -16.886 45.0911 -16.1901C45.4622 -15.819 45.6478 -15.4479 45.6478 -14.8912C45.6478 -14.6128 45.6478 -14.5201 45.555 -14.3345C45.323 -13.5923 44.6736 -13.0356 43.8385 -12.8036C43.5138 -12.7109 42.7716 -12.6645 42.4468 -12.7572C42.1685 -12.8036 42.1685 -12.8036 41.8438 -13.082C41.4727 -13.4531 40.9624 -13.8242 40.4985 -14.1026C40.3129 -14.2417 40.1273 -14.3345 40.1273 -14.3809C40.081 -14.3809 40.2201 -14.6128 40.3593 -14.9376C41.3335 -16.7932 42.0293 -18.7416 42.4005 -20.5972C42.4932 -20.9219 42.5396 -21.2002 42.5396 -21.2466C42.5396 -21.2466 42.6788 -21.293 42.7716 -21.3394C44.6736 -21.9425 46.0653 -23.9372 46.4364 -26.5815C46.4828 -27.1381 46.4828 -28.1587 46.4364 -28.6226C46.1117 -30.7102 44.8591 -32.241 43.2819 -32.5658C42.9107 -32.6586 42.1685 -32.6586 41.5654 -32.5658C41.1943 -32.5194 41.1015 -32.5194 41.1015 -32.5658C41.0088 -32.8441 40.2665 -34.143 39.849 -34.7925L39.6171 -35.1636L39.9882 -35.7203C40.8232 -37.112 41.3799 -38.3645 41.6118 -39.5243C41.7046 -40.0346 41.751 -40.7768 41.7046 -41.1015V-41.4263L41.9829 -41.3799C43.2355 -41.2871 44.3952 -40.7768 45.2766 -39.9418C46.2508 -39.014 46.7147 -37.947 46.8075 -36.7409C46.8539 -35.5811 46.4828 -34.6069 45.7405 -33.9111C45.4622 -33.6327 45.1375 -33.4472 44.72 -33.308C44.3488 -33.1688 43.6994 -33.1225 43.3283 -33.2152C42.4932 -33.4472 41.8438 -33.9575 41.4727 -34.7461C41.3799 -34.8853 41.3335 -34.9781 41.3335 -35.0244C41.3335 -35.0244 41.4263 -35.0244 41.4727 -34.9781C41.6582 -34.8853 42.0293 -34.8853 42.2613 -35.0244C42.4468 -35.1636 42.586 -35.3956 42.586 -35.6275C42.6324 -35.9986 42.4468 -36.277 42.1685 -36.4161C41.8438 -36.5553 41.4727 -36.5089 41.2407 -36.2306L41.1015 -36.1378L41.1479 -36.3234C41.2407 -37.1584 41.6582 -37.8078 42.2613 -38.0862C42.4932 -38.2254 42.5396 -38.2254 42.9107 -38.2254C43.2355 -38.2254 43.2819 -38.2254 43.5138 -38.0862C43.9313 -37.9006 44.2097 -37.4831 44.3024 -36.9728L44.3488 -36.7409H44.488C44.6272 -36.7409 44.6272 -36.7409 44.6272 -36.8337C44.6272 -37.0192 44.5344 -37.4367 44.3952 -37.6223C43.8385 -38.6893 42.4468 -38.8284 41.6118 -37.947C40.2665 -36.6017 40.8232 -34.0503 42.6324 -33.1688C43.0499 -32.9833 43.421 -32.8905 43.8849 -32.8905C44.488 -32.8905 44.9983 -33.0297 45.4622 -33.3544C46.7611 -34.143 47.3642 -35.9059 46.9467 -37.5759C46.5292 -39.3851 45.1375 -40.8696 43.3283 -41.4263C43.1891 -41.4727 43.0963 -41.519 43.0963 -41.519S43.1891 -41.5654 43.3283 -41.5654C43.653 -41.6118 44.4416 -41.8438 44.8127 -41.9829C46.39 -42.586 47.3178 -43.5602 47.5034 -44.8591C47.6889 -45.9725 47.1322 -46.8539 46.39 -46.6683C45.8333 -46.4828 45.7405 -45.7869 46.158 -45.4158C46.2508 -45.3694 46.3436 -45.323 46.5292 -45.323S46.7611 -45.323 46.9003 -45.4158C46.9931 -45.4622 47.1322 -45.555 47.1322 -45.6014L47.225 -45.7405L47.2714 -45.555C47.2714 -45.323 47.2714 -44.8591 47.1786 -44.5808C47.0858 -44.2561 46.8075 -43.7458 46.6219 -43.4674C46.158 -42.9107 45.3694 -42.4468 44.4416 -42.1221C43.7458 -41.9366 42.9571 -41.7974 42.0293 -41.7046H41.6582V-41.8902C41.519 -42.6788 41.1015 -43.6066 40.5912 -44.2561C40.1737 -44.7663 39.5243 -45.1839 38.8748 -45.3694C38.4573 -45.4622 37.8078 -45.4622 37.3903 -45.3694C36.7873 -45.1839 36.2306 -44.9055 35.6739 -44.4416C35.0708 -43.8849 34.6533 -43.653 34.0039 -43.4674C33.7719 -43.3746 33.5864 -43.3746 33.2152 -43.3283C32.9369 -43.3283 32.7513 -43.3283 32.7513 -43.3283S32.7977 -43.421 32.8441 -43.4674C33.0297 -43.653 33.0761 -43.8385 32.9833 -44.0705C32.7513 -44.5344 32.0555 -44.4416 31.9627 -43.9313C31.9163 -43.653 32.1019 -43.3283 32.4266 -43.1427C32.7977 -43.0035 33.54 -43.0035 34.1894 -43.1891C34.4678 -43.2819 35.0244 -43.5602 35.1172 -43.6066C35.1636 -43.6994 35.21 -43.653 35.21 -43.3746C35.2564 -42.4468 36.1378 -41.7974 37.112 -41.9829C37.7151 -42.1221 38.0398 -42.4932 37.9934 -42.9571C37.9934 -43.2819 37.7615 -43.5138 37.3903 -43.5138C36.7409 -43.5138 36.5089 -42.6788 37.0656 -42.3541L37.1584 -42.3077L36.9728 -42.2613C36.2306 -42.1221 35.4883 -42.6788 35.4883 -43.421C35.4883 -43.7458 35.5347 -43.8849 35.8131 -44.1633C36.5553 -44.8591 37.6223 -45.2766 38.5037 -45.1375C39.7098 -44.9519 40.684 -44.0241 41.1479 -42.6324C41.2407 -42.3541 41.3799 -41.8902 41.3799 -41.751C41.3799 -41.7046 41.2407 -41.7046 40.9624 -41.7046C40.081 -41.6582 39.1068 -41.4263 38.3181 -41.1479S36.4625 -40.3129 35.7667 -39.7098L35.442 -39.4779L34.8853 -39.849C32.3338 -41.519 29.6896 -42.4468 26.6742 -42.6324C25.7001 -42.7252 24.7259 -42.6788 23.6125 -42.5396C21.2466 -42.2149 19.1127 -41.3799 13.8706 -38.6893C11.6439 -37.5295 10.9016 -37.2512 9.69551 -37.112C7.60796 -36.88 5.5668 -37.7151 4.639 -39.1995L4.49983 -39.4779L4.59261 -39.6171C4.77817 -39.849 5.14929 -40.2201 5.38124 -40.3593C5.61319 -40.5449 6.0307 -40.7304 6.35543 -40.8232C6.72655 -40.916 7.28323 -40.916 7.65435 -40.8232C8.62854 -40.5912 9.32439 -39.6634 9.09244 -38.8284C8.99966 -38.3181 8.62854 -37.947 8.16464 -37.947C7.93269 -37.9934 7.70074 -38.0398 7.56157 -38.2254C7.37601 -38.4109 7.28323 -38.782 7.32962 -39.0604V-39.1995L7.46879 -39.0604C7.83991 -38.6893 8.48937 -39.0604 8.3502 -39.5707C8.30381 -39.7562 8.07186 -39.9882 7.8863 -39.9882C7.56157 -39.9882 7.28323 -39.7562 7.14406 -39.4315C7.05128 -39.2459 7.05128 -39.1995 7.05128 -38.9212S7.05128 -38.5501 7.14406 -38.3645C7.32962 -37.947 7.70074 -37.7151 8.11825 -37.7151C8.39659 -37.7151 8.58215 -37.7615 8.76771 -37.9006C9.37078 -38.3181 9.55634 -39.2459 9.18522 -39.9882C9.04605 -40.2665 8.58215 -40.7304 8.25742 -40.8696C7.60796 -41.2407 6.81933 -41.2871 6.0307 -41.0088C5.47402 -40.8232 4.91734 -40.4521 4.54622 -39.9882L4.36066 -39.8026L4.31427 -39.9882C4.08232 -40.684 4.1751 -41.6118 4.49983 -42.2613C5.1029 -43.4674 6.4946 -44.1169 7.70074 -43.6994C8.3502 -43.4674 8.76771 -43.0963 9.37078 -42.1685C10.0202 -41.2407 10.345 -40.916 10.948 -40.7304C11.2264 -40.684 11.6903 -40.684 11.9686 -40.7304C12.6645 -40.916 13.2675 -41.519 13.4067 -42.1685C13.4067 -42.3077 13.4531 -42.4005 13.4995 -42.4005C13.5923 -42.4005 13.8242 -42.5396 13.917 -42.6788C14.4273 -43.2819 13.8242 -44.1633 13.082 -43.9313C12.6181 -43.7922 12.3861 -43.2819 12.5717 -42.8644C12.6645 -42.6788 12.85 -42.4932 12.9892 -42.4468C13.082 -42.4005 13.082 -42.4005 13.0356 -42.3077C13.0356 -42.2613 12.9428 -42.2149 12.85 -42.1685C12.4325 -41.9366 11.8758 -42.0757 11.4583 -42.5396C11.2264 -42.7716 11.1336 -42.9571 10.7625 -43.6066C10.3914 -44.3024 10.2058 -44.5808 9.92746 -44.8127C9.69551 -45.0911 9.46356 -45.2302 9.13883 -45.3694C8.76771 -45.555 8.48937 -45.6014 8.07186 -45.6478C7.00489 -45.6941 5.89153 -45.2302 5.05651 -44.3024C4.22149 -43.4674 3.75759 -42.4005 3.66481 -41.0551C3.61842 -40.4985 3.66481 -39.8954 3.75759 -39.2923L3.85037 -38.9212L3.75759 -38.5501C3.57203 -38.0862 3.57203 -37.8078 3.57203 -37.2512C3.57203 -35.5811 4.45344 -33.9575 6.07709 -32.8441L6.26265 -32.7049L6.07709 -32.7513C5.93792 -32.7513 5.52041 -32.7513 5.14929 -32.7513C4.54622 -32.7513 4.36066 -32.7513 4.08232 -32.6586C3.66481 -32.5658 3.15452 -32.4266 2.87618 -32.2874L2.73701 -32.1947L2.50506 -32.473C1.29892 -33.7719 0.4639 -35.5347 0.23195 -37.3439C0.13917 -37.8542 0.13917 -37.8542 0.27834 -37.947C0.41751 -37.9934 0.51029 -38.2717 0.51029 -38.4573C0.4639 -38.6429 0.37112 -38.7356 0.23195 -38.8284S0.09278 -38.9212 0.18556 -39.6171C0.23195 -39.8954 0.23195 -40.1273 0.27834 -40.1273C0.27834 -40.1273 0.37112 -40.1273 0.41751 -40.1273C0.41751 -40.1273 0.55668 -40.2201 0.60307 -40.2665C0.78863 -40.3593 0.88141 -40.5912 0.88141 -40.7768S0.78863 -41.1479 0.64946 -41.2871L0.55668 -41.3335L0.69585 -41.751C2.08755 -45.1839 5.28846 -47.225 8.53576 -46.6683C9.37078 -46.5292 10.0202 -46.3436 10.9944 -45.8333L11.6903 -45.5086L11.6439 -45.3694C11.6439 -45.1839 11.7367 -44.9055 11.9222 -44.8127C12.1078 -44.6736 12.2933 -44.6736 12.4789 -44.7663L12.6645 -44.8591L13.2211 -44.488C14.8912 -43.4674 16.1437 -42.8644 17.0715 -42.586C17.4426 -42.4932 18.0457 -42.4932 18.4632 -42.5396C19.1591 -42.6788 19.7621 -42.9571 21.1074 -43.7458C22.7775 -44.72 23.6589 -45.0447 24.6795 -45.1375C25.1434 -45.1839 25.4217 -45.1375 25.7464 -44.9983C26.0712 -44.8127 26.3031 -44.6272 26.9062 -44.0705S27.6948 -43.3746 28.0196 -43.1891C28.2979 -43.0499 28.3443 -43.0499 28.7154 -43.0499C29.1329 -43.0499 29.4113 -43.0963 29.7824 -43.2819C30.4318 -43.6066 30.8957 -44.2561 31.0349 -45.0447C31.0813 -45.6941 30.8493 -46.3436 30.3854 -46.5292C29.736 -46.8075 29.1793 -46.0653 29.6432 -45.5086C29.736 -45.3694 29.8752 -45.323 30.1071 -45.323S30.4782 -45.3694 30.6174 -45.555L30.7102 -45.6941L30.7566 -45.4622C30.7566 -45.2302 30.7102 -44.8591 30.6174 -44.5808C30.3854 -44.0241 29.7824 -43.5138 29.1793 -43.3746C29.0865 -43.3283 28.8546 -43.3283 28.669 -43.3283C28.3443 -43.3283 28.2979 -43.3746 28.0196 -43.4674C27.6948 -43.653 27.5093 -43.7922 26.9062 -44.3488S26.0712 -45.1375 25.7464 -45.2766S25.1434 -45.4622 24.6795 -45.4158C23.5661 -45.323 22.6383 -44.9519 20.8755 -43.9313C20.4116 -43.653 20.1796 -43.5602 19.7621 -43.5602C18.4632 -43.5602 17.3035 -44.8127 17.1643 -46.39C17.1643 -46.5292 17.1643 -46.7147 17.2107 -46.8075V-46.9931L17.3499 -46.8539C17.721 -46.39 18.4632 -46.7611 18.324 -47.3642C18.2313 -47.7353 17.8138 -47.9209 17.489 -47.7353ZM41.4263 -41.1943C41.4727 -40.916 41.4263 -40.2201 41.3335 -39.7562C41.1943 -38.782 40.7768 -37.6687 40.1737 -36.6017C39.9882 -36.2306 39.5243 -35.4883 39.4779 -35.442C39.4315 -35.442 39.2923 -35.5811 39.1532 -35.7667C38.2254 -37.0192 37.2512 -38.0398 35.8131 -39.1532L35.6739 -39.2923L35.8131 -39.4315C36.0914 -39.6171 36.6481 -40.0346 37.0656 -40.2665C38.2717 -40.9624 39.8026 -41.3799 41.1015 -41.4263H41.4263ZM4.54622 -37.2976C5.28846 -36.045 6.44821 -35.0244 7.83991 -34.3286C8.67493 -33.9111 9.50995 -33.6791 10.4377 -33.4936C10.948 -33.4472 12.5253 -33.4008 13.0356 -33.4936C14.0098 -33.6327 14.984 -33.9111 15.9118 -34.2358C16.654 -34.5605 17.1643 -34.7925 18.6952 -35.5347C21.1074 -36.6945 22.0816 -37.0656 23.2878 -37.3903C24.1692 -37.5759 24.6331 -37.6223 25.7928 -37.6223C26.7206 -37.6223 26.9526 -37.6223 27.3701 -37.5759C28.6226 -37.3439 29.736 -37.0192 30.8957 -36.4161C31.406 -36.1842 32.2874 -35.6275 32.4266 -35.5347C32.4266 -35.4883 32.4266 -35.3492 32.1947 -34.9317C32.0555 -34.6533 31.9163 -34.2822 31.8699 -34.1894L31.7771 -34.0039L31.406 -34.2358C30.2463 -35.0244 28.8546 -35.5347 27.4165 -35.7667C26.9062 -35.8595 25.6073 -35.8595 25.0506 -35.8131C24.5867 -35.7667 23.7981 -35.6275 23.3806 -35.5347L23.1022 -35.442L22.963 -35.5811C22.7311 -35.7667 22.4528 -35.7203 22.2208 -35.4883C22.1744 -35.442 22.128 -35.3492 22.0816 -35.2564C22.0816 -35.1636 22.0816 -35.1172 21.8961 -35.0708C21.4322 -34.9317 20.0869 -34.375 18.5096 -33.6791C17.6282 -33.2616 16.6076 -32.8441 16.2829 -32.7049C14.752 -32.1019 13.3139 -31.7308 12.247 -31.638L11.9686 -31.5916L11.8294 -31.7771C11.5975 -32.0555 11.1336 -32.0091 10.948 -31.638C10.9016 -31.5916 10.9016 -31.5916 10.3914 -31.638C8.39659 -31.7771 6.54099 -32.6122 5.33485 -33.8647C4.54622 -34.6533 4.08232 -35.4883 3.89676 -36.4625C3.80398 -36.9264 3.85037 -37.8078 3.94315 -38.179L3.98954 -38.4573L4.1751 -38.0398C4.26788 -37.8542 4.45344 -37.4831 4.54622 -37.2976ZM27.1381 -35.4883C28.669 -35.3028 30.0607 -34.7925 31.3596 -33.9575L31.6844 -33.7255L31.5916 -33.4936C31.1741 -32.4266 30.5246 -30.0607 30.3854 -29.0401C30.3391 -28.9474 30.3391 -28.901 30.2927 -28.901C29.6432 -29.1793 29.0865 -29.3649 28.4835 -29.4113C28.2979 -29.4576 27.7876 -29.4576 27.2773 -29.4576C24.7723 -29.4576 23.5197 -29.736 22.963 -30.4782C22.7775 -30.7102 22.7311 -30.9885 22.7311 -31.3596C22.7775 -32.1483 23.3806 -32.7049 24.1228 -32.6122H24.3084L24.2156 -32.5194C23.9836 -32.3802 23.8908 -32.0091 24.0764 -31.7771C24.2156 -31.5452 24.5867 -31.4988 24.8186 -31.6844C25.097 -31.9163 25.0506 -32.4266 24.7723 -32.6586C24.0764 -33.1688 23.0558 -32.8905 22.6847 -32.1483C22.4991 -31.8235 22.4528 -31.5916 22.4528 -31.3132C22.4528 -30.4782 22.9167 -29.8752 23.8908 -29.5504C24.262 -29.4113 24.9578 -29.2721 25.5145 -29.2257C25.7928 -29.2257 26.1176 -29.1793 26.2103 -29.1793H26.3495L26.0248 -28.9937C25.2362 -28.6226 24.5867 -27.9732 24.262 -27.3701C24.2156 -27.2309 24.1692 -27.1381 24.1692 -27.1381S23.8445 -27.4165 23.4269 -27.7412C22.0352 -28.8082 21.7105 -29.2721 21.5713 -30.0607C21.4322 -31.0349 21.9425 -32.1483 23.0558 -33.308C23.6125 -33.9111 24.2156 -34.2822 24.9114 -34.5142C25.1898 -34.6069 25.2825 -34.6069 25.7001 -34.6069C26.2567 -34.6069 26.3959 -34.5605 26.767 -34.375C27.2309 -34.1894 27.5093 -33.7719 27.5557 -33.308L27.602 -33.0761L27.0918 -32.2874C26.5815 -31.4988 26.4423 -31.3132 26.2567 -31.2669C26.164 -31.2669 25.9784 -31.3132 25.9784 -31.406C25.9784 -31.406 25.932 -31.4524 25.8392 -31.4524C25.7001 -31.4524 25.7001 -31.4524 25.7001 -31.3132C25.7001 -30.9885 26.0712 -30.4782 26.4887 -30.2927C27.5093 -29.8288 28.7618 -30.2927 29.2721 -31.3596C29.5968 -32.0555 29.5968 -32.7513 29.2257 -33.4936C28.9474 -34.0966 28.2979 -34.5605 27.5557 -34.7925C27.1845 -34.8853 26.2567 -34.8853 25.7464 -34.8389C24.7723 -34.6997 23.6589 -34.3286 22.5919 -33.7255C20.7827 -32.7049 19.7157 -31.7771 19.1591 -30.6638C18.8343 -30.0143 18.6952 -29.5504 18.6952 -28.8082C18.6952 -27.9732 18.8807 -27.3701 19.2982 -26.5351C19.7621 -25.5145 20.3652 -24.6331 21.7569 -23.0558C22.6383 -22.0352 23.0558 -21.4786 23.4269 -21.0147C24.3084 -19.8549 24.865 -18.8343 25.097 -17.8138C25.1898 -17.4426 25.2825 -16.7468 25.2362 -16.7004C25.2362 -16.7004 25.097 -16.7468 24.9578 -16.8396C24.03 -17.2107 23.0558 -17.8601 22.0352 -18.6488C21.293 -19.2518 21.293 -19.2982 21.1538 -19.623C21.0147 -20.0405 20.5972 -20.8755 20.3652 -21.2466C20.226 -21.4322 19.9941 -21.8033 19.7621 -22.0352C19.1127 -22.9167 18.7416 -23.5197 18.6488 -23.9836L18.556 -24.2156L18.1385 -23.7517C17.9065 -23.5197 17.6746 -23.3342 17.6746 -23.3342C17.6282 -23.3342 17.3499 -24.0764 17.2571 -24.6331C17.1643 -25.097 17.1643 -26.8598 17.2571 -27.5093C17.5818 -29.8752 18.4168 -31.8235 19.6694 -33.1225C20.1333 -33.5864 21.1074 -34.2822 21.8033 -34.6533L22.1744 -34.8389L22.2672 -34.7925C22.5455 -34.5142 23.0094 -34.6533 23.1486 -35.0244C23.195 -35.1636 23.195 -35.1636 23.3806 -35.21C23.6589 -35.3028 24.4939 -35.442 24.865 -35.4883C25.4217 -35.5811 26.6279 -35.5811 27.1381 -35.4883ZM33.1225 -34.9781C34.2822 -34.0503 35.3956 -32.8905 36.2306 -31.638L36.5553 -31.2205L36.045 -30.4782C35.7667 -30.0607 35.5347 -29.736 35.5347 -29.6896C35.4883 -29.6896 35.3956 -29.8288 35.2564 -30.0607C34.7461 -30.9885 34.0503 -31.9163 33.3544 -32.6122C32.9833 -33.0297 32.3802 -33.54 32.1019 -33.7255L32.0091 -33.8183L32.1483 -34.1894C32.241 -34.375 32.3802 -34.6997 32.5194 -34.9317C32.6586 -35.2564 32.7049 -35.3028 32.7513 -35.2564C32.7513 -35.2564 32.9369 -35.1172 33.1225 -34.9781ZM32.3802 -33.1688C32.8441 -32.7977 33.4936 -32.1019 33.8647 -31.5916C34.375 -30.9885 35.3028 -29.5504 35.3028 -29.4113C35.3028 -29.3649 35.2564 -29.2257 35.1636 -29.0865C34.6533 -28.3443 33.8647 -26.9526 33.4472 -26.1176L33.1688 -25.6537L32.9833 -26.0248C32.6586 -26.7206 32.2874 -27.2309 31.7308 -27.7876C31.4988 -28.0659 30.8957 -28.5298 30.6638 -28.669C30.6174 -28.7154 30.6174 -28.7154 30.6638 -29.1329C30.8957 -30.3391 31.2205 -31.5452 31.5916 -32.6122C31.9163 -33.6327 31.9163 -33.54 31.9627 -33.4936S32.1947 -33.308 32.3802 -33.1688ZM18.556 -33.4008C18.5096 -33.3544 16.7932 -32.2874 16.1437 -31.8235C13.685 -30.3391 11.9686 -29.6432 10.1594 -29.4576C9.23161 -29.3649 7.97908 -29.4576 7.05128 -29.6896C5.61319 -30.0607 4.22149 -30.803 3.15452 -31.7771L2.92257 -32.0091L3.2473 -32.1483C3.89676 -32.3802 4.40705 -32.473 5.19568 -32.473C6.07709 -32.473 6.77294 -32.3338 7.60796 -32.0091C8.16464 -31.7771 8.76771 -31.5916 9.278 -31.4988C9.69551 -31.406 10.4841 -31.3132 10.7625 -31.3132C10.9016 -31.3132 10.9016 -31.2669 10.9944 -31.1741C11.0872 -30.9885 11.2264 -30.9421 11.4583 -30.9421C11.6439 -30.9421 11.8294 -31.0349 11.9222 -31.2205C11.9686 -31.3132 11.9686 -31.3132 12.1078 -31.3132C12.1542 -31.3132 12.3861 -31.3596 12.6181 -31.406C14.1489 -31.5916 15.587 -32.1019 17.9065 -33.1225C18.5096 -33.4008 18.556 -33.4008 18.556 -33.4008ZM18.4168 -31.8699C17.4426 -30.2463 16.886 -28.1123 16.886 -25.9784C16.886 -24.865 17.0251 -24.03 17.3499 -23.3342C17.3962 -23.195 17.4426 -23.1022 17.4426 -23.1022C17.4426 -23.0558 16.7004 -22.4528 16.2365 -22.128C15.4015 -21.4786 14.1026 -20.6899 13.2675 -20.226C13.082 -20.0869 12.8964 -19.9941 12.8964 -19.9941C12.9428 -19.9941 13.0356 -20.0405 13.1284 -20.0405C14.2417 -20.3188 15.587 -20.1333 16.654 -19.5766S18.7416 -17.9993 19.2518 -16.886C19.6694 -16.0509 19.9013 -14.9376 19.9013 -14.0562V-13.8706L19.5766 -14.1026C18.9271 -14.4737 18.1849 -14.8912 17.3962 -15.1695C17.2107 -15.2623 17.2107 -15.2623 17.2107 -15.4015C17.2571 -15.6334 17.3035 -16.4684 17.2571 -16.654C17.1179 -17.2107 16.7468 -17.6746 16.1437 -17.9529C14.9376 -18.556 13.4067 -18.4168 11.7367 -17.5354C10.9944 -17.1643 10.113 -16.5612 9.7419 -16.0973C9.64912 -15.9582 9.60273 -15.9118 9.46356 -15.9118C8.67493 -15.7726 6.9585 -15.2159 6.26265 -14.8448L6.12348 -14.7984L6.21626 -14.9376C7.05128 -16.0509 7.46879 -16.9787 7.56157 -18.0457C7.65435 -18.7879 7.51518 -19.5302 7.19045 -20.226L7.14406 -20.3652L7.4224 -20.5972C7.60796 -20.6899 8.07186 -21.1538 8.48937 -21.5713C9.23161 -22.2672 9.278 -22.3136 9.37078 -22.3136C9.41717 -22.2672 9.50995 -22.2672 9.60273 -22.2672H9.7419V-22.0352C9.78829 -21.4786 10.2058 -20.9683 10.9016 -20.5508C11.3655 -20.2724 12.0614 -20.1333 12.5717 -20.1796C13.1748 -20.2724 13.8242 -20.7363 13.8242 -21.1074C13.8242 -21.3858 13.4995 -21.6641 13.2211 -21.6177C12.8036 -21.525 12.6645 -20.9683 12.9892 -20.6899C13.082 -20.6435 13.082 -20.6435 12.9892 -20.5972C12.9428 -20.5972 12.8036 -20.5508 12.7109 -20.5044C12.1542 -20.3652 11.3655 -20.5508 10.7625 -20.9683C10.2522 -21.3394 10.0666 -21.6641 10.0202 -22.1744C10.0202 -22.4064 10.0202 -22.4528 10.113 -22.5455C10.1594 -22.6383 10.1594 -22.7311 10.2058 -22.8703C10.2522 -23.195 10.3914 -23.4733 10.7625 -23.8445S11.5975 -24.5403 12.2006 -24.8186C12.4325 -24.9578 12.85 -25.1434 13.082 -25.2362C13.685 -25.5609 13.8706 -25.7928 13.7314 -26.164C13.6387 -26.3495 13.5459 -26.4423 13.2675 -26.4887C13.2211 -26.5351 13.1284 -26.5351 13.1284 -26.5815C13.082 -26.5815 13.2675 -26.767 13.4531 -27.0454C14.984 -28.669 16.3293 -30.0607 17.1643 -30.9421C17.5818 -31.3132 18.6488 -32.3338 18.6952 -32.3338C18.6952 -32.3338 18.556 -32.1483 18.4168 -31.8699ZM43.2355 -32.2874C43.8385 -32.1483 44.4416 -31.8235 44.8591 -31.3596C45.4158 -30.803 45.7869 -30.0607 46.0189 -29.1793C46.158 -28.669 46.2044 -28.2979 46.2044 -27.602C46.2044 -26.3495 45.9261 -25.1434 45.4158 -24.1228C44.7663 -22.8703 43.9313 -22.0816 42.818 -21.6641L42.586 -21.5713L42.6324 -21.6641C42.6324 -21.8497 42.7252 -22.5455 42.7716 -23.1022C42.8644 -23.7053 42.8644 -25.5609 42.7716 -26.2103C42.6788 -27.2309 42.4932 -28.4835 42.2613 -29.3649L42.1685 -29.6432H42.2613C42.4005 -29.6432 42.818 -29.5504 43.0963 -29.4576C44.0705 -29.1329 44.5808 -28.4835 44.5808 -27.6948C44.5808 -27.4629 44.5344 -27.3701 44.488 -27.5093C44.4416 -27.6948 43.9777 -27.7412 43.7922 -27.602C43.5602 -27.4629 43.4674 -27.1381 43.6066 -26.9062C43.7922 -26.6279 44.0705 -26.5815 44.3952 -26.7206C44.9055 -26.999 45.0447 -27.8804 44.6736 -28.5762C44.488 -28.901 44.0705 -29.3185 43.6994 -29.504S42.8644 -29.8288 42.4468 -29.9215C42.2613 -29.9215 42.0757 -29.9679 42.0757 -29.9679S42.0293 -30.1535 41.9366 -30.4318C41.7974 -30.8493 41.3799 -31.9163 41.2871 -32.1019L41.2407 -32.241L41.4727 -32.2874C41.8902 -32.3338 41.9366 -32.3338 42.4468 -32.3338C42.818 -32.3338 43.0963 -32.3338 43.2355 -32.2874ZM36.8337 -30.7102C37.0656 -30.3391 37.112 -30.3854 36.7409 -30.0143C36.5553 -29.8288 36.277 -29.5504 36.1378 -29.3649S35.9059 -29.0401 35.9059 -28.9937C35.8595 -28.9937 35.8131 -29.0401 35.7667 -29.1793L35.6739 -29.3649L35.7667 -29.504C35.9986 -29.8752 36.6945 -30.9421 36.6945 -30.9421S36.7873 -30.8493 36.8337 -30.7102ZM37.5759 -29.3649C38.3645 -27.8804 39.014 -26.0712 39.3387 -24.4475L39.4315 -23.9372L39.1995 -24.03C39.0604 -24.0764 38.8748 -24.1228 38.7356 -24.1228C38.5501 -24.1228 38.5037 -24.1228 38.4109 -23.9836C38.2254 -23.8445 38.179 -23.6589 38.179 -23.1486C38.1326 -22.7775 38.179 -22.7311 38.2254 -22.5455C38.3181 -22.4528 38.4573 -22.2208 38.6429 -22.0352C39.014 -21.6641 39.1068 -21.4786 39.1068 -21.293C39.1068 -21.1538 38.9676 -20.9219 38.8284 -20.8755C38.6893 -20.7827 38.5501 -20.8291 38.0862 -21.3394C37.6687 -21.7569 37.6687 -21.7569 37.6687 -21.9425S37.5759 -22.963 37.5295 -23.3806C37.2512 -25.1434 36.7873 -26.8598 36.1378 -28.3443L35.9986 -28.669L36.1378 -28.8546C36.3234 -29.1329 36.6945 -29.5504 36.9728 -29.8288C37.1584 -30.1071 37.2048 -30.1071 37.2512 -30.0607C37.2512 -30.0143 37.4367 -29.736 37.5759 -29.3649ZM28.4835 -29.1329C28.901 -29.0865 29.1793 -28.9937 29.5968 -28.8546C29.8288 -28.7618 30.2463 -28.6226 30.2927 -28.5762C30.2927 -28.5762 30.2463 -28.3907 30.1999 -28.1587C30.1535 -27.8804 30.1071 -27.4165 30.0607 -27.0454C30.0143 -26.7206 29.9679 -26.3959 29.9679 -26.3959C29.9215 -26.3959 29.8288 -26.4423 29.6896 -26.5351C29.2721 -26.8134 28.4835 -27.0454 27.9268 -27.0454H27.6948V-26.9062V-26.767L28.0196 -26.7206C28.669 -26.7206 29.2257 -26.4887 29.6896 -26.164L29.9215 -26.0248V-25.8392C29.8752 -25.4681 29.7824 -24.4011 29.736 -23.6125C29.736 -23.1022 29.6896 -22.5455 29.6896 -22.3136L29.6432 -21.9425L29.4576 -21.8497C29.2721 -21.7569 29.1329 -21.7569 28.8082 -21.7105C28.4371 -21.7105 27.834 -21.7569 27.6948 -21.8033C27.6948 -21.8497 27.5557 -22.0352 27.4629 -22.3136C26.8598 -23.8908 25.932 -25.3289 24.7723 -26.5351L24.4011 -26.9526L24.4939 -27.1381C24.7723 -27.7412 25.4217 -28.3907 26.1176 -28.7154C26.8134 -29.0865 27.6484 -29.2257 28.4835 -29.1329ZM35.5811 -28.901L35.6739 -28.7154L35.442 -28.3443C34.6997 -27.0918 34.0966 -25.4217 33.8647 -24.03C33.8183 -23.8445 33.8183 -23.7053 33.8183 -23.7053C33.8183 -23.7517 33.7255 -23.9372 33.6791 -24.2156C33.5864 -24.4939 33.4936 -24.8186 33.4472 -25.0042L33.3544 -25.2825L33.4936 -25.6537C33.8183 -26.2103 34.2358 -26.999 34.8853 -28.0659C35.21 -28.6226 35.4883 -29.0401 35.4883 -29.0401S35.5347 -28.9937 35.5811 -28.901ZM31.0349 -28.0659C31.5916 -27.602 32.1019 -26.999 32.5194 -26.3495C32.7049 -25.9784 32.9833 -25.4217 32.9833 -25.3289C32.9833 -25.2825 32.8905 -25.0042 32.7513 -24.7259C32.2874 -23.8445 31.4988 -21.8033 31.4988 -21.6641C31.4988 -21.6177 31.4524 -21.6177 31.3596 -21.6177C31.3132 -21.6641 30.9421 -21.6641 30.6174 -21.6641C30.2927 -21.7105 29.9679 -21.7105 29.9679 -21.7569C29.9679 -21.7569 30.0143 -21.8033 30.0607 -21.8033C30.1999 -21.9425 30.5246 -22.3136 30.6638 -22.5455C31.2669 -23.5661 31.1741 -24.9578 30.4318 -25.8856C30.2463 -26.1176 30.2463 -26.164 30.2463 -26.3031C30.2927 -26.6279 30.4782 -27.9268 30.5246 -28.1587L30.571 -28.3907L30.6638 -28.3443C30.7102 -28.2979 30.8957 -28.2051 31.0349 -28.0659ZM35.9986 -27.9732C36.6481 -26.3959 37.0656 -24.6795 37.2976 -22.7775C37.3903 -21.8961 37.3903 -21.8497 37.2512 -21.8033C37.1584 -21.7569 36.9728 -21.5713 36.7873 -21.3858C36.4161 -20.9683 36.2306 -20.8291 36.0914 -20.8291C35.9059 -20.8291 35.6739 -21.1538 35.7203 -21.3394S35.8595 -21.6177 36.1378 -21.9889C36.3234 -22.1744 36.5089 -22.4064 36.5553 -22.4991C36.6481 -22.6383 36.6481 -22.6847 36.6481 -23.1022C36.6481 -23.8445 36.5089 -24.1228 36.0914 -24.1228S35.3028 -23.9372 35.0244 -23.6589C34.8389 -23.4269 34.7461 -23.2878 34.7461 -23.0094C34.7461 -22.7775 34.7925 -22.6383 34.9781 -22.4991C35.1636 -22.4064 35.442 -22.4064 35.6275 -22.4991C36.0914 -22.7311 35.9986 -23.4733 35.442 -23.5661H35.3492L35.5347 -23.7053C35.6739 -23.7517 35.8131 -23.7981 35.9986 -23.7981L36.2306 -23.8445L36.3234 -23.7053C36.3698 -23.5661 36.3698 -23.4269 36.3698 -23.1022C36.3698 -22.5919 36.3698 -22.5455 35.9059 -22.0816C35.7203 -21.8961 35.5811 -21.6641 35.5347 -21.5713C35.442 -21.3394 35.442 -21.1074 35.5347 -20.9683C35.7667 -20.6435 35.9986 -20.5972 36.6481 -20.7827C36.88 -20.8755 37.1584 -20.9219 37.2512 -20.9683H37.3903V-20.226C37.3903 -18.7879 37.2048 -17.1643 36.88 -15.819C36.8337 -15.4943 36.7873 -15.4943 36.6945 -15.4943C36.6481 -15.4943 36.4161 -15.5406 36.1378 -15.5406C34.4678 -15.6798 32.6122 -15.3551 30.7566 -14.5665C30.0607 -14.2417 28.7154 -13.5459 28.1123 -13.1284C28.0196 -13.082 28.0659 -13.1748 28.2979 -13.4995C28.5298 -13.8706 28.669 -14.1489 29.3185 -15.4479L29.5504 -15.9582L29.9679 -16.0973C30.7566 -16.3757 31.4524 -16.7932 32.1019 -17.3962C32.473 -17.7674 32.8905 -18.324 33.0761 -18.6488C33.1688 -18.8343 33.2152 -18.8343 33.4008 -18.8807C34.4678 -19.2518 35.5347 -18.9271 35.7667 -18.2313C35.8131 -18.0457 35.8131 -17.7674 35.7667 -17.5818C35.6275 -17.3035 35.3028 -17.1643 35.0244 -17.2107H34.8389L34.9781 -17.3035C35.21 -17.5354 35.21 -17.9065 34.9781 -18.0921C34.7461 -18.324 34.4214 -18.2777 34.2358 -18.0457C33.7255 -17.489 34.6069 -16.7004 35.3956 -16.9323C35.6739 -17.0251 35.9522 -17.3035 36.045 -17.5818C36.277 -18.3704 35.7203 -19.1127 34.7461 -19.2982C34.375 -19.3446 33.7719 -19.2982 33.4008 -19.1591C33.3544 -19.1591 33.3544 -19.2055 33.4472 -19.391C33.7719 -20.0869 33.9575 -21.0611 33.9575 -22.0352C33.9575 -23.4733 34.2822 -25.1434 34.8389 -26.4887C35.1172 -27.2309 35.7667 -28.3907 35.8131 -28.3443C35.8131 -28.3443 35.9059 -28.1587 35.9986 -27.9732ZM13.3139 -26.3031C13.3603 -26.3031 13.4067 -26.2103 13.4531 -26.164C13.5923 -25.7928 13.3603 -25.6073 12.6645 -25.3753C12.2933 -25.2362 11.9686 -25.097 11.6903 -24.9114C11.4583 -24.8186 11.4583 -24.8186 12.1542 -25.5609C12.5253 -25.9784 12.8964 -26.3495 12.9428 -26.3959C13.0356 -26.4423 13.2211 -26.3959 13.3139 -26.3031ZM30.4782 -25.2362C30.7102 -24.865 30.7566 -24.5403 30.7566 -24.03C30.7566 -23.5661 30.7102 -23.2878 30.5246 -22.9167C30.4318 -22.6383 30.1535 -22.2672 30.0143 -22.1744C29.9679 -22.1744 29.9679 -22.1744 29.9679 -22.5919C30.0143 -23.5661 30.0607 -24.5403 30.1071 -25.097C30.1535 -25.4217 30.1999 -25.7001 30.1999 -25.7001C30.1999 -25.7928 30.3854 -25.5145 30.4782 -25.2362ZM3.89676 -25.3753C4.36066 -25.2825 4.82456 -24.9114 5.01012 -24.4939C5.33485 -23.7517 5.1029 -22.9167 4.45344 -22.5919C4.08232 -22.4528 3.66481 -22.4528 3.43286 -22.6847C3.34008 -22.7775 3.34008 -22.7775 3.34008 -23.0094V-23.2414L3.43286 -23.1486C3.66481 -22.8239 4.12871 -22.8703 4.31427 -23.195S4.26788 -23.9836 3.85037 -23.9836C3.61842 -23.9836 3.47925 -23.8908 3.29369 -23.7053C3.10813 -23.4733 3.06174 -23.2414 3.06174 -22.963C3.06174 -22.5919 3.15452 -22.4528 3.52564 -22.2672L3.7112 -22.2208L3.52564 -22.1744C3.06174 -22.0816 2.55145 -21.8033 2.18033 -21.4786C1.94838 -21.2466 1.99477 -21.2466 1.76282 -21.7105S1.43809 -22.5455 1.43809 -23.0558S1.53087 -23.9372 1.71643 -24.3547C1.90199 -24.6795 2.3195 -25.097 2.59784 -25.2362C3.01535 -25.4217 3.47925 -25.5145 3.89676 -25.3753ZM33.3544 -24.2156C33.5864 -23.4269 33.6327 -22.7775 33.6791 -21.9889C33.6791 -21.5713 33.6327 -21.2002 33.6327 -21.1074L33.5864 -20.9219L33.4936 -21.0147C33.2152 -21.2466 32.6586 -21.4322 32.1019 -21.525C31.9163 -21.5713 31.7771 -21.6177 31.7771 -21.6177C31.7771 -21.7569 32.5194 -23.6589 32.9369 -24.4939L33.1688 -24.9578L33.2152 -24.8186C33.2152 -24.7259 33.308 -24.4475 33.3544 -24.2156ZM39.1532 -23.7517C39.2923 -23.7053 39.3851 -23.6589 39.4315 -23.6125C39.5243 -23.5661 39.5243 -23.5661 39.3851 -23.5661C39.1532 -23.5661 38.9212 -23.2878 38.9212 -23.0094C38.9212 -22.6383 39.1068 -22.4528 39.4779 -22.4064C39.6634 -22.4064 39.6634 -22.4064 39.7098 -22.2672C39.8026 -21.5713 39.849 -19.5302 39.7562 -18.6024C39.7098 -17.8138 39.5707 -17.0715 39.4315 -16.4221C39.3387 -15.819 39.1068 -14.984 39.0604 -14.8912C39.0604 -14.8912 38.9676 -14.8912 38.782 -14.984C38.4109 -15.1231 37.8078 -15.2623 37.3903 -15.3551C37.2512 -15.4015 37.112 -15.4479 37.112 -15.4479C37.112 -15.4943 37.1584 -15.7726 37.2512 -16.0973C37.5295 -17.489 37.6687 -18.5096 37.6687 -19.9013C37.7151 -20.5972 37.7151 -20.9219 37.7615 -20.9219C37.7615 -20.9219 37.947 -20.8755 38.1326 -20.8291C38.782 -20.5972 39.0604 -20.6435 39.2923 -20.9219C39.3387 -21.0147 39.3851 -21.1074 39.3851 -21.2466C39.3851 -21.525 39.2923 -21.6641 38.9212 -22.0816C38.4573 -22.5455 38.4573 -22.6383 38.4573 -23.1486C38.4573 -23.7053 38.5501 -23.7981 38.7356 -23.7981C38.8284 -23.7981 39.014 -23.7981 39.1532 -23.7517ZM4.77817 -21.8961C5.19568 -21.8033 5.65958 -21.6177 6.07709 -21.2466C6.26265 -21.1074 6.72655 -20.5508 6.72655 -20.458C6.72655 -20.4116 6.07709 -20.0869 5.75236 -19.9941C5.01012 -19.7621 4.08232 -19.8085 3.34008 -20.1333C3.01535 -20.3188 2.59784 -20.5972 2.36589 -20.8291L2.18033 -21.0147L2.27311 -21.1538C2.3195 -21.2002 2.41228 -21.293 2.55145 -21.3858C3.20091 -21.8961 3.94315 -22.0352 4.77817 -21.8961ZM28.8082 -21.4322H29.6896V-20.7827C29.6896 -19.2982 29.504 -17.3962 29.2257 -16.5148L29.1793 -16.2829L28.9474 -16.2365C28.8082 -16.1901 28.6226 -16.1437 28.2515 -16.1437C27.7876 -16.0973 27.7412 -16.0973 27.7876 -16.1901C28.2051 -17.6746 28.2979 -18.9271 28.0659 -20.2724C27.9732 -20.6899 27.834 -21.293 27.7876 -21.4322C27.7412 -21.525 27.7412 -21.525 27.834 -21.4786C27.9268 -21.4786 28.3443 -21.4786 28.8082 -21.4322ZM31.3132 -21.3394C31.3596 -21.293 31.1277 -20.6435 30.571 -19.1127C30.1999 -18.1385 29.6432 -16.7468 29.5968 -16.7932C29.5968 -16.7932 29.5968 -16.886 29.6432 -16.9787C29.7824 -17.6746 29.9215 -19.0663 29.9679 -20.3652V-21.4322L30.6174 -21.3858C30.9885 -21.3858 31.3132 -21.3394 31.3132 -21.3394ZM32.3802 -21.1538C32.7977 -21.0611 33.0761 -20.9683 33.308 -20.7827C33.4472 -20.6899 33.4936 -20.6899 33.54 -20.7363C33.7255 -21.0147 33.3544 -19.7621 33.0761 -19.2055C32.9369 -18.9735 32.8905 -18.9271 32.7049 -18.8343C32.3802 -18.6024 32.0555 -18.3704 31.2669 -17.721C30.6174 -17.1643 30.0143 -16.654 29.8752 -16.654C29.8752 -16.6076 29.8288 -16.654 29.8752 -16.654C30.3391 -17.7674 31.1741 -19.9477 31.5452 -21.0147L31.638 -21.293H31.8235C31.9627 -21.2466 32.1947 -21.2002 32.3802 -21.1538ZM22.0816 -18.2313C23.0558 -17.489 24.1692 -16.8396 25.097 -16.4684L25.2825 -16.3757L25.2362 -15.9582C25.1898 -14.5665 24.5403 -12.9892 23.3806 -11.5511C23.0558 -11.18 22.7775 -10.9016 22.7775 -10.948C22.7775 -10.948 22.6383 -11.0872 22.5455 -11.2264C22.2208 -11.6903 21.8033 -12.247 21.3394 -12.6645L20.9219 -13.082L21.0611 -13.4067C21.525 -14.752 21.7569 -16.2829 21.6177 -17.5354C21.5713 -17.9529 21.4786 -18.6488 21.4322 -18.7879C21.3858 -18.8343 21.4786 -18.7416 21.6177 -18.6488S21.9425 -18.3704 22.0816 -18.2313ZM32.6586 -18.5096C32.6586 -18.4632 32.5194 -18.324 32.3802 -18.1849C31.8235 -17.4426 30.9885 -16.7932 30.1535 -16.4684C30.0143 -16.4221 30.0607 -16.4684 30.4318 -16.7468C30.571 -16.8396 30.8957 -17.1179 31.1741 -17.3499C31.9163 -17.9993 32.0091 -18.0921 32.3338 -18.324S32.7049 -18.556 32.6586 -18.5096ZM14.5201 -17.489C15.2159 -17.3035 15.6334 -16.886 15.6798 -16.3293C15.6798 -16.1437 15.6798 -16.0973 15.587 -16.0045C15.4479 -15.819 15.4015 -15.819 15.1231 -15.8654C14.6128 -15.9582 13.6387 -16.0973 12.9428 -16.1437C12.2006 -16.1901 11.0872 -16.1437 10.4841 -16.0509C10.345 -16.0509 10.2058 -16.0045 10.2058 -16.0045C10.2058 -16.0509 10.6233 -16.4221 10.948 -16.6076C11.6439 -17.0715 12.5717 -17.3962 13.4531 -17.5354C13.685 -17.5818 14.2881 -17.5354 14.5201 -17.489ZM29.0401 -15.7262C28.8546 -15.1695 28.6226 -14.6592 28.1123 -13.8706C27.7876 -13.4067 27.4629 -12.9892 27.1845 -12.6645C26.999 -12.4325 26.8134 -12.2933 25.9784 -11.6439C25.6537 -11.4119 25.0506 -10.948 24.6795 -10.6697C24.3084 -10.345 23.9836 -10.0666 23.9372 -10.0202C23.7981 -9.92746 23.3806 -9.7419 23.3806 -9.78829C23.3806 -9.78829 23.3342 -9.88107 23.2414 -10.0202L23.1486 -10.2522L23.6125 -10.6697C25.5145 -12.247 26.8134 -13.7778 27.5093 -15.4943L27.6484 -15.819H28.3443C28.7154 -15.8654 29.0401 -15.8654 29.0401 -15.8654C29.0865 -15.9118 29.0865 -15.9118 29.0401 -15.7262ZM13.685 -15.7726C13.9634 -15.7726 14.2417 -15.7262 14.3345 -15.7262L14.5665 -15.6798L14.2881 -15.5406C13.8242 -15.3087 13.5923 -14.8912 13.5923 -14.3809S13.8242 -13.4531 14.2881 -13.2211C14.4737 -13.082 14.5665 -13.082 14.8448 -13.082C15.4479 -13.0356 15.8654 -13.2211 16.3293 -13.685C16.654 -13.9634 16.8396 -14.2881 17.0251 -14.7056L17.1179 -14.984L17.6746 -14.752C18.4168 -14.4273 19.2518 -13.9634 19.7157 -13.6387C19.8549 -13.5459 19.9013 -13.4995 19.9013 -13.3603C19.9013 -12.9428 19.6694 -11.9222 19.391 -11.2728C19.2518 -10.948 18.9735 -10.2986 18.9271 -10.2522C18.9271 -10.2522 18.7416 -10.345 18.5096 -10.5305C16.9323 -11.7367 15.2159 -12.5717 13.4531 -12.9428C11.9686 -13.2675 10.2522 -13.2675 8.90688 -12.8964C8.53576 -12.8036 8.53576 -12.7572 8.62854 -13.2675C8.8141 -14.1026 9.23161 -14.984 9.7419 -15.4943L9.88107 -15.6798L10.345 -15.7262C10.5769 -15.7726 10.9944 -15.819 11.2264 -15.819C11.7831 -15.8654 13.1284 -15.8654 13.685 -15.7726ZM9.32439 -15.5406C9.278 -15.4943 9.23161 -15.4015 9.13883 -15.2623C8.72132 -14.5665 8.39659 -13.7314 8.30381 -12.9428L8.25742 -12.7109L7.93269 -12.5717C7.46879 -12.4325 6.77294 -12.0614 6.35543 -11.7831C4.77817 -10.7625 3.75759 -9.278 3.38647 -7.65435C3.29369 -7.14406 3.29369 -6.26265 3.34008 -5.75236C3.57203 -4.1751 4.54622 -2.87618 5.79875 -2.27311C6.44821 -1.99477 7.32962 -1.90199 7.97908 -2.04116C8.67493 -2.18033 9.23161 -2.45867 9.69551 -2.92257C10.6697 -3.89676 10.9016 -5.28846 10.2522 -5.98431C9.97385 -6.30904 9.50995 -6.44821 8.90688 -6.40182C8.3502 -6.35543 7.83991 -6.4946 7.65435 -6.77294S7.56157 -7.4224 7.83991 -7.51518C7.93269 -7.56157 7.97908 -7.60796 7.97908 -7.70074V-7.83991H7.79352C7.00489 -7.74713 6.54099 -6.86572 6.86572 -6.12348C7.09767 -5.65958 7.46879 -5.38124 8.16464 -5.1029C8.8141 -4.87095 8.95327 -4.73178 9.13883 -4.31427C9.23161 -4.12871 9.23161 -3.61842 9.13883 -3.38647C8.90688 -2.92257 8.48937 -2.55145 7.93269 -2.36589C7.65435 -2.27311 7.56157 -2.27311 7.09767 -2.27311C6.54099 -2.27311 6.21626 -2.36589 5.70597 -2.59784C4.73178 -3.06174 4.03593 -3.94315 3.7112 -5.1029C3.61842 -5.42763 3.61842 -5.47402 3.61842 -6.16987C3.61842 -6.81933 3.61842 -6.86572 3.7112 -7.28323C3.98954 -8.21103 4.54622 -9.09244 5.24207 -9.69551C5.98431 -10.345 6.81933 -10.7161 7.79352 -10.9016C8.30381 -10.9944 8.44298 -10.9944 8.44298 -10.9016C8.44298 -10.8553 8.48937 -10.6697 8.53576 -10.4841C8.67493 -10.0666 8.95327 -9.50995 9.13883 -9.23161C9.23161 -9.09244 9.278 -8.99966 9.278 -8.99966S9.18522 -8.99966 9.04605 -9.04605C7.05128 -9.55634 5.05651 -8.53576 4.68539 -6.86572C4.54622 -6.26265 4.68539 -5.5668 4.96373 -5.05651C5.14929 -4.73178 5.61319 -4.31427 5.98431 -4.12871C6.30904 -3.98954 6.72655 -3.85037 7.00489 -3.85037H7.14406V-3.98954V-4.12871H7.00489C6.58738 -4.12871 6.0307 -4.36066 5.65958 -4.68539C5.42763 -4.91734 5.14929 -5.33485 5.05651 -5.61319C4.91734 -5.93792 4.91734 -6.54099 4.96373 -6.81933C5.19568 -7.79352 6.0307 -8.53576 7.09767 -8.8141C7.60796 -8.90688 8.39659 -8.90688 8.90688 -8.76771C9.37078 -8.67493 9.64912 -8.53576 9.78829 -8.39659C9.92746 -8.21103 10.5769 -7.70074 10.9016 -7.51518S11.3655 -7.14406 11.5975 -6.72655C12.1078 -5.75236 12.247 -4.45344 11.8758 -3.34008C11.4119 -1.99477 10.2522 -0.88141 8.76771 -0.37112C8.25742 -0.23195 7.8863 -0.13917 7.32962 -0.13917C5.61319 -0.04639 4.03593 -0.69585 2.7834 -1.99477C1.67004 -3.15452 1.02058 -4.68539 0.88141 -6.44821V-6.77294L1.02058 -6.86572C1.48448 -7.05128 1.53087 -7.70074 1.11336 -7.97908C1.02058 -8.02547 1.02058 -8.07186 1.02058 -8.11825C1.06697 -8.44298 1.25253 -9.18522 1.3917 -9.50995C1.94838 -10.9944 2.96896 -12.3397 4.31427 -13.3603L4.49983 -13.4995L4.36066 -13.3139C4.26788 -13.2675 4.1751 -13.1748 4.1751 -13.1284C4.1751 -13.1284 4.22149 -13.082 4.26788 -13.0356L4.36066 -12.9428L5.01012 -13.5923C5.75236 -14.2881 5.79875 -14.3345 6.68016 -14.752C7.37601 -15.0304 8.30381 -15.3551 9.23161 -15.5406C9.278 -15.587 9.32439 -15.587 9.32439 -15.587S9.32439 -15.5406 9.32439 -15.5406ZM36.5089 -15.2159C36.6017 -15.2159 36.6945 -15.1695 36.6945 -15.1695C36.7409 -15.1695 36.3698 -14.1026 36.1378 -13.4995C35.9059 -12.85 35.4883 -12.0614 35.1636 -11.4583L34.8853 -10.9944L34.5142 -10.8089C33.4008 -10.2522 32.6122 -9.46356 32.1019 -8.39659C31.9627 -8.11825 31.8699 -7.93269 31.8699 -7.8863C31.8699 -7.74713 30.4318 -6.9585 29.6432 -6.68016L29.2721 -6.4946V-6.40182C29.3185 -6.30904 29.3649 -6.26265 29.3649 -6.26265C29.5504 -6.26265 30.7566 -6.81933 31.3132 -7.14406C31.5452 -7.28323 31.6844 -7.37601 31.6844 -7.37601S31.6844 -7.19045 31.638 -7.00489S31.5452 -6.4946 31.5452 -6.07709L31.4988 -5.52041L31.1741 -5.38124C29.4113 -4.639 27.6948 -4.49983 25.9784 -4.91734C25.5609 -5.01012 25.1434 -5.19568 24.6331 -5.61319L24.1692 -5.93792L24.1228 -6.44821C24.0764 -7.32962 23.9372 -8.16464 23.7053 -8.95327L23.5661 -9.32439L23.7517 -9.46356C23.8908 -9.64912 23.9836 -9.64912 24.3084 -9.78829C25.1898 -10.0202 25.8392 -10.113 26.7206 -10.113C27.1381 -10.113 27.5093 -10.0666 27.834 -10.0202C29.3185 -9.78829 29.9679 -9.278 29.9215 -8.3502V-8.21103L29.8288 -8.30381C29.6432 -8.53576 29.3649 -8.58215 29.1329 -8.44298C28.669 -8.11825 28.901 -7.46879 29.4113 -7.46879C30.0607 -7.46879 30.4318 -8.3502 30.1071 -9.09244C29.8752 -9.60273 29.2257 -9.97385 28.4371 -10.2058C27.4165 -10.4841 25.8856 -10.4841 24.8186 -10.2058C24.6795 -10.2058 24.5867 -10.1594 24.5867 -10.1594C24.5867 -10.2058 25.5609 -10.9944 26.164 -11.4583C26.9526 -12.0614 27.602 -12.4789 27.9268 -12.6645C28.5298 -12.9892 29.5504 -13.3139 30.2927 -13.4067C30.6638 -13.4531 31.3132 -13.4531 31.5916 -13.3603C32.1483 -13.2211 32.6122 -12.8964 32.7977 -12.4789C32.8905 -12.247 32.8905 -11.8294 32.7977 -11.5975C32.7049 -11.4119 32.473 -11.18 32.2874 -11.1336C32.1483 -11.0408 31.638 -11.0408 31.638 -11.0872S31.6844 -11.18 31.7308 -11.18C31.8235 -11.2728 31.9627 -11.5047 31.9627 -11.6903S31.8699 -12.015 31.7308 -12.1542C31.3132 -12.5253 30.6638 -12.247 30.6638 -11.6903C30.7102 -11.3655 30.8957 -11.0872 31.2669 -10.9016C31.5452 -10.7625 32.0555 -10.7161 32.3338 -10.8089C32.9833 -11.0408 33.3544 -11.8294 33.0761 -12.5253C32.7977 -13.2675 31.6844 -13.7778 30.5246 -13.7314C30.1999 -13.685 29.6896 -13.6387 29.4576 -13.5923C29.4113 -13.5459 29.6432 -13.685 30.0143 -13.8706C31.5452 -14.6592 33.0761 -15.1231 34.5605 -15.2623C34.7925 -15.3087 36.277 -15.2623 36.5089 -15.2159ZM37.4367 -15.0767C37.9934 -14.9376 38.9676 -14.6128 38.9676 -14.5665C38.9676 -14.4737 38.6429 -13.5459 38.4109 -13.0356C38.2254 -12.5717 37.6223 -11.3655 37.5759 -11.3192C37.5295 -11.3192 37.3439 -11.3192 37.1584 -11.3192C36.6945 -11.3655 36.0914 -11.3192 35.6275 -11.2264C35.442 -11.18 35.3028 -11.1336 35.3028 -11.1336C35.3028 -11.18 35.3956 -11.2728 35.4883 -11.4583C35.9986 -12.3397 36.5089 -13.4995 36.88 -14.7056C36.9728 -14.9376 37.0192 -15.1695 37.0192 -15.1695S37.2512 -15.1231 37.4367 -15.0767ZM40.2201 -13.9634C40.3593 -13.8706 40.4057 -13.8242 40.4057 -13.7778C40.4057 -13.685 40.7768 -13.3139 41.0551 -13.082C41.751 -12.5717 42.4005 -11.4119 42.6324 -10.2522C42.7252 -9.78829 42.7716 -8.8141 42.7252 -8.3502C42.6788 -7.97908 42.4932 -7.09767 42.4005 -6.91211L42.3541 -6.81933L42.2613 -6.86572C42.1221 -6.9585 41.8902 -7.05128 41.3799 -7.14406C41.1479 -7.19045 40.8232 -7.23684 40.7304 -7.23684C40.5449 -7.32962 40.5449 -7.32962 40.5912 -7.4224C40.6376 -7.65435 40.5912 -8.48937 40.5449 -8.72132C40.3129 -9.46356 39.849 -10.1594 39.1532 -10.6233C38.9212 -10.8089 38.3181 -11.0872 38.1326 -11.1336C38.0862 -11.1336 38.0398 -11.18 38.0398 -11.18S38.179 -11.4119 38.3645 -11.6439C38.7356 -12.1542 39.3387 -13.082 39.6634 -13.685C39.8026 -13.917 39.9418 -14.1026 39.9418 -14.1026C39.9882 -14.1026 40.081 -14.0562 40.2201 -13.9634ZM21.7569 -11.7831C22.0816 -11.4119 22.5455 -10.7161 22.5455 -10.6697C22.5455 -10.5769 20.5972 -8.90688 20.5044 -8.90688C20.458 -8.90688 19.2982 -9.92746 19.2982 -9.92746C19.2518 -9.97385 19.391 -10.113 19.4838 -10.2986C19.9477 -10.948 20.5508 -12.015 20.7827 -12.6181L20.8291 -12.7572L21.1538 -12.4789C21.3394 -12.2933 21.6177 -11.9686 21.7569 -11.7831ZM42.3541 -12.1542C43.5602 -10.8089 44.2561 -9.09244 44.3488 -7.4224V-7.00489L44.2097 -6.9585C43.7458 -6.72655 43.7458 -6.07709 44.1633 -5.84514C44.2097 -5.79875 44.2561 -5.75236 44.2561 -5.75236C44.2561 -5.70597 44.2097 -5.52041 44.1633 -5.28846C43.8849 -4.03593 43.3283 -3.01535 42.4468 -2.04116L42.2613 -1.80921L42.1221 -2.08755C42.0757 -2.22672 42.0293 -2.45867 41.9829 -2.55145L41.9366 -2.73701L42.1221 -2.92257C42.4932 -3.2473 42.586 -3.52564 42.4468 -3.80398C42.4005 -3.98954 42.1221 -4.22149 42.0293 -4.22149S41.9366 -4.31427 41.9829 -4.639C42.1221 -5.19568 42.2613 -5.75236 42.3541 -5.84514C42.4932 -5.98431 42.5396 -6.16987 42.5396 -6.30904S42.586 -6.72655 42.6788 -7.00489C43.1891 -8.58215 43.1891 -9.7419 42.7716 -11.0408C42.586 -11.5047 42.4005 -11.9222 42.1685 -12.2933C42.0757 -12.4325 41.9829 -12.5717 42.0293 -12.5717C42.0293 -12.5717 42.1685 -12.3861 42.3541 -12.1542ZM37.3439 -10.9944C37.3903 -10.9944 36.88 -10.2522 36.5089 -9.7419C35.5347 -8.44298 34.2822 -7.23684 33.0297 -6.35543C32.7049 -6.16987 31.8699 -5.70597 31.8235 -5.70597C31.8235 -5.70597 31.8235 -5.84514 31.8235 -6.16987C31.8235 -6.68016 31.9627 -7.28323 32.0555 -7.56157C32.1019 -7.60796 32.241 -7.79352 32.5194 -7.97908C33.308 -8.58215 34.1894 -9.50995 34.7925 -10.3914L35.0244 -10.7625L35.3028 -10.8089C35.5811 -10.9016 35.9986 -10.9944 36.3234 -11.0408C36.4625 -11.0872 37.3439 -11.0408 37.3439 -10.9944ZM9.55634 -10.9016C10.6697 -10.7161 11.9222 -9.97385 13.6387 -8.58215C14.1489 -8.11825 15.0767 -7.28323 15.1231 -7.23684C15.1231 -7.23684 15.0304 -7.19045 14.8912 -7.14406C14.4273 -7.05128 14.0562 -7.00489 13.4531 -7.05128C12.7572 -7.05128 12.3861 -7.14406 11.7831 -7.37601C11.4583 -7.51518 11.4119 -7.51518 11.1336 -7.83991C10.7625 -8.21103 10.5305 -8.39659 10.113 -8.62854C9.88107 -8.76771 9.7419 -8.86049 9.64912 -8.99966C9.278 -9.46356 8.90688 -10.1594 8.76771 -10.6697C8.72132 -10.7625 8.72132 -10.9016 8.67493 -10.9016C8.67493 -10.9944 9.18522 -10.9944 9.55634 -10.9016ZM38.2717 -10.7625C38.8284 -10.5769 39.2923 -10.2522 39.6634 -9.78829C39.9418 -9.50995 40.2201 -8.95327 40.2665 -8.58215C40.3129 -8.30381 40.3593 -7.79352 40.3129 -7.60796L40.2665 -7.46879L40.1737 -7.60796C40.081 -7.65435 39.8954 -7.8863 39.7562 -8.07186C39.2923 -8.62854 39.1068 -8.76771 38.7356 -8.76771C38.5037 -8.72132 38.3181 -8.58215 38.179 -8.3502C38.0862 -8.16464 38.0862 -8.07186 38.0862 -7.79352C38.0862 -7.60796 38.1326 -7.32962 38.1326 -7.14406C38.2717 -6.54099 38.2254 -5.98431 38.0398 -5.93792C37.9006 -5.89153 37.7151 -5.65958 37.6687 -5.52041L37.6223 -5.33485L37.4367 -5.38124C37.0192 -5.42763 36.4625 -5.65958 36.277 -5.89153L36.1842 -5.98431L36.3234 -5.93792C36.6017 -5.89153 36.9728 -6.12348 37.0656 -6.44821C37.1584 -6.68016 37.112 -6.9585 36.9728 -7.14406C36.6017 -7.56157 35.9986 -7.51518 35.7203 -7.05128C35.6739 -6.9585 35.6275 -6.91211 35.5811 -6.91211S35.5347 -6.86572 35.5347 -6.58738C35.5811 -6.0307 35.7203 -5.70597 36.045 -5.28846C36.277 -5.05651 36.7409 -4.73178 36.9264 -4.68539C37.0656 -4.639 37.3903 -4.73178 37.5759 -4.87095L37.7151 -5.01012L37.8542 -4.82456C38.2717 -4.40705 39.014 -4.68539 39.014 -5.28846C39.014 -5.42763 39.0604 -5.42763 39.2923 -5.5668C39.5707 -5.75236 39.9418 -6.07709 40.1273 -6.40182C40.2665 -6.58738 40.2665 -6.58738 40.4057 -6.58738C40.4521 -6.58738 40.7768 -6.63377 41.0551 -6.72655C41.7046 -6.91211 41.9366 -6.91211 42.0757 -6.77294C42.2613 -6.63377 42.2613 -6.4946 42.1685 -6.21626C42.0757 -5.84514 41.9366 -5.75236 41.1479 -5.47402C40.5449 -5.28846 40.3593 -5.19568 40.1273 -4.96373C39.9418 -4.77817 39.6634 -4.1751 39.5707 -3.85037C39.5243 -3.57203 39.5243 -3.29369 39.6634 -3.10813C39.7562 -2.96896 40.2201 -2.73701 40.5912 -2.64423C40.7768 -2.55145 41.1943 -2.55145 41.5654 -2.59784C41.6582 -2.59784 41.6582 -2.59784 41.751 -2.36589C41.7974 -2.22672 41.8438 -1.99477 41.9366 -1.8556L42.0293 -1.62365L41.8902 -1.48448C41.6582 -1.29892 41.1015 -0.9278 40.684 -0.74224C39.4315 -0.13917 38.0862 0 36.6017 -0.27834C34.7461 -0.69585 33.1688 -1.8556 32.3802 -3.47925C32.1947 -3.85037 31.9627 -4.49983 31.9163 -4.73178V-4.91734L32.1483 -5.05651C32.7977 -5.5668 33.5864 -6.21626 34.6069 -7.23684C35.7203 -8.3502 36.6017 -9.37078 37.4831 -10.4841C37.8078 -10.8553 37.8542 -10.9016 37.9006 -10.9016S38.1326 -10.8553 38.2717 -10.7625ZM34.4214 -10.345C33.8647 -9.60273 33.0297 -8.76771 32.3802 -8.25742C32.2874 -8.16464 32.2874 -8.16464 32.4266 -8.44298C32.8441 -9.18522 33.54 -9.92746 34.2822 -10.345C34.375 -10.4377 34.5142 -10.4841 34.5142 -10.4841S34.4678 -10.4377 34.4214 -10.345ZM23.0558 -9.69551C23.1022 -9.64912 23.0558 -9.60273 22.7775 -9.46356C22.4064 -9.278 21.8033 -8.86049 21.4322 -8.58215C21.293 -8.44298 21.1538 -8.3502 21.1538 -8.3502C21.1074 -8.3502 21.0611 -8.44298 20.9683 -8.48937L20.7827 -8.62854L21.4322 -9.04605C21.7569 -9.278 22.2208 -9.60273 22.4528 -9.78829L22.9167 -10.113L22.963 -9.92746C23.0094 -9.83468 23.0558 -9.7419 23.0558 -9.69551ZM22.8703 -9.13883C22.8239 -9.04605 22.4991 -8.76771 22.1744 -8.48937C21.5713 -8.02547 21.5713 -8.02547 21.4786 -8.07186C21.4322 -8.07186 21.3858 -8.11825 21.3858 -8.11825C21.3858 -8.16464 21.8497 -8.53576 22.1744 -8.76771C22.4064 -8.90688 22.963 -9.23161 23.0094 -9.23161C23.0094 -9.23161 22.963 -9.18522 22.8703 -9.13883ZM23.4269 -8.76771C23.6589 -8.11825 23.7981 -7.32962 23.8445 -6.54099C23.8445 -6.21626 23.8445 -6.12348 23.7981 -6.16987C23.7053 -6.26265 21.9425 -7.65435 21.8961 -7.74713L21.7569 -7.79352L21.8497 -7.8863C21.9425 -7.93269 22.2672 -8.21103 22.6383 -8.53576S23.2878 -9.09244 23.3342 -9.09244C23.3342 -9.09244 23.3806 -8.95327 23.4269 -8.76771ZM39.1532 -8.48937C39.3387 -8.3502 39.4315 -8.16464 39.5707 -7.56157C39.7098 -7.00489 39.8026 -6.77294 39.8954 -6.68016C39.9418 -6.68016 39.9418 -6.63377 39.849 -6.4946C39.7098 -6.26265 39.3851 -5.98431 39.1532 -5.79875L38.9676 -5.70597L38.8284 -5.79875C38.7356 -5.89153 38.6429 -5.93792 38.5501 -5.98431C38.4109 -6.0307 38.4109 -6.0307 38.4573 -6.16987S38.4573 -6.68016 38.4109 -7.14406C38.3181 -7.56157 38.3181 -8.02547 38.4109 -8.21103C38.4573 -8.3502 38.5037 -8.39659 38.6893 -8.44298C38.9212 -8.53576 39.014 -8.58215 39.1532 -8.48937ZM36.3698 -5.47402C36.5553 -5.33485 36.7873 -5.24207 37.112 -5.14929L37.4367 -5.05651L37.2976 -5.01012C37.0192 -4.91734 36.9264 -4.96373 36.5553 -5.24207C36.2306 -5.47402 36.0914 -5.65958 36.3698 -5.47402ZM41.8438 -5.01012C41.751 -4.73178 41.7046 -4.45344 41.7046 -4.40705C41.6582 -4.36066 41.6582 -4.31427 41.519 -4.26788C41.1479 -4.1751 40.916 -3.75759 41.0088 -3.38647C41.0551 -3.20091 41.2871 -2.96896 41.3799 -2.92257S41.4727 -2.87618 41.3799 -2.87618C41.1015 -2.73701 40.1737 -2.96896 39.8954 -3.29369C39.8026 -3.38647 39.8026 -3.38647 39.8026 -3.61842C39.8026 -3.80398 39.849 -3.89676 39.9882 -4.22149C40.3593 -4.87095 40.5449 -5.05651 41.3799 -5.33485C41.6118 -5.38124 41.8438 -5.47402 41.8902 -5.52041C41.8902 -5.52041 41.9366 -5.52041 41.9366 -5.52041S41.8902 -5.28846 41.8438 -5.01012ZM45.1375 -19.8549C44.6736 -19.7157 44.4416 -19.1591 44.72 -18.7879C44.8591 -18.6024 45.0911 -18.4632 45.2766 -18.4632S45.6941 -18.6024 45.8333 -18.7879S46.0189 -19.2055 45.8797 -19.4374C45.7869 -19.7621 45.4622 -19.9013 45.1375 -19.8549ZM32.0555 -31.406C31.8699 -31.3596 31.6844 -31.1277 31.6844 -30.8957C31.6844 -30.5246 32.0555 -30.2463 32.4266 -30.4318C33.0297 -30.7102 32.7049 -31.5916 32.0555 -31.406ZM25.7928 -8.30381C25.3289 -8.07186 25.2825 -7.4224 25.7001 -7.14406C25.932 -7.00489 26.2567 -7.00489 26.4423 -7.14406C26.6742 -7.28323 26.767 -7.4224 26.767 -7.70074C26.767 -7.8863 26.767 -7.97908 26.6742 -8.07186C26.4887 -8.39659 26.0712 -8.48937 25.7928 -8.30381Z"/>
+ <path id="g72" d="M2.016 -6.192C1.4976 -5.7456 0.9504 -5.328 0.4608 -4.8528C0.4464 -4.464 0.4464 -4.0608 0.4464 -3.6576C0.9792 -4.0896 1.512 -4.5072 2.0016 -4.9824C2.0448 -5.3568 2.0304 -5.8032 2.016 -6.192ZM2.016 -3.168C1.4976 -2.7216 0.9504 -2.304 0.4608 -1.8288C0.4464 -1.44 0.4464 -1.0368 0.4464 -0.6336C0.9792 -1.0656 1.512 -1.4832 2.0016 -1.9584C2.0448 -2.3328 2.0304 -2.7792 2.016 -3.168Z"/>
+ <path id="g73" d="M2.052 -4.356L2.112 -4.524C1.572 -4.776 1.02 -5.076 0.768 -5.64C0.696 -5.796 0.66 -5.964 0.66 -6.132C0.66 -6.624 0.936 -7.104 1.32 -7.404C1.572 -7.584 1.956 -7.74 2.28 -7.74C2.508 -7.74 2.712 -7.608 2.916 -7.5C3.216 -7.332 3.504 -7.14 3.78 -6.936C3.924 -6.84 4.056 -6.732 4.2 -6.648V-6.636C3.756 -6.444 3.264 -6.204 2.94 -5.832C2.736 -5.592 2.676 -5.328 2.676 -5.04C2.676 -4.548 2.832 -3.984 2.952 -3.636C3.312 -2.688 4.116 -1.248 4.116 -0.06C4.116 0.768 3.732 1.464 3.108 1.692C2.976 1.728 2.844 1.74 2.7 1.74C1.92 1.74 1.14 1.14 1.14 0.252C1.14 -0.504 1.668 -1.164 1.908 -1.764C2.004 -2.004 2.076 -2.28 2.076 -2.544C2.076 -3.252 1.584 -3.78 0.936 -3.78C0.468 -3.78 0.312 -3.216 0.204 -2.916L0.456 -2.82C0.54 -3.06 0.612 -3.516 0.948 -3.516C1.14 -3.516 1.344 -3.372 1.404 -3.192C1.416 -3.192 1.428 -3.048 1.428 -3.048S1.416 -2.904 1.416 -2.904C1.392 -2.676 1.332 -2.448 1.236 -2.232C0.96 -1.548 0.408 -0.852 0.408 -0.036C0.408 1.32 1.656 2.004 2.76 2.004C3.564 2.004 4.116 1.668 4.536 1.236C4.896 0.876 5.148 0.3 5.148 -0.372C5.148 -1.284 4.776 -2.16 4.524 -2.796C4.38 -3.144 4.224 -3.492 4.104 -3.852C4.08 -3.912 3.984 -4.164 3.984 -4.212C3.984 -4.224 3.984 -4.224 3.984 -4.236C4.008 -4.296 4.524 -4.776 4.572 -4.776C4.584 -4.776 4.584 -4.776 4.596 -4.776C4.656 -4.74 4.92 -4.452 4.92 -4.452C4.956 -4.416 5.004 -4.332 5.064 -4.332C5.136 -4.332 5.208 -4.428 5.256 -4.476C5.4 -4.62 5.556 -4.764 5.712 -4.896C5.676 -4.968 5.616 -5.028 5.556 -5.088L5.232 -5.436C5.196 -5.484 5.124 -5.592 5.052 -5.592C5.052 -5.592 5.04 -5.592 5.04 -5.592C4.992 -5.58 4.764 -5.364 4.692 -5.292C4.428 -5.04 4.164 -4.776 3.876 -4.536C3.792 -5.064 3.768 -4.836 3.72 -5.52C3.72 -5.58 3.708 -5.64 3.708 -5.7C3.732 -6.048 3.9 -6.312 4.116 -6.504C4.152 -6.54 4.188 -6.576 4.236 -6.576C4.236 -6.576 4.248 -6.576 4.248 -6.576C4.308 -6.576 4.38 -6.504 4.428 -6.468L4.836 -6.168C4.884 -6.132 4.968 -6.036 5.04 -6.036C5.1 -6.036 5.124 -6.096 5.148 -6.12C5.208 -6.192 5.928 -7.116 5.928 -7.116C5.892 -7.152 5.808 -7.26 5.736 -7.26C5.724 -7.26 5.712 -7.248 5.7 -7.248C5.616 -7.212 5.58 -7.056 5.496 -7.056C5.472 -7.056 5.46 -7.068 5.436 -7.08C5.292 -7.164 4.14 -8.052 4.14 -8.052L3.792 -8.316C3.684 -8.4 3.624 -8.46 3.432 -8.46C2.856 -8.46 2.136 -8.244 1.776 -8.076C1.068 -7.74 0.408 -7.116 0.408 -6.144C0.408 -5.916 0.456 -5.7 0.564 -5.496C0.852 -4.944 1.476 -4.572 2.052 -4.356Z"/>
+ <path id="g74" d="M2.1888 -5.5008C2.088 -5.472 2.0016 -5.4144 1.9008 -5.3712C1.2528 -4.9968 0.6912 -4.6224 0.3456 -3.9168C0.216 -3.6144 0.1584 -3.2976 0.1584 -2.9664C0.1584 -2.8944 0.1728 -2.808 0.1728 -2.736C0.288 -1.4688 1.1232 -0.4032 2.2176 0.0576C2.3184 0.1008 2.5056 0.1728 2.6208 0.1728C2.7216 0.1728 3.4416 -0.1584 3.7008 -0.2736C4.1616 -0.4608 4.6512 -0.6192 5.0256 -0.9504C5.6304 -1.4976 5.904 -2.4336 5.904 -3.2832C5.904 -3.456 5.8896 -3.6288 5.8608 -3.8016C5.6448 -4.8528 4.752 -5.6304 3.8736 -6.1632C3.2832 -6.5088 2.2032 -6.8832 2.2032 -7.8192C2.2032 -8.208 2.4048 -8.568 2.6352 -8.7984C2.7504 -8.8848 2.808 -8.9136 2.808 -9.1008V-9.2592C2.016 -9.2592 1.08 -8.8992 0.792 -8.1072C0.72 -7.92 0.7056 -7.7184 0.7056 -7.5168C0.7056 -6.7536 1.296 -6.1776 1.6992 -5.8608C1.8576 -5.7312 2.0304 -5.6304 2.1888 -5.5008ZM1.3968 -3.4416V-3.5856C1.3968 -4.1184 1.6848 -4.608 2.088 -4.9536C2.1744 -5.0256 2.4192 -5.256 2.5488 -5.256C2.6352 -5.2416 2.7072 -5.1696 2.7792 -5.1408C3.7008 -4.5216 4.8672 -3.8304 4.8672 -2.4048C4.8672 -2.2752 4.8672 -2.1456 4.8528 -2.0304C4.824 -1.6416 4.7952 -1.152 4.4064 -0.936C4.3632 -0.9216 4.3344 -0.9072 4.3056 -0.9072C4.248 -0.9072 3.9888 -0.9936 3.9168 -0.9936C3.7728 -1.0224 3.6144 -1.008 3.4704 -1.0368C3.1392 -1.08 2.8224 -1.224 2.5344 -1.4112C1.8432 -1.872 1.4832 -2.6352 1.3968 -3.4416Z"/>
+ <path id="g75" d="M2.1888 -7.128C2.088 -6.7392 1.8864 -6.336 1.6128 -6.0336C1.224 -5.616 0.72 -5.328 0.2016 -5.0976C0.3024 -4.9104 0.4176 -4.7376 0.504 -4.536C0.5472 -3.6144 0.5184 -2.5776 0.504 -1.656C0.4176 -1.4544 0.3024 -1.2816 0.2016 -1.0944C1.0224 -0.648 1.7856 -0.144 2.6208 0.288L2.7648 0.2304L3.9456 -0.4608C3.9168 -0.5328 3.8592 -0.7056 3.7584 -0.7056C3.672 -0.7056 3.6144 -0.6336 3.5424 -0.6048C3.4992 -0.6048 3.456 -0.6192 3.4128 -0.648C3.0528 -0.8352 2.6928 -1.0656 2.3328 -1.2672L1.9728 -1.4688C1.8576 -1.5552 1.728 -1.5552 1.728 -1.7856V-1.872V-5.4144V-5.5008C1.728 -5.6304 1.7424 -5.7312 1.8576 -5.8464C1.872 -5.8608 1.9008 -5.8608 1.9152 -5.8608C2.0016 -5.8608 2.088 -5.7744 2.16 -5.7456C2.3472 -5.6304 2.5488 -5.5296 2.736 -5.4144C2.808 -5.3712 2.9088 -5.2848 2.9952 -5.2848S3.1392 -5.4432 3.1824 -5.5152C3.3264 -5.7744 3.4992 -6.0336 3.6288 -6.3072L2.1888 -7.128Z"/>
+ <path id="g76" d="M2.1888 -9.2736C1.4688 -9.2736 1.1952 -8.4672 1.0656 -7.992C1.0368 -7.92 0.936 -7.5024 0.936 -7.4304V-7.4016C0.9792 -7.344 1.0944 -7.2288 1.1808 -7.2288C1.2384 -7.2288 1.296 -7.272 1.3392 -7.3008C1.8288 -7.632 2.4768 -7.8768 2.736 -8.424C2.7936 -8.5392 2.8368 -8.6832 2.8368 -8.8128C2.8368 -9.1296 2.5488 -9.2736 2.2752 -9.2736H2.1888ZM1.3392 -6.8976C0.9504 -6.4656 0.5472 -6.048 0.1728 -5.616L0.1584 -5.4576C0.5328 -5.4288 0.6624 -4.9968 0.6624 -4.68V-1.9152V-1.728C0.6624 -1.368 0.4608 -1.1232 0.1584 -1.0944L0.1872 -0.7776C0.6624 -0.4464 1.1232 -0.1152 1.656 0.1584C2.2608 -0.2016 2.7648 -0.6768 3.312 -1.0944L3.3408 -1.4112C3.1104 -1.2672 2.808 -1.0944 2.4912 -1.0944C2.1312 -1.0944 2.016 -1.4688 2.016 -1.8288C2.016 -1.9728 2.0304 -2.1168 2.0304 -2.232V-4.6512C2.0304 -4.9824 2.1456 -5.4144 2.5344 -5.4576L2.52 -5.616C2.1456 -6.0624 1.728 -6.4656 1.3392 -6.8976Z"/>
+ <path id="g77" d="M2.2176 -6.7536C2.1024 -6.5088 1.9728 -6.264 1.8 -6.0624C1.4112 -5.6304 0.8784 -5.3424 0.36 -5.0976C0.4608 -4.9104 0.576 -4.7376 0.6624 -4.536C0.7056 -3.6144 0.6768 -2.5776 0.6624 -1.656C0.576 -1.4544 0.4608 -1.2816 0.36 -1.0944C1.1808 -0.648 1.944 -0.144 2.7792 0.288L2.9232 0.2304L4.104 -0.4608L3.96 -0.7344L3.6432 -0.6048L3.4992 -0.6768C2.9808 -1.008 2.4048 -1.2672 1.9152 -1.6272L1.8864 -1.944C1.8864 -3.1968 1.872 -4.464 1.9008 -5.6736L2.0448 -5.904C2.4192 -5.688 2.808 -5.4576 3.1968 -5.256C3.3984 -5.6016 3.6 -5.9472 3.7872 -6.3072L2.8512 -6.84L2.5776 -6.9984C2.52 -7.0416 2.448 -7.0992 2.3472 -7.0992C2.16 -7.0848 2.1168 -7.0128 1.8864 -7.0128C1.3536 -7.0128 0.9792 -7.3584 0.8352 -7.848C0.8208 -7.848 0.8064 -8.0928 0.8064 -8.0928S0.8064 -8.2368 0.8208 -8.2368C0.936 -9.1296 1.7856 -9.5904 2.664 -9.5904C3.6 -9.5904 4.4352 -9.0432 4.9824 -8.4384C5.0544 -8.352 5.112 -8.2656 5.1984 -8.1936V-8.1792C4.6656 -7.3872 4.2048 -6.5376 3.7008 -5.7312H4.3056V-1.8864C4.3056 -1.8144 4.32 -1.7424 4.32 -1.6704C4.32 -1.584 4.3056 -1.512 4.2768 -1.4544C4.2336 -1.3968 4.0176 -1.1664 4.0176 -1.08C4.0464 -0.9792 4.2192 -0.8064 4.2624 -0.7632L4.896 -0.0144C4.9392 0.0288 5.0976 0.2736 5.1696 0.2736C5.2272 0.2736 5.2992 0.216 5.3568 0.1872L5.76 -0.0432C6.3072 -0.3312 6.7968 -0.648 7.344 -0.9504L7.2 -1.224C6.7824 -1.0224 6.3936 -0.7776 5.9904 -0.5472C5.832 -0.7488 5.6736 -0.936 5.5296 -1.152C5.4864 -2.6352 5.5296 -4.2192 5.5152 -5.7312H6.7248V-6.6528H5.5152C5.5152 -7.2576 5.5872 -7.848 5.6736 -8.4528H5.5296C5.472 -8.4528 5.4288 -8.4528 5.3856 -8.4672C5.2992 -8.5104 5.0832 -8.7984 5.0688 -8.8128C4.536 -9.3888 3.6576 -9.9072 2.6928 -9.9072C1.5408 -9.9072 0.504 -9.1872 0.504 -8.0928C0.504 -7.4304 0.9648 -6.7104 1.7856 -6.7104C1.9296 -6.7104 2.0736 -6.7248 2.2176 -6.7536Z"/>
+ <path id="g78" d="M2.376 -7.2L2.328 -6.984C2.412 -6.852 2.472 -6.672 2.52 -6.504C2.532 -6.048 2.532 -5.58 2.52 -5.124H2.508L2.244 -5.796C2.088 -5.76 1.944 -5.64 1.812 -5.568L0.984 -5.088C0.888 -5.028 0.792 -4.98 0.696 -4.92C0.516 -4.824 0.528 -4.74 0.444 -4.512C0.3 -4.032 0.204 -3.42 0.204 -2.82C0.204 -2.712 0.204 -2.616 0.204 -2.508C0.204 -1.836 0.252 -1.128 0.744 -0.612C0.936 -0.42 1.236 -0.216 1.548 -0.168L1.38 0.048L1.584 0.132L1.68 0.06L2.436 -0.744H2.448C2.604 -0.48 2.832 -0.24 3.072 -0.048C3.12 -0.012 3.264 0.132 3.336 0.132C3.396 0.132 3.552 -0.072 3.552 -0.072L4.116 -0.696C4.164 -0.756 4.308 -0.864 4.308 -0.96C4.296 -0.996 4.212 -1.056 4.152 -1.056C4.14 -1.056 4.14 -1.056 4.128 -1.056C4.044 -1.032 3.996 -0.876 3.9 -0.876C3.852 -0.876 3.576 -1.044 3.48 -1.104C3.396 -1.164 3.336 -1.164 3.336 -1.308C3.336 -1.368 3.348 -1.428 3.348 -1.476V-4.536H4.572V-5.148H4.428C4.548 -5.508 4.764 -6.108 4.764 -6.54C4.764 -6.588 4.764 -6.624 4.752 -6.672C4.728 -6.9 4.464 -7.068 4.212 -7.068C4.056 -7.068 3.96 -6.888 3.888 -6.816C3.708 -6.624 3.54 -6.432 3.348 -6.24V-6.672C3.348 -6.72 3.348 -6.756 3.348 -6.804C3.348 -7.236 3.72 -7.452 4.128 -7.452C4.188 -7.452 4.248 -7.452 4.296 -7.452V-7.692C4.224 -7.692 4.164 -7.692 4.104 -7.692C3.492 -7.692 3.204 -7.284 2.892 -6.972C2.856 -6.936 2.796 -6.84 2.736 -6.84C2.688 -6.84 2.652 -6.9 2.628 -6.936C2.544 -7.02 2.472 -7.14 2.376 -7.2ZM4.188 -5.148H3.348V-5.652C3.348 -5.676 3.348 -5.712 3.348 -5.736C3.348 -5.796 3.348 -5.844 3.384 -5.892C3.456 -6.012 3.576 -6.12 3.672 -6.216C3.732 -6.276 3.768 -6.36 3.876 -6.36C4.164 -6.36 4.356 -6.084 4.356 -5.856C4.356 -5.616 4.224 -5.388 4.188 -5.148ZM1.62 -5.172L1.932 -4.392L2.208 -4.524L2.532 -4.536V-1.428C2.532 -1.392 2.532 -1.356 2.532 -1.32C2.532 -1.128 2.424 -1.068 2.316 -0.96S2.112 -0.684 1.896 -0.684C1.728 -0.684 1.56 -0.804 1.452 -0.924C1.188 -1.224 1.128 -1.608 1.08 -1.992C1.056 -2.184 1.032 -2.364 1.02 -2.556C1.032 -2.952 0.984 -3.3 0.984 -3.696C0.984 -4.32 1.14 -4.872 1.62 -5.172Z"/>
+ <path id="g79" d="M2.4336 -8.4816L0.1584 -5.4288H1.08C1.0656 -4.1616 1.1088 -2.8512 1.0656 -1.6272C0.8784 -1.4688 0.6768 -1.3248 0.4752 -1.1808L2.088 -0.1584C2.2752 -0.0432 2.4336 0.0864 2.664 0.1584L2.8512 0.0576L4.6656 -1.2096L4.4928 -1.4832C4.2912 -1.368 4.1184 -1.224 3.9312 -1.0944C3.8592 -1.0512 3.744 -0.936 3.6576 -0.936C3.5568 -0.936 3.4416 -1.0368 3.3696 -1.08L2.7072 -1.4976C2.5632 -1.5696 2.4336 -1.6272 2.4336 -1.8432C2.4336 -1.9152 2.448 -1.9872 2.448 -2.0592V-5.4288H4.6656V-6.5664H2.448C2.4336 -7.2 2.4624 -7.8768 2.4336 -8.4816Z"/>
+ <path id="g80" d="M2.448 -4.9968H3.168C3.2112 -4.9968 3.2688 -5.0112 3.3264 -5.0112C3.4704 -5.0112 3.528 -4.9392 3.5856 -4.8384C3.6288 -4.752 3.6864 -4.68 3.744 -4.5936C4.7088 -3.2256 5.904 -2.0016 5.904 0.2592C5.904 0.6912 5.832 1.1376 5.5872 1.512C5.3712 1.8576 5.0256 2.1744 4.4928 2.1744C3.312 2.1744 2.7648 0.8784 2.52 0.0144C2.448 -0.2448 2.3616 -0.5184 2.3328 -0.792H0.1584V-0.5472C0.6336 -0.5184 0.7776 0.0864 0.9504 0.432C1.3824 1.4688 2.448 2.1888 3.5136 2.4192C3.816 2.4912 4.1328 2.5344 4.4352 2.5344S5.0256 2.4912 5.3136 2.4048C6.6672 1.9728 7.416 0.4464 7.416 -1.0512C7.416 -2.1024 7.0128 -3.096 6.5664 -3.8592C6.336 -4.2624 6.0624 -4.6224 5.7888 -4.9968C6.2928 -5.0256 6.8832 -4.9536 7.3296 -5.0256C7.5744 -5.3568 7.6896 -5.8176 7.8768 -6.2064H5.1984H5.0688C4.8672 -6.2064 4.8816 -6.2784 4.7808 -6.408C4.4784 -6.8832 4.1472 -7.6032 4.1472 -8.2944S4.5936 -9.6624 5.328 -9.6624C5.4864 -9.6624 5.6304 -9.6192 5.7744 -9.5328C6.192 -9.2448 6.3936 -8.6544 6.3936 -7.9776H8.0784V-9.6768C7.8336 -9.72 7.5744 -9.8208 7.3296 -9.864C6.8112 -9.9792 6.1632 -10.0512 5.616 -10.0512C4.9392 -10.0512 4.4208 -9.8064 4.0176 -9.432C3.3984 -8.856 2.9376 -7.9056 2.9376 -6.8112V-6.624C2.952 -6.48 3.0384 -5.9328 3.0384 -5.9328C3.0096 -5.7744 2.7072 -5.472 2.6496 -5.4144C2.5488 -5.3136 2.448 -5.2704 2.448 -5.0832V-4.9968Z"/>
+ <path id="g81" d="M2.448 -7.0416C2.1744 -6.264 1.512 -5.5872 0.72 -5.2704C0.5904 -5.2128 0.4464 -5.2272 0.4464 -5.0256C0.4464 -4.968 0.4608 -4.896 0.4608 -4.8528V-1.944V-1.8C0.4608 -1.7568 0.4608 -1.6992 0.4464 -1.656C0.432 -1.584 0.144 -1.1088 0.144 -1.0944L1.6416 -0.0864C1.8288 0.0432 2.0016 0.1872 2.232 0.2736L2.448 0.1872L4.5936 -1.0512L4.4496 -1.3536C4.4064 -2.7648 4.4352 -4.3056 4.4496 -5.7024L4.5936 -6.0048C3.888 -6.3504 3.1824 -6.7104 2.448 -7.0416ZM3.1104 -0.5616C2.6496 -0.8928 2.1312 -1.1808 1.6992 -1.5408L1.6704 -1.8288V-5.1264C1.8576 -5.3568 2.0736 -5.5728 2.3328 -5.7456C2.6496 -5.616 2.9376 -5.472 3.2112 -5.2992C3.2112 -5.2992 3.2256 -4.9968 3.2256 -4.9968C3.2256 -3.5424 3.24 -2.0736 3.2112 -0.6624L3.1104 -0.5616Z"/>
+ <path id="g82" d="M2.52 -7.0272C2.2032 -6.2928 1.5552 -5.616 0.792 -5.2848C0.6912 -5.2416 0.5328 -5.2128 0.5328 -5.0688V-4.9968V-1.9152V-1.7424V-1.6704C0.4896 -1.4544 0.288 -1.296 0.2304 -1.08L0.8352 -0.6768C1.3392 -0.3744 1.7712 0 2.3184 0.2736C2.664 0.1152 2.9808 -0.0864 3.312 -0.2736V1.008V1.1952C3.312 1.7568 3.1824 2.2464 2.7936 2.4768C2.736 2.52 2.664 2.5488 2.6064 2.5488C2.4624 2.5488 2.4336 2.4336 2.3904 2.304C2.3328 2.3472 2.232 2.4192 2.232 2.52C2.232 2.7072 2.4768 2.8368 2.6784 2.8368C3.0672 2.8368 3.3264 2.6352 3.5568 2.448S4.0176 2.0592 4.1904 1.8288H4.2048C4.3344 2.016 4.4928 2.1744 4.6512 2.3472C4.6944 2.4048 4.7664 2.52 4.8384 2.52C4.9248 2.52 5.0112 2.4048 5.0688 2.3472V2.3328C4.5648 1.9152 4.5216 1.2672 4.5216 0.648V0.1584V-5.184V-5.3136C4.5216 -5.3568 4.5216 -5.3856 4.536 -5.4288C4.5504 -5.5008 4.7808 -5.8752 4.8384 -6.0048C4.0608 -6.336 3.312 -6.696 2.52 -7.0272ZM1.7424 -1.6992V-1.8144V-4.8816V-5.0112C1.7424 -5.184 1.8 -5.2416 1.9152 -5.328C1.9872 -5.4 2.3184 -5.7456 2.4192 -5.7456C2.4768 -5.7456 3.0528 -5.472 3.168 -5.4288C3.2544 -5.3712 3.312 -5.3568 3.312 -5.2128V-5.0688V-0.9504V-0.792C3.312 -0.6912 3.2832 -0.6048 3.1968 -0.6048C3.096 -0.6048 2.9664 -0.72 2.8944 -0.7632L2.1024 -1.296C1.944 -1.3824 1.7424 -1.4544 1.7424 -1.6992Z"/>
+ <path id="g83" d="M2.6208 -7.128C1.9152 -6.48 1.0944 -5.9328 0.1008 -5.6016C0.144 -5.5152 0.2448 -5.3856 0.3456 -5.3856C0.4032 -5.3856 0.4608 -5.4144 0.5184 -5.4432C0.504 -4.1472 0.5472 -2.808 0.504 -1.5552C0.4176 -1.3968 0.3024 -1.2528 0.2016 -1.1088V-1.0944L1.656 -0.072C1.8288 0.0576 1.9872 0.1872 2.2032 0.2736C2.7792 0 3.2976 -0.3456 3.8304 -0.6624L3.8592 -0.9648C3.6288 -0.8496 3.3552 -0.648 3.0816 -0.648H3.024C2.8512 -0.6768 2.52 -0.9504 2.448 -0.9936L1.9872 -1.3248C1.872 -1.4256 1.728 -1.44 1.728 -1.656V-1.8144V-2.3616V-2.5056C1.728 -2.6928 1.7856 -2.7648 1.8864 -2.8656L2.16 -3.1968L3.2112 -4.4352L3.9168 -5.256C3.96 -5.3136 4.1472 -5.5008 4.1472 -5.5728C4.1472 -5.6304 4.0896 -5.6736 4.0464 -5.7168L3.0528 -6.7104C2.9088 -6.8544 2.7792 -6.9984 2.6208 -7.128ZM1.728 -3.1824V-5.8464V-5.904C1.728 -5.9904 1.7712 -6.1056 1.8864 -6.1056C1.9728 -6.1056 2.0592 -5.9904 2.1312 -5.9184L2.88 -5.1696C2.9376 -5.112 3.1248 -4.9536 3.1248 -4.8672C3.1248 -4.8096 3.0672 -4.7664 3.0384 -4.7232L1.728 -3.1824Z"/>
+ <path id="g84" d="M2.7216 -9.5616C2.6352 -9.4032 2.52 -9.2736 2.4048 -9.1296C1.9872 -8.6256 1.5552 -8.28 1.008 -7.9344C0.8784 -7.848 0.7488 -7.848 0.7488 -7.6176C0.7488 -7.5456 0.7632 -7.4592 0.7632 -7.4016V-6.5664C0.7632 -6.4512 0.7776 -6.336 0.7776 -6.2208C0.7776 -6.1344 0.7632 -6.048 0.7488 -5.9616C0.7344 -5.8464 0.5184 -5.1984 0.4464 -4.9968H0.7632V2.0304L0.9072 2.0016L1.0224 1.8432C1.3248 1.224 1.6704 0.6336 1.9584 -0.0144C2.0448 -2.6784 1.9152 -5.6016 1.9872 -8.2224L2.1888 -8.4528H2.2032C2.4624 -8.2224 2.736 -7.992 3.0096 -7.776L3.4416 -8.5104C3.4848 -8.5824 3.5856 -8.6976 3.5856 -8.7984S3.4416 -8.9712 3.384 -9.0288L2.9808 -9.36C2.8944 -9.432 2.8224 -9.504 2.7216 -9.5616ZM2.52 -5.7312H3.1248V-1.8576C3.1248 -1.7856 3.1392 -1.728 3.1392 -1.656S3.1248 -1.512 3.096 -1.4544C3.096 -1.4544 2.7648 -1.08 2.8368 -1.08C2.8368 -1.0368 3.024 -0.8352 3.0672 -0.7632L3.7008 -0.0144C3.7296 0.0288 3.9168 0.2736 3.9888 0.2736C4.0464 0.2736 4.1184 0.216 4.176 0.1872L4.5792 -0.0432C5.0976 -0.3456 5.6304 -0.6336 6.1488 -0.9504L6.0048 -1.224C5.6016 -1.0224 5.256 -0.7632 4.824 -0.5904C4.608 -0.72 4.5072 -0.9648 4.3488 -1.1376L4.3344 -1.368V-5.7312H5.544V-6.6528H4.3344C4.3488 -7.2864 4.3776 -7.9056 4.4784 -8.4528L4.1904 -8.4384L4.0464 -8.2512L2.9952 -6.5376L2.52 -5.7312Z"/>
+ <path id="g85" d="M2.724 -6.804C2.64 -6.948 2.508 -7.092 2.388 -7.2L2.34 -6.984C2.424 -6.84 2.484 -6.66 2.532 -6.48V-5.088H2.52L2.244 -5.808C2.112 -5.748 0.732 -4.944 0.732 -4.944C0.54 -4.824 0.528 -4.788 0.456 -4.524C0.3 -4.056 0.204 -3.408 0.204 -2.832C0.204 -2.736 0.204 -2.64 0.204 -2.556C0.204 -1.872 0.24 -1.116 0.756 -0.6C0.936 -0.42 1.272 -0.216 1.548 -0.168L1.38 0.048L1.584 0.132C1.908 -0.12 2.136 -0.468 2.46 -0.72C2.784 -0.576 3.048 -0.372 3.36 -0.228L3.156 0V0.012L3.36 0.156L4.476 -1.092V-1.104C4.428 -1.14 4.356 -1.212 4.296 -1.212C4.248 -1.212 4.212 -1.176 4.188 -1.14C4.152 -1.104 3.96 -0.876 3.912 -0.876S3.816 -0.912 3.768 -0.936L3.516 -1.08C3.432 -1.128 3.348 -1.176 3.348 -1.308C3.348 -1.332 3.348 -1.356 3.348 -1.38V-3.924C3.348 -3.96 3.348 -3.996 3.348 -4.032C3.348 -4.212 3.432 -4.248 3.54 -4.332C3.684 -4.452 3.852 -4.572 3.972 -4.716H3.984C4.08 -4.572 4.212 -4.44 4.32 -4.296C4.716 -3.708 5.04 -2.916 5.04 -2.004C5.016 -0.828 4.5 0.204 3.912 1.008C3.78 1.188 3.636 1.344 3.516 1.524L3.732 1.704H3.744C3.984 1.44 4.2 1.152 4.416 0.864C5.172 -0.144 5.856 -1.356 5.856 -2.652C5.856 -3.876 5.352 -4.74 4.74 -5.376L5.04 -5.616V-5.628L4.884 -5.808H4.872L3.348 -4.5V-6.648C3.348 -6.78 3.348 -6.9 3.384 -7.02C3.456 -7.224 3.624 -7.392 3.816 -7.464C3.888 -7.488 3.972 -7.5 4.056 -7.512V-7.752C3.696 -7.74 3.396 -7.524 3.156 -7.26C3.012 -7.104 2.892 -6.936 2.724 -6.804ZM1.632 -5.172C1.728 -4.908 1.836 -4.644 1.944 -4.392L2.532 -4.716V-1.428C2.532 -1.392 2.532 -1.344 2.532 -1.308C2.532 -1.116 2.436 -1.08 2.328 -0.972C2.208 -0.852 2.112 -0.684 1.896 -0.684C1.704 -0.684 1.512 -0.852 1.404 -0.996C1.056 -1.44 1.044 -2.208 1.02 -2.892C1.02 -3.024 1.008 -3.156 0.996 -3.288V-3.492C0.984 -3.576 0.984 -3.66 0.984 -3.744C0.984 -4.284 1.14 -4.908 1.632 -5.172Z"/>
+ <path id="g86" d="M2.76 -1.272C2.532 -1.128 2.448 -1.008 2.04 -1.008C1.704 -1.008 1.464 -1.164 1.296 -1.332C1.056 -1.596 1.008 -1.944 1.008 -2.292C1.008 -2.772 1.044 -3.24 1.044 -3.72C1.056 -4.008 0.984 -4.272 0.984 -4.548C0.984 -4.656 1.02 -4.824 1.128 -4.884C1.152 -4.884 1.272 -4.884 1.272 -4.86L1.548 -4.752C1.728 -4.668 2.52 -4.344 2.652 -4.308C2.82 -4.608 3 -4.92 3.156 -5.232C2.808 -5.364 2.46 -5.508 2.112 -5.652L1.848 -5.76C1.824 -5.772 1.776 -5.784 1.74 -5.784C1.68 -5.784 1.632 -5.736 1.596 -5.7C1.164 -5.34 0.924 -5.256 0.636 -4.644C0.348 -4.092 0.204 -3.456 0.204 -2.784C0.204 -1.86 0.288 -1.08 0.792 -0.504C0.984 -0.264 1.248 -0.072 1.536 0.048C1.608 0.084 1.716 0.144 1.8 0.144C1.812 0.144 1.824 0.144 1.836 0.144C1.896 0.132 2.1 -0.096 2.1 -0.096C2.172 -0.168 2.952 -0.948 2.964 -0.996C2.964 -1.08 2.772 -1.26 2.76 -1.272Z"/>
+ <path id="g87" d="M2.7792 -6.552C2.6208 -6.5808 2.4624 -6.6096 2.3184 -6.6096C2.0304 -6.6096 1.7424 -6.5376 1.4688 -6.4224C1.4112 -6.3936 1.0656 -6.2064 1.0656 -6.1488C1.1664 -6.1632 1.2672 -6.1632 1.3536 -6.1632C1.4544 -6.1632 1.5552 -6.1632 1.656 -6.1344C2.16 -6.0192 2.5776 -5.616 2.7216 -5.1264C2.6208 -5.1408 2.5344 -5.1408 2.4336 -5.1408C2.1024 -5.1408 1.7712 -5.0688 1.4688 -4.9248C1.4112 -4.896 1.0512 -4.68 1.0512 -4.6368C1.584 -4.6368 2.1024 -4.4064 2.4768 -4.0176C2.6352 -3.8592 2.7504 -3.672 2.88 -3.4848C2.7072 -3.4848 2.5344 -3.4848 2.3616 -3.456C1.8864 -3.3552 1.44 -3.0528 1.2096 -2.6208C1.4976 -2.7648 1.8432 -2.88 2.1888 -2.88C2.5056 -2.88 2.808 -2.7792 3.0528 -2.52C3.2112 -2.3328 3.2544 -2.16 3.2544 -1.8288C3.2112 -1.3536 2.8944 -0.9936 2.592 -0.7632C2.5056 -0.7056 2.4336 -0.6192 2.3328 -0.576S2.1168 -0.5184 2.016 -0.4896C1.0368 -0.2448 0.2016 0.576 0.2016 1.584H0.5184C0.5184 1.4976 0.5328 1.3968 0.5616 1.3104C0.72 0.9216 1.1808 0.864 1.5984 0.864C1.5984 0.864 2.6064 0.8928 2.6064 0.9072C2.6784 0.9072 3.3408 0.9504 3.3408 0.8928C4.4496 0.648 4.9248 -0.576 5.0112 -1.6848V-3.9312C5.0112 -3.9744 5.0112 -4.032 5.04 -4.0608C5.0688 -4.1472 5.4 -4.2336 5.4432 -4.248C5.7744 -4.3488 6.1344 -4.4064 6.48 -4.4064C7.0128 -4.4064 7.3872 -4.2624 7.8192 -4.1184C7.776 -3.9456 7.7616 -3.7584 7.7328 -3.5856C7.416 -2.1312 6.8976 -0.9504 6.1776 0.1584C6.048 0.3744 5.8752 0.576 5.76 0.792L6.0048 0.9648H6.0192C6.1632 0.792 6.3216 0.6192 6.4944 0.4752C6.8976 0.1728 7.4304 -0.0144 7.9488 -0.0144C8.28 -0.0144 8.6112 0.0576 8.856 0.1584C8.9136 0.1872 9.0864 0.2736 9.1584 0.2736C9.2016 0.2592 9.4896 -0.2448 9.4896 -0.2448C9.792 -0.7632 10.1232 -1.2672 10.4112 -1.7856L10.1376 -1.944L9.864 -1.4688C9.6336 -1.5408 9.4464 -1.5984 9.1584 -1.5984C8.6976 -1.5984 8.2512 -1.4544 7.848 -1.2384C7.6896 -1.152 7.5456 -1.0368 7.4016 -0.9504C7.6752 -1.2816 7.8912 -1.6704 8.1072 -2.0448C8.7696 -3.1392 9.3168 -4.4352 9.3168 -5.8752C9.3168 -6.2496 9.2736 -6.624 9.144 -6.984C8.8416 -7.8624 8.208 -8.5824 7.5024 -9.1584C7.2 -9.4176 6.8688 -9.6336 6.5376 -9.864C6.4656 -9.9072 6.1056 -10.1376 6.0336 -10.1376S5.904 -10.0944 5.8464 -10.0512L2.9952 -8.352C2.9376 -8.3088 2.8224 -8.28 2.7936 -8.208C2.7792 -8.208 2.7792 -8.1216 2.7792 -8.1216C2.7936 -7.8192 2.7792 -6.624 2.7792 -6.552ZM5.0112 -8.4816C6.1632 -8.3664 7.1424 -7.632 7.6176 -6.5664C7.1568 -6.3504 6.9264 -6.1488 6.2496 -6.1488C5.8608 -6.1488 5.4864 -6.2496 5.1984 -6.3792C5.0976 -6.4224 5.0112 -6.4656 5.0112 -6.6096V-6.6816V-8.4816ZM7.848 -4.4208C7.4304 -4.6224 6.9552 -4.7232 6.48 -4.7232C5.9184 -4.7232 5.4288 -4.5936 5.0112 -4.4064V-6.1632C5.3568 -5.9328 5.8032 -5.832 6.2352 -5.832C6.8832 -5.832 7.2864 -6.048 7.7184 -6.3216C7.8048 -6.0048 7.8768 -5.7024 7.8912 -5.3712C7.8912 -5.3712 7.8768 -4.4208 7.848 -4.4208ZM3.3696 -0.6624V-0.6768C3.7728 -0.864 4.104 -1.2528 4.1904 -1.6848C4.2192 -1.6848 4.2336 -2.1024 4.2336 -2.1024C4.2048 -3.4128 4.2192 -7.7472 4.2192 -8.2656V-8.3232C4.2192 -8.424 4.2768 -8.4672 4.3776 -8.4672C4.4784 -8.4816 4.5936 -8.4816 4.6944 -8.496V-2.4912V-2.088C4.6944 -1.9584 4.6944 -1.8144 4.6656 -1.6992C4.5072 -1.1088 3.9312 -0.7776 3.3696 -0.6624Z"/>
+ <path id="g88" d="M2.784 -7.44C2.568 -7.548 2.328 -7.692 2.052 -7.692C1.344 -7.692 1.128 -6.78 0.96 -6.204C0.9 -6.036 0.672 -5.448 0.624 -5.328C0.48 -5.004 0.204 -4.776 0.012 -4.488H0.432C0.432 -2.16 0.552 -0.24 0.828 1.98C0.828 2.064 0.852 2.136 0.972 2.136C1.008 2.136 1.056 2.124 1.092 2.124C1.092 1.752 1.152 1.368 1.176 0.996C1.248 -0.036 1.332 -1.056 1.416 -2.088C1.464 -2.664 1.536 -3.24 1.548 -3.816C1.548 -4.272 1.488 -4.728 1.32 -5.148L1.104 -5.676C1.08 -5.736 1.044 -5.808 1.044 -5.88C1.044 -6.024 1.2 -6.192 1.26 -6.252C1.464 -6.468 1.74 -6.6 2.04 -6.6C2.268 -6.6 2.472 -6.516 2.64 -6.444C2.772 -6.708 2.868 -6.996 2.976 -7.272C3.048 -7.428 3.096 -7.704 3.312 -7.704C3.42 -7.704 3.48 -7.584 3.48 -7.476C3.48 -7.152 3.288 -6.804 3.192 -6.636L2.436 -5.256C2.304 -5.016 2.16 -4.788 2.052 -4.536H2.412V-1.704C2.412 -1.596 2.424 -1.476 2.424 -1.356C2.424 -1.008 2.328 -0.732 2.052 -0.564C2.184 -0.42 2.34 -0.36 2.52 -0.288C2.664 -0.216 2.808 -0.144 2.94 -0.048C2.94 -0.048 3.24 0.204 3.24 0.12C3.276 0.108 3.312 0.072 3.336 0.036L3.516 -0.168C3.732 -0.408 4.152 -0.852 4.344 -1.092C4.38 -1.116 4.428 -1.164 4.428 -1.212S4.308 -1.368 4.26 -1.368C4.2 -1.296 3.864 -0.888 3.78 -0.876C3.744 -0.876 3.528 -0.996 3.456 -1.044C3.324 -1.116 3.204 -1.14 3.204 -1.344C3.204 -1.416 3.216 -1.476 3.216 -1.536V-4.536H4.044V-5.148H3.228C3.264 -5.316 3.264 -5.496 3.276 -5.676C3.312 -5.976 3.372 -6.276 3.432 -6.564C3.456 -6.672 3.516 -6.768 3.552 -6.876C3.612 -7.032 3.66 -7.212 3.66 -7.368C3.66 -7.68 3.528 -7.944 3.252 -7.944S2.856 -7.632 2.784 -7.44Z"/>
+ <path id="g89" d="M2.7936 -9.5616C2.7072 -9.4032 2.592 -9.2736 2.4768 -9.1296C2.0592 -8.6256 1.6272 -8.28 1.08 -7.9344C0.9504 -7.848 0.8208 -7.848 0.8208 -7.6176C0.8208 -7.5456 0.8352 -7.4592 0.8352 -7.4016V-6.5664C0.8352 -6.4512 0.8496 -6.336 0.8496 -6.2208C0.8496 -6.1344 0.8352 -6.048 0.8208 -5.9616C0.8064 -5.8464 0.5904 -5.1984 0.5184 -4.9968H0.8352V-1.6848C0.8352 -1.5408 0.8208 -1.4544 0.72 -1.3392C0.6624 -1.2816 0.5472 -1.1808 0.5472 -1.0944C0.5472 -0.9936 0.792 -0.7632 0.792 -0.7632L1.4256 -0.0144C1.4688 0.0288 1.6272 0.2736 1.6992 0.2736C1.7568 0.2736 1.8288 0.216 1.8864 0.1872L2.2896 -0.0432C2.4192 -0.1152 3.8016 -0.9216 3.8736 -0.9504C3.8448 -1.0224 3.7872 -1.1952 3.672 -1.1952C3.6432 -1.1952 3.6144 -1.1808 3.5856 -1.1664L2.52 -0.5472C2.3616 -0.7488 2.2032 -0.936 2.0592 -1.152C2.0592 -1.152 2.0448 -1.3392 2.0448 -1.3392C2.0448 -3.6432 2.016 -6.0048 2.0592 -8.2224L2.2608 -8.4528H2.2752L3.096 -7.7616L3.7008 -8.8272C3.3984 -9.072 3.1104 -9.3312 2.7936 -9.5616Z"/>
+ <path id="g90" d="M2.856 -0.648V-0.636C2.508 -0.372 2.22 -0.072 1.632 -0.072C1.332 -0.072 1.032 -0.168 0.792 -0.36C0.624 -0.492 0.468 -0.732 0.468 -0.96C0.468 -1.212 0.636 -1.356 0.864 -1.404C0.816 -1.32 0.792 -1.236 0.792 -1.152C0.792 -0.9 1.032 -0.672 1.296 -0.672C1.524 -0.672 1.68 -0.888 1.68 -1.116C1.68 -1.5 1.38 -1.74 1.008 -1.74C0.6 -1.74 0.204 -1.452 0.204 -0.972C0.204 -0.876 0.216 -0.78 0.24 -0.696C0.384 -0.204 0.9 0.156 1.512 0.156C2.052 0.156 2.508 -0.108 2.856 -0.384C2.904 -0.42 2.964 -0.492 3.036 -0.504C3.096 -0.504 3.18 -0.432 3.24 -0.396C3.732 -0.108 4.56 0.156 5.22 0.156C5.268 0.156 5.316 0.156 5.364 0.144C5.424 0.12 5.844 -0.336 5.844 -0.336L6.876 -1.404C6.936 -1.464 7.152 -1.644 7.152 -1.728C7.152 -1.8 7.068 -1.896 7.008 -1.896C6.924 -1.896 6.852 -1.776 6.816 -1.74C6.456 -1.38 5.976 -0.96 5.292 -0.96C4.944 -0.96 4.584 -1.044 4.284 -1.152L3.888 -1.332C3.96 -1.428 4.056 -1.512 4.14 -1.596C4.572 -2.028 5.028 -2.712 5.028 -3.396C5.028 -3.444 5.028 -3.48 5.028 -3.528C4.956 -4.296 4.44 -4.908 4.212 -5.628C4.152 -5.808 4.116 -6 4.116 -6.192C4.116 -6.696 4.44 -7.104 4.824 -7.272C4.872 -7.272 4.884 -6.84 4.884 -6.84S4.872 -6.444 4.836 -6.444C4.812 -6.348 4.776 -6.264 4.74 -6.18C4.728 -6.18 4.716 -6.036 4.728 -6.036C4.752 -6 4.848 -5.928 4.896 -5.928C4.932 -5.928 4.956 -5.976 4.98 -6.012C5.1 -6.228 5.196 -6.468 5.196 -6.792C5.196 -7.056 5.136 -7.152 5.088 -7.392L5.424 -7.464L5.82 -6.048L7.2 -6.444L7.128 -6.696L6.924 -6.648C6.804 -7.056 6.696 -7.452 6.588 -7.872L5.424 -7.728C5.328 -7.716 5.052 -7.656 5.016 -7.656C4.908 -7.656 4.86 -7.788 4.8 -7.848C4.512 -8.208 4.02 -8.46 3.444 -8.46C1.992 -8.46 1.308 -7.044 1.08 -5.976C0.984 -5.496 0.924 -4.992 0.924 -4.488C0.924 -4.32 0.936 -4.14 0.948 -3.96C1.044 -3.012 1.428 -2.1 2.052 -1.38C2.28 -1.104 2.556 -0.84 2.856 -0.648ZM3.612 -1.512C2.4 -2.34 1.86 -3.828 1.86 -5.244C1.86 -5.784 1.932 -6.288 2.076 -6.72C2.292 -7.392 2.748 -8.124 3.624 -8.124C4.104 -8.124 4.452 -7.86 4.692 -7.548C4.452 -7.5 4.2 -7.332 4.008 -7.176C3.624 -6.852 3.288 -6.42 3.288 -5.736C3.3 -4.608 4.092 -3.768 4.092 -2.736C4.092 -2.424 3.984 -2.124 3.84 -1.86C3.768 -1.74 3.684 -1.632 3.612 -1.512Z"/>
+ <path id="g91" d="M2.868 -4.668C1.992 -4.032 1.08 -3.444 0.216 -2.796C0.204 -2.676 0.204 -2.532 0.204 -2.4L0.492 -2.592C1.272 -3.156 2.1 -3.672 2.856 -4.272C2.892 -4.38 2.868 -4.536 2.868 -4.668ZM2.868 -3.456C1.992 -2.82 1.08 -2.22 0.216 -1.572C0.204 -1.452 0.204 -1.308 0.204 -1.176C1.092 -1.8 1.992 -2.4 2.856 -3.048C2.892 -3.168 2.88 -3.312 2.868 -3.456Z"/>
+ <path id="g92" d="M2.892 -5.808L1.476 -4.776C1.476 -5.052 1.392 -5.328 1.248 -5.568C1.224 -5.628 1.14 -5.772 1.056 -5.772C0.996 -5.748 0.828 -5.52 0.816 -5.508C0.612 -5.268 0.384 -5.028 0.204 -4.764C0.504 -4.62 0.66 -4.38 0.66 -3.984C0.66 -3.912 0.66 -3.84 0.66 -3.78V-2.004C0.66 -1.932 0.66 -1.092 0.66 -1.092C0.648 -0.996 0.612 -0.888 0.552 -0.816C0.492 -0.756 0.396 -0.732 0.396 -0.6C0.396 -0.564 0.408 -0.504 0.408 -0.468C0.576 -0.408 0.696 -0.288 0.792 -0.144L0.888 0.024C0.912 0.108 0.948 0.168 1.08 0.168C1.176 0.168 1.2 0.132 1.224 0.048C1.32 -0.192 1.512 -0.408 1.74 -0.468V-0.72C1.5 -0.804 1.464 -1.044 1.464 -1.284C1.464 -1.38 1.476 -1.488 1.476 -1.572V-4.152C1.476 -4.2 1.464 -4.26 1.464 -4.32C1.464 -4.488 1.56 -4.536 1.68 -4.608C1.836 -4.728 2.016 -4.824 2.148 -4.968H2.16C2.424 -4.656 2.688 -4.344 2.94 -4.008C2.988 -2.952 2.916 -1.812 2.964 -0.78L3.264 -0.144L3.144 0.096L3.324 0.228H3.336L4.176 -1.02V-1.032L3.996 -1.176H3.984L3.876 -1.008C3.804 -1.08 3.756 -1.14 3.756 -1.284C3.756 -1.32 3.756 -1.356 3.756 -1.392V-4.536C3.756 -4.56 3.756 -4.596 3.756 -4.632C3.756 -4.812 3.852 -4.86 4.02 -4.884V-5.052C3.696 -5.052 3.396 -5.22 3.18 -5.448C3.072 -5.556 3 -5.7 2.892 -5.808Z"/>
+ <path id="g93" d="M2.94 -0.912C2.976 -0.744 3.012 -0.576 3.06 -0.42C3.192 0.012 3.432 0.48 3.432 0.936C3.432 1.092 3.408 1.236 3.336 1.392C3.216 1.74 2.784 2.028 2.388 2.028C1.656 2.028 1.152 1.56 0.78 1.224C0.744 1.188 0.696 1.128 0.636 1.128C0.636 1.128 0.624 1.128 0.624 1.128C0.564 1.128 0.504 1.188 0.444 1.212C0.576 1.38 0.756 1.524 0.924 1.668C1.38 2.028 1.92 2.304 2.508 2.304C2.772 2.304 2.964 2.244 3.18 2.184C3.828 1.932 4.404 1.284 4.404 0.456C4.404 0.336 4.344 0.3 4.284 0.216C3.924 -0.288 3.768 -0.744 3.768 -1.644C3.768 -1.764 3.768 -1.884 3.768 -2.004C3.768 -2.964 3.9 -3.948 4.104 -4.764C3.828 -4.86 4.056 -4.8 3.684 -4.86C3.276 -4.92 2.892 -5.196 2.616 -5.352C2.52 -5.412 2.184 -5.616 2.076 -5.616S1.884 -5.448 1.848 -5.4L1.392 -4.86C0.816 -4.164 0.456 -3.264 0.456 -2.364C0.456 -1.524 0.792 -0.78 1.212 -0.3C1.26 -0.24 1.416 -0.036 1.512 -0.036C1.548 -0.036 1.884 -0.252 1.884 -0.252L2.94 -0.912ZM1.572 -4.716C1.884 -4.548 2.232 -4.428 2.556 -4.284L2.82 -4.176C2.892 -4.152 2.952 -4.104 2.952 -4.008C2.952 -3.96 2.94 -3.9 2.94 -3.852V-3.156C2.94 -2.712 2.928 -2.256 2.928 -1.812V-1.452C2.928 -1.416 2.94 -1.272 2.904 -1.272C2.88 -1.224 2.436 -0.96 2.436 -0.96C2.376 -0.924 2.136 -0.756 2.076 -0.744C1.992 -0.744 1.92 -0.864 1.872 -0.924C1.512 -1.368 1.26 -1.944 1.188 -2.628C1.176 -2.628 1.176 -3.276 1.188 -3.276C1.2 -3.588 1.2 -3.912 1.308 -4.212C1.416 -4.5 1.404 -4.428 1.572 -4.716Z"/>
+ <path id="g94" d="M2.964 -5.532C2.94 -5.58 2.892 -5.784 2.832 -5.784S2.7 -5.748 2.652 -5.724L2.268 -5.556C1.824 -5.364 1.368 -5.196 0.936 -4.956C0.816 -4.896 0.456 -4.74 0.42 -4.62C0.276 -4.248 0.204 -3.108 0.204 -2.82C0.204 -1.632 0.624 -0.792 1.188 -0.12C1.236 -0.06 1.356 0.132 1.464 0.132C1.5 0.132 1.776 -0.06 1.776 -0.06C1.884 -0.132 2.844 -0.756 2.88 -0.816C2.892 -0.828 2.88 -0.888 2.868 -0.888C2.832 -0.936 2.784 -1.032 2.724 -1.032C2.724 -1.032 2.712 -1.032 2.712 -1.032C2.496 -0.984 2.628 -0.936 2.328 -0.936C2.28 -0.936 2.244 -0.948 2.196 -0.948C1.452 -1.08 1.056 -1.884 1.02 -2.568C1.02 -2.604 1.008 -2.652 1.008 -2.7S1.02 -2.784 1.044 -2.82C1.08 -2.856 1.512 -3.036 1.512 -3.036L2.688 -3.528L3.06 -3.684C3.132 -3.72 3.192 -3.72 3.192 -3.804C3.192 -3.84 3.192 -3.876 3.18 -3.9C3.18 -3.9 2.928 -5.388 2.928 -5.448C2.928 -5.472 2.94 -5.508 2.964 -5.532ZM1.008 -3.144C1.008 -3.792 1.032 -4.452 1.416 -4.812C1.548 -4.932 1.704 -5.004 1.872 -5.064C1.968 -5.112 2.064 -5.16 2.16 -5.184L2.352 -3.696L1.008 -3.144Z"/>
+ <path id="g95" d="M27.6484 -48.1528C27.1845 -48.06 26.9062 -47.8281 26.767 -47.5034C26.6742 -47.2714 26.6742 -46.7147 26.767 -46.4364C26.8134 -46.2508 26.9062 -46.158 27.4165 -45.6478C28.0196 -45.0911 28.0196 -45.0447 28.0196 -44.9519C27.9732 -44.8591 27.9268 -44.7663 27.8804 -44.72C27.7876 -44.5808 27.6484 -44.6272 27.3237 -44.8591C27.1845 -44.9519 27.0454 -45.0447 26.9526 -45.0911C26.9062 -45.0911 26.8134 -45.2302 26.6742 -45.4622C26.3495 -45.9725 25.2825 -47.5961 25.1898 -47.7353C25.1434 -47.7353 25.0042 -47.6889 24.9578 -47.6889C24.9114 -47.6425 25.0042 -47.5034 25.2825 -47.0858L25.6537 -46.4828L25.4681 -46.6219C25.2362 -46.8539 25.0042 -46.9003 24.7723 -46.9003C24.3084 -46.8539 23.6589 -46.3436 23.4269 -45.9261C23.195 -45.4622 23.3342 -44.9055 23.6589 -44.8127C24.03 -44.7663 24.3084 -45.2302 24.03 -45.5086C23.9372 -45.6014 23.8908 -45.6014 23.7517 -45.6014H23.6125L23.6589 -45.7405C23.7981 -46.1117 24.4939 -46.6219 24.8186 -46.6219C25.1898 -46.6219 25.5609 -46.2508 25.7001 -45.7869C25.7464 -45.555 25.7464 -45.6014 25.6073 -44.6272C25.5609 -44.2097 25.6073 -44.0241 25.7464 -43.8385C25.7928 -43.7922 25.932 -43.6994 25.9784 -43.6994C26.1176 -43.653 26.3495 -43.7922 26.5815 -43.9777C26.8598 -44.2097 26.999 -44.3024 26.999 -44.3024C27.1845 -44.1633 28.901 -40.7768 28.901 -40.6376C28.901 -40.5912 28.7618 -40.4985 28.6226 -40.4057L28.3443 -40.2201L28.2515 -40.3593C26.999 -41.8902 25.7928 -43.0499 24.262 -43.9777C22.4991 -45.0447 20.5044 -45.7405 18.4632 -45.9261C17.5354 -46.0653 16.1437 -46.0189 15.1695 -45.8797C13.2675 -45.6478 11.2728 -44.8591 9.7419 -43.7458L9.41717 -43.5138V-43.8849C9.37078 -44.3024 9.278 -44.72 9.09244 -45.1375C8.95327 -45.4158 8.67493 -45.8797 8.62854 -45.8797S8.53576 -45.8797 8.48937 -45.8333L8.39659 -45.7405L8.48937 -45.6478C8.76771 -45.1839 8.90688 -44.72 8.90688 -44.3952C8.86049 -44.1169 8.8141 -43.9777 8.58215 -43.8849C8.30381 -43.7458 8.02547 -43.8849 7.4224 -44.4416C7.00489 -44.8591 6.68016 -45.0911 6.30904 -45.2302C5.01012 -45.7405 3.34008 -45.1375 2.3195 -43.7922C2.08755 -43.421 1.76282 -42.8644 1.62365 -42.4468C1.57726 -42.3077 1.53087 -42.1685 1.53087 -42.1685C1.48448 -42.1685 1.20614 -42.586 1.11336 -42.7716C0.78863 -43.5138 0.88141 -44.5808 1.43809 -45.323C1.57726 -45.555 1.99477 -45.9261 2.22672 -46.0189C2.55145 -46.2044 2.87618 -46.2508 3.15452 -46.2044C3.38647 -46.158 3.61842 -46.0189 3.75759 -45.9261C3.80398 -45.8797 3.80398 -45.9261 3.98954 -46.1117L4.12871 -46.2972L4.03593 -46.39C3.89676 -46.4828 3.61842 -46.6219 3.38647 -46.6683C2.36589 -46.8539 1.20614 -46.0189 0.78863 -44.8127C0.4639 -43.7458 0.64946 -42.7252 1.29892 -41.9829L1.48448 -41.7974L1.43809 -41.5654C1.29892 -40.6376 1.3917 -39.6171 1.71643 -38.5965C2.08755 -37.5295 2.73701 -36.5089 3.61842 -35.7203C3.94315 -35.442 4.54622 -35.0244 4.77817 -34.8853L4.87095 -34.8389L4.91734 -34.2358C4.91734 -33.54 4.96373 -33.1225 5.05651 -32.5194C5.38124 -30.6174 6.16987 -28.8082 7.23684 -27.3701C7.32962 -27.2309 7.4224 -27.1381 7.4224 -27.0918S6.44821 -26.5351 5.84514 -26.2103C4.22149 -25.3753 3.10813 -25.1898 2.59784 -25.6537C2.55145 -25.7464 2.41228 -25.8392 2.41228 -25.932C2.27311 -26.164 2.22672 -26.5815 2.27311 -26.999L2.3195 -27.1381L2.41228 -26.999C2.50506 -26.767 2.7834 -26.6279 3.06174 -26.6279C3.29369 -26.6279 3.57203 -26.8134 3.7112 -26.999C3.80398 -27.1381 3.80398 -27.1845 3.80398 -27.4165C3.80398 -27.6948 3.80398 -27.7412 3.7112 -27.8804C3.43286 -28.2979 2.82979 -28.3443 2.41228 -27.9732C2.04116 -27.5557 1.8556 -26.6742 2.04116 -26.0248C2.18033 -25.7001 2.45867 -25.4217 2.7834 -25.3289C3.52564 -25.097 4.82456 -25.4217 6.40182 -26.2103L6.77294 -26.3959L6.54099 -26.1176C6.30904 -25.7928 5.93792 -25.2825 5.75236 -24.9114C5.42763 -24.3547 4.639 -23.4269 4.08232 -23.0558C3.75759 -22.8239 3.38647 -22.6383 3.06174 -22.5919C2.82979 -22.4991 2.22672 -22.4991 2.18033 -22.5455C2.18033 -22.5455 2.22672 -22.5919 2.27311 -22.6847C2.50506 -22.963 2.22672 -23.4733 1.8556 -23.3342C1.48448 -23.2414 1.43809 -22.8239 1.71643 -22.4991C1.80921 -22.36 2.04116 -22.2672 2.22672 -22.2672C2.36589 -22.2208 2.36589 -22.2208 2.36589 -22.3136S2.36589 -22.4064 2.41228 -22.3136C2.50506 -22.2672 2.55145 -22.2672 2.7834 -22.2672C3.15452 -22.3136 3.43286 -22.4064 3.80398 -22.5919S4.54622 -23.0094 4.96373 -23.4733L5.28846 -23.7981L5.19568 -23.5197C4.91734 -22.1744 5.1029 -20.7827 5.79875 -19.6694C6.0307 -19.2982 6.58738 -18.7416 6.91211 -18.5096C7.05128 -18.4168 7.14406 -18.324 7.14406 -18.324S7.14406 -18.1849 7.09767 -17.9993C7.00489 -17.4426 7.00489 -16.7004 7.09767 -15.9118L7.14406 -15.7262L6.81933 -15.4943C6.63377 -15.3551 6.30904 -15.0767 6.07709 -14.8448C4.12871 -12.9428 3.06174 -10.4377 3.06174 -7.79352C3.06174 -6.58738 3.2473 -5.52041 3.66481 -4.49983C4.12871 -3.38647 5.01012 -2.27311 5.79875 -1.71643C5.93792 -1.57726 6.0307 -1.48448 6.0307 -1.48448C6.0307 -1.34531 5.47402 -0.74224 5.1029 -0.55668C4.59261 -0.23195 3.89676 -0.04639 3.38647 -0.13917L3.2473 -0.18556L3.38647 -0.27834C3.75759 -0.51029 3.80398 -1.06697 3.52564 -1.3917C3.29369 -1.57726 2.92257 -1.67004 2.64423 -1.53087C2.22672 -1.34531 2.08755 -0.78863 2.36589 -0.41751C2.50506 -0.23195 2.73701 -0.04639 3.06174 0C3.34008 0.13917 4.03593 0.13917 4.45344 0.04639C5.1029 -0.09278 5.70597 -0.4639 6.12348 -1.02058C6.26265 -1.15975 6.35543 -1.29892 6.35543 -1.29892C6.40182 -1.29892 6.4946 -1.25253 6.63377 -1.15975C8.02547 -0.4639 9.69551 -0.37112 10.9016 -0.97419C11.6903 -1.34531 12.247 -1.94838 12.4789 -2.69062C12.6181 -3.06174 12.6181 -3.61842 12.5253 -3.89676L12.4325 -4.12871L12.7109 -4.36066C12.85 -4.49983 13.2211 -4.96373 13.4995 -5.33485S14.1026 -6.07709 14.1953 -6.16987C14.752 -6.68016 15.6798 -6.68016 16.0973 -6.16987C16.2829 -5.98431 16.3293 -5.79875 16.3293 -5.47402S16.3293 -5.1029 16.1901 -5.28846C16.0973 -5.42763 15.819 -5.5668 15.587 -5.5668C15.4015 -5.5668 15.2159 -5.47402 15.0767 -5.33485C14.752 -4.96373 14.8448 -4.40705 15.2623 -4.1751C15.4015 -4.08232 15.4479 -4.08232 15.6798 -4.08232C15.9582 -4.12871 16.1437 -4.22149 16.3293 -4.49983C16.7004 -4.96373 16.7468 -5.89153 16.4221 -6.58738C16.1901 -7.23684 15.6334 -7.79352 14.984 -8.07186L14.7984 -8.11825L15.0304 -8.16464C15.4015 -8.21103 16.0973 -8.3502 16.6076 -8.53576L17.1179 -8.72132L17.3499 -8.30381C17.8601 -7.37601 18.0921 -6.54099 18.0921 -5.52041C18.0921 -3.43286 16.886 -1.76282 15.1695 -1.48448C14.8912 -1.43809 14.4737 -1.43809 14.3345 -1.48448C14.2417 -1.48448 14.2417 -1.48448 14.3345 -1.57726C14.5201 -1.67004 14.6128 -1.8556 14.6128 -2.08755C14.6128 -2.7834 13.6387 -2.96896 13.4067 -2.3195C13.2211 -1.90199 13.4995 -1.48448 14.0098 -1.25253C14.3345 -1.15975 15.0767 -1.15975 15.4943 -1.25253C16.9323 -1.67004 17.9993 -2.87618 18.324 -4.54622C18.4168 -4.96373 18.4168 -6.12348 18.324 -6.4946C18.2777 -6.68016 18.2777 -6.77294 18.2777 -6.77294C18.2777 -6.81933 18.3704 -6.68016 18.5096 -6.4946C19.1591 -5.5668 20.0405 -4.639 21.0147 -3.89676C23.0558 -2.22672 25.4217 -1.25253 28.0659 -0.9278C28.5762 -0.88141 30.1999 -0.88141 30.7102 -0.9278C32.1947 -1.11336 33.8183 -1.53087 35.1636 -2.04116C35.3956 -2.13394 35.5811 -2.22672 35.6275 -2.22672C35.6275 -2.22672 35.6739 -2.18033 35.7203 -2.18033C35.8131 -2.04116 36.045 -1.94838 36.2306 -1.94838C36.6017 -1.94838 36.8337 -2.22672 36.88 -2.59784L36.9264 -2.7834L37.3903 -3.01535C39.014 -3.7112 40.7304 -4.36066 41.8438 -4.639C42.818 -4.87095 43.3746 -4.91734 44.1633 -4.91734C44.5808 -4.91734 44.8591 -4.87095 44.9983 -4.82456C45.2302 -4.77817 45.6941 -4.54622 45.8333 -4.45344L45.9261 -4.40705L45.6941 -4.31427C45.1375 -4.03593 44.4416 -3.89676 43.5138 -3.85037C42.8644 -3.80398 42.6788 -3.75759 42.3541 -3.52564C41.9829 -3.2473 41.7046 -2.82979 41.6118 -2.41228C41.5654 -2.22672 41.6118 -1.71643 41.6582 -1.53087C41.6582 -1.43809 41.6582 -1.48448 41.3335 -1.62365C40.916 -1.8556 40.4985 -2.04116 40.081 -2.13394C39.8026 -2.22672 39.6634 -2.22672 39.2459 -2.22672C38.6893 -2.22672 38.4573 -2.18033 38.179 -1.99477S37.8078 -1.62365 37.7615 -1.34531C37.7615 -0.88141 38.0398 -0.60307 38.4573 -0.60307C39.1532 -0.60307 39.3851 -1.48448 38.782 -1.8556L38.6893 -1.90199L38.8748 -1.94838C39.2923 -1.99477 40.1273 -1.90199 40.6376 -1.67004C41.0088 -1.53087 41.4727 -1.25253 41.8438 -1.02058C43.4674 0 43.8385 0.13917 44.488 0.13917C45.2302 0.13917 45.7405 -0.04639 46.2972 -0.55668C46.5292 -0.83502 46.6219 -0.97419 46.7611 -1.20614C46.9931 -1.67004 47.0395 -1.94838 46.9931 -2.45867C46.9931 -3.15452 46.8075 -3.61842 46.4828 -4.08232C46.39 -4.22149 46.3436 -4.31427 46.3436 -4.31427C46.8075 -4.68539 47.1322 -4.96373 47.3178 -5.38124C47.8281 -6.40182 47.457 -7.65435 46.6219 -7.65435C46.3436 -7.65435 46.1117 -7.46879 46.0189 -7.19045C45.8797 -6.81933 46.2044 -6.35543 46.6219 -6.35543C46.8075 -6.35543 47.0395 -6.4946 47.1322 -6.63377L47.225 -6.77294V-6.54099C47.2714 -6.30904 47.225 -5.89153 47.1322 -5.65958C46.9931 -5.28846 46.7147 -4.91734 46.2972 -4.639L46.1117 -4.49983L45.8797 -4.639C44.9519 -5.24207 43.421 -5.24207 41.2871 -4.68539C40.8696 -4.59261 39.5707 -4.1751 39.1995 -4.03593C39.1532 -4.03593 39.3851 -4.1751 39.6634 -4.40705C40.9624 -5.24207 41.8902 -6.0307 42.9571 -7.09767C44.7663 -8.86049 45.8797 -10.4841 46.8075 -12.5717L46.9931 -13.0356H47.1786C47.4106 -13.082 47.5497 -13.1284 47.6889 -13.3139C47.8745 -13.4995 47.9209 -13.6387 47.9209 -13.8706C47.8745 -14.1489 47.7817 -14.3809 47.5961 -14.4737L47.5034 -14.5665L47.5497 -14.7984C48.06 -16.7004 48.1992 -19.3446 47.9673 -21.3394C47.8281 -22.6847 47.4106 -24.3084 46.9467 -25.4217L46.8539 -25.6073H46.9467C46.9931 -25.6073 47.1322 -25.6537 47.2714 -25.6537C47.6889 -25.7464 47.8745 -25.8856 47.9209 -26.164C47.9209 -26.3495 47.8281 -26.5815 47.6425 -26.7206C47.5497 -26.767 47.3178 -26.9062 47.0858 -26.9526C46.8075 -27.0918 46.6219 -27.1845 46.5292 -27.2773C46.3436 -27.4165 46.158 -27.834 46.1117 -28.0659C46.1117 -28.2979 46.158 -28.3443 46.4364 -28.4371C46.6683 -28.5298 47.1786 -28.5762 47.1786 -28.5298C47.1786 -28.5298 47.1322 -28.4835 47.0858 -28.3907C46.8075 -27.9732 47.1786 -27.4629 47.6425 -27.5557C48.06 -27.6948 48.1528 -28.1587 47.7817 -28.5298C47.5961 -28.7154 47.3178 -28.8082 46.9467 -28.8082C46.39 -28.8082 45.9261 -28.6226 45.8797 -28.2979C45.8333 -28.1123 45.8797 -27.7876 46.0189 -27.5093C46.2044 -27.1381 46.3436 -26.999 46.9003 -26.767C47.225 -26.6742 47.4106 -26.5351 47.5034 -26.4887C47.5961 -26.3495 47.6425 -26.3495 47.6425 -26.164C47.6425 -25.7928 47.457 -25.7001 46.9467 -25.9784L46.6683 -26.0712L46.4364 -26.5815C45.8333 -27.7412 45.1375 -28.7154 44.3024 -29.6432L43.9777 -29.9679H44.4416C44.9519 -29.9679 45.1839 -30.0607 45.6014 -30.2927C46.4828 -30.8957 46.7147 -32.1483 46.2044 -33.1688C46.0189 -33.54 45.5086 -34.0503 45.1375 -34.2358C44.1633 -34.7925 43.0499 -34.9317 41.8438 -34.6533C40.7768 -34.375 39.8026 -33.8183 39.014 -33.0297L38.782 -32.8441L38.4573 -32.8905C38.2254 -32.9369 37.8078 -32.9369 37.4367 -32.9369C36.7409 -32.9369 36.3234 -32.8905 35.7203 -32.7049C35.5347 -32.6586 35.3492 -32.6586 35.3492 -32.6586S35.3492 -32.7513 35.3956 -32.8441C35.3956 -32.9369 35.3956 -33.0297 35.3956 -33.0297C35.3492 -33.0297 35.1636 -33.0761 34.9781 -33.1225C34.6533 -33.1688 34.6069 -33.2152 34.6069 -33.2616C34.6069 -33.2616 34.6533 -33.4936 34.6997 -33.7255C34.6997 -33.9575 34.7461 -34.143 34.7925 -34.143C34.7925 -34.143 35.0708 -34.0503 35.3028 -33.9111C35.7203 -33.6791 35.8595 -33.6327 35.9986 -33.6327C36.3234 -33.6327 36.5089 -33.8647 36.5089 -34.2358C36.5089 -34.4214 36.4625 -34.5142 36.2306 -34.9781S35.9986 -35.5347 35.9986 -35.7203C35.9986 -36.1378 36.2306 -36.6017 36.5553 -36.6945C36.6481 -36.6945 36.7409 -36.6945 36.9264 -36.6481C37.2048 -36.6017 37.5295 -36.4161 37.7151 -36.277L37.8542 -36.1842L37.6687 -36.0914C37.4367 -36.045 37.3439 -35.9522 37.2976 -35.7203C37.2048 -35.3956 37.4367 -35.0708 37.8078 -35.0708C38.1326 -35.0708 38.3181 -35.3028 38.3181 -35.7203C38.2717 -35.8595 38.2717 -35.9986 38.2717 -35.9986S38.4109 -35.9059 38.5965 -35.8131C40.2665 -34.7925 42.7252 -34.9317 44.72 -36.1378C45.3694 -36.5553 46.158 -37.2976 46.5292 -37.8542C47.1322 -38.7356 47.3642 -39.6171 47.3178 -40.6376C47.3178 -41.3335 47.225 -41.751 46.9003 -42.3541C46.3436 -43.4674 45.4158 -44.1633 44.2561 -44.3488C42.818 -44.5344 41.519 -43.7458 41.1943 -42.4932C40.8696 -41.1943 41.7974 -39.9882 43.0963 -40.081C43.7922 -40.1737 44.2561 -40.3593 44.5344 -40.684C44.9519 -41.1015 44.9519 -41.6118 44.5808 -42.0293C44.2097 -42.4005 43.6066 -42.4468 43.2355 -42.1221C43.0499 -41.9829 42.9107 -41.7046 42.8644 -41.4727C42.818 -41.1479 43.0035 -40.7304 43.3283 -40.5449C43.5138 -40.4521 43.5138 -40.4057 43.0963 -40.4057C42.6324 -40.3593 42.2149 -40.4985 41.8902 -40.8232C41.2871 -41.4263 41.2407 -42.4005 41.7974 -43.1427C42.4468 -44.0241 43.653 -44.3024 44.8127 -43.8849C45.7405 -43.5602 46.4828 -42.6324 46.8075 -41.519C46.8539 -41.1943 46.9003 -41.1015 46.9003 -40.5449C46.9003 -39.9418 46.8539 -39.849 46.8075 -39.5243C46.6219 -38.8748 46.2972 -38.3181 45.8333 -37.8542C45.5086 -37.4831 45.0911 -37.2512 44.6736 -37.112C44.3952 -37.0192 44.3024 -36.9728 43.9313 -36.9728C43.3746 -36.9728 43.0963 -37.0192 42.6788 -37.2048C42.0757 -37.4831 41.9366 -37.6223 40.4985 -39.1532C39.1532 -40.5449 37.9934 -41.7974 37.6223 -42.1685L37.3903 -42.4005L37.6687 -42.818C38.3645 -43.8849 39.1995 -44.72 40.081 -45.2766C40.7304 -45.6478 41.4263 -45.9261 42.2149 -46.1117C42.6324 -46.2044 42.7252 -46.2044 43.5138 -46.2044S44.488 -46.2044 45.2302 -46.1117C45.8797 -46.0189 46.158 -45.9725 46.7147 -45.9725C47.457 -45.9725 47.6425 -46.0189 48.06 -46.2508C48.7095 -46.6219 48.7559 -47.457 48.1528 -47.8281C48.0136 -47.9209 47.9209 -47.9209 47.7353 -47.9209C47.5034 -47.9209 47.457 -47.9209 47.2714 -47.8281C46.9003 -47.5961 46.7611 -47.1322 46.9467 -46.7147C47.0395 -46.6219 47.1322 -46.4828 47.225 -46.39L47.3642 -46.2972L47.225 -46.2508C46.9931 -46.2044 45.9261 -46.2972 45.1839 -46.39C44.3024 -46.4828 43.2355 -46.5292 42.7252 -46.4828C41.1479 -46.2972 39.849 -45.6478 38.6893 -44.488C38.2254 -44.0241 37.9006 -43.653 37.4831 -43.0499L37.2048 -42.6324L37.0656 -42.6788C36.8337 -42.818 36.2306 -43.0035 35.8595 -43.0963C35.3956 -43.1891 34.5605 -43.1891 34.0966 -43.0963C32.7049 -42.8644 31.3132 -42.2613 29.6896 -41.1479L29.1793 -40.8232L29.1329 -41.1015C28.901 -42.4005 28.8082 -43.7458 28.9474 -44.6272C29.0865 -45.8797 29.6432 -46.9931 30.4318 -47.5034C30.7566 -47.7353 31.0349 -47.8281 31.4524 -47.8281C32.1019 -47.8745 32.473 -47.7353 32.9369 -47.2714C33.2616 -46.9467 33.4008 -46.7147 33.5864 -46.2508C33.7255 -46.0189 33.7255 -45.9261 33.7255 -45.6941C33.7255 -45.5086 33.7255 -45.4158 33.5864 -45.1839C33.3544 -44.6736 32.7977 -44.3024 32.2874 -44.2561C31.7308 -44.2561 31.4988 -44.488 31.5916 -44.9983V-45.2302L31.638 -45.0911C31.8235 -44.8127 32.241 -44.6736 32.5658 -44.8591C33.2152 -45.1839 32.9833 -46.158 32.241 -46.158C31.7771 -46.158 31.406 -45.6941 31.3132 -45.0447C31.2205 -44.6736 31.2669 -44.488 31.4988 -44.3024C31.9627 -43.8385 32.8905 -43.9777 33.54 -44.5808C33.7719 -44.8127 34.0039 -45.1839 34.0039 -45.3694C34.0039 -45.4622 34.0039 -45.4622 34.143 -45.323C34.9781 -44.5808 36.2306 -44.8127 36.3234 -45.7405C36.3698 -45.9725 36.3234 -46.39 36.1842 -46.6219C35.9059 -47.1786 35.3492 -47.4106 34.9317 -47.0395C34.7461 -46.9003 34.6997 -46.7611 34.6997 -46.5292S34.7461 -46.158 34.9317 -46.0189C35.2564 -45.7405 35.7203 -45.7869 35.9522 -46.158L36.045 -46.2508V-46.0653C36.045 -45.9261 36.045 -45.7869 36.045 -45.7405C35.9986 -45.2766 35.442 -44.9983 34.9317 -45.1375C34.5142 -45.2766 34.1894 -45.6014 33.9575 -46.1117C33.6327 -46.8075 33.4472 -47.1786 33.0297 -47.5497C32.7513 -47.8281 32.4266 -48.0136 32.0555 -48.06C31.7771 -48.1528 31.2669 -48.1528 30.9885 -48.06C29.8288 -47.7817 28.9474 -46.4828 28.669 -44.72C28.5762 -44.3024 28.5762 -42.7252 28.669 -42.1685C28.7154 -41.9366 28.7154 -41.7046 28.7154 -41.7046S28.5298 -42.1221 28.2515 -42.6324S27.6484 -43.7458 27.5557 -43.9777L27.2773 -44.3952L27.602 -44.4416C27.9732 -44.488 28.1123 -44.5344 28.2515 -44.72C28.3907 -44.9519 28.2515 -45.2302 27.8804 -45.6014C27.0918 -46.2972 26.999 -46.4364 26.9526 -46.9467C26.9526 -47.1786 26.9526 -47.225 27.0454 -47.4106C27.1381 -47.5497 27.2309 -47.6425 27.2773 -47.6889C27.602 -47.9209 28.2515 -48.0136 28.5762 -47.8745C28.7154 -47.8281 28.7154 -47.8281 28.6226 -47.7353C28.5298 -47.6889 28.4371 -47.5034 28.4371 -47.4106S28.5762 -47.1322 28.669 -47.0858C28.901 -46.9467 29.1793 -47.0858 29.2721 -47.3178C29.3185 -47.5961 28.9937 -48.06 28.6226 -48.1528C28.3907 -48.1992 27.9268 -48.1992 27.6484 -48.1528ZM26.2567 -45.555C26.4887 -45.2302 26.5815 -44.9983 26.5815 -44.9519S26.5351 -44.72 26.5351 -44.5344C26.4423 -44.1169 26.3959 -43.9777 26.2567 -43.9313C26.164 -43.8849 25.9784 -43.9777 25.8856 -44.0705C25.8392 -44.1633 25.8392 -44.3024 25.932 -44.9519C26.0248 -45.4622 26.0248 -45.8333 25.8856 -46.1117C25.8392 -46.2508 25.932 -46.1117 26.2567 -45.555ZM17.6746 -45.6941C19.623 -45.6014 21.2466 -45.1839 22.963 -44.3488C24.03 -43.8385 24.9114 -43.2819 25.7928 -42.4932C26.5351 -41.8902 27.3701 -41.0088 27.9268 -40.3129L28.1123 -40.0346L27.5557 -39.5707C27.2309 -39.3387 26.9062 -39.1068 26.8598 -39.0604L26.7206 -38.9212L26.6742 -39.014C26.4887 -39.3387 25.8392 -40.081 25.3753 -40.5449C24.4475 -41.519 23.4733 -42.1685 22.36 -42.7252C19.9013 -43.9313 17.3499 -44.0241 14.984 -43.0035C13.9634 -42.5396 13.082 -41.9366 11.0872 -40.4057C10.0202 -39.5707 9.55634 -39.1995 8.99966 -38.8284C7.79352 -38.0862 7.00489 -37.7151 6.0307 -37.5759C5.5668 -37.4831 5.5668 -37.4831 5.61319 -37.7151C6.0307 -39.014 6.77294 -40.4057 7.70074 -41.519C8.02547 -41.8438 8.02547 -41.8438 8.21103 -41.8902C8.62854 -41.9366 9.09244 -42.3541 9.278 -42.8644C9.37078 -43.0963 9.50995 -43.2355 10.1594 -43.653C12.015 -44.9055 14.1026 -45.6014 16.3757 -45.6941C16.654 -45.7405 16.9323 -45.7405 16.9787 -45.7405C16.9787 -45.7405 17.3035 -45.7405 17.6746 -45.6941ZM5.93792 -42.2149L6.77294 -41.9829L6.35543 -41.8438C5.84514 -41.5654 5.33485 -41.3799 4.87095 -41.2871C4.31427 -41.1479 3.57203 -41.1479 3.06174 -41.2871C2.87618 -41.3335 2.64423 -41.4263 2.50506 -41.4727C2.3195 -41.5654 2.3195 -41.5654 2.36589 -41.6582C2.59784 -41.8902 3.15452 -42.1685 3.57203 -42.3077C4.26788 -42.4932 4.77817 -42.4468 5.93792 -42.2149ZM7.51518 -41.8902L7.65435 -41.8438L7.32962 -41.519C6.4946 -40.4521 5.84514 -39.2459 5.42763 -37.9934C5.33485 -37.7151 5.24207 -37.5295 5.24207 -37.4831C5.19568 -37.4831 5.01012 -37.4831 4.77817 -37.5295C4.22149 -37.5759 3.75759 -37.6687 3.2473 -37.947C2.50506 -38.2717 2.04116 -38.782 1.8556 -39.4779C1.71643 -39.849 1.71643 -40.3593 1.8556 -40.7304C1.94838 -41.1015 2.08755 -41.3335 2.18033 -41.2871C2.22672 -41.2871 2.36589 -41.2407 2.55145 -41.1479C3.06174 -40.9624 3.38647 -40.916 3.94315 -40.916C4.77817 -40.916 5.5668 -41.1015 6.58738 -41.6118C7.14406 -41.8902 7.23684 -41.9366 7.51518 -41.8902ZM32.7513 -40.4521C33.6791 -40.3129 34.5142 -39.849 35.2564 -39.1532L35.5811 -38.8748L35.442 -38.4109C35.2564 -37.7615 34.9317 -36.3698 34.7461 -35.5811C34.6997 -35.2564 34.6069 -34.9781 34.6069 -34.9781S34.4678 -34.8389 34.3286 -34.6997C33.8183 -34.3286 33.6327 -34.2358 33.4936 -34.4214C33.2152 -34.6997 33.308 -34.9317 33.8647 -35.3956C34.0503 -35.5811 34.2358 -35.7667 34.2822 -35.8595C34.6069 -36.3234 34.4678 -37.2512 34.0503 -37.5295C33.8647 -37.6687 33.6327 -37.7151 33.2152 -37.7151C32.6122 -37.7151 32.1947 -37.5295 32.0091 -37.1584C31.7771 -36.7409 31.9163 -36.3234 32.3338 -36.277C32.8905 -36.1842 33.1688 -36.9728 32.7049 -37.2048C32.6122 -37.2512 32.5658 -37.2976 32.5658 -37.2976C32.5658 -37.3439 32.8905 -37.3903 33.1688 -37.3903C33.7255 -37.3903 33.9575 -37.2976 34.0966 -37.0192C34.143 -36.9264 34.1894 -36.8337 34.1894 -36.5553C34.1894 -36.0914 34.0966 -35.9986 33.6327 -35.5347C33.0761 -35.0708 32.9369 -34.7925 33.1225 -34.4678C33.2616 -34.1894 33.3544 -34.1894 33.9575 -34.1894H34.4678V-34.0966C34.4678 -34.0503 34.4214 -33.8647 34.375 -33.6327C34.3286 -33.4472 34.3286 -33.2616 34.3286 -33.2616S34.143 -33.2616 33.9575 -33.308C33.7255 -33.3544 33.54 -33.4008 33.54 -33.4008C33.54 -33.3544 33.308 -32.0091 33.308 -31.9627C33.308 -31.9627 33.3544 -31.9627 33.4472 -31.9163C33.7719 -31.8699 33.7719 -31.8699 33.4472 -31.638C33.0761 -31.3596 32.6586 -30.9885 32.3802 -30.7102L32.1947 -30.4782V-31.0813L32.1483 -31.6844H31.7771H31.3596V-32.1483C31.2205 -34.375 30.6638 -36.88 29.6896 -39.3851C29.5968 -39.6634 29.504 -39.9418 29.504 -39.9418C29.4576 -40.0346 30.2927 -40.3129 30.9421 -40.4521C31.406 -40.5449 32.2874 -40.5449 32.7513 -40.4521ZM29.2721 -39.1995C29.3649 -38.8284 29.4576 -38.5501 29.4576 -38.5037C29.504 -38.4573 29.4113 -38.6429 29.2721 -38.8284C29.1329 -39.0604 28.9474 -39.3387 28.901 -39.4315S28.7618 -39.6171 28.7618 -39.6171C28.7154 -39.6634 29.0401 -39.8954 29.0865 -39.849S29.1793 -39.5243 29.2721 -39.1995ZM28.669 -39.1995C29.4113 -38.0398 29.9679 -36.9264 30.2927 -35.8131C30.7102 -34.2822 30.9885 -33.0297 31.0813 -31.9627V-31.6844H30.7102H30.3391V-30.8957V-30.1071H30.7102H31.0813V-29.6432C31.0349 -29.0401 30.9421 -28.1123 30.8957 -27.7412C30.8493 -27.602 30.803 -27.2309 30.7566 -26.999C30.6638 -26.4423 30.5246 -25.7001 30.3391 -25.0042C29.504 -21.9889 28.0659 -19.0663 26.0248 -16.4221L25.7001 -15.9582L25.5609 -16.0973L25.3753 -16.2829L24.8186 -15.7262L24.2156 -15.1695L24.4011 -14.984L24.6331 -14.752L24.5403 -14.6592C24.4475 -14.4737 23.1486 -13.2211 22.6383 -12.7572L22.128 -12.2933L21.6641 -12.7572L21.2466 -13.1748L22.2208 -14.1953C23.195 -15.1231 23.6589 -15.6334 24.262 -16.3757C26.9526 -19.7157 28.6226 -23.4269 29.1793 -27.2773C29.3185 -28.3443 29.3649 -28.7618 29.3649 -30.0607C29.3649 -31.406 29.3185 -31.8699 29.1329 -32.9369C28.8082 -34.9317 28.0196 -37.0192 27.0454 -38.5501L26.9526 -38.6429L27.1845 -38.782C27.4629 -38.9676 28.4371 -39.5243 28.4371 -39.5243C28.4835 -39.5243 28.5762 -39.3851 28.669 -39.1995ZM36.3698 -37.947C36.6017 -37.6687 36.9264 -37.2976 37.0656 -37.112L37.3439 -36.8337L37.112 -36.9264C36.7873 -37.0192 36.5089 -37.0192 36.3234 -36.9264S35.9522 -36.6017 35.8131 -36.3234C35.7203 -36.1378 35.7203 -36.0914 35.7203 -35.8131V-35.4883L35.9986 -34.9317C36.1842 -34.5142 36.2306 -34.3286 36.2306 -34.2358C36.2306 -34.0503 36.1378 -33.9111 35.9986 -33.8647C35.7667 -33.7255 35.6275 -33.8647 35.3028 -34.5605C35.21 -34.7461 35.0708 -34.9317 35.0244 -34.9781L34.9317 -35.0244L35.0708 -35.7667C35.21 -36.4625 35.5811 -37.9006 35.7203 -38.3645C35.7667 -38.5501 35.8131 -38.5965 35.8595 -38.5501C35.8595 -38.5501 36.0914 -38.2717 36.3698 -37.947ZM18.556 -37.5759C19.4838 -37.3903 20.5044 -36.9728 21.3858 -36.3698C24.1228 -34.5142 25.7928 -31.2669 26.164 -27.3237C26.2567 -26.5351 26.2567 -25.0506 26.164 -24.262C25.8392 -20.7363 24.4011 -17.3499 22.0352 -14.5665C21.3394 -13.7778 21.3394 -13.7778 22.0816 -15.3087C23.195 -17.5354 23.8445 -19.1591 24.3084 -20.8755C25.3289 -24.6331 25.1434 -28.2051 23.7053 -30.8957C23.1486 -32.0091 22.5455 -32.7513 21.4786 -33.6791C21.2002 -33.9111 20.9683 -34.143 20.8755 -34.2358C20.7363 -34.4214 20.6435 -34.6533 20.6435 -34.7925C20.6435 -34.8389 20.5972 -34.8853 20.5508 -34.8853C20.3652 -34.9317 20.3188 -34.9317 20.226 -34.6997C20.0869 -34.5142 19.623 -33.9111 19.5302 -33.8647C19.4838 -33.8183 19.3446 -33.9575 19.2055 -34.0966C18.4632 -34.6997 17.6746 -35.1172 16.7932 -35.2564C13.917 -35.7203 11.3192 -33.4472 11.3192 -30.4782C11.3192 -29.8752 11.3192 -29.6896 11.5047 -29.2721C11.5975 -29.1329 11.6903 -28.9937 11.8294 -28.8546L12.015 -28.7154L11.7831 -28.669C11.6903 -28.669 11.4583 -28.669 11.3192 -28.6226C10.2522 -28.5762 9.13883 -28.1587 8.11825 -27.5557C7.93269 -27.4165 7.70074 -27.2773 7.70074 -27.2773C7.65435 -27.2773 7.09767 -28.0196 6.86572 -28.4371C6.58738 -28.9474 6.30904 -29.4576 6.07709 -30.0143C5.89153 -30.4782 5.70597 -30.9885 5.75236 -31.0349C5.75236 -31.0349 5.79875 -30.9421 5.89153 -30.8493C6.16987 -30.3854 6.72655 -29.9679 7.19045 -29.8288C7.51518 -29.6896 8.16464 -29.6896 8.44298 -29.7824C8.90688 -29.8752 9.23161 -30.1999 9.23161 -30.571C9.23161 -31.0813 8.8141 -31.3596 8.39659 -31.2205C7.93269 -31.0349 7.83991 -30.4782 8.21103 -30.1535C8.25742 -30.1071 8.30381 -30.0143 8.30381 -30.0143C8.30381 -29.9679 7.60796 -30.0143 7.4224 -30.0607C6.30904 -30.3391 5.52041 -31.5452 5.28846 -33.3544C5.19568 -33.7719 5.14929 -34.6533 5.19568 -34.6533C5.19568 -34.6533 5.33485 -34.6069 5.52041 -34.5142C7.09767 -33.8647 8.95327 -33.8183 10.5769 -34.4214C11.3192 -34.6997 11.7367 -34.9781 13.1748 -35.8595C13.685 -36.1842 14.2881 -36.5553 14.4737 -36.6945C15.4015 -37.2048 16.2365 -37.5295 17.0715 -37.6223C17.4426 -37.6687 18.1385 -37.6223 18.556 -37.5759ZM16.654 -34.9781C17.5354 -34.8389 18.5096 -34.375 19.0663 -33.7719C19.2518 -33.6327 19.2518 -33.6327 19.1591 -33.54C19.0199 -33.4008 18.2313 -32.7977 17.7674 -32.5194C17.2107 -32.1947 16.0973 -31.5916 15.3551 -31.2669C15.1231 -31.1741 14.8912 -31.0813 14.8912 -31.0349C14.8912 -31.0349 14.8912 -30.9885 14.8912 -30.8957L14.9376 -30.7566L15.2159 -30.803C15.587 -30.803 16.3293 -30.7566 16.7468 -30.6638C17.721 -30.4318 18.7416 -29.9215 19.5302 -29.3185C19.6694 -29.2257 19.9013 -28.9937 20.0869 -28.8082L20.3652 -28.5298L20.2724 -28.2515C20.0869 -27.602 19.5766 -26.767 19.0199 -26.2103L18.7416 -25.8856L18.4632 -26.164C17.1179 -27.4629 15.2159 -28.3443 13.2211 -28.6226C12.9892 -28.6226 12.8036 -28.669 12.8036 -28.669S12.8036 -28.7154 12.85 -28.7154S13.1748 -28.9474 13.2675 -29.1329S13.3603 -29.6896 13.2675 -29.8752S12.9428 -30.2463 12.7572 -30.2927C12.6181 -30.3854 12.2933 -30.3854 12.1078 -30.2927C11.9686 -30.2463 11.7367 -30.0143 11.6439 -29.8752C11.5975 -29.7824 11.5511 -30.2927 11.5975 -30.7102C11.7367 -32.4266 12.7572 -33.9575 14.2417 -34.6533L14.5201 -34.7461L14.4737 -34.6069C14.1953 -34.0503 14.5665 -33.4472 15.1695 -33.4472C15.6334 -33.4472 15.9582 -33.7719 15.9582 -34.2358C15.9582 -34.5142 15.8654 -34.6997 15.6334 -34.8853C15.4943 -34.9781 15.4943 -34.9781 15.5406 -34.9781C15.7262 -35.0244 16.3757 -35.0244 16.654 -34.9781ZM44.1169 -34.5142C45.0447 -34.3286 45.8333 -33.6791 46.0653 -32.8441C46.158 -32.5658 46.2044 -31.9627 46.158 -31.6844C45.9725 -30.8493 45.2766 -30.2463 44.4416 -30.2463C44.2097 -30.2463 43.7922 -30.2927 43.9313 -30.3391C44.0705 -30.3391 44.3488 -30.6174 44.3952 -30.7566C44.6272 -31.3596 44.2097 -31.9627 43.6066 -31.9627C43.1891 -31.9627 42.8644 -31.638 42.7716 -31.2205L42.7252 -31.0349L42.4468 -31.2669C41.9829 -31.5916 41.1015 -32.1019 40.6376 -32.2874C40.5449 -32.3338 40.4985 -32.3802 40.4985 -32.3802C40.4985 -32.4266 40.5449 -32.5194 40.5912 -32.6586C41.1943 -34.0039 42.7252 -34.8389 44.1169 -34.5142ZM38.1326 -32.7049C38.3645 -32.7049 38.5501 -32.6586 38.5501 -32.6586C38.5965 -32.6122 38.5037 -32.473 38.3645 -32.2874C37.5759 -31.2669 37.112 -30.0607 36.9264 -28.669C36.88 -28.4371 36.88 -28.1587 36.88 -28.0659V-27.834H36.3234C35.9059 -27.834 35.6739 -27.834 35.4883 -27.7876C34.4678 -27.5557 33.7255 -26.9062 33.4936 -25.932C33.4008 -25.6537 33.4008 -25.0506 33.4472 -24.7723C33.6791 -23.9836 34.2358 -23.4269 34.8853 -23.3342C35.6739 -23.195 36.3234 -23.6125 36.3234 -24.1692C36.3234 -24.3547 36.1842 -24.5867 36.045 -24.6331C35.8131 -24.8186 35.5347 -24.7723 35.3028 -24.5867C35.0708 -24.3084 35.1172 -23.9836 35.3492 -23.7517L35.4883 -23.6125H35.3028C35.21 -23.5661 35.0244 -23.5661 34.9317 -23.6125C33.6791 -23.7981 33.2152 -25.6073 34.143 -26.767C34.6533 -27.3237 35.5347 -27.6484 36.5089 -27.5557L36.8337 -27.5093V-27.3701C36.9264 -26.2103 37.1584 -25.2362 37.6223 -24.1228C37.9006 -23.5197 38.2717 -22.8239 38.9676 -21.525C39.2923 -21.0147 39.5243 -20.5044 39.5243 -20.5044C39.5243 -20.4116 38.8748 -19.7621 38.5501 -19.5302C38.0862 -19.2518 37.4367 -18.9735 37.0192 -18.8807H36.9264L36.88 -19.391C36.88 -20.0405 36.7873 -20.3652 36.5553 -20.8291C36.1842 -21.6177 35.5347 -22.1744 34.7925 -22.4528C34.375 -22.5919 33.9111 -22.6383 33.6327 -22.4991C33.4008 -22.4064 33.1688 -22.1744 33.1688 -21.9889C33.0761 -21.6641 33.2152 -21.1074 33.4472 -20.8291C33.6791 -20.5044 34.0966 -20.3652 34.4214 -20.5508C34.8853 -20.7363 34.9317 -21.4322 34.5142 -21.7105C34.1894 -21.8961 33.7719 -21.8497 33.54 -21.5713C33.4472 -21.3858 33.4472 -21.4322 33.4472 -21.7569C33.4472 -22.128 33.5864 -22.3136 34.0039 -22.3136C34.4678 -22.36 35.1636 -22.0352 35.6739 -21.4786C36.1378 -21.0147 36.4161 -20.5044 36.5553 -19.9013C36.6017 -19.623 36.6481 -18.8807 36.6017 -18.7879C36.6017 -18.7879 36.277 -18.7879 35.9522 -18.7879C35.2564 -18.7879 34.9781 -18.8343 34.4678 -19.0663C33.4936 -19.4838 32.5658 -20.4116 31.9627 -21.5713L31.7308 -21.9889L31.9163 -22.4991C32.9369 -25.0506 33.7255 -27.9268 34.2822 -31.1741C34.3286 -31.4524 34.375 -31.7308 34.375 -31.7308S34.5142 -31.7308 34.6997 -31.6844S35.0708 -31.638 35.1172 -31.638C35.1172 -31.638 35.1636 -31.8235 35.21 -32.0091L35.2564 -32.3802L35.5811 -32.473C36.4161 -32.7049 37.2512 -32.7977 38.1326 -32.7049ZM40.8232 -31.9163C41.6582 -31.5452 42.5396 -30.9421 42.9571 -30.571C43.0499 -30.4318 43.2355 -30.2927 43.3283 -30.2463C43.5602 -30.0607 44.3024 -29.3185 44.6736 -28.8546C45.2302 -28.1587 45.6478 -27.5093 46.0189 -26.7206L46.2972 -26.2567H46.158C45.9261 -26.3031 45.8333 -26.2103 45.6941 -25.7001S45.4622 -25.0506 45.323 -25.0042C45.2302 -24.9114 45.0447 -24.9578 44.9055 -25.1434C44.7663 -25.2825 44.7663 -25.5145 44.9055 -25.932C45.0447 -26.4423 44.9983 -26.5815 44.8591 -26.8598C44.6272 -27.3237 44.2561 -27.602 43.9777 -27.602C43.7922 -27.602 43.421 -27.4165 43.1891 -27.1845C42.818 -26.8598 42.7252 -26.4423 42.9107 -26.0712C43.0499 -25.7464 43.3746 -25.6537 43.653 -25.7928C44.1169 -26.0712 43.9313 -26.8134 43.3746 -26.767C43.2819 -26.767 43.2355 -26.767 43.2355 -26.767C43.2355 -26.8598 43.5138 -27.0918 43.6994 -27.2309C44.0705 -27.4165 44.2561 -27.3237 44.5344 -26.8598C44.7663 -26.5351 44.7663 -26.3959 44.6272 -25.932C44.5344 -25.4681 44.5344 -25.2362 44.6272 -25.0042C44.72 -24.865 44.9519 -24.7259 45.0911 -24.7259S45.555 -24.865 45.8797 -25.1434C46.158 -25.3753 46.4828 -25.5609 46.5756 -25.5609C46.5756 -25.5609 46.6219 -25.5145 46.6219 -25.5145C47.3642 -23.6589 47.6425 -22.2208 47.7817 -20.2724C47.8745 -18.6488 47.6889 -16.654 47.3178 -15.0304C47.225 -14.6592 47.225 -14.6592 47.1322 -14.6592C46.6683 -14.6592 46.2508 -14.1953 46.3436 -13.7314C46.39 -13.5459 46.5292 -13.3139 46.6219 -13.2211L46.7147 -13.1284L46.6219 -12.8036C46.2508 -12.015 45.7405 -11.0408 45.1839 -10.2058C43.3283 -7.4224 40.6376 -5.1029 37.3439 -3.34008L36.7873 -3.06174L36.6945 -3.10813C36.6017 -3.2473 36.3698 -3.34008 36.2306 -3.34008C36.045 -3.34008 35.8595 -3.2473 35.7667 -3.15452C35.5811 -3.01535 35.5347 -2.92257 35.5347 -2.69062L35.4883 -2.50506L35.21 -2.36589C34.2822 -1.99477 32.8441 -1.57726 31.8699 -1.3917C28.9937 -0.88141 26.2103 -1.25253 23.6589 -2.50506C21.2466 -3.7112 19.2055 -5.65958 17.8138 -8.11825C17.6746 -8.39659 17.489 -8.62854 17.4426 -8.72132L17.3962 -8.8141L17.721 -8.99966L18.0921 -9.13883L18.1849 -9.04605C18.2313 -8.95327 18.556 -8.58215 18.8807 -8.21103C20.1796 -6.68016 20.7827 -6.07709 21.4786 -5.5668C24.4475 -3.34008 28.3443 -2.69062 32.5658 -3.7112C35.3492 -4.40705 37.947 -5.75236 40.1737 -7.60796C40.7304 -8.02547 41.9366 -9.278 42.3541 -9.78829C43.5138 -11.1336 44.3488 -12.6181 44.8127 -14.1026C45.6941 -16.7932 45.5086 -19.4374 44.2561 -21.8961C43.9313 -22.5919 43.6066 -23.0558 42.7716 -24.4011C41.8902 -25.7464 41.7046 -25.9784 41.3799 -26.6279C40.4521 -28.2515 40.081 -29.6896 40.1737 -31.0813C40.2201 -31.5452 40.3593 -32.1483 40.4057 -32.1483C40.4057 -32.1483 40.6376 -32.0555 40.8232 -31.9163ZM33.9575 -31.1277C33.4472 -28.0659 32.6586 -25.1434 31.7308 -22.7775L31.5452 -22.36L31.4524 -22.6383C31.1277 -23.6589 30.9885 -24.5403 30.9421 -25.7001C30.9421 -26.3959 30.9885 -26.4887 31.0813 -27.1381C31.2205 -28.0659 31.2669 -28.2979 31.4524 -28.7618C31.8235 -29.6896 32.3802 -30.4782 33.1225 -31.1277C33.4008 -31.3596 34.0503 -31.8235 34.0503 -31.7771C34.0966 -31.7771 34.0503 -31.4988 33.9575 -31.1277ZM31.8235 -29.9215C31.7308 -29.8288 31.5916 -29.6432 31.4988 -29.4576L31.3132 -29.1329L31.3596 -29.3649C31.3596 -29.504 31.3596 -29.736 31.3596 -29.8752V-30.1071H31.638H31.9163ZM12.6645 -28.3907C13.8242 -28.2979 14.8912 -28.0196 16.0045 -27.4629C16.8396 -27.0454 17.6282 -26.5351 18.2313 -25.9784L18.5096 -25.7001L18.4168 -25.6073C18.1385 -25.4217 17.489 -25.0042 17.1179 -24.8186C16.5148 -24.4939 15.8654 -24.3084 15.1695 -24.2156L14.8912 -24.1692L15.0304 -24.3084C15.3087 -24.6331 15.2623 -25.1434 14.8912 -25.3753S14.1026 -25.4681 13.917 -25.097C13.7778 -24.865 13.8706 -24.4475 14.1489 -24.262L14.2417 -24.1692L14.0562 -24.1228C13.7314 -24.0764 12.85 -24.1692 12.1542 -24.3547C11.0408 -24.6331 9.97385 -25.1898 8.99966 -25.932C8.67493 -26.2103 7.93269 -26.9526 7.93269 -26.999C7.93269 -27.0918 8.39659 -27.4165 8.86049 -27.6484C9.83468 -28.1123 10.7161 -28.3443 12.015 -28.3907C12.0614 -28.3907 12.3861 -28.3907 12.6645 -28.3907ZM20.8291 -27.9268C21.8497 -26.5815 22.4528 -24.9114 22.7311 -22.9167C22.8239 -22.2208 22.8239 -20.7363 22.7311 -19.9941C22.4991 -18.1849 22.0352 -16.4684 21.2466 -14.6128C20.8291 -13.685 20.7827 -13.5459 20.7363 -13.5923C20.7363 -13.5923 20.5508 -13.7314 20.4116 -13.8242C20.226 -13.9634 19.9013 -14.1489 19.6694 -14.2881S19.2518 -14.5665 19.2518 -14.5665S19.391 -14.752 19.5302 -14.984C19.8549 -15.5406 20.4116 -16.7004 20.5972 -17.1643C21.4322 -19.4374 21.3394 -21.5713 20.3188 -23.6589C20.0405 -24.262 19.6694 -24.8186 19.2518 -25.3289L18.9271 -25.7001L19.2055 -25.9784C19.5302 -26.3495 19.8549 -26.7206 20.0869 -27.1381C20.2724 -27.4629 20.5044 -27.9268 20.5508 -28.1123C20.5508 -28.2051 20.5972 -28.2051 20.5972 -28.2051S20.7363 -28.1123 20.8291 -27.9268ZM8.86049 -25.7001C10.5769 -24.3084 12.7109 -23.6589 14.752 -23.8445C16.1437 -23.9836 17.5818 -24.5867 18.5096 -25.3289C18.6024 -25.4217 18.6952 -25.4681 18.6952 -25.4681C18.7879 -25.4681 19.391 -24.6795 19.7157 -24.2156C20.8291 -22.4064 21.1538 -20.3652 20.6435 -18.324C20.458 -17.6282 20.2724 -17.0251 19.9013 -16.2829L19.7157 -15.8654L19.0663 -16.1901C17.8138 -16.7932 16.886 -17.1179 15.819 -17.3962C13.4531 -17.9529 11.1336 -17.7674 8.95327 -16.7932C8.58215 -16.6076 7.83991 -16.2365 7.51518 -16.0045C7.46879 -15.9582 7.4224 -15.9582 7.4224 -15.9582C7.37601 -16.0509 7.28323 -16.886 7.32962 -17.2107C7.32962 -17.5354 7.46879 -18.0921 7.51518 -18.1385C7.51518 -18.1849 7.60796 -18.1385 7.70074 -18.1385C8.76771 -17.7674 9.97385 -18.0457 10.8089 -18.7879C11.4119 -19.2982 11.7367 -19.9941 11.8294 -20.8291C11.8294 -21.0147 11.8758 -21.1538 11.8758 -21.2002C11.9222 -21.2002 12.6181 -21.3394 13.0356 -21.3858C14.1953 -21.4786 15.4015 -21.293 16.2365 -20.8291C16.9787 -20.458 17.4426 -19.9013 17.6282 -19.2055C17.6746 -18.9271 17.721 -18.4168 17.6282 -18.2777C17.6282 -18.2313 17.6282 -18.2313 17.5818 -18.324S17.3499 -18.556 17.1643 -18.6024C16.6076 -18.7416 16.1437 -18.1849 16.3757 -17.6746C16.4684 -17.4426 16.7468 -17.2571 17.0251 -17.2571C17.1643 -17.2571 17.3962 -17.3499 17.5354 -17.489C17.9529 -17.9065 18.0921 -18.6952 17.8601 -19.623C17.721 -20.0405 17.4426 -20.6435 17.1643 -21.0147C16.4684 -21.9425 15.3087 -22.6383 14.0098 -22.8239C13.3139 -22.963 12.2933 -22.9167 11.6439 -22.7775L11.4583 -22.7311L11.3192 -22.9167C11.1336 -23.195 10.6697 -23.5661 10.3914 -23.7517C10.0202 -23.9836 9.64912 -24.0764 9.18522 -24.1228C8.76771 -24.1228 8.58215 -24.0764 8.25742 -23.9836C8.02547 -23.8908 7.74713 -23.6589 7.65435 -23.4733C7.37601 -22.963 7.70074 -22.36 8.30381 -22.36C8.67493 -22.36 9.04605 -22.6847 9.04605 -23.1022C9.04605 -23.3342 8.90688 -23.5661 8.67493 -23.7053L8.58215 -23.7981H8.72132C9.18522 -23.8908 9.83468 -23.7517 10.2522 -23.4733C10.5305 -23.3342 10.8553 -23.0094 11.0408 -22.7775L11.1336 -22.6383L11.0408 -22.5919C10.948 -22.5455 10.8553 -22.4991 10.8089 -22.4991S10.5305 -22.4064 10.345 -22.2672C8.95327 -21.5713 7.83991 -20.3652 7.37601 -18.9735C7.32962 -18.7879 7.23684 -18.6488 7.23684 -18.6488S6.86572 -18.8807 6.63377 -19.0663C6.21626 -19.4838 5.70597 -20.3188 5.52041 -20.9219C5.24207 -21.9889 5.28846 -23.1486 5.70597 -24.2156C5.84514 -24.4939 5.93792 -24.6795 6.21626 -25.0506C6.77294 -25.8392 7.05128 -26.164 7.37601 -26.4887L7.65435 -26.8134L8.11825 -26.3495C8.3502 -26.1176 8.67493 -25.8392 8.86049 -25.7001ZM30.7566 -24.5867C30.8493 -23.7517 30.9885 -23.1022 31.2669 -22.36L31.406 -21.9889L31.2669 -21.6641C30.3391 -19.4838 29.1329 -17.489 27.834 -15.819C27.3701 -15.2623 26.8598 -14.7056 26.8598 -14.7056C26.8598 -14.752 26.6279 -14.984 26.3495 -15.2623C25.9784 -15.6798 25.8856 -15.7726 25.932 -15.819C25.932 -15.819 26.164 -16.1437 26.3959 -16.4684C28.2979 -18.9271 29.7824 -21.8961 30.5246 -24.7259C30.6174 -24.9578 30.6638 -25.1434 30.6638 -25.097C30.6638 -25.097 30.7102 -24.865 30.7566 -24.5867ZM32.1483 -20.6435C32.4266 -20.226 33.0297 -19.623 33.4472 -19.2982C33.5864 -19.2055 33.9111 -19.0199 34.0966 -18.9271C34.7925 -18.556 35.3028 -18.4632 36.0914 -18.4632C36.4161 -18.5096 36.5553 -18.4632 36.5553 -18.4632C36.4625 -18.1385 36.3698 -17.8601 36.2306 -17.6282C36.0914 -17.3499 35.7667 -16.886 35.5811 -16.7004L35.442 -16.6076L35.1636 -16.7932C33.9111 -17.6282 32.2874 -17.9065 30.8493 -17.6282C30.2463 -17.489 29.5504 -17.2107 29.0865 -16.9323L28.901 -16.7932L29.1329 -17.1179C29.7824 -18.0921 30.3854 -19.1591 30.9421 -20.3188C31.1741 -20.7363 31.406 -21.2466 31.4524 -21.3858L31.5452 -21.6177L31.7771 -21.2466C31.8699 -21.0611 32.0555 -20.7827 32.1483 -20.6435ZM11.5511 -20.9219C11.4583 -19.7157 10.7161 -18.7879 9.60273 -18.4168C9.278 -18.2777 9.23161 -18.2777 8.72132 -18.2777C8.25742 -18.2777 8.16464 -18.2777 7.93269 -18.3704C7.74713 -18.4168 7.65435 -18.4632 7.65435 -18.4632S7.74713 -18.6488 7.83991 -18.8343C8.44298 -19.7621 9.60273 -20.5044 11.0872 -20.9683C11.3192 -21.0611 11.5047 -21.1074 11.5047 -21.1074C11.5511 -21.1074 11.5511 -21.0611 11.5511 -20.9219ZM40.0346 -19.623C40.7304 -18.1849 41.1015 -16.9787 41.2871 -15.4479C41.3799 -14.8912 41.3799 -13.3139 41.3335 -12.7109C40.9624 -9.78829 39.5243 -7.4224 37.2048 -6.07709C34.7461 -4.54622 31.5916 -4.49983 28.669 -5.93792C27.4165 -6.54099 26.4887 -7.23684 25.4681 -8.21103C24.865 -8.76771 24.4475 -9.278 23.7981 -10.1594L23.2414 -10.8553L23.6125 -11.1336C24.9114 -12.015 25.7928 -12.5253 26.4423 -12.6181C26.9526 -12.7109 27.2773 -12.5253 27.4165 -12.1078C27.5093 -11.9222 27.5557 -11.4583 27.5093 -11.2728V-11.1336L27.4165 -11.2264C27.1845 -11.5047 26.7206 -11.5047 26.5351 -11.18C26.3495 -10.8089 26.6279 -10.3914 27.0454 -10.3914C27.5093 -10.3914 27.8804 -10.9016 27.834 -11.5975C27.7876 -12.1542 27.6484 -12.4789 27.3237 -12.6645C27.1845 -12.7109 27.0918 -12.7572 26.8598 -12.7572C26.3031 -12.8036 25.7464 -12.6181 24.8186 -12.1078C24.5867 -12.015 24.4011 -11.8758 24.4011 -11.9222C24.8186 -12.247 25.2362 -12.6645 25.5609 -12.9428C25.7464 -13.1284 25.932 -13.3139 25.932 -13.3139C25.9784 -13.3139 26.0248 -13.2211 26.1176 -13.1748C26.164 -13.082 26.2103 -13.0356 26.2567 -13.0356S27.4165 -14.1026 27.4165 -14.1026S27.3237 -14.1953 27.2309 -14.3345L27.0454 -14.5201L27.2773 -14.752C27.4165 -14.8912 27.6948 -15.2159 27.8804 -15.4479C28.2515 -15.9118 28.6226 -16.2365 29.0401 -16.5612C30.4782 -17.489 32.241 -17.721 33.8647 -17.1179C34.375 -16.9323 35.21 -16.4684 35.21 -16.3757C35.21 -16.3293 34.7925 -16.0045 34.4678 -15.819C33.5864 -15.3551 32.7049 -15.1231 31.4988 -15.0304C31.0813 -15.0304 30.8493 -14.984 30.6638 -14.9376C29.3185 -14.4737 28.5298 -12.7572 28.901 -11.0408C29.0865 -10.0666 29.504 -9.278 30.1999 -8.58215C30.571 -8.21103 31.0349 -7.8863 31.4988 -7.65435L31.7771 -7.56157L31.5452 -7.32962C31.1741 -7.00489 30.9885 -6.58738 31.0349 -6.12348C31.0349 -5.79875 31.0813 -5.5668 31.2669 -5.33485C31.406 -5.14929 31.5916 -5.05651 31.8235 -5.05651C32.4266 -5.05651 32.5658 -5.84514 32.0091 -6.07709C31.8699 -6.12348 31.8235 -6.12348 31.6844 -6.07709C31.5916 -6.07709 31.4988 -5.98431 31.4524 -5.93792S31.3132 -5.84514 31.3132 -5.84514S31.3132 -5.98431 31.3132 -6.12348C31.3132 -6.54099 31.4988 -6.9585 31.8235 -7.19045C32.0555 -7.4224 32.1019 -7.4224 32.4266 -7.37601C32.8441 -7.28323 33.54 -7.28323 33.9575 -7.32962C36.277 -7.74713 37.9006 -10.113 37.6687 -12.6181C37.5295 -13.9634 36.9264 -15.1695 35.9986 -16.0973L35.6739 -16.4221L35.8595 -16.6076C36.277 -17.0715 36.6481 -17.7674 36.7873 -18.324C36.8337 -18.5096 36.8337 -18.556 36.9264 -18.556C37.9934 -18.7879 38.9676 -19.3446 39.5243 -19.9941C39.6171 -20.0869 39.7098 -20.1796 39.7098 -20.1796C39.7562 -20.1796 39.849 -19.9013 40.0346 -19.623ZM14.2417 -17.3499C15.7726 -17.2107 17.1643 -16.7932 18.8807 -15.9582L19.5766 -15.6334L19.391 -15.3551C19.0199 -14.752 19.0199 -14.6592 18.9735 -14.7056C18.9271 -14.7056 18.6952 -14.7984 18.4168 -14.9376C15.1231 -16.3293 11.2264 -15.9118 8.48937 -13.917C8.3502 -13.8242 8.21103 -13.7314 8.21103 -13.7314C8.16464 -13.7314 7.8863 -14.3809 7.74713 -14.7056C7.70074 -14.8448 7.60796 -15.1231 7.56157 -15.3087L7.46879 -15.6334L7.74713 -15.819C9.09244 -16.7004 10.8089 -17.2571 12.4325 -17.3962C12.8964 -17.4426 13.8242 -17.4426 14.2417 -17.3499ZM35.8595 -15.8654C36.6017 -15.0767 37.0656 -14.1953 37.2976 -13.1284C37.4367 -12.5717 37.4367 -11.6903 37.2976 -11.1336C37.112 -10.1594 36.6945 -9.41717 36.045 -8.76771C35.5347 -8.25742 34.8853 -7.8863 34.2358 -7.70074C33.7719 -7.60796 33.5864 -7.56157 33.4008 -7.65435C33.0761 -7.79352 32.7513 -7.83991 32.4266 -7.79352S32.1019 -7.74713 31.8699 -7.83991C30.6638 -8.30381 29.6896 -9.32439 29.3185 -10.6233C28.9937 -11.6439 29.0401 -12.6645 29.4576 -13.4995C29.736 -13.9634 30.1071 -14.3809 30.5246 -14.5665C30.8493 -14.7056 31.0813 -14.752 31.5452 -14.752C32.8441 -14.752 33.7719 -14.3345 34.0503 -13.685C34.0966 -13.4995 34.143 -13.4067 34.0966 -13.2211C34.0966 -12.8964 34.0503 -12.7572 33.8647 -12.5717C33.54 -12.2933 33.2616 -12.2933 32.6586 -12.6181C32.241 -12.8036 32.1947 -12.8036 31.9627 -12.8036C31.4988 -12.8036 31.1741 -12.6181 30.8957 -12.247C30.7102 -11.9222 30.6174 -11.5975 30.6174 -11.18C30.6174 -10.6697 30.803 -10.1594 31.1277 -9.69551L31.3132 -9.46356L31.406 -9.55634L31.4988 -9.64912L31.3596 -9.88107C31.1741 -10.2058 31.0813 -10.345 31.1277 -10.5769S31.406 -11.0872 31.638 -11.1336C31.9627 -11.2264 32.1483 -11.18 32.7513 -10.8553L33.3544 -10.5305H33.6791C33.9111 -10.5305 34.0039 -10.5769 34.143 -10.6233C34.6533 -10.8553 34.9317 -11.3655 34.9317 -12.0614S34.6069 -13.4067 34.0503 -13.9634C33.7255 -14.2881 33.4008 -14.4737 32.9833 -14.7056L32.6122 -14.8912L32.8441 -14.9376C33.6327 -15.0767 34.6533 -15.5406 35.2564 -16.0509C35.3492 -16.1437 35.442 -16.1901 35.4883 -16.1901C35.4883 -16.1901 35.6739 -16.0509 35.8595 -15.8654ZM7.28323 -15.1695C7.37601 -14.7984 7.56157 -14.3345 7.79352 -13.917L7.97908 -13.5459L7.60796 -13.2211C6.54099 -12.2006 5.84514 -10.948 5.5668 -9.50995C5.47402 -9.09244 5.47402 -8.99966 5.47402 -8.25742C5.42763 -7.60796 5.47402 -7.4224 5.52041 -7.14406C5.70597 -6.21626 6.0307 -5.5668 6.54099 -4.87095L6.77294 -4.54622V-4.08232C6.77294 -3.34008 6.63377 -2.73701 6.35543 -2.04116L6.26265 -1.76282L6.12348 -1.90199C5.19568 -2.55145 4.40705 -3.61842 3.89676 -4.82456C3.20091 -6.4946 3.15452 -8.58215 3.7112 -10.5305C4.1751 -11.9686 5.01012 -13.3603 6.07709 -14.4737C6.4946 -14.8912 7.19045 -15.4479 7.19045 -15.4015C7.23684 -15.4015 7.23684 -15.2623 7.28323 -15.1695ZM25.2825 -14.0098L25.7464 -13.5459L25.5609 -13.3603C25.1898 -12.9892 23.6589 -11.6439 23.195 -11.2728L23.0558 -11.1336L22.6847 -11.5975L22.3136 -12.0614L22.7775 -12.4789C23.0558 -12.7109 23.6125 -13.2675 24.03 -13.685C24.4475 -14.1489 24.8186 -14.4737 24.865 -14.4737C24.865 -14.4737 25.0506 -14.2881 25.2825 -14.0098ZM11.6903 -13.3603C12.5253 -13.3139 13.2675 -13.082 14.0562 -12.7109S15.4943 -11.8294 16.3757 -11.0408L16.7932 -10.6697L16.7004 -10.6233C16.6076 -10.5769 16.4684 -10.5305 16.3293 -10.4841L16.0509 -10.4377L15.7262 -10.7625C14.8448 -11.4583 13.8242 -11.9686 12.7572 -12.247C12.3861 -12.3397 11.8294 -12.3861 11.2728 -12.3861C10.6697 -12.3861 10.345 -12.3861 9.83468 -12.247L9.46356 -12.1542L9.37078 -12.247C9.23161 -12.3861 8.8141 -12.85 8.8141 -12.8964S9.37078 -13.1284 9.83468 -13.2675C10.4841 -13.4067 11.0408 -13.4531 11.6903 -13.3603ZM8.95327 -12.2933C9.04605 -12.1542 9.13883 -12.015 9.13883 -12.015C9.09244 -12.015 8.95327 -11.9222 8.8141 -11.8758C7.74713 -11.3192 7.05128 -10.5305 6.81933 -9.50995C6.77294 -9.278 6.77294 -9.13883 6.77294 -8.76771C6.77294 -8.48937 6.81933 -8.25742 6.86572 -8.16464C6.91211 -8.02547 6.91211 -7.97908 6.81933 -7.65435C6.77294 -7.37601 6.72655 -6.68016 6.68016 -6.21626V-6.0307L6.4946 -6.26265C6.12348 -6.72655 5.84514 -7.37601 5.75236 -7.97908C5.65958 -8.62854 5.75236 -9.55634 6.0307 -10.2058C6.40182 -11.18 7.19045 -12.0614 8.21103 -12.6181L8.48937 -12.8036L8.58215 -12.6645C8.62854 -12.5717 8.8141 -12.4325 8.95327 -12.2933ZM12.4789 -12.015C13.3139 -11.8294 14.1026 -11.5047 14.7984 -11.0408C15.1695 -10.8089 15.6334 -10.4377 15.6334 -10.3914S14.9376 -10.2522 14.3345 -10.2522C13.1748 -10.2522 12.0614 -10.5305 11.0408 -11.0408C10.7161 -11.2264 10.0202 -11.6439 9.83468 -11.8294L9.7419 -11.9222L9.97385 -11.9686C10.5305 -12.1078 10.6697 -12.1078 11.4119 -12.1078C11.9686 -12.1078 12.2006 -12.0614 12.4789 -12.015ZM9.64912 -11.5975C10.345 -11.0408 11.4583 -10.4841 12.4325 -10.2058C13.4531 -9.92746 14.6592 -9.88107 15.6798 -10.0666L15.9582 -10.113L16.0509 -10.0202C16.1901 -9.92746 16.6076 -9.41717 16.7932 -9.13883L16.9323 -8.95327L16.7932 -8.90688C16.1437 -8.62854 15.2159 -8.44298 14.5201 -8.39659C14.1489 -8.39659 14.1026 -8.39659 14.1026 -8.30381C14.1026 -8.25742 14.0562 -8.25742 13.8242 -8.25742C12.8964 -8.16464 12.1542 -7.70074 11.0872 -6.58738C10.5305 -5.98431 10.0202 -5.52041 9.7419 -5.38124C9.41717 -5.24207 8.99966 -5.14929 8.67493 -5.14929C8.11825 -5.14929 7.65435 -5.28846 7.19045 -5.61319L6.9585 -5.75236V-6.0307C6.91211 -6.44821 7.00489 -7.65435 7.05128 -7.65435C7.05128 -7.65435 7.09767 -7.56157 7.19045 -7.46879C7.28323 -7.28323 7.56157 -7.05128 7.79352 -6.91211C8.48937 -6.4946 9.37078 -6.68016 9.83468 -7.37601C10.345 -8.11825 10.113 -9.18522 9.32439 -9.60273C8.48937 -10.0202 7.65435 -9.7419 7.19045 -8.8141L7.05128 -8.53576V-8.86049C7.05128 -9.88107 7.60796 -10.7625 8.58215 -11.4119C8.86049 -11.5975 9.278 -11.7831 9.37078 -11.7831C9.41717 -11.7831 9.55634 -11.6903 9.64912 -11.5975ZM17.4426 -9.88107L17.9065 -9.37078L17.6282 -9.278C17.2107 -9.04605 17.2571 -9.04605 16.9787 -9.41717C16.8396 -9.55634 16.654 -9.83468 16.5148 -9.97385L16.2829 -10.2058L16.5148 -10.2522C16.6076 -10.2986 16.7468 -10.345 16.7932 -10.345S16.9323 -10.3914 16.9787 -10.3914S17.2107 -10.1594 17.4426 -9.88107ZM8.07186 -9.32439C7.79352 -9.04605 7.79352 -8.67493 8.07186 -8.39659C8.30381 -8.21103 8.62854 -8.21103 8.86049 -8.44298S9.09244 -8.99966 8.86049 -9.23161L8.72132 -9.41717H8.86049C9.04605 -9.46356 9.278 -9.32439 9.50995 -9.09244C9.7419 -8.8141 9.83468 -8.67493 9.83468 -8.21103C9.83468 -7.8863 9.83468 -7.83991 9.69551 -7.65435C9.46356 -7.23684 9.13883 -7.00489 8.67493 -7.00489C8.30381 -6.9585 8.07186 -7.05128 7.79352 -7.23684C7.60796 -7.37601 7.32962 -7.74713 7.23684 -7.97908C7.14406 -8.11825 7.14406 -8.16464 7.23684 -8.3502C7.37601 -8.8141 7.70074 -9.23161 7.97908 -9.41717C8.16464 -9.50995 8.21103 -9.50995 8.07186 -9.32439ZM7.79352 -3.75759C9.09244 -2.92257 10.8089 -2.96896 12.0614 -3.85037L12.247 -3.94315L12.2933 -3.80398C12.3397 -3.75759 12.3397 -3.52564 12.3397 -3.34008C12.3861 -2.73701 12.1542 -2.27311 11.6439 -1.76282C10.948 -1.11336 10.113 -0.83502 8.99966 -0.88141C8.16464 -0.9278 7.65435 -1.06697 6.91211 -1.3917L6.54099 -1.57726L6.63377 -1.80921C6.91211 -2.36589 7.09767 -3.20091 7.09767 -3.85037V-4.22149L7.32962 -4.03593C7.46879 -3.94315 7.70074 -3.80398 7.79352 -3.75759ZM46.2972 -3.94315C46.5756 -3.47925 46.7611 -2.82979 46.7147 -2.27311C46.6683 -1.34531 46.0653 -0.55668 45.1839 -0.23195C44.8591 -0.09278 44.2561 -0.09278 43.9313 -0.18556S43.0499 -0.55668 42.586 -0.88141C42.1685 -1.15975 42.1685 -1.15975 42.0293 -1.3917S41.8902 -1.67004 41.8902 -2.04116C41.8902 -2.36589 41.8902 -2.41228 42.0293 -2.64423C42.3077 -3.2473 42.7716 -3.57203 43.4674 -3.57203C43.8849 -3.57203 43.8849 -3.52564 43.7458 -3.38647C43.5602 -3.29369 43.421 -2.96896 43.421 -2.7834C43.421 -2.55145 43.4674 -2.36589 43.653 -2.22672C43.9313 -1.94838 44.2097 -1.90199 44.5808 -2.04116C45.1375 -2.36589 45.1375 -3.20091 44.5344 -3.57203L44.3952 -3.61842L44.72 -3.7112C45.0911 -3.75759 45.555 -3.94315 45.8333 -4.03593C45.9725 -4.12871 46.0653 -4.1751 46.1117 -4.1751S46.2508 -4.03593 46.2972 -3.94315ZM19.6694 -3.06174C18.9271 -2.73701 19.1591 -1.62365 19.9477 -1.62365C20.3652 -1.62365 20.6899 -1.99477 20.7363 -2.36589C20.7363 -2.50506 20.5972 -2.7834 20.5044 -2.87618C20.3188 -3.10813 19.9477 -3.20091 19.6694 -3.06174Z"/>
+ <path id="g96" d="M3.036 -7.464C2.916 -7.524 2.82 -7.608 2.7 -7.668C2.448 -7.8 2.136 -7.872 1.848 -7.872C1.14 -7.872 0.492 -7.524 0.276 -6.9C0.204 -6.696 0.204 -6.492 0.204 -6.288C0.204 -6.192 0.192 -6.084 0.192 -5.988C0.192 -5.688 0.192 -5.376 0.312 -5.088C0.48 -4.704 0.864 -4.572 1.212 -4.392C1.44 -4.284 1.68 -4.116 1.692 -3.84C1.692 -3.54 1.548 -3.288 1.26 -3.288C1.14 -3.288 1.02 -3.324 0.912 -3.396C0.828 -3.444 0.768 -3.528 0.684 -3.576C0.648 -3.516 0.576 -3.432 0.576 -3.36C0.588 -3.3 0.66 -3.252 0.708 -3.216C0.864 -3.084 1.056 -3.012 1.272 -3.012C1.788 -3.012 2.268 -3.336 2.268 -3.96C2.268 -4.56 1.956 -5.052 1.608 -5.34C1.26 -5.616 0.468 -5.904 0.468 -6.492C0.468 -6.924 0.828 -7.308 1.284 -7.308C1.368 -7.308 1.452 -7.296 1.536 -7.284C2.268 -7.164 2.736 -6.564 2.976 -5.904C3.288 -5.004 3.36 -3.924 3.36 -2.928C3.36 -2.184 3.168 -1.74 2.844 -1.236C2.748 -1.104 2.628 -0.984 2.544 -0.84H2.532C2.256 -1.092 1.968 -1.332 1.68 -1.56L0.708 -0.396V-0.384L0.9 -0.216H0.912L1.032 -0.372C1.26 -0.228 1.5 -0.108 1.74 0.012L1.908 0.108C1.932 0.12 1.956 0.132 1.98 0.132C1.992 0.132 1.992 0.132 2.004 0.132C2.052 0.132 2.088 0.084 2.112 0.048C2.964 -0.936 4.2 -2.064 4.272 -3.648C4.272 -3.648 4.272 -4.152 4.26 -4.152C4.212 -5.34 3.936 -6.468 3.324 -7.164C3.3 -7.2 3.228 -7.26 3.228 -7.308S3.252 -7.416 3.264 -7.452C3.36 -7.668 3.516 -7.896 3.828 -7.896C3.96 -7.896 4.092 -7.848 4.212 -7.812C4.824 -7.608 5.184 -7.008 5.364 -6.42C5.472 -6.048 5.52 -5.664 5.544 -5.268C5.556 -5.04 5.544 -4.8 5.556 -4.572C5.592 -4.056 5.652 -3.528 5.652 -3C5.652 -2.316 5.532 -1.632 5.208 -1.164C5.148 -1.068 5.076 -0.996 5.016 -0.9L4.164 -1.608L3.072 -0.288C3.12 -0.252 3.204 -0.156 3.276 -0.156C3.336 -0.156 3.372 -0.228 3.396 -0.276C3.588 -0.204 4.2 0.072 4.38 0.132C4.38 0.132 4.404 0.132 4.404 0.132C4.464 0.12 4.5 0.06 4.536 0.024L4.8 -0.264C5.532 -1.068 6.156 -1.8 6.456 -3.036C6.528 -3.384 6.54 -3.72 6.54 -4.068C6.54 -4.836 6.492 -5.544 6.348 -6.228C6.276 -6.612 6.228 -6.636 6.12 -7.032C6.312 -7.116 6.444 -7.212 6.696 -7.212C7.116 -7.212 7.548 -6.972 7.776 -6.624C7.944 -6.372 8.028 -6.084 8.1 -5.796C8.124 -5.664 8.232 -5.268 8.232 -5.208C8.232 -5.196 8.232 -5.196 8.232 -5.184C8.232 -5.148 8.196 -5.136 8.172 -5.124C7.992 -5.04 7.464 -4.86 7.356 -4.824C7.296 -4.8 7.164 -4.776 7.128 -4.704S7.092 -4.5 7.092 -4.416C7.032 -3.9 6.996 -3.348 6.996 -2.796C6.996 -2.76 6.984 -2.22 6.996 -2.22C7.032 -1.788 7.152 -1.38 7.248 -0.96C7.284 -0.768 7.368 -0.348 7.368 -0.168C7.368 -0.12 7.368 -0.072 7.38 -0.036S7.512 0.156 7.56 0.156L9.036 -1.272C9.084 -1.32 9.204 -1.392 9.204 -1.464C9.204 -1.548 9.096 -1.608 9.048 -1.656H9.036C8.976 -1.596 8.604 -1.212 8.544 -1.212C8.544 -1.212 8.532 -1.212 8.532 -1.212C8.448 -1.212 8.364 -1.32 8.328 -1.38C7.92 -1.848 7.956 -2.52 7.932 -3.312C7.932 -3.528 7.896 -3.756 7.896 -3.972C7.896 -4.224 7.932 -4.476 8.112 -4.692C8.184 -4.776 8.268 -4.836 8.352 -4.896L8.496 -4.608C8.712 -4.8 8.844 -5.076 9.036 -5.292C9.084 -5.352 9.192 -5.484 9.216 -5.556C9.216 -5.628 9.132 -5.724 9.096 -5.784C9.012 -5.94 8.952 -6.096 8.88 -6.264C8.58 -6.984 8.352 -7.752 7.548 -8.052C7.536 -8.052 7.152 -8.124 7.152 -8.1C6.864 -8.076 6.684 -7.884 6.504 -7.68C6.348 -7.512 6.204 -7.344 6.048 -7.188C5.904 -7.5 5.724 -7.812 5.46 -8.04C5.172 -8.292 4.752 -8.46 4.344 -8.46C4.116 -8.46 3.9 -8.412 3.708 -8.292C3.444 -8.136 3.132 -7.752 3.036 -7.464ZM2.616 -0.78C2.616 -0.78 2.568 -0.828 2.568 -0.828S2.616 -0.78 2.616 -0.78Z"/>
+ <path id="g97" d="M3.192 -0.276C3.192 -0.168 3.192 -0.06 3.192 0.048C3.192 0.9 2.784 1.56 2.34 2.004C2.292 2.052 2.196 2.112 2.196 2.196C2.196 2.208 2.208 2.22 2.208 2.232C2.208 2.28 2.292 2.328 2.328 2.328C2.388 2.328 2.436 2.292 2.484 2.244C3.024 1.74 3.468 0.912 3.468 0C3.468 -0.624 3.264 -1.296 2.652 -1.296C2.268 -1.296 2.016 -1.008 2.016 -0.648C2.016 -0.276 2.28 -0.012 2.652 -0.012C2.916 -0.012 3.06 -0.12 3.192 -0.276ZM5.544 -0.276C5.544 -0.168 5.544 -0.06 5.544 0.048C5.544 0.9 5.136 1.56 4.692 2.004C4.644 2.052 4.548 2.112 4.548 2.196C4.548 2.208 4.56 2.22 4.56 2.232C4.56 2.28 4.644 2.328 4.68 2.328C4.74 2.328 4.788 2.292 4.836 2.244C5.4 1.716 5.808 0.912 5.808 -0.072C5.808 -0.252 5.796 -0.432 5.748 -0.612C5.628 -0.96 5.448 -1.296 4.992 -1.296C4.608 -1.296 4.368 -0.996 4.368 -0.648C4.368 -0.48 4.428 -0.312 4.536 -0.192C4.656 -0.072 4.836 -0.012 5.004 -0.012C5.268 -0.012 5.412 -0.12 5.544 -0.276Z"/>
+ <path id="g98" d="M3.252 -8.46C3.252 -8.016 2.916 -7.692 2.604 -7.416C2.328 -7.176 2.052 -6.936 1.8 -6.684C1.524 -6.408 1.212 -6.048 1.212 -5.568C1.212 -5.544 1.212 -5.532 1.212 -5.508C1.212 -4.932 1.692 -4.512 2.016 -4.092C2.208 -3.84 2.388 -3.54 2.388 -3.216C2.388 -2.856 2.052 -2.604 1.788 -2.424C1.608 -2.292 1.416 -2.172 1.224 -2.064C1.104 -2.004 0.972 -1.968 0.852 -1.884C0.504 -1.68 0.204 -1.284 0.204 -0.768C0.204 -0.552 0.252 -0.336 0.372 -0.156C0.42 -0.084 0.576 0.132 0.672 0.132C0.672 0.132 0.684 0.132 0.684 0.132C0.768 0.132 0.84 0.036 0.876 -0.024C0.648 -0.168 0.468 -0.456 0.468 -0.732C0.468 -1.02 0.672 -1.236 0.936 -1.284C1.152 -1.284 1.74 -1.02 1.812 -0.984C2.46 -0.696 3.648 -0.096 4.344 0.072C4.428 0.108 4.548 0.144 4.632 0.144C4.644 0.144 4.656 0.144 4.668 0.144C4.728 0.144 4.776 0.108 4.824 0.084C5.76 -0.42 6.612 -1.08 7.308 -1.884C7.8 -2.448 8.28 -3.144 8.28 -4.08C8.28 -4.884 8.004 -5.7 7.692 -6.216C7.26 -6.924 6.54 -7.572 5.556 -7.692C5.124 -7.74 4.68 -7.692 4.248 -7.788C3.96 -7.848 3.588 -8.004 3.492 -8.292C3.444 -8.388 3.456 -8.46 3.324 -8.46C3.3 -8.46 3.276 -8.46 3.252 -8.46ZM1.644 -2.124C2.256 -2.472 3.24 -2.676 3.372 -3.504C3.372 -3.504 3.372 -3.828 3.36 -3.828C3.324 -4.128 3.168 -4.392 2.988 -4.632C2.676 -5.028 2.1 -5.592 2.1 -6.216C2.1 -6.36 2.136 -6.516 2.232 -6.66C2.268 -6.708 2.352 -6.864 2.424 -6.864C2.448 -6.864 2.484 -6.84 2.508 -6.828C2.784 -6.648 3.132 -6.516 3.528 -6.516C3.9 -6.516 4.248 -6.6 4.62 -6.612C4.668 -6.612 4.704 -6.612 4.752 -6.612C5.328 -6.612 5.892 -6.468 6.372 -6.12C7.056 -5.628 7.596 -4.812 7.596 -3.708C7.596 -3.012 7.356 -2.304 6.864 -1.812C6.504 -1.452 5.976 -1.212 5.292 -1.212C4.44 -1.212 3.672 -1.512 2.988 -1.764C2.544 -1.92 2.124 -2.124 1.644 -2.124Z"/>
+ <path id="g99" d="M3.252 -8.46C3.252 -8.016 2.916 -7.692 2.604 -7.416C2.388 -7.236 2.184 -7.044 1.98 -6.852C1.632 -6.528 1.212 -6.144 1.212 -5.532C1.224 -4.908 1.74 -4.488 2.076 -4.02C2.244 -3.78 2.388 -3.516 2.388 -3.216C2.388 -2.856 2.052 -2.604 1.788 -2.424C1.608 -2.292 1.416 -2.172 1.224 -2.064C1.104 -2.004 0.972 -1.968 0.852 -1.884C0.504 -1.68 0.204 -1.284 0.204 -0.768C0.204 -0.552 0.252 -0.336 0.372 -0.156C0.42 -0.084 0.576 0.132 0.672 0.132C0.672 0.132 0.684 0.132 0.684 0.132C0.768 0.132 0.84 0.036 0.876 -0.024C0.636 -0.18 0.468 -0.456 0.468 -0.756C0.468 -1.008 0.684 -1.272 0.948 -1.284C1.068 -1.284 1.176 -1.236 1.284 -1.2C2.148 -0.864 2.964 -0.42 3.828 -0.096C3.96 -0.048 4.476 0.144 4.632 0.144C4.632 0.144 4.644 0.144 4.656 0.144C4.716 0.144 4.776 0.108 4.824 0.084C5.364 -0.216 5.868 -0.492 6.348 -0.864C6.528 -0.468 6.876 -0.168 7.272 0.024C7.44 0.084 7.488 0.096 7.692 0.144C7.692 0.144 7.716 0.144 7.716 0.144C7.788 0.132 7.86 0.06 7.92 0.012C8.316 -0.288 8.724 -0.612 9.072 -0.96C9.12 -0.996 9.288 -1.128 9.288 -1.2S9.18 -1.344 9.132 -1.392C8.952 -1.248 8.796 -1.08 8.628 -0.936C8.556 -0.876 8.46 -0.756 8.352 -0.756S8.124 -0.828 8.052 -0.864C7.812 -0.984 7.608 -1.188 7.476 -1.428C7.44 -1.5 7.392 -1.596 7.392 -1.692C7.392 -1.776 7.476 -1.836 7.536 -1.896C7.692 -2.052 7.836 -2.22 7.968 -2.4C8.34 -2.904 8.592 -3.372 8.64 -4.152C8.64 -4.212 8.628 -4.26 8.628 -4.32C8.616 -4.524 8.604 -4.716 8.556 -4.908C8.304 -6.168 7.368 -7.224 6.12 -7.584C5.832 -7.668 5.52 -7.704 5.22 -7.716C4.44 -7.74 3.78 -7.716 3.48 -8.304C3.456 -8.388 3.444 -8.46 3.336 -8.46C3.312 -8.46 3.276 -8.46 3.252 -8.46ZM1.644 -2.124C2.256 -2.472 3.24 -2.676 3.372 -3.504C3.372 -3.504 3.372 -3.828 3.36 -3.828C3.24 -4.632 2.424 -5.088 2.16 -5.832C2.112 -5.952 2.1 -6.072 2.1 -6.204C2.1 -6.36 2.136 -6.504 2.22 -6.648C2.268 -6.708 2.34 -6.852 2.424 -6.852C2.46 -6.852 2.484 -6.828 2.52 -6.816C2.808 -6.624 3.228 -6.516 3.648 -6.516C3.972 -6.516 4.308 -6.6 4.632 -6.612C4.668 -6.612 4.716 -6.612 4.752 -6.612C5.556 -6.612 6.336 -6.384 6.96 -5.88C7.512 -5.448 7.944 -4.788 7.944 -3.924C7.944 -3.864 7.944 -3.816 7.944 -3.756C7.872 -2.316 6.876 -1.2 5.34 -1.2C4.62 -1.2 3.888 -1.44 3.216 -1.68C2.712 -1.86 2.196 -2.124 1.644 -2.124Z"/>
+ <path id="g100" d="M3.3264 -7.128L2.1744 -5.112H2.16C2.16 -5.4864 2.16 -5.8752 2.1456 -6.2352C1.9728 -6.4512 1.8432 -6.696 1.5984 -6.84C1.2816 -6.6096 0.9936 -6.3504 0.6912 -6.1056L1.2096 -5.472H0.9504C0.936 -4.3344 0.9792 -3.1536 0.936 -2.0448L0.3168 -1.1088V-1.0944C1.008 -0.648 1.656 -0.1584 2.3616 0.2736L2.5056 0.2304C2.9376 -0.0144 3.3984 -0.2448 3.7872 -0.5328C3.816 -0.648 3.8304 -0.7776 3.8304 -0.9072C3.6432 -0.8352 3.4272 -0.6768 3.2256 -0.6768C3.0816 -0.6768 3.0096 -0.7344 2.9232 -0.792C2.7648 -0.9072 2.448 -1.1088 2.304 -1.2096C2.2176 -1.296 2.1456 -1.296 2.1456 -1.4832C2.1456 -1.5552 2.16 -1.6272 2.16 -1.6848V-4.2912V-4.4208C2.16 -4.464 2.16 -4.4928 2.1744 -4.536C2.2176 -4.7088 2.592 -5.2704 2.6208 -5.3136C2.8224 -4.7232 3.0528 -4.1472 3.2688 -3.5712C3.5712 -4.0464 3.8592 -4.5216 4.1184 -5.04C3.8736 -5.76 3.5856 -6.4368 3.3264 -7.128Z"/>
+ <path id="g101" d="M3.3984 -6.8112C2.7792 -6.3072 1.9584 -5.9904 1.3392 -5.4864C0.6624 -4.9536 0.1584 -4.1616 0.1584 -3.2832V-3.1536C0.2448 -2.0016 1.1664 -1.1808 1.9728 -0.4608C2.1168 -0.3456 2.2608 -0.216 2.3904 -0.0864S2.6208 0.2016 2.8656 0.2016S3.168 0.0288 3.312 -0.1008C3.5424 -0.3024 3.8016 -0.504 4.0464 -0.6912C5.0256 -1.4256 6.4224 -2.2752 6.4224 -3.7584C6.4224 -3.888 6.408 -4.0176 6.3936 -4.1472C6.2496 -5.2128 5.3856 -6.0048 4.5504 -6.5808C4.4496 -6.6384 3.8304 -7.0704 3.7152 -7.0704C3.6576 -7.0704 3.456 -6.8688 3.3984 -6.8112ZM1.152 -4.248C1.152 -4.8672 1.5984 -5.472 2.1456 -5.616C2.2464 -5.6304 2.3328 -5.6304 2.4336 -5.6304C2.6784 -5.6304 2.9088 -5.5872 3.1392 -5.5296C4.3056 -5.1984 5.256 -4.1472 5.256 -2.8224C5.256 -2.664 5.2416 -2.5056 5.1984 -2.3472C5.04 -1.7568 4.536 -1.2672 3.8448 -1.2672C3.4848 -1.2672 3.1248 -1.368 2.808 -1.5264C2.1024 -1.872 1.584 -2.52 1.3392 -3.2544C1.2528 -3.4992 1.152 -3.9888 1.152 -4.248Z"/>
+ <path id="g102" d="M3.48 -6.84C3.372 -6.78 3.24 -6.732 3.156 -6.648C3.06 -6.552 3.108 -6.348 2.916 -6.348C2.82 -6.348 2.7 -6.396 2.628 -6.432C2.82 -6.66 3.06 -6.864 3.264 -7.08C3.3 -7.116 3.516 -7.32 3.516 -7.368C3.516 -7.548 3.144 -7.656 3.036 -7.656C2.82 -7.656 2.7 -7.572 2.532 -7.476C2.268 -7.32 1.992 -7.176 1.992 -6.756C1.992 -6.72 1.992 -6.672 2.004 -6.624C2.076 -6.348 2.316 -6.036 2.604 -6.036C2.844 -6.036 3.084 -6.192 3.276 -6.324C3.396 -6.396 3.528 -6.54 3.528 -6.696C3.528 -6.708 3.528 -6.708 3.528 -6.72C3.528 -6.768 3.504 -6.804 3.48 -6.84ZM2.46 -6.6C2.424 -6.696 2.412 -6.792 2.412 -6.888C2.412 -7.08 2.532 -7.344 2.736 -7.344C2.856 -7.344 2.976 -7.284 3.096 -7.236L2.46 -6.6ZM0.216 -1.14V-1.116C0.504 -0.948 1.884 -0.096 2.088 0.048C2.124 0.084 2.172 0.132 2.232 0.132C2.232 0.132 2.244 0.132 2.244 0.132C2.28 0.12 2.868 -0.564 3.132 -0.984C3.624 -1.764 3.828 -2.712 3.828 -3.636C3.828 -4.488 3.66 -5.184 3.264 -5.808L1.176 -4.968L0.66 -4.752C0.54 -4.704 0.468 -4.716 0.468 -4.536C0.468 -4.488 0.468 -4.452 0.468 -4.416V-1.728C0.468 -1.704 0.468 -1.68 0.468 -1.656C0.468 -1.488 0.456 -1.332 0.324 -1.212L0.216 -1.14ZM2.712 -0.828C2.688 -0.792 2.652 -0.72 2.604 -0.72C2.568 -0.72 2.544 -0.732 2.52 -0.744C2.148 -0.984 2.028 -1.056 1.572 -1.332L1.38 -1.452C1.308 -1.5 1.26 -1.524 1.26 -1.644C1.26 -1.704 1.272 -1.764 1.272 -1.812V-3.936C1.272 -3.996 1.272 -4.68 1.272 -4.68C1.296 -4.776 1.44 -4.812 1.524 -4.836C1.776 -4.944 2.04 -5.04 2.292 -5.148C2.352 -5.172 2.448 -5.232 2.52 -5.232C2.556 -5.232 2.58 -5.22 2.604 -5.196C2.652 -5.112 2.688 -5.004 2.724 -4.908C2.988 -4.212 3.096 -3.312 3.096 -2.4C3.096 -1.824 2.976 -1.164 2.712 -0.828Z"/>
+ <path id="g103" d="M3.504 -6.84C3.444 -6.804 3.192 -6.672 3.156 -6.624C3.072 -6.528 3.132 -6.348 2.928 -6.348C2.832 -6.348 2.724 -6.396 2.64 -6.432C2.832 -6.66 3.072 -6.864 3.276 -7.08C3.324 -7.128 3.528 -7.308 3.528 -7.38C3.528 -7.44 3.468 -7.488 3.432 -7.524C3.312 -7.62 3.168 -7.656 3.024 -7.656C2.832 -7.656 2.688 -7.56 2.568 -7.488C2.304 -7.344 2.016 -7.164 2.016 -6.768C2.016 -6.444 2.256 -6.036 2.64 -6.036C2.856 -6.036 3.048 -6.18 3.24 -6.288C3.384 -6.372 3.552 -6.516 3.552 -6.696C3.552 -6.756 3.516 -6.816 3.504 -6.84ZM2.472 -6.612C2.448 -6.708 2.436 -6.804 2.436 -6.888C2.436 -7.08 2.544 -7.356 2.76 -7.356C2.88 -7.356 3.012 -7.296 3.108 -7.236L2.472 -6.612ZM1.188 -5.808L0.204 -4.548V-4.536L0.384 -4.392H0.396C0.432 -4.44 0.588 -4.668 0.648 -4.668C0.744 -4.668 0.828 -4.488 0.852 -4.452C0.96 -4.248 0.972 -4.032 0.972 -3.804C0.972 -3.768 0.972 -3.72 0.972 -3.684V-1.368C0.972 -1.332 0.972 -1.284 0.972 -1.248C0.972 -0.936 0.744 -0.828 0.492 -0.756V-0.504C0.924 -0.504 1.296 -0.276 1.512 0.024C1.56 0.084 1.584 0.156 1.692 0.156C1.86 0.156 1.98 -0.036 2.088 -0.144L3.12 -1.176C3.24 -0.9 3.384 -0.624 3.516 -0.348C3.564 -0.252 3.648 -0.132 3.648 -0.024C3.648 0 3.636 0.012 3.636 0.036L3.84 0.156L4.776 -1.344L4.56 -1.464C4.524 -1.404 4.38 -1.14 4.332 -1.128C4.296 -1.128 4.272 -1.14 4.248 -1.164C4.056 -1.308 3.936 -1.536 3.936 -1.848C3.936 -1.92 3.936 -1.992 3.936 -2.052V-3.888C3.936 -4.092 3.936 -4.308 3.936 -4.524C3.936 -4.728 3.924 -4.968 4.02 -5.088C4.044 -5.136 4.116 -5.16 4.128 -5.208C4.14 -5.208 4.14 -5.352 4.14 -5.352C3.9 -5.4 3.684 -5.568 3.612 -5.808C3.588 -5.808 3.564 -5.808 3.54 -5.808C3.444 -5.808 3.432 -5.76 3.396 -5.7C3.312 -5.52 3.096 -5.4 2.916 -5.352C2.916 -5.328 2.916 -5.304 2.916 -5.28C2.916 -5.16 3.024 -5.112 3.06 -5.052C3.12 -4.92 3.12 -4.764 3.12 -4.584C3.12 -4.416 3.12 -4.248 3.12 -4.092V-1.932C3.12 -1.848 3.132 -1.764 3.132 -1.68C3.132 -1.488 3.06 -1.464 2.94 -1.344L2.52 -0.924C2.472 -0.876 2.388 -0.756 2.316 -0.756C2.256 -0.756 2.208 -0.816 2.172 -0.84L1.932 -1.056C1.848 -1.116 1.788 -1.164 1.788 -1.308V-3.54C1.788 -4.056 1.776 -4.536 1.608 -5.028C1.536 -5.256 1.332 -5.664 1.188 -5.808Z"/>
+ <path id="g104" d="M3.708 -6.84C3.636 -6.816 3.396 -6.672 3.36 -6.624C3.276 -6.528 3.324 -6.348 3.132 -6.348C3.024 -6.348 2.928 -6.408 2.844 -6.432C3.036 -6.66 3.276 -6.864 3.48 -7.08C3.528 -7.128 3.732 -7.308 3.732 -7.38C3.732 -7.572 3.324 -7.656 3.228 -7.656C3.048 -7.656 2.892 -7.548 2.772 -7.488C2.508 -7.32 2.22 -7.188 2.22 -6.768C2.22 -6.456 2.46 -6.036 2.832 -6.036C3.036 -6.036 3.228 -6.168 3.42 -6.276C3.564 -6.36 3.744 -6.504 3.744 -6.684C3.744 -6.696 3.744 -6.708 3.744 -6.72C3.744 -6.768 3.72 -6.804 3.708 -6.84ZM2.676 -6.612C2.652 -6.708 2.64 -6.804 2.64 -6.888C2.64 -7.092 2.748 -7.344 2.964 -7.344C3.084 -7.344 3.204 -7.296 3.312 -7.236L2.676 -6.612ZM1.944 -5.808L1.62 -5.472C1.356 -5.208 1.092 -4.944 0.888 -4.632C0.456 -3.972 0.204 -3.048 0.204 -2.028C0.204 -1.896 0.216 -1.776 0.228 -1.644C0.312 -0.948 0.78 -0.3 1.356 -0.012L1.164 0.156L1.536 0.144C2.004 -0.192 2.4 -0.588 2.844 -0.936C2.88 -0.732 2.94 -0.528 3.012 -0.336C3.036 -0.3 3.156 -0.048 3.156 -0.024C3.156 0.036 3.084 0.108 3.048 0.156L3.348 0.144C3.6 -0.12 3.84 -0.396 4.056 -0.696L4.068 -1.044C4.044 -1.02 3.996 -0.984 3.948 -0.984C3.816 -0.984 3.696 -1.14 3.648 -1.236C3.624 -1.308 3.624 -1.392 3.624 -1.476V-3.048C3.624 -3.192 3.612 -3.348 3.612 -3.504C3.612 -3.936 3.708 -4.248 3.924 -4.512C3.96 -4.572 4.032 -4.62 4.032 -4.68C4.032 -4.764 3.9 -4.884 3.888 -4.908C3.78 -5.052 3.744 -5.064 3.504 -5.1C3.012 -5.232 2.688 -5.352 2.268 -5.592C2.16 -5.664 2.052 -5.748 1.944 -5.808ZM1.452 -4.968C1.608 -4.896 2.4 -4.416 2.424 -4.404L2.664 -4.26C2.76 -4.212 2.808 -4.164 2.808 -4.032C2.808 -3.996 2.808 -3.96 2.808 -3.936V-1.488C2.808 -1.452 2.808 -1.416 2.808 -1.368C2.808 -1.332 2.808 -1.296 2.796 -1.26C2.736 -1.092 2.304 -0.972 2.124 -0.972C1.644 -0.972 1.284 -1.392 1.164 -1.836C1.092 -2.076 1.08 -2.316 1.08 -2.556C1.08 -2.7 1.092 -2.856 1.092 -3C1.104 -3.552 1.092 -4.14 1.296 -4.668C1.332 -4.776 1.404 -4.872 1.452 -4.968Z"/>
+ <path id="g105" d="M3.96 -6.0048C3.8448 -6.0768 2.6208 -6.8688 2.5344 -6.8688H2.52C2.4192 -6.8688 2.3184 -6.768 2.2464 -6.7104C2.016 -6.5664 1.8 -6.408 1.5696 -6.2496C1.2816 -6.0624 1.0224 -5.8608 0.8208 -5.5872C0.36 -4.9536 0.1584 -4.0896 0.1584 -3.1392C0.1584 -1.7712 0.7632 -0.6768 1.6128 0.0144C1.6848 0.0576 1.7712 0.1584 1.8576 0.1584C1.9728 0.1584 2.232 -0.0576 2.2608 -0.072L3.2256 -0.6912C3.2976 -0.7344 3.5136 -0.9072 3.6 -0.9072C3.6576 -0.9072 3.7008 -0.864 3.744 -0.8352C3.9888 -0.6336 5.0832 0.1728 5.0976 0.1872C5.6304 -0.2448 6.192 -0.648 6.696 -1.0944L6.7104 -1.3968C6.4512 -1.2816 6.3936 -1.0944 5.9904 -1.0944C5.5728 -1.0944 5.4288 -1.5264 5.3712 -1.8432C5.3424 -2.0304 5.328 -2.9088 5.328 -3.024V-3.7152V-4.2336V-4.3632C5.328 -4.5648 5.4432 -4.6224 5.5296 -4.7376L5.8752 -5.1408C5.9184 -5.1984 6.0336 -5.3712 6.1056 -5.3712S6.2352 -5.3136 6.2784 -5.2704L6.7536 -4.8672C7.4592 -4.2624 8.1648 -3.528 8.1648 -2.4336C8.1648 -0.432 6.264 1.2816 5.112 2.4336V2.448L5.328 2.664H5.3424C6.7824 1.224 8.9568 -0.2016 9.3888 -2.3328C9.4464 -2.592 9.4608 -2.8656 9.4608 -3.1248C9.4608 -4.6224 8.28 -5.7168 7.5744 -6.3504C7.5168 -6.408 6.9408 -6.8976 6.9264 -6.8976C6.3936 -6.264 5.8464 -5.6592 5.3424 -4.9968H5.328V-7.272C5.328 -7.488 5.3136 -7.704 5.3136 -7.92C5.3136 -8.1648 5.328 -8.4096 5.3856 -8.6544C5.4864 -9.1296 5.76 -9.7344 6.3792 -9.7344V-10.0512L4.1472 -9.3744L3.6 -9.2016C3.4992 -9.1728 3.3984 -9.1584 3.3984 -9.0144V-8.928C3.3984 -8.8416 3.456 -8.8128 3.5136 -8.784C3.5712 -8.7696 3.6288 -8.7408 3.6864 -8.6976C3.9024 -8.5392 3.96 -8.3664 3.96 -8.0064V-6.0048ZM3.4416 -4.8384L3.9456 -5.5296C3.96 -5.4432 3.9744 -5.3568 3.9744 -5.2704C3.9744 -5.1552 3.96 -5.04 3.96 -4.9248V-2.9376V-2.6784C3.96 -2.2464 3.8016 -1.5696 3.5856 -1.3968C3.4416 -1.2528 2.952 -1.1952 2.7216 -1.1952C2.5056 -1.1952 2.2896 -1.2384 2.1168 -1.3536C1.6128 -1.7136 1.4688 -2.6064 1.4688 -3.384C1.4688 -3.4416 1.4976 -4.3776 1.4688 -4.3776C1.4544 -4.5216 1.368 -5.256 1.368 -5.3136C1.368 -5.5584 1.4256 -5.8608 1.6272 -5.9184C1.6848 -5.9184 1.7424 -5.8896 1.7856 -5.8608L2.1168 -5.6448L2.9664 -5.112C3.1248 -5.0256 3.2688 -4.896 3.4416 -4.8384Z"/>
+ <path id="g106" d="M4.0032 -1.6272C3.5856 -1.4688 3.4416 -1.2816 2.8512 -1.2816C2.5632 -1.2816 2.2896 -1.368 2.0736 -1.584C1.8576 -1.8288 1.7712 -2.0592 1.6848 -2.4336C1.6704 -2.4912 1.5552 -3.1968 1.6272 -3.1968C1.6704 -3.2688 1.7712 -3.312 1.8432 -3.3696C2.016 -3.4848 4.176 -4.8816 4.2768 -4.9392C3.8736 -5.6016 3.4416 -6.2496 3.024 -6.8976C2.8656 -6.84 1.7568 -6.2928 1.3536 -6.0912C1.08 -5.9472 0.7632 -5.8464 0.5616 -5.5872C0.2736 -5.1984 0.216 -4.6512 0.1872 -4.176C0.1728 -3.888 0.144 -3.5712 0.144 -3.2832C0.144 -1.8864 0.5904 -0.936 1.2528 -0.1296C1.3536 -0.0288 1.44 0.1152 1.584 0.1584C1.584 0.1584 1.7424 0.1152 1.7424 0.0864C1.9008 0 3.4704 -0.9504 3.4704 -0.9504L3.8304 -1.1664C3.9312 -1.2384 4.0032 -1.2528 4.0032 -1.4544V-1.6272ZM1.584 -3.5856C1.5696 -3.7728 1.5696 -3.9744 1.5696 -4.1616C1.5696 -4.8672 1.7568 -5.3712 2.1168 -5.7888L2.5776 -5.0688L2.9664 -4.4928L1.584 -3.5856Z"/>
+ <path id="g107" d="M4.1904 -1.3392L4.032 -1.584C3.8736 -1.5408 3.744 -1.44 3.5856 -1.368C3.312 -1.2528 3.0096 -1.1952 2.7072 -1.1952H2.5488C1.5552 -1.296 1.4688 -2.6928 1.4688 -3.7008V-4.1328C1.4832 -4.536 1.3536 -4.9248 1.3536 -5.3424C1.3536 -5.544 1.4256 -5.8464 1.6272 -5.9184C1.6848 -5.9184 1.728 -5.8896 1.7712 -5.8608C1.8576 -5.8032 2.9664 -5.112 2.9664 -5.112C3.024 -5.0832 3.3264 -4.8672 3.384 -4.8672H3.3984C3.4992 -4.8672 3.5712 -5.0112 3.6144 -5.0832C3.8016 -5.3424 4.0176 -5.5872 4.1904 -5.8608C3.7872 -6.0912 3.3984 -6.3504 2.9952 -6.6096L2.6784 -6.7968C2.6352 -6.8256 2.5776 -6.8688 2.52 -6.8688C2.4192 -6.8688 2.304 -6.768 2.232 -6.7104C1.7424 -6.3504 1.1232 -6.0336 0.7776 -5.5584C0.36 -4.9536 0.1584 -4.0608 0.1584 -3.1392C0.1584 -1.8432 0.6768 -0.8352 1.4256 -0.144C1.4832 -0.0864 1.7568 0.1584 1.8576 0.1584C1.9296 0.1584 2.3472 -0.1296 2.4912 -0.216C2.6352 -0.3168 4.1904 -1.2816 4.1904 -1.3392Z"/>
+ <path id="g108" d="M4.248 -6.888C4.116 -7.032 4.02 -7.224 3.9 -7.368C3.504 -7.8 2.988 -8.112 2.268 -8.112C1.224 -8.112 0.204 -7.404 0.204 -6.156C0.204 -5.208 0.696 -4.416 1.38 -4.152C1.812 -3.996 2.616 -4.092 2.616 -3.54C2.616 -3.156 2.412 -2.772 2.04 -2.772C1.788 -2.772 1.536 -2.952 1.404 -3.168C1.344 -3.288 1.308 -3.42 1.308 -3.564C1.236 -3.528 1.068 -3.516 1.068 -3.396C1.068 -3.36 1.08 -3.312 1.08 -3.276C1.2 -2.856 1.56 -2.508 2.052 -2.508C2.604 -2.508 2.892 -3.06 2.892 -3.588C2.892 -3.924 2.796 -4.308 2.664 -4.536C2.472 -4.884 2.208 -5.004 1.8 -5.136C1.296 -5.328 0.48 -5.52 0.48 -6.24C0.48 -6.948 1.224 -7.344 1.884 -7.344C3.792 -7.344 4.02 -4.788 4.02 -3.036C4.02 -2.736 3.996 -1.932 3.948 -1.692C3.876 -1.056 3.66 -0.12 2.796 -0.12C2.436 -0.12 2.064 -0.336 2.064 -0.768C2.064 -0.828 2.076 -0.888 2.088 -0.936C2.112 -0.936 2.136 -1.08 2.136 -1.08C2.136 -1.14 2.04 -1.236 1.968 -1.236C1.872 -1.236 1.776 -1.176 1.692 -1.152C1.62 -1.128 1.536 -1.128 1.464 -1.128C1.344 -1.128 1.224 -1.152 1.092 -1.176C1.08 -1.14 1.068 -1.116 1.068 -1.08C1.068 -0.996 1.116 -0.9 1.128 -0.816C1.14 -0.816 1.14 -0.384 1.14 -0.384C1.116 -0.384 1.092 -0.132 1.092 -0.132C1.092 -0.072 1.176 0.048 1.26 0.048C1.32 0.048 1.38 -0.024 1.428 -0.048C1.5 -0.084 1.572 -0.108 1.644 -0.108C1.68 -0.108 1.716 -0.096 1.752 -0.096C2.112 -0.036 2.376 0.156 2.796 0.156C3.252 0.156 3.708 -0.048 4.02 -0.348C4.692 -1.008 4.956 -1.956 5.004 -2.868C5.004 -2.868 5.004 -3.588 4.992 -3.588C4.968 -4.536 4.812 -5.388 4.56 -6.18L4.452 -6.456C4.428 -6.516 4.392 -6.564 4.38 -6.624C4.38 -6.732 4.428 -6.864 4.464 -6.96C4.608 -7.344 4.932 -7.8 5.472 -7.8C5.844 -7.8 6.108 -7.524 6.276 -7.2C6.552 -6.648 6.576 -5.94 7.032 -5.484C7.152 -5.364 7.308 -5.232 7.476 -5.184V-5.172C6.984 -5.064 6.468 -4.92 6.108 -4.548C5.76 -4.176 5.712 -3.648 5.712 -3.06C5.712 -2.016 6.012 -0.936 6.396 -0.204C6.444 -0.12 6.492 -0.048 6.528 0.036C6.576 0.108 6.588 0.156 6.72 0.156C6.744 0.156 6.864 0.168 6.864 0.144C6.936 0.108 6.996 -0.036 7.044 -0.108L7.632 -1.044C7.656 -1.08 7.824 -1.356 7.824 -1.38C7.824 -1.488 7.68 -1.524 7.62 -1.548C7.56 -1.476 7.488 -1.368 7.368 -1.368C7.236 -1.368 7.116 -1.512 7.056 -1.632C6.84 -1.98 6.78 -2.412 6.744 -2.808C6.732 -2.988 6.744 -3.156 6.732 -3.336C6.72 -3.492 6.708 -3.648 6.708 -3.816C6.708 -4.032 6.732 -4.248 6.852 -4.428C7.068 -4.764 7.476 -4.896 7.884 -5.004C7.968 -5.028 8.028 -5.04 8.028 -5.16V-6.048C7.752 -6.06 7.644 -6.3 7.56 -6.528L7.38 -7.044C7.14 -7.656 6.78 -8.388 6.048 -8.46C5.976 -8.46 5.652 -8.472 5.652 -8.436C5.496 -8.4 5.352 -8.352 5.22 -8.28C4.776 -8.052 4.32 -7.44 4.248 -6.888Z"/>
+ <path id="g109" d="M4.512 -6.012L4.632 -6.252C4.248 -6.468 3.804 -6.696 3.36 -6.696C3.312 -6.696 3.276 -6.684 3.228 -6.684C2.52 -6.624 2.136 -5.868 2.136 -5.148C2.136 -5.088 2.136 -5.04 2.148 -4.98C2.232 -4.392 2.748 -4.044 3.228 -3.768C3.24 -3.756 3.732 -3.48 3.732 -3.54C3.828 -3.552 3.936 -3.624 4.032 -3.66L4.608 -3.924C5.136 -4.14 5.64 -4.464 6.348 -4.464C7.188 -4.464 8.1 -3.972 8.1 -3C8.1 -2.568 7.932 -2.136 7.656 -1.824C7.14 -1.2 6.312 -0.84 5.328 -0.84C4.236 -0.84 3.156 -1.308 2.4 -2.064C1.656 -2.808 1.188 -3.888 1.188 -4.944C1.188 -5.892 1.608 -6.792 2.268 -7.296C2.496 -7.476 2.784 -7.668 3.108 -7.668C3.468 -7.668 3.816 -7.476 4.116 -7.32L5.208 -6.756C5.544 -6.6 5.988 -6.372 6.3 -6.204C6.384 -6.156 6.504 -6.072 6.612 -6.072C6.684 -6.072 7.668 -6.516 8.04 -6.696C8.196 -6.756 8.364 -6.816 8.484 -6.936C8.736 -7.176 8.808 -7.548 8.808 -7.884L8.448 -7.74C8.448 -7.56 8.436 -7.368 8.34 -7.212C8.22 -7.032 7.992 -6.96 7.728 -6.96C7.296 -6.96 6.852 -7.236 6.576 -7.392L5.232 -8.076C5.076 -8.148 4.92 -8.22 4.776 -8.304C4.692 -8.34 4.548 -8.448 4.44 -8.448C4.356 -8.448 4.248 -8.412 4.164 -8.388C3.516 -8.196 2.844 -7.968 2.304 -7.668C1.176 -7.032 0.204 -5.832 0.204 -4.164C0.204 -3.444 0.396 -2.82 0.648 -2.34C1.356 -0.984 2.772 -0.108 4.26 0.096C4.5 0.132 4.752 0.156 4.992 0.156C5.496 0.156 6 0.072 6.468 -0.144C7.488 -0.612 8.364 -1.644 8.364 -3.012C8.364 -3.3 8.328 -3.6 8.232 -3.876C7.92 -4.764 7.212 -5.424 6.444 -5.88C6.432 -5.892 6.084 -6.096 6.084 -6.048C6.012 -6.036 5.412 -5.76 5.412 -5.76L3.936 -5.1C3.756 -5.028 3.612 -4.944 3.396 -4.944C3.024 -4.944 2.7 -5.268 2.7 -5.688C2.7 -6.096 2.952 -6.444 3.384 -6.444C3.804 -6.444 4.152 -6.168 4.512 -6.012Z"/>
+ <path id="g110" d="M4.6224 0.1872L5.4144 -0.6048C5.4576 -0.648 5.6736 -0.8352 5.6736 -0.9072S5.4864 -1.1664 5.472 -1.1808C5.04 -1.6848 4.5504 -2.3472 4.5504 -3.2256C4.5504 -3.5424 4.5792 -4.0608 4.6656 -4.248C4.7376 -4.392 5.6304 -5.4144 5.7024 -5.5296C5.2272 -5.8464 4.7808 -6.192 4.32 -6.5232L3.9744 -6.7824C3.9312 -6.8112 3.8592 -6.8688 3.8016 -6.8688C3.7152 -6.8688 3.4272 -6.6384 3.4272 -6.6384L2.4912 -5.976C1.4112 -5.2272 0.2592 -4.2192 0.1584 -2.808C0.1584 -2.808 0.1728 -2.1168 0.2016 -2.1168C0.2592 -1.8432 0.3312 -1.5696 0.4608 -1.3248C0.7632 -0.7056 1.2528 -0.1872 1.8864 0.1296C1.8864 0.1296 2.0592 0.1872 2.0592 0.144C2.1888 0.072 2.2896 -0.072 2.3904 -0.1728L3.0528 -0.8352C3.096 -0.8784 3.3552 -1.1664 3.4272 -1.1664C3.4704 -1.1664 3.4992 -1.1232 3.528 -1.0944C3.7296 -0.8496 4.5792 0.1872 4.6224 0.1872ZM4.4208 -4.5504C4.3344 -4.3344 3.7728 -2.3904 3.7008 -2.16C3.6432 -1.8 3.4848 -1.728 3.2544 -1.4976L2.8656 -1.1088C2.808 -1.0512 2.7504 -0.9792 2.6784 -0.9504C2.5776 -0.9504 2.3904 -1.0944 2.3472 -1.1232C1.7568 -1.5696 1.2528 -2.3184 1.2528 -3.2544C1.2528 -4.3056 1.9296 -5.0976 2.5056 -5.5584C2.5632 -5.6016 2.6496 -5.7024 2.736 -5.7024C2.7936 -5.7024 2.8512 -5.6448 2.8944 -5.616L3.2112 -5.3856C3.4704 -5.2128 3.7296 -5.0256 3.9888 -4.8384C4.1328 -4.7376 4.2624 -4.6224 4.4208 -4.5504Z"/>
+ <path id="g111" d="M4.6368 -5.832C4.392 -6.0048 4.1328 -6.1632 3.888 -6.3216C3.5856 -6.5232 3.312 -6.6384 3.312 -7.1136H3.2976C3.168 -6.8544 3.0096 -6.6096 2.808 -6.408C2.2752 -5.8896 1.4832 -5.7312 0.7632 -5.7312C0.7488 -5.112 0.792 -4.4352 0.7488 -3.8448C0.5472 -3.6 0.3456 -3.3696 0.1296 -3.1392V-3.1248L1.2096 -2.0592V-2.0448C0.9936 -1.872 0.8064 -1.6272 0.6192 -1.4112C0.1584 -0.9072 -0.4464 -0.288 -0.4464 0.4176C-0.4464 0.5472 -0.432 0.6768 -0.3888 0.8064L0.1296 0.3024V0.288C0.0576 0.216 0 0.1152 0 -0.0144C0 -0.216 0.144 -0.3888 0.2592 -0.5328C0.3024 -0.6048 0.4032 -0.7488 0.4896 -0.7488H0.504C0.5472 -0.7488 0.7488 -0.576 0.8208 -0.5184L1.5264 0.072C1.5984 0.144 1.7136 0.2736 1.8144 0.2736C1.9008 0.2736 2.5056 -0.1008 2.7216 -0.216C3.2256 -0.5184 4.824 -1.4256 5.0976 -1.5984L4.9104 -1.8576C4.896 -2.1168 4.896 -2.3904 4.896 -2.664C4.9968 -2.7072 5.0544 -2.8512 5.0976 -2.952C5.2416 -3.1968 5.4144 -3.4416 5.5296 -3.7008L4.0176 -4.68C4.2912 -4.9968 4.5936 -5.3136 4.8816 -5.6304C5.2416 -6.048 5.3856 -6.2064 5.3856 -6.9696V-7.1136C5.3856 -7.3008 5.3136 -7.4448 5.1264 -7.4448C5.0112 -7.4448 4.896 -7.3296 4.896 -7.2144C4.9248 -6.984 5.04 -6.7536 5.04 -6.5088C5.0256 -6.2064 4.7808 -6.0624 4.6368 -5.832ZM2.0304 -2.952L1.8432 -3.1248H1.9728V-5.5872L2.4912 -5.76L2.6352 -5.688C3.0096 -5.4288 3.4128 -5.184 3.8016 -4.9392L3.312 -4.392L2.0304 -2.952ZM1.3536 -1.6992C1.3536 -1.7568 1.4256 -1.8144 1.4544 -1.8576C1.5696 -1.9728 2.7504 -3.2832 2.7504 -3.2832L3.024 -3.5856C3.0672 -3.6288 3.1248 -3.744 3.1968 -3.744C3.2544 -3.744 3.312 -3.7008 3.3408 -3.672C3.456 -3.6 3.672 -3.5136 3.6864 -3.3552V-1.3248V-1.2672C3.6864 -1.2096 3.6864 -1.1664 3.6432 -1.1376C3.5856 -1.08 2.7504 -0.5904 2.664 -0.5904C2.5632 -0.5904 2.448 -0.7488 2.4048 -0.7776L1.9008 -1.1952C1.7568 -1.3248 1.6272 -1.44 1.4832 -1.5552C1.44 -1.584 1.3536 -1.6416 1.3536 -1.6992Z"/>
+ <path id="g112" d="M4.8528 -6.8976C4.752 -6.7824 4.2624 -6.1056 4.176 -6.048C4.1184 -6.0192 4.0464 -6.0192 3.9888 -6.0192H2.3616C2.1312 -6.0192 2.1312 -6.0768 2.0016 -6.2352L1.6704 -6.6672C1.6272 -6.7248 1.5552 -6.8544 1.4832 -6.8544C1.4256 -6.8544 1.3824 -6.7824 1.3536 -6.7392C1.296 -6.6528 1.008 -6.2928 0.936 -6.192C0.8496 -6.1056 0.7776 -6.0048 0.7776 -5.8464C0.7776 -5.7744 0.792 -5.7024 0.792 -5.6304V-2.0016V-1.8144C0.792 -1.7568 0.792 -1.6992 0.8064 -1.6416C0.8208 -1.5696 1.0224 -1.2096 1.0944 -1.08C1.2816 -0.72 1.4544 -0.36 1.656 -0.0144C1.8864 -0.1152 2.1168 -0.2448 2.3328 -0.3744C2.4624 -0.432 4.1184 -1.3248 4.1616 -1.3248C4.248 -1.296 4.3344 -1.152 4.3776 -1.08C4.7088 -0.6336 4.968 0 4.968 0.72C4.968 1.5984 4.032 2.0448 3.3552 2.0448C2.6208 2.0448 2.088 1.6272 1.5984 1.1952C1.4832 1.0944 1.0512 0.6912 0.936 0.648C0.6912 0.9792 0.4176 1.2672 0.1584 1.584C0.0432 1.728 -0.1296 1.8144 -0.1296 2.0736C-0.1296 2.3184 0.0576 2.3184 0.2448 2.4048C0.9072 2.6784 1.7136 2.88 2.6064 2.88C2.7648 2.88 2.9088 2.8656 3.0528 2.8368C3.7728 2.6784 4.392 2.2032 4.9104 1.6992C5.472 1.152 6.12 0.4176 6.12 -0.6048C6.12 -1.1088 5.9472 -1.5264 5.7168 -1.8576C5.6448 -1.9728 5.544 -2.0304 5.544 -2.2176V-2.4048V-4.6512C5.7744 -4.6512 6.0192 -4.6368 6.2208 -4.68L6.2928 -4.7952C6.408 -5.2128 6.552 -5.616 6.6816 -6.0192C6.2928 -6.0192 5.8896 -6.0048 5.544 -6.048C5.2992 -6.3072 5.0832 -6.6096 4.8528 -6.8976ZM2.16 -4.6512H4.176V-1.9872V-1.8864C4.176 -1.6992 4.104 -1.656 3.9456 -1.5984C3.7728 -1.4976 3.6144 -1.4112 3.4416 -1.3248L2.808 -0.9936C2.7648 -0.9648 2.6784 -0.8928 2.6208 -0.8928C2.5056 -0.8928 2.4624 -1.08 2.4336 -1.1376C2.3328 -1.3248 2.16 -1.5696 2.16 -1.8432V-4.6512Z"/>
+ <path id="g113" d="M4.896 -8.2944C4.8096 -8.2512 4.4352 -8.0496 4.3776 -7.992C4.2912 -7.9056 4.3344 -7.7472 4.1472 -7.7472C4.0608 -7.7472 3.96 -7.8192 3.8736 -7.848C4.0176 -7.992 4.9248 -8.8704 4.9392 -8.9568C4.9392 -9.1728 4.4928 -9.3024 4.3488 -9.3024C4.0896 -9.3024 3.8736 -9.1584 3.7008 -9.0432C3.3552 -8.856 2.9952 -8.6688 2.9952 -8.1648C2.9952 -7.9488 3.0672 -7.8336 3.1536 -7.6896C3.2688 -7.488 3.456 -7.2864 3.7584 -7.2864C4.0464 -7.2864 4.2912 -7.4736 4.536 -7.6176C4.7088 -7.7184 4.9536 -7.8912 4.9536 -8.1216V-8.136C4.9536 -8.1936 4.9248 -8.2512 4.896 -8.2944ZM3.6576 -8.0928C3.6432 -8.1936 3.6288 -8.2944 3.6288 -8.3808C3.6288 -8.5824 3.7152 -8.8416 3.9312 -8.8416C4.0608 -8.8416 4.1904 -8.784 4.2912 -8.7264L3.6576 -8.0928ZM0.1584 -5.6016C0.2592 -5.6448 0.3456 -5.688 0.4608 -5.7024C0.6768 -5.7024 0.9072 -5.5584 0.9792 -5.3424C1.008 -5.256 1.008 -5.1552 1.008 -5.0544V-1.872V-1.728C1.008 -1.5552 0.9504 -1.5264 0.8352 -1.44C0.72 -1.368 0.5904 -1.2816 0.4896 -1.1952C1.0944 -0.7632 1.6272 -0.2448 2.2608 0.1584L2.448 0.072L4.4784 -1.3536C4.4784 -0.8928 4.6368 -0.4608 4.9392 -0.1152C4.9968 -0.0432 5.1984 0.1584 5.3136 0.1584C5.3568 0.144 5.4 0.1152 5.4288 0.0864L5.6304 -0.1152C5.7168 -0.1872 6.4224 -0.8064 6.4224 -0.864C6.0192 -1.2816 5.832 -1.7568 5.832 -2.4912C5.832 -2.7072 5.8464 -2.9232 5.8464 -3.1392V-6.8976C5.5152 -6.768 5.1984 -6.6096 4.8672 -6.4656L4.6224 -6.3648C4.5216 -6.2928 4.464 -6.2928 4.464 -6.1344C4.464 -6.0768 4.4784 -6.0192 4.4784 -5.976V-2.088C4.4784 -2.0304 4.4928 -1.9584 4.4928 -1.9008C4.4928 -1.7136 4.3632 -1.656 4.2336 -1.584L3.7008 -1.2096C3.6288 -1.1664 3.528 -1.0512 3.4416 -1.0512S3.2544 -1.1808 3.1824 -1.2384L2.6208 -1.6704C2.4912 -1.7712 2.3616 -1.8144 2.3616 -2.0448C2.3616 -2.1168 2.376 -2.1888 2.376 -2.2464V-4.5504V-4.968C2.376 -5.1696 2.376 -5.3712 2.3472 -5.5728C2.2752 -6.0048 2.088 -6.4368 1.7856 -6.768C1.7568 -6.8112 1.7136 -6.8688 1.656 -6.8688S1.3248 -6.6816 1.224 -6.624L0.4896 -6.1344C0.3456 -6.048 0.144 -5.9904 0.144 -5.76C0.144 -5.7024 0.1584 -5.6448 0.1584 -5.6016Z"/>
+ <path id="g114" d="M5.22 -7.788C5.004 -7.944 4.824 -8.076 4.476 -8.076C4.08 -8.076 3.684 -7.836 3.54 -7.512C3.18 -7.896 2.82 -8.352 2.268 -8.436C2.268 -8.436 2.052 -8.46 2.052 -8.46S1.8 -8.448 1.8 -8.436C0.816 -8.292 0.204 -7.32 0.204 -6.372C0.204 -5.748 0.456 -5.184 0.888 -4.98C1.056 -4.908 1.224 -4.92 1.392 -4.884C1.596 -4.836 1.812 -4.632 1.812 -4.38C1.812 -4.104 1.62 -3.768 1.296 -3.768C1.044 -3.768 0.828 -3.924 0.696 -4.056C0.672 -4.092 0.6 -4.2 0.54 -4.2S0.36 -4.128 0.36 -4.068C0.36 -4.032 0.384 -4.008 0.396 -3.984C0.6 -3.72 0.936 -3.492 1.356 -3.492C1.992 -3.588 2.256 -4.128 2.256 -4.764C2.256 -4.788 2.256 -4.824 2.256 -4.848C2.232 -5.28 1.98 -5.76 1.548 -5.904C1.392 -5.952 1.236 -5.94 1.08 -5.964C0.804 -6.012 0.528 -6.18 0.456 -6.468C0.444 -6.468 0.444 -6.792 0.456 -6.792C0.516 -7.2 0.732 -7.74 1.272 -7.74C1.92 -7.74 2.352 -7.116 2.616 -6.792C2.76 -6.624 2.904 -6.456 3.012 -6.264C3.324 -5.7 3.348 -5.028 3.348 -4.392C3.348 -4.272 3.348 -4.152 3.348 -4.02C3.348 -3.288 3.084 -2.76 2.748 -2.352C2.688 -2.292 2.556 -2.112 2.46 -2.112C2.412 -2.112 2.376 -2.136 2.328 -2.148C2.244 -2.172 2.16 -2.184 2.076 -2.184C1.26 -2.184 0.588 -1.56 0.588 -0.804C0.588 -0.396 0.768 -0.144 0.984 0.084H0.996L1.176 -0.096V-0.108C0.996 -0.276 0.84 -0.468 0.84 -0.768C0.84 -1.056 1.032 -1.368 1.344 -1.368C1.344 -1.368 1.356 -1.368 1.356 -1.368C2.232 -1.308 2.76 -0.444 3.36 0C3.42 0.048 3.516 0.132 3.6 0.132C3.636 0.132 3.672 0.108 3.708 0.084L3.972 -0.132C4.332 -0.444 4.752 -0.696 5.088 -1.032L5.556 -0.708L6.348 -0.18C6.42 -0.132 6.78 0.132 6.852 0.132C6.864 0.132 6.864 0.132 6.876 0.132C6.948 0.132 7.044 0.072 7.116 0.036C7.572 -0.192 8.256 -0.504 8.604 -0.804C9.06 -1.212 9.348 -1.788 9.444 -2.388C9.468 -2.532 9.492 -2.688 9.492 -2.844C9.492 -2.88 9.492 -2.904 9.492 -2.94C9.432 -3.504 8.88 -3.756 8.496 -4.092C8.304 -4.26 8.124 -4.476 8.088 -4.74C8.088 -4.824 8.088 -4.908 8.1 -4.992C8.16 -5.256 8.292 -5.496 8.472 -5.64L8.556 -5.472C8.64 -5.52 8.7 -5.592 8.76 -5.664L9.132 -6.06C9.192 -6.132 9.3 -6.204 9.3 -6.3C9.3 -6.3 9.3 -6.312 9.3 -6.312L9.492 -6.432L9.36 -6.672C9.312 -6.648 9.24 -6.576 9.192 -6.576C9.132 -6.576 9.096 -6.66 9.084 -6.696L8.904 -6.996C8.532 -7.608 7.992 -8.46 7.056 -8.46C6.384 -8.46 5.988 -8.052 5.652 -7.692C5.736 -8.016 5.832 -8.328 5.94 -8.628C5.904 -8.628 5.856 -8.64 5.808 -8.64C5.628 -8.64 5.604 -8.52 5.532 -8.4C5.412 -8.208 5.292 -8.004 5.22 -7.788ZM2.772 -1.932C3.144 -2.124 3.468 -2.376 3.828 -2.58L4.104 -2.748C4.188 -2.808 4.248 -2.844 4.248 -2.988C4.248 -3.036 4.248 -3.084 4.248 -3.12C4.248 -3.324 4.272 -3.516 4.272 -3.72C4.284 -3.984 4.308 -4.236 4.32 -4.5C4.332 -4.5 4.332 -5.004 4.332 -5.004S4.32 -5.94 4.26 -5.94C4.188 -6.384 4.044 -6.792 3.828 -7.14C3.792 -7.188 3.732 -7.248 3.732 -7.32C3.732 -7.404 3.816 -7.476 3.864 -7.536C4.032 -7.704 4.26 -7.812 4.488 -7.812C4.596 -7.812 4.704 -7.788 4.812 -7.74C4.896 -7.692 5.088 -7.608 5.088 -7.488C5.088 -7.44 5.064 -7.392 5.04 -7.344C4.86 -6.804 4.752 -6.264 4.752 -5.568C4.752 -5.508 4.752 -5.46 4.752 -5.412C4.86 -4.536 5.616 -3.888 5.7 -3C5.7 -3 5.676 -2.496 5.652 -2.496C5.568 -2.04 5.34 -1.632 5.004 -1.308C4.824 -1.128 4.584 -0.96 4.308 -0.96C3.948 -0.96 3.648 -1.224 3.432 -1.392L2.772 -1.932ZM5.82 -1.872C6.108 -2.34 6.312 -2.844 6.504 -3.36C6.528 -3.432 6.672 -3.816 6.672 -3.9C6.672 -3.996 6.516 -4.188 6.504 -4.212L6.18 -4.74C5.832 -5.316 5.532 -5.94 5.532 -6.684C5.532 -6.78 5.544 -6.876 5.556 -6.972C5.556 -7.044 5.556 -7.116 5.592 -7.188C5.772 -7.5 6.048 -7.932 6.456 -7.932C7.236 -7.932 7.68 -7.176 7.932 -6.708L8.22 -6.12C8.256 -6.06 8.316 -5.976 8.316 -5.916C8.316 -5.832 8.184 -5.772 8.16 -5.748C7.764 -5.352 7.32 -4.824 7.32 -4.14C7.32 -3.732 7.512 -3.528 7.764 -3.312C8.148 -3 8.868 -2.7 8.868 -2.04C8.868 -1.5 8.532 -1.092 8.22 -0.852C8.148 -0.804 7.86 -0.6 7.764 -0.6C7.752 -0.6 7.752 -0.6 7.74 -0.6C7.68 -0.612 7.32 -0.864 7.2 -0.948L6.264 -1.584C6.12 -1.68 5.976 -1.788 5.82 -1.872Z"/>
+ <path id="g115" d="M5.4288 -10.0512L5.328 -9.7056L6.048 -9.504C6.0192 -9.3168 5.9472 -9.1296 5.8752 -8.9424C5.1696 -6.984 3.312 -5.7024 1.728 -4.752C1.3824 -4.5504 0.4896 -4.0464 0.1584 -3.888C0.4176 -3.4128 0.7776 -2.7936 1.0368 -2.3616C1.0512 -2.3184 1.08 -2.2608 1.1376 -2.232C1.152 -2.232 1.2672 -2.2176 1.2672 -2.2464C2.7072 -2.7216 4.3632 -3.3264 6.0768 -3.3264C6.4944 -3.3264 6.768 -3.2256 7.0272 -2.9952C7.5024 -2.592 7.6896 -1.9872 7.6896 -1.3824C7.6896 -1.2528 7.6752 -1.1088 7.6608 -0.9648C7.4736 0.216 6.6384 1.296 5.4432 1.584C5.2416 1.6272 5.0256 1.656 4.824 1.656C4.3776 1.6416 3.7728 1.368 3.7728 0.8064C3.7872 0.6192 3.888 0.4752 4.0176 0.3456C4.248 0.1152 4.5936 -0.0864 4.5936 -0.4464C4.5936 -0.4752 4.5792 -0.5184 4.5792 -0.5472C4.5792 -0.6192 4.5504 -0.6912 4.5216 -0.7632C4.3776 -1.0512 4.0752 -1.224 3.7728 -1.224C3.1248 -1.224 2.8368 -0.5616 2.8368 0C2.8368 0.144 2.8512 0.2736 2.88 0.4032C3.1104 1.5408 4.392 2.2464 5.7168 2.2464C6.1488 2.2464 6.5664 2.1744 6.9696 2.0448C8.1648 1.6272 9.1152 0.6048 9.4032 -0.6336C9.4752 -0.9072 9.504 -1.2096 9.504 -1.4976C9.504 -2.7792 8.928 -3.816 8.2656 -4.4784C8.1792 -4.5648 7.8048 -4.9392 7.6752 -4.9392C7.5312 -4.9392 7.2432 -4.7952 7.1856 -4.7664L6.192 -4.4064L3.9168 -3.5568C3.4992 -3.3984 3.0816 -3.2112 2.6496 -3.0816C2.4048 -3.5568 2.1312 -3.9888 1.8864 -4.4496C2.3184 -4.536 3.1968 -4.9248 3.4704 -5.0256C5.328 -5.832 7.0416 -6.9696 8.1936 -8.5968C8.3232 -8.7696 8.4672 -8.9568 8.5536 -9.1584L5.4288 -10.0512Z"/>
+ <path id="g116" d="M5.916 -1.38C5.424 -1.104 5.076 -0.876 4.296 -0.876C3.984 -0.876 3.66 -0.924 3.384 -1.008C2.268 -1.344 1.428 -2.292 1.14 -3.408C1.056 -3.72 1.032 -4.044 1.032 -4.356C1.032 -4.716 1.068 -5.328 1.104 -5.604L1.176 -6.048C1.32 -6.78 1.62 -7.68 2.376 -7.992C2.472 -8.028 2.568 -8.052 2.664 -8.076C2.676 -8.076 3.096 -8.124 3.096 -8.1C3.276 -8.076 3.444 -8.016 3.6 -7.944C3.696 -7.896 3.768 -7.836 3.864 -7.788V-7.764C3.672 -7.692 3.264 -7.428 3.144 -7.356C2.772 -7.08 2.292 -6.708 2.292 -6.096C2.292 -5.604 2.676 -5.244 2.976 -4.884C3.168 -4.668 3.324 -4.404 3.336 -4.104C3.336 -3.816 3.168 -3.456 2.856 -3.456C2.844 -3.456 2.832 -3.456 2.82 -3.456C2.712 -3.456 2.592 -3.528 2.532 -3.588C2.256 -3.828 2.22 -4.248 2.1 -4.572L1.848 -4.5C1.872 -4.368 1.92 -4.248 1.968 -4.128C2.172 -3.66 2.496 -3.084 3.156 -3.084C3.756 -3.084 4.188 -3.576 4.188 -4.188C4.188 -4.392 4.14 -4.596 4.056 -4.788C4.02 -4.836 3.888 -5.064 3.888 -5.124C3.888 -5.208 4.056 -5.268 4.116 -5.268C4.116 -5.268 4.128 -5.268 4.128 -5.268C4.164 -5.268 4.308 -5.124 4.356 -5.076L4.86 -4.596C4.908 -4.548 5.004 -4.428 5.076 -4.428C5.136 -4.428 5.184 -4.512 5.22 -4.548L5.592 -4.944C5.652 -5.016 5.724 -5.1 5.796 -5.172C5.832 -5.208 5.88 -5.244 5.88 -5.292C5.88 -5.292 5.88 -5.304 5.88 -5.304C5.88 -5.376 5.784 -5.448 5.736 -5.496L5.268 -6C5.22 -6.06 5.148 -6.168 5.064 -6.168C5.064 -6.168 5.052 -6.168 5.052 -6.168C5.004 -6.168 4.74 -6 4.74 -6C4.668 -5.964 3.756 -5.4 3.732 -5.388C3.696 -5.388 3.672 -5.436 3.648 -5.46C3.444 -5.748 3.156 -6.228 3.156 -6.6C3.156 -7.08 3.528 -7.308 3.828 -7.476C3.888 -7.5 3.984 -7.584 4.068 -7.584C4.164 -7.584 4.284 -7.452 4.32 -7.428L4.716 -7.128C4.788 -7.08 4.884 -6.972 4.968 -6.972C5.004 -6.972 5.04 -6.984 5.076 -7.008C5.136 -7.044 5.688 -7.356 5.904 -7.452V-7.476L5.112 -8.076C5.064 -8.124 4.884 -8.268 4.8 -8.268C4.74 -8.268 4.68 -8.22 4.632 -8.196C4.56 -8.16 4.188 -7.932 4.116 -7.932S3.972 -8.004 3.912 -8.052C3.636 -8.256 3.348 -8.46 2.88 -8.46C2.604 -8.46 2.316 -8.388 2.076 -8.28C1.26 -7.908 0.804 -7.092 0.528 -6.276C0.336 -5.676 0.24 -5.04 0.216 -4.416C0.204 -4.416 0.204 -3.624 0.216 -3.624C0.372 -1.896 1.44 -0.24 3.108 0.096C3.156 0.108 3.756 0.192 3.756 0.144C3.888 0.12 4.02 0.012 4.14 -0.06L4.884 -0.504L5.616 -0.936C5.748 -1.008 5.928 -1.044 5.928 -1.248C5.928 -1.296 5.916 -1.344 5.916 -1.38Z"/>
+ <path id="g117" d="M6.168 -8.46C6.168 -8.448 6.168 -8.448 6.168 -8.436C6.168 -8.376 6.12 -8.352 6.072 -8.316L5.736 -8.1L4.656 -7.404C4.536 -7.296 4.368 -7.248 4.272 -7.116V-1.824C4.272 -1.788 4.272 -1.752 4.272 -1.716C4.272 -1.596 4.188 -1.584 4.104 -1.548C3.948 -1.476 3.804 -1.392 3.648 -1.32L3 -1.008C2.964 -0.996 2.76 -0.888 2.724 -0.888C2.688 -0.9 2.652 -0.936 2.628 -0.96C2.568 -1.02 1.752 -1.908 1.752 -1.908C2.784 -2.244 3.84 -3.036 3.84 -4.416C3.84 -4.512 3.84 -4.608 3.84 -4.716C3.852 -4.716 3.864 -5.46 3.864 -5.46S3.852 -5.94 3.84 -5.94C3.804 -6.312 3.708 -6.696 3.504 -7.02C3.204 -7.476 2.664 -7.872 2.04 -7.872C1.044 -7.872 0.204 -7.128 0.204 -6.24C0.204 -5.784 0.36 -5.4 0.624 -5.196C1.044 -4.86 1.884 -5.112 1.884 -4.38C1.884 -4.068 1.728 -3.732 1.44 -3.732C1.224 -3.732 0.984 -3.924 0.744 -3.924C0.552 -3.924 0.372 -3.78 0.372 -3.552C0.372 -3.204 0.804 -3.048 1.152 -3.048C1.176 -3.048 1.2 -3.048 1.224 -3.048C1.884 -3.156 2.148 -3.78 2.148 -4.44C2.148 -4.956 2.028 -5.388 1.74 -5.628C1.536 -5.808 1.224 -5.784 0.984 -5.82C0.756 -5.844 0.528 -5.964 0.528 -6.252C0.528 -6.78 1.044 -7.128 1.452 -7.128C1.608 -7.128 1.764 -7.08 1.884 -7.032C2.76 -6.636 2.952 -5.592 2.952 -4.584C2.952 -4.5 2.952 -4.428 2.952 -4.344C2.952 -4.152 2.952 -3.96 2.904 -3.768C2.724 -3 2.208 -2.316 1.452 -2.052C1.056 -1.92 0.624 -1.908 0.204 -1.908C0.204 -1.86 0.192 -1.8 0.192 -1.752C0.192 -1.572 0.336 -1.5 0.444 -1.416L0.732 -1.14C0.9 -0.996 1.068 -0.852 1.068 -0.576C1.068 -0.48 1.056 -0.384 1.032 -0.3C1.02 -0.228 0.972 -0.132 0.972 -0.06C0.972 -0.024 0.984 0 1.008 0.024C1.068 0.06 1.152 0.132 1.224 0.144C1.296 0.144 2.1 -0.264 2.328 -0.384L4.284 -1.332C4.32 -1.224 4.38 -1.128 4.428 -1.032C4.5 -0.888 4.704 -0.54 4.74 -0.396C4.752 -0.396 4.752 -0.288 4.752 -0.288S4.752 -0.18 4.74 -0.18C4.716 -0.18 4.668 -0.036 4.68 -0.036C4.68 0.036 4.764 0.108 4.812 0.156H4.824L6.06 -0.84L6.408 -1.128C6.456 -1.164 6.564 -1.224 6.564 -1.284C6.564 -1.356 6.468 -1.452 6.432 -1.488C6.276 -1.416 6.168 -1.32 5.964 -1.32C5.616 -1.32 5.352 -1.56 5.352 -1.956C5.352 -2.04 5.352 -2.112 5.352 -2.196V-6.756C5.352 -6.84 5.352 -6.936 5.352 -7.02C5.352 -7.656 5.772 -7.764 6.156 -8.052C6.168 -7.968 6.24 -7.92 6.312 -7.92C6.42 -7.92 6.528 -8.016 6.528 -8.136C6.528 -8.316 6.36 -8.46 6.168 -8.46Z"/>
+ <path id="g118" d="M7.5168 -10.0512L5.5296 -7.9344V-10.0512C5.4 -10.008 5.2704 -9.936 5.1408 -9.8784L4.4784 -9.5616C3.6864 -9.2016 2.9088 -8.8416 2.2032 -8.3232C1.1376 -7.56 0.1584 -6.4656 0.1584 -4.8816C0.1584 -4.5648 0.1872 -4.2336 0.2448 -3.9312C0.5328 -2.4048 1.4976 -0.9936 2.9088 -0.288C3.4848 -0.0288 4.1472 0.2016 4.9248 0.2016C5.2272 0.2016 5.4576 0.144 5.7312 0.0864C6.7536 -0.216 7.5456 -1.0224 8.2368 -1.8C8.9136 -2.592 9.7776 -3.4992 10.0512 -4.536C10.1232 -4.7808 10.1664 -5.04 10.1664 -5.2992C10.1664 -5.3712 10.1664 -5.4576 10.152 -5.5296C10.0656 -6.0768 9.7488 -6.5808 9.4608 -7.0416C9.1728 -7.5168 8.8704 -7.9632 8.5392 -8.4096C8.1648 -8.9424 7.776 -9.4464 7.5168 -10.0512ZM3.8448 -8.8704V-5.688C3.8448 -5.4144 3.8592 -5.1264 3.8592 -4.8384C3.8592 -4.0464 3.744 -3.4128 3.4272 -2.8512C3.3408 -2.664 3.2256 -2.5056 3.1248 -2.3184C2.9808 -2.4048 2.8656 -2.5344 2.7504 -2.664C2.088 -3.3264 1.5552 -4.4928 1.5552 -5.5584C1.5552 -6.8832 2.3184 -7.8336 3.1248 -8.424C3.3552 -8.5968 3.6 -8.7264 3.8448 -8.8704ZM3.4416 -2.0448L5.5152 -4.464C5.5728 -5.4 5.4864 -6.4368 5.544 -7.3584C5.7744 -7.6608 6.0336 -7.9344 6.2928 -8.2224C6.624 -7.8912 6.8976 -7.5168 7.1712 -7.1424C7.5456 -6.624 8.3232 -5.544 8.5968 -4.9968C8.712 -4.7808 8.784 -4.6656 8.784 -4.3632C8.784 -4.176 8.7408 -3.9744 8.7264 -3.8016C8.568 -2.304 7.5456 -1.224 6.0192 -1.224C5.1408 -1.224 4.4064 -1.512 3.7296 -1.872C3.6288 -1.9296 3.5424 -2.0016 3.4416 -2.0448Z"/>
+ <path id="g119" d="M7.5312 -10.0512C7.0128 -9.7632 6.4512 -9.648 5.8896 -9.648C5.4864 -9.648 5.1408 -9.7056 4.8096 -9.7776C4.7232 -9.792 4.608 -9.8352 4.5072 -9.8352S4.3056 -9.7632 4.2336 -9.7344L3.7872 -9.504C3.384 -9.3024 2.5632 -8.9136 2.232 -8.6688C0.8928 -7.7328 0.1584 -6.0768 0.1584 -4.4352C0.1584 -2.6784 0.9936 -1.3536 2.0736 -0.576C2.6928 -0.1296 3.5424 0.2016 4.5216 0.2016C6.3936 0.2016 8.2656 -0.9216 8.2656 -2.7216C8.1504 -2.6352 8.0496 -2.52 7.9344 -2.4192C7.2432 -1.8288 6.2208 -1.368 5.1264 -1.368C4.3776 -1.368 3.7296 -1.5984 3.2112 -1.9008C3.0672 -1.9872 2.9376 -2.1024 2.7936 -2.1744V-2.2032C3.3552 -2.5632 3.9168 -2.9376 4.4496 -3.3264L4.4784 -3.7152V-8.1648C5.0256 -8.0496 5.9328 -7.8912 6.4944 -7.8912C6.696 -7.8912 6.912 -7.92 7.0848 -8.064C7.4304 -8.352 7.488 -8.8848 7.5168 -9.3024C7.5312 -9.4752 7.5456 -9.6336 7.5456 -9.8064C7.5456 -9.8928 7.5456 -9.9792 7.5312 -10.0512ZM2.7936 -8.5824V-3.2976V-3.0672C2.7936 -2.7504 2.6784 -2.6208 2.52 -2.4336C1.8 -3.1536 1.2384 -4.1328 1.2384 -5.4432C1.2384 -6.8256 1.872 -8.0928 2.7936 -8.5824Z"/>
+ <use id="g120" transform="scale(1.2)" xlink:href="#g2"/>
+ <use id="g121" transform="scale(1.2)" xlink:href="#g50"/>
+ <use id="g122" transform="scale(1.2)" xlink:href="#g68"/>
+ <use id="g123" transform="scale(1.2)" xlink:href="#g67"/>
+ <use id="g124" transform="scale(1.2)" xlink:href="#g117"/>
+ <use id="g125" transform="scale(1.2)" xlink:href="#g37"/>
+ <use id="g126" transform="scale(1.2)" xlink:href="#g90"/>
+ <use id="g127" transform="scale(1.2)" xlink:href="#g116"/>
+ <use id="g128" transform="scale(1.2)" xlink:href="#g109"/>
+ <use id="g129" transform="scale(1.2)" xlink:href="#g21"/>
+ <use id="g130" transform="scale(1.2)" xlink:href="#g69"/>
+ <use id="g131" transform="scale(1.2)" xlink:href="#g16"/>
+ <use id="g132" transform="scale(1.2)" xlink:href="#g86"/>
+ <use id="g133" transform="scale(1.2)" xlink:href="#g63"/>
+ <use id="g134" transform="scale(1.2)" xlink:href="#g94"/>
+ <use id="g135" transform="scale(1.2)" xlink:href="#g4"/>
+ <use id="g136" transform="scale(1.2)" xlink:href="#g93"/>
+ <use id="g137" transform="scale(1.2)" xlink:href="#g30"/>
+ <use id="g138" transform="scale(1.2)" xlink:href="#g36"/>
+ <use id="g139" transform="scale(1.2)" xlink:href="#g29"/>
+ <use id="g140" transform="scale(1.2)" xlink:href="#g31"/>
+ <use id="g141" transform="scale(1.2)" xlink:href="#g39"/>
+ <use id="g142" transform="scale(1.2)" xlink:href="#g92"/>
+ <use id="g143" transform="scale(1.2)" xlink:href="#g15"/>
+ <use id="g144" transform="scale(1.2)" xlink:href="#g34"/>
+ <use id="g145" transform="scale(1.2)" xlink:href="#g42"/>
+ <use id="g146" transform="scale(1.2)" xlink:href="#g6"/>
+ <use id="g147" transform="scale(1.2)" xlink:href="#g13"/>
+ <use id="g148" transform="scale(1.2)" xlink:href="#g47"/>
+ <use id="g149" transform="scale(1.2)" xlink:href="#g49"/>
+ <use id="g150" transform="scale(1.2)" xlink:href="#g24"/>
+ <use id="g151" transform="scale(1.2)" xlink:href="#g38"/>
+ <use id="g152" transform="scale(1.2)" xlink:href="#g54"/>
+ <use id="g153" transform="scale(1.2)" xlink:href="#g3"/>
+ <use id="g154" transform="scale(1.2)" xlink:href="#g88"/>
+ <use id="g155" transform="scale(1.2)" xlink:href="#g85"/>
+ <use id="g156" transform="scale(1.2)" xlink:href="#g104"/>
+ <use id="g157" transform="scale(1.2)" xlink:href="#g14"/>
+ <use id="g158" transform="scale(1.2)" xlink:href="#g35"/>
+ <use id="g159" transform="scale(1.2)" xlink:href="#g102"/>
+ <use id="g160" transform="scale(1.2)" xlink:href="#g103"/>
+ <use id="g161" transform="scale(1.20026)" xlink:href="#g71"/>
+ </defs>
+ <g id="page1" transform="matrix(0.996 0 0 0.996 0 0)">
+ <use x="-13.4527" xlink:href="#g87" y="63.84"/>
+ <use x="-2.82872" xlink:href="#g81" y="63.84"/>
+ <use x="2.30009" xlink:href="#g44" y="63.84"/>
+ <use x="7.26012" xlink:href="#g45" y="63.84"/>
+ <use x="12.2201" xlink:href="#g43" y="63.84"/>
+ <use x="19.8201" xlink:href="#g43" y="63.84"/>
+ <use x="27.4202" xlink:href="#g46" y="63.84"/>
+ <use x="36.7806" xlink:href="#g89" y="63.84"/>
+ <use x="39.8918" xlink:href="#g64" y="63.84"/>
+ <use x="42.523" xlink:href="#g22" y="63.84"/>
+ <use x="52.2923" xlink:href="#g89" y="63.84"/>
+ <use x="56.2035" xlink:href="#g83" y="63.84"/>
+ <use x="60.6082" xlink:href="#g43" y="63.84"/>
+ <use x="68.2083" xlink:href="#g55" y="63.84"/>
+ <use x="76.217" xlink:href="#g100" y="63.84"/>
+ <use x="85.0487" xlink:href="#g59" y="63.84"/>
+ <use x="90.2311" xlink:href="#g26" y="63.84"/>
+ <use x="93.2535" xlink:href="#g64" y="63.84"/>
+ <use x="95.8847" xlink:href="#g83" y="63.84"/>
+ <use x="100.289" xlink:href="#g44" y="63.84"/>
+ <use x="105.25" xlink:href="#g59" y="63.84"/>
+ <use x="114.912" xlink:href="#g59" y="63.84"/>
+ <use x="120.095" xlink:href="#g45" y="63.84"/>
+ <use x="125.055" xlink:href="#g22" y="63.84"/>
+ <use x="130.344" xlink:href="#g64" y="63.84"/>
+ <use x="132.975" xlink:href="#g7" y="63.84"/>
+ <use x="136.286" xlink:href="#g81" y="63.84"/>
+ <use x="141.415" xlink:href="#g100" y="63.84"/>
+ <use x="145.766" xlink:href="#g45" y="63.84"/>
+ <use x="150.726" xlink:href="#g43" y="63.84"/>
+ <use x="162.806" xlink:href="#g26" y="63.84"/>
+ <use x="165.829" xlink:href="#g81" y="63.84"/>
+ <use x="170.958" xlink:href="#g100" y="63.84"/>
+ <use x="175.309" xlink:href="#g83" y="63.84"/>
+ <use x="179.714" xlink:href="#g43" y="63.84"/>
+ <use x="191.794" xlink:href="#g64" y="63.84"/>
+ <use x="194.425" xlink:href="#g56" y="63.84"/>
+ <use x="199.714" xlink:href="#g89" y="63.84"/>
+ <use x="203.625" xlink:href="#g45" y="63.84"/>
+ <use x="208.585" xlink:href="#g43" y="63.84"/>
+ <use x="220.666" xlink:href="#g82" y="63.84"/>
+ <use x="225.715" xlink:href="#g45" y="63.84"/>
+ <use x="230.675" xlink:href="#g81" y="63.84"/>
+ <use x="235.803" xlink:href="#g22" y="63.84"/>
+ <use x="245.573" xlink:href="#g81" y="63.84"/>
+ <use x="250.701" xlink:href="#g43" y="63.84"/>
+ <use x="258.301" xlink:href="#g44" y="63.84"/>
+ <use x="263.262" xlink:href="#g64" y="63.84"/>
+ <use x="265.893" xlink:href="#g59" y="63.84"/>
+ <use x="-13.4527" xlink:href="#g89" y="77.6107"/>
+ <use x="-9.54154" xlink:href="#g45" y="77.6107"/>
+ <use x="-4.58152" xlink:href="#g44" y="77.6107"/>
+ <use x="0.378502" xlink:href="#g7" y="77.6107"/>
+ <use x="9.1006" xlink:href="#g55" y="77.6107"/>
+ <use x="17.1094" xlink:href="#g75" y="77.6107"/>
+ <use x="20.9542" xlink:href="#g75" y="77.6107"/>
+ <use x="24.799" xlink:href="#g59" y="77.6107"/>
+ <use x="29.9814" xlink:href="#g7" y="77.6107"/>
+ <use x="33.2926" xlink:href="#g81" y="77.6107"/>
+ <use x="38.4214" xlink:href="#g100" y="77.6107"/>
+ <use x="42.7726" xlink:href="#g83" y="77.6107"/>
+ <use x="47.1774" xlink:href="#g111" y="77.6107"/>
+ <use x="52.5374" xlink:href="#g70" y="77.6107"/>
+ <use x="61.9483" xlink:href="#g48" y="77.6107"/>
+ <use x="71.3643" xlink:href="#g81" y="77.6107"/>
+ <use x="76.4931" xlink:href="#g100" y="77.6107"/>
+ <use x="80.8443" xlink:href="#g83" y="77.6107"/>
+ <use x="85.2491" xlink:href="#g43" y="77.6107"/>
+ <use x="98.26" xlink:href="#g64" y="77.6107"/>
+ <use x="100.891" xlink:href="#g56" y="77.6107"/>
+ <use x="106.18" xlink:href="#g89" y="77.6107"/>
+ <use x="110.091" xlink:href="#g45" y="77.6107"/>
+ <use x="115.051" xlink:href="#g43" y="77.6107"/>
+ <use x="128.062" xlink:href="#g23" y="77.6107"/>
+ <use x="136.551" xlink:href="#g26" y="77.6107"/>
+ <use x="139.573" xlink:href="#g81" y="77.6107"/>
+ <use x="144.702" xlink:href="#g100" y="77.6107"/>
+ <use x="154.464" xlink:href="#g89" y="77.6107"/>
+ <use x="157.576" xlink:href="#g64" y="77.6107"/>
+ <use x="160.207" xlink:href="#g7" y="77.6107"/>
+ <use x="168.929" xlink:href="#g59" y="77.6107"/>
+ <use x="174.111" xlink:href="#g43" y="77.6107"/>
+ <use x="181.711" xlink:href="#g83" y="77.6107"/>
+ <use x="186.116" xlink:href="#g7" y="77.6107"/>
+ <use x="194.838" xlink:href="#g75" y="77.6107"/>
+ <use x="198.683" xlink:href="#g81" y="77.6107"/>
+ <use x="203.812" xlink:href="#g44" y="77.6107"/>
+ <use x="214.183" xlink:href="#g89" y="77.6107"/>
+ <use x="218.094" xlink:href="#g83" y="77.6107"/>
+ <use x="222.499" xlink:href="#g77" y="77.6107"/>
+ <use x="228.89" xlink:href="#g83" y="77.6107"/>
+ <use x="233.295" xlink:href="#g7" y="77.6107"/>
+ <use x="236.606" xlink:href="#g45" y="77.6107"/>
+ <use x="241.566" xlink:href="#g83" y="77.6107"/>
+ <use x="245.971" xlink:href="#g100" y="77.6107"/>
+ <use x="255.733" xlink:href="#g59" y="77.6107"/>
+ <use x="260.915" xlink:href="#g22" y="77.6107"/>
+ <use x="266.204" xlink:href="#g64" y="77.6107"/>
+ <use x="268.835" xlink:href="#g72" y="77.6107"/>
+ <use x="-13.4527" xlink:href="#g56" y="91.3815"/>
+ <use x="-8.16395" xlink:href="#g64" y="91.3815"/>
+ <use x="-5.53273" xlink:href="#g89" y="91.3815"/>
+ <use x="-1.62153" xlink:href="#g75" y="91.3815"/>
+ <use x="2.22327" xlink:href="#g64" y="91.3815"/>
+ <use x="4.8545" xlink:href="#g44" y="91.3815"/>
+ <use x="9.81452" xlink:href="#g17" y="91.3815"/>
+ <use x="20.5198" xlink:href="#g83" y="91.3815"/>
+ <use x="24.9246" xlink:href="#g26" y="91.3815"/>
+ <use x="27.947" xlink:href="#g64" y="91.3815"/>
+ <use x="30.5783" xlink:href="#g7" y="91.3815"/>
+ <use x="33.8895" xlink:href="#g70" y="91.3815"/>
+ <use x="42.39" xlink:href="#g52" y="91.3815"/>
+ <use x="52.614" xlink:href="#g83" y="91.3815"/>
+ <use x="57.0188" xlink:href="#g22" y="91.3815"/>
+ <use x="66.8081" xlink:href="#g22" y="91.3815"/>
+ <use x="72.0969" xlink:href="#g64" y="91.3815"/>
+ <use x="74.7281" xlink:href="#g59" y="91.3815"/>
+ <use x="79.9105" xlink:href="#g43" y="91.3815"/>
+ <use x="92.0111" xlink:href="#g7" y="91.3815"/>
+ <use x="95.3223" xlink:href="#g83" y="91.3815"/>
+ <use x="99.727" xlink:href="#g43" y="91.3815"/>
+ <use x="107.327" xlink:href="#g57" y="91.3815"/>
+ <use x="115.816" xlink:href="#g100" y="91.3815"/>
+ <use x="124.668" xlink:href="#g64" y="91.3815"/>
+ <use x="127.299" xlink:href="#g44" y="91.3815"/>
+ <use x="132.259" xlink:href="#g75" y="91.3815"/>
+ <use x="136.104" xlink:href="#g64" y="91.3815"/>
+ <use x="138.735" xlink:href="#g22" y="91.3815"/>
+ <use x="144.024" xlink:href="#g45" y="91.3815"/>
+ <use x="148.984" xlink:href="#g44" y="91.3815"/>
+ <use x="153.944" xlink:href="#g7" y="91.3815"/>
+ <use x="161.755" xlink:href="#g45" y="91.3815"/>
+ <use x="166.715" xlink:href="#g7" y="91.3815"/>
+ <use x="174.527" xlink:href="#g26" y="91.3815"/>
+ <use x="177.55" xlink:href="#g59" y="91.3815"/>
+ <use x="182.732" xlink:href="#g1" y="91.3815"/>
+ <use x="190.981" xlink:href="#g100" y="91.3815"/>
+ <use x="195.332" xlink:href="#g83" y="91.3815"/>
+ <use x="204.237" xlink:href="#g83" y="91.3815"/>
+ <use x="208.642" xlink:href="#g7" y="91.3815"/>
+ <use x="216.454" xlink:href="#g23" y="91.3815"/>
+ <use x="224.943" xlink:href="#g26" y="91.3815"/>
+ <use x="227.965" xlink:href="#g81" y="91.3815"/>
+ <use x="233.094" xlink:href="#g100" y="91.3815"/>
+ <use x="241.946" xlink:href="#g43" y="91.3815"/>
+ <use x="249.546" xlink:href="#g59" y="91.3815"/>
+ <use x="254.728" xlink:href="#g17" y="91.3815"/>
+ <use x="260.933" xlink:href="#g44" y="91.3815"/>
+ <use x="265.893" xlink:href="#g59" y="91.3815"/>
+ <use x="-13.4527" xlink:href="#g59" y="105.043"/>
+ <use x="-8.27034" xlink:href="#g26" y="105.043"/>
+ <use x="-5.24794" xlink:href="#g64" y="105.043"/>
+ <use x="-2.61671" xlink:href="#g82" y="105.043"/>
+ <use x="2.43208" xlink:href="#g45" y="105.043"/>
+ <use x="7.3921" xlink:href="#g59" y="105.043"/>
+ <use x="12.5745" xlink:href="#g43" y="105.043"/>
+ <use x="24.7919" xlink:href="#g83" y="105.043"/>
+ <use x="29.1967" xlink:href="#g100" y="105.043"/>
+ <use x="33.5479" xlink:href="#g59" y="105.043"/>
+ <use x="38.7303" xlink:href="#g7" y="105.043"/>
+ <use x="46.6589" xlink:href="#g28" y="105.043"/>
+ <use x="51.9477" xlink:href="#g81" y="105.043"/>
+ <use x="57.0765" xlink:href="#g26" y="105.043"/>
+ <use x="60.0989" xlink:href="#g45" y="105.043"/>
+ <use x="65.0589" xlink:href="#g58" y="105.043"/>
+ <use x="73.8677" xlink:href="#g7" y="105.043"/>
+ <use x="81.7963" xlink:href="#g45" y="105.043"/>
+ <use x="86.7563" xlink:href="#g7" y="105.043"/>
+ <use x="94.6849" xlink:href="#g32" y="105.043"/>
+ <use x="103.005" xlink:href="#g64" y="105.043"/>
+ <use x="105.636" xlink:href="#g89" y="105.043"/>
+ <use x="108.747" xlink:href="#g64" y="105.043"/>
+ <use x="115.996" xlink:href="#g83" y="105.043"/>
+ <use x="120.401" xlink:href="#g44" y="105.043"/>
+ <use x="125.361" xlink:href="#g64" y="105.043"/>
+ <use x="127.992" xlink:href="#g43" y="105.043"/>
+ <use x="140.209" xlink:href="#g59" y="105.043"/>
+ <use x="145.392" xlink:href="#g22" y="105.043"/>
+ <use x="155.298" xlink:href="#g43" y="105.043"/>
+ <use x="162.898" xlink:href="#g64" y="105.043"/>
+ <use x="165.529" xlink:href="#g44" y="105.043"/>
+ <use x="170.489" xlink:href="#g64" y="105.043"/>
+ <use x="173.12" xlink:href="#g43" y="105.043"/>
+ <use x="185.338" xlink:href="#g27" y="105.043"/>
+ <use x="193.347" xlink:href="#g44" y="105.043"/>
+ <use x="198.307" xlink:href="#g64" y="105.043"/>
+ <use x="200.938" xlink:href="#g59" y="105.043"/>
+ <use x="206.12" xlink:href="#g43" y="105.043"/>
+ <use x="218.338" xlink:href="#g82" y="105.043"/>
+ <use x="223.386" xlink:href="#g45" y="105.043"/>
+ <use x="228.346" xlink:href="#g64" y="105.043"/>
+ <use x="230.978" xlink:href="#g111" y="105.043"/>
+ <use x="240.955" xlink:href="#g44" y="105.043"/>
+ <use x="245.915" xlink:href="#g81" y="105.043"/>
+ <use x="251.044" xlink:href="#g84" y="105.043"/>
+ <use x="256.475" xlink:href="#g100" y="105.043"/>
+ <use x="260.826" xlink:href="#g45" y="105.043"/>
+ <use x="265.786" xlink:href="#g22" y="105.043"/>
+ <use x="-13.4527" xlink:href="#g81" y="118.705"/>
+ <use x="-8.32393" xlink:href="#g40" y="118.705"/>
+ <use x="-3.03514" xlink:href="#g26" y="118.705"/>
+ <use x="-0.0127346" xlink:href="#g59" y="118.705"/>
+ <use x="5.16967" xlink:href="#g7" y="118.705"/>
+ <use x="8.48086" xlink:href="#g64" y="118.705"/>
+ <use x="11.1121" xlink:href="#g81" y="118.705"/>
+ <use x="16.2409" xlink:href="#g44" y="118.705"/>
+ <use x="21.2009" xlink:href="#g83" y="118.705"/>
+ <use x="25.6057" xlink:href="#g43" y="118.705"/>
+ <use x="38.0057" xlink:href="#g75" y="118.705"/>
+ <use x="41.8505" xlink:href="#g81" y="118.705"/>
+ <use x="46.9793" xlink:href="#g100" y="118.705"/>
+ <use x="51.3305" xlink:href="#g57" y="118.705"/>
+ <use x="59.8193" xlink:href="#g100" y="118.705"/>
+ <use x="64.1705" xlink:href="#g83" y="118.705"/>
+ <use x="68.5753" xlink:href="#g43" y="118.705"/>
+ <use x="76.1753" xlink:href="#g82" y="118.705"/>
+ <use x="81.2241" xlink:href="#g45" y="118.705"/>
+ <use x="86.1842" xlink:href="#g83" y="118.705"/>
+ <use x="95.3889" xlink:href="#g89" y="118.705"/>
+ <use x="99.3001" xlink:href="#g45" y="118.705"/>
+ <use x="104.26" xlink:href="#g89" y="118.705"/>
+ <use x="108.171" xlink:href="#g75" y="118.705"/>
+ <use x="112.016" xlink:href="#g64" y="118.705"/>
+ <use x="114.647" xlink:href="#g56" y="118.705"/>
+ <use x="119.936" xlink:href="#g64" y="118.705"/>
+ <use x="122.567" xlink:href="#g7" y="118.705"/>
+ <use x="130.679" xlink:href="#g26" y="118.705"/>
+ <use x="133.701" xlink:href="#g59" y="118.705"/>
+ <use x="138.883" xlink:href="#g1" y="118.705"/>
+ <use x="147.132" xlink:href="#g100" y="118.705"/>
+ <use x="151.483" xlink:href="#g64" y="118.705"/>
+ <use x="154.115" xlink:href="#g111" y="118.705"/>
+ <use x="-13.4527" xlink:href="#g161" y="249.832"/>
+ <use x="47.1072" xlink:href="#g138" y="203.607"/>
+ <use x="50.0585" xlink:href="#g134" y="203.607"/>
+ <use x="59.8848" xlink:href="#g118" y="203.607"/>
+ <use x="70.3073" xlink:href="#g61" y="203.607"/>
+ <use x="75.5377" xlink:href="#g112" y="203.607"/>
+ <use x="82.4801" xlink:href="#g106" y="203.607"/>
+ <use x="87.0161" xlink:href="#g8" y="203.607"/>
+ <use x="90.7353" xlink:href="#g121" y="203.607"/>
+ <use x="100.968" xlink:href="#g133" y="203.607"/>
+ <use x="105.852" xlink:href="#g134" y="203.607"/>
+ <use x="110.086" xlink:href="#g145" y="203.607"/>
+ <use x="120.362" xlink:href="#g80" y="203.607"/>
+ <use x="128.702" xlink:href="#g8" y="203.607"/>
+ <use x="132.422" xlink:href="#g113" y="203.607"/>
+ <use x="139.101" xlink:href="#g112" y="203.607"/>
+ <use x="146.043" xlink:href="#g106" y="203.607"/>
+ <use x="150.579" xlink:href="#g8" y="203.607"/>
+ <use x="154.298" xlink:href="#g121" y="203.607"/>
+ <use x="164.531" xlink:href="#g133" y="203.607"/>
+ <use x="169.415" xlink:href="#g130" y="203.607"/>
+ <use x="174.677" xlink:href="#g158" y="203.607"/>
+ <use x="185.621" xlink:href="#g80" y="203.607"/>
+ <use x="193.961" xlink:href="#g101" y="203.607"/>
+ <use x="200.64" xlink:href="#g61" y="203.607"/>
+ <use x="205.871" xlink:href="#g79" y="203.607"/>
+ <use x="210.799" xlink:href="#g106" y="203.607"/>
+ <use x="215.335" xlink:href="#g62" y="203.607"/>
+ <use x="222.256" xlink:href="#g76" y="203.607"/>
+ <use x="225.856" xlink:href="#g110" y="203.607"/>
+ <use x="231.81" xlink:href="#g60" y="203.607"/>
+ <use x="238.55" xlink:href="#g101" y="203.607"/>
+ <use x="250.822" xlink:href="#g148" y="203.607"/>
+ <use x="256.911" xlink:href="#g142" y="203.607"/>
+ <use x="262.489" xlink:href="#g133" y="203.607"/>
+ <use x="272.965" xlink:href="#g133" y="203.607"/>
+ <use x="277.849" xlink:href="#g130" y="203.607"/>
+ <use x="283.112" xlink:href="#g158" y="203.607"/>
+ <use x="294.055" xlink:href="#g119" y="203.607"/>
+ <use x="302.576" xlink:href="#g8" y="203.607"/>
+ <use x="306.295" xlink:href="#g110" y="203.607"/>
+ <use x="312.25" xlink:href="#g18" y="203.607"/>
+ <use x="319.291" xlink:href="#g76" y="203.607"/>
+ <use x="322.892" xlink:href="#g107" y="203.607"/>
+ <use x="327.337" xlink:href="#g101" y="203.607"/>
+ <use x="334.016" xlink:href="#g61" y="203.607"/>
+ <use x="339.247" xlink:href="#g74" y="203.607"/>
+ <use x="351.006" xlink:href="#g146" y="203.607"/>
+ <use x="353.811" xlink:href="#g138" y="203.607"/>
+ <use x="356.763" xlink:href="#g142" y="203.607"/>
+ <use x="362.34" xlink:href="#g133" y="203.607"/>
+ <use x="372.817" xlink:href="#g133" y="203.607"/>
+ <use x="377.701" xlink:href="#g138" y="203.607"/>
+ <use x="380.652" xlink:href="#g134" y="203.607"/>
+ <use x="47.1072" xlink:href="#g136" y="219.015"/>
+ <use x="52.7516" xlink:href="#g134" y="219.015"/>
+ <use x="56.9855" xlink:href="#g131" y="219.015"/>
+ <use x="61.892" xlink:href="#g145" y="219.015"/>
+ <use x="66.576" xlink:href="#g156" y="219.015"/>
+ <use x="71.8383" xlink:href="#g148" y="219.015"/>
+ <use x="77.9274" xlink:href="#g155" y="219.015"/>
+ <use x="85.2962" xlink:href="#g140" y="219.015"/>
+ <use x="88.3362" xlink:href="#g138" y="219.015"/>
+ <use x="91.2875" xlink:href="#g155" y="219.015"/>
+ <use x="98.6563" xlink:href="#g154" y="219.015"/>
+ <use x="104.256" xlink:href="#g134" y="219.015"/>
+ <use x="108.49" xlink:href="#g142" y="219.015"/>
+ <use x="118.515" xlink:href="#g126" y="219.015"/>
+ <use x="127.48" xlink:href="#g140" y="219.015"/>
+ <use x="130.52" xlink:href="#g130" y="219.015"/>
+ <use x="135.782" xlink:href="#g149" y="219.015"/>
+ <use x="141.311" xlink:href="#g138" y="219.015"/>
+ <use x="144.262" xlink:href="#g134" y="219.015"/>
+ <use x="148.496" xlink:href="#g145" y="219.015"/>
+ <use x="153.18" xlink:href="#g138" y="219.015"/>
+ <use x="156.131" xlink:href="#g142" y="219.015"/>
+ <use x="161.709" xlink:href="#g154" y="219.015"/>
+ <use x="167.309" xlink:href="#g145" y="219.015"/>
+ <use x="171.993" xlink:href="#g148" y="219.015"/>
+ <use x="178.082" xlink:href="#g141" y="219.015"/>
+ <use x="186.388" xlink:href="#g134" y="219.015"/>
+ <use x="190.622" xlink:href="#g142" y="219.015"/>
+ <use x="196.2" xlink:href="#g147" y="219.015"/>
+ <use x="199.355" xlink:href="#g134" y="219.015"/>
+ <use x="208.036" xlink:href="#g152" y="219.015"/>
+ <use x="212.342" xlink:href="#g148" y="219.015"/>
+ <use x="218.431" xlink:href="#g141" y="219.015"/>
+ <use x="231.184" xlink:href="#g124" y="219.015"/>
+ <use x="239.441" xlink:href="#g132" y="219.015"/>
+ <use x="243.415" xlink:href="#g132" y="219.015"/>
+ <use x="247.388" xlink:href="#g143" y="219.015"/>
+ <use x="252.362" xlink:href="#g141" y="219.015"/>
+ <use x="260.668" xlink:href="#g144" y="219.015"/>
+ <use x="266.286" xlink:href="#g130" y="219.015"/>
+ <use x="271.548" xlink:href="#g136" y="219.015"/>
+ <use x="277.193" xlink:href="#g142" y="219.015"/>
+ <use x="282.771" xlink:href="#g134" y="219.015"/>
+ <use x="287.004" xlink:href="#g141" y="219.015"/>
+ <use x="295.31" xlink:href="#g134" y="219.015"/>
+ <use x="299.544" xlink:href="#g142" y="219.015"/>
+ <use x="305.122" xlink:href="#g147" y="219.015"/>
+ <use x="308.277" xlink:href="#g122" y="219.015"/>
+ <use x="317.364" xlink:href="#g127" y="219.015"/>
+ <use x="324.811" xlink:href="#g158" y="219.015"/>
+ <use x="334.609" xlink:href="#g138" y="219.015"/>
+ <use x="337.56" xlink:href="#g154" y="219.015"/>
+ <use x="347.607" xlink:href="#g128" y="219.015"/>
+ <use x="358.497" xlink:href="#g155" y="219.015"/>
+ <use x="365.866" xlink:href="#g130" y="219.015"/>
+ <use x="371.128" xlink:href="#g133" y="219.015"/>
+ <use x="376.012" xlink:href="#g134" y="219.015"/>
+ <use x="380.246" xlink:href="#g121" y="219.015"/>
+ <use x="47.1072" xlink:href="#g133" y="234.424"/>
+ <use x="51.9913" xlink:href="#g130" y="234.424"/>
+ <use x="57.2536" xlink:href="#g120" y="234.424"/>
+ <use x="68.1032" xlink:href="#g133" y="234.424"/>
+ <use x="72.9873" xlink:href="#g138" y="234.424"/>
+ <use x="75.9385" xlink:href="#g134" y="234.424"/>
+ <use x="85.8667" xlink:href="#g146" y="234.424"/>
+ <use x="88.3523" xlink:href="#g155" y="234.424"/>
+ <use x="95.7212" xlink:href="#g159" y="234.424"/>
+ <use x="100.695" xlink:href="#g142" y="234.424"/>
+ <use x="106.272" xlink:href="#g134" y="234.424"/>
+ <use x="116.201" xlink:href="#g127" y="234.424"/>
+ <use x="123.647" xlink:href="#g145" y="234.424"/>
+ <use x="128.331" xlink:href="#g135" y="234.424"/>
+ <use x="131.682" xlink:href="#g138" y="234.424"/>
+ <use x="134.634" xlink:href="#g142" y="234.424"/>
+ <use x="140.211" xlink:href="#g133" y="234.424"/>
+ <use x="145.095" xlink:href="#g148" y="234.424"/>
+ <use x="151.185" xlink:href="#g142" y="234.424"/>
+ <use x="156.762" xlink:href="#g136" y="234.424"/>
+ <use x="168.101" xlink:href="#g133" y="234.424"/>
+ <use x="172.985" xlink:href="#g134" y="234.424"/>
+ <use x="177.219" xlink:href="#g158" y="234.424"/>
+ <use x="188.265" xlink:href="#g115" y="234.424"/>
+ <use x="198.053" xlink:href="#g101" y="234.424"/>
+ <use x="204.733" xlink:href="#g8" y="234.424"/>
+ <use x="207.772" xlink:href="#g10" y="234.424"/>
+ <use x="212.106" xlink:href="#g106" y="234.424"/>
+ <use x="216.642" xlink:href="#g8" y="234.424"/>
+ <use x="220.361" xlink:href="#g74" y="234.424"/>
+ <use x="226.528" xlink:href="#g76" y="234.424"/>
+ <use x="230.128" xlink:href="#g11" y="234.424"/>
+ <use x="233.494" xlink:href="#g105" y="234.424"/>
+ <use x="243.208" xlink:href="#g106" y="234.424"/>
+ <use x="247.744" xlink:href="#g60" y="234.424"/>
+ <use x="260.178" xlink:href="#g41" y="234.424"/>
+ <use x="271.627" xlink:href="#g101" y="234.424"/>
+ <use x="278.306" xlink:href="#g112" y="234.424"/>
+ <use x="285.249" xlink:href="#g106" y="234.424"/>
+ <use x="289.785" xlink:href="#g60" y="234.424"/>
+ <use x="296.525" xlink:href="#g107" y="234.424"/>
+ <use x="300.971" xlink:href="#g8" y="234.424"/>
+ <use x="304.69" xlink:href="#g110" y="234.424"/>
+ <use x="310.644" xlink:href="#g18" y="234.424"/>
+ <use x="317.686" xlink:href="#g76" y="234.424"/>
+ <use x="321.286" xlink:href="#g106" y="234.424"/>
+ <use x="325.822" xlink:href="#g61" y="234.424"/>
+ <use x="331.052" xlink:href="#g9" y="234.424"/>
+ <use x="342.219" xlink:href="#g142" y="234.424"/>
+ <use x="347.796" xlink:href="#g143" y="234.424"/>
+ <use x="352.77" xlink:href="#g155" y="234.424"/>
+ <use x="365.833" xlink:href="#g142" y="234.424"/>
+ <use x="371.411" xlink:href="#g138" y="234.424"/>
+ <use x="374.362" xlink:href="#g155" y="234.424"/>
+ <use x="381.731" xlink:href="#g147" y="234.424"/>
+ <use x="47.1072" xlink:href="#g136" y="249.832"/>
+ <use x="52.7516" xlink:href="#g134" y="249.832"/>
+ <use x="56.9855" xlink:href="#g141" y="249.832"/>
+ <use x="65.2916" xlink:href="#g134" y="249.832"/>
+ <use x="69.5254" xlink:href="#g138" y="249.832"/>
+ <use x="72.4767" xlink:href="#g142" y="249.832"/>
+ <use x="78.0545" xlink:href="#g142" y="249.832"/>
+ <use x="83.6324" xlink:href="#g160" y="249.832"/>
+ <use x="89.7215" xlink:href="#g157" y="249.832"/>
+ <use x="94.9615" xlink:href="#g138" y="249.832"/>
+ <use x="97.9127" xlink:href="#g136" y="249.832"/>
+ <use x="110.524" xlink:href="#g136" y="249.832"/>
+ <use x="116.169" xlink:href="#g134" y="249.832"/>
+ <use x="120.403" xlink:href="#g150" y="249.832"/>
+ <use x="127.869" xlink:href="#g143" y="249.832"/>
+ <use x="132.843" xlink:href="#g145" y="249.832"/>
+ <use x="137.527" xlink:href="#g133" y="249.832"/>
+ <use x="142.411" xlink:href="#g134" y="249.832"/>
+ <use x="146.645" xlink:href="#g142" y="249.832"/>
+ <use x="159.19" xlink:href="#g138" y="249.832"/>
+ <use x="162.141" xlink:href="#g154" y="249.832"/>
+ <use x="167.741" xlink:href="#g123" y="249.832"/>
+ <use x="179.348" xlink:href="#g141" y="249.832"/>
+ <use x="187.654" xlink:href="#g130" y="249.832"/>
+ <use x="192.917" xlink:href="#g142" y="249.832"/>
+ <use x="205.462" xlink:href="#g139" y="249.832"/>
+ <use x="209.191" xlink:href="#g130" y="249.832"/>
+ <use x="214.453" xlink:href="#g142" y="249.832"/>
+ <use x="220.031" xlink:href="#g142" y="249.832"/>
+ <use x="232.576" xlink:href="#g133" y="249.832"/>
+ <use x="237.46" xlink:href="#g130" y="249.832"/>
+ <use x="242.722" xlink:href="#g137" y="249.832"/>
+ <use x="247.74" xlink:href="#g134" y="249.832"/>
+ <use x="251.974" xlink:href="#g145" y="249.832"/>
+ <use x="256.658" xlink:href="#g143" y="249.832"/>
+ <use x="268.599" xlink:href="#g133" y="249.832"/>
+ <use x="273.483" xlink:href="#g134" y="249.832"/>
+ <use x="277.717" xlink:href="#g153" y="249.832"/>
+ <use x="282.113" xlink:href="#g134" y="249.832"/>
+ <use x="286.347" xlink:href="#g142" y="249.832"/>
+ <use x="298.893" xlink:href="#g131" y="249.832"/>
+ <use x="303.799" xlink:href="#g134" y="249.832"/>
+ <use x="308.033" xlink:href="#g146" y="249.832"/>
+ <use x="310.519" xlink:href="#g143" y="249.832"/>
+ <use x="315.492" xlink:href="#g142" y="249.832"/>
+ <use x="321.07" xlink:href="#g133" y="249.832"/>
+ <use x="325.954" xlink:href="#g134" y="249.832"/>
+ <use x="330.188" xlink:href="#g145" y="249.832"/>
+ <use x="334.872" xlink:href="#g134" y="249.832"/>
+ <use x="346.073" xlink:href="#g129" y="249.832"/>
+ <use x="354.955" xlink:href="#g143" y="249.832"/>
+ <use x="359.929" xlink:href="#g145" y="249.832"/>
+ <use x="364.613" xlink:href="#g152" y="249.832"/>
+ <use x="368.919" xlink:href="#g160" y="249.832"/>
+ <use x="375.008" xlink:href="#g136" y="249.832"/>
+ <use x="380.652" xlink:href="#g134" y="249.832"/>
+ <use x="-13.4527" xlink:href="#g137" y="265.24"/>
+ <use x="-8.43511" xlink:href="#g138" y="265.24"/>
+ <use x="-5.48388" xlink:href="#g134" y="265.24"/>
+ <use x="-1.25" xlink:href="#g145" y="265.24"/>
+ <use x="3.43402" xlink:href="#g138" y="265.24"/>
+ <use x="6.38525" xlink:href="#g142" y="265.24"/>
+ <use x="11.9631" xlink:href="#g142" y="265.24"/>
+ <use x="17.541" xlink:href="#g134" y="265.24"/>
+ <use x="21.7749" xlink:href="#g142" y="265.24"/>
+ <use x="32.856" xlink:href="#g142" y="265.24"/>
+ <use x="38.4339" xlink:href="#g143" y="265.24"/>
+ <use x="43.4073" xlink:href="#g155" y="265.24"/>
+ <use x="56.2794" xlink:href="#g142" y="265.24"/>
+ <use x="61.8573" xlink:href="#g138" y="265.24"/>
+ <use x="64.8085" xlink:href="#g155" y="265.24"/>
+ <use x="72.1774" xlink:href="#g147" y="265.24"/>
+ <use x="80.8359" xlink:href="#g136" y="265.24"/>
+ <use x="86.4803" xlink:href="#g134" y="265.24"/>
+ <use x="90.7142" xlink:href="#g142" y="265.24"/>
+ <use x="96.2921" xlink:href="#g130" y="265.24"/>
+ <use x="101.554" xlink:href="#g148" y="265.24"/>
+ <use x="113.147" xlink:href="#g131" y="265.24"/>
+ <use x="118.053" xlink:href="#g134" y="265.24"/>
+ <use x="122.287" xlink:href="#g154" y="265.24"/>
+ <use x="127.887" xlink:href="#g138" y="265.24"/>
+ <use x="130.838" xlink:href="#g141" y="265.24"/>
+ <use x="139.144" xlink:href="#g141" y="265.24"/>
+ <use x="147.45" xlink:href="#g134" y="265.24"/>
+ <use x="151.684" xlink:href="#g142" y="265.24"/>
+ <use x="157.262" xlink:href="#g122" y="265.24"/>
+ <use x="167.406" xlink:href="#g127" y="265.24"/>
+ <use x="174.852" xlink:href="#g158" y="265.24"/>
+ <use x="185.707" xlink:href="#g138" y="265.24"/>
+ <use x="188.658" xlink:href="#g154" y="265.24"/>
+ <use x="199.761" xlink:href="#g136" y="265.24"/>
+ <use x="205.406" xlink:href="#g134" y="265.24"/>
+ <use x="209.639" xlink:href="#g150" y="265.24"/>
+ <use x="217.106" xlink:href="#g138" y="265.24"/>
+ <use x="220.057" xlink:href="#g120" y="265.24"/>
+ <use x="230.716" xlink:href="#g152" y="265.24"/>
+ <use x="235.022" xlink:href="#g148" y="265.24"/>
+ <use x="246.614" xlink:href="#g136" y="265.24"/>
+ <use x="252.259" xlink:href="#g140" y="265.24"/>
+ <use x="255.299" xlink:href="#g130" y="265.24"/>
+ <use x="260.561" xlink:href="#g148" y="265.24"/>
+ <use x="266.65" xlink:href="#g131" y="265.24"/>
+ <use x="271.557" xlink:href="#g134" y="265.24"/>
+ <use x="275.791" xlink:href="#g142" y="265.24"/>
+ <use x="281.368" xlink:href="#g121" y="265.24"/>
+ <use x="291.512" xlink:href="#g133" y="265.24"/>
+ <use x="296.396" xlink:href="#g130" y="265.24"/>
+ <use x="301.658" xlink:href="#g120" y="265.24"/>
+ <use x="312.317" xlink:href="#g134" y="265.24"/>
+ <use x="316.551" xlink:href="#g158" y="265.24"/>
+ <use x="327.405" xlink:href="#g146" y="265.24"/>
+ <use x="330.211" xlink:href="#g138" y="265.24"/>
+ <use x="333.162" xlink:href="#g155" y="265.24"/>
+ <use x="346.034" xlink:href="#g130" y="265.24"/>
+ <use x="351.296" xlink:href="#g148" y="265.24"/>
+ <use x="357.385" xlink:href="#g155" y="265.24"/>
+ <use x="370.258" xlink:href="#g131" y="265.24"/>
+ <use x="375.164" xlink:href="#g134" y="265.24"/>
+ <use x="379.398" xlink:href="#g151" y="265.24"/>
+ <use x="-13.4527" xlink:href="#g133" y="280.648"/>
+ <use x="-8.56866" xlink:href="#g134" y="280.648"/>
+ <use x="-4.33478" xlink:href="#g145" y="280.648"/>
+ <use x="5.14924" xlink:href="#g125" y="280.648"/>
+ <use x="15.7213" xlink:href="#g134" y="280.648"/>
+ <use x="19.9552" xlink:href="#g136" y="280.648"/>
+ <use x="25.5995" xlink:href="#g140" y="280.648"/>
+ <use x="28.6396" xlink:href="#g134" y="280.648"/>
+ <use x="32.8734" xlink:href="#g138" y="280.648"/>
+ <use x="35.8247" xlink:href="#g147" y="280.648"/>
+ <use x="38.9799" xlink:href="#g148" y="280.648"/>
+ <use x="45.069" xlink:href="#g142" y="280.648"/>
+ <use x="50.6468" xlink:href="#g136" y="280.648"/>
+ <use x="61.0912" xlink:href="#g136" y="280.648"/>
+ <use x="66.7356" xlink:href="#g148" y="280.648"/>
+ <use x="72.8246" xlink:href="#g147" y="280.648"/>
+ <use x="80.7799" xlink:href="#g130" y="280.648"/>
+ <use x="86.0422" xlink:href="#g148" y="280.648"/>
+ <use x="92.1312" xlink:href="#g158" y="280.648"/>
+ <use x="97.4825" xlink:href="#g142" y="280.648"/>
+ <use x="103.06" xlink:href="#g134" y="280.648"/>
+ <use x="107.294" xlink:href="#g137" y="280.648"/>
+ <use x="112.312" xlink:href="#g141" y="280.648"/>
+ <use x="120.618" xlink:href="#g134" y="280.648"/>
+ <use x="124.852" xlink:href="#g142" y="280.648"/>
+ <use x="135.23" xlink:href="#g150" y="280.648"/>
+ <use x="142.696" xlink:href="#g134" y="280.648"/>
+ <use x="146.93" xlink:href="#g145" y="280.648"/>
+ <use x="151.614" xlink:href="#g133" y="280.648"/>
+ <use x="156.498" xlink:href="#g134" y="280.648"/>
+ <use x="160.732" xlink:href="#g122" y="280.648"/>
+ <use x="-13.4527" xlink:href="#g95" y="416.504"/>
+ <use x="38.0278" xlink:href="#g15" y="377.984"/>
+ <use x="42.1722" xlink:href="#g92" y="377.984"/>
+ <use x="51.1086" xlink:href="#g63" y="377.984"/>
+ <use x="55.1787" xlink:href="#g94" y="377.984"/>
+ <use x="58.7069" xlink:href="#g39" y="377.984"/>
+ <use x="69.9168" xlink:href="#g88" y="377.984"/>
+ <use x="74.5835" xlink:href="#g69" y="377.984"/>
+ <use x="78.9687" xlink:href="#g13" y="377.984"/>
+ <use x="81.5981" xlink:href="#g13" y="377.984"/>
+ <use x="84.2275" xlink:href="#g31" y="377.984"/>
+ <use x="86.7608" xlink:href="#g36" y="377.984"/>
+ <use x="89.2202" xlink:href="#g85" y="377.984"/>
+ <use x="95.3609" xlink:href="#g94" y="377.984"/>
+ <use x="98.8891" xlink:href="#g92" y="377.984"/>
+ <use x="107.825" xlink:href="#g98" y="377.984"/>
+ <use x="116.366" xlink:href="#g42" y="377.984"/>
+ <use x="120.269" xlink:href="#g13" y="377.984"/>
+ <use x="122.898" xlink:href="#g94" y="377.984"/>
+ <use x="130.715" xlink:href="#g51" y="377.984"/>
+ <use x="137.567" xlink:href="#g36" y="377.984"/>
+ <use x="140.026" xlink:href="#g42" y="377.984"/>
+ <use x="143.929" xlink:href="#g85" y="377.984"/>
+ <use x="150.07" xlink:href="#g94" y="377.984"/>
+ <use x="153.598" xlink:href="#g30" y="377.984"/>
+ <use x="157.78" xlink:href="#g42" y="377.984"/>
+ <use x="161.683" xlink:href="#g94" y="377.984"/>
+ <use x="165.211" xlink:href="#g92" y="377.984"/>
+ <use x="169.859" xlink:href="#g16" y="377.984"/>
+ <use x="173.948" xlink:href="#g69" y="377.984"/>
+ <use x="178.333" xlink:href="#g85" y="377.984"/>
+ <use x="188.762" xlink:href="#g36" y="377.984"/>
+ <use x="191.222" xlink:href="#g92" y="377.984"/>
+ <use x="200.158" xlink:href="#g63" y="377.984"/>
+ <use x="204.228" xlink:href="#g94" y="377.984"/>
+ <use x="207.756" xlink:href="#g42" y="377.984"/>
+ <use x="215.948" xlink:href="#g73" y="377.984"/>
+ <use x="221.957" xlink:href="#g42" y="377.984"/>
+ <use x="225.86" xlink:href="#g65" y="377.984"/>
+ <use x="230.245" xlink:href="#g92" y="377.984"/>
+ <use x="234.893" xlink:href="#g29" y="377.984"/>
+ <use x="238.001" xlink:href="#g36" y="377.984"/>
+ <use x="240.46" xlink:href="#g6" y="377.984"/>
+ <use x="242.531" xlink:href="#g85" y="377.984"/>
+ <use x="248.672" xlink:href="#g94" y="377.984"/>
+ <use x="252.2" xlink:href="#g92" y="377.984"/>
+ <use x="38.0278" xlink:href="#g109" y="390.824"/>
+ <use x="47.1032" xlink:href="#g85" y="390.824"/>
+ <use x="53.2439" xlink:href="#g24" y="390.824"/>
+ <use x="59.466" xlink:href="#g94" y="390.824"/>
+ <use x="62.9942" xlink:href="#g36" y="390.824"/>
+ <use x="65.4536" xlink:href="#g54" y="390.824"/>
+ <use x="72.1763" xlink:href="#g4" y="390.824"/>
+ <use x="74.969" xlink:href="#g66" y="390.824"/>
+ <use x="80.0433" xlink:href="#g30" y="390.824"/>
+ <use x="84.2246" xlink:href="#g42" y="390.824"/>
+ <use x="88.128" xlink:href="#g13" y="390.824"/>
+ <use x="93.8915" xlink:href="#g94" y="390.824"/>
+ <use x="97.4198" xlink:href="#g36" y="390.824"/>
+ <use x="99.8791" xlink:href="#g92" y="390.824"/>
+ <use x="107.662" xlink:href="#g94" y="390.824"/>
+ <use x="111.19" xlink:href="#g36" y="390.824"/>
+ <use x="113.649" xlink:href="#g92" y="390.824"/>
+ <use x="118.297" xlink:href="#g6" y="390.824"/>
+ <use x="120.369" xlink:href="#g69" y="390.824"/>
+ <use x="124.754" xlink:href="#g39" y="390.824"/>
+ <use x="131.676" xlink:href="#g94" y="390.824"/>
+ <use x="135.204" xlink:href="#g35" y="390.824"/>
+ <use x="142.798" xlink:href="#g109" y="390.824"/>
+ <use x="151.873" xlink:href="#g13" y="390.824"/>
+ <use x="154.502" xlink:href="#g42" y="390.824"/>
+ <use x="158.406" xlink:href="#g65" y="390.824"/>
+ <use x="162.791" xlink:href="#g2" y="390.824"/>
+ <use x="167.087" xlink:href="#g85" y="390.824"/>
+ <use x="173.228" xlink:href="#g94" y="390.824"/>
+ <use x="176.756" xlink:href="#g92" y="390.824"/>
+ <use x="181.404" xlink:href="#g50" y="390.824"/>
+ <use x="188.405" xlink:href="#g69" y="390.824"/>
+ <use x="192.79" xlink:href="#g92" y="390.824"/>
+ <use x="200.573" xlink:href="#g63" y="390.824"/>
+ <use x="204.643" xlink:href="#g94" y="390.824"/>
+ <use x="208.171" xlink:href="#g42" y="390.824"/>
+ <use x="215.209" xlink:href="#g88" y="390.824"/>
+ <use x="219.875" xlink:href="#g94" y="390.824"/>
+ <use x="223.403" xlink:href="#g36" y="390.824"/>
+ <use x="225.863" xlink:href="#g31" y="390.824"/>
+ <use x="231.53" xlink:href="#g69" y="390.824"/>
+ <use x="235.916" xlink:href="#g16" y="390.824"/>
+ <use x="240.004" xlink:href="#g88" y="390.824"/>
+ <use x="244.671" xlink:href="#g66" y="390.824"/>
+ <use x="249.745" xlink:href="#g42" y="390.824"/>
+ <use x="253.649" xlink:href="#g91" y="390.824"/>
+ <use x="38.0278" xlink:href="#g54" y="403.664"/>
+ <use x="41.6163" xlink:href="#g94" y="403.664"/>
+ <use x="45.1445" xlink:href="#g92" y="403.664"/>
+ <use x="49.7928" xlink:href="#g63" y="403.664"/>
+ <use x="53.8628" xlink:href="#g94" y="403.664"/>
+ <use x="57.3911" xlink:href="#g92" y="403.664"/>
+ <use x="65.2089" xlink:href="#g37" y="403.664"/>
+ <use x="74.0189" xlink:href="#g42" y="403.664"/>
+ <use x="77.9223" xlink:href="#g94" y="403.664"/>
+ <use x="81.4505" xlink:href="#g36" y="403.664"/>
+ <use x="83.9099" xlink:href="#g13" y="403.664"/>
+ <use x="86.5392" xlink:href="#g6" y="403.664"/>
+ <use x="88.6106" xlink:href="#g94" y="403.664"/>
+ <use x="92.1388" xlink:href="#g36" y="403.664"/>
+ <use x="94.5982" xlink:href="#g13" y="403.664"/>
+ <use x="97.2275" xlink:href="#g94" y="403.664"/>
+ <use x="103.925" xlink:href="#g63" y="403.664"/>
+ <use x="107.995" xlink:href="#g94" y="403.664"/>
+ <use x="111.524" xlink:href="#g42" y="403.664"/>
+ <use x="118.597" xlink:href="#g116" y="403.664"/>
+ <use x="124.802" xlink:href="#g30" y="403.664"/>
+ <use x="128.983" xlink:href="#g42" y="403.664"/>
+ <use x="132.887" xlink:href="#g94" y="403.664"/>
+ <use x="136.415" xlink:href="#g92" y="403.664"/>
+ <use x="141.063" xlink:href="#g16" y="403.664"/>
+ <use x="145.152" xlink:href="#g66" y="403.664"/>
+ <use x="150.226" xlink:href="#g42" y="403.664"/>
+ <use x="154.13" xlink:href="#g93" y="403.664"/>
+ <use x="162.003" xlink:href="#g49" y="403.664"/>
+ <use x="166.61" xlink:href="#g15" y="403.664"/>
+ <use x="170.754" xlink:href="#g42" y="403.664"/>
+ <use x="174.658" xlink:href="#g66" y="403.664"/>
+ <use x="179.732" xlink:href="#g16" y="403.664"/>
+ <use x="183.821" xlink:href="#g94" y="403.664"/>
+ <use x="187.349" xlink:href="#g42" y="403.664"/>
+ <use x="191.252" xlink:href="#g50" y="403.664"/>
+ <use x="198.289" xlink:href="#g93" y="403.664"/>
+ <use x="202.992" xlink:href="#g94" y="403.664"/>
+ <use x="206.52" xlink:href="#g92" y="403.664"/>
+ <use x="214.338" xlink:href="#g12" y="403.664"/>
+ <use x="218.959" xlink:href="#g94" y="403.664"/>
+ <use x="222.487" xlink:href="#g47" y="403.664"/>
+ <use x="227.561" xlink:href="#g13" y="403.664"/>
+ <use x="230.191" xlink:href="#g94" y="403.664"/>
+ <use x="233.719" xlink:href="#g92" y="403.664"/>
+ <use x="238.367" xlink:href="#g16" y="403.664"/>
+ <use x="242.456" xlink:href="#g69" y="403.664"/>
+ <use x="246.841" xlink:href="#g85" y="403.664"/>
+ <use x="252.982" xlink:href="#g68" y="403.664"/>
+ <use x="38.0278" xlink:href="#g33" y="416.504"/>
+ <use x="44.2551" xlink:href="#g92" y="416.504"/>
+ <use x="51.6451" xlink:href="#g94" y="416.504"/>
+ <use x="55.1734" xlink:href="#g36" y="416.504"/>
+ <use x="57.6327" xlink:href="#g92" y="416.504"/>
+ <use x="62.281" xlink:href="#g94" y="416.504"/>
+ <use x="65.8092" xlink:href="#g42" y="416.504"/>
+ <use x="72.4543" xlink:href="#g30" y="416.504"/>
+ <use x="76.6357" xlink:href="#g69" y="416.504"/>
+ <use x="81.021" xlink:href="#g31" y="416.504"/>
+ <use x="83.5543" xlink:href="#g16" y="416.504"/>
+ <use x="87.6431" xlink:href="#g94" y="416.504"/>
+ <use x="91.1713" xlink:href="#g92" y="416.504"/>
+ <use x="98.5613" xlink:href="#g109" y="416.504"/>
+ <use x="107.637" xlink:href="#g13" y="416.504"/>
+ <use x="110.266" xlink:href="#g47" y="416.504"/>
+ <use x="115.34" xlink:href="#g92" y="416.504"/>
+ <use x="119.988" xlink:href="#g63" y="416.504"/>
+ <use x="124.059" xlink:href="#g94" y="416.504"/>
+ <use x="130.329" xlink:href="#g36" y="416.504"/>
+ <use x="132.788" xlink:href="#g88" y="416.504"/>
+ <use x="140.196" xlink:href="#g63" y="416.504"/>
+ <use x="144.266" xlink:href="#g69" y="416.504"/>
+ <use x="148.652" xlink:href="#g35" y="416.504"/>
+ <use x="155.853" xlink:href="#g6" y="416.504"/>
+ <use x="157.924" xlink:href="#g85" y="416.504"/>
+ <use x="164.065" xlink:href="#g39" y="416.504"/>
+ <use x="170.987" xlink:href="#g47" y="416.504"/>
+ <use x="176.061" xlink:href="#g78" y="416.504"/>
+ <use x="181.128" xlink:href="#g94" y="416.504"/>
+ <use x="187.398" xlink:href="#g25" y="416.504"/>
+ <use x="194.252" xlink:href="#g4" y="416.504"/>
+ <use x="197.045" xlink:href="#g69" y="416.504"/>
+ <use x="201.43" xlink:href="#g42" y="416.504"/>
+ <use x="205.334" xlink:href="#g42" y="416.504"/>
+ <use x="209.237" xlink:href="#g63" y="416.504"/>
+ <use x="213.307" xlink:href="#g15" y="416.504"/>
+ <use x="217.452" xlink:href="#g42" y="416.504"/>
+ <use x="221.355" xlink:href="#g4" y="416.504"/>
+ <use x="226.889" xlink:href="#g94" y="416.504"/>
+ <use x="230.418" xlink:href="#g42" y="416.504"/>
+ <use x="234.321" xlink:href="#g42" y="416.504"/>
+ <use x="238.224" xlink:href="#g94" y="416.504"/>
+ <use x="241.753" xlink:href="#g36" y="416.504"/>
+ <use x="244.212" xlink:href="#g85" y="416.504"/>
+ <use x="250.353" xlink:href="#g13" y="416.504"/>
+ <use x="252.982" xlink:href="#g68" y="416.504"/>
+ <use x="-13.4527" xlink:href="#g109" y="429.344"/>
+ <use x="-4.37736" xlink:href="#g66" y="429.344"/>
+ <use x="0.696857" xlink:href="#g63" y="429.344"/>
+ <use x="4.76693" xlink:href="#g53" y="429.344"/>
+ <use x="8.9114" xlink:href="#g88" y="429.344"/>
+ <use x="13.5781" xlink:href="#g31" y="429.344"/>
+ <use x="16.1115" xlink:href="#g36" y="429.344"/>
+ <use x="18.5708" xlink:href="#g85" y="429.344"/>
+ <use x="29.0311" xlink:href="#g63" y="429.344"/>
+ <use x="33.1012" xlink:href="#g94" y="429.344"/>
+ <use x="36.6294" xlink:href="#g35" y="429.344"/>
+ <use x="41.0888" xlink:href="#g6" y="429.344"/>
+ <use x="43.1601" xlink:href="#g94" y="429.344"/>
+ <use x="46.6884" xlink:href="#g31" y="429.344"/>
+ <use x="49.2217" xlink:href="#g16" y="429.344"/>
+ <use x="53.3105" xlink:href="#g94" y="429.344"/>
+ <use x="56.8387" xlink:href="#g92" y="429.344"/>
+ <use x="61.4869" xlink:href="#g50" y="429.344"/>
+ <use x="69.6732" xlink:href="#g29" y="429.344"/>
+ <use x="72.7806" xlink:href="#g69" y="429.344"/>
+ <use x="77.1658" xlink:href="#g47" y="429.344"/>
+ <use x="82.24" xlink:href="#g39" y="429.344"/>
+ <use x="93.4813" xlink:href="#g94" y="429.344"/>
+ <use x="97.0096" xlink:href="#g36" y="429.344"/>
+ <use x="99.4689" xlink:href="#g92" y="429.344"/>
+ <use x="104.117" xlink:href="#g94" y="429.344"/>
+ <use x="111.965" xlink:href="#g21" y="429.344"/>
+ <use x="119.367" xlink:href="#g36" y="429.344"/>
+ <use x="121.826" xlink:href="#g94" y="429.344"/>
+ <use x="125.355" xlink:href="#g42" y="429.344"/>
+ <use x="129.258" xlink:href="#g13" y="429.344"/>
+ <use x="131.887" xlink:href="#g94" y="429.344"/>
+ <use x="135.416" xlink:href="#g31" y="429.344"/>
+ <use x="137.949" xlink:href="#g88" y="429.344"/>
+ <use x="142.616" xlink:href="#g47" y="429.344"/>
+ <use x="147.69" xlink:href="#g92" y="429.344"/>
+ <use x="152.338" xlink:href="#g63" y="429.344"/>
+ <use x="156.408" xlink:href="#g94" y="429.344"/>
+ <use x="164.256" xlink:href="#g94" y="429.344"/>
+ <use x="167.784" xlink:href="#g92" y="429.344"/>
+ <use x="172.432" xlink:href="#g13" y="429.344"/>
+ <use x="175.062" xlink:href="#g4" y="429.344"/>
+ <use x="177.854" xlink:href="#g94" y="429.344"/>
+ <use x="181.383" xlink:href="#g42" y="429.344"/>
+ <use x="185.286" xlink:href="#g92" y="429.344"/>
+ <use x="189.934" xlink:href="#g13" y="429.344"/>
+ <use x="192.564" xlink:href="#g50" y="429.344"/>
+ <use x="200.75" xlink:href="#g13" y="429.344"/>
+ <use x="203.379" xlink:href="#g42" y="429.344"/>
+ <use x="207.283" xlink:href="#g94" y="429.344"/>
+ <use x="210.811" xlink:href="#g5" y="429.344"/>
+ <use x="215.196" xlink:href="#g94" y="429.344"/>
+ <use x="218.724" xlink:href="#g92" y="429.344"/>
+ <use x="227.692" xlink:href="#g24" y="429.344"/>
+ <use x="233.914" xlink:href="#g36" y="429.344"/>
+ <use x="236.374" xlink:href="#g42" y="429.344"/>
+ <use x="244.597" xlink:href="#g69" y="429.344"/>
+ <use x="248.982" xlink:href="#g47" y="429.344"/>
+ <use x="254.056" xlink:href="#g4" y="429.344"/>
+ <use x="-13.4527" xlink:href="#g63" y="442.184"/>
+ <use x="-9.38268" xlink:href="#g94" y="442.184"/>
+ <use x="-5.85444" xlink:href="#g39" y="442.184"/>
+ <use x="5.37513" xlink:href="#g114" y="442.184"/>
+ <use x="15.1165" xlink:href="#g94" y="442.184"/>
+ <use x="18.6447" xlink:href="#g93" y="442.184"/>
+ <use x="23.3484" xlink:href="#g94" y="442.184"/>
+ <use x="31.1845" xlink:href="#g92" y="442.184"/>
+ <use x="35.8327" xlink:href="#g69" y="442.184"/>
+ <use x="40.2179" xlink:href="#g85" y="442.184"/>
+ <use x="50.6665" xlink:href="#g98" y="442.184"/>
+ <use x="59.2066" xlink:href="#g42" y="442.184"/>
+ <use x="63.1099" xlink:href="#g13" y="442.184"/>
+ <use x="65.7393" xlink:href="#g6" y="442.184"/>
+ <use x="67.8106" xlink:href="#g34" y="442.184"/>
+ <use x="72.4925" xlink:href="#g36" y="442.184"/>
+ <use x="74.9518" xlink:href="#g14" y="442.184"/>
+ <use x="83.6264" xlink:href="#g36" y="442.184"/>
+ <use x="86.0857" xlink:href="#g92" y="442.184"/>
+ <use x="95.0418" xlink:href="#g94" y="442.184"/>
+ <use x="98.57" xlink:href="#g36" y="442.184"/>
+ <use x="101.029" xlink:href="#g92" y="442.184"/>
+ <use x="105.678" xlink:href="#g94" y="442.184"/>
+ <use x="109.206" xlink:href="#g39" y="442.184"/>
+ <use x="120.435" xlink:href="#g109" y="442.184"/>
+ <use x="129.511" xlink:href="#g94" y="442.184"/>
+ <use x="133.039" xlink:href="#g36" y="442.184"/>
+ <use x="135.498" xlink:href="#g13" y="442.184"/>
+ <use x="138.128" xlink:href="#g94" y="442.184"/>
+ <use x="141.656" xlink:href="#g92" y="442.184"/>
+ <use x="146.304" xlink:href="#g13" y="442.184"/>
+ <use x="148.934" xlink:href="#g65" y="442.184"/>
+ <use x="153.319" xlink:href="#g31" y="442.184"/>
+ <use x="155.852" xlink:href="#g85" y="442.184"/>
+ <use x="161.993" xlink:href="#g94" y="442.184"/>
+ <use x="165.521" xlink:href="#g92" y="442.184"/>
+ <use x="174.477" xlink:href="#g49" y="442.184"/>
+ <use x="179.084" xlink:href="#g15" y="442.184"/>
+ <use x="183.229" xlink:href="#g92" y="442.184"/>
+ <use x="192.185" xlink:href="#g47" y="442.184"/>
+ <use x="197.259" xlink:href="#g92" y="442.184"/>
+ <use x="201.907" xlink:href="#g16" y="442.184"/>
+ <use x="205.996" xlink:href="#g94" y="442.184"/>
+ <use x="209.524" xlink:href="#g42" y="442.184"/>
+ <use x="213.428" xlink:href="#g66" y="442.184"/>
+ <use x="218.502" xlink:href="#g30" y="442.184"/>
+ <use x="222.683" xlink:href="#g42" y="442.184"/>
+ <use x="226.587" xlink:href="#g13" y="442.184"/>
+ <use x="229.216" xlink:href="#g94" y="442.184"/>
+ <use x="232.744" xlink:href="#g42" y="442.184"/>
+ <use x="240.955" xlink:href="#g108" y="442.184"/>
+ <use x="249.263" xlink:href="#g69" y="442.184"/>
+ <use x="253.649" xlink:href="#g91" y="442.184"/>
+ <use x="-13.4527" xlink:href="#g13" y="455.025"/>
+ <use x="-10.8234" xlink:href="#g47" y="455.025"/>
+ <use x="-5.74916" xlink:href="#g42" y="455.025"/>
+ <use x="-1.84581" xlink:href="#g6" y="455.025"/>
+ <use x="0.225544" xlink:href="#g85" y="455.025"/>
+ <use x="6.36626" xlink:href="#g53" y="455.025"/>
+ <use x="10.5107" xlink:href="#g92" y="455.025"/>
+ <use x="15.159" xlink:href="#g30" y="455.025"/>
+ <use x="19.3403" xlink:href="#g94" y="455.025"/>
+ <use x="22.8686" xlink:href="#g36" y="455.025"/>
+ <use x="25.3279" xlink:href="#g13" y="455.025"/>
+ <use x="32.2841" xlink:href="#g63" y="455.025"/>
+ <use x="36.3541" xlink:href="#g69" y="455.025"/>
+ <use x="40.7394" xlink:href="#g35" y="455.025"/>
+ <use x="49.5255" xlink:href="#g47" y="455.025"/>
+ <use x="54.5998" xlink:href="#g42" y="455.025"/>
+ <use x="58.5031" xlink:href="#g69" y="455.025"/>
+ <use x="62.8884" xlink:href="#g31" y="455.025"/>
+ <use x="65.4217" xlink:href="#g13" y="455.025"/>
+ <use x="68.0511" xlink:href="#g94" y="455.025"/>
+ <use x="71.5793" xlink:href="#g50" y="455.025"/>
+ <use x="79.7728" xlink:href="#g94" y="455.025"/>
+ <use x="83.301" xlink:href="#g36" y="455.025"/>
+ <use x="85.7604" xlink:href="#g92" y="455.025"/>
+ <use x="90.4086" xlink:href="#g6" y="455.025"/>
+ <use x="92.4799" xlink:href="#g69" y="455.025"/>
+ <use x="96.8652" xlink:href="#g39" y="455.025"/>
+ <use x="103.787" xlink:href="#g94" y="455.025"/>
+ <use x="111.642" xlink:href="#g51" y="455.025"/>
+ <use x="118.494" xlink:href="#g36" y="455.025"/>
+ <use x="120.953" xlink:href="#g42" y="455.025"/>
+ <use x="124.857" xlink:href="#g85" y="455.025"/>
+ <use x="130.997" xlink:href="#g31" y="455.025"/>
+ <use x="133.531" xlink:href="#g94" y="455.025"/>
+ <use x="137.059" xlink:href="#g36" y="455.025"/>
+ <use x="139.518" xlink:href="#g92" y="455.025"/>
+ <use x="148.493" xlink:href="#g97" y="455.025"/>
+ <use x="154.493" xlink:href="#g109" y="455.025"/>
+ <use x="163.569" xlink:href="#g69" y="455.025"/>
+ <use x="167.954" xlink:href="#g92" y="455.025"/>
+ <use x="172.602" xlink:href="#g29" y="455.025"/>
+ <use x="175.71" xlink:href="#g13" y="455.025"/>
+ <use x="182.666" xlink:href="#g96" y="455.025"/>
+ <use x="192.154" xlink:href="#g15" y="455.025"/>
+ <use x="196.298" xlink:href="#g42" y="455.025"/>
+ <use x="200.202" xlink:href="#g36" y="455.025"/>
+ <use x="202.661" xlink:href="#g14" y="455.025"/>
+ <use x="207.028" xlink:href="#g20" y="455.025"/>
+ <use x="217.354" xlink:href="#g39" y="455.025"/>
+ <use x="224.276" xlink:href="#g36" y="455.025"/>
+ <use x="226.736" xlink:href="#g13" y="455.025"/>
+ <use x="233.692" xlink:href="#g6" y="455.025"/>
+ <use x="235.763" xlink:href="#g94" y="455.025"/>
+ <use x="239.291" xlink:href="#g36" y="455.025"/>
+ <use x="241.751" xlink:href="#g92" y="455.025"/>
+ <use x="246.399" xlink:href="#g94" y="455.025"/>
+ <use x="249.927" xlink:href="#g39" y="455.025"/>
+ <use x="-13.4527" xlink:href="#g88" y="467.865"/>
+ <use x="-8.78605" xlink:href="#g36" y="467.865"/>
+ <use x="-6.32669" xlink:href="#g31" y="467.865"/>
+ <use x="-3.79333" xlink:href="#g31" y="467.865"/>
+ <use x="-1.25998" xlink:href="#g94" y="467.865"/>
+ <use x="2.26826" xlink:href="#g92" y="467.865"/>
+ <use x="10.893" xlink:href="#g73" y="467.865"/>
+ <use x="16.9016" xlink:href="#g42" y="467.865"/>
+ <use x="20.805" xlink:href="#g36" y="467.865"/>
+ <use x="23.2644" xlink:href="#g94" y="467.865"/>
+ <use x="26.7926" xlink:href="#g63" y="467.865"/>
+ <use x="30.8627" xlink:href="#g30" y="467.865"/>
+ <use x="35.044" xlink:href="#g15" y="467.865"/>
+ <use x="39.1885" xlink:href="#g4" y="467.865"/>
+ <use x="41.9812" xlink:href="#g94" y="467.865"/>
+ <use x="45.5094" xlink:href="#g68" y="467.865"/>
+ <use x="53.3526" xlink:href="#g33" y="467.865"/>
+ <use x="59.58" xlink:href="#g92" y="467.865"/>
+ <use x="68.2047" xlink:href="#g63" y="467.865"/>
+ <use x="72.2747" xlink:href="#g94" y="467.865"/>
+ <use x="75.803" xlink:href="#g42" y="467.865"/>
+ <use x="83.6828" xlink:href="#g108" y="467.865"/>
+ <use x="91.9908" xlink:href="#g65" y="467.865"/>
+ <use x="96.3761" xlink:href="#g30" y="467.865"/>
+ <use x="100.557" xlink:href="#g94" y="467.865"/>
+ <use x="108.062" xlink:href="#g63" y="467.865"/>
+ <use x="112.132" xlink:href="#g94" y="467.865"/>
+ <use x="115.66" xlink:href="#g35" y="467.865"/>
+ <use x="124.096" xlink:href="#g51" y="467.865"/>
+ <use x="130.948" xlink:href="#g36" y="467.865"/>
+ <use x="133.408" xlink:href="#g42" y="467.865"/>
+ <use x="137.311" xlink:href="#g85" y="467.865"/>
+ <use x="143.452" xlink:href="#g31" y="467.865"/>
+ <use x="145.985" xlink:href="#g94" y="467.865"/>
+ <use x="149.513" xlink:href="#g36" y="467.865"/>
+ <use x="151.973" xlink:href="#g92" y="467.865"/>
+ <use x="156.621" xlink:href="#g35" y="467.865"/>
+ <use x="165.057" xlink:href="#g88" y="467.865"/>
+ <use x="169.723" xlink:href="#g94" y="467.865"/>
+ <use x="173.252" xlink:href="#g30" y="467.865"/>
+ <use x="177.433" xlink:href="#g13" y="467.865"/>
+ <use x="184.039" xlink:href="#g94" y="467.865"/>
+ <use x="187.567" xlink:href="#g36" y="467.865"/>
+ <use x="190.026" xlink:href="#g92" y="467.865"/>
+ <use x="198.651" xlink:href="#g92" y="467.865"/>
+ <use x="203.299" xlink:href="#g36" y="467.865"/>
+ <use x="205.759" xlink:href="#g94" y="467.865"/>
+ <use x="209.287" xlink:href="#g63" y="467.865"/>
+ <use x="213.357" xlink:href="#g42" y="467.865"/>
+ <use x="217.26" xlink:href="#g36" y="467.865"/>
+ <use x="219.72" xlink:href="#g93" y="467.865"/>
+ <use x="224.423" xlink:href="#g94" y="467.865"/>
+ <use x="227.952" xlink:href="#g35" y="467.865"/>
+ <use x="232.411" xlink:href="#g50" y="467.865"/>
+ <use x="240.254" xlink:href="#g66" y="467.865"/>
+ <use x="245.328" xlink:href="#g16" y="467.865"/>
+ <use x="249.417" xlink:href="#g94" y="467.865"/>
+ <use x="252.945" xlink:href="#g42" y="467.865"/>
+ <use x="-13.4527" xlink:href="#g94" y="480.705"/>
+ <use x="-9.92451" xlink:href="#g36" y="480.705"/>
+ <use x="-7.46515" xlink:href="#g92" y="480.705"/>
+ <use x="-2.81693" xlink:href="#g94" y="480.705"/>
+ <use x="3.96369" xlink:href="#g99" y="480.705"/>
+ <use x="13.5364" xlink:href="#g47" y="480.705"/>
+ <use x="18.6106" xlink:href="#g94" y="480.705"/>
+ <use x="22.1389" xlink:href="#g31" y="480.705"/>
+ <use x="24.6722" xlink:href="#g31" y="480.705"/>
+ <use x="27.2056" xlink:href="#g94" y="480.705"/>
+ <use x="33.9862" xlink:href="#g94" y="480.705"/>
+ <use x="37.5144" xlink:href="#g42" y="480.705"/>
+ <use x="41.4178" xlink:href="#g16" y="480.705"/>
+ <use x="45.5065" xlink:href="#g69" y="480.705"/>
+ <use x="49.8918" xlink:href="#g47" y="480.705"/>
+ <use x="54.966" xlink:href="#g13" y="480.705"/>
+ <use x="57.5954" xlink:href="#g94" y="480.705"/>
+ <use x="61.1236" xlink:href="#g35" y="480.705"/>
+ <use x="68.8353" xlink:href="#g73" y="480.705"/>
+ <use x="74.844" xlink:href="#g94" y="480.705"/>
+ <use x="78.3723" xlink:href="#g31" y="480.705"/>
+ <use x="80.9056" xlink:href="#g63" y="480.705"/>
+ <use x="84.9757" xlink:href="#g29" y="480.705"/>
+ <use x="88.0831" xlink:href="#g69" y="480.705"/>
+ <use x="92.4683" xlink:href="#g34" y="480.705"/>
+ <use x="97.1502" xlink:href="#g94" y="480.705"/>
+ <use x="100.678" xlink:href="#g31" y="480.705"/>
+ <use x="103.212" xlink:href="#g31" y="480.705"/>
+ <use x="105.745" xlink:href="#g85" y="480.705"/>
+ <use x="111.886" xlink:href="#g94" y="480.705"/>
+ <use x="115.414" xlink:href="#g92" y="480.705"/>
+ <use x="123.315" xlink:href="#g39" y="480.705"/>
+ <use x="130.236" xlink:href="#g36" y="480.705"/>
+ <use x="132.696" xlink:href="#g13" y="480.705"/>
+ <use x="138.577" xlink:href="#g63" y="480.705"/>
+ <use x="142.648" xlink:href="#g94" y="480.705"/>
+ <use x="146.176" xlink:href="#g42" y="480.705"/>
+ <use x="153.332" xlink:href="#g109" y="480.705"/>
+ <use x="162.407" xlink:href="#g13" y="480.705"/>
+ <use x="165.036" xlink:href="#g69" y="480.705"/>
+ <use x="169.421" xlink:href="#g13" y="480.705"/>
+ <use x="172.051" xlink:href="#g47" y="480.705"/>
+ <use x="177.125" xlink:href="#g94" y="480.705"/>
+ <use x="183.906" xlink:href="#g63" y="480.705"/>
+ <use x="187.976" xlink:href="#g94" y="480.705"/>
+ <use x="191.504" xlink:href="#g35" y="480.705"/>
+ <use x="199.216" xlink:href="#g30" y="480.705"/>
+ <use x="203.397" xlink:href="#g31" y="480.705"/>
+ <use x="205.93" xlink:href="#g68" y="480.705"/>
+ <use x="213.05" xlink:href="#g96" y="480.705"/>
+ <use x="222.538" xlink:href="#g69" y="480.705"/>
+ <use x="226.923" xlink:href="#g47" y="480.705"/>
+ <use x="231.997" xlink:href="#g42" y="480.705"/>
+ <use x="235.9" xlink:href="#g36" y="480.705"/>
+ <use x="238.36" xlink:href="#g13" y="480.705"/>
+ <use x="240.989" xlink:href="#g36" y="480.705"/>
+ <use x="243.448" xlink:href="#g47" y="480.705"/>
+ <use x="248.523" xlink:href="#g35" y="480.705"/>
+ <use x="252.982" xlink:href="#g50" y="480.705"/>
+ <use x="-13.4527" xlink:href="#g63" y="493.545"/>
+ <use x="-9.38268" xlink:href="#g69" y="493.545"/>
+ <use x="-4.99743" xlink:href="#g42" y="493.545"/>
+ <use x="-1.09407" xlink:href="#g93" y="493.545"/>
+ <use x="3.60957" xlink:href="#g94" y="493.545"/>
+ <use x="7.13781" xlink:href="#g88" y="493.545"/>
+ <use x="11.8045" xlink:href="#g94" y="493.545"/>
+ <use x="15.3327" xlink:href="#g31" y="493.545"/>
+ <use x="17.8661" xlink:href="#g31" y="493.545"/>
+ <use x="20.3995" xlink:href="#g13" y="493.545"/>
+ <use x="27.0288" xlink:href="#g69" y="493.545"/>
+ <use x="31.4141" xlink:href="#g31" y="493.545"/>
+ <use x="33.9474" xlink:href="#g35" y="493.545"/>
+ <use x="42.4068" xlink:href="#g19" y="493.545"/>
+ <use x="50.1355" xlink:href="#g36" y="493.545"/>
+ <use x="52.5948" xlink:href="#g13" y="493.545"/>
+ <use x="55.2242" xlink:href="#g13" y="493.545"/>
+ <use x="57.8536" xlink:href="#g94" y="493.545"/>
+ <use x="61.3818" xlink:href="#g42" y="493.545"/>
+ <use x="69.2852" xlink:href="#g36" y="493.545"/>
+ <use x="71.7445" xlink:href="#g92" y="493.545"/>
+ <use x="80.3927" xlink:href="#g49" y="493.545"/>
+ <use x="84.9999" xlink:href="#g15" y="493.545"/>
+ <use x="89.1443" xlink:href="#g31" y="493.545"/>
+ <use x="91.6777" xlink:href="#g31" y="493.545"/>
+ <use x="94.211" xlink:href="#g94" y="493.545"/>
+ <use x="97.7393" xlink:href="#g42" y="493.545"/>
+ <use x="105.643" xlink:href="#g114" y="493.545"/>
+ <use x="115.384" xlink:href="#g94" y="493.545"/>
+ <use x="118.912" xlink:href="#g30" y="493.545"/>
+ <use x="123.094" xlink:href="#g42" y="493.545"/>
+ <use x="126.997" xlink:href="#g68" y="493.545"/>
+ </g>
+</svg>
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/frktest-wf-cmp.svg b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/frktest-wf-cmp.svg
new file mode 100644
index 00000000000..b8effca34a5
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/frktest-wf-cmp.svg
@@ -0,0 +1,348 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="440.209pt" version="1.1" viewBox="-13.4025 53.7983 396.851 440.209" width="396.851pt">
+ <defs>
+ <font horiz-adv-x="0" id="yfrak">
+ <font-face ascent="759" descent="-252" font-family="yfrak" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M1 374H36C36 184 43 82 61 -103C64 -127 69 -152 70 -177H91L98 -73H99C116 -113 165 -144 211 -144C229 -144 246 -140 262 -132C324 -101 353 -18 353 66C353 83 352 99 349 115C337 173 302 227 253 260C238 271 221 280 203 286C230 313 259 345 259 396C259 442 236 478 208 504H207L152 434L122 394C119 402 117 411 114 419S86 486 86 491C87 495 89 499 91 502C106 528 135 551 170 551C189 551 206 543 220 537C223 544 251 611 251 616C251 625 241 626 234 627L232 620C213 629 194 641 171 641C142 641 121 622 108 597C88 554 71 484 52 445C40 418 17 398 1 374ZM124 242C126 268 129 295 129 321C129 328 128 336 128 343C128 351 127 358 126 366C126 368 126 369 126 371C126 382 138 386 148 386C177 386 193 356 193 333C193 300 167 276 143 257C137 252 131 247 124 242ZM240 -91C224 -106 202 -115 180 -115C133 -115 103 -65 103 -18C103 -8 119 193 120 198C121 202 124 204 128 204C134 204 141 201 144 200C223 183 282 101 282 19C282 -27 268 -66 240 -91Z" glyph-name="dotlessj" horiz-adv-x="358" unicode="&#xF6BE;"/>
+ <glyph d="M43 483C42 490 41 497 41 504C41 575 73 629 108 669C112 674 124 683 124 690C124 695 120 701 114 701S102 695 98 691C54 647 19 585 19 503C19 481 23 458 32 438S60 399 85 399C98 399 113 403 124 412C135 422 140 437 140 452C140 484 118 506 86 506C69 506 51 499 43 483ZM238 484C238 492 237 501 237 509C240 577 268 633 309 674C313 678 321 683 321 690C321 691 320 692 320 693C320 697 313 701 310 701C305 701 301 698 297 694C252 652 215 583 215 507C215 455 232 399 283 399C314 399 336 423 336 452C336 467 331 481 321 492C311 501 297 506 282 506C261 506 249 496 238 484Z" glyph-name="quotedbl" horiz-adv-x="500" unicode="&quot;"/>
+ <glyph d="M110 -225C131 -181 149 -135 169 -91L209 1L230 48C235 57 239 66 239 77C239 78 239 79 239 80C234 111 211 132 177 132C161 132 145 127 133 116C115 100 113 76 109 45C98 -10 60 -189 60 -191C60 -200 67 -200 74 -205C86 -212 98 -219 110 -225Z" glyph-name="comma" horiz-adv-x="322" unicode=","/>
+ <glyph d="M239 389C166 336 90 287 18 233C17 223 17 211 17 200L41 216C106 263 175 306 238 356C241 365 239 378 239 389ZM239 288C166 235 90 185 18 131C17 121 17 109 17 98C91 150 166 200 238 254C241 264 240 276 239 288Z" glyph-name="hyphen" horiz-adv-x="267" unicode="-"/>
+ <glyph d="M156 -13H157L239 69C232 77 224 85 217 92L180 129C177 132 160 150 156 150C150 150 143 140 139 136L92 89C89 86 76 76 76 69C77 66 80 63 82 61L156 -13Z" glyph-name="period" horiz-adv-x="322" unicode="."/>
+ <glyph d="M156 484L96 424C89 417 81 410 76 401L81 393L156 318H157L217 378C224 385 232 392 237 401L232 409L156 484ZM74 -151L92 -160L226 49C230 54 237 62 237 68C237 73 231 78 228 81L171 138C167 142 162 149 157 150C154 150 151 148 149 146C144 142 94 91 94 91C89 86 79 79 77 72C76 72 76 69 76 69S78 63 79 63L91 48C105 26 112 0 112 -30C112 -59 105 -88 93 -114C87 -127 79 -138 74 -151Z" glyph-name="semicolon" horiz-adv-x="322" unicode=";"/>
+ <glyph d="M514 705C514 704 514 704 514 703C514 698 510 696 506 693L478 675L388 617C378 608 364 604 356 593V152C356 149 356 146 356 143C356 133 349 132 342 129C329 123 317 116 304 110L250 84C247 83 230 74 227 74C224 75 221 78 219 80C214 85 146 159 146 159C232 187 320 253 320 368C320 376 320 384 320 393C321 393 322 455 322 455S321 495 320 495C317 526 309 558 292 585C267 623 222 656 170 656C87 656 17 594 17 520C17 482 30 450 52 433C87 405 157 426 157 365C157 339 144 311 120 311C102 311 82 327 62 327C46 327 31 315 31 296C31 267 67 254 96 254C98 254 100 254 102 254C157 263 179 315 179 370C179 413 169 449 145 469C128 484 102 482 82 485C63 487 44 497 44 521C44 565 87 594 121 594C134 594 147 590 157 586C230 553 246 466 246 382C246 375 246 369 246 362C246 346 246 330 242 314C227 250 184 193 121 171C88 160 52 159 17 159C17 155 16 150 16 146C16 131 28 125 37 118L61 95C75 83 89 71 89 48C89 40 88 32 86 25C85 19 81 11 81 5C81 2 82 0 84 -2C89 -5 96 -11 102 -12C108 -12 175 22 194 32L357 111C360 102 365 94 369 86C375 74 392 45 395 33C396 33 396 24 396 24S396 15 395 15C393 15 389 3 390 3C390 -3 397 -9 401 -13H402L505 70L534 94C538 97 547 102 547 107C547 113 539 121 536 124C523 118 514 110 497 110C468 110 446 130 446 163C446 170 446 176 446 183V563C446 570 446 578 446 585C446 638 481 647 513 671C514 664 520 660 526 660C535 660 544 668 544 678C544 693 530 705 514 705Z" glyph-name="A" horiz-adv-x="573" unicode="A"/>
+ <glyph d="M87 308L97 288C120 295 143 306 164 318C180 326 201 342 201 364C201 374 198 383 195 394C188 421 185 454 165 475C156 483 144 485 133 485C126 485 118 484 111 484C86 484 66 492 66 517C66 520 67 524 67 527C73 576 116 618 174 618C219 618 249 592 271 562C300 520 310 466 314 416C314 413 314 409 314 406C314 399 314 392 314 385C314 376 315 366 315 356C315 335 313 312 303 293C285 258 244 241 202 237C188 236 174 237 160 236C96 230 17 193 17 116C17 92 26 67 48 67C66 67 73 85 73 99C73 111 69 124 64 131C63 133 51 148 51 150C52 153 54 156 56 158C69 171 84 181 108 181C130 181 154 172 172 160C227 125 256 63 305 22C323 7 342 -5 365 -10C366 -10 389 -15 389 -13C400 -12 410 -5 420 0L481 27C518 43 557 57 591 78C654 116 712 182 712 278C712 365 664 454 577 479C562 484 547 486 531 486V487L637 540L631 554C628 553 625 552 622 552C621 552 621 552 620 552C608 552 599 564 593 574C585 587 583 602 579 617C566 655 541 691 493 691C432 691 397 639 378 597C374 586 368 575 366 564C360 578 354 593 346 607C318 658 270 705 193 705C174 705 162 701 146 696C78 669 44 588 44 515C44 474 55 423 85 408C102 400 122 402 140 400C159 397 180 388 180 364C180 352 172 343 162 337C140 323 112 317 87 308ZM514 477L392 416V415C407 415 423 414 438 412C527 401 631 353 641 246C641 234 641 222 638 210C629 164 597 128 565 96C544 75 518 48 482 48C478 48 474 49 470 49C400 58 354 121 308 167C297 178 285 189 273 199C265 205 256 210 249 217C268 217 289 222 307 228C360 246 392 284 392 355C392 368 391 381 391 394C389 438 390 471 381 512C379 518 377 525 377 532C377 533 377 534 377 535C377 541 379 546 381 552C389 580 407 613 443 613C456 613 468 608 477 597C489 583 492 564 496 547C500 523 504 500 514 477Z" glyph-name="B" horiz-adv-x="734" unicode="B"/>
+ <glyph d="M238 54V53C209 31 185 6 136 6C111 6 86 14 66 30C52 41 39 61 39 80C39 101 53 113 72 117C68 110 66 103 66 96C66 75 86 56 108 56C127 56 140 74 140 93C140 125 115 145 84 145C50 145 17 121 17 81C17 73 18 65 20 58C32 17 75 -13 126 -13C171 -13 209 9 238 32C242 35 247 41 253 42C258 42 265 36 270 33C311 9 380 -13 435 -13C439 -13 443 -13 447 -12C452 -10 487 28 487 28L573 117C578 122 596 137 596 144C596 150 589 158 584 158C577 158 571 148 568 145C538 115 498 80 441 80C412 80 382 87 357 96L324 111C330 119 338 126 345 133C381 169 419 226 419 283C419 287 419 290 419 294C413 358 370 409 351 469C346 484 343 500 343 516C343 558 370 592 402 606C406 606 407 570 407 570S406 537 403 537C401 529 398 522 395 515C394 515 393 503 394 503C396 500 404 494 408 494C411 494 413 498 415 501C425 519 433 539 433 566C433 588 428 596 424 616L452 622L485 504L600 537L594 558L577 554C567 588 558 621 549 656L452 644C444 643 421 638 418 638C409 638 405 649 400 654C376 684 335 705 287 705C166 705 109 587 90 498C82 458 77 416 77 374C77 360 78 345 79 330C87 251 119 175 171 115C190 92 213 70 238 54ZM301 126C200 195 155 319 155 437C155 482 161 524 173 560C191 616 229 677 302 677C342 677 371 655 391 629C371 625 350 611 334 598C302 571 274 535 274 478C275 384 341 314 341 228C341 202 332 177 320 155C314 145 307 136 301 126Z" glyph-name="C" horiz-adv-x="623" unicode="C"/>
+ <glyph d="M493 115C452 92 423 73 358 73C332 73 305 77 282 84C189 112 119 191 95 284C88 310 86 337 86 363C86 393 89 444 92 467L98 504C110 565 135 640 198 666C206 669 214 671 222 673C223 673 258 677 258 675C273 673 287 668 300 662C308 658 314 653 322 649V647C306 641 272 619 262 613C231 590 191 559 191 508C191 467 223 437 248 407C264 389 277 367 278 342C278 318 264 288 238 288C237 288 236 288 235 288C226 288 216 294 211 299C188 319 185 354 175 381L154 375C156 364 160 354 164 344C181 305 208 257 263 257C313 257 349 298 349 349C349 366 345 383 338 399C335 403 324 422 324 427C324 434 338 439 343 439C343 439 344 439 344 439C347 439 359 427 363 423L405 383C409 379 417 369 423 369C428 369 432 376 435 379L466 412C471 418 477 425 483 431C486 434 490 437 490 441C490 441 490 442 490 442C490 448 482 454 478 458L439 500C435 505 429 514 422 514C422 514 421 514 421 514C417 514 395 500 395 500C389 497 313 450 311 449C308 449 306 453 304 455C287 479 263 519 263 550C263 590 294 609 319 623C324 625 332 632 339 632C347 632 357 621 360 619L393 594C399 590 407 581 414 581C417 581 420 582 423 584C428 587 474 613 492 621V623L426 673C422 677 407 689 400 689C395 689 390 685 386 683C380 680 349 661 343 661S331 667 326 671C303 688 279 705 240 705C217 705 193 699 173 690C105 659 67 591 44 523C28 473 20 420 18 368C17 368 17 302 18 302C31 158 120 20 259 -8C263 -9 313 -16 313 -12C324 -10 335 -1 345 5L407 42L468 78C479 84 494 87 494 104C494 108 493 112 493 115Z" glyph-name="E" horiz-adv-x="517" unicode="E"/>
+ <glyph d="M171 363L176 377C131 398 85 423 64 470C58 483 55 497 55 511C55 552 78 592 110 617C131 632 163 645 190 645C209 645 226 634 243 625C268 611 292 595 315 578C327 570 338 561 350 554V553C313 537 272 517 245 486C228 466 223 444 223 420C223 379 236 332 246 303C276 224 343 104 343 5C343 -64 311 -122 259 -141C248 -144 237 -145 225 -145C160 -145 95 -95 95 -21C95 42 139 97 159 147C167 167 173 190 173 212C173 271 132 315 78 315C39 315 26 268 17 243L38 235C45 255 51 293 79 293C95 293 112 281 117 266C118 266 119 254 119 254S118 242 118 242C116 223 111 204 103 186C80 129 34 71 34 3C34 -110 138 -167 230 -167C297 -167 343 -139 378 -103C408 -73 429 -25 429 31C429 107 398 180 377 233C365 262 352 291 342 321C340 326 332 347 332 351C332 352 332 352 332 353C334 358 377 398 381 398C382 398 382 398 383 398C388 395 410 371 410 371C413 368 417 361 422 361C428 361 434 369 438 373C450 385 463 397 476 408C473 414 468 419 463 424L436 453C433 457 427 466 421 466C421 466 420 466 420 466C416 465 397 447 391 441C369 420 347 398 323 378C316 422 314 403 310 460C310 465 309 470 309 475C311 504 325 526 343 542C346 545 349 548 353 548C353 548 354 548 354 548C359 548 365 542 369 539L403 514C407 511 414 503 420 503C425 503 427 508 429 510C434 516 494 593 494 593C491 596 484 605 478 605C477 605 476 604 475 604C468 601 465 588 458 588C456 588 455 589 453 590C441 597 345 671 345 671L316 693C307 700 302 705 286 705C238 705 178 687 148 673C89 645 34 593 34 512C34 493 38 475 47 458C71 412 123 381 171 363Z" glyph-name="F" horiz-adv-x="501" unicode="F"/>
+ <glyph d="M66 357L125 428C94 453 76 491 75 531C75 575 99 625 143 641C153 644 163 645 174 645C201 645 226 630 247 614C290 578 333 507 404 507C460 507 495 558 495 604C495 618 489 630 483 643L463 634C467 624 472 615 472 605C472 583 457 566 435 566C403 566 383 588 369 605C339 643 318 705 253 705C245 705 238 705 231 704C138 693 52 630 26 538C21 522 17 503 17 486C17 457 27 440 38 418C42 410 46 402 48 393C50 387 48 379 50 373C53 366 60 360 66 357ZM62 -128C67 -126 80 -123 80 -116C78 -104 72 -91 72 -78C72 -58 89 -49 110 -49S148 -59 164 -72C191 -95 213 -129 249 -138C256 -139 262 -139 269 -139C332 -139 381 -85 410 -46C448 3 478 65 478 133C478 148 477 163 472 178C455 236 410 280 384 333C374 354 365 378 365 402C365 419 369 435 377 446C385 454 390 461 404 461C416 461 428 453 437 444C451 428 456 404 456 383H478C478 429 455 483 399 483C394 483 388 483 382 482C330 474 277 435 277 370C277 340 287 310 301 284C342 211 421 153 421 55C421 -3 390 -67 319 -67C314 -67 310 -66 306 -66C246 -57 218 13 158 22C154 22 150 23 146 23C88 23 50 -21 50 -72C50 -91 55 -111 62 -128Z" glyph-name="I" horiz-adv-x="519" unicode="I"/>
+ <glyph d="M111 144L17 127C23 80 29 34 34 -13C44 -9 53 -3 63 1C95 15 130 21 174 21C225 30 242 86 246 133C247 133 247 196 246 196C243 263 232 316 204 365L256 375C260 355 297 262 298 259C342 138 354 95 423 -13C465 28 507 68 546 111L547 132C529 118 508 104 481 104C451 104 439 136 431 155C423 175 346 382 346 390C346 394 349 396 353 396C360 398 411 408 429 412C435 413 449 414 449 422C449 423 449 424 449 425C448 430 447 434 446 439C442 438 436 436 431 436S424 441 424 446C422 453 420 461 419 468L407 524C405 534 402 544 401 554L418 559C420 566 417 573 416 580C387 574 355 571 325 571C316 571 308 571 299 571C284 571 269 570 254 566C198 549 165 490 165 418C145 440 121 471 121 507C121 515 122 524 124 531C136 613 217 677 313 677C419 677 511 597 511 490C511 423 478 381 440 348V347L456 333C500 365 533 425 533 490C533 541 514 593 478 633C434 681 374 705 311 705C299 705 287 704 275 702C165 685 85 591 57 487C51 467 45 424 45 402C45 397 45 393 47 389C56 374 94 335 100 329L134 293C174 251 223 197 223 130C223 93 205 43 165 43C122 43 111 106 111 144ZM336 415C324 414 204 387 204 387C202 387 199 386 197 386S194 386 193 387C187 390 186 419 186 424C186 431 187 438 188 446C194 486 218 535 268 535C287 535 301 525 309 512C323 488 332 443 336 415Z" glyph-name="K" horiz-adv-x="571" unicode="K"/>
+ <glyph d="M17 58H39C40 64 42 69 46 73L57 77C57 77 61 77 61 77C71 76 80 74 89 70C119 56 141 31 166 10C172 5 192 -12 201 -12C206 -12 212 -9 216 -6C268 20 310 62 338 110C346 124 355 139 359 155C355 157 348 161 342 161S336 156 334 151C320 118 308 78 262 78C246 79 231 86 218 94C192 112 149 160 114 165C151 195 212 216 212 281C207 386 98 442 98 541C98 557 100 571 105 583C121 627 161 666 217 666C263 666 293 629 293 589C293 539 248 501 226 458C219 442 213 426 213 409C213 399 215 389 220 379C233 352 271 318 300 318C332 318 345 348 348 376H325C325 362 319 341 300 341C271 341 250 361 250 387C250 400 256 412 265 423C283 444 308 457 325 479C334 492 336 504 336 520C336 542 331 565 324 586C306 637 271 705 199 705C190 705 180 704 170 702C105 690 54 642 31 581C22 559 17 534 17 509C17 496 18 482 22 469C41 388 132 322 132 237C132 231 132 224 130 218C120 188 86 173 63 154C35 130 17 95 17 58Z" glyph-name="L" horiz-adv-x="385" unicode="L"/>
+ <glyph d="M253 622C243 627 235 634 225 639C204 650 178 656 154 656C95 656 41 627 23 575C17 558 17 541 17 524C17 516 16 507 16 499C16 474 16 448 26 424C40 392 72 381 101 366C120 357 140 343 141 320C141 295 129 274 105 274C95 274 85 277 76 283C69 287 64 294 57 298C54 293 48 286 48 280C49 275 55 271 59 268C72 257 88 251 106 251C149 251 189 278 189 330C189 380 163 421 134 445C105 468 39 492 39 541C39 577 69 609 107 609C114 609 121 608 128 607C189 597 228 547 248 492C274 417 280 327 280 244C280 182 264 145 237 103C229 92 219 82 212 70H211C188 91 164 111 140 130L59 33V32L75 18H76L86 31C105 19 125 9 145 -1L159 -9C161 -10 163 -11 165 -11C166 -11 166 -11 167 -11C171 -11 174 -7 176 -4C247 78 350 172 356 304C356 304 356 346 355 346C351 445 328 539 277 597C275 600 269 605 269 609S271 618 272 621C280 639 293 658 319 658C330 658 341 654 351 651C402 634 432 584 447 535C456 504 460 472 462 439C463 420 462 400 463 381C466 338 471 294 471 250C471 193 461 136 434 97C429 89 423 83 418 75L347 134L256 24C260 21 267 13 273 13C278 13 281 19 283 23C299 17 350 -6 365 -11C365 -11 367 -11 367 -11C372 -10 375 -5 378 -2L400 22C461 89 513 150 538 253C544 282 545 310 545 339C545 403 541 462 529 519C523 551 519 553 510 586C526 593 537 601 558 601C593 601 629 581 648 552C662 531 669 507 675 483C677 472 686 439 686 434C686 433 686 433 686 432C686 429 683 428 681 427C666 420 622 405 613 402C608 400 597 398 594 392S591 375 591 368C586 325 583 279 583 233C583 230 582 185 583 185C586 149 596 115 604 80C607 64 614 29 614 14C614 10 614 6 615 3S626 -13 630 -13L753 106C757 110 767 116 767 122C767 129 758 134 754 138H753C748 133 717 101 712 101C712 101 711 101 711 101C704 101 697 110 694 115C660 154 663 210 661 276C661 294 658 313 658 331C658 352 661 373 676 391C682 398 689 403 696 408L708 384C726 400 737 423 753 441C757 446 766 457 768 463C768 469 761 477 758 482C751 495 746 508 740 522C715 582 696 646 629 671C628 671 596 677 596 675C572 673 557 657 542 640C529 626 517 612 504 599C492 625 477 651 455 670C431 691 396 705 362 705C343 705 325 701 309 691C287 678 261 646 253 622ZM218 65C218 65 214 69 214 69S218 65 218 65Z" glyph-name="M" horiz-adv-x="791" unicode="M"/>
+ <glyph d="M354 574C343 586 335 602 325 614C292 650 249 676 189 676C102 676 17 617 17 513C17 434 58 368 115 346C151 333 218 341 218 295C218 263 201 231 170 231C149 231 128 246 117 264C112 274 109 285 109 297C103 294 89 293 89 283C89 280 90 276 90 273C100 238 130 209 171 209C217 209 241 255 241 299C241 327 233 359 222 378C206 407 184 417 150 428C108 444 40 460 40 520C40 579 102 612 157 612C316 612 335 399 335 253C335 228 333 161 329 141C323 88 305 10 233 10C203 10 172 28 172 64C172 69 173 74 174 78C176 78 178 90 178 90C178 95 170 103 164 103C156 103 148 98 141 96C135 94 128 94 122 94C112 94 102 96 91 98C90 95 89 93 89 90C89 83 93 75 94 68C95 68 95 32 95 32C93 32 91 11 91 11C91 6 98 -4 105 -4C110 -4 115 2 119 4C125 7 131 9 137 9C140 9 143 8 146 8C176 3 198 -13 233 -13C271 -13 309 4 335 29C391 84 413 163 417 239C417 239 417 299 416 299C414 378 401 449 380 515L371 538C369 543 366 547 365 552C365 561 369 572 372 580C384 612 411 650 456 650C487 650 509 627 523 600C546 554 548 495 586 457C596 447 609 436 623 432V431C582 422 539 410 509 379C480 348 476 304 476 255C476 168 501 78 533 17C537 10 541 4 544 -3C548 -9 549 -13 560 -13C562 -13 572 -14 572 -12C578 -9 583 3 587 9L636 87C638 90 652 113 652 115C652 124 640 127 635 129C630 123 624 114 614 114C603 114 593 126 588 136C570 165 565 201 562 234C561 249 562 263 561 278C560 291 559 304 559 318C559 336 561 354 571 369C589 397 623 408 657 417C664 419 669 420 669 430V504C646 505 637 525 630 544L615 587C595 638 565 699 504 705C498 705 471 706 471 703C458 700 446 696 435 690C398 671 360 620 354 574Z" glyph-name="N" horiz-adv-x="692" unicode="N"/>
+ <glyph d="M271 705C271 668 243 641 217 618C194 598 171 578 150 557C127 534 101 504 101 464C101 462 101 461 101 459C101 411 141 376 168 341C184 320 199 295 199 268C199 238 171 217 149 202C134 191 118 181 102 172C92 167 81 164 71 157C42 140 17 107 17 64C17 46 21 28 31 13C35 7 48 -11 56 -11C56 -11 57 -11 57 -11C64 -11 70 -3 73 2C54 14 39 38 39 61C39 85 56 103 78 107C96 107 145 85 151 82C205 58 304 8 362 -6C369 -9 379 -12 386 -12C387 -12 388 -12 389 -12C394 -12 398 -9 402 -7C480 35 551 90 609 157C650 204 690 262 690 340C690 407 667 475 641 518C605 577 545 631 463 641C427 645 390 641 354 649C330 654 299 667 291 691C287 699 288 705 277 705C275 705 273 705 271 705ZM137 177C188 206 270 223 281 292C281 292 281 319 280 319C277 344 264 366 249 386C223 419 175 466 175 518C175 530 178 543 186 555C189 559 196 572 202 572C204 572 207 570 209 569C232 554 261 543 294 543C325 543 354 550 385 551C389 551 392 551 396 551C444 551 491 539 531 510C588 469 633 401 633 309C633 251 613 192 572 151C542 121 498 101 441 101C370 101 306 126 249 147C212 160 177 177 137 177Z" glyph-name="O" horiz-adv-x="712" unicode="O"/>
+ <glyph d="M61 277C63 271 67 257 76 257C78 257 82 258 84 259C137 269 177 316 177 370C177 418 139 446 109 463C79 481 39 501 39 541C39 579 49 636 99 636C105 636 112 635 118 634C157 624 186 591 200 555C212 524 215 491 215 458C215 441 214 423 214 406V163L163 184C149 139 137 102 111 65C108 62 102 54 102 49S113 38 118 35C134 56 157 76 184 76C185 76 185 76 186 76C198 76 215 72 215 56C215 52 214 47 214 44C214 -29 222 -76 232 -147C235 -147 240 -148 244 -148C257 -148 257 -142 262 -132C280 -88 297 -31 299 21C324 7 350 -6 376 -19C383 -7 389 5 395 18C399 27 403 38 409 46C414 52 421 56 427 61C438 70 450 80 460 91C506 142 547 207 547 285C547 394 480 455 480 563C480 584 482 606 487 627C491 644 498 660 503 677C435 675 368 641 332 605C317 590 301 571 294 551C289 566 285 582 279 597C256 652 212 705 133 705C124 705 115 703 107 700C42 679 16 602 16 535C16 491 33 435 53 403C57 396 60 390 71 390C75 390 80 390 83 390C87 390 90 389 94 389C116 388 149 381 149 352C149 305 106 276 71 276C67 276 64 277 61 277ZM403 628C400 596 396 564 396 531C396 440 439 386 463 314C470 291 476 266 476 242C476 240 476 239 476 237C476 178 448 118 413 83C409 79 404 73 399 71C397 71 390 71 390 74C385 76 380 79 375 82L326 109C315 115 301 116 301 132V465C301 481 301 497 304 513C315 564 356 607 403 628Z" glyph-name="P" horiz-adv-x="571" unicode="P"/>
+ <glyph d="M271 705C271 668 243 641 217 618C199 603 182 587 165 571C136 544 101 512 101 461C102 409 145 374 173 335C187 315 199 293 199 268C199 238 171 217 149 202C134 191 118 181 102 172C92 167 81 164 71 157C42 140 17 107 17 64C17 46 21 28 31 13C35 7 48 -11 56 -11C56 -11 57 -11 57 -11C64 -11 70 -3 73 2C53 15 39 38 39 63C39 84 57 106 79 107C89 107 98 103 107 100C179 72 247 35 319 8C330 4 373 -12 386 -12C386 -12 387 -12 388 -12C393 -12 398 -9 402 -7C447 18 489 41 529 72C544 39 573 14 606 -2C620 -7 624 -8 641 -12C641 -12 643 -12 643 -12C649 -11 655 -5 660 -1C693 24 727 51 756 80C760 83 774 94 774 100S765 112 761 116C746 104 733 90 719 78C713 73 705 63 696 63S677 69 671 72C651 82 634 99 623 119C620 125 616 133 616 141C616 148 623 153 628 158C641 171 653 185 664 200C695 242 716 281 720 346C720 351 719 355 719 360C718 377 717 393 713 409C692 514 614 602 510 632C486 639 460 642 435 643C370 645 315 643 290 692C288 699 287 705 278 705C276 705 273 705 271 705ZM137 177C188 206 270 223 281 292C281 292 281 319 280 319C270 386 202 424 180 486C176 496 175 506 175 517C175 530 178 542 185 554C189 559 195 571 202 571C205 571 207 569 210 568C234 552 269 543 304 543C331 543 359 550 386 551C389 551 393 551 396 551C463 551 528 532 580 490C626 454 662 399 662 327C662 322 662 318 662 313C656 193 573 100 445 100C385 100 324 120 268 140C226 155 183 177 137 177Z" glyph-name="Q" horiz-adv-x="798" unicode="Q"/>
+ <glyph d="M39 324H17C17 282 36 230 88 230C103 230 117 234 126 239C159 257 185 294 185 343C185 376 168 399 150 417C118 449 41 476 39 533C39 543 41 554 44 564C54 601 79 629 124 629C151 629 178 620 200 603C255 566 275 475 282 400C287 350 289 300 289 250C289 162 289 56 236 21C220 12 216 12 194 9C194 9 175 10 175 12C145 21 123 51 123 82C123 103 132 124 147 138C155 145 164 150 173 154L159 171C132 155 110 140 68 138C56 138 43 139 31 140C36 127 39 114 39 101C39 82 33 65 25 52C23 49 19 45 19 41C19 35 27 25 33 25C36 25 40 27 42 29C50 33 59 36 68 36C103 36 131 8 161 -6C172 -11 185 -13 197 -13C227 -13 258 0 281 18C346 73 369 179 369 288C369 300 368 311 368 322L365 383C365 391 363 398 363 406C364 412 369 414 374 416C381 420 391 423 399 423C402 423 405 423 408 422C421 418 422 404 423 392L450 182C455 108 478 30 517 -13C552 35 589 82 623 132L604 143C599 135 592 127 586 119C583 114 577 106 569 106C563 106 557 110 553 114C526 141 525 189 520 235C520 235 497 424 493 449C493 452 486 478 486 481S490 486 493 488L513 500L550 521C558 526 567 528 567 540C567 545 566 550 566 553C540 557 547 588 542 611C538 648 514 679 487 696C482 699 477 703 471 703C471 703 470 703 470 703C464 703 461 698 457 695C449 689 441 684 432 680C377 653 351 657 315 604C291 657 241 705 167 705C79 705 27 632 18 558C17 542 17 526 17 510V446C17 442 17 437 17 433C17 420 18 408 27 397C44 380 86 371 106 363C126 356 140 342 140 317C140 288 118 252 86 252C50 252 39 298 39 324ZM360 434C357 468 350 502 342 534L333 563C331 563 329 578 329 578C335 605 375 629 399 629C410 629 420 626 429 618C451 600 455 565 460 538C462 529 467 504 467 501C467 495 461 493 457 490L360 434Z" glyph-name="R" horiz-adv-x="644" unicode="R"/>
+ <glyph d="M376 501L386 521C354 539 317 558 280 558C276 558 273 557 269 557C210 552 178 489 178 429C178 424 178 420 179 415C186 366 229 337 269 314C270 313 311 290 311 295C319 296 328 302 336 305L384 327C428 345 470 372 529 372C599 372 675 331 675 250C675 214 661 178 638 152C595 100 526 70 444 70C353 70 263 109 200 172C138 234 99 324 99 412C99 491 134 566 189 608C208 623 232 639 259 639C289 639 318 623 343 610L434 563C462 550 499 531 525 517C532 513 542 506 551 506C557 506 639 543 670 558C683 563 697 568 707 578C728 598 734 629 734 657L704 645C704 630 703 614 695 601C685 586 666 580 644 580C608 580 571 603 548 616L436 673C423 679 410 685 398 692C391 695 379 704 370 704C363 704 354 701 347 699C293 683 237 664 192 639C98 586 17 486 17 347C17 287 33 235 54 195C113 82 231 9 355 -8C375 -11 396 -13 416 -13C458 -13 500 -6 539 12C624 51 697 137 697 251C697 275 694 300 686 323C660 397 601 452 537 490C536 491 507 508 507 504C501 503 451 480 451 480L328 425C313 419 301 412 283 412C252 412 225 439 225 474C225 508 246 537 282 537C317 537 346 514 376 501Z" glyph-name="S" horiz-adv-x="756" unicode="S"/>
+ <glyph d="M50 364C45 361 36 354 36 348C36 343 40 339 43 336C58 317 84 301 114 301C160 301 191 342 191 392S150 470 118 488C94 501 41 512 41 550C41 563 47 576 52 588C63 612 77 649 111 649C140 649 167 631 182 619C233 573 270 501 282 424C285 409 287 392 287 376C287 317 262 273 233 237C225 227 200 193 186 193C183 193 179 194 176 194C174 194 146 195 146 194C94 191 47 141 47 84C47 63 54 49 64 36C66 33 70 28 74 28C74 28 75 28 75 28C82 28 88 36 91 41C79 51 70 67 70 82C70 108 97 122 123 122C130 122 137 122 143 121C226 111 296 56 350 6C353 3 367 -11 371 -11C373 -11 380 -10 380 -8L396 1L461 39C486 53 514 66 536 85C566 109 594 150 594 199C594 242 569 268 548 292C522 320 476 356 476 406C477 423 491 437 502 449C528 476 560 501 594 518C591 524 589 532 585 536C581 541 573 541 568 545C559 551 551 559 545 569C516 616 520 705 448 705C393 705 352 668 333 633C326 621 320 608 317 594L294 630C266 666 224 705 164 705C158 705 152 704 146 704C69 693 27 611 19 541C18 532 17 523 17 514C17 485 29 465 38 444C42 429 55 432 70 428C100 421 151 410 151 367C151 346 138 323 115 323C85 323 64 344 50 364ZM485 463C456 433 414 403 414 347C414 340 414 333 416 326C428 284 484 257 510 232C528 214 540 199 540 169C540 122 508 72 454 72C450 72 446 72 442 73C402 82 376 119 348 137C324 154 297 167 269 177C255 181 240 184 226 188C253 207 280 226 305 247C338 276 363 306 363 365C363 433 354 499 336 550C334 556 324 577 324 584C325 591 329 599 331 606C343 633 364 655 395 655C396 655 396 655 397 655C426 655 439 630 443 608C452 560 437 473 485 463Z" glyph-name="V" horiz-adv-x="617" unicode="V"/>
+ <glyph d="M435 649C417 662 402 673 373 673C340 673 307 653 295 626C265 658 235 696 189 703C189 703 171 705 171 705S150 704 150 703C68 691 17 610 17 531C17 479 38 432 74 415C88 409 102 410 116 407C133 403 151 386 151 365C151 342 135 314 108 314C87 314 69 327 58 338C56 341 50 350 45 350S30 344 30 339C30 336 32 334 33 332C50 310 78 291 113 291C166 299 188 344 188 397C188 399 188 402 188 404C186 440 165 480 129 492C116 496 103 495 90 497C67 501 44 515 38 539C37 539 37 566 38 566C43 600 61 645 106 645C160 645 196 593 218 566C230 552 242 538 251 522C277 475 279 419 279 366C279 356 279 346 279 335C279 274 257 230 229 196C224 191 213 176 205 176C201 176 198 178 194 179C187 181 180 182 173 182C105 182 49 130 49 67C49 33 64 12 82 -7H83L98 8V9C83 23 70 39 70 64C70 88 86 114 112 114C112 114 113 114 113 114C186 109 230 37 280 0C285 -4 293 -11 300 -11C303 -11 306 -9 309 -7L331 11C361 37 396 58 424 86L463 59L529 15C535 11 565 -11 571 -11C572 -11 572 -11 573 -11C579 -11 587 -6 593 -3C631 16 688 42 717 67C755 101 779 149 787 199C789 211 791 224 791 237C791 240 791 242 791 245C786 292 740 313 708 341C692 355 677 373 674 395C674 402 674 409 675 416C680 438 691 458 706 470L713 456C720 460 725 466 730 472L761 505C766 511 775 517 775 525C775 525 775 526 775 526L791 536L780 556C776 554 770 548 766 548C761 548 758 555 757 558L742 583C711 634 666 705 588 705C532 705 499 671 471 641C478 668 486 694 495 719C492 719 488 720 484 720C469 720 467 710 461 700C451 684 441 667 435 649ZM231 161C262 177 289 198 319 215L342 229C349 234 354 237 354 249C354 253 354 257 354 260C354 277 356 293 356 310C357 332 359 353 360 375C361 375 361 417 361 417S360 495 355 495C349 532 337 566 319 595C316 599 311 604 311 610C311 617 318 623 322 628C336 642 355 651 374 651C383 651 392 649 401 645C408 641 424 634 424 624C424 620 422 616 420 612C405 567 396 522 396 464C396 459 396 455 396 451C405 378 468 324 475 250C475 250 473 208 471 208C464 170 445 136 417 109C402 94 382 80 359 80C329 80 304 102 286 116L231 161ZM485 156C509 195 526 237 542 280C544 286 556 318 556 325C556 333 543 349 542 351L515 395C486 443 461 495 461 557C461 565 462 573 463 581C463 587 463 593 466 599C481 625 504 661 538 661C603 661 640 598 661 559L685 510C688 505 693 498 693 493C693 486 682 481 680 479C647 446 610 402 610 345C610 311 626 294 647 276C679 250 739 225 739 170C739 125 711 91 685 71C679 67 655 50 647 50C646 50 646 50 645 50C640 51 610 72 600 79L522 132C510 140 498 149 485 156Z" glyph-name="W" horiz-adv-x="812" unicode="W"/>
+ <glyph d="M266 23C266 14 266 5 266 -4C266 -75 232 -130 195 -167C191 -171 183 -176 183 -183C183 -184 184 -185 184 -186C184 -190 191 -194 194 -194C199 -194 203 -191 207 -187C252 -145 289 -76 289 0C289 52 272 108 221 108C189 108 168 84 168 54C168 23 190 1 221 1C243 1 255 10 266 23ZM462 23C462 14 462 5 462 -4C462 -75 428 -130 391 -167C387 -171 379 -176 379 -183C379 -184 380 -185 380 -186C380 -190 387 -194 390 -194C395 -194 399 -191 403 -187C450 -143 484 -76 484 6C484 21 483 36 479 51C469 80 454 108 416 108C384 108 364 83 364 54C364 40 369 26 378 16C388 6 403 1 417 1C439 1 451 10 462 23Z" glyph-name="backslash" horiz-adv-x="500" unicode="\"/>
+ <glyph d="M162 484L135 456C113 434 91 412 74 386C38 331 17 254 17 169C17 158 18 148 19 137C26 79 65 25 113 1L97 -13L128 -12C167 16 200 49 237 78C240 61 245 44 251 28C253 25 263 4 263 2C263 -3 257 -9 254 -13L279 -12C300 10 320 33 338 58L339 87C337 85 333 82 329 82C318 82 308 95 304 103C302 109 302 116 302 123V254C302 266 301 279 301 292C301 328 309 354 327 376C330 381 336 385 336 390C336 397 325 407 324 409C315 421 312 422 292 425C251 436 224 446 189 466C180 472 171 479 162 484ZM121 414C134 408 200 368 202 367L222 355C230 351 234 347 234 336C234 333 234 330 234 328V124C234 121 234 118 234 114C234 111 234 108 233 105C228 91 192 81 177 81C137 81 107 116 97 153C91 173 90 193 90 213C90 225 91 238 91 250C92 296 91 345 108 389C111 398 117 406 121 414Z" glyph-name="a" horiz-adv-x="365" unicode="a"/>
+ <glyph d="M22 585C21 583 13 551 13 549C13 540 22 534 26 529C39 510 46 489 46 458C46 446 45 434 45 422V180C45 173 45 166 45 159C45 140 42 127 31 115C23 107 17 109 17 92V73C59 66 101 46 135 22C142 17 150 12 155 6C157 3 156 0 158 -3C160 -8 168 -11 173 -13C197 28 226 66 250 107C286 167 315 237 315 308C315 377 288 429 254 466C252 468 236 484 234 484L113 390C113 408 112 426 112 444C112 488 116 532 144 569C162 593 192 615 231 615V645C168 645 117 608 77 572C73 568 68 560 62 560C62 560 61 560 61 560C56 560 32 580 22 585ZM217 92C183 112 148 131 115 152L113 168C114 235 110 303 115 363C136 383 160 401 183 419C227 381 256 328 256 252C256 214 250 177 241 146C235 127 225 110 217 92Z" glyph-name="b" horiz-adv-x="341" unicode="b"/>
+ <glyph d="M230 106C211 94 204 84 170 84C142 84 122 97 108 111C88 133 84 162 84 191C84 231 87 270 87 310C88 334 82 356 82 379C82 388 85 402 94 407C96 407 106 407 106 405L129 396C144 389 210 362 221 359C235 384 250 410 263 436C234 447 205 459 176 471L154 480C152 481 148 482 145 482C140 482 136 478 133 475C97 445 77 438 53 387C29 341 17 288 17 232C17 155 24 90 66 42C82 22 104 6 128 -4C134 -7 143 -12 150 -12C151 -12 152 -12 153 -12C158 -11 175 8 175 8C181 14 246 79 247 83C247 90 231 105 230 106Z" glyph-name="c" horiz-adv-x="276" unicode="c"/>
+ <glyph d="M127 433V431C106 420 88 403 68 390C63 387 49 377 46 373C45 373 45 366 45 366V154C45 148 46 142 46 137C46 115 35 104 17 99C17 96 16 93 16 89C16 86 17 82 19 80C21 76 28 76 32 74C74 62 119 39 151 19C167 9 181 -3 197 -13L233 44C273 108 313 174 313 271C313 349 282 415 238 450C206 478 167 487 128 499C89 510 38 526 38 577C38 597 51 623 79 623V643C27 643 -11 601 -11 552C-11 492 48 466 88 449C101 443 114 437 127 433ZM113 98V340C113 348 112 357 112 366C112 387 120 401 133 411C137 415 143 421 149 421C156 421 166 415 171 412C227 382 279 322 279 241C279 187 262 138 243 99C240 94 235 80 226 80C224 80 222 80 221 81L199 84C170 89 142 94 113 98Z" glyph-name="d" horiz-adv-x="339" unicode="d"/>
+ <glyph d="M247 461C245 465 241 482 236 482S225 479 221 477L189 463C152 447 114 433 78 413C68 408 38 395 35 385C23 354 17 259 17 235C17 136 52 66 99 10C103 5 113 -11 122 -11C125 -11 148 5 148 5C157 11 237 63 240 68C241 69 240 74 239 74C236 78 232 86 227 86C227 86 226 86 226 86C208 82 219 78 194 78C190 78 187 79 183 79C121 90 88 157 85 214C85 217 84 221 84 225S85 232 87 235C90 238 126 253 126 253L224 294L255 307C261 310 266 310 266 317C266 320 266 323 265 325C265 325 244 449 244 454C244 456 245 459 247 461ZM84 262C84 316 86 371 118 401C129 411 142 417 156 422C164 426 172 430 180 432L196 308L84 262Z" glyph-name="e" horiz-adv-x="294" unicode="e"/>
+ <glyph d="M1 374H36C36 198 43 56 62 -111C65 -133 69 -155 70 -177H91C91 -163 100 -55 100 -55L118 176C122 176 129 317 129 317S128 374 125 374H217V424H124C121 424 117 424 113 426C110 428 109 432 108 435C103 444 86 487 86 491C87 496 90 501 92 505C108 529 135 551 171 551C191 551 205 543 220 537C231 564 242 592 253 620L234 627L232 620C213 629 194 641 171 641C110 641 95 563 79 516C72 492 62 468 52 445C40 418 17 398 1 374Z" glyph-name="f" horiz-adv-x="233" unicode="f"/>
+ <glyph d="M245 76C248 62 251 48 255 35C266 -1 286 -40 286 -78C286 -91 284 -103 278 -116C268 -145 232 -169 199 -169C138 -169 96 -130 65 -102C62 -99 58 -94 53 -94C53 -94 52 -94 52 -94C47 -94 42 -99 37 -101C48 -115 63 -127 77 -139C115 -169 160 -192 209 -192C231 -192 247 -187 265 -182C319 -161 367 -107 367 -38C367 -28 362 -25 357 -18C327 24 314 62 314 137C314 147 314 157 314 167C314 247 325 329 342 397C319 405 338 400 307 405C273 410 241 433 218 446C210 451 182 468 173 468S157 454 154 450L116 405C68 347 38 272 38 197C38 127 66 65 101 25C105 20 118 3 126 3C129 3 157 21 157 21L245 76ZM131 393C157 379 186 369 213 357L235 348C241 346 246 342 246 334C246 330 245 325 245 321V263C245 226 244 188 244 151V121C244 118 245 106 242 106C240 102 203 80 203 80C198 77 178 63 173 62C166 62 160 72 156 77C126 114 105 162 99 219C98 219 98 273 99 273C100 299 100 326 109 351C118 375 117 369 131 393Z" glyph-name="g" horiz-adv-x="392" unicode="g"/>
+ <glyph d="M64 567H63C55 578 45 592 34 600C33 594 30 588 30 582C31 578 34 574 36 570C45 557 47 537 47 517C47 512 47 506 47 501V128C47 124 47 119 47 115C47 85 41 62 17 47C21 43 26 37 32 35C35 35 47 35 47 37C52 38 56 38 60 38C85 38 97 30 117 20C114 17 101 5 101 0C101 0 101 0 101 -1C101 -6 109 -11 114 -11C120 -11 125 -1 127 1L145 21C166 44 186 68 208 90V91L191 103L163 70C152 77 141 83 130 89C121 94 114 96 114 109C114 112 114 116 114 119V323C114 327 114 332 114 336C114 349 118 352 126 358L155 383C159 386 162 389 165 389C167 389 169 388 172 386C188 370 201 349 212 330C240 281 254 225 254 169C254 149 252 129 249 110C234 33 198 -33 158 -88C152 -97 145 -105 139 -114C136 -117 131 -121 131 -126C131 -133 146 -141 148 -142C226 -41 322 62 322 234C322 307 289 379 249 426C247 428 234 444 233 446C233 449 236 452 238 454S254 467 254 469C251 473 246 481 240 481C240 481 239 481 239 481C234 480 202 451 202 451L114 375V549C114 559 114 569 116 579C122 605 146 624 173 625V645C136 645 110 617 87 592C79 584 71 576 64 567Z" glyph-name="h" horiz-adv-x="348" unicode="h"/>
+ <glyph d="M82 505C84 505 87 505 90 505C105 505 109 511 115 521C125 537 134 556 134 578C134 593 123 600 108 600C88 600 80 584 80 563C80 559 80 554 80 550C80 535 82 520 82 505ZM17 392V391L31 378H32L53 400V129C53 123 53 118 53 112C53 103 53 94 55 86C62 47 83 13 113 -13H114C136 14 157 41 177 70C173 73 167 79 162 79C158 79 149 75 149 75C139 75 130 84 125 92C120 103 120 116 120 128V308C120 319 120 330 120 341C120 385 130 409 154 433C137 449 122 467 103 481L94 476C69 447 43 420 17 392Z" glyph-name="i" horiz-adv-x="205" unicode="i"/>
+ <glyph d="M64 567H63C54 578 44 589 34 600L30 582L40 562L47 530C47 496 47 462 46 430C37 412 27 395 17 378H47V141C47 133 47 125 47 117C47 86 41 62 17 47L32 34C53 26 72 16 90 5C98 -1 105 -7 115 -11L123 -4L197 78V79L180 91C177 87 168 73 161 73C157 73 153 76 149 78L125 92C116 97 114 100 114 114C114 121 114 128 114 135V378H217V429H204C217 461 232 509 232 546C232 555 230 564 224 572C213 586 195 586 179 589L114 519C114 529 113 539 113 550C113 591 132 621 180 621C184 621 189 621 194 621V641C188 641 183 641 177 641C169 641 161 641 153 639C124 630 102 608 82 586C76 580 69 574 64 567ZM114 429V466C114 470 114 474 114 479C114 494 123 498 131 507L145 521C147 524 152 530 158 530C163 530 170 528 174 525C188 518 198 509 198 488C198 473 191 451 187 438C185 432 182 428 173 428C170 428 166 429 163 429H114Z" glyph-name="k" horiz-adv-x="259" unicode="k"/>
+ <glyph d="M64 567H63L35 601H34C33 596 30 590 30 584S35 572 37 568C43 556 46 543 46 526C46 518 46 510 46 503V126C46 121 46 117 46 112C46 84 41 61 17 47C32 31 53 26 72 16C87 7 100 -5 115 -13C133 9 153 29 171 50C174 53 189 67 189 73C189 78 179 83 177 83C170 83 167 73 160 73C156 73 117 95 114 102C114 102 114 470 114 470C114 479 113 572 115 572C119 605 154 621 184 621V641C146 641 114 620 88 594C79 586 71 577 64 567Z" glyph-name="l" horiz-adv-x="211" unicode="l"/>
+ <glyph d="M89 484L17 397C35 389 49 373 54 353C56 342 56 331 56 320V173C56 158 57 143 57 127C57 106 56 81 46 69C41 62 33 63 33 50C33 47 34 42 34 39C50 34 60 22 68 8C74 -2 74 -14 90 -14C93 -14 97 -13 100 -13C106 10 121 32 145 39V60C124 69 123 88 123 116V351C123 354 123 358 123 361C123 374 129 377 138 383S155 395 164 402C168 405 173 410 179 410S192 400 196 395C207 381 219 368 230 354C239 345 247 340 247 323C247 317 246 310 246 303V142C246 131 247 118 247 107C247 89 246 77 236 67C231 62 224 61 224 50C224 47 225 42 225 39C240 34 250 23 258 10L266 -4C268 -11 272 -14 281 -14C284 -14 288 -13 291 -13C296 10 313 32 336 39V60C315 68 314 90 314 110C314 113 314 116 314 119V342C314 347 314 354 314 359C314 373 316 373 326 381L357 403C360 406 365 410 370 410S378 405 381 402C386 395 415 361 424 351C428 346 434 341 436 335C437 335 437 328 437 328V96C437 92 437 86 437 82C437 68 439 63 444 53C447 47 463 17 463 12C463 4 456 1 456 -6C456 -12 465 -17 470 -19L540 85V86L523 98L515 84C508 91 505 94 505 109C505 112 505 115 505 118V379C505 381 505 384 505 386C505 401 514 405 527 407V421C501 421 477 433 459 451C453 458 447 465 441 473C439 476 437 481 433 481C432 481 432 481 431 481C428 481 426 479 423 477C404 463 319 401 316 401C315 401 315 401 314 401C312 401 311 402 309 404C293 425 275 444 259 464C255 468 248 481 241 481C238 481 236 479 233 478C226 472 218 467 211 462C182 441 153 418 123 398C123 429 112 462 89 484Z" glyph-name="m" horiz-adv-x="577" unicode="m"/>
+ <glyph d="M241 484L123 398C123 421 116 444 104 464C102 469 95 481 88 481C83 479 69 460 68 459C51 439 32 419 17 397C42 385 55 365 55 332C55 326 55 320 55 315V167C55 161 55 91 55 91C54 83 51 74 46 68C41 63 33 61 33 50C33 47 34 42 34 39C48 34 58 24 66 12L74 -2C76 -9 79 -14 90 -14C98 -14 100 -11 102 -4C110 16 126 34 145 39V60C125 67 122 87 122 107C122 115 123 124 123 131V346C123 350 122 355 122 360C122 374 130 378 140 384C153 394 168 402 179 414H180C202 388 224 362 245 334C249 246 243 151 247 65L272 12L262 -8L277 -19H278L348 85V86L333 98H332L323 84C317 90 313 95 313 107C313 110 313 113 313 116V378C313 380 313 383 313 386C313 401 321 405 335 407V421C308 421 283 435 265 454C256 463 250 475 241 484Z" glyph-name="n" horiz-adv-x="387" unicode="n"/>
+ <glyph d="M18 95V93C42 79 157 8 174 -4C177 -7 181 -11 186 -11C186 -11 187 -11 187 -11C190 -10 239 47 261 82C302 147 319 226 319 303C319 374 305 432 272 484L98 414L55 396C45 392 39 393 39 378C39 374 39 371 39 368V144C39 142 39 140 39 138C39 124 38 111 27 101L18 95ZM226 69C224 66 221 60 217 60C214 60 212 61 210 62C179 82 169 88 131 111L115 121C109 125 105 127 105 137C105 142 106 147 106 151V328C106 333 106 390 106 390C108 398 120 401 127 403C148 412 170 420 191 429C196 431 204 436 210 436C213 436 215 435 217 433C221 426 224 417 227 409C249 351 258 276 258 200C258 152 248 97 226 69Z" glyph-name="o" horiz-adv-x="345" unicode="o"/>
+ <glyph d="M72 498C55 472 30 443 30 406C30 399 31 393 34 387C47 365 77 355 81 328C82 319 82 311 82 302V132L59 140L16 71C39 62 63 54 85 44L88 26C93 -46 99 -117 105 -188H126C132 -117 137 -46 143 25L244 -11C250 0 257 10 264 21C304 85 364 168 364 256C364 338 323 402 288 446C285 450 274 467 267 467C263 467 259 464 256 462L234 446C205 427 179 405 149 387C148 397 138 401 130 406C113 415 92 420 80 435C75 441 71 448 71 456C71 470 85 482 91 489L72 498ZM268 64C230 80 187 91 151 109L149 126C150 206 146 288 151 361C170 377 192 391 213 405C220 392 231 381 240 370C274 326 309 266 309 198C309 156 297 121 282 89C277 81 272 73 268 64Z" glyph-name="p" horiz-adv-x="390" unicode="p"/>
+ <glyph d="M98 484L17 395C47 389 64 367 64 330C64 324 64 318 64 312V144C64 133 64 121 64 109C64 103 64 98 64 92C62 69 40 48 17 47C23 39 30 32 44 32C67 28 87 18 104 8C108 6 127 -11 131 -11C137 -11 141 -4 144 -1C151 8 255 123 255 123V124L240 136H239C224 121 211 105 197 89C192 84 186 74 179 73C172 73 163 80 158 83L142 93C135 95 132 100 132 109C132 112 132 116 132 119V348C132 351 132 354 132 358C132 373 139 376 148 385C158 395 168 406 179 415C201 385 224 356 247 327H248L299 378V379L247 445C238 457 226 469 221 484L132 396C132 428 120 461 98 484Z" glyph-name="r" horiz-adv-x="325" unicode="r"/>
+ <glyph d="M1 374H37C36 370 36 366 36 362C36 357 36 353 36 349C36 335 36 321 37 307C37 307 37 256 37 256C37 184 52 -3 55 -37C59 -84 63 -131 71 -177H91C93 -133 98 -90 101 -46C106 23 111 91 117 160C120 194 129 286 129 316C129 356 124 394 109 431C107 435 87 487 87 491C87 500 98 513 101 516C118 538 144 550 171 550C192 550 204 542 221 537C232 564 243 592 254 620L235 627L233 620C214 629 195 641 172 641C111 641 94 562 79 515C72 491 62 468 52 445C41 418 18 398 1 374Z" glyph-name="s" horiz-adv-x="173" unicode="s"/>
+ <glyph d="M17 378H47V141C47 133 47 125 47 117C47 86 41 62 17 47L32 34C53 26 72 16 90 5C98 -1 105 -7 115 -11L125 -2L217 100V101C213 104 207 110 202 111C197 111 193 105 190 102L173 83C169 79 166 73 160 73C156 73 153 76 150 78C140 84 128 89 118 96C114 100 114 105 114 110C114 112 114 114 114 116V378H195V429H115C118 475 126 515 134 556L115 555L107 543L17 378Z" glyph-name="t" horiz-adv-x="219" unicode="t"/>
+ <glyph d="M99 484L17 379V378L32 366H33C36 370 49 389 54 389C62 389 69 374 71 371C80 354 81 336 81 317C81 314 81 310 81 307V114C81 111 81 107 81 104C81 78 62 69 41 63V42C77 42 108 23 126 -2C130 -7 132 -13 141 -13C155 -13 165 3 174 12L260 98C270 75 282 52 293 29C297 21 304 11 304 2C304 0 303 -1 303 -3L320 -13L398 112L380 122C377 117 365 95 361 94C358 94 356 95 354 97C338 109 328 128 328 154C328 160 328 166 328 171V324C328 341 328 359 328 377C328 394 327 414 335 424C337 428 343 430 344 434C345 434 345 446 345 446C325 450 307 464 301 484C299 484 297 484 295 484C287 484 286 480 283 475C276 460 258 450 243 446C243 444 243 442 243 440C243 430 252 426 255 421C260 410 260 397 260 382C260 368 260 354 260 341V161C260 154 261 147 261 140C261 124 255 122 245 112L210 77C206 73 199 63 193 63C188 63 184 68 181 70L161 88C154 93 149 97 149 109V295C149 338 148 378 134 419C128 438 111 472 99 484Z" glyph-name="u" horiz-adv-x="423" unicode="u"/>
+ <glyph d="M107 565C100 558 93 550 85 543C55 515 17 482 17 438C17 417 36 406 50 394C61 385 70 373 77 360C96 324 97 284 97 244V136C97 129 97 122 97 115C97 88 89 68 62 63V43C78 48 93 56 111 56C153 56 193 28 205 -13C208 -13 212 -14 215 -14C219 -14 222 -13 225 -11C231 -8 245 16 246 18L290 90C326 148 359 212 359 281C359 354 323 411 286 443C281 448 275 453 269 456C270 459 275 459 275 463L260 477L149 362C144 385 124 416 112 429C98 444 74 458 74 480C74 483 74 485 75 488C75 493 77 497 79 501C88 519 110 538 122 550V551L107 565ZM257 71C227 87 212 103 165 103C165 141 165 179 165 216C165 235 165 254 165 273C165 288 163 303 161 317C160 322 157 329 157 334C157 344 166 349 171 354L203 387C207 391 214 402 220 402S233 392 237 388C274 348 303 291 303 222C303 171 289 132 270 94C265 86 260 79 257 71Z" glyph-name="v" horiz-adv-x="384" unicode="v"/>
+ <glyph d="M57 391V125C57 120 57 114 57 108C57 89 55 68 35 60V39C50 34 61 22 69 9C74 0 76 -14 91 -14C94 -14 98 -13 101 -13C107 10 122 32 146 39C146 42 146 45 146 48C146 52 146 55 145 58C143 63 136 66 133 70C127 78 125 88 124 98C123 98 124 236 124 346C124 352 123 390 126 390C128 394 132 396 136 399L157 415C160 417 175 429 180 429C186 429 194 421 196 419L222 401C229 395 238 393 238 380C238 376 237 371 237 368V121C237 117 237 114 237 110C237 95 236 81 222 71C218 68 214 67 210 65C220 57 232 51 243 44L303 7C307 4 330 -11 335 -11C342 -11 348 -1 351 2C364 15 376 29 389 42C444 102 500 179 500 270C500 286 499 303 496 319C481 384 435 433 395 484H394C364 463 337 437 305 418L296 422C269 442 240 461 215 484C193 469 172 452 151 436C142 430 129 415 117 415C90 415 70 439 70 460C70 469 74 475 82 480C87 482 97 486 97 493C97 499 90 504 87 508C77 503 68 497 58 492C40 483 17 474 17 448C17 420 35 396 57 391ZM348 424C391 378 444 310 449 240C449 240 448 195 447 195C436 145 419 112 391 76C387 71 378 58 371 58C365 59 360 64 355 67L321 88C313 93 304 95 304 108C304 113 305 118 305 122V366C305 370 305 373 305 377C305 392 309 393 319 401C329 408 340 415 348 424Z" glyph-name="w" horiz-adv-x="519" unicode="w"/>
+ <glyph d="M87 484C64 455 40 427 17 397C22 394 27 391 32 387C54 366 54 339 54 311V124C54 90 51 60 17 47C21 43 28 35 34 35C38 35 43 36 46 37C54 38 62 39 70 39C83 37 94 35 106 30C112 27 118 23 124 20C120 16 108 6 108 0C108 -5 115 -11 120 -11C127 -11 130 -3 133 0L154 23C178 51 206 77 228 106C224 109 218 115 213 115S203 109 200 105L180 83C176 79 173 73 167 73C163 73 160 76 157 78C147 84 134 89 125 96C121 100 121 104 121 108C121 110 121 111 121 113V322C121 324 121 326 121 329C121 345 133 348 143 356C159 369 178 380 192 395H193C201 385 210 376 218 366C258 319 288 247 288 170C288 157 287 144 285 131C273 49 225 -22 182 -78C175 -86 147 -121 143 -128C148 -131 155 -140 161 -140C165 -140 169 -133 172 -130L197 -100C230 -60 263 -18 290 27C323 82 356 146 356 226C356 320 312 394 259 447C268 454 279 459 285 469L275 484L121 365C121 367 122 410 121 410C118 437 107 465 87 484Z" glyph-name="y" horiz-adv-x="381" unicode="y"/>
+ <glyph d="M119 484C95 447 69 412 46 374L45 354C55 362 66 371 80 371C116 371 142 330 142 300C142 249 92 227 65 204C58 199 54 194 54 184C54 180 54 177 54 174L95 167C87 157 78 149 71 139C41 102 17 48 17 -14C17 -65 34 -116 76 -148C93 -160 119 -172 146 -172C160 -172 175 -169 185 -165C243 -141 273 -72 273 3C273 49 260 96 239 136C226 160 210 180 192 200C212 208 234 212 258 216C256 222 251 233 242 233C238 233 205 227 193 223C189 221 182 218 177 218C176 218 176 218 175 218C170 219 148 237 140 241C147 249 155 256 163 263C186 287 208 316 208 360C208 420 167 466 119 484ZM47 -27C47 -19 48 -10 48 -2C50 39 65 81 88 115C92 121 114 151 121 151C125 150 129 146 132 144C177 104 202 28 202 -45C202 -62 199 -78 192 -93C180 -119 151 -143 117 -143C104 -143 91 -139 80 -129C52 -104 51 -62 47 -27Z" glyph-name="z" horiz-adv-x="299" unicode="z"/>
+ <glyph d="M1 374H36C36 186 47 13 69 -165C69 -172 71 -178 81 -178C84 -178 88 -177 91 -177C91 -164 110 70 118 174C122 221 129 269 129 316C129 354 125 392 111 428C108 435 87 483 87 490C87 500 97 512 101 516C118 536 144 551 171 551C186 550 198 544 212 541C200 505 188 470 173 437L126 374H162C162 368 161 361 161 355C161 340 162 326 162 311C163 206 167 101 177 -4C182 -62 186 -120 196 -177H216C219 -137 254 308 254 319C254 357 250 395 235 430L217 474C215 479 212 485 212 490C212 499 222 511 225 515C241 535 268 551 296 551C314 551 331 542 346 537L379 620L360 628L358 620C338 629 318 641 295 641C283 641 273 637 264 632C260 630 255 624 250 623C245 623 239 626 235 628L232 620C215 629 192 641 170 641C112 641 95 563 80 519C72 494 63 468 52 444C40 418 18 397 1 374Z" glyph-name="Aogonek" horiz-adv-x="305" unicode="&#x104;"/>
+ <glyph d="M232 620C214 629 194 641 171 641C112 641 94 565 80 517C75 503 56 454 52 444C40 417 17 398 1 374H36C36 180 46 20 69 -165C69 -172 71 -178 81 -178C84 -178 88 -177 91 -177C91 -146 96 -114 98 -83C104 3 111 88 118 174C122 222 128 270 129 318C129 356 124 394 110 429L92 473C90 478 87 484 87 490C87 502 100 516 105 521C122 539 145 550 170 550C189 550 206 543 220 537C231 559 239 583 248 606C254 619 258 642 276 642C285 642 290 632 290 623C290 596 274 567 266 553L203 438C192 418 180 399 171 378H201V142C201 133 202 123 202 113C202 84 194 61 171 47C182 35 195 30 210 24C222 18 234 12 245 4C245 4 270 -17 270 -10C273 -9 276 -6 278 -3L293 14C311 34 346 71 362 91C365 93 369 97 369 101S359 114 355 114C350 108 322 74 315 73C312 73 294 83 288 87C277 93 267 95 267 112C267 118 268 123 268 128V378H337V429H269C272 443 272 458 273 473C276 498 281 523 286 547C288 556 293 564 296 573C301 586 305 601 305 614C305 640 294 662 271 662S238 636 232 620Z" glyph-name="Cacute" horiz-adv-x="389" unicode="&#x106;"/>
+ <glyph d="M1 374H36C36 200 43 53 62 -111C65 -133 69 -155 70 -177H91C91 -163 112 103 119 188C123 188 128 318 128 318S127 374 125 374H161C161 200 168 53 187 -111C190 -133 194 -155 195 -177H216C216 -163 237 103 244 188C248 188 253 318 253 318S252 374 250 374H342V424H248C245 424 241 424 238 426S233 433 232 436C229 445 211 489 211 490C211 496 215 501 218 506C233 528 260 551 295 551C315 551 330 543 345 537L378 620L359 627L357 620C337 629 316 641 293 641C282 641 272 638 264 633C259 630 255 624 249 624C246 624 234 625 234 627L232 620C214 628 193 641 172 641C111 641 93 562 79 514C75 502 69 490 65 478C60 467 57 455 52 444C40 417 17 398 1 374ZM212 541C205 520 198 499 190 478L178 448C173 437 169 424 153 424C149 424 145 424 142 424H123C111 424 109 430 105 441L92 473C90 478 86 484 86 490C86 498 93 506 97 512C113 533 138 551 169 551C188 551 195 546 212 541Z" glyph-name="Dcaron" horiz-adv-x="365" unicode="&#x10E;"/>
+ <glyph d="M227 567C220 579 209 591 199 600L195 582C202 570 207 555 211 540V424H210L187 484C176 479 61 412 61 412C45 402 44 399 38 377C25 338 17 284 17 236C17 228 17 220 17 213C17 156 20 93 63 50C78 35 106 18 129 14L115 -4L132 -11C159 10 178 39 205 60C232 48 254 31 280 19L263 0V-1L280 -13L373 91V92C369 95 363 101 358 101C354 101 351 98 349 95C346 92 330 73 326 73S318 76 314 78L293 90C286 94 279 98 279 109C279 111 279 113 279 115V327C279 330 279 333 279 336C279 351 286 354 295 361C307 371 321 381 331 393H332C340 381 351 370 360 358C393 309 420 243 420 167C418 69 375 -17 326 -84C315 -99 303 -112 293 -127L311 -142H312C332 -120 350 -96 368 -72C431 12 488 113 488 221C488 323 446 395 395 448L420 468V469L407 484H406L279 375V554C279 565 279 575 282 585C288 602 302 616 318 622C324 624 331 625 338 626V646C308 645 283 627 263 605C251 592 241 578 227 567ZM136 431C144 409 153 387 162 366L211 393V119C211 116 211 112 211 109C211 93 203 90 194 81C184 71 176 57 158 57C142 57 126 71 117 83C88 120 87 184 85 241C85 252 84 263 83 274V291C82 298 82 305 82 312C82 357 95 409 136 431Z" glyph-name="Ecaron" horiz-adv-x="512" unicode="&#x11A;"/>
+ <glyph d="M198 600L194 582C201 571 206 556 210 542C211 504 211 465 210 427H209L187 483C174 480 162 470 151 464L82 424C74 419 66 415 58 410C43 402 44 395 37 376C25 336 17 285 17 235C17 226 17 218 17 209C17 153 21 94 62 51C78 35 103 18 129 14L115 -4L132 -11L140 -5L203 62H204C217 40 236 20 256 4C260 1 272 -11 278 -11C283 -11 296 6 296 6L343 58C347 63 359 72 359 80C358 83 351 88 346 88C345 88 345 88 344 88C337 86 333 73 325 73C321 73 298 87 290 92C283 97 278 97 278 109C278 114 279 119 279 123V378H381V429H369C379 459 397 509 397 545C397 549 397 552 396 556C394 575 372 589 351 589C338 589 330 574 324 568C309 552 295 536 279 520V556C279 560 279 563 279 567C279 603 310 621 344 621C349 621 354 621 358 621V641C352 641 347 641 342 641C291 641 267 607 241 581C238 578 233 570 228 570C224 570 221 575 219 578C212 585 206 595 198 600ZM349 429H279V471C279 473 279 476 279 478C279 483 279 487 282 491C288 501 298 510 306 518C311 523 314 530 323 530C347 530 363 507 363 488C363 468 352 449 349 429ZM135 431L161 366L184 377L211 378V119C211 116 211 113 211 110C211 94 202 89 193 80S176 57 158 57C144 57 130 67 121 77C99 102 94 134 90 166C88 182 86 197 85 213C86 246 82 275 82 308C82 360 95 406 135 431Z" glyph-name="Eogonek" horiz-adv-x="422" unicode="&#x118;"/>
+ <glyph d="M309 570C303 568 283 556 280 552C273 544 277 529 261 529C252 529 244 534 237 536C253 555 273 572 290 590C294 594 311 609 311 615C311 631 277 638 269 638C254 638 241 629 231 624C209 610 185 599 185 564C185 538 205 503 236 503C253 503 269 514 285 523C297 530 312 542 312 557C312 558 312 559 312 560C312 564 310 567 309 570ZM223 551C221 559 220 567 220 574C220 591 229 612 247 612C257 612 267 608 276 603L223 551ZM162 484L135 456C113 434 91 412 74 386C38 331 17 254 17 169C17 158 18 148 19 137C26 79 65 25 113 1L97 -13L128 -12C167 16 200 49 237 78C240 61 245 44 251 28C253 25 263 4 263 2C263 -3 257 -9 254 -13L279 -12C300 10 320 33 338 58L339 87C337 85 333 82 329 82C318 82 308 95 304 103C302 109 302 116 302 123V254C302 266 301 279 301 292C301 328 309 354 327 376C330 381 336 385 336 390C336 397 325 407 324 409C315 421 312 422 292 425C251 436 224 446 189 466C180 472 171 479 162 484ZM121 414C134 408 200 368 202 367L222 355C230 351 234 347 234 336C234 333 234 330 234 328V124C234 121 234 118 234 114C234 111 234 108 233 105C228 91 192 81 177 81C137 81 107 116 97 153C91 173 90 193 90 213C90 225 91 238 91 250C92 296 91 345 108 389C111 398 117 406 121 414Z" glyph-name="Lcaron" horiz-adv-x="365" unicode="&#x13D;"/>
+ <glyph d="M141 619C138 619 138 597 138 580C138 570 139 547 138 547C138 541 137 535 136 529C136 527 136 525 136 522C136 521 136 519 136 518C139 514 146 508 152 508C160 508 177 529 178 531C198 555 208 588 208 619C208 637 195 651 177 651C156 651 144 636 141 619ZM274 517C279 514 285 508 291 508C294 508 297 511 300 513C328 533 347 578 347 619C347 639 333 651 315 651C282 651 277 614 277 581C276 559 278 538 274 517ZM162 484L135 456C113 434 91 412 74 386C38 331 17 254 17 169C17 158 18 148 19 137C26 79 65 25 113 1L97 -13L128 -12C167 16 200 49 237 78C240 61 245 44 251 28C253 25 263 4 263 2C263 -3 257 -9 254 -13L279 -12C300 10 320 33 338 58L339 87C337 85 333 82 329 82C318 82 308 95 304 103C302 109 302 116 302 123V254C302 266 301 279 301 292C301 328 309 354 327 376C330 381 336 385 336 390C336 397 325 407 324 409C315 421 312 422 292 425C251 436 224 446 189 466C180 472 171 479 162 484ZM121 414C134 408 200 368 202 367L222 355C230 351 234 347 234 336C234 333 234 330 234 328V124C234 121 234 118 234 114C234 111 234 108 233 105C228 91 192 81 177 81C137 81 107 116 97 153C91 173 90 193 90 213C90 225 91 238 91 250C92 296 91 345 108 389C111 398 117 406 121 414Z" glyph-name="Lslash" horiz-adv-x="365" unicode="&#x141;"/>
+ <glyph d="M17 378H47V142C47 133 48 123 48 113C48 84 40 61 17 47C33 30 56 25 76 14C86 6 96 5 96 -13C98 -21 100 -28 103 -35C119 -70 152 -99 201 -99C213 -99 224 -98 235 -95C301 -77 343 -8 343 69C343 141 307 213 249 256C232 268 213 280 192 286V287C203 293 211 305 219 315C235 337 249 363 249 397C249 440 225 486 196 504C175 476 157 433 116 429C116 459 121 490 127 519C129 531 133 544 134 556L115 555L107 543L17 378ZM114 242V366C114 380 122 386 136 386C167 386 182 356 182 332C182 291 142 265 114 242ZM114 204C196 193 253 130 267 57C270 45 272 33 272 21C272 3 267 -14 256 -30C238 -52 210 -71 175 -71C160 -71 145 -66 134 -54C127 -46 117 -27 117 -16C117 -15 117 -15 117 -14C119 -6 133 6 136 10C143 18 190 66 190 74C190 78 181 84 177 84C171 84 166 74 163 70C147 79 130 88 116 99C110 129 116 170 114 204Z" glyph-name="Nacute" horiz-adv-x="364" unicode="&#x143;"/>
+ <glyph d="M74 533L91 522C115 559 159 584 204 584C214 584 225 583 235 580C269 570 303 543 303 502C303 493 300 484 296 477C284 456 260 449 237 449C203 449 165 464 145 476C142 478 138 481 134 481C129 481 126 474 123 471C88 422 51 374 17 324C54 297 98 252 98 192C98 160 83 143 68 123C51 99 32 75 17 49C24 43 30 38 42 38C46 38 49 38 52 38C105 38 150 15 182 -4C186 -7 190 -11 195 -11C195 -11 196 -11 196 -11C200 -10 216 5 216 5L262 47C302 83 348 130 348 188C348 239 316 269 288 291C278 299 246 322 237 327C258 355 277 384 297 412C310 430 328 449 333 471C334 471 335 486 335 486S334 507 332 507C330 519 325 530 319 541C300 579 249 604 203 604C150 604 96 573 74 533ZM84 382C92 393 100 405 110 415C156 402 196 382 240 367L159 252C157 263 155 275 152 286C143 312 129 336 112 356C103 365 95 376 84 382ZM76 98L188 258C197 253 205 247 214 241C248 220 291 192 291 147C291 121 279 100 268 86C264 81 239 50 232 50C228 50 223 55 219 57C174 82 145 93 76 98Z" glyph-name="Eng" horiz-adv-x="372" unicode="&#x14A;"/>
+ <glyph d="M290 570C281 565 270 561 263 554C255 546 259 529 243 529C235 529 225 533 219 536C235 555 255 572 272 590C275 593 293 610 293 614C293 629 262 638 253 638C235 638 225 631 211 623C189 610 166 598 166 563C166 560 166 556 167 552C173 529 193 503 217 503C237 503 257 516 273 527C283 533 294 545 294 558C294 559 294 559 294 560C294 564 292 567 290 570ZM205 550C202 558 201 566 201 574C201 590 211 612 228 612C238 612 248 607 258 603L205 550ZM18 95V93C42 79 157 8 174 -4C177 -7 181 -11 186 -11C186 -11 187 -11 187 -11C190 -10 239 47 261 82C302 147 319 226 319 303C319 374 305 432 272 484L98 414L55 396C45 392 39 393 39 378C39 374 39 371 39 368V144C39 142 39 140 39 138C39 124 38 111 27 101L18 95ZM226 69C224 66 221 60 217 60C214 60 212 61 210 62C179 82 169 88 131 111L115 121C109 125 105 127 105 137C105 142 106 147 106 151V328C106 333 106 390 106 390C108 398 120 401 127 403C148 412 170 420 191 429C196 431 204 436 210 436C213 436 215 435 217 433C221 426 224 417 227 409C249 351 258 276 258 200C258 152 248 97 226 69Z" glyph-name="Zacute" horiz-adv-x="345" unicode="&#x179;"/>
+ <glyph d="M116 517C121 514 127 508 133 508C136 508 139 511 142 513C170 533 189 578 189 619C189 638 176 651 158 651C150 651 142 648 135 643C118 628 123 608 119 580C118 580 118 566 118 557C118 547 119 517 116 517ZM262 618C260 618 259 600 259 585C259 574 260 546 259 546C258 540 258 535 257 529C257 527 257 525 257 522C257 513 265 508 273 508C276 508 279 511 282 513C309 533 329 583 329 619C329 637 316 651 298 651C277 651 265 636 262 618ZM18 95V93C42 79 157 8 174 -4C177 -7 181 -11 186 -11C186 -11 187 -11 187 -11C190 -10 239 47 261 82C302 147 319 226 319 303C319 374 305 432 272 484L98 414L55 396C45 392 39 393 39 378C39 374 39 371 39 368V144C39 142 39 140 39 138C39 124 38 111 27 101L18 95ZM226 69C224 66 221 60 217 60C214 60 212 61 210 62C179 82 169 88 131 111L115 121C109 125 105 127 105 137C105 142 106 147 106 151V328C106 333 106 390 106 390C108 398 120 401 127 403C148 412 170 420 191 429C196 431 204 436 210 436C213 436 215 435 217 433C221 426 224 417 227 409C249 351 258 276 258 200C258 152 248 97 226 69Z" glyph-name="Zcaron" horiz-adv-x="345" unicode="&#x17D;"/>
+ <glyph d="M292 570C287 567 266 556 263 552C256 544 261 529 244 529C236 529 227 533 220 536C236 555 256 572 273 590C277 594 294 609 294 615C294 620 289 624 286 627C276 635 264 638 252 638C236 638 224 630 214 624C192 612 168 597 168 564C168 537 188 503 220 503C238 503 254 515 270 524C282 531 296 543 296 558C296 563 293 568 292 570ZM206 551C204 559 203 567 203 574C203 590 212 613 230 613C240 613 251 608 259 603L206 551ZM99 484L17 379V378L32 366H33C36 370 49 389 54 389C62 389 69 374 71 371C80 354 81 336 81 317C81 314 81 310 81 307V114C81 111 81 107 81 104C81 78 62 69 41 63V42C77 42 108 23 126 -2C130 -7 132 -13 141 -13C155 -13 165 3 174 12L260 98C270 75 282 52 293 29C297 21 304 11 304 2C304 0 303 -1 303 -3L320 -13L398 112L380 122C377 117 365 95 361 94C358 94 356 95 354 97C338 109 328 128 328 154C328 160 328 166 328 171V324C328 341 328 359 328 377C328 394 327 414 335 424C337 428 343 430 344 434C345 434 345 446 345 446C325 450 307 464 301 484C299 484 297 484 295 484C287 484 286 480 283 475C276 460 258 450 243 446C243 444 243 442 243 440C243 430 252 426 255 421C260 410 260 397 260 382C260 368 260 354 260 341V161C260 154 261 147 261 140C261 124 255 122 245 112L210 77C206 73 199 63 193 63C188 63 184 68 181 70L161 88C154 93 149 97 149 109V295C149 338 148 378 134 419C128 438 111 472 99 484Z" glyph-name="dcroat" horiz-adv-x="423" unicode="&#x111;"/>
+ <glyph d="M154 650C150 650 146 649 143 647C122 638 121 612 121 591C121 588 121 584 121 581V566C121 559 120 552 120 545C120 540 120 534 119 529C119 527 119 525 119 522C119 521 119 519 119 518C122 514 129 508 135 508C138 508 141 511 144 513C170 535 190 577 190 616C190 637 181 651 160 651C158 651 156 650 154 650ZM257 517C262 514 268 508 274 508C278 508 282 512 284 513C311 540 330 569 330 619C330 639 316 651 298 651C278 651 267 636 263 619C259 598 259 530 257 517ZM99 484L17 379V378L32 366H33C36 370 49 389 54 389C62 389 69 374 71 371C80 354 81 336 81 317C81 314 81 310 81 307V114C81 111 81 107 81 104C81 78 62 69 41 63V42C77 42 108 23 126 -2C130 -7 132 -13 141 -13C155 -13 165 3 174 12L260 98C270 75 282 52 293 29C297 21 304 11 304 2C304 0 303 -1 303 -3L320 -13L398 112L380 122C377 117 365 95 361 94C358 94 356 95 354 97C338 109 328 128 328 154C328 160 328 166 328 171V324C328 341 328 359 328 377C328 394 327 414 335 424C337 428 343 430 344 434C345 434 345 446 345 446C325 450 307 464 301 484C299 484 297 484 295 484C287 484 286 480 283 475C276 460 258 450 243 446C243 444 243 442 243 440C243 430 252 426 255 421C260 410 260 397 260 382C260 368 260 354 260 341V161C260 154 261 147 261 140C261 124 255 122 245 112L210 77C206 73 199 63 193 63C188 63 184 68 181 70L161 88C154 93 149 97 149 109V295C149 338 148 378 134 419C128 438 111 472 99 484Z" glyph-name="section" horiz-adv-x="423" unicode="&#xA7;"/>
+ </font>
+ <font horiz-adv-x="0" id="ygoth">
+ <font-face ascent="751" descent="-249" font-family="ygoth" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M0 635C26 616 54 591 54 548V525V148C38 126 24 101 11 75C67 44 118 9 177 -19L188 -15C221 4 255 23 287 43H288L313 25C337 11 356 -8 383 -19L393 -15C445 14 496 43 545 74C543 83 539 89 536 96C536 196 535 297 537 395L547 417L399 490C389 465 375 441 356 421C353 418 340 403 335 403C331 403 328 407 325 410C319 415 229 495 227 495L138 390V527V560C138 577 139 593 144 609C150 630 168 656 196 656C210 656 218 648 222 634C226 637 232 641 232 648C232 662 216 669 203 669C180 669 163 657 148 648L109 623C104 620 83 604 78 604H77C71 604 65 612 60 615L28 641C25 644 20 649 15 649S0 639 0 635ZM444 39C412 62 376 81 346 107L344 126V357C357 373 372 387 390 399C413 391 432 380 451 368C451 368 452 347 452 347C452 246 453 144 451 46L444 39ZM238 75C247 69 247 63 247 53C247 48 245 42 239 42S215 55 215 55L163 85C153 91 138 94 138 111V122V335V344C138 362 149 369 158 379L180 404C182 407 186 414 191 414C197 414 202 407 206 404L236 377C241 373 246 369 247 362V128C247 121 248 113 248 105C248 101 248 98 247 94C245 87 240 82 238 75Z" glyph-name="circumflex" horiz-adv-x="573" unicode="&#x2C6;"/>
+ <glyph d="M154 469C146 452 137 435 125 421C98 391 61 371 25 354C32 341 40 329 46 315C49 251 47 179 46 115C40 101 32 89 25 76C82 45 135 10 193 -20L203 -16L285 32L275 51L253 42L243 47C207 70 167 88 133 113L131 135C131 222 130 310 132 394L142 410C168 395 195 379 222 365C236 389 250 413 263 438L198 475L179 486C175 489 170 493 163 493C150 492 147 487 131 487C94 487 68 511 58 545C57 545 56 562 56 562S56 572 57 572C65 634 124 666 185 666C250 666 308 628 346 586C351 580 355 574 361 569V568C324 513 292 454 257 398H299V131C299 126 300 121 300 116C300 110 299 105 297 101C294 97 279 81 279 75C281 68 293 56 296 53L340 1C343 -2 354 -19 359 -19C363 -19 368 -15 372 -13L400 3C438 23 472 45 510 66L500 85C471 71 444 54 416 38C405 52 394 65 384 80C381 183 384 293 383 398H467V462H383C383 504 388 545 394 587H384C380 587 377 587 374 588C368 591 353 611 352 612C315 652 254 688 187 688C107 688 35 638 35 562C35 516 67 466 124 466C134 466 144 467 154 469Z" glyph-name="hungarumlaut" horiz-adv-x="444" unicode="&#x2DD;"/>
+ <glyph d="M43 581C29 558 14 525 14 494C14 491 14 488 15 486C19 481 42 471 44 470L97 444C107 439 117 433 128 429C104 405 78 384 55 359L54 347V116L33 75C82 44 126 10 177 -19L188 -15C221 4 255 23 287 43H288L313 25C337 11 356 -8 383 -19L393 -15C445 14 496 43 545 74C543 83 539 89 536 96C536 196 535 297 537 395L547 417L399 490C384 453 361 424 332 398L342 417L260 457C193 491 124 523 58 558L43 581ZM238 75C247 69 247 63 247 53C247 47 244 42 238 42H237C233 42 210 58 210 58L164 89C155 96 138 101 138 118V124V347V364C138 376 138 387 141 398C143 403 146 414 154 414C156 414 158 414 159 413C164 411 208 388 226 380C238 374 248 374 248 356C248 351 247 346 247 341V119V102C247 86 243 91 238 75ZM444 39C412 62 376 81 346 107L344 126V357C357 373 372 387 390 399C413 391 432 380 451 368C451 368 452 347 452 347C452 246 453 144 451 46L444 39Z" glyph-name="breve" horiz-adv-x="590" unicode="&#x2D8;"/>
+ <glyph d="M100 495L37 442L72 398H54V137L30 149C16 125 2 101 -11 75C4 68 19 60 34 52C44 47 54 46 54 32V25V-15V-48C54 -78 53 -107 41 -135C34 -151 24 -164 14 -178L34 -188L76 -127C99 -141 121 -157 144 -171C159 -181 178 -195 201 -195C216 -195 233 -189 233 -175C233 -167 226 -163 222 -160C219 -173 213 -181 199 -181C176 -181 158 -161 151 -147C138 -125 138 -99 138 -75V-1C151 -7 164 -14 177 -20L187 -16C216 2 246 18 275 36H276C291 17 306 -2 323 -19L333 -15C370 8 405 34 445 55L452 50L512 -21H513L576 32L541 76H559C560 184 557 298 560 400C569 411 580 420 590 429C551 450 517 475 476 493L464 487C421 458 379 428 338 397H337L246 460V461C252 467 260 471 264 480L252 495H251L189 438C182 432 176 424 166 420L159 426C140 450 120 473 100 495ZM183 402H184C196 390 213 381 227 371C237 364 247 363 247 346V336V98V92C247 87 246 82 242 77C246 69 247 62 247 53C247 48 246 43 240 43C237 43 222 51 217 53L162 81C153 87 138 88 138 105V116V341V348C138 362 145 366 153 373C162 381 172 389 182 397L183 402ZM475 230C462 230 448 229 434 229C396 229 370 237 346 256C339 261 331 267 331 280V288V347V353C331 364 340 370 346 375C361 388 411 427 428 427C440 427 449 418 456 413C465 408 475 404 475 390V384V230ZM331 220V239L351 225L331 220ZM431 77L432 74C415 64 400 53 381 45C369 53 361 65 352 76H370V157C370 183 380 208 412 208H421H475C475 176 476 143 473 114C460 100 445 89 431 77Z" glyph-name="guillemotleft" horiz-adv-x="612" unicode="&#xAB;"/>
+ <glyph d="M100 495C85 481 69 469 53 455C49 452 39 447 39 441V440C39 435 45 430 48 427L72 398H54V137L30 149L-12 76C3 68 18 60 33 53C44 48 54 46 54 30V23V-16V-41C54 -74 53 -107 40 -138C33 -153 24 -165 14 -178L34 -188L76 -127C96 -141 117 -154 137 -167C155 -179 175 -195 202 -195C215 -195 232 -187 232 -175C232 -168 225 -163 221 -160C218 -173 212 -181 197 -181C174 -181 157 -159 150 -146C138 -124 138 -99 138 -75V-1C151 -8 163 -15 177 -20C219 1 257 26 299 48L309 44C339 23 368 1 399 -19L411 -16C446 5 484 23 516 47L518 67C501 59 482 45 463 45H459C447 47 425 66 419 70L387 92C379 98 368 100 368 114C368 118 369 122 369 125V164V174C369 190 376 194 385 204L419 244L540 387V388L433 495H432C405 471 377 449 346 431C345 431 313 411 313 415C306 417 299 424 293 428L265 447C259 451 253 456 246 459C252 465 258 472 263 479L251 495L222 469C203 453 189 432 166 420L159 426C139 449 121 473 100 495ZM181 400C191 399 228 369 229 369C238 364 246 361 246 346V336V67C246 64 247 60 247 55S246 45 242 43C240 43 233 43 233 45C228 47 179 73 160 82C149 87 138 89 138 106V115V336V347C138 362 143 365 152 372C162 381 172 389 182 397L181 400ZM369 221V402V411C369 419 373 424 380 424C384 424 387 421 389 419L445 363C453 355 461 346 470 339L369 221Z" glyph-name="guillemotright" horiz-adv-x="556" unicode="&#xBB;"/>
+ <glyph d="M100 495L37 442L72 398H54V137L30 149C16 125 2 101 -11 75C4 68 19 60 34 52C44 47 54 46 54 32V25V-15V-48C54 -78 53 -107 41 -135C34 -151 24 -164 14 -178L34 -188L76 -127C99 -141 121 -157 144 -171C159 -181 178 -195 201 -195C216 -195 233 -189 233 -175C233 -167 226 -163 222 -160C219 -173 213 -181 199 -181C176 -181 158 -161 151 -147C138 -125 138 -99 138 -75V-1C151 -7 164 -14 177 -20C217 -2 251 22 287 43H288L313 25C337 11 356 -8 383 -19L393 -15C445 14 496 43 545 74C543 83 539 89 536 96C536 196 535 297 537 395L547 417L399 490C389 464 374 439 354 419C350 415 340 402 333 402C327 404 310 417 308 418L270 444C262 449 254 455 246 460V461C252 467 260 471 264 480L252 495H251L189 438C182 432 176 424 166 420L159 426C140 450 120 473 100 495ZM184 402C204 387 225 373 245 357L247 335V94L238 75C247 70 247 64 247 54C247 49 246 43 240 43C236 43 233 45 230 47C216 53 162 81 161 82C152 87 138 89 138 105V116V341V348C138 362 145 366 153 373C162 381 172 389 182 397C183 398 181 402 184 402ZM444 39C412 62 376 81 346 107L344 126V357C357 373 372 387 390 399C413 391 432 380 451 368C451 368 452 347 452 347C452 246 453 144 451 46L444 39Z" glyph-name="endash" horiz-adv-x="590" unicode="&#x2013;"/>
+ <glyph d="M53 630L29 601C12 576 -1 545 -1 514C-1 501 1 487 8 474C20 449 49 433 54 404V148C47 144 43 134 39 127C30 110 19 93 10 76C21 69 170 -19 176 -19H178C185 -19 205 -5 206 -4L268 31C274 34 292 47 299 47C303 47 326 30 326 30L372 -2C377 -6 392 -20 399 -20C403 -20 406 -17 409 -15C417 -11 505 40 505 40C511 44 516 46 516 57C516 60 515 64 515 67C498 59 479 45 459 45C444 45 423 66 418 69L385 92C377 97 366 101 366 115C366 119 367 123 367 126V164V174C367 186 370 191 377 198L396 221L470 308L519 365C522 369 535 382 535 387C535 391 531 394 528 397L430 495H429C404 471 375 450 345 432C340 428 321 416 314 416C305 416 297 425 292 428C277 438 262 451 246 459C252 465 258 472 263 479L251 495C212 461 176 425 138 390C138 431 128 454 109 482C89 510 54 531 54 575C54 592 61 605 70 614L53 630ZM368 221H367V377C367 385 366 394 366 402C366 413 367 424 377 424H378C381 424 383 422 385 420L442 363C450 355 458 346 467 339C434 299 399 262 368 221ZM138 111V118V339V348C138 360 142 364 150 370C155 374 177 398 183 399C189 399 195 393 199 390L228 370C237 363 246 362 246 346V338V65V55C246 49 245 42 239 42C232 42 223 50 218 53L162 85L147 94C140 96 138 102 138 111Z" glyph-name="ffi" horiz-adv-x="556" unicode="&#xFB03;"/>
+ <glyph d="M140 430C104 399 66 370 32 337C31 310 31 282 31 254C68 284 105 313 139 346C142 372 141 403 140 430ZM140 220C104 189 66 160 32 127C31 100 31 72 31 44C68 74 105 103 139 136C142 162 141 193 140 220Z" glyph-name="hyphen" horiz-adv-x="156" unicode="-"/>
+ <glyph d="M138 495L79 436V435L138 376H139L198 435V436L138 495ZM138 98L79 39V38L138 -21H139L198 38V39L138 98Z" glyph-name="colon" horiz-adv-x="278" unicode=":"/>
+ <glyph d="M189 664C183 653 175 644 167 634C138 599 108 575 70 551C61 545 52 545 52 529C52 524 53 518 53 514V456C53 448 54 440 54 432C54 426 53 420 52 414C51 406 36 361 31 347H53V-141L63 -139L71 -128C92 -85 116 -44 136 1C142 186 133 389 138 571L152 587H153C171 571 190 555 209 540L239 591C242 596 249 604 249 611S239 623 235 627L207 650C201 655 196 660 189 664ZM175 398H217V129C217 124 218 120 218 115S217 105 215 101C215 101 192 75 197 75C197 72 210 58 213 53L257 1C259 -2 272 -19 277 -19C281 -19 286 -15 290 -13L318 3C354 24 391 44 427 66L417 85C389 71 365 53 335 41C320 50 313 67 302 79L301 95V398H385V462H301C302 506 304 549 311 587L291 586L281 573L208 454L175 398Z" glyph-name="less" horiz-adv-x="377" unicode="&lt;"/>
+ <glyph d="M83 532L102 522C101 525 101 529 101 533C101 545 105 558 110 569C123 601 159 626 198 626C211 626 223 624 235 619C262 608 285 587 315 587C355 587 380 615 404 639C392 623 376 610 362 595C326 557 292 519 272 470C267 457 262 443 260 429C242 441 220 448 199 448C164 448 126 427 113 397C150 397 187 384 216 360C224 353 247 334 247 320C247 316 246 312 246 308C232 315 216 319 200 319C169 319 138 305 124 274C162 274 196 250 210 215C214 206 217 195 217 185C217 174 208 163 204 157C177 115 137 79 94 54C80 46 64 40 49 33C36 26 23 18 10 12L18 -9C29 -4 40 2 51 7C122 41 211 67 304 67C399 67 482 36 544 -21H545L661 135V136L644 149H643C624 127 604 115 565 115C528 115 498 123 463 125C457 125 397 127 397 125C383 124 370 122 356 122V123C376 135 394 155 409 173C452 226 479 292 479 365C479 395 476 426 474 455C473 455 471 497 472 497C473 522 477 546 488 569C510 615 559 636 608 636V653H594C556 653 518 652 483 638C473 633 464 628 455 622C386 568 391 462 387 367V339C385 284 380 227 352 178C339 156 316 128 295 116C288 111 280 111 272 109C260 107 247 104 235 101V102C265 116 301 151 317 177C345 218 354 270 354 335V381C354 403 354 424 357 446C367 507 395 553 424 599C435 619 457 663 471 677C474 680 480 684 480 689C480 695 474 701 471 706C443 690 426 650 384 650C367 650 352 655 336 663C302 680 276 706 230 706C174 705 143 650 120 606C114 595 83 533 83 532ZM426 664C426 664 421 658 421 658S426 664 426 664ZM413 649L420 657L413 649ZM404 639L413 649L404 639Z" glyph-name="L" horiz-adv-x="654" unicode="L"/>
+ <glyph d="M193 455C182 457 171 459 161 459C141 459 121 454 102 446C98 444 74 431 74 427C81 428 88 428 94 428C101 428 108 428 115 426C150 418 179 390 189 356C182 357 176 357 169 357C146 357 123 352 102 342C98 340 73 325 73 322C110 322 146 306 172 279C183 268 191 255 200 242C188 242 176 242 164 240C131 233 100 212 84 182C104 192 128 200 152 200C174 200 195 193 212 175C223 162 226 150 226 127C223 94 201 69 180 53C174 49 169 43 162 40S147 36 140 34C72 17 14 -40 14 -110H36C36 -104 37 -97 39 -91C50 -64 82 -60 111 -60C111 -60 181 -62 181 -63C186 -63 232 -66 232 -62C309 -45 342 40 348 117V273C348 276 348 280 350 282C352 288 375 294 378 295C401 302 426 306 450 306C487 306 513 296 543 286C540 274 539 261 537 249C515 148 479 66 429 -11C420 -26 408 -40 400 -55L417 -67H418C428 -55 439 -43 451 -33C479 -12 516 1 552 1C575 1 598 -4 615 -11C619 -13 631 -19 636 -19C639 -18 659 17 659 17C680 53 703 88 723 124L704 135L685 102C669 107 656 111 636 111C604 111 573 101 545 86C534 80 524 72 514 66C533 89 548 116 563 142C609 218 647 308 647 408C647 434 644 460 635 485C614 546 570 596 521 636C500 654 477 669 454 685C449 688 424 704 419 704S410 701 406 698L208 580C204 577 196 575 194 570C193 570 193 564 193 564C194 543 193 460 193 455ZM348 589C428 581 496 530 529 456C497 441 481 427 434 427C407 427 381 434 361 443C354 446 348 449 348 459V464V589ZM545 307C516 321 483 328 450 328C411 328 377 319 348 306V428C372 412 403 405 433 405C478 405 506 420 536 439C542 417 547 396 548 373C548 373 547 307 545 307ZM234 46V47C262 60 285 87 291 117C293 117 294 146 294 146C292 237 293 538 293 574V578C293 585 297 588 304 588C311 589 319 589 326 590V173V145C326 136 326 126 324 118C313 77 273 54 234 46Z" glyph-name="N" horiz-adv-x="738" unicode="N"/>
+ <glyph d="M95 442C69 420 33 380 33 335V333C33 280 71 239 116 216C150 199 187 193 223 193C243 193 262 195 281 197L268 152C184 152 104 146 52 106C31 92 13 67 13 34C13 16 19 -2 30 -16C51 -43 87 -55 132 -55C222 -55 308 -36 371 -4C376 -1 396 11 402 11S444 -12 455 -21H456C498 21 558 74 595 117C643 176 695 253 695 351C695 382 687 412 668 437C638 475 599 496 529 496H515C492 496 403 491 387 488L448 700L426 706L412 655C397 660 226 705 223 705C212 705 204 693 199 689C181 673 104 608 95 601L77 585C69 579 64 576 64 563V543C64 516 69 490 81 466C85 458 95 442 95 442ZM382 556V554C382 549 380 543 379 539C376 530 367 492 361 488C355 483 294 483 293 483H261H246C219 483 192 484 167 493C141 502 118 523 118 558C118 588 136 607 172 607H179C221 607 288 587 314 579L366 564C371 563 382 562 382 556ZM313 308C274 307 275 304 232 304C201 304 164 306 141 313C116 321 92 340 90 368C90 395 98 402 109 423C138 398 168 376 222 376C228 376 233 377 239 377C271 378 302 380 334 382L313 308ZM336 310L351 362C353 368 354 379 359 383C362 386 368 386 374 386H382C408 389 558 403 558 396C582 393 605 382 622 365S656 316 656 285C656 238 626 193 598 157C587 143 541 88 532 88H530C527 88 508 100 501 103C512 120 520 137 528 155C543 182 568 230 568 259C568 272 564 285 554 297C539 314 516 317 494 317C454 317 357 313 336 310ZM476 116C417 139 354 152 291 152C293 160 302 196 307 200C311 202 317 202 322 203L355 209C364 210 373 212 382 213C387 214 462 223 462 218C481 214 499 195 499 172C499 151 484 135 476 116ZM375 24C365 20 356 14 347 10C291 -18 210 -34 133 -34C107 -34 79 -26 68 1C65 6 64 11 64 17C64 58 109 71 144 71C172 71 199 65 226 60C276 52 328 44 375 24Z" glyph-name="S" horiz-adv-x="710" unicode="S"/>
+ <glyph d="M322 405C305 417 287 428 270 439C249 453 230 461 230 494H229C220 476 209 459 195 445C158 409 103 398 53 398C52 355 55 308 52 267C38 250 24 234 9 218V217L84 143V142C69 130 56 113 43 98C11 63 -31 20 -31 -29C-31 -38 -30 -47 -27 -56L9 -21V-20C4 -15 0 -8 0 1C0 15 10 27 18 37C21 42 28 52 34 52H35C38 52 52 40 57 36L106 -5C111 -10 119 -19 126 -19C132 -19 174 7 189 15C224 36 335 99 354 111L341 129C340 147 340 166 340 185C347 188 351 198 354 205C364 222 376 239 384 257L279 325C298 347 319 369 339 391C364 420 374 431 374 484V494C374 507 369 517 356 517C348 517 340 509 340 501C342 485 350 469 350 452C349 431 332 421 322 405ZM141 205L128 217H137V388L173 400L183 395C209 377 237 360 264 343L230 305L141 205ZM94 118C94 122 99 126 101 129C109 137 191 228 191 228L210 249C213 252 217 260 222 260C226 260 230 257 232 255C240 250 255 244 256 233V92V88C256 84 256 81 253 79C249 75 191 41 185 41C178 41 170 52 167 54L132 83C122 92 113 100 103 108C100 110 94 114 94 118Z" glyph-name="quoteleft" horiz-adv-x="372" unicode="&#x2018;"/>
+ <glyph d="M101 225L14 202L35 159C36 143 36 128 34 113C21 100 6 88 -8 76V75C20 44 43 9 73 -19L83 -15C120 8 155 34 195 55L202 50L262 -21H263L326 32L291 76H309C310 184 307 298 310 400C320 410 331 419 341 429C320 440 232 493 226 493C217 493 206 481 202 479L153 445C127 426 98 409 75 386C55 366 42 350 42 311C42 268 76 242 101 225ZM225 230C212 230 199 229 186 229C171 229 156 230 141 234C102 244 63 275 63 320C63 329 65 338 70 347C82 367 104 383 123 396C133 404 164 427 178 427C190 427 199 418 207 413C214 407 225 405 225 392V386V230ZM181 77L182 74C165 64 150 53 131 45C119 53 111 65 102 76H120V136V153C120 185 129 208 163 208H172H225C225 176 226 143 223 114C210 100 195 89 181 77Z" glyph-name="a" horiz-adv-x="360" unicode="a"/>
+ <glyph d="M77 601H76C71 607 65 611 59 616L31 638C27 642 21 649 15 649H14C8 649 2 641 -2 636C34 614 54 579 54 522V487V148C47 144 43 134 39 127C30 110 19 93 10 76L130 6C145 -3 159 -13 177 -19L192 -13L341 73L331 94C328 184 331 281 330 373L341 395L259 451C249 458 240 466 227 471L218 465L138 390V525V558C138 574 139 590 144 606C151 628 170 655 198 655C211 655 218 647 221 634C225 637 232 642 232 649C232 662 214 669 202 669C168 669 140 643 121 631C107 621 90 613 77 601ZM138 111V118V339V348C138 360 142 364 150 370C155 374 177 398 183 399C189 399 195 393 199 390L228 370C237 363 246 362 246 346V338V65V55C246 49 245 42 239 42C232 42 223 50 218 53L162 85L147 94C140 96 138 102 138 111Z" glyph-name="b" horiz-adv-x="367" unicode="b"/>
+ <glyph d="M152 495C145 468 131 440 112 419C85 390 50 370 14 354C21 341 29 329 35 315C38 251 36 179 35 115C29 101 21 89 14 76C71 45 124 10 182 -20L192 -16L274 32C272 37 268 49 261 49C255 49 251 44 246 42C243 42 240 43 237 45C212 58 187 74 162 88L137 102C129 108 120 108 120 124V130V376V382C120 391 121 398 129 406C130 407 132 407 133 407C139 407 145 401 150 399C163 391 177 384 190 376C195 373 202 367 208 367S218 378 221 383C231 401 243 419 252 438L152 495Z" glyph-name="c" horiz-adv-x="267" unicode="c"/>
+ <glyph d="M42 580C30 557 14 523 14 494C14 485 17 482 24 480C43 469 124 430 127 429C110 412 93 397 76 381C66 373 54 365 54 348V338V174C54 168 55 115 53 115C52 110 32 77 32 76L136 6C149 -3 161 -13 177 -19L192 -13L341 73L331 94C328 192 330 299 331 396L341 417C247 464 150 509 58 558L44 580H42ZM238 39C206 62 170 82 140 107L138 125C138 214 137 303 139 389C143 398 144 410 152 415C184 401 215 386 244 369L246 350C246 248 247 145 245 46L238 39Z" glyph-name="d" horiz-adv-x="367" unicode="d"/>
+ <glyph d="M182 495C133 450 76 412 7 389C10 383 17 374 24 374C28 374 32 376 36 378C35 288 38 195 35 108C29 97 21 87 14 77V76L115 5C127 -4 138 -13 153 -19C193 0 229 24 266 46L268 67C252 59 233 45 214 45H210C198 47 175 66 170 69L138 92C130 99 120 100 120 115V126V164V174C120 187 124 192 131 199L150 222L223 308L272 365C275 369 288 382 288 387C288 391 284 394 281 397L212 466C202 476 193 486 182 495ZM120 221V406V410C120 416 123 424 131 424C137 424 143 416 148 411L200 359C204 355 217 344 217 338C217 334 213 331 211 328L120 221Z" glyph-name="e" horiz-adv-x="306" unicode="e"/>
+ <glyph d="M23 392L35 373C38 284 36 188 35 100C29 83 21 68 14 52L144 -10L109 -51L7 -166H22C40 -166 43 -158 53 -148C66 -135 82 -122 104 -122C119 -122 136 -126 151 -128C185 -132 304 -149 308 -149C310 -149 311 -149 313 -148C321 -145 329 -134 335 -128L418 -45C422 -41 431 -34 431 -28C431 -23 413 5 408 15L362 95C354 108 339 125 339 145V157V360C345 358 369 355 374 355C396 355 402 372 410 387C420 407 431 427 440 447L422 437L400 438L205 466L211 475C207 477 178 493 174 493C168 493 163 484 160 481C128 449 101 427 55 405C45 400 34 397 23 392ZM120 392L255 372V137C255 133 256 128 256 123C256 110 249 106 242 98L218 71C214 67 208 57 201 57C195 57 187 62 183 64L139 85C130 91 120 91 120 107V119V392ZM147 -43L267 91C297 36 329 -17 360 -71C289 -62 220 -50 147 -43Z" glyph-name="g" horiz-adv-x="431" unicode="g"/>
+ <glyph d="M108 652L115 508L124 525C140 568 158 610 175 652H108ZM115 495L68 455C64 452 54 447 54 441V440C54 435 60 430 63 427L87 398H69C68 304 71 206 68 115C55 101 40 89 25 76V75L106 -21H107L154 19C158 22 168 27 168 33V34C168 39 162 44 159 47L135 76H153C154 170 151 268 154 359C167 373 182 385 197 398V399L115 495Z" glyph-name="i" horiz-adv-x="183" unicode="i"/>
+ <glyph d="M51 602L15 651C10 648 1 643 1 636C1 630 8 625 10 622C26 596 30 569 30 528V513V129V122C30 112 22 107 16 102L-14 77L15 41L67 -21H68L131 32L96 76H114V547V563C114 569 114 574 115 579C119 613 149 637 187 640V655C152 655 118 646 88 628C75 621 64 610 51 602Z" glyph-name="l" horiz-adv-x="210" unicode="l"/>
+ <glyph d="M82 495L35 455C31 452 21 447 21 441V440C21 435 27 430 30 427L54 398H36C35 304 38 206 35 115C22 101 7 89 -8 76V75L73 -21H74L121 19C125 22 135 27 135 33V34C135 39 129 44 126 47L102 76H120C121 163 118 254 121 339C152 370 188 395 221 424L241 398H224C223 304 226 206 223 115C210 101 195 89 180 77C206 43 234 11 261 -21H262L325 32C314 47 302 62 290 76H308C310 163 304 258 310 340C340 370 375 395 407 424H408L429 398H411V120C411 113 406 109 401 105L381 88C377 85 370 81 370 75C370 70 375 66 377 64L392 46C411 24 430 2 448 -21H449L496 18C500 22 510 27 510 33V34C510 39 504 44 502 47L477 76H495C496 170 493 268 496 359C509 373 524 385 539 397C513 431 485 463 458 495H457L308 370V441H315L271 495C219 455 171 411 120 369V441H127C113 460 98 478 82 495Z" glyph-name="m" horiz-adv-x="528" unicode="m"/>
+ <glyph d="M82 495L35 455C31 452 21 447 21 441V440C21 435 27 430 30 427L54 398H36C35 304 38 206 35 115C22 101 7 89 -8 76V75L73 -21H74L121 19C125 22 135 27 135 33V34C135 39 129 44 126 47L102 76H120C121 163 118 254 121 339C152 370 188 395 221 424L241 398H224C223 304 226 206 223 115C210 101 195 89 180 77C206 43 234 11 261 -21H262L325 32C314 47 302 62 290 76H308V324V345C308 359 309 362 318 369L339 387C342 390 349 394 349 399C349 403 345 406 343 409C325 431 282 480 271 495C219 455 171 411 120 369V441H127C113 460 98 478 82 495Z" glyph-name="n" horiz-adv-x="344" unicode="n"/>
+ <glyph d="M170 489C151 435 105 388 50 366C41 362 31 363 31 349C31 345 32 340 32 337V135V125C32 122 32 118 31 115C30 110 10 77 10 76L114 6C127 -3 139 -13 155 -19L170 -13L319 73L309 94C306 192 308 299 309 396L319 417C270 441 221 466 170 489ZM216 39C184 62 148 82 118 107L116 127V356C129 372 144 387 162 399C184 390 204 380 223 368C223 368 224 347 224 347C224 246 225 144 223 46L216 39Z" glyph-name="o" horiz-adv-x="356" unicode="o"/>
+ <glyph d="M100 495C85 481 69 469 53 455C49 452 39 447 39 441V440C39 435 45 430 48 427L72 398H54V137L30 149L-12 76C3 68 18 60 33 53C44 48 54 46 54 30V23V-16V-41C54 -74 53 -107 40 -138C33 -153 24 -165 14 -178L34 -188L76 -127C96 -141 117 -154 137 -167C155 -179 175 -195 202 -195C215 -195 232 -187 232 -175C232 -168 225 -163 221 -160C218 -173 212 -181 197 -181C174 -181 157 -159 150 -146C138 -124 138 -99 138 -75V-1C151 -8 163 -15 177 -20C234 9 286 43 341 73L331 94C328 184 331 281 330 373L341 395C309 416 279 439 246 459C252 465 258 472 263 479L251 495L222 469C203 453 189 432 166 420L159 426C139 449 121 473 100 495ZM181 400C191 399 228 369 229 369C238 364 246 361 246 346V336V67C246 64 247 60 247 55S246 45 242 43C240 43 233 43 233 45C228 47 179 73 160 82C149 87 138 89 138 106V115V336V347C138 362 143 365 152 372C162 381 172 389 182 397L181 400Z" glyph-name="p" horiz-adv-x="367" unicode="p"/>
+ <glyph d="M175 488C153 437 108 390 55 367C48 364 37 362 37 352V347V133V121V116C34 101 20 90 16 75L58 47C93 26 123 0 161 -19C185 -8 207 6 230 19V-70V-83C230 -122 221 -156 194 -172C190 -175 185 -177 181 -177C171 -177 169 -169 166 -160C162 -163 155 -168 155 -175C155 -188 172 -197 186 -197C213 -197 231 -183 247 -170S279 -143 291 -127H292C301 -140 312 -151 323 -163C326 -167 331 -175 336 -175C342 -175 348 -167 352 -163V-162C317 -133 314 -88 314 -45V-11V360V369C314 372 314 374 315 377C316 382 332 408 336 417C282 440 230 465 175 488ZM121 118V126V339V348C121 360 125 364 133 370C138 375 161 399 168 399C172 399 212 380 220 377C226 373 230 372 230 362V352V66V55C230 48 228 42 222 42C215 42 206 50 201 53L146 90C135 96 121 101 121 118Z" glyph-name="q" horiz-adv-x="351" unicode="q"/>
+ <glyph d="M231 495L151 355H150C150 381 150 408 149 433C137 448 128 465 111 475C89 459 69 441 48 424L84 380H66C65 301 68 219 65 142L22 77V76C70 45 115 11 164 -19L174 -16C204 1 236 17 263 37C265 45 266 54 266 63C253 58 238 47 224 47C214 47 209 51 203 55C192 63 170 77 160 84C154 90 149 90 149 103C149 108 150 113 150 117V298V307C150 310 150 312 151 315C154 327 180 366 182 369C196 328 212 288 227 248C248 281 268 314 286 350C269 400 249 447 231 495Z" glyph-name="r" horiz-adv-x="302" unicode="r"/>
+ <glyph d="M194 664C188 653 180 644 172 634C143 599 113 575 75 551C66 545 57 545 57 529C57 524 58 518 58 514V456C58 448 59 440 59 432C59 426 58 420 57 414C56 406 41 361 36 347H58V117C58 107 57 101 50 93C46 89 38 82 38 76C38 69 55 53 55 53L99 1C102 -2 113 -19 118 -19C122 -19 127 -15 131 -13L159 3C168 8 264 64 269 66C267 71 263 83 255 83C253 83 251 82 249 81L175 38C164 52 153 65 143 80C143 80 142 93 142 93C142 253 140 417 143 571L157 587H158L215 539L257 613C236 630 216 648 194 664Z" glyph-name="s" horiz-adv-x="272" unicode="s"/>
+ <glyph d="M8 398H50V131V116C50 110 50 105 48 101C45 97 30 81 30 75C32 68 44 56 47 53L91 1C94 -2 105 -19 110 -19C114 -19 119 -15 123 -13L151 3C160 8 256 64 261 66C259 71 255 83 247 83C245 83 243 82 241 81L167 38C156 52 145 65 135 80C132 183 135 293 134 398H218V462H134C134 504 139 545 145 587L124 586L113 572L8 398Z" glyph-name="t" horiz-adv-x="230" unicode="t"/>
+ <glyph d="M82 495L35 455C31 452 21 447 21 441V440C21 435 27 430 30 427L54 398H36C35 304 38 206 35 115C22 101 7 89 -8 76V75L73 -21H74L224 105C224 77 224 49 225 23C236 7 249 -7 261 -21H262L325 32C314 47 302 62 290 76H308V324V345C308 359 309 362 318 369L339 387C342 390 349 394 349 399C349 403 345 406 343 409C325 431 282 480 271 495C249 478 227 460 206 442L241 398H224C222 311 228 217 222 135C198 113 173 92 148 71C140 65 134 57 124 53C115 59 109 68 102 76H120C121 170 118 268 121 359C134 373 149 385 164 398V399L82 495Z" glyph-name="u" horiz-adv-x="344" unicode="u"/>
+ <glyph d="M53 630L29 601C12 576 -1 545 -1 514C-1 501 1 487 8 474C20 449 49 433 54 404V148C47 144 43 134 39 127C30 110 19 93 10 76L130 6C145 -3 159 -13 177 -19L192 -13L341 73L331 94C328 184 331 281 330 373L341 395C309 416 279 439 246 459C252 465 258 472 263 479L251 495C212 461 176 425 138 390C138 431 128 454 109 482C89 510 54 531 54 575C54 592 61 605 70 614L53 630ZM138 111V118V339V348C138 360 142 364 150 370C155 374 177 398 183 399C189 399 195 393 199 390L228 370C237 363 246 362 246 346V338V65V55C246 49 245 42 239 42C232 42 223 50 218 53L162 85L147 94C140 96 138 102 138 111Z" glyph-name="v" horiz-adv-x="367" unicode="v"/>
+ <glyph d="M54 630C25 601 -2 557 -2 514C-2 500 1 486 8 473C21 449 49 434 54 405V148C37 126 24 100 11 75L131 6C146 -3 160 -13 178 -19C203 -7 227 7 251 21C259 25 270 37 283 30C311 13 339 -4 369 -19L384 -13L535 74L525 95C522 186 524 284 525 373L535 395L451 453C441 459 432 467 420 471C391 448 368 420 338 399C306 417 279 441 247 459C249 462 264 477 264 479C264 485 256 491 252 495H251L138 390V413C134 437 124 460 110 480C91 508 54 531 54 574C54 582 56 590 59 597C61 603 70 615 70 615L54 630ZM238 137C226 117 214 97 204 75L239 56C239 83 239 111 238 137ZM183 402C197 391 212 382 227 372C237 364 247 362 247 346V338V66V55C247 49 246 42 239 42C233 42 225 48 221 51C207 59 160 86 148 94C140 98 138 101 138 112V121V336V347C138 351 138 355 139 358C141 364 174 391 183 402ZM376 402C390 391 405 382 420 372C430 364 440 362 440 346V338V66V55C440 49 439 42 432 42C426 42 418 48 414 51C400 59 353 86 341 94C333 98 331 101 331 112V121V336V347C331 351 331 355 332 358C334 364 367 391 376 402Z" glyph-name="w" horiz-adv-x="578" unicode="w"/>
+ <glyph d="M82 495L35 455C31 452 21 447 21 441V440C21 435 27 430 30 427L54 398H36V106C36 84 36 63 32 41C26 6 13 -30 13 -66C13 -90 20 -110 30 -128C44 -150 67 -169 100 -169C136 -169 168 -140 168 -103C168 -81 152 -61 127 -61C103 -61 84 -77 84 -103C84 -113 87 -123 94 -131C100 -138 108 -141 116 -144C111 -146 105 -147 100 -147C62 -147 39 -104 39 -63C39 -15 68 26 104 45C121 54 315 115 315 115C311 129 307 132 307 150C307 160 308 170 308 179V325V346C308 360 309 362 318 369L339 387C342 390 349 394 349 399C349 403 345 406 343 409C325 431 282 480 271 495C219 455 171 411 120 369V441H127C113 460 98 478 82 495ZM224 398V131V120C224 110 220 108 212 105C187 98 137 81 120 75C121 163 118 254 121 339C152 370 188 395 221 424L241 398H224Z" glyph-name="y" horiz-adv-x="339" unicode="y"/>
+ </font>
+ <font horiz-adv-x="0" id="yinitas">
+ <font-face font-family="yinitas" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M377 1029C368 1025 363 1015 364 1001C366 980 373 963 386 950C396 940 407 934 419 933L423 932L419 931C397 920 377 920 353 930C337 936 314 948 289 964L276 972V976C276 986 267 992 258 988L255 986L239 994C223 1002 207 1008 192 1011C147 1020 100 1008 62 976C39 957 18 927 8 898C6 893 6 893 3 892C-2 891 -7 886 -7 880C-8 875 -6 871 -3 868L0 866L-1 860C-1 856 -2 850 -2 846C-3 838 -3 838 -5 837C-9 835 -10 832 -11 829C-11 824 -9 819 -5 817C-2 816 -2 815 -1 810C-1 801 2 785 5 775C12 748 27 721 45 699L53 691L50 689C37 679 28 668 23 653L20 645V632C20 619 20 618 22 612C29 594 40 584 55 583C58 583 63 583 65 584C78 586 90 597 93 611C97 625 92 635 78 639C65 643 52 639 47 630C43 621 48 612 57 612C68 612 72 625 64 632C62 633 62 633 64 634C64 634 68 634 71 634C77 634 83 631 86 627S89 617 87 611C84 602 78 595 70 591C66 590 64 589 58 589C48 589 44 591 38 597C30 605 26 617 26 632C26 653 35 670 52 683L57 687L63 681C77 668 97 655 114 647C163 624 216 622 269 640C297 650 320 662 377 698C407 717 434 733 432 730C431 730 426 725 419 720C381 687 339 646 278 579L274 574L271 575C265 577 261 581 258 592C255 601 253 604 249 606S241 608 237 605C234 602 231 597 226 584C218 561 209 546 199 536C184 522 164 517 150 526C144 529 135 540 131 548C125 558 124 572 127 580L128 582L130 581C134 577 138 576 143 579C150 583 150 593 143 598C136 602 128 597 123 585C120 580 120 579 120 571C119 554 125 540 139 527C150 515 164 512 181 518C204 526 223 549 232 583C236 595 238 599 241 600C245 603 251 600 253 596C255 593 254 590 252 581C250 571 250 568 253 565C255 562 257 562 262 564L266 565L264 563C263 562 251 548 238 533C216 509 213 506 211 506C211 507 208 507 206 507C196 507 190 497 194 488L195 485L181 471C168 458 153 445 151 445C151 445 149 446 148 448C138 464 117 477 99 479H93L96 481C107 485 115 496 117 509C119 520 115 533 106 542C91 556 69 559 50 548C45 544 37 536 33 530C27 518 23 503 25 489C27 477 32 464 38 455C38 454 38 453 35 449C25 432 22 409 29 392C32 386 37 378 40 375C54 362 74 361 86 372C92 377 94 382 94 389C94 394 94 396 92 399C88 407 80 411 71 410C57 409 48 398 53 388S72 380 74 392C75 395 72 401 69 402C67 403 69 404 73 404C81 404 87 399 88 392C89 384 85 377 77 373C73 371 71 371 66 371C60 371 59 371 53 374C35 383 27 408 34 431C37 438 41 447 42 448C43 448 45 446 48 443C71 422 105 416 134 428C137 430 142 432 144 433C147 435 149 436 149 435C150 434 154 422 155 416C157 407 158 391 156 381C152 361 141 340 124 319C121 315 116 311 115 310C93 296 83 289 70 276C42 249 24 216 17 181C15 175 15 174 13 174C10 173 6 170 5 168C1 161 4 151 10 148C13 147 13 147 13 140C14 122 16 111 21 97C24 86 32 70 37 62C65 19 110 -4 158 -2C170 -2 178 0 189 2C217 11 242 31 255 55C270 84 271 118 257 145L253 153L259 151C272 146 277 146 295 146C311 146 312 146 321 148L331 151L334 148C335 147 341 142 346 137C389 98 440 68 484 58C488 57 492 56 492 56C493 55 480 39 473 32C459 18 440 8 424 5C421 5 418 4 417 4C415 3 415 4 418 7C422 11 424 16 424 22C424 38 410 49 395 44C389 43 382 36 380 30C377 22 379 14 385 7L388 4L383 5C360 10 341 25 331 44C326 54 323 70 325 78V81L327 78C331 74 336 73 341 76C345 78 347 81 347 86C347 92 342 97 336 97C328 97 322 92 319 83C316 70 321 48 331 32C342 16 363 3 383 -1C392 -3 412 -3 422 -1C436 1 449 7 462 15C472 22 488 38 494 47L499 54L508 53C515 52 523 51 536 51H554L556 47C563 33 577 20 592 14C602 10 607 9 618 8C626 8 628 9 631 10C644 16 647 29 637 35C635 37 634 37 630 37C627 36 626 36 623 33C621 31 621 30 621 26C621 21 621 20 623 18C624 17 626 15 626 15C626 14 613 14 607 15C594 18 583 24 573 34C567 40 561 49 561 51C561 52 563 52 566 53C568 53 575 54 580 55C611 61 641 74 672 95L682 101L683 97C686 84 695 66 704 53C712 43 725 31 735 23C748 14 766 6 782 2C796 -1 804 -2 821 -2C835 -2 838 -2 847 0C868 3 886 12 903 25C906 27 909 29 909 29C910 29 912 26 914 23C924 11 937 2 952 -1C957 -2 961 -3 968 -3C979 -3 986 -1 994 2C1001 5 1008 13 1011 19C1013 23 1013 24 1013 31S1013 39 1011 43S1004 52 1000 53C995 55 985 54 980 52C976 50 971 45 969 42C967 36 969 29 974 25C977 23 984 23 987 25C993 29 995 36 992 41C991 43 989 45 988 45C986 47 987 48 992 48S998 47 1000 46C1008 41 1010 30 1005 20C1002 15 996 10 991 7C977 1 959 1 944 8C934 12 923 21 917 29L914 34L920 40C939 60 952 86 959 114C961 124 961 124 963 124C968 125 974 134 972 139C971 144 967 149 964 150C962 151 962 151 962 156C962 170 958 190 953 207C946 225 934 247 921 262C918 266 916 268 916 269C916 269 919 268 922 268C933 267 949 270 959 275C979 285 992 305 991 324C989 338 983 350 972 357C955 368 935 367 922 354C916 349 913 345 911 338C906 321 916 301 933 297C942 294 955 296 962 302C967 307 968 316 965 320C959 329 949 329 944 320C940 315 942 307 947 304C950 302 948 301 941 302C933 302 928 304 923 310S917 319 917 328C917 335 917 336 919 341C929 360 955 364 972 349C980 341 984 333 984 321C984 315 984 313 982 309C977 293 963 281 945 276C938 274 922 273 915 275C909 276 909 276 902 282C894 290 883 298 873 304C869 307 865 309 865 310C864 310 867 315 870 322C891 362 906 404 914 444C916 451 917 457 917 458C917 458 920 459 922 460C963 473 993 516 1001 573C1002 585 1002 607 1001 617C994 662 967 695 933 702C925 704 909 704 896 702C888 701 886 701 886 702C884 708 868 736 859 750L854 758L862 770C880 800 892 827 897 852C899 863 900 879 899 886V893L905 892C932 890 957 879 976 861C997 841 1007 818 1009 792C1010 767 1002 746 986 731C980 725 973 721 964 718C956 715 942 714 934 716C916 721 902 732 894 749C892 752 891 754 891 755C891 755 893 755 894 754C898 752 906 752 911 755C915 758 918 763 918 768C919 776 915 782 909 785C902 788 894 787 889 781L886 779L887 783C889 801 898 815 911 821C916 824 917 824 925 824C932 824 933 824 938 821C947 817 953 808 955 797L956 792H959C962 792 962 792 962 794C962 798 960 807 957 811C945 834 915 837 897 818C868 789 880 734 919 715C928 711 936 709 946 709C959 709 970 712 980 719C1008 736 1021 774 1012 810C1003 849 973 881 934 893C931 894 929 895 929 895S931 896 934 896C941 897 958 902 966 905C1000 918 1020 939 1024 967C1028 991 1016 1010 1000 1006C988 1002 986 987 995 979C997 978 999 977 1003 977S1008 977 1011 979C1013 980 1016 982 1016 983L1018 986L1019 982C1019 977 1019 967 1017 961C1015 954 1009 943 1005 937C995 925 978 915 958 908C943 904 926 901 906 899H898V903C895 920 886 940 875 954C866 965 852 974 838 978C829 980 815 980 806 978C793 974 781 968 769 958C756 946 747 941 733 937C728 935 724 935 716 934C710 934 706 934 706 934S707 936 708 937C712 941 713 945 711 950C706 960 691 958 689 947C688 941 692 934 699 930C707 927 723 927 737 931C743 933 755 939 757 940C758 942 759 941 759 935C760 915 779 901 800 905C813 908 820 916 819 926C819 933 814 938 806 938C792 938 787 920 799 913L801 912L797 911C781 908 765 920 765 936C765 943 766 946 772 952C788 967 811 976 830 973C856 969 877 949 887 919C889 913 892 903 892 900C892 899 889 899 883 899C864 898 843 893 826 887S786 869 771 856L764 851L752 859C697 895 640 915 575 919C554 921 533 920 509 917C458 910 412 892 299 834C251 809 235 803 209 800C164 795 120 813 100 845L97 851L99 854C103 859 111 867 116 870C121 874 130 878 137 880C145 882 157 882 165 880C186 875 201 855 196 837C194 826 186 818 176 818C171 819 166 820 163 824C159 828 157 836 158 842V845L161 842C169 834 183 842 180 853C179 857 174 862 170 862C163 862 157 857 154 850C152 846 152 845 152 839S152 831 154 827C158 818 166 813 175 813C181 813 185 814 189 817C202 826 206 846 198 862C195 868 185 878 178 881C164 889 147 890 130 884C118 880 106 872 98 862L94 858L93 862C88 877 90 897 97 911C110 937 140 951 166 942C180 937 189 929 202 909C216 889 223 882 236 878C242 877 252 877 258 878C273 882 286 895 289 909C289 912 290 914 291 914C293 914 298 917 300 920C311 933 298 952 282 947C272 944 267 933 271 924C273 920 277 916 280 915C282 914 282 914 281 912C281 911 279 910 277 909C268 904 256 907 247 917C242 922 240 926 232 940C224 955 220 961 214 966C209 972 204 975 197 978C189 982 183 983 174 984C151 985 127 975 109 955C91 937 81 914 79 885C78 873 79 860 81 847L83 839L81 831C77 821 77 815 77 803C77 767 96 732 131 708L135 705L131 706C128 706 119 706 111 706C98 706 94 706 88 704C79 702 68 699 62 696L59 694L54 700C28 728 10 766 5 805C3 816 3 816 6 818C9 819 11 825 11 829C10 833 8 835 5 837S2 839 4 854C5 860 5 865 6 865C6 865 8 865 9 865C9 865 12 867 13 868C17 870 19 875 19 879S17 887 14 890L12 891L15 900C45 974 114 1018 184 1006C202 1003 216 999 237 988L252 981L251 978C251 974 253 968 257 966C261 963 265 963 269 965L273 967L285 959C321 937 348 924 368 918C376 916 389 916 398 917C413 920 426 926 455 943C491 964 510 971 532 973C542 974 548 973 555 970C562 966 567 962 580 950S597 935 604 931C610 928 611 928 619 928C628 928 634 929 642 933C656 940 666 954 669 971C670 985 665 999 655 1003C641 1009 629 993 639 981C641 978 644 977 649 977S657 978 660 982L662 985L663 980C663 975 662 967 660 961C655 949 642 938 629 935C627 934 622 934 618 934C611 934 610 935 604 937C597 941 593 944 580 956S562 973 555 976S542 980 532 979C508 977 488 969 450 947C440 941 435 939 426 939C398 939 373 966 370 1000C370 1003 370 1007 371 1009V1013L374 1010C382 1000 398 1008 395 1021C393 1029 384 1033 377 1029ZM893 888C894 882 893 867 891 857C888 836 879 812 866 789C862 781 852 765 851 764C850 764 847 767 844 771C824 798 803 820 772 844L769 847L772 850C778 854 790 863 799 868C825 883 858 892 886 893H893ZM98 804C114 777 139 755 169 740C187 731 205 726 225 722C236 721 270 720 281 722C302 725 323 731 343 738C359 745 370 750 403 766C455 791 476 799 502 806C521 810 531 811 556 811C576 811 581 811 590 810C617 805 641 798 666 785C677 780 696 768 699 766C699 765 699 762 694 753C691 747 688 739 687 737L685 733L677 738C652 755 622 766 591 771C580 773 552 773 540 772C530 771 513 768 504 766L498 764L495 767C490 771 484 770 479 765C478 764 477 762 476 760C476 758 476 757 472 756C462 753 433 741 399 726C380 717 358 708 351 705C318 692 287 684 264 682L258 681L255 685C250 691 240 690 236 682C235 681 235 681 224 682C181 685 141 703 115 730C98 747 88 765 84 786C82 796 83 815 85 823L86 829L90 820C92 816 96 808 98 804ZM585 765C618 761 648 750 676 732L683 727L681 722C672 699 658 648 655 626C654 624 654 623 653 623C639 629 627 633 614 634C610 635 599 635 588 635C534 635 507 641 495 657C491 662 490 668 490 676C491 693 504 705 520 703H524L522 701C517 698 515 690 519 685C522 680 530 679 535 683C541 688 540 699 534 704C519 715 497 709 489 693C485 686 484 681 484 675C484 657 494 644 515 637C523 634 538 631 550 630C556 630 563 629 565 629H568L561 625C544 617 530 603 523 590C522 587 521 585 521 585S514 591 505 598C475 621 468 631 465 648C462 669 473 693 497 718C509 731 522 739 537 744C543 746 545 746 554 746C566 746 569 745 577 741C587 737 593 728 594 718L595 713L584 696C573 679 570 675 566 674C564 674 560 675 560 677C560 677 559 678 557 678C554 678 554 678 554 675C554 668 562 657 571 653C593 643 620 653 631 676C638 691 638 706 630 722C624 735 610 745 594 750C586 752 566 752 555 751C534 748 510 740 487 727C448 705 425 685 413 661C406 647 403 637 403 621C403 603 407 590 416 572C426 550 439 531 469 497C488 475 497 463 505 453C524 428 536 406 541 384C543 376 545 361 544 360C544 360 541 361 538 363C518 371 497 385 475 402C459 415 459 416 456 423C453 432 444 450 439 458C436 462 431 470 426 475C412 494 404 507 402 517L400 522L391 512C386 507 381 503 381 503C380 503 374 519 372 531C370 541 370 579 372 593C379 644 397 686 424 714C434 724 455 739 470 747L478 751L480 750C486 744 496 747 499 755C500 758 500 758 504 759C510 761 528 764 536 765C548 767 574 767 585 765ZM714 754C739 734 763 709 781 682L788 673L777 657C771 648 766 641 766 640C765 640 763 643 760 648C749 668 734 688 719 703C711 712 698 723 692 727L690 729L693 737C695 741 698 748 701 753C704 760 705 761 706 760C706 760 710 757 714 754ZM698 715C708 707 722 692 730 681C741 668 761 637 761 634C761 633 760 630 758 627C747 611 730 581 721 563L715 553L711 561C704 576 696 587 684 599C679 605 666 615 661 618C660 619 660 619 661 628C666 654 673 680 681 703C688 725 688 723 689 722S694 718 698 715ZM400 720C399 719 362 696 348 686C295 654 258 639 219 635C199 633 172 635 152 640C121 648 91 664 68 685L63 690L70 693C84 698 95 700 112 700C131 700 146 697 164 690C176 685 189 681 200 679C209 677 226 675 232 675C235 675 235 674 237 672C239 668 242 667 247 667C251 667 255 669 257 673C258 675 258 675 261 675C262 675 267 676 272 677C305 681 336 692 386 714C399 720 400 720 400 720ZM397 687C376 652 364 606 364 560C364 536 367 518 374 503C375 500 376 498 376 498C376 497 360 484 350 477C332 463 304 446 286 436C282 433 278 431 278 431C279 431 281 432 283 432C307 438 336 434 359 422S404 388 415 364C424 346 429 322 429 303V299L422 304C408 312 392 321 375 327C371 329 371 329 371 332C372 337 373 355 372 359C369 371 361 381 348 387C322 400 289 397 253 378C237 370 218 357 210 347C208 344 207 343 204 343C187 340 150 328 135 320L132 319L134 322C152 346 161 366 163 389C165 405 162 421 155 436L154 439L160 444C164 446 174 456 183 465C199 480 200 481 202 481C203 480 205 480 207 480H210V475C211 463 220 452 235 443C245 437 260 434 271 435C284 437 298 447 298 455C298 461 291 467 285 466C276 464 273 452 280 446C282 445 282 445 280 444C279 444 276 443 274 442C262 439 245 443 232 452C221 460 217 467 216 478C216 483 216 484 218 486C219 488 219 490 220 493C221 500 224 506 232 514S250 529 263 535C268 538 277 542 282 544C295 551 299 556 296 564C294 568 292 570 286 571C285 572 283 572 283 573C282 573 286 577 290 583C323 618 352 648 370 667C379 675 402 697 403 697C403 697 400 693 397 687ZM932 696C945 693 958 686 967 676C979 664 987 648 992 629C995 618 996 610 996 595C996 568 990 542 979 520C965 493 947 476 923 467L918 465L919 467C919 471 921 486 922 498C924 511 924 551 922 565C920 587 916 614 911 633L909 639H911C914 639 923 637 929 635C950 628 961 614 961 597C961 592 960 590 959 593C958 597 948 598 944 595C939 592 937 585 940 580C944 574 950 573 957 576C968 582 971 601 963 616C959 623 950 632 942 636S924 643 915 645C911 645 907 646 907 646S906 650 904 656C901 665 892 688 890 692L889 695L894 696C903 697 904 697 915 697C923 697 929 697 932 696ZM794 662C799 654 800 655 792 647C788 643 782 637 779 633S774 626 774 625C773 625 772 626 771 629L769 633L771 636C776 644 791 667 791 667S793 665 794 662ZM810 633C827 601 841 562 848 527L850 516L845 518C842 519 838 520 835 520C831 520 830 520 828 517C824 514 823 510 823 499C822 491 823 490 824 486C826 484 829 479 833 475C841 467 843 463 843 459C843 456 840 451 837 450C834 448 831 449 821 460C812 469 812 469 812 473S810 495 809 504C803 542 793 579 779 611L776 618L779 622C783 628 791 637 797 643C801 649 802 649 803 648C803 647 807 641 810 633ZM614 628C623 627 629 625 638 622C643 620 652 617 653 616C653 616 652 612 651 607C650 601 649 591 648 583C647 576 646 569 646 569C645 569 643 570 640 572C631 578 614 583 602 583H597V580V577L604 576C618 576 630 571 640 564L645 561V557C644 549 642 526 641 509C641 498 640 486 640 481L639 473L635 471C631 469 628 469 621 468C613 468 600 469 597 470C597 471 594 475 592 481C579 515 559 546 534 572L526 581L528 585C534 598 548 612 563 619C578 627 596 630 614 628ZM767 623L769 619L764 611C748 584 735 548 730 518C729 514 729 511 729 511C729 512 727 516 726 522C724 528 722 535 721 539L719 545L722 553C729 565 738 582 752 605C759 617 765 626 765 626S766 625 767 623ZM669 605C681 595 692 582 701 568C705 560 711 548 711 546C711 545 709 539 706 533C696 514 679 470 679 467C679 466 678 466 676 466C675 467 667 467 660 467C653 468 646 468 646 469C646 469 647 470 648 470C651 473 658 481 661 486C674 508 672 538 656 558C652 563 652 564 652 567C653 574 657 602 658 607L659 612L661 611C662 610 666 608 669 605ZM776 603C790 569 799 532 804 491C806 472 806 471 803 470C801 469 797 465 793 461C785 452 781 449 778 449C774 449 769 456 770 460S773 466 779 474C783 478 787 483 788 485C790 488 790 489 790 498C790 514 787 520 778 520S761 516 755 510C751 505 749 502 749 496C749 491 750 488 754 485C758 483 764 483 768 485C778 490 776 506 764 508H762L766 511C769 512 772 513 776 513L781 514L783 511C784 508 784 505 784 498C784 487 784 486 774 476C770 472 767 467 766 465C764 460 764 455 766 452C771 445 776 444 790 448C795 450 801 451 803 452H806V436C806 405 802 370 795 341C794 334 793 334 791 334C790 334 785 335 779 335C743 338 703 331 663 314C648 307 619 292 606 283C604 282 605 284 610 291C615 299 618 305 632 333L637 344L646 347C663 353 678 362 692 375C700 383 709 395 713 402C715 406 716 406 720 407C743 415 766 408 771 393C772 389 772 383 771 379C768 373 761 370 755 371H751L754 373C759 378 759 386 754 390C749 395 742 394 738 389C727 377 746 360 763 365C769 367 775 373 777 379C782 396 770 412 749 416C741 417 728 416 720 413C719 413 719 414 721 418C728 433 732 454 732 475C732 506 739 542 751 571C757 587 771 612 772 611C772 611 774 607 776 603ZM287 567C288 567 289 565 290 564C293 556 288 552 273 547C265 544 258 541 252 537C247 535 247 535 262 551C270 560 278 568 279 569C281 570 285 569 287 567ZM657 544C662 536 663 529 663 518C663 508 662 502 658 494C656 488 650 480 647 478C646 478 646 478 646 487C647 508 648 529 649 541C650 548 651 554 651 554C651 556 655 550 657 544ZM84 547C94 545 104 537 108 528C115 512 110 494 96 487C88 484 79 484 74 489C72 491 72 491 72 496V501L74 499C79 492 89 493 93 500S92 517 83 517C78 517 75 515 71 511C67 506 66 501 66 495C66 487 68 484 76 480L80 479L76 478C66 476 55 470 47 463C42 458 43 458 38 468S31 486 31 497S33 516 37 525C41 532 50 541 56 544C65 548 75 550 84 547ZM719 522C724 505 725 491 726 474C726 465 725 457 725 455L724 451L722 453C716 458 704 462 692 464C688 465 685 466 685 466C685 469 701 510 710 528L715 538L716 535C716 533 718 527 719 522ZM844 512C847 511 849 510 850 509C852 508 852 508 849 508C844 508 839 502 839 496C839 488 843 484 851 483C855 483 855 483 856 480C858 465 859 421 857 401C856 384 853 368 850 354C848 341 843 323 842 321C842 321 840 321 836 323C828 326 815 329 806 331C803 332 800 333 800 333C800 334 801 340 803 347C809 377 812 399 812 429C813 444 813 451 814 451C814 451 818 450 822 449C836 444 842 445 847 451C848 453 849 455 849 458C849 464 847 467 839 476C829 486 829 488 829 499C829 511 831 513 835 513C837 513 841 513 844 512ZM103 472C112 470 122 466 131 458C135 455 145 443 145 441C145 440 131 433 124 431C108 426 88 427 72 434C65 438 56 444 51 449L47 453L49 456C50 457 52 459 55 461C69 472 85 475 103 472ZM621 462H640V448C640 416 636 375 630 356L629 351L624 350C621 349 617 348 609 348C599 347 598 347 599 349C608 381 610 408 605 437C603 446 600 459 599 462C598 464 598 464 600 463C602 463 611 463 621 462ZM675 460C676 459 671 445 659 412C651 391 639 361 638 362C638 362 638 364 639 366C642 381 645 411 646 439V462L660 461C668 461 675 460 675 460ZM698 456C707 454 713 452 718 448C721 446 722 446 723 447C727 453 719 426 713 414C710 409 709 408 705 406C698 401 691 396 674 382C660 370 647 359 644 359C644 358 643 359 644 359C654 383 672 430 680 453L682 459H686C689 458 694 457 698 456ZM476 393C497 377 521 363 541 355L545 353L544 344C543 314 529 280 504 249C497 241 491 235 491 236C491 236 488 239 486 242C479 252 470 264 460 273L451 282L454 289C464 318 469 351 466 378C465 387 463 402 462 405C461 406 463 404 466 402S473 396 476 393ZM704 399C704 398 701 395 698 392C686 376 668 362 650 355C647 354 648 355 656 361C659 363 666 369 672 374C688 388 690 390 697 395S705 400 704 399ZM313 377C328 373 337 364 338 352C338 348 338 347 336 345C333 341 332 341 326 342C315 344 294 347 279 348C263 349 239 348 226 346C223 346 220 345 220 345C220 346 229 354 236 358C251 368 271 375 290 378C295 379 308 378 313 377ZM626 339C622 327 617 316 606 299C599 289 592 280 586 273C582 268 578 265 560 251C553 246 540 236 532 230C524 223 517 217 516 216C513 214 504 210 504 211C504 211 503 213 501 216L499 221L509 230C550 264 578 297 593 334L596 341H611C619 342 626 342 626 342C627 343 627 343 626 339ZM295 340C301 340 307 339 309 339L314 338L308 335C298 330 293 321 293 310S298 290 308 285C312 282 314 282 320 282C333 281 342 285 352 295C359 301 363 308 367 317L369 323L381 318C397 311 415 301 425 294C428 292 429 291 429 288C429 279 424 257 418 243C415 236 409 222 408 221C408 221 404 223 399 227C365 253 328 271 290 279C258 286 221 286 192 278C184 276 184 275 186 286C190 304 199 323 210 334L213 338L223 339C228 340 237 341 242 341C254 342 283 342 295 340ZM201 335C200 334 199 332 197 329C188 314 181 296 179 279L178 274L171 271C161 268 146 260 137 254C103 232 81 200 73 165C71 154 71 135 72 124C77 90 98 62 125 49C139 43 158 41 172 44C187 47 199 53 209 63C230 84 235 114 221 129C215 136 205 139 192 138C180 137 169 140 165 146S163 160 169 162C171 163 172 164 172 166V169H168C151 167 141 148 148 132C153 122 161 116 176 110C190 105 193 102 197 93C199 89 199 78 197 73C192 63 183 55 171 51C165 49 163 49 153 49C141 49 134 51 123 56C102 66 87 85 80 110C78 117 78 118 78 133C78 147 78 148 80 157C86 177 98 196 113 209C129 223 147 231 168 235C179 237 182 237 182 235C182 234 183 230 184 226C187 217 193 205 197 199C199 196 200 194 200 194S198 194 195 195C152 206 109 184 101 148C98 135 101 120 107 109C111 102 121 93 129 89C136 86 145 83 151 83H154V86V89H151C142 89 130 94 122 101C117 106 111 115 109 121C106 128 106 141 107 147C112 168 130 184 153 190C164 192 181 192 192 189C202 187 208 184 211 181C214 177 228 166 235 162S245 154 250 145C261 124 264 96 256 72C246 43 221 19 189 8C178 5 170 3 158 3C121 1 87 15 60 43C36 68 22 101 19 139V146L22 148C32 152 33 166 24 172C22 173 22 174 22 175C23 182 27 198 30 205C42 237 64 266 93 288L97 291L94 287C92 286 90 284 90 283C90 283 91 282 92 281L94 279L108 293C124 308 125 309 144 318C159 324 179 331 199 335C200 336 201 336 201 336S201 335 201 335ZM787 328C789 328 791 327 791 327C792 327 784 304 779 291C774 277 765 260 758 247L752 237L744 233C720 221 703 204 692 181C689 175 687 171 687 170C687 167 656 150 639 144L631 140V138C632 136 633 135 633 135C637 135 663 147 675 154C680 157 683 159 683 159S683 155 682 151S680 140 680 131L679 119L672 116C634 100 597 97 560 106C551 108 542 112 531 121L521 128L520 139C519 158 516 176 511 193L508 201L512 204C515 208 517 208 524 211C543 216 557 218 576 218C585 218 593 217 600 216C632 211 646 200 645 180V177L643 179C639 184 633 185 628 182C618 175 623 161 634 161C648 161 656 180 649 196C644 207 630 215 613 220C591 226 558 226 535 220C532 220 530 219 530 219C530 220 551 237 564 247C581 260 595 269 602 273C615 280 637 287 653 289C661 290 675 290 681 288C693 285 703 278 707 269C709 264 709 255 707 250C705 246 700 241 696 240C693 238 682 238 682 239S683 241 684 241C686 243 689 248 689 252S687 259 684 262C675 270 661 264 661 252C662 245 666 239 674 235C680 232 691 231 697 233C711 238 719 255 713 270C707 286 683 297 658 296C651 295 640 294 635 293C634 292 639 295 647 299C680 316 713 326 745 329C750 330 782 329 787 328ZM807 325C819 322 840 315 840 314C840 312 833 292 828 281C824 271 811 245 810 244C809 244 805 244 801 244C791 245 778 244 768 242C764 241 761 240 761 240C761 241 763 243 765 247C776 266 787 291 795 317C797 322 798 327 798 327S803 326 807 325ZM867 301C870 299 871 298 871 297C871 295 879 287 885 282C900 271 914 246 919 221C921 211 922 190 921 180C920 172 916 153 914 149L913 147L911 148C908 150 903 152 892 154C887 155 880 156 878 156C874 158 874 158 875 160C876 165 875 183 874 188C869 204 859 219 844 229C839 233 826 239 822 240C821 240 820 241 820 241S823 246 827 251C835 262 848 282 855 295C858 300 861 304 861 304C862 304 864 303 867 301ZM469 254C476 246 486 231 486 230C486 228 444 192 442 192C441 192 416 214 416 214C415 215 418 218 420 222C430 236 443 259 448 272L449 275L456 269C460 265 466 258 469 254ZM913 262C939 233 954 196 956 160V151L953 150C943 145 943 131 952 126C953 125 954 124 954 124C954 123 953 119 952 114C946 87 934 65 915 44L911 39L908 45C907 48 906 53 905 55L904 59L908 63C916 70 918 76 915 82C914 86 908 91 906 91S904 93 905 100C908 112 911 124 913 126C916 129 917 133 917 136S918 145 920 151C931 185 931 210 922 238C918 248 914 257 909 265C907 268 905 271 906 271C906 271 909 267 913 262ZM805 237C806 237 795 221 787 210C766 182 739 156 712 137C705 133 687 123 686 123C686 123 686 126 686 133C686 144 689 157 691 163C692 164 695 168 701 172C718 185 737 205 750 224L755 232L761 233C767 235 776 237 783 238C786 239 805 238 805 237ZM206 235C230 231 257 215 294 185C305 175 325 157 326 156C326 156 324 155 321 154C311 152 303 151 290 152C275 152 267 154 254 159C247 162 246 162 240 169C232 177 227 181 218 186C213 189 210 191 208 194C200 204 192 219 189 230C188 232 188 235 187 235C187 237 198 237 206 235ZM825 232C837 228 847 221 855 211C861 205 867 193 868 185C869 179 870 168 869 164L868 161L866 164C864 165 860 170 857 174C847 186 843 189 835 189C830 188 826 185 823 180C821 176 821 174 821 168C821 164 822 158 822 154C825 141 824 129 820 128C817 127 813 122 812 119L811 115L807 116C798 117 786 122 782 127L780 129L783 128C789 127 797 132 799 139C801 144 800 150 797 154C789 163 776 162 770 152C769 150 768 149 767 149S766 148 766 142C767 130 770 123 777 114C782 109 792 102 796 101C799 100 806 102 810 105L813 108L816 104C825 95 841 101 841 114C841 117 842 117 847 120C853 124 861 131 865 138C868 142 868 142 871 142C872 142 879 143 885 145C899 149 904 149 907 146C911 143 911 140 909 134C907 126 904 124 887 118C874 114 870 112 865 107C861 103 855 90 853 83C852 77 852 71 855 67C857 64 867 59 875 57C879 55 888 55 896 56C898 56 898 56 900 51C901 48 902 43 904 40L906 35L903 32C898 28 886 20 877 16C850 3 821 0 789 6C749 15 715 40 698 75C694 83 689 97 688 102V106L693 109C707 120 724 134 746 156C770 180 789 202 808 226C815 234 816 235 817 235S822 234 825 232ZM742 223C730 207 712 189 698 178C696 176 696 176 699 182C708 198 723 214 739 223C741 225 744 226 744 226S743 225 742 223ZM497 209C498 208 497 207 491 204C483 200 470 191 462 185C459 182 456 180 456 180C455 180 454 182 452 183L448 186L462 195C469 200 479 207 484 211L494 218L495 214C496 212 497 210 497 209ZM493 197C492 195 485 189 478 183C465 173 465 173 463 174C462 174 461 175 461 175C461 176 471 184 478 189C483 192 495 199 496 199C496 199 495 198 493 197ZM505 189C510 175 513 158 514 141C514 134 514 132 513 133C511 135 473 165 472 167L469 168L471 170C473 171 480 177 488 184S502 196 503 196C503 196 504 193 505 189ZM844 183C848 180 850 176 853 163C856 151 858 146 860 144C861 144 861 143 859 140C856 135 849 129 844 125L840 123L837 125C835 127 833 128 831 129C828 130 828 130 829 133S829 144 828 154C826 163 826 173 828 177C829 180 830 181 834 182C839 184 841 185 844 183ZM784 118C788 115 793 113 800 111L807 109L804 108C798 106 796 107 788 113C781 118 778 122 784 118ZM902 108C900 102 899 96 899 95C898 94 898 93 895 92C887 90 882 81 884 73C885 69 890 64 892 63S894 62 892 62C886 59 866 64 860 71C858 73 858 73 858 78C858 82 859 84 862 91C870 105 874 109 892 115C897 116 902 118 903 119C903 119 904 119 904 119S903 114 902 108ZM973 428C963 425 958 413 964 405C967 401 972 398 976 398S985 401 988 405S992 414 989 419C987 426 980 429 973 428ZM691 677C687 676 683 671 683 666C683 658 691 652 699 656C712 662 705 681 691 677ZM556 179C546 174 545 160 554 154C559 151 566 151 570 154C575 157 577 160 577 166C577 170 577 172 575 174C571 181 562 183 556 179Z" horiz-adv-x="1022.99" unicode="D"/>
+ <glyph d="M596 1038C586 1036 580 1031 577 1024C575 1019 575 1007 577 1001C578 997 580 995 591 984C604 972 604 971 604 969C603 967 602 965 601 964C599 961 596 962 589 967C586 969 583 971 581 972C580 972 578 975 575 980C568 991 545 1026 543 1029C542 1029 539 1028 538 1028C537 1027 539 1024 545 1015L553 1002L549 1005C544 1010 539 1011 534 1011C524 1010 510 999 505 990C500 980 503 968 510 966C518 965 524 975 518 981C516 983 515 983 512 983H509L510 986C513 994 528 1005 535 1005C543 1005 551 997 554 987C555 982 555 983 552 962C551 953 552 949 555 945C556 944 559 942 560 942C563 941 568 944 573 948C579 953 582 955 582 955C586 952 623 879 623 876C623 875 620 873 617 871L611 867L609 870C582 903 556 928 523 948C485 971 442 986 398 990C378 993 348 992 327 989C286 984 243 967 210 943L203 938V946C202 955 200 964 196 973C193 979 187 989 186 989S184 989 183 988L181 986L183 984C189 974 192 964 192 957C191 951 190 948 185 946C179 943 173 946 160 958C151 967 144 972 136 975C108 986 72 973 50 944C45 936 38 924 35 915C34 912 33 909 33 909C32 909 26 918 24 922C17 938 19 961 31 977C34 982 43 990 48 992C55 996 62 997 68 996C73 995 78 992 81 990C82 989 82 990 86 994L89 998L87 1000C84 1002 78 1005 73 1006C51 1010 26 992 17 966C10 943 14 921 28 905L32 901L31 896C28 876 30 854 37 832C45 809 59 787 78 770C85 764 98 755 103 752L105 751L106 738C106 723 107 714 109 701C116 660 133 621 156 590C158 587 160 585 160 584S139 572 126 565C91 547 67 543 56 553C55 555 52 557 52 559C49 564 48 573 49 582L50 585L52 582C54 577 60 574 66 574C71 574 77 578 80 582C82 585 82 586 82 591C82 597 82 598 80 601C74 610 61 611 52 603C44 594 40 575 44 561C47 554 53 548 60 546C76 541 104 548 138 565L146 569L141 563C136 556 128 545 124 537C117 525 100 505 88 497C81 492 73 488 66 487C61 485 48 485 47 486C47 486 48 487 49 489C54 495 48 506 40 503C32 501 31 492 37 485C39 482 44 480 48 480C51 479 51 479 51 481S51 483 52 481C54 480 55 480 60 480C68 481 74 483 82 487S98 496 107 506L114 513L112 507C106 478 110 448 125 424C130 416 142 404 149 399C152 397 154 395 154 395S154 392 153 388C151 376 151 360 153 343L154 339L147 334C143 331 136 325 131 320C89 279 66 225 66 168C66 142 70 119 79 97C89 73 108 49 125 37C128 34 130 32 130 32C130 29 118 16 110 12C99 5 84 1 73 3L70 4L73 6C81 11 82 23 76 30C71 34 63 36 57 33C48 29 45 17 51 9C54 5 59 1 66 0C72 -3 87 -3 96 -1C110 2 123 10 132 22C135 25 137 28 137 28C138 28 140 27 143 25C173 10 209 8 235 21C252 29 264 42 269 58C272 66 272 78 270 84L268 89L274 94C277 97 285 107 291 115S304 131 306 133C318 144 338 144 347 133C351 129 352 125 352 118S352 110 349 114C347 117 341 120 336 120C332 120 328 118 325 115C318 107 320 95 329 90C332 88 333 88 338 88C344 89 348 91 352 97C360 107 361 127 354 142C349 156 337 168 323 174L319 175L324 176C332 177 347 180 358 184L369 188L374 179C385 159 390 141 390 119C390 74 364 38 327 32C321 31 312 31 309 32C307 32 307 32 309 34C313 36 315 40 315 45C315 60 294 64 289 50C285 41 291 32 302 27C309 25 325 25 334 27C365 36 388 62 395 98C397 107 397 132 395 140C394 144 394 146 394 146C394 147 396 144 399 140C413 120 432 100 453 84C497 48 548 27 605 20C616 19 651 19 662 20C694 24 729 33 758 44C763 46 767 48 768 48C768 48 769 47 770 47C772 44 777 42 781 42C789 42 794 48 795 56L796 60L806 65C841 80 878 94 902 100C923 105 935 106 952 106C961 106 967 105 970 104C975 103 985 98 988 96L990 95L985 93C973 87 958 84 938 83C924 82 920 81 913 76C905 70 899 61 897 52C896 48 897 37 898 33C898 31 898 32 891 35C882 40 873 44 864 46C858 48 855 48 846 48C834 48 829 47 823 43S815 35 814 29C814 19 820 13 829 13C844 13 849 32 836 40L834 41L838 42C847 43 865 41 876 36C884 33 894 27 902 22C937 0 945 -3 959 -3C975 -3 986 1 998 12C1003 18 1005 21 1008 26C1013 36 1014 42 1013 53C1013 68 1009 78 1002 88C1000 91 999 93 999 93C1009 101 1016 107 1020 116C1031 138 1023 165 1005 165C999 165 994 161 992 155C989 147 996 137 1005 137C1009 137 1014 140 1016 143L1018 146V141C1019 136 1018 127 1016 122C1013 114 1007 106 998 100L994 97L989 100C969 113 936 113 890 101C881 99 853 90 845 87C844 87 849 90 855 95C883 113 903 130 926 153C965 191 989 226 1009 271L1013 281H1017C1022 282 1025 283 1028 287C1032 291 1033 294 1033 299C1032 305 1030 310 1026 312L1024 314L1025 319C1036 360 1039 417 1034 460C1031 489 1022 524 1012 548L1010 552H1012C1013 552 1016 553 1019 553C1028 555 1032 558 1033 564C1033 568 1031 573 1027 576C1025 577 1020 580 1015 581C1009 584 1005 586 1003 588C999 591 995 600 994 605C994 610 995 611 1001 613C1006 615 1017 616 1017 615C1017 615 1016 614 1015 612C1009 603 1017 592 1027 594C1036 597 1038 607 1030 615C1026 619 1020 621 1012 621C1000 621 990 617 989 610C988 606 989 599 992 593C996 585 999 582 1011 577C1018 575 1022 572 1024 571C1026 568 1027 568 1027 564C1027 556 1023 554 1012 560L1006 562L1001 573C988 598 973 619 955 639L948 646H958C969 646 974 648 983 653C1002 666 1007 693 996 715C992 723 981 734 973 738C952 750 928 753 902 747C879 741 858 729 841 712L836 708L829 709C824 710 815 710 807 710C792 710 783 709 770 705C766 704 762 704 762 704S762 706 763 708C763 710 763 712 763 712C762 712 758 713 754 714C747 715 746 716 746 717C746 717 747 722 748 727C748 732 749 736 750 736C750 736 756 734 761 731C770 726 773 725 776 725C783 725 787 730 787 738C787 742 786 744 781 754S776 766 776 770C776 779 781 789 788 791C790 791 792 791 796 790C802 789 809 785 813 782L816 780L812 778C807 777 805 775 804 770C802 763 807 756 815 756C822 756 826 761 826 770C825 773 825 776 825 776S828 774 832 772C868 750 921 753 964 779C978 788 995 804 1003 816C1016 835 1021 854 1020 876C1020 891 1018 900 1011 913C999 937 979 952 954 956C923 960 895 943 888 916C881 888 901 862 929 864C944 866 954 870 960 877C969 886 969 897 961 906C953 914 940 915 932 908C928 905 925 899 924 894C923 887 927 878 934 874C938 872 938 871 929 871C919 870 910 873 903 880C890 893 889 914 901 930C915 949 941 955 966 946C986 939 1002 919 1009 895C1010 888 1011 886 1011 874C1011 861 1010 859 1009 852C1005 838 998 826 988 816C981 808 972 803 963 800C957 798 955 797 947 797C935 797 929 798 920 802C907 808 904 811 873 844C844 874 819 901 811 909L806 914L812 923C827 946 845 964 864 976C878 984 893 990 910 994C919 996 921 996 938 996S959 996 975 994C989 992 995 991 1007 991C1023 991 1027 992 1036 997C1050 1005 1051 1023 1038 1031C1035 1033 1033 1033 1029 1033C1024 1033 1023 1033 1019 1031C1011 1026 1008 1016 1012 1007C1014 1005 1016 1002 1018 1000L1021 998L1018 997C1013 996 990 998 974 1000C955 1002 932 1003 921 1002C887 998 859 984 834 959C824 949 817 941 808 928L802 919L799 920C794 923 781 927 773 929C763 931 745 931 735 929C705 924 675 911 640 887L629 880L628 886C623 914 621 943 624 962C627 989 639 1013 656 1024C663 1029 669 1031 678 1031C692 1032 700 1029 710 1019C717 1012 720 1007 724 997C727 992 727 990 727 985C727 981 727 979 724 974C719 963 707 955 696 954C684 954 679 959 681 970V975L682 972C686 966 695 963 702 967C716 974 711 995 695 995C685 995 677 985 675 971C673 963 674 959 679 955C689 945 709 948 723 961C728 966 733 974 733 978C733 980 733 980 736 977C754 961 781 966 783 986C784 991 783 1000 780 1005C774 1017 762 1022 753 1014C749 1011 748 1008 748 1003S749 995 753 992C760 986 770 987 775 995L777 997V993C777 990 777 987 777 986C776 976 764 970 753 973C744 976 737 983 732 994C725 1009 721 1017 712 1025C706 1031 699 1035 691 1036C685 1038 674 1038 668 1036C643 1030 624 1002 618 964C616 955 616 921 618 909C619 904 619 899 619 899S615 908 609 919S596 943 594 948L588 957L595 958C603 959 606 960 609 964C612 969 609 975 601 983C584 998 582 1001 581 1012C581 1017 581 1018 583 1022C585 1025 587 1027 588 1028C595 1033 609 1035 616 1032C619 1031 619 1031 617 1029C615 1028 613 1024 613 1022S616 1016 618 1015C623 1012 629 1015 631 1020C632 1026 625 1036 617 1038C612 1039 602 1039 596 1038ZM566 982C571 975 573 970 573 969S572 964 572 960C570 951 569 948 566 947C564 946 560 948 558 950C557 952 557 955 559 969C561 980 561 988 558 994C557 997 559 994 566 982ZM381 985C423 983 458 974 495 956C518 945 537 933 556 916C572 903 590 884 602 869L606 863L594 853C587 848 580 843 579 842L576 839L575 841C571 848 557 864 547 874C527 895 506 909 482 921C429 947 374 949 323 927C301 917 282 904 239 871C216 853 206 845 194 837C168 821 151 813 130 810C120 808 120 808 121 813C130 841 146 871 166 895C173 902 173 902 177 903C186 904 196 913 200 924C202 929 205 932 219 941C259 968 304 983 353 985C359 986 365 986 366 986C366 986 373 986 381 985ZM128 910L146 905L137 902C126 896 115 892 105 890C93 887 77 887 66 890C62 891 57 893 54 894C50 896 50 896 51 898C56 903 68 909 77 912C92 916 103 915 128 910ZM162 903L165 902L158 895C140 872 126 846 117 819C115 813 113 809 113 808C112 808 108 808 103 809C91 810 81 812 70 818C54 825 44 836 40 851C37 859 37 870 40 878C42 886 45 891 47 890C48 890 51 889 55 887C66 883 73 882 85 882C103 882 120 886 142 897C154 903 156 904 162 903ZM706 872C726 869 744 859 760 844L767 838L764 828C760 814 753 784 749 767C748 760 746 754 746 754S743 751 740 748C729 740 725 738 722 742C716 748 718 753 730 763C734 767 738 771 739 773C746 783 743 803 734 809C730 812 725 813 716 813C703 813 694 809 690 801C685 792 688 783 697 782C709 780 715 797 705 802C703 803 702 804 702 804C702 805 709 806 715 806C727 806 732 804 735 798C736 796 737 794 737 788C737 778 735 776 725 766C713 756 710 750 714 743C717 737 719 737 732 737H743V735C743 734 742 730 741 725C740 721 740 717 740 717S736 717 732 718C727 719 723 720 723 720C723 719 718 690 718 689C718 689 719 689 721 688C728 687 728 687 721 682C713 676 704 668 698 662L694 657V670L693 683H685H676V693C673 741 661 795 640 849C638 855 636 861 636 861C635 863 653 869 667 872C677 874 696 874 706 872ZM631 845C633 837 635 831 635 830C636 829 634 833 631 837C628 842 624 848 623 850S620 854 620 854C619 855 626 860 627 859S629 852 631 845ZM618 845C634 820 646 796 653 772C662 739 668 712 670 689V683H662H654V666V649H662H670V639C669 626 667 606 666 598C665 595 664 587 663 582C661 570 658 554 654 539C636 474 605 411 561 354L554 344L551 347L547 351L535 339L522 327L526 323L531 318L529 316C527 312 499 285 488 275L477 265L467 275L458 284L479 306C500 326 510 337 523 353C581 425 617 505 629 588C632 611 633 620 633 648C633 677 632 687 628 710C621 753 604 798 583 831L581 833L586 836C592 840 613 852 613 852C614 852 616 849 618 845ZM784 818C789 812 796 804 799 800L805 794L800 796C793 798 787 798 783 796S775 789 772 783C770 779 770 778 770 772V765L776 753C780 744 781 740 781 738C781 734 779 731 776 730C771 727 768 730 761 745C759 749 756 753 755 754L753 755L756 771C759 786 767 817 770 827C771 831 772 832 773 831C773 831 778 825 784 818ZM400 810C420 806 442 797 461 784C520 744 556 674 564 589C566 572 566 540 564 523C557 447 526 374 475 314C460 297 460 297 476 330C500 378 514 413 524 450C546 531 542 608 511 666C499 690 486 706 463 726C457 731 452 736 450 738C447 742 445 747 445 750C445 751 444 752 443 752C439 753 438 753 436 748C433 744 423 731 421 730C420 729 417 732 414 735C398 748 381 757 362 760C300 770 244 721 244 657C244 644 244 640 248 631C250 628 252 625 255 622L259 619L254 618C252 618 247 618 244 617C221 616 197 607 175 594C171 591 166 588 166 588C165 588 153 604 148 613C142 624 136 635 131 647C127 657 123 668 124 669C124 669 125 667 127 665C133 655 145 646 155 643C162 640 176 640 182 642C192 644 199 651 199 659C199 670 190 676 181 673C171 669 169 657 177 650C178 649 179 647 179 647C179 646 164 647 160 648C136 654 119 680 114 719C112 728 111 747 112 747C112 747 115 746 119 744C153 730 193 729 228 742C244 748 253 754 284 773C295 780 308 788 312 791C332 802 350 809 368 811C376 812 391 811 400 810ZM359 754C378 751 399 741 411 728C415 725 415 725 413 723C410 720 393 707 383 701C371 694 347 681 331 674C326 672 321 670 321 669C321 669 321 668 321 666L322 663L328 664C336 664 352 663 361 661C382 656 404 645 421 632C424 630 429 625 433 621L439 615L437 609C433 595 422 577 410 565L404 558L398 564C369 592 328 611 285 617C280 617 276 618 276 618S276 619 277 619S284 624 286 628S288 640 286 644S279 652 275 653C272 655 265 655 261 653C258 652 253 647 251 644C250 642 249 653 250 662C253 699 275 732 307 747L313 749L312 746C306 734 314 721 327 721C337 721 344 728 344 738C344 744 342 748 337 752C334 754 334 754 335 754C339 755 353 755 359 754ZM951 744C971 740 988 726 993 708C995 702 996 689 995 683C991 665 976 652 958 652C953 652 944 653 947 654C950 654 956 660 957 663C962 676 953 689 940 689C931 689 924 682 922 673L921 669L915 674C905 681 886 692 876 696C874 697 873 698 873 698C873 699 874 701 875 704C888 733 921 751 951 744ZM822 705C827 705 831 704 831 704C832 703 830 700 827 696C810 674 800 648 796 618C795 613 795 607 795 605V600H783C774 600 769 600 765 599C743 594 727 580 722 559C720 553 720 540 721 534C726 517 738 505 752 503C769 500 783 509 783 521C783 525 780 530 777 531C772 535 766 534 761 530C756 524 757 517 762 512L765 509H761C759 508 755 508 753 509C726 513 716 552 736 577C747 589 766 596 787 594L794 593V590C796 565 801 544 811 520C817 507 825 492 840 464C847 453 852 442 852 442C852 440 838 426 831 421C821 415 807 409 798 407H796L795 418C795 432 793 439 788 449C780 466 766 478 750 484C741 487 731 488 725 485C720 483 715 478 715 474C713 467 716 455 721 449C726 442 735 439 742 443C752 447 753 462 744 468C737 472 728 471 723 465C721 461 721 462 721 469C721 477 724 481 733 481C743 482 758 475 769 463C779 453 785 442 788 429C789 423 790 407 789 405C789 405 782 405 775 405C760 405 754 406 743 411C722 420 702 440 689 465L684 474L688 485C710 540 727 602 739 672C740 678 741 684 741 684S744 684 748 683S756 682 757 682C757 682 758 686 759 690L760 698L767 700C785 705 803 707 822 705ZM880 688C898 680 917 667 926 659C928 656 932 653 934 652C939 648 955 632 963 622C975 607 984 593 992 576L998 566H995C990 567 988 565 985 554S980 540 977 539C975 537 971 538 968 542C965 545 965 550 968 559C971 570 970 573 967 579C962 589 954 595 948 595C944 595 936 591 931 586C923 579 921 570 925 562C928 555 935 553 941 556C951 562 947 578 935 577C933 577 932 577 932 577C932 579 938 584 942 587C950 591 954 589 960 579C965 572 965 569 962 559C960 549 960 544 962 539C964 536 969 533 972 533S982 536 989 542C995 547 1002 551 1004 551C1004 551 1005 550 1005 550C1021 510 1027 479 1030 437C1032 402 1028 359 1020 324C1018 316 1018 316 1016 316C1006 316 997 306 999 296C1000 292 1003 287 1005 285L1007 283L1005 276C997 259 986 238 974 220C934 160 876 110 805 72L793 66L791 67C789 70 784 72 781 72C777 72 773 70 771 68C767 65 766 63 766 58L765 54L759 51C739 43 708 34 687 30C625 19 565 27 510 54C458 80 414 122 384 175C381 181 377 186 376 188L375 190L382 194L390 197L392 195C393 193 400 185 407 177C435 144 448 131 463 120C527 72 611 58 702 80C762 95 818 124 866 164C878 173 904 200 913 211C938 240 956 272 966 304C985 362 981 419 954 472C947 487 940 497 922 526C903 555 899 560 892 574C872 609 864 640 866 670C867 680 870 693 871 693C871 693 876 691 880 688ZM732 671C721 605 704 542 684 491L680 482L678 488C671 510 668 529 667 554C667 569 668 571 670 585C673 605 674 610 678 620C686 640 698 657 714 671C720 676 734 686 734 685C735 685 734 679 732 671ZM686 645C684 643 681 639 679 635L675 628L676 633C676 636 676 641 676 644V649H682H688ZM273 612C298 610 321 604 345 592C363 583 380 572 393 560L399 554L397 552C391 548 377 539 369 535C356 528 342 524 327 522L321 521L324 524C330 531 329 542 321 547S304 549 300 541C297 536 299 527 305 523L307 521L303 520C296 519 277 521 262 525C238 531 215 543 194 559C187 565 171 581 171 582C171 584 181 591 191 596C212 606 231 611 259 612C260 612 267 612 273 612ZM449 602C471 573 484 537 490 494C492 479 492 447 490 431C485 392 475 355 458 315C449 295 448 292 447 293C447 293 443 296 440 298C436 301 429 305 424 308S415 314 415 314S418 318 421 323C428 335 440 360 444 370C462 419 460 465 438 510C432 523 424 535 415 546L408 554L414 560C421 568 428 576 433 585C437 592 442 602 443 606C443 608 444 608 444 608S447 606 449 602ZM191 554C228 524 274 510 318 514C348 517 379 530 399 546C401 548 403 549 403 549C405 549 418 532 425 522C449 483 456 439 445 395C441 380 437 367 429 351L425 342L411 349C384 362 364 369 341 375C290 387 240 383 193 362C185 358 169 350 162 345C161 344 160 344 160 344C159 346 157 364 158 371C158 378 161 390 162 391C162 392 164 391 166 391C189 383 215 389 233 405C246 416 253 431 255 449C255 453 256 456 256 457C257 457 272 460 281 461C306 463 332 459 350 449C366 441 376 429 380 414C381 408 382 397 380 394C380 393 380 393 379 395S374 400 370 401C358 404 348 392 353 381C355 376 361 372 367 372C370 372 375 374 378 377C387 386 390 403 385 423C382 432 376 445 370 453C355 473 330 488 302 492C287 495 265 494 251 491L247 490L244 494C240 500 230 508 224 512C216 517 208 519 198 520C189 520 185 519 178 517C173 515 167 510 165 506C159 495 166 482 179 482C187 482 195 489 195 498C195 503 192 508 187 511L185 513H188C198 515 212 512 221 506C227 503 234 496 238 491L240 488L238 487C236 486 234 485 233 485S227 483 223 480C193 465 169 439 159 409C158 405 156 402 156 402S148 407 143 411C134 420 123 438 119 451C113 474 114 499 123 522C126 528 128 532 134 540C146 557 152 564 159 571L165 578L175 568C180 563 187 557 191 554ZM663 530C665 512 668 498 674 482L677 474L674 467C654 420 628 377 600 341C590 329 579 317 579 317C579 318 574 323 568 329C560 338 558 340 559 341C559 341 564 348 569 355C610 408 642 472 658 533C660 538 661 542 661 541C661 541 662 536 663 530ZM693 445C699 436 712 423 721 416C724 414 731 410 735 408C750 400 761 398 778 398C785 399 788 398 788 398C786 391 784 385 781 380C778 374 771 364 767 360L764 358L758 362C731 380 696 386 665 380C652 377 637 371 627 365L623 362L628 369C642 390 655 413 667 438C672 447 677 458 678 461L680 466L685 458C687 454 691 448 693 445ZM249 451C247 425 231 405 207 397C200 394 199 394 188 394C178 394 176 394 171 396C167 397 165 398 165 398S167 402 169 406C182 426 207 442 239 452C244 454 248 455 248 455C249 455 249 454 249 451ZM863 423C878 392 886 366 890 333C892 321 892 287 891 274C883 211 852 160 802 131C749 98 681 97 618 128C591 141 571 156 549 177C536 189 527 200 513 219L501 234L509 240C537 259 556 270 570 272C581 274 588 270 591 261C593 257 594 247 593 243V240L591 242C586 248 576 248 572 241C568 233 574 224 583 224C593 224 601 235 600 250C599 262 596 269 589 273C586 274 584 275 579 275C567 276 555 272 535 261C530 259 526 256 526 257C535 264 544 273 551 279C555 283 559 287 559 287C560 287 561 285 563 284C564 282 565 281 566 281S591 304 591 304S589 306 587 309L583 313L588 318C591 321 597 328 601 333C609 343 617 350 626 357C657 377 695 382 730 369C741 365 759 355 759 353C759 352 750 345 743 341C724 331 705 326 679 324C670 324 665 323 661 322C632 312 615 275 623 238C627 217 636 200 651 185C659 177 669 170 679 165L685 163L680 158C672 151 668 142 669 132C669 125 670 120 674 115C677 111 681 109 686 109C699 109 702 126 690 131C687 132 686 132 683 131C681 131 679 129 678 128S675 126 675 126S675 129 675 132C675 141 679 150 686 155C691 160 692 160 699 159C708 157 723 157 732 158C782 167 817 218 812 272C809 301 796 327 776 347L769 354L773 358C782 368 790 383 793 395C794 399 794 400 796 400C819 405 840 417 852 431C854 433 856 435 856 435C857 435 859 429 863 423ZM307 374C340 371 370 362 407 344L422 337L418 331C410 318 410 316 409 317C408 317 403 319 397 322C326 352 242 343 183 300C180 298 177 296 177 296C176 296 170 310 167 317C166 320 164 326 163 330L161 337L167 341C196 360 233 372 268 375C278 376 298 376 307 374ZM773 342C789 325 799 306 804 283C807 271 807 252 804 240C800 219 791 203 777 189C766 178 752 170 738 166C728 164 724 163 720 165C713 168 706 169 699 168S692 167 687 169C661 179 640 201 632 229C625 251 626 273 635 291C641 301 649 310 658 314C665 317 670 318 680 318C708 318 728 309 734 295C735 291 736 289 735 285C735 278 734 275 730 271C723 265 717 265 704 272C695 276 694 276 689 276C679 276 672 272 666 264C662 257 660 250 660 241C660 230 664 219 671 209L675 204L677 206L679 208L676 213C672 220 670 223 671 228S677 239 682 240C689 242 693 241 706 234L719 227H726C731 227 733 228 736 229C747 234 753 245 753 260S746 289 734 301C727 308 720 312 711 317L703 321L708 322C725 325 747 335 760 346C762 348 764 349 765 349C765 349 769 346 773 342ZM157 327C159 319 163 309 168 300L172 292L164 285C141 263 126 236 120 205C118 196 118 194 118 178C117 164 118 160 119 154C123 134 130 120 141 105L146 98V88C146 72 143 59 137 44L135 38L132 41C112 55 95 78 84 104C69 140 68 185 80 227C90 258 108 288 131 312C140 321 155 333 155 332C156 332 156 329 157 327ZM545 302L555 292L551 288C543 280 510 251 500 243L497 240L489 250L481 260L491 269C497 274 509 286 518 295C527 305 535 312 536 312C536 312 540 308 545 302ZM252 288C270 287 286 282 303 274S334 255 353 238L362 230L360 229C358 228 355 227 352 226L346 225L339 232C320 247 298 258 275 264C267 266 255 267 243 267C230 267 223 267 212 264L204 262L202 264C199 267 190 277 190 278S202 283 212 286C226 289 238 290 252 288ZM193 265C195 262 197 259 197 259C196 259 193 257 190 256C167 244 152 227 147 205C146 200 146 197 146 189C146 183 147 178 148 176C149 173 149 172 147 165C146 159 145 144 144 134V130L140 135C132 145 126 159 124 172C122 186 124 206 130 220C138 241 155 260 177 272L183 276L185 273C186 271 190 268 193 265ZM269 259C287 255 304 248 319 238C327 233 337 225 337 224S322 221 309 221C284 221 260 227 238 238C231 242 216 251 212 255L210 257L215 258C227 261 230 261 246 261C258 261 263 260 269 259ZM208 250C223 238 247 226 268 220C290 214 316 213 338 217L344 218L346 216C349 214 358 203 362 197L365 193L362 192C348 186 328 182 313 181C305 181 304 181 304 179C304 178 303 178 298 178C278 176 262 166 239 142C227 129 216 119 210 116C203 113 194 111 187 111C175 111 165 114 155 121L150 124V130C149 139 151 165 152 165C152 165 153 163 155 161C157 157 163 152 168 149C183 140 202 144 212 159C223 175 218 198 201 207C183 216 165 210 155 190L152 184V191C152 213 164 232 185 246C191 250 200 254 202 254C203 254 206 252 208 250ZM376 213L386 202L380 200C371 195 372 195 366 203C363 206 359 212 356 215L351 220L356 221C358 222 361 223 362 223S365 224 366 224S371 219 376 213ZM174 201C168 195 168 187 174 181C179 177 186 177 191 182S196 194 191 199L188 203H191C195 204 200 201 205 196C210 190 212 187 212 177C212 170 212 169 209 165C204 156 197 151 187 151C179 150 174 152 168 156C164 159 158 167 156 172C154 175 154 176 156 180C159 190 166 199 172 203C176 205 177 205 174 201ZM168 81C196 63 233 64 260 83L264 85L265 82C266 81 266 76 266 72C267 59 262 49 251 38C236 24 218 18 194 19C176 20 165 23 149 30L141 34L143 39C149 51 153 69 153 83V91L158 87C161 85 166 82 168 81ZM998 85C1004 75 1008 61 1007 49C1006 29 993 12 974 5C967 2 954 2 947 4S928 12 918 19C909 25 909 25 906 30S903 36 903 44C903 51 903 52 906 57C912 70 922 77 937 77C946 77 946 76 943 73C939 71 936 64 936 60C936 55 937 51 941 48C947 42 953 41 961 44C973 51 973 69 960 77L957 78L964 80C972 81 982 85 988 87C991 89 993 90 994 90S997 87 998 85ZM424 66C408 59 413 35 430 35C439 35 446 43 447 51C447 54 444 60 442 62C438 67 430 69 424 66Z" horiz-adv-x="1045.06" unicode="V"/>
+ </font>
+ <font horiz-adv-x="0" id="yswab">
+ <font-face ascent="751" descent="-249" font-family="yswab" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M81 584C107 584 134 581 156 577C220 564 294 528 307 457C308 457 308 424 308 424C307 408 303 392 297 377C264 295 180 250 97 226C78 221 20 208 11 205L19 182C34 184 48 188 63 191L138 208C188 219 238 228 284 253C326 277 357 308 385 348C389 357 391 365 404 365C409 365 456 359 475 356C567 340 689 298 689 177C689 147 681 117 664 92C643 60 599 30 548 30C518 30 489 40 462 53C406 79 357 119 308 156L265 187C258 192 248 203 238 203C233 203 29 157 29 157C30 152 32 146 34 141C37 131 46 134 59 132C118 128 161 109 207 87C292 49 378 -13 493 -13C509 -13 525 -11 540 -8C596 7 643 30 682 64C731 106 777 165 777 250C777 342 719 436 631 445V446L662 465C686 487 718 503 737 530L726 544L577 698H576L415 542C395 602 347 648 291 676C282 680 248 697 238 697C230 696 221 689 215 685L164 653L107 617L91 607C85 603 81 601 81 591V584ZM630 474C619 468 608 461 597 455C544 424 478 404 407 393C417 418 422 444 424 471V497C423 500 423 503 423 506C423 520 435 526 442 532C452 541 461 551 471 560C476 564 503 595 510 595C515 595 520 588 522 586L630 474Z" glyph-name="B" horiz-adv-x="795" unicode="B"/>
+ <glyph d="M523 698C487 678 448 670 409 670C381 670 357 674 334 679C328 680 320 683 313 683S299 678 294 676L263 660C235 646 178 619 155 602C62 537 11 422 11 308C11 186 69 94 144 40C187 9 246 -14 314 -14C444 -14 574 64 574 189C566 183 559 175 551 168C503 127 432 95 356 95C304 95 259 111 223 132C213 138 204 146 194 151V153C233 178 272 204 309 231L311 258V567C349 559 412 548 451 548C465 548 480 550 492 560C516 580 520 617 522 646C523 658 524 669 524 681C524 687 524 693 523 698ZM194 596V229V213C194 191 186 182 175 169C125 219 86 287 86 378C86 474 130 562 194 596Z" glyph-name="C" horiz-adv-x="592" unicode="C"/>
+ <glyph d="M170 347H220C223 347 227 348 231 348C241 348 245 343 249 336C252 330 256 325 260 319C327 224 410 139 410 -18C410 -48 405 -79 388 -105C373 -129 349 -151 312 -151C230 -151 192 -61 175 -1C170 17 164 36 162 55H11V38C44 36 54 -6 66 -30C96 -102 170 -152 244 -168C265 -173 287 -176 308 -176S349 -173 369 -167C463 -137 515 -31 515 73C515 146 487 215 456 268C440 296 421 321 402 347C437 349 478 344 509 349C526 372 534 404 547 431H361H352C338 431 339 436 332 445C311 478 288 528 288 576S319 671 370 671C381 671 391 668 401 662C430 642 444 601 444 554H561V672C544 675 526 682 509 685C473 693 428 698 390 698C343 698 307 681 279 655C236 615 204 549 204 473V460C205 450 211 412 211 412C209 401 188 380 184 376C177 369 170 366 170 353V347Z" glyph-name="F" horiz-adv-x="579" unicode="F"/>
+ <glyph d="M377 698L370 674L420 660C418 647 413 634 408 621C359 485 230 396 120 330C96 316 34 281 11 270C29 237 54 194 72 164C73 161 75 157 79 155C80 155 88 154 88 156C188 189 303 231 422 231C451 231 470 224 488 208C521 180 534 138 534 96C534 87 533 77 532 67C519 -15 461 -90 378 -110C364 -113 349 -115 335 -115C304 -114 262 -95 262 -56C263 -43 270 -33 279 -24C295 -8 319 6 319 31C319 33 318 36 318 38C318 43 316 48 314 53C304 73 283 85 262 85C217 85 197 39 197 0C197 -10 198 -19 200 -28C216 -107 305 -156 397 -156C427 -156 456 -151 484 -142C567 -113 633 -42 653 44C658 63 660 84 660 104C660 193 620 265 574 311C568 317 542 343 533 343C523 343 503 333 499 331L430 306L272 247C243 236 214 223 184 214C167 247 148 277 131 309C161 315 222 342 241 349C370 405 489 484 569 597C578 609 588 622 594 636L377 698Z" glyph-name="H" horiz-adv-x="680" unicode="H"/>
+ <glyph d="M522 698L384 551V698C375 695 366 690 357 686L311 664C256 639 202 614 153 578C79 525 11 449 11 339C11 317 13 294 17 273C37 167 104 69 202 20C242 2 288 -14 342 -14C363 -14 379 -10 398 -6C469 15 524 71 572 125C619 180 679 243 698 315C703 332 706 350 706 368C706 373 706 379 705 384C699 422 677 457 657 489C637 522 616 553 593 584C567 621 540 656 522 698ZM267 616V395C267 376 268 356 268 336C268 281 260 237 238 198C232 185 224 174 217 161C207 167 199 176 191 185C145 231 108 312 108 386C108 478 161 544 217 585C233 597 250 606 267 616ZM239 142L383 310C387 375 381 447 385 511C401 532 419 551 437 571C460 548 479 522 498 496C524 460 578 385 597 347C605 332 610 324 610 303C610 290 607 276 606 264C595 160 524 85 418 85C357 85 306 105 259 130C252 134 246 139 239 142Z" glyph-name="O" horiz-adv-x="724" unicode="O"/>
+ <glyph d="M321 -13L376 42C379 45 394 58 394 63S381 81 380 82C350 117 316 163 316 224C316 246 318 282 324 295C329 305 391 376 396 384C363 406 332 430 300 453L276 471C273 473 268 477 264 477C258 477 238 461 238 461L173 415C98 363 18 293 11 195C11 195 12 147 14 147C18 128 23 109 32 92C53 49 87 13 131 -9C131 -9 143 -13 143 -10C152 -5 159 5 166 12L212 58C215 61 233 81 238 81C241 81 243 78 245 76C259 59 318 -13 321 -13ZM307 316C301 301 262 166 257 150C253 125 242 120 226 104L199 77C195 73 191 68 186 66C179 66 166 76 163 78C122 109 87 161 87 226C87 299 134 354 174 386C178 389 184 396 190 396C194 396 198 392 201 390L223 374C241 362 259 349 277 336C287 329 296 321 307 316Z" glyph-name="a" horiz-adv-x="414" unicode="a"/>
+ <glyph d="M291 93L280 110C269 107 260 100 249 95C230 87 209 83 188 83H177C108 90 102 187 102 257V287C103 315 94 342 94 371C94 385 99 406 113 411C117 411 120 409 123 407C129 403 206 355 206 355C210 353 231 338 235 338H236C243 338 248 348 251 353C264 371 279 388 291 407C263 423 236 441 208 459L186 472C183 474 179 477 175 477C168 477 160 470 155 466C121 441 78 419 54 386C25 344 11 282 11 218C11 128 47 58 99 10C103 6 122 -11 129 -11C134 -11 163 9 173 15C183 22 291 89 291 93Z" glyph-name="c" horiz-adv-x="309" unicode="c"/>
+ <glyph d="M152 382C145 380 139 376 132 373C87 347 48 321 24 272C15 251 11 229 11 206C11 201 12 195 12 190C20 102 78 28 154 -4C161 -7 174 -12 182 -12C189 -12 239 11 257 19C289 32 323 43 349 66C391 104 410 169 410 228C410 240 409 252 407 264C392 337 330 391 269 428C228 452 153 478 153 543C153 570 167 595 183 611C191 617 195 619 195 632V643C140 643 75 618 55 563C50 550 49 536 49 522C49 469 90 429 118 407C129 398 141 391 152 382ZM97 239V249C97 286 117 320 145 344C151 349 168 365 177 365C183 364 188 359 193 357C257 314 338 266 338 167C338 158 338 149 337 141C335 114 333 80 306 65C303 64 301 63 299 63C295 63 277 69 272 69C262 71 251 70 241 72C218 75 196 85 176 98C128 130 103 183 97 239Z" glyph-name="d" horiz-adv-x="428" unicode="d"/>
+ <glyph d="M278 113C249 102 239 89 198 89C178 89 159 95 144 110C129 127 123 143 117 169C116 173 108 222 113 222C116 227 123 230 128 234C140 242 290 339 297 343C269 389 239 434 210 479C199 475 122 437 94 423C75 413 53 406 39 388C19 361 15 323 13 290C12 270 10 248 10 228C10 131 41 65 87 9C94 2 100 -8 110 -11C110 -11 121 -8 121 -6C132 0 241 66 241 66L266 81C273 86 278 87 278 101V113ZM110 249C109 262 109 276 109 289C109 338 122 373 147 402L179 352L206 312L110 249Z" glyph-name="e" horiz-adv-x="315" unicode="e"/>
+ <glyph d="M11 356H67C76 173 89 -4 108 -177H114C117 -177 120 -177 122 -175C124 -174 128 -152 129 -145C149 -26 166 107 176 230C178 251 185 339 185 356H267V419H206H197C186 419 175 420 165 425C144 436 129 474 129 502C129 526 138 550 159 565C167 571 176 576 190 576C206 576 220 569 235 560C247 552 262 541 276 541C288 541 293 555 298 563L329 607C335 615 341 624 346 633C342 636 335 642 329 642H327C318 638 318 624 307 624H304C279 629 264 656 237 657C137 657 114 562 84 494C67 453 53 419 22 388C16 382 11 380 11 366V356Z" glyph-name="f" horiz-adv-x="301" unicode="f"/>
+ <glyph d="M337 479C330 471 296 424 290 420C286 418 281 418 277 418H164C148 418 148 422 139 433L116 463C113 467 108 476 103 476C99 476 96 471 94 468C90 462 70 437 65 430C59 424 54 417 54 406C54 401 55 396 55 391V139V126C55 122 55 118 56 114C57 109 71 84 76 75C89 50 101 25 115 1C131 8 147 17 162 26C171 30 286 92 289 92C295 90 301 80 304 75C327 44 345 0 345 -50C345 -111 280 -142 233 -142C182 -142 145 -113 111 -83C103 -76 73 -48 65 -45C48 -68 29 -88 11 -110C3 -120 -9 -126 -9 -144C-9 -161 4 -161 17 -167C63 -186 119 -200 181 -200C192 -200 202 -199 212 -197C262 -186 305 -153 341 -118C380 -80 425 -29 425 42C425 77 413 106 397 129C392 137 385 141 385 154V167V323C401 323 418 322 432 325L437 333C445 362 455 390 464 418C437 418 409 417 385 420C368 438 353 459 337 479ZM150 323H290V138V131C290 118 285 115 274 111C262 104 251 98 239 92L195 69C192 67 186 62 182 62C174 62 171 75 169 79C162 92 150 109 150 128V323Z" glyph-name="g" horiz-adv-x="482" unicode="g"/>
+ <glyph d="M152 644C102 644 83 588 74 555C72 550 65 521 65 516V514C68 510 76 502 82 502C86 502 90 505 93 507C127 530 172 547 190 585C194 593 197 603 197 612C197 634 177 644 158 644H152ZM93 479C66 449 38 420 12 390L11 379C37 377 46 347 46 325V133V120C46 95 32 78 11 76L13 54C46 31 78 8 115 -11C157 14 192 47 230 76L232 98C216 88 195 76 173 76C148 76 140 102 140 127C140 137 141 147 141 155V323C141 346 149 376 176 379L175 390C149 421 120 449 93 479Z" glyph-name="i" horiz-adv-x="250" unicode="i"/>
+ <glyph d="M11 77V76C50 47 86 16 126 -11L137 -6C171 21 206 47 238 76L240 98C229 90 210 76 192 76C152 76 147 121 146 152C146 158 145 163 145 169V301V566C145 573 146 579 146 586C150 623 169 676 218 676V698C200 693 182 687 164 682L64 651C51 647 39 644 26 640C17 636 11 638 11 624C11 620 11 615 13 613C16 611 21 610 24 608C42 600 50 580 50 556V548V202V183C50 141 32 102 11 77Z" glyph-name="l" horiz-adv-x="258" unicode="l"/>
+ <glyph d="M104 479L11 392V391C31 369 52 347 70 323L71 310V-13L138 17L156 25C163 27 166 30 166 40V50V337V348C166 351 166 355 168 358C171 362 206 383 217 391C222 394 228 400 234 400H235C241 399 265 376 265 376C271 371 284 364 286 355C287 351 287 346 287 342C287 333 286 324 286 315V-12C340 23 395 57 445 96L446 117C440 115 435 112 429 112C406 112 389 134 384 154C381 165 381 176 381 187V214V320C381 341 388 364 407 371C415 374 418 374 418 385V392C417 398 411 402 406 406C396 415 349 454 336 465C331 469 324 477 318 477C313 477 310 473 306 471C259 439 213 414 166 380C166 391 166 402 165 412C146 436 125 457 104 479Z" glyph-name="n" horiz-adv-x="468" unicode="n"/>
+ <glyph d="M236 473C193 438 136 416 93 381C46 344 11 289 11 228V219C17 139 81 82 137 32C147 24 157 15 166 6S182 -14 199 -14S220 -2 230 7C246 21 264 35 281 48C349 99 446 158 446 261C446 270 445 279 444 288C434 362 374 417 316 457C309 461 266 491 258 491C254 491 240 477 236 473ZM80 295C80 338 111 380 149 390C156 391 162 391 169 391C186 391 202 388 218 384C299 361 365 288 365 196C365 185 364 174 361 163C350 122 315 88 267 88C242 88 217 95 195 106C146 130 110 175 93 226C87 243 80 277 80 295Z" glyph-name="o" horiz-adv-x="464" unicode="o"/>
+ <glyph d="M104 479L11 392V391C31 370 51 348 69 325L71 309C71 251 72 193 70 138C56 126 41 115 27 104L58 91C67 86 71 88 71 73V-25C72 -75 88 -126 114 -169C124 -155 131 -136 138 -120C159 -67 166 -12 166 45C173 42 268 2 270 2C277 3 285 11 290 15L335 48C358 65 381 81 401 103C440 148 463 209 463 269C463 277 463 286 462 294C452 370 389 428 338 479H337L166 308C165 342 167 379 165 411C147 436 126 458 104 479ZM272 383C309 346 349 301 363 249C369 227 370 203 370 179V162C370 139 369 114 356 94C353 88 345 76 336 76C331 76 323 80 319 83L178 142C171 147 166 145 166 158V264C166 268 166 272 167 275C170 282 196 306 197 307C222 333 248 356 272 383Z" glyph-name="p" horiz-adv-x="481" unicode="p"/>
+ <glyph d="M104 479L11 392V391C31 369 52 348 70 324C73 258 72 182 69 119C51 104 31 91 12 77V75L115 11L141 -6C145 -8 148 -11 152 -11C161 -11 170 -1 175 2L273 70C277 73 286 77 286 83C286 90 280 97 275 97C269 97 263 91 260 89L237 73C233 70 228 65 223 65C219 65 214 68 211 70L188 85C181 89 169 94 166 102V331C166 337 165 344 165 351C165 365 170 368 180 374L214 398C218 401 223 406 229 406C236 406 242 396 246 392L286 352H287L331 396C338 403 345 408 345 418S336 434 330 440L291 479H290L166 392L165 412C146 436 125 457 104 479Z" glyph-name="r" horiz-adv-x="363" unicode="r"/>
+ <glyph d="M11 356H67C76 173 89 -4 108 -177H114C122 -177 125 -174 125 -165C147 -67 173 186 178 254C180 270 186 357 186 369C186 374 187 378 187 383C186 390 182 395 178 400C157 427 129 463 129 501S155 576 191 576C208 576 224 567 239 557C250 551 264 541 277 541H279C286 543 296 560 298 563L329 607C335 615 341 624 346 633C342 636 335 642 329 642H327C318 638 318 624 307 624H304C279 629 264 656 237 657C137 657 114 562 84 494C67 453 53 419 22 388C16 382 11 380 11 366V356Z" glyph-name="s" horiz-adv-x="234" unicode="s"/>
+ <glyph d="M169 589L11 377H75C74 289 77 198 74 113C61 102 47 92 33 82L145 11C158 3 169 -6 185 -11L198 -4L324 84L312 103C298 95 286 85 273 76C268 73 260 65 254 65C247 65 239 72 234 75L188 104C178 109 169 113 169 128C169 133 170 138 170 143V377H324V456H170C169 500 171 547 169 589Z" glyph-name="t" horiz-adv-x="342" unicode="t"/>
+ <glyph d="M26 81V80C32 74 40 71 48 67L75 55L177 10L212 -6C216 -8 222 -11 226 -11H228C236 -11 244 -1 250 4L303 45C379 102 471 184 471 290C471 355 441 417 387 453C378 459 346 478 334 478C333 478 331 477 330 477C324 476 284 447 284 447L180 374C174 405 148 441 131 458C127 462 114 477 106 477C100 476 94 470 90 467L55 440L25 418C22 415 15 412 14 408C14 405 16 403 18 402C23 397 29 393 34 388C71 355 104 300 104 235C104 202 95 169 78 140C65 117 46 98 26 81ZM126 148C133 160 144 171 151 183C174 219 189 264 189 317V326C189 332 188 338 187 344V351C187 358 192 361 196 365C211 377 227 389 252 389C257 389 263 389 268 388C333 378 378 308 378 235C378 176 349 123 317 87C314 82 308 72 300 72C296 72 253 92 253 92C211 110 169 131 126 148Z" glyph-name="v" horiz-adv-x="489" unicode="v"/>
+ <glyph d="M275 417C267 422 182 477 176 477H175C168 477 161 470 156 466C140 456 125 445 109 434C89 421 71 407 57 388C25 344 11 284 11 218C11 123 53 47 112 -1C117 -4 123 -11 129 -11C137 -11 155 4 157 5L224 48C229 51 244 63 250 63C254 63 257 60 260 58C277 44 353 -12 354 -13C391 17 430 45 465 76L466 97C448 89 444 76 416 76C387 76 377 106 373 128C371 141 370 202 370 210V258V294V303C370 317 378 321 384 329L408 357C411 361 419 373 424 373S433 369 436 366L469 338C518 296 567 245 567 169C567 30 435 -89 355 -169V-170L370 -185H371C471 -85 622 14 652 162C656 180 657 199 657 217C657 321 575 397 526 441C522 445 482 479 481 479C444 435 406 393 371 347H370V505C370 520 369 535 369 550C369 567 370 584 374 601C381 634 400 676 443 676V698L288 651L250 639C243 637 236 636 236 626V620C236 614 240 612 244 610C248 609 252 607 256 604C271 593 275 581 275 556V417ZM239 336L274 384C275 378 276 372 276 366C276 358 275 350 275 342V204V186C275 156 264 109 249 97C239 87 205 83 189 83C174 83 159 86 147 94C112 119 102 181 102 235C102 239 104 304 102 304C101 314 95 365 95 369C95 386 99 407 113 411C117 411 121 409 124 407L147 392L206 355C217 349 227 340 239 336Z" glyph-name="Ecaron" horiz-adv-x="675" unicode="&#x11A;"/>
+ <glyph d="M11 108V51H26C30 51 36 51 40 50C49 48 102 20 120 10C125 7 157 -12 163 -12C172 -12 181 -1 185 2L221 27L286 72C320 97 362 128 362 184C362 221 342 260 314 283C298 297 278 305 258 311L355 427C351 431 345 439 339 439C336 439 333 437 331 436C324 431 315 427 302 427C268 427 241 448 222 462C217 465 202 477 195 477C189 477 153 448 141 439C98 405 11 357 11 286C11 283 11 280 12 277C17 249 44 227 63 207C75 194 88 178 88 159C88 153 87 147 84 142C70 113 40 108 11 108ZM252 339L193 269C190 265 175 245 170 245H169C166 245 163 248 160 250C132 271 81 294 81 337C81 364 102 392 133 392C148 392 163 387 176 381C188 375 243 342 252 339ZM105 128C122 151 141 172 160 194L174 211C178 215 182 221 190 221S225 215 226 215C261 205 298 177 299 137C299 128 298 119 293 111C281 93 259 79 230 79C197 79 165 96 143 108C131 115 118 123 105 128Z" glyph-name="Eng" horiz-adv-x="380" unicode="&#x14A;"/>
+ <glyph d="M340 576C334 573 308 559 304 555C298 549 301 538 288 538C282 538 275 543 269 545C279 555 342 616 343 622C343 637 312 646 302 646C284 646 269 636 257 628C233 615 208 602 208 567C208 552 213 544 219 534C227 520 240 506 261 506C281 506 298 519 315 529C327 536 344 548 344 564V565C344 569 342 573 340 576ZM254 562C253 569 252 576 252 582C252 596 258 614 273 614C282 614 291 610 298 606L254 562ZM11 389C18 392 24 395 32 396C47 396 63 386 68 371C70 365 70 358 70 351V130V120C70 108 66 106 58 100C50 95 41 89 34 83C76 53 113 17 157 -11L170 -5L311 94C311 62 322 32 343 8C347 3 361 -11 369 -11C372 -10 375 -8 377 -6L391 8C397 13 446 56 446 60C418 89 405 122 405 173C405 188 406 203 406 218V479C383 470 361 459 338 449L321 442C314 437 310 437 310 426C310 422 311 418 311 415V145C311 141 312 136 312 132C312 119 303 115 294 110L257 84C252 81 245 73 239 73S226 82 221 86L182 116C173 123 164 126 164 142C164 147 165 152 165 156V316V345C165 359 165 373 163 387C158 417 145 447 124 470C122 473 119 477 115 477S92 464 85 460L34 426C24 420 10 416 10 400C10 396 11 392 11 389Z" glyph-name="dcroat" horiz-adv-x="464" unicode="&#x111;"/>
+ </font>
+ </defs>
+ <style type="text/css">text.f1 {font-family:yfrak;font-size:12}
+text.f2 {font-family:yfrak;font-size:14.4}
+text.f3 {font-family:ygoth;font-size:14.4}
+text.f4 {font-family:yinitas;font-size:46.39}
+text.f5 {font-family:yinitas;font-size:55.68}
+text.f6 {font-family:yswab;font-size:14.4}
+</style>
+ <g id="page1" transform="matrix(0.996 0 0 0.996 0 0)">
+ <text class="f3" x="-13.4527" y="63.84">Nonummy<tspan x="36.7806">s</tspan>
+<tspan x="39.8918">id</tspan>
+<tspan x="52.2923">sem&#xBB;r</tspan>
+<tspan x="85.0487">aliena</tspan>
+<tspan x="114.912">auditorum</tspan>
+<tspan x="162.806">lorem</tspan>
+<tspan x="191.794">ipsum</tspan>
+<tspan x="220.666">quod</tspan>
+<tspan x="245.573">omnia</tspan>
+<tspan x="-13.4527" y="77.6107">sunt</tspan>
+<tspan x="9.1006">&#xBB;ccatore&#x2018;:</tspan>
+<tspan x="61.9483">Lorem</tspan>
+<tspan x="98.26">ipsum</tspan>
+<tspan x="128.062">&#x2D8;lor</tspan>
+<tspan x="154.464">s</tspan>
+<tspan x="157.576">it</tspan>
+<tspan x="168.929">amet</tspan>
+<tspan x="194.838">con</tspan>
+<tspan x="214.183">se&#x2DD;etuer</tspan>
+<tspan x="255.733">adi-</tspan>
+<tspan x="-13.4527" y="91.3815">piscing</tspan>
+<tspan x="20.5198">elit:</tspan>
+<tspan x="42.39">Sed</tspan>
+<tspan x="66.8081">diam</tspan>
+<tspan x="92.0111">tem&#x2013;r</tspan>
+<tspan x="124.668">incidunt</tspan>
+<tspan x="161.755">ut</tspan>
+<tspan x="174.527">la&#x2C6;re</tspan>
+<tspan x="204.237">et</tspan>
+<tspan x="216.454">&#x2D8;lor</tspan>
+<tspan x="241.946">magna</tspan>
+<tspan x="-13.4527" y="105.043">aliquam</tspan>
+<tspan x="24.7919">erat</tspan>
+<tspan x="46.6589">volu&#xAB;t</tspan>
+<tspan x="81.7963">ut</tspan>
+<tspan x="94.6849">wis</tspan>
+<tspan x="108.747">i</tspan>
+<tspan x="115.996">enim</tspan>
+<tspan x="140.209">ad</tspan>
+<tspan x="155.298">minim</tspan>
+<tspan x="185.338">&#xFB03;niam</tspan>
+<tspan x="218.338">qui&#x2018;</tspan>
+<tspan x="240.955">no&lt;rud</tspan>
+<tspan x="-13.4527" y="118.705">oblationem</tspan>
+<tspan x="38.0057">cor&#x2013;remque</tspan>
+<tspan x="95.3889">suscipit</tspan>
+<tspan x="130.679">la&#x2C6;ri&#x2018;</tspan>
+</text>
+ <text class="f5" x="-13.4527" y="249.832">D</text>
+ <text class="f2" x="47.1072" y="203.607">ie</text>
+ <text class="f6" x="59.8848" y="203.607">Orgel</text>
+ <text class="f2" x="90.7353" y="203.607">,<tspan x="100.968">der</tspan>
+</text>
+ <text class="f6" x="120.362" y="203.607">Fl&#x111;gel</text>
+ <text class="f2" x="154.298" y="203.607">,<tspan x="164.531">da&#x14A;</tspan>
+</text>
+ <text class="f6" x="185.621" y="203.607">Fortepiano</text>
+ <text class="f2" x="250.822" y="203.607">und<tspan x="272.965">da&#x14A;</tspan>
+</text>
+ <text class="f6" x="294.055" y="203.607">Clavicord</text>
+ <text class="f2" x="351.006" y="203.607">s<tspan x="353.811">ind</tspan>
+<tspan x="372.817">die</tspan>
+<tspan x="47.1072" y="219.015">gebr&#x13D;u&#x11A;li&#x11A;&#x106;en</tspan>
+<tspan x="118.515">Clavierin&#x106;rumente</tspan>
+<tspan x="208.036">zum</tspan>
+<tspan x="231.184">Accompagnement.</tspan>
+<tspan x="317.364">E&#x14A;</tspan>
+<tspan x="334.609">i&#x106;</tspan>
+<tspan x="347.607">S&#x11A;ade,</tspan>
+<tspan x="47.1072" y="234.424">da&#xF6BE;</tspan>
+<tspan x="68.1032">die</tspan>
+<tspan x="85.8667">s&#x11A;&#x179;ne</tspan>
+<tspan x="116.201">Erfindung</tspan>
+<tspan x="168.101">de&#x14A;</tspan>
+</text>
+ <text class="f6" x="188.265" y="234.424">Hol<tspan x="207.772">feldis&#x11A;en</tspan>
+<tspan x="260.178">Bogenclavier&#x14A;</tspan>
+</text>
+ <text class="f2" x="342.219" y="234.424">no&#x11A;<tspan x="365.833">ni&#x11A;t</tspan>
+<tspan x="47.1072" y="249.832">gemeinn&#x111;&#x143;ig</tspan>
+<tspan x="110.524">geworden</tspan>
+<tspan x="159.19">i&#x106;;</tspan>
+<tspan x="179.348">man</tspan>
+<tspan x="205.462">kann</tspan>
+<tspan x="232.576">dahero</tspan>
+<tspan x="268.599">de&#x104;en</tspan>
+<tspan x="298.893">besondere</tspan>
+<tspan x="346.073">Vorz&#x111;ge</tspan>
+<tspan x="-13.4527" y="265.24">hierinnen</tspan>
+<tspan x="32.856">no&#x11A;</tspan>
+<tspan x="56.2794">ni&#x11A;t</tspan>
+<tspan x="80.8359">genau</tspan>
+<tspan x="113.147">be&#x106;immen.</tspan>
+<tspan x="167.406">E&#x14A;</tspan>
+<tspan x="185.707">i&#x106;</tspan>
+<tspan x="199.761">gewi&#xF6BE;</tspan>
+<tspan x="230.716">zu</tspan>
+<tspan x="246.614">glauben,</tspan>
+<tspan x="291.512">da&#xF6BE;</tspan>
+<tspan x="312.317">e&#x14A;</tspan>
+<tspan x="327.405">s</tspan>
+<tspan x="330.211">i&#x11A;</tspan>
+<tspan x="346.034">au&#x11A;</tspan>
+<tspan x="370.258">bey</tspan>
+<tspan x="-13.4527" y="280.648">der</tspan>
+<tspan x="5.14924">Begleitung</tspan>
+<tspan x="61.0912">gut</tspan>
+<tspan x="80.7799">au&#x14A;nehmen</tspan>
+<tspan x="135.23">werde.</tspan>
+</text>
+ <text class="f4" x="-13.4527" y="416.504">V</text>
+ <text class="f1" x="38.0278" y="377.984">on<tspan x="51.1086">dem</tspan>
+<tspan x="69.9168">&#x106;attli&#x11A;en</tspan>
+<tspan x="107.825">Orte</tspan>
+<tspan x="130.715">Kir&#x11A;ehrenba&#x11A;</tspan>
+<tspan x="188.762">in</tspan>
+<tspan x="200.158">der</tspan>
+<tspan x="215.948">Fr&#x141;nkis&#x11A;en</tspan>
+<tspan x="38.0278" y="390.824">S&#x11A;weiz</tspan>
+<tspan x="72.1763">f&#xA7;hrt</tspan>
+<tspan x="93.8915">ein</tspan>
+<tspan x="107.662">einsame&#x14A;</tspan>
+<tspan x="142.798">Str&#x141;&#xF6BE;&#x11A;en,</tspan>
+<tspan x="188.405">an</tspan>
+<tspan x="200.573">der</tspan>
+<tspan x="215.209">&#x106;eil</tspan>
+<tspan x="231.53">ab&#x106;&#xA7;r-</tspan>
+<tspan x="38.0278" y="403.664">zenden</tspan>
+<tspan x="65.2089">Breitseite</tspan>
+<tspan x="103.925">der</tspan>
+<tspan x="118.597">Ehrenb&#xA7;rg</tspan>
+<tspan x="162.003">vor&#xA7;ber,</tspan>
+<tspan x="198.289">gen</tspan>
+<tspan x="214.338">Leutenba&#x11A;.</tspan>
+<tspan x="38.0278" y="416.504">In</tspan>
+<tspan x="51.6451">einer</tspan>
+<tspan x="72.4543">halben</tspan>
+<tspan x="98.5613">Stunde</tspan>
+<tspan x="130.329">i&#x106;</tspan>
+<tspan x="140.196">da&#x14A;</tspan>
+<tspan x="155.853">s&#x11A;mu&#x118;e</tspan>
+<tspan x="187.398">Pfarrdorf</tspan>
+<tspan x="226.889">errei&#x11A;t.</tspan>
+<tspan x="-13.4527" y="429.344">S&#xA7;d&#x17D;&#x106;li&#x11A;</tspan>
+<tspan x="29.0311">de&#x14A;selben,</tspan>
+<tspan x="69.6732">kaum</tspan>
+<tspan x="93.4813">eine</tspan>
+<tspan x="111.965">Viertel&#x106;unde</tspan>
+<tspan x="164.256">entfernt,</tspan>
+<tspan x="200.75">tre&#x10E;en</tspan>
+<tspan x="227.692">wir</tspan>
+<tspan x="244.597">auf</tspan>
+<tspan x="-13.4527" y="442.184">dem</tspan>
+<tspan x="5.37513">Wege</tspan>
+<tspan x="31.1845">na&#x11A;</tspan>
+<tspan x="50.6665">Ortspi&#x143;</tspan>
+<tspan x="83.6264">in</tspan>
+<tspan x="95.0418">einem</tspan>
+<tspan x="120.435">Seitent&#x141;l&#x11A;en</tspan>
+<tspan x="174.477">von</tspan>
+<tspan x="192.185">unber&#xA7;hrter</tspan>
+<tspan x="240.955">Na-</tspan>
+<tspan x="-13.4527" y="455.025">turs&#x11A;&#x17D;nheit</tspan>
+<tspan x="32.2841">da&#x14A;</tspan>
+<tspan x="49.5255">uralte,</tspan>
+<tspan x="79.7728">einsame</tspan>
+<tspan x="111.642">Kir&#x11A;lein</tspan>
+<tspan x="148.493">\Sankt</tspan>
+<tspan x="182.666">Mori&#x143;"</tspan>
+<tspan x="217.354">mit</tspan>
+<tspan x="233.692">seinem</tspan>
+<tspan x="-13.4527" y="467.865">&#x106;illen</tspan>
+<tspan x="10.893">Friedhofe.</tspan>
+<tspan x="53.3526">In</tspan>
+<tspan x="68.2047">der</tspan>
+<tspan x="83.6828">N&#x141;he</tspan>
+<tspan x="108.062">de&#x14A;</tspan>
+<tspan x="124.096">Kir&#x11A;lein&#x14A;</tspan>
+<tspan x="165.057">&#x106;eht</tspan>
+<tspan x="184.039">ein</tspan>
+<tspan x="198.651">niedrige&#x14A;,</tspan>
+<tspan x="240.254">&#xA7;ber</tspan>
+<tspan x="-13.4527" y="480.705">eine</tspan>
+<tspan x="3.96369">Quelle</tspan>
+<tspan x="33.9862">erbaute&#x14A;</tspan>
+<tspan x="68.8353">Feldkapell&#x11A;en</tspan>
+<tspan x="123.315">mit</tspan>
+<tspan x="138.577">der</tspan>
+<tspan x="153.332">Statue</tspan>
+<tspan x="183.906">de&#x14A;</tspan>
+<tspan x="199.216">hl.</tspan>
+<tspan x="213.05">Mauritiu&#x14A;,</tspan>
+<tspan x="-13.4527" y="493.545">darge&#x106;ellt</tspan>
+<tspan x="27.0288">al&#x14A;</tspan>
+<tspan x="42.4068">Ritter</tspan>
+<tspan x="69.2852">in</tspan>
+<tspan x="80.3927">voller</tspan>
+<tspan x="105.643">Wehr.</tspan>
+</text>
+ </g>
+</svg>
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/frktest.dvi b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/frktest.dvi
new file mode 100644
index 00000000000..723b08a2964
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/frktest.dvi
Binary files differ
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/normalize.xsl b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/normalize.xsl
new file mode 100644
index 00000000000..5a6ba2f62d6
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/normalize.xsl
@@ -0,0 +1,135 @@
+<?xml version="1.0"?>
+<!-- *********************************************************************
+** Stylesheet to rearrange font-/path-elements in an SVG file. **
+** It's part of the dvisvgm package. **
+** (C) 2009-2010 Martin Gieseking <martin.gieseking@uos.de> **
+** **
+** This program is free software; you can redistribute it and/or **
+** modify it under the terms of the GNU General Public License as **
+** published by the Free Software Foundation; either version 3 of **
+** the License, or (at your option) any later version. **
+** **
+** This program is distributed in the hope that it will be useful, but **
+** WITHOUT ANY WARRANTY; without even the implied warranty of **
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
+** GNU General Public License for more details. **
+** **
+** You should have received a copy of the GNU General Public License **
+** along with this program; if not, see <http://www.gnu.org/licenses/>. **
+** **
+** The code generated by this script is also licensed under the terms **
+** of the GNU general public license version 3 or later. **
+***********************************************************************-->
+<xsl:stylesheet version="1.0"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:exsl="http://exslt.org/common"
+ xmlns:str="http://exslt.org/strings"
+ xmlns:mg="my-namespace"
+ extension-element-prefixes="exsl str"
+ exclude-result-prefixes="svg xlink exsl str mg">
+
+ <xsl:key name="path-by-id" match="/svg:defs/svg:path" use="@id"/>
+
+
+ <xsl:variable name="styles-rtf">
+ <xsl:for-each select="str:tokenize(/*/svg:style[@type='text/css'], '&#10;')">
+ <xsl:sort select="substring-after(., ' ')"/>
+ <mg:style new-id="f{position()}" id="{substring-before(substring-after(., '.'), ' ')}">
+ <xsl:value-of select="substring-after(., ' ')"/>
+ </mg:style>
+ </xsl:for-each>
+ </xsl:variable>
+
+ <xsl:variable name="styles" select="exsl:node-set($styles-rtf)/mg:style"/>
+
+ <xsl:variable name="num-paths" select="count(/*/svg:defs/svg:path)"/>
+
+ <xsl:variable name="defs-rtf">
+ <xsl:for-each select="/*/svg:defs/svg:path">
+ <xsl:sort select="@d"/>
+ <mg:path id="{@id}" new-id="g{position()}"/>
+ </xsl:for-each>
+ <xsl:for-each select="/*/svg:defs/svg:use">
+ <xsl:sort select="concat(key('path-by-id', substring(@xlink:href, 2))/@d, @transform)"/>
+ <mg:use id="{@id}" new-id="g{position()+$num-paths}"/>
+ </xsl:for-each>
+ </xsl:variable>
+
+ <xsl:variable name="defs" select="exsl:node-set($defs-rtf)"/>
+
+
+ <xsl:template match="*|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+
+ <xsl:template match="svg:defs[svg:path]">
+ <xsl:copy>
+ <xsl:apply-templates select="svg:path">
+ <xsl:sort select="@d"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select="svg:use">
+ <xsl:sort select="$defs/mg:use[@id=current()/@id]/@new-id"/>
+ </xsl:apply-templates>
+ </xsl:copy>
+ </xsl:template>
+
+
+ <xsl:template match="svg:defs[svg:font]">
+ <xsl:copy>
+ <xsl:apply-templates>
+ <xsl:sort select="@id"/>
+ </xsl:apply-templates>
+ </xsl:copy>
+ </xsl:template>
+
+
+ <xsl:template match="svg:defs/svg:path">
+ <path id="{$defs/mg:path[@id=current()/@id]/@new-id}" d="{@d}"/>
+ </xsl:template>
+
+
+ <xsl:template match="svg:defs/text()"/>
+
+
+ <xsl:template match="svg:use">
+ <xsl:variable name="href" select="substring(@xlink:href, 2)"/>
+ <xsl:copy>
+ <xsl:apply-templates select="@*"/>
+ <xsl:if test="ancestor::svg:defs">
+ <xsl:attribute name="id">
+ <xsl:value-of select="$defs/mg:use[@id=current()/@id]/@new-id"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:attribute name="xlink:href">
+ <xsl:value-of select="concat('#', $defs/*[@id=$href]/@new-id)"/>
+ </xsl:attribute>
+ </xsl:copy>
+ </xsl:template>
+
+
+ <xsl:template match="svg:style[@type='text/css']">
+ <style type="text/css">
+ <xsl:for-each select="$styles">
+ <xsl:value-of select="concat('text.f', position(), ' ', ., '&#10;')"/>
+ </xsl:for-each>
+ </style>
+ </xsl:template>
+
+
+ <xsl:template match="svg:text">
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <xsl:attribute name="class">
+ <xsl:value-of select="$styles[@id=current()/@class]/@new-id"/>
+ </xsl:attribute>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:template>
+</xsl:stylesheet>
+
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample-nf-cmp.svg b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample-nf-cmp.svg
new file mode 100644
index 00000000000..b448e6caa8a
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample-nf-cmp.svg
@@ -0,0 +1,204 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="574.732pt" version="1.1" viewBox="76.7123 55.9032 275.656 574.732" width="275.656pt">
+ <defs>
+ <path id="g1" d="M0.18 -4.14V-4H0.35C0.71 -4 0.86 -3.92 0.96 -3.67C1 -3.59 1.35 -2.74 1.75 -1.76L2.47 0L2.28 0.45C2.03 1.08 1.88 1.36 1.7 1.54C1.47 1.78 1.25 1.86 0.98 1.82C0.91 1.81 0.81 1.77 0.75 1.74L0.65 1.68L0.78 1.61C0.95 1.53 1.03 1.39 1.01 1.19C0.98 0.83 0.54 0.69 0.28 0.96C0.2 1.04 0.19 1.07 0.19 1.25C0.19 1.49 0.26 1.64 0.44 1.81S0.81 2.06 1.09 2.06C1.31 2.06 1.36 2.05 1.54 1.96C1.78 1.84 2.04 1.58 2.21 1.26C2.28 1.13 2.75 0.03 3.25 -1.18C3.75 -2.41 4.19 -3.47 4.23 -3.54C4.37 -3.79 4.61 -3.95 4.91 -3.99L5.05 -4.01V-4.15V-4.29H4.24H3.43V-4.15C3.43 -4.01 3.43 -4.01 3.56 -3.98C3.74 -3.93 3.85 -3.8 3.87 -3.62C3.88 -3.48 3.84 -3.37 3.36 -2.19C3.08 -1.48 2.83 -0.91 2.82 -0.92C2.79 -0.95 1.72 -3.58 1.69 -3.68C1.68 -3.72 1.69 -3.78 1.7 -3.82C1.72 -3.9 1.93 -4 2.1 -4H2.22V-4.14V-4.29H1.2H0.18Z"/>
+ <path id="g2" d="M0.33 -6.65V-6.51L0.71 -6.49C1.13 -6.47 1.24 -6.44 1.31 -6.31C1.37 -6.19 1.37 -0.61 1.31 -0.48C1.24 -0.35 1.13 -0.32 0.71 -0.3L0.33 -0.29V-0.15V-0.01H1.92H3.52V-0.15V-0.29L3.04 -0.3C2.51 -0.32 2.36 -0.36 2.29 -0.51C2.26 -0.56 2.25 -0.91 2.25 -1.92V-3.25L2.91 -3.24C3.65 -3.22 3.74 -3.2 3.93 -3.02C4.07 -2.87 4.12 -2.73 4.14 -2.35L4.16 -2.07H4.29H4.42V-3.4V-4.72H4.29H4.16L4.14 -4.44C4.12 -4.07 4.07 -3.92 3.93 -3.77C3.74 -3.59 3.65 -3.57 2.91 -3.56L2.25 -3.54V-4.91C2.25 -5.71 2.27 -6.32 2.28 -6.36C2.33 -6.49 2.45 -6.51 3.52 -6.49C4.55 -6.48 4.72 -6.46 5 -6.31C5.47 -6.08 5.66 -5.69 5.79 -4.69L5.81 -4.54H5.95H6.08L6.07 -4.65C6.06 -4.72 6 -5.17 5.94 -5.67S5.83 -6.63 5.82 -6.69L5.8 -6.8H3.06H0.33Z"/>
+ <path id="g3" d="M0.42 -5V-4.87H0.6C0.88 -4.87 1.04 -4.82 1.1 -4.72C1.16 -4.59 1.16 -0.55 1.1 -0.42C1.04 -0.32 0.88 -0.27 0.6 -0.27H0.42V-0.13V0H2.46H4.51L4.52 -0.14C4.53 -0.22 4.57 -0.59 4.6 -0.97C4.64 -1.35 4.67 -1.73 4.68 -1.81L4.7 -1.95H4.56H4.43L4.41 -1.78C4.34 -1.15 4.2 -0.81 3.93 -0.58C3.79 -0.46 3.5 -0.33 3.28 -0.3C3.17 -0.28 2.84 -0.27 2.55 -0.27C2.02 -0.27 2.01 -0.27 1.94 -0.34L1.86 -0.41V-2.52C1.86 -4.15 1.87 -4.63 1.9 -4.69C1.96 -4.81 2.08 -4.85 2.44 -4.87L2.77 -4.88V-5.01V-5.13H1.59H0.42Z"/>
+ <path id="g4" d="M0.45 -5.01V-4.87H0.63C0.91 -4.87 1.07 -4.82 1.13 -4.72C1.19 -4.59 1.19 -0.55 1.13 -0.42C1.07 -0.32 0.91 -0.27 0.63 -0.27H0.45V-0.14V-0.01H1.53H2.61V-0.14V-0.27H2.43C2.33 -0.27 2.19 -0.28 2.11 -0.3C1.89 -0.36 1.89 -0.36 1.89 -1.42V-2.34H2.7C3.41 -2.34 3.54 -2.35 3.75 -2.4C4.82 -2.68 5.33 -3.62 4.81 -4.38C4.61 -4.68 4.2 -4.95 3.77 -5.07C3.61 -5.12 3.41 -5.13 2.02 -5.14L0.45 -5.15ZM3.32 -4.84C3.56 -4.8 3.74 -4.71 3.89 -4.57C4.09 -4.39 4.14 -4.23 4.14 -3.73C4.14 -3.22 4.09 -3.07 3.89 -2.89C3.62 -2.64 3.39 -2.58 2.5 -2.58H1.86V-3.66V-4.73L1.94 -4.8C2.01 -4.87 2.01 -4.87 2.58 -4.87C2.89 -4.87 3.22 -4.86 3.32 -4.84Z"/>
+ <path id="g5" d="M0.48 -5.01V-4.87H0.66C0.94 -4.87 1.1 -4.82 1.16 -4.72C1.19 -4.65 1.2 -4.34 1.2 -2.71C1.2 -0.56 1.2 -0.59 1 -0.42C0.89 -0.33 0.7 -0.27 0.55 -0.27C0.48 -0.27 0.48 -0.26 0.48 -0.14V-0.01H1.35H2.22V-0.14C2.22 -0.26 2.22 -0.27 2.15 -0.27C2 -0.27 1.81 -0.33 1.7 -0.42C1.5 -0.59 1.5 -0.56 1.51 -2.76L1.52 -4.73L2.45 -2.41C2.96 -1.13 3.39 -0.06 3.42 -0.04C3.47 0 3.57 0.01 3.64 -0.02C3.66 -0.04 4.11 -1.12 4.64 -2.44L5.59 -4.83V-2.67C5.6 -0.83 5.59 -0.49 5.55 -0.42C5.5 -0.32 5.33 -0.27 5.06 -0.27H4.87V-0.14V-0.01H5.91H6.95V-0.14V-0.27H6.77C6.49 -0.27 6.32 -0.32 6.27 -0.42C6.21 -0.55 6.21 -4.59 6.27 -4.72C6.32 -4.82 6.49 -4.87 6.77 -4.87H6.95V-5.01V-5.14H6.23C5.51 -5.14 5.51 -5.14 5.46 -5.08C5.44 -5.04 5.04 -4.05 4.57 -2.89C4.11 -1.72 3.72 -0.76 3.72 -0.76C3.71 -0.75 3.32 -1.72 2.85 -2.91C2.37 -4.1 1.96 -5.09 1.95 -5.11C1.92 -5.13 1.7 -5.14 1.19 -5.14H0.48Z"/>
+ <path id="g6" d="M0.72 -6.38V-5.93H1.17H1.62V-6.38V-6.83H1.17H0.72ZM0.81 -2.22V0H1.18H1.56V-2.22V-4.45H1.18H0.81Z"/>
+ <path id="g7" d="M0.93 -4.36C0.62 -4.33 0.35 -4.3 0.32 -4.3C0.28 -4.3 0.27 -4.27 0.27 -4.15V-4.01L0.52 -3.99C0.82 -3.97 0.93 -3.93 1 -3.79C1.04 -3.69 1.05 -3.55 1.05 -2.11C1.05 -0.3 1.06 -0.38 0.81 -0.33C0.72 -0.31 0.57 -0.3 0.46 -0.3H0.27V-0.15V-0.01H1.47H2.68V-0.15V-0.29L2.32 -0.3C1.93 -0.32 1.81 -0.36 1.75 -0.48C1.69 -0.59 1.7 -2.48 1.76 -2.85C1.89 -3.65 2.25 -4.12 2.79 -4.17C2.96 -4.19 2.96 -4.19 2.89 -4.13C2.85 -4.11 2.8 -4.04 2.78 -3.98C2.7 -3.79 2.74 -3.61 2.9 -3.46C2.97 -3.39 3.01 -3.38 3.17 -3.38S3.37 -3.39 3.44 -3.46C3.67 -3.67 3.66 -3.98 3.41 -4.21C3.24 -4.37 3.13 -4.41 2.86 -4.41C2.63 -4.41 2.58 -4.4 2.4 -4.31C2.14 -4.18 1.93 -3.95 1.77 -3.63L1.65 -3.38V-3.9V-4.42H1.57C1.52 -4.42 1.23 -4.39 0.93 -4.36Z"/>
+ <path id="g8" d="M0.96 -6.89C0.64 -6.86 0.35 -6.83 0.32 -6.83C0.28 -6.83 0.27 -6.8 0.27 -6.68V-6.54L0.52 -6.52C0.82 -6.5 0.93 -6.46 1 -6.32C1.05 -6.22 1.05 -6 1.05 -3.1V0H1.18H1.32L1.43 -0.2C1.49 -0.31 1.57 -0.45 1.6 -0.5L1.66 -0.6L1.78 -0.46C2.21 0.03 2.72 0.2 3.39 0.07C4.04 -0.05 4.62 -0.51 4.93 -1.13C5.08 -1.43 5.14 -1.66 5.16 -2C5.21 -2.68 4.97 -3.33 4.5 -3.8C3.75 -4.56 2.62 -4.62 1.9 -3.96L1.71 -3.78V-5.37V-6.95H1.63C1.58 -6.94 1.28 -6.92 0.96 -6.89ZM3.51 -4.06C3.88 -3.88 4.12 -3.54 4.25 -3.05C4.31 -2.81 4.31 -2.71 4.31 -2.15C4.31 -1.6 4.3 -1.48 4.25 -1.28C4.08 -0.67 3.73 -0.29 3.22 -0.16C2.68 -0.02 2.13 -0.27 1.84 -0.78L1.74 -0.94V-2.17V-3.39L1.83 -3.52C2.21 -4.1 2.95 -4.33 3.51 -4.06Z"/>
+ <path id="g9" d="M0.97 -4.36C0.66 -4.33 0.38 -4.3 0.35 -4.3C0.31 -4.3 0.3 -4.27 0.3 -4.15V-4.01L0.55 -3.99C0.85 -3.97 0.96 -3.93 1.03 -3.79C1.07 -3.69 1.08 -3.55 1.08 -2.11C1.08 -0.3 1.09 -0.38 0.84 -0.33C0.75 -0.31 0.6 -0.3 0.49 -0.3H0.3V-0.15V-0.01H1.43H2.55V-0.15V-0.3H2.36C2.05 -0.3 1.87 -0.35 1.82 -0.45C1.75 -0.57 1.75 -2.71 1.82 -3.02C1.88 -3.3 2.01 -3.57 2.2 -3.77C2.6 -4.22 3.32 -4.31 3.62 -3.96C3.83 -3.72 3.83 -3.71 3.84 -2.04C3.85 -0.31 3.86 -0.38 3.61 -0.33C3.52 -0.31 3.37 -0.3 3.26 -0.3H3.07V-0.15V-0.01H4.2H5.32V-0.15V-0.3H5.13C4.85 -0.3 4.64 -0.35 4.59 -0.43C4.57 -0.48 4.55 -0.88 4.54 -1.98C4.53 -3.41 4.52 -3.48 4.46 -3.64C4.28 -4.13 3.92 -4.38 3.33 -4.41C3 -4.43 2.75 -4.39 2.48 -4.25C2.22 -4.11 1.94 -3.84 1.81 -3.59L1.71 -3.41V-3.92V-4.42H1.63C1.58 -4.42 1.29 -4.39 0.97 -4.36Z"/>
+ <path id="g10" d="M1 -4.36C0.67 -4.33 0.38 -4.3 0.35 -4.3C0.31 -4.3 0.3 -4.27 0.3 -4.15V-4H0.48C0.75 -3.99 0.93 -3.94 1 -3.84C1.06 -3.76 1.06 -3.72 1.08 -2.29C1.1 -0.84 1.1 -0.82 1.16 -0.65C1.31 -0.29 1.55 -0.08 1.93 0.03C2.11 0.09 2.22 0.1 2.54 0.1C2.92 0.1 2.94 0.1 3.13 0C3.38 -0.1 3.6 -0.3 3.76 -0.55L3.88 -0.73V-0.3C3.88 -0.07 3.89 0.12 3.9 0.11C3.91 0.11 4.23 0.09 4.6 0.06C4.97 0.02 5.29 0 5.3 0S5.32 -0.06 5.32 -0.14V-0.29L5.07 -0.3C4.77 -0.32 4.66 -0.37 4.59 -0.51C4.55 -0.6 4.54 -0.76 4.54 -2.52C4.54 -3.56 4.54 -4.42 4.53 -4.42C4.53 -4.42 4.21 -4.39 3.82 -4.36S3.1 -4.3 3.09 -4.3S3.07 -4.24 3.07 -4.15V-4.01L3.32 -3.99C3.62 -3.97 3.73 -3.93 3.8 -3.79C3.84 -3.69 3.85 -3.57 3.85 -2.55C3.85 -1.29 3.83 -1.15 3.66 -0.79C3.53 -0.53 3.33 -0.33 3.1 -0.21C2.95 -0.14 2.9 -0.13 2.61 -0.13S2.28 -0.14 2.12 -0.22C1.92 -0.32 1.85 -0.42 1.8 -0.69C1.78 -0.78 1.77 -1.55 1.77 -2.63V-4.42H1.69C1.64 -4.42 1.34 -4.39 1 -4.36Z"/>
+ <path id="g11" d="M1 -4.36C0.69 -4.33 0.41 -4.3 0.38 -4.3C0.34 -4.3 0.33 -4.27 0.33 -4.15V-4.01L0.58 -3.99C0.88 -3.97 0.99 -3.93 1.06 -3.79C1.1 -3.69 1.11 -3.55 1.11 -2.11C1.11 -0.3 1.12 -0.38 0.87 -0.33C0.78 -0.31 0.63 -0.3 0.52 -0.3H0.33V-0.15V-0.01H1.46H2.58V-0.15V-0.3H2.39C2.08 -0.3 1.9 -0.35 1.85 -0.45C1.78 -0.57 1.78 -2.71 1.85 -3.02C1.91 -3.3 2.04 -3.57 2.23 -3.77C2.63 -4.22 3.35 -4.31 3.65 -3.96C3.86 -3.72 3.86 -3.71 3.87 -2.04C3.88 -0.31 3.89 -0.38 3.64 -0.33C3.55 -0.31 3.4 -0.3 3.29 -0.3H3.1V-0.15V-0.01H4.23H5.36V-0.15V-0.3H5.16C4.85 -0.3 4.67 -0.35 4.62 -0.45C4.55 -0.57 4.55 -2.71 4.62 -3.02C4.68 -3.3 4.81 -3.57 5 -3.77C5.41 -4.22 6.12 -4.31 6.42 -3.96C6.63 -3.72 6.63 -3.71 6.64 -2.04C6.65 -0.31 6.66 -0.38 6.41 -0.33C6.32 -0.31 6.17 -0.3 6.06 -0.3H5.87V-0.15V-0.01H7H8.13V-0.15V-0.3H7.93C7.65 -0.3 7.44 -0.35 7.39 -0.43C7.37 -0.48 7.35 -0.88 7.34 -1.98C7.33 -3.41 7.32 -3.48 7.26 -3.64C7.13 -4 6.91 -4.22 6.57 -4.34C6.35 -4.41 5.93 -4.44 5.68 -4.39C5.28 -4.32 4.84 -3.99 4.64 -3.63C4.56 -3.5 4.54 -3.49 4.53 -3.53C4.38 -3.99 4.18 -4.2 3.8 -4.34C3.58 -4.41 3.16 -4.44 2.91 -4.39C2.5 -4.31 2.05 -3.98 1.84 -3.59L1.74 -3.41V-3.92V-4.42H1.66C1.61 -4.42 1.32 -4.39 1 -4.36Z"/>
+ <path id="g12" d="M1.02 -6.89C0.7 -6.86 0.41 -6.83 0.39 -6.83S0.36 -6.78 0.36 -6.68V-6.54L0.59 -6.52C0.88 -6.5 0.99 -6.46 1.06 -6.32C1.11 -6.22 1.11 -6.02 1.11 -3.37C1.11 -0.15 1.13 -0.38 0.87 -0.33C0.78 -0.31 0.63 -0.3 0.54 -0.3H0.36V-0.15V-0.01H1.44H2.52V-0.15V-0.3H2.35C2.05 -0.3 1.87 -0.35 1.82 -0.45C1.78 -0.52 1.77 -0.97 1.77 -3.74V-6.95H1.69C1.64 -6.94 1.34 -6.92 1.02 -6.89Z"/>
+ <path id="g13" d="M1.04 21.77C1.36 21.75 1.53 21.53 1.53 21.28C1.53 20.95 1.28 20.79 1.05 20.79C0.81 20.79 0.56 20.94 0.56 21.29C0.56 21.8 1.06 22.22 1.67 22.22C3.19 22.22 3.76 19.88 4.47 16.98C5.24 13.82 5.89 10.63 6.43 7.42C6.8 5.29 7.17 3.29 7.51 2C7.63 1.51 7.97 0.22 8.36 0.22C8.67 0.22 8.92 0.41 8.96 0.45C8.63 0.47 8.46 0.69 8.46 0.94C8.46 1.27 8.71 1.43 8.94 1.43C9.18 1.43 9.43 1.28 9.43 0.93C9.43 0.39 8.89 0 8.34 0C7.58 0 7.02 1.09 6.47 3.13C6.44 3.24 5.08 8.26 3.98 14.8C3.72 16.33 3.43 18 3.1 19.39C2.92 20.12 2.46 22 1.65 22C1.29 22 1.05 21.77 1.04 21.77Z"/>
+ <path id="g14" d="M1.15 -1.01C0.81 -0.85 0.73 -0.4 1.01 -0.14C1.21 0.04 1.51 0.05 1.7 -0.12L1.77 -0.19V-0.01C1.77 0.56 1.56 1.12 1.17 1.58C1.07 1.7 0.99 1.81 0.99 1.83C0.99 1.88 1.11 1.96 1.15 1.94C1.26 1.9 1.57 1.47 1.73 1.15C1.92 0.76 1.98 0.53 2 0.13C2.04 -0.55 1.81 -1.01 1.4 -1.04C1.31 -1.05 1.21 -1.03 1.15 -1.01Z"/>
+ <path id="g15" d="M1.15 -4.25C1.02 -4.18 0.96 -4.12 0.9 -3.99C0.77 -3.74 0.87 -3.44 1.15 -3.3C1.57 -3.09 2.05 -3.57 1.84 -3.99C1.7 -4.26 1.39 -4.38 1.15 -4.25ZM1.15 -1C1.02 -0.93 0.96 -0.87 0.9 -0.74C0.77 -0.49 0.87 -0.19 1.15 -0.05C1.57 0.16 2.05 -0.32 1.84 -0.74C1.7 -1.01 1.39 -1.12 1.15 -1Z"/>
+ <path id="g16" d="M1.17 -2.18C1.17 -3.81 1.99 -4.23 2.52 -4.23C2.61 -4.23 3.24 -4.22 3.59 -3.86C3.18 -3.83 3.12 -3.53 3.12 -3.4C3.12 -3.14 3.3 -2.94 3.58 -2.94C3.84 -2.94 4.04 -3.11 4.04 -3.41C4.04 -4.09 3.28 -4.48 2.51 -4.48C1.26 -4.48 0.34 -3.4 0.34 -2.16C0.34 -0.88 1.33 0.11 2.49 0.11C3.83 0.11 4.15 -1.09 4.15 -1.19S4.05 -1.29 4.02 -1.29C3.93 -1.29 3.91 -1.25 3.89 -1.19C3.6 -0.26 2.95 -0.14 2.58 -0.14C2.05 -0.14 1.17 -0.57 1.17 -2.18Z"/>
+ <path id="g17" d="M1.2 -6.9C0.84 -6.88 0.51 -6.86 0.45 -6.86H0.36V-6.62V-6.39L0.62 -6.37C0.93 -6.35 0.98 -6.33 1.02 -6.24C1.04 -6.19 1.05 -4.89 1.05 -3.08V0H1.29H1.52L1.74 -0.24C1.87 -0.38 1.98 -0.5 1.99 -0.52S2.05 -0.51 2.11 -0.46C2.28 -0.3 2.58 -0.12 2.83 -0.03C3.06 0.03 3.11 0.04 3.52 0.04C3.88 0.03 4 0.02 4.24 -0.03C4.92 -0.21 5.41 -0.58 5.69 -1.11C5.88 -1.49 5.94 -1.75 5.94 -2.24S5.9 -2.91 5.7 -3.33C5.43 -3.89 4.96 -4.25 4.25 -4.44C4.09 -4.48 3.94 -4.49 3.59 -4.49C3.18 -4.49 3.12 -4.48 2.89 -4.41C2.6 -4.31 2.45 -4.24 2.26 -4.11L2.13 -4.03V-5.49V-6.95H1.99C1.91 -6.94 1.56 -6.92 1.2 -6.9ZM3.97 -4.04C4.28 -3.9 4.49 -3.63 4.59 -3.24C4.65 -2.99 4.68 -1.94 4.64 -1.55C4.56 -0.93 4.32 -0.56 3.85 -0.38C3.72 -0.33 3.62 -0.31 3.37 -0.31C3.06 -0.31 3.04 -0.31 2.82 -0.42C2.64 -0.51 2.54 -0.59 2.39 -0.75L2.19 -0.97V-2.23V-3.49L2.27 -3.6C2.45 -3.83 2.83 -4.05 3.17 -4.12C3.4 -4.17 3.76 -4.14 3.97 -4.04Z"/>
+ <path id="g18" d="M1.27 -0.77L2.33 -1.8C3.89 -3.18 4.49 -3.72 4.49 -4.72C4.49 -5.86 3.59 -6.66 2.37 -6.66C1.24 -6.66 0.5 -5.74 0.5 -4.85C0.5 -4.29 1 -4.29 1.03 -4.29C1.2 -4.29 1.55 -4.41 1.55 -4.82C1.55 -5.08 1.37 -5.34 1.02 -5.34C0.94 -5.34 0.92 -5.34 0.89 -5.33C1.12 -5.98 1.66 -6.35 2.24 -6.35C3.15 -6.35 3.58 -5.54 3.58 -4.72C3.58 -3.92 3.08 -3.13 2.53 -2.51L0.61 -0.37C0.5 -0.26 0.5 -0.24 0.5 0H4.21L4.49 -1.74H4.24C4.19 -1.44 4.12 -1 4.02 -0.85C3.95 -0.77 3.29 -0.77 3.07 -0.77H1.27Z"/>
+ <path id="g19" d="M1.32 -6.9C0.96 -6.88 0.63 -6.86 0.57 -6.86H0.48V-6.62V-6.39L0.74 -6.37C1.05 -6.35 1.1 -6.33 1.14 -6.24C1.16 -6.19 1.17 -4.99 1.17 -3.32V-0.48H0.82H0.48V-0.24V-0.01H1.71H2.95V-0.24V-0.48H2.6H2.25V-3.71V-6.95H2.11C2.03 -6.94 1.68 -6.92 1.32 -6.9Z"/>
+ <path id="g20" d="M1.42 -5.81C1.33 -4.93 0.9 -4.33 0.32 -4.25C0.18 -4.23 0.18 -4.23 0.18 -4.12V-4H0.6H1.02V-2.51C1.02 -1.64 1.03 -0.96 1.05 -0.87C1.14 -0.37 1.49 -0.01 1.98 0.08C2.57 0.21 3 -0.03 3.22 -0.64C3.27 -0.79 3.29 -0.91 3.3 -1.31L3.31 -1.8H3.18H3.04L3.03 -1.33C3.01 -0.81 2.98 -0.64 2.83 -0.41C2.64 -0.11 2.24 -0.06 1.98 -0.31C1.73 -0.55 1.71 -0.68 1.71 -2.49V-4H2.42H3.13V-4.15V-4.3H2.42H1.71V-5.22V-6.14H1.58H1.45Z"/>
+ <path id="g21" d="M1.48 -4.45C1.11 -4.39 0.76 -4.2 0.59 -3.99C0.54 -3.93 0.47 -3.8 0.42 -3.71C0.31 -3.47 0.31 -3.07 0.41 -2.84C0.51 -2.63 0.66 -2.46 0.87 -2.32C1.12 -2.15 1.32 -2.08 1.9 -1.97C2.45 -1.85 2.65 -1.78 2.84 -1.6C3.06 -1.38 3.13 -1.12 3.07 -0.8C3 -0.47 2.75 -0.24 2.36 -0.16C1.46 0.02 0.9 -0.37 0.65 -1.38C0.58 -1.66 0.57 -1.67 0.49 -1.68C0.44 -1.68 0.38 -1.67 0.36 -1.64C0.33 -1.61 0.33 -1.37 0.33 -0.74L0.34 0.1L0.42 0.11C0.48 0.12 0.53 0.08 0.68 -0.1L0.88 -0.33L0.99 -0.22C1.27 0.02 1.65 0.14 2.13 0.11C2.48 0.08 2.76 0 2.99 -0.14C3.21 -0.28 3.31 -0.39 3.43 -0.63C3.69 -1.14 3.6 -1.74 3.21 -2.15C2.91 -2.47 2.69 -2.57 1.94 -2.72C1.37 -2.84 1.17 -2.92 0.99 -3.09C0.79 -3.29 0.76 -3.57 0.9 -3.85C1.02 -4.09 1.33 -4.24 1.79 -4.26C2.55 -4.31 2.98 -3.95 3.06 -3.19L3.08 -2.99H3.2H3.32V-3.73V-4.47L3.25 -4.48C3.2 -4.48 3.14 -4.45 3.02 -4.33L2.87 -4.18L2.75 -4.26C2.54 -4.4 2.33 -4.46 1.97 -4.47C1.79 -4.47 1.56 -4.47 1.48 -4.45Z"/>
+ <path id="g22" d="M1.51 -4.6C0.96 -4.5 0.58 -4.23 0.41 -3.8C0.36 -3.66 0.34 -3.56 0.34 -3.32C0.34 -3.06 0.35 -3 0.42 -2.85C0.58 -2.52 0.95 -2.2 1.33 -2.08C1.43 -2.04 1.69 -1.98 1.91 -1.94C2.48 -1.82 2.68 -1.71 2.8 -1.46C2.95 -1.13 2.8 -0.78 2.46 -0.62C2.32 -0.56 2.26 -0.55 1.91 -0.55C1.6 -0.56 1.46 -0.57 1.26 -0.62C0.99 -0.7 0.63 -0.85 0.48 -0.96L0.39 -1.02L0.36 -0.86C0.33 -0.7 0.27 -0.35 0.27 -0.34C0.27 -0.31 0.64 -0.14 0.87 -0.06C1.25 0.06 1.5 0.1 1.97 0.1C2.29 0.1 2.43 0.09 2.57 0.04C3.12 -0.11 3.45 -0.46 3.55 -0.98C3.64 -1.45 3.5 -1.88 3.15 -2.22C2.87 -2.48 2.63 -2.59 2.01 -2.72C1.73 -2.77 1.46 -2.85 1.39 -2.88C0.95 -3.1 0.94 -3.7 1.37 -3.91C1.5 -3.98 1.55 -3.98 1.97 -3.98C2.47 -3.98 2.7 -3.94 3.09 -3.76C3.23 -3.7 3.29 -3.68 3.31 -3.7C3.32 -3.72 3.35 -3.84 3.37 -3.97C3.39 -4.09 3.41 -4.22 3.42 -4.26C3.43 -4.31 3.4 -4.33 3.23 -4.4C2.87 -4.55 2.57 -4.6 2.1 -4.62C1.86 -4.62 1.6 -4.62 1.51 -4.6Z"/>
+ <path id="g23" d="M1.53 -2.09L1.92 -6.65C1.92 -6.98 1.65 -7.16 1.39 -7.16S0.86 -6.98 0.86 -6.65L1.25 -2.1C1.26 -1.95 1.27 -1.87 1.39 -1.87C1.49 -1.87 1.52 -1.92 1.53 -2.09ZM1.92 -0.53C1.92 -0.82 1.68 -1.06 1.39 -1.06S0.86 -0.82 0.86 -0.53S1.1 0 1.39 0S1.92 -0.24 1.92 -0.53Z"/>
+ <path id="g24" d="M1.58 -4.37C1.33 -4.25 1.15 -3.99 1 -3.55C0.85 -3.13 0.79 -2.86 0.84 -2.81C0.88 -2.76 1.03 -2.75 1.07 -2.8C1.09 -2.82 1.13 -2.95 1.17 -3.08C1.36 -3.82 1.54 -4.14 1.79 -4.17C2.02 -4.2 2.12 -4 2.07 -3.58C2.05 -3.46 1.86 -2.63 1.63 -1.74C1.41 -0.84 1.24 -0.08 1.25 -0.05C1.27 0.02 1.41 0.12 1.51 0.12C1.64 0.12 1.8 0.01 1.85 -0.1C1.87 -0.15 2.04 -0.8 2.22 -1.54C2.59 -3 2.62 -3.09 2.97 -3.54C3.28 -3.95 3.65 -4.16 4.07 -4.16C4.3 -4.17 4.31 -4.16 4.41 -4.06C4.53 -3.92 4.59 -3.68 4.56 -3.37C4.55 -3.25 4.37 -2.47 4.16 -1.64C3.96 -0.82 3.79 -0.12 3.79 -0.1C3.79 -0.01 3.96 0.12 4.07 0.12C4.2 0.12 4.36 0.01 4.41 -0.1C4.43 -0.16 4.6 -0.8 4.78 -1.53C4.99 -2.35 5.14 -2.92 5.19 -3.01C5.44 -3.5 5.78 -3.89 6.09 -4.04C6.3 -4.14 6.59 -4.2 6.74 -4.17C6.99 -4.12 7.12 -3.84 7.09 -3.41C7.07 -3.09 6.88 -2.36 6.63 -1.67C6.3 -0.73 6.29 -0.55 6.48 -0.23C6.65 0.04 7.02 0.18 7.33 0.09C7.74 -0.03 8.13 -0.54 8.34 -1.22C8.41 -1.47 8.39 -1.53 8.25 -1.53C8.14 -1.53 8.1 -1.49 8.03 -1.23C7.85 -0.57 7.49 -0.12 7.14 -0.12C6.98 -0.12 6.92 -0.2 6.92 -0.41C6.92 -0.61 6.98 -0.82 7.27 -1.64C7.38 -1.95 7.52 -2.39 7.58 -2.61C7.67 -2.97 7.69 -3.06 7.69 -3.37C7.69 -3.67 7.68 -3.74 7.62 -3.87C7.53 -4.06 7.34 -4.25 7.14 -4.34C6.93 -4.44 6.44 -4.43 6.16 -4.34C5.84 -4.23 5.53 -3.98 5.26 -3.64L5.18 -3.54L5.16 -3.63C5.11 -3.85 5.03 -3.99 4.89 -4.14C4.39 -4.64 3.39 -4.46 2.81 -3.76L2.68 -3.61L2.66 -3.71C2.61 -3.98 2.43 -4.22 2.21 -4.34C2.03 -4.43 1.73 -4.44 1.58 -4.37Z"/>
+ <path id="g25" d="M1.58 -4.37C1.33 -4.25 1.15 -3.99 1 -3.55C0.85 -3.13 0.79 -2.86 0.84 -2.81C0.88 -2.76 1.03 -2.75 1.07 -2.8C1.09 -2.82 1.13 -2.95 1.17 -3.08C1.36 -3.82 1.54 -4.14 1.79 -4.17C2.02 -4.2 2.13 -3.98 2.07 -3.59C2.03 -3.33 0.85 1.4 0.79 1.5C0.74 1.6 0.6 1.65 0.35 1.65C0.19 1.65 0.17 1.66 0.14 1.72C0.12 1.76 0.12 1.83 0.13 1.87L0.14 1.94H1.15H2.16L2.2 1.85C2.26 1.7 2.21 1.67 1.86 1.65C1.64 1.63 1.54 1.62 1.51 1.58C1.46 1.53 1.47 1.46 1.68 0.63C1.8 0.14 1.91 -0.3 1.93 -0.35L1.96 -0.45L2.02 -0.35C2.11 -0.2 2.28 -0.03 2.42 0.04C2.6 0.13 3.01 0.13 3.27 0.02C4 -0.27 4.61 -0.97 4.9 -1.85C5.28 -2.97 5.05 -3.96 4.33 -4.31C4.16 -4.4 4.11 -4.41 3.88 -4.41C3.64 -4.41 3.6 -4.4 3.38 -4.29C3.22 -4.21 3.08 -4.1 2.91 -3.95C2.78 -3.82 2.67 -3.73 2.67 -3.73C2.66 -3.74 2.64 -3.8 2.61 -3.87C2.56 -4.04 2.37 -4.25 2.21 -4.34C2.03 -4.43 1.73 -4.44 1.58 -4.37ZM4.04 -4.14C4.18 -4.08 4.28 -3.93 4.35 -3.72C4.39 -3.57 4.4 -3.46 4.38 -3.17C4.36 -2.57 4.02 -1.34 3.76 -0.88C3.52 -0.48 3.17 -0.17 2.9 -0.13C2.51 -0.07 2.21 -0.37 2.12 -0.93C2.1 -1.01 2.17 -1.32 2.37 -2.13C2.63 -3.15 2.65 -3.23 2.77 -3.4C3.16 -3.98 3.69 -4.29 4.04 -4.14Z"/>
+ <path id="g26" d="M1.67 -4.36C1.32 -4.33 1.04 -4.3 1.03 -4.29C1.02 -4.29 1.01 -4.22 1 -4.15L0.98 -4.01L1.22 -3.99C1.36 -3.98 1.5 -3.96 1.55 -3.94C1.72 -3.86 1.72 -3.85 1.43 -2.14C1.29 -1.27 1.15 -0.52 1.13 -0.48C1.08 -0.36 0.95 -0.32 0.64 -0.3C0.48 -0.29 0.36 -0.28 0.36 -0.27C0.35 -0.26 0.34 -0.2 0.33 -0.13L0.31 -0.01H1.43H2.55L2.57 -0.12C2.58 -0.17 2.58 -0.24 2.58 -0.25C2.58 -0.27 2.48 -0.29 2.31 -0.3C2.15 -0.31 2.01 -0.33 1.98 -0.34C1.85 -0.39 1.85 -0.47 2.05 -1.67C2.16 -2.3 2.28 -2.89 2.31 -2.99C2.52 -3.58 3.05 -4.06 3.61 -4.16C4.14 -4.25 4.39 -4.05 4.39 -3.52C4.39 -3.25 3.97 -0.62 3.9 -0.48C3.85 -0.36 3.72 -0.32 3.41 -0.3C3.25 -0.29 3.13 -0.28 3.13 -0.27C3.12 -0.26 3.11 -0.2 3.1 -0.13L3.08 -0.01H4.2H5.32L5.34 -0.12C5.35 -0.17 5.35 -0.24 5.35 -0.25C5.35 -0.27 5.25 -0.29 5.08 -0.3C4.92 -0.31 4.78 -0.33 4.75 -0.34C4.62 -0.39 4.62 -0.45 4.86 -1.87C5.05 -2.99 5.09 -3.27 5.08 -3.47C5.05 -4.07 4.7 -4.38 4.03 -4.41C3.68 -4.43 3.42 -4.38 3.12 -4.22C2.88 -4.09 2.52 -3.77 2.37 -3.55C2.3 -3.45 2.28 -3.43 2.3 -3.49C2.33 -3.64 2.43 -4.29 2.43 -4.36S2.51 -4.43 1.67 -4.36Z"/>
+ <path id="g27" d="M1.71 -5.26C1.46 -5.21 1.15 -5.04 0.94 -4.84C0.35 -4.24 0.36 -3.37 0.98 -2.8C1.24 -2.55 1.44 -2.46 2.2 -2.29C2.56 -2.2 2.91 -2.11 2.98 -2.07C3.15 -1.98 3.32 -1.81 3.42 -1.6C3.49 -1.45 3.5 -1.39 3.5 -1.15C3.5 -0.92 3.49 -0.86 3.42 -0.71C3.18 -0.23 2.72 -0.04 2.07 -0.15C1.27 -0.3 0.86 -0.72 0.78 -1.46C0.76 -1.66 0.76 -1.67 0.67 -1.68C0.62 -1.68 0.56 -1.67 0.54 -1.64S0.51 -1.36 0.51 -0.73L0.52 0.13H0.6C0.65 0.13 0.71 0.08 0.82 -0.06C0.9 -0.16 0.97 -0.27 0.99 -0.29C1.01 -0.33 1.04 -0.31 1.16 -0.23C1.46 -0.01 1.83 0.11 2.29 0.14C2.82 0.17 3.2 0.04 3.55 -0.3C4.19 -0.93 4.18 -1.94 3.53 -2.55C3.25 -2.81 3.06 -2.89 2.3 -3.07C1.86 -3.17 1.59 -3.24 1.51 -3.29C1.11 -3.53 0.93 -3.96 1.07 -4.38C1.11 -4.52 1.16 -4.6 1.3 -4.74C1.46 -4.9 1.52 -4.94 1.69 -4.99C2.18 -5.14 2.72 -5.01 3.07 -4.66C3.29 -4.44 3.43 -4.15 3.51 -3.76L3.57 -3.47H3.69H3.8V-4.38V-5.28H3.73C3.67 -5.28 3.62 -5.23 3.51 -5.08C3.43 -4.98 3.35 -4.87 3.34 -4.85C3.32 -4.81 3.28 -4.83 3.16 -4.93C2.78 -5.23 2.22 -5.36 1.71 -5.26Z"/>
+ <path id="g28" d="M1.73 -4.43C1.13 -4.3 0.73 -3.94 0.7 -3.47C0.68 -3.32 0.69 -3.28 0.75 -3.19C0.87 -3.02 0.97 -2.96 1.15 -2.96C1.71 -2.96 1.8 -3.73 1.26 -3.87L1.16 -3.9L1.27 -3.98C1.54 -4.19 2.16 -4.3 2.47 -4.2C2.79 -4.09 3.03 -3.85 3.16 -3.52C3.21 -3.39 3.23 -3.27 3.24 -2.99L3.25 -2.62L3.02 -2.6C2.3 -2.55 1.8 -2.43 1.37 -2.23C0.91 -2.01 0.59 -1.68 0.47 -1.28C0.29 -0.68 0.59 -0.2 1.3 0.01C1.6 0.11 2.04 0.14 2.29 0.09C2.66 0.01 3.11 -0.31 3.27 -0.61L3.33 -0.73L3.36 -0.58C3.42 -0.37 3.5 -0.22 3.64 -0.1C4.01 0.2 4.54 0.06 4.8 -0.39C4.88 -0.55 4.89 -0.57 4.9 -1L4.91 -1.44H4.77H4.63V-1.06C4.63 -0.85 4.62 -0.62 4.6 -0.55C4.51 -0.22 4.17 -0.16 4.01 -0.46C3.96 -0.54 3.95 -0.69 3.94 -1.94L3.92 -3.32L3.81 -3.55C3.48 -4.25 2.61 -4.62 1.73 -4.43ZM3.24 -1.7C3.23 -0.88 3.2 -0.79 2.89 -0.47C2.63 -0.21 2.44 -0.13 2.07 -0.13C1.85 -0.13 1.79 -0.15 1.66 -0.21C0.94 -0.59 1.1 -1.66 1.95 -2.09C2.25 -2.24 2.77 -2.36 3.11 -2.37H3.25Z"/>
+ <path id="g29" d="M1.743 -0.742C1.673 -0.504 1.442 -0.126 1.085 -0.126C1.064 -0.126 0.854 -0.126 0.707 -0.224C0.994 -0.315 1.015 -0.567 1.015 -0.609C1.015 -0.763 0.896 -0.868 0.735 -0.868C0.539 -0.868 0.336 -0.7 0.336 -0.441C0.336 -0.091 0.728 0.07 1.071 0.07C1.393 0.07 1.68 -0.133 1.855 -0.427C2.023 -0.056 2.408 0.07 2.688 0.07C3.493 0.07 3.92 -0.805 3.92 -1.001C3.92 -1.092 3.829 -1.092 3.808 -1.092C3.71 -1.092 3.703 -1.057 3.675 -0.973C3.528 -0.49 3.108 -0.126 2.716 -0.126C2.436 -0.126 2.289 -0.315 2.289 -0.581C2.289 -0.763 2.457 -1.4 2.653 -2.177C2.793 -2.716 3.108 -2.891 3.339 -2.891C3.353 -2.891 3.57 -2.891 3.717 -2.793C3.493 -2.73 3.409 -2.534 3.409 -2.408C3.409 -2.254 3.528 -2.149 3.689 -2.149S4.081 -2.282 4.081 -2.576C4.081 -2.968 3.633 -3.087 3.353 -3.087C3.003 -3.087 2.723 -2.856 2.569 -2.59C2.443 -2.877 2.121 -3.087 1.729 -3.087C0.945 -3.087 0.497 -2.226 0.497 -2.016C0.497 -1.925 0.595 -1.925 0.616 -1.925C0.707 -1.925 0.714 -1.953 0.749 -2.044C0.924 -2.59 1.365 -2.891 1.708 -2.891C1.939 -2.891 2.128 -2.765 2.128 -2.429C2.128 -2.289 2.044 -1.939 1.981 -1.701L1.743 -0.742Z"/>
+ <path id="g30" d="M1.94 -4.61C1.76 -4.59 1.42 -4.5 1.25 -4.43C1.01 -4.33 0.75 -4.18 0.75 -4.14C0.75 -4.05 0.81 -3.54 0.82 -3.53S0.88 -3.55 0.95 -3.59C1.34 -3.86 1.77 -4 2.24 -4.01C2.59 -4.01 2.71 -3.97 2.91 -3.74C3.11 -3.52 3.16 -3.33 3.18 -2.87L3.19 -2.47L2.85 -2.45C1.84 -2.39 1.07 -2.13 0.71 -1.74C0.49 -1.51 0.43 -1.33 0.46 -1.03C0.5 -0.5 0.82 -0.04 1.24 0.07C1.67 0.2 2.55 0.04 3.05 -0.25L3.22 -0.35V-0.17V0H3.59H3.97V-1.57C3.97 -3.3 3.96 -3.34 3.78 -3.73C3.66 -3.98 3.31 -4.35 3.07 -4.46C2.75 -4.61 2.36 -4.66 1.94 -4.61ZM3.19 -1.52C3.19 -1.2 3.17 -1.1 3.13 -1C2.93 -0.56 2.05 -0.36 1.51 -0.64C1.37 -0.71 1.21 -0.91 1.18 -1.03C1.13 -1.29 1.25 -1.48 1.53 -1.62C1.86 -1.79 2.46 -1.91 2.94 -1.92H3.19Z"/>
+ <path id="g31" d="M1.96 -4.59C1.37 -4.45 0.8 -3.94 0.54 -3.31C0.38 -2.93 0.34 -2.73 0.34 -2.27C0.34 -1.76 0.39 -1.56 0.6 -1.11C0.73 -0.84 0.79 -0.76 1.03 -0.52C1.33 -0.22 1.56 -0.07 1.91 0.02C2.5 0.21 3.29 0.09 3.88 -0.26L4.08 -0.38L4.07 -0.53C4.07 -0.61 4.06 -0.76 4.05 -0.86L4.03 -1.04L3.81 -0.91C3.28 -0.56 2.59 -0.42 2.14 -0.56C1.88 -0.64 1.72 -0.75 1.51 -0.97C1.25 -1.25 1.1 -1.59 1.03 -2.05L1.02 -2.19H2.57H4.12V-2.35C4.12 -2.77 3.99 -3.39 3.85 -3.68C3.55 -4.27 3.05 -4.6 2.42 -4.62C2.26 -4.63 2.07 -4.61 1.96 -4.59ZM2.84 -3.88C3.06 -3.77 3.24 -3.59 3.36 -3.35C3.44 -3.2 3.55 -2.86 3.55 -2.78C3.55 -2.77 2.99 -2.77 2.31 -2.77H1.07L1.1 -2.83C1.27 -3.41 1.62 -3.82 2.05 -3.96C2.26 -4.03 2.61 -3.99 2.84 -3.88Z"/>
+ <path id="g32" d="M12.66 14L13.87 10.8H13.62C13.23 11.84 12.17 12.52 11.02 12.82C10.81 12.87 9.83 13.13 7.91 13.13H1.88L6.97 7.16C7.04 7.08 7.06 7.05 7.06 7C7.06 6.98 7.06 6.95 6.99 6.85L2.33 0.48H7.81C9.15 0.48 10.06 0.62 10.15 0.64C10.69 0.72 11.56 0.89 12.35 1.39C12.6 1.55 13.28 2 13.62 2.81H13.87L12.66 0H0.84C0.61 0 0.6 0.01 0.57 0.07C0.56 0.1 0.56 0.29 0.56 0.4L5.85 7.64L0.67 13.71C0.57 13.83 0.57 13.88 0.57 13.89C0.57 14 0.66 14 0.84 14H12.66Z"/>
+ <path id="g33" d="M2.04 -4.46C1.88 -4.43 1.57 -4.32 1.39 -4.22C1 -4.01 0.6 -3.54 0.43 -3.08C-0.13 -1.57 0.84 0.02 2.37 0.11C3.13 0.15 3.83 -0.29 4.09 -0.98C4.17 -1.2 4.15 -1.29 4.02 -1.29C3.92 -1.29 3.91 -1.28 3.84 -1.08C3.66 -0.62 3.32 -0.31 2.87 -0.19C2.28 -0.03 1.64 -0.35 1.35 -0.94C1.2 -1.24 1.14 -1.5 1.12 -1.96L1.1 -2.31H2.61C4.29 -2.31 4.15 -2.29 4.15 -2.54C4.15 -2.97 4.02 -3.44 3.8 -3.77C3.63 -4.02 3.47 -4.16 3.2 -4.29C2.87 -4.45 2.39 -4.52 2.04 -4.46ZM2.76 -4.14C3.17 -3.93 3.4 -3.47 3.45 -2.82L3.47 -2.55H2.29H1.11L1.12 -2.62C1.13 -2.66 1.14 -2.77 1.16 -2.87C1.22 -3.42 1.51 -3.92 1.89 -4.12C2.16 -4.26 2.5 -4.27 2.76 -4.14Z"/>
+ <path id="g34" d="M2.05 -4.44C0.97 -4.19 0.21 -3.16 0.28 -2.01C0.3 -1.64 0.35 -1.43 0.53 -1.09C1.11 0.08 2.6 0.47 3.7 -0.25C4.12 -0.53 4.49 -1.05 4.62 -1.55C4.7 -1.84 4.71 -2.26 4.65 -2.57C4.44 -3.66 3.59 -4.44 2.55 -4.47C2.35 -4.48 2.17 -4.47 2.05 -4.44ZM2.95 -4.15C3.43 -3.96 3.74 -3.52 3.82 -2.89C3.86 -2.56 3.86 -1.8 3.81 -1.49C3.71 -0.87 3.48 -0.5 3.05 -0.28C2.48 0 1.77 -0.18 1.42 -0.71C1.18 -1.08 1.09 -1.56 1.12 -2.42C1.14 -3.01 1.17 -3.2 1.33 -3.52C1.49 -3.85 1.82 -4.12 2.18 -4.21C2.37 -4.26 2.76 -4.23 2.95 -4.15Z"/>
+ <path id="g35" d="M2.06 -4H3C3.2 -4 3.3 -4 3.3 -4.2C3.3 -4.31 3.2 -4.31 3.02 -4.31H2.14C2.5 -5.73 2.55 -5.93 2.55 -5.99C2.55 -6.16 2.43 -6.26 2.26 -6.26C2.23 -6.26 1.95 -6.25 1.86 -5.9L1.47 -4.31H0.53C0.33 -4.31 0.23 -4.31 0.23 -4.12C0.23 -4 0.31 -4 0.51 -4H1.39C0.67 -1.16 0.63 -0.99 0.63 -0.81C0.63 -0.27 1.01 0.11 1.55 0.11C2.57 0.11 3.14 -1.35 3.14 -1.43C3.14 -1.53 3.06 -1.53 3.02 -1.53C2.93 -1.53 2.92 -1.5 2.87 -1.39C2.44 -0.35 1.91 -0.11 1.57 -0.11C1.36 -0.11 1.26 -0.24 1.26 -0.57C1.26 -0.81 1.28 -0.88 1.32 -1.05L2.06 -4Z"/>
+ <path id="g36" d="M2.08 -1.94C2.3 -1.9 3.12 -1.74 3.12 -1.02C3.12 -0.51 2.77 -0.11 1.99 -0.11C1.15 -0.11 0.79 -0.68 0.6 -1.53C0.57 -1.66 0.56 -1.7 0.46 -1.7C0.33 -1.7 0.33 -1.63 0.33 -1.45V-0.13C0.33 0.04 0.33 0.11 0.44 0.11C0.49 0.11 0.5 0.1 0.69 -0.09C0.71 -0.11 0.71 -0.13 0.89 -0.32C1.33 0.1 1.78 0.11 1.99 0.11C3.14 0.11 3.6 -0.56 3.6 -1.28C3.6 -1.81 3.3 -2.11 3.18 -2.23C2.85 -2.55 2.46 -2.63 2.04 -2.71C1.48 -2.82 0.81 -2.95 0.81 -3.53C0.81 -3.88 1.07 -4.29 1.93 -4.29C3.03 -4.29 3.08 -3.39 3.1 -3.08C3.11 -2.99 3.2 -2.99 3.22 -2.99C3.35 -2.99 3.35 -3.04 3.35 -3.23V-4.24C3.35 -4.41 3.35 -4.48 3.24 -4.48C3.19 -4.48 3.17 -4.48 3.04 -4.36C3.01 -4.32 2.91 -4.23 2.87 -4.2C2.49 -4.48 2.08 -4.48 1.93 -4.48C0.71 -4.48 0.33 -3.81 0.33 -3.25C0.33 -2.9 0.49 -2.62 0.76 -2.4C1.08 -2.14 1.36 -2.08 2.08 -1.94Z"/>
+ <path id="g37" d="M2.12 -6.89C1.78 -6.86 1.49 -6.83 1.48 -6.82C1.48 -6.82 1.47 -6.75 1.46 -6.68L1.43 -6.54L1.68 -6.52C1.96 -6.5 2.08 -6.45 2.12 -6.34C2.16 -6.21 1.22 -0.53 1.13 -0.43C1.07 -0.35 0.86 -0.3 0.58 -0.3C0.4 -0.3 0.39 -0.3 0.38 -0.2C0.33 0 0.24 -0.01 1.46 -0.01C2.45 -0.01 2.55 -0.01 2.55 -0.06C2.55 -0.09 2.56 -0.15 2.57 -0.2L2.59 -0.29L2.31 -0.3C2.15 -0.31 2.01 -0.33 1.98 -0.34C1.84 -0.39 1.84 -0.35 2.39 -3.67C2.68 -5.41 2.92 -6.86 2.92 -6.89C2.92 -6.96 2.97 -6.96 2.12 -6.89Z"/>
+ <path id="g38" d="M2.19 -6.89C1.87 -6.85 1.59 -6.81 1.57 -6.79C1.54 -6.77 1.53 -6.72 1.54 -6.65L1.55 -6.54L1.83 -6.53C2.17 -6.5 2.25 -6.47 2.25 -6.36C2.25 -6.32 1.91 -4.91 1.49 -3.22C1.06 -1.53 0.72 -0.12 0.72 -0.1C0.72 -0.01 0.89 0.12 0.99 0.12C1.13 0.12 1.28 0.02 1.34 -0.09C1.36 -0.15 1.53 -0.79 1.71 -1.53C1.92 -2.34 2.07 -2.92 2.12 -3.02C2.36 -3.5 2.71 -3.89 3.02 -4.04C3.23 -4.14 3.52 -4.2 3.67 -4.17C3.92 -4.12 4.05 -3.84 4.02 -3.41C4 -3.09 3.81 -2.36 3.56 -1.67C3.45 -1.35 3.34 -1.01 3.32 -0.91C3.12 -0.1 3.93 0.42 4.58 -0.08C4.86 -0.3 5.12 -0.73 5.27 -1.22C5.34 -1.47 5.32 -1.53 5.17 -1.53C5.06 -1.53 5.03 -1.49 4.96 -1.23C4.78 -0.57 4.42 -0.12 4.07 -0.12C3.91 -0.12 3.85 -0.2 3.85 -0.41C3.85 -0.61 3.91 -0.82 4.19 -1.64C4.3 -1.95 4.44 -2.39 4.51 -2.61C4.6 -2.97 4.62 -3.06 4.62 -3.37C4.62 -3.67 4.61 -3.74 4.55 -3.87C4.46 -4.06 4.26 -4.25 4.07 -4.34C3.86 -4.44 3.37 -4.43 3.09 -4.34C2.87 -4.26 2.61 -4.09 2.41 -3.9C2.34 -3.83 2.28 -3.79 2.28 -3.8S2.45 -4.5 2.66 -5.34C3.07 -6.99 3.07 -6.95 2.87 -6.95C2.82 -6.95 2.52 -6.92 2.19 -6.89Z"/>
+ <path id="g39" d="M2.191 -4.648C2.198 -4.662 2.219 -4.753 2.219 -4.76C2.219 -4.795 2.191 -4.858 2.107 -4.858C1.967 -4.858 1.386 -4.802 1.211 -4.788C1.155 -4.781 1.057 -4.774 1.057 -4.627C1.057 -4.529 1.155 -4.529 1.239 -4.529C1.575 -4.529 1.575 -4.48 1.575 -4.424C1.575 -4.375 1.561 -4.333 1.547 -4.27L0.56 -0.308C0.525 -0.182 0.525 -0.168 0.525 -0.154C0.525 -0.049 0.609 0.07 0.763 0.07C0.952 0.07 1.043 -0.07 1.085 -0.224C1.099 -0.252 1.4 -1.484 1.428 -1.582C1.925 -1.533 2.324 -1.372 2.324 -1.008C2.324 -0.973 2.324 -0.938 2.31 -0.868C2.282 -0.763 2.282 -0.728 2.282 -0.651C2.282 -0.154 2.688 0.07 3.024 0.07C3.703 0.07 3.913 -0.994 3.913 -1.001C3.913 -1.092 3.822 -1.092 3.801 -1.092C3.703 -1.092 3.696 -1.057 3.661 -0.924C3.577 -0.623 3.388 -0.126 3.045 -0.126C2.856 -0.126 2.8 -0.301 2.8 -0.49C2.8 -0.609 2.8 -0.623 2.842 -0.805C2.849 -0.826 2.877 -0.945 2.877 -1.022C2.877 -1.645 2.037 -1.743 1.743 -1.764C1.946 -1.89 2.205 -2.121 2.324 -2.226C2.681 -2.562 3.031 -2.891 3.423 -2.891C3.507 -2.891 3.598 -2.87 3.654 -2.8C3.353 -2.751 3.29 -2.513 3.29 -2.408C3.29 -2.254 3.409 -2.149 3.57 -2.149C3.759 -2.149 3.969 -2.303 3.969 -2.597C3.969 -2.828 3.801 -3.087 3.43 -3.087C3.031 -3.087 2.667 -2.8 2.31 -2.471C2.016 -2.191 1.785 -1.974 1.498 -1.855L2.191 -4.648Z"/>
+ <path id="g40" d="M2.23 -7.29C1.81 -7.18 1.42 -6.84 1.2 -6.41C1.02 -6.04 0.99 -5.84 0.99 -5.09V-4.45H0.61H0.24V-4.15V-3.85H0.61H0.99V-1.92V0H1.37H1.74V-1.92V-3.85H2.28H2.83V-4.15V-4.45H2.27H1.71L1.72 -5.29C1.73 -6.04 1.73 -6.13 1.78 -6.24C1.98 -6.64 2.48 -6.8 3.05 -6.65C3.18 -6.62 3.32 -6.58 3.36 -6.57C3.43 -6.55 3.43 -6.55 3.43 -6.89V-7.22L3.3 -7.25C2.94 -7.35 2.5 -7.37 2.23 -7.29Z"/>
+ <path id="g41" d="M2.27 -4.46C1.44 -4.35 0.87 -3.78 0.87 -3.09C0.87 -2.9 0.88 -2.84 0.96 -2.68C1.15 -2.31 1.47 -2.13 2.24 -1.96C2.91 -1.82 3.06 -1.74 3.2 -1.46C3.29 -1.27 3.3 -1.12 3.22 -0.86C3.07 -0.4 2.61 -0.12 1.98 -0.12C1.3 -0.11 0.95 -0.52 0.88 -1.36C0.87 -1.5 0.85 -1.62 0.83 -1.64C0.8 -1.69 0.64 -1.69 0.62 -1.66C0.58 -1.6 0.32 0.03 0.34 0.07C0.38 0.17 0.49 0.12 0.72 -0.1L0.94 -0.32L1.1 -0.18C1.35 0.05 1.52 0.1 2.01 0.1C2.37 0.1 2.45 0.08 2.66 0.02C3.26 -0.17 3.65 -0.6 3.78 -1.21C3.86 -1.6 3.77 -1.93 3.5 -2.22C3.26 -2.48 3.03 -2.59 2.4 -2.72C1.86 -2.83 1.65 -2.91 1.52 -3.06C1.37 -3.25 1.35 -3.45 1.47 -3.71C1.62 -4.05 2.07 -4.27 2.63 -4.27C3.01 -4.27 3.3 -4.15 3.45 -3.93C3.55 -3.78 3.62 -3.48 3.6 -3.25C3.59 -3.13 3.59 -3.04 3.61 -3.02C3.65 -2.97 3.81 -2.96 3.83 -3C3.86 -3.05 4.06 -4.31 4.05 -4.39C4.04 -4.52 3.94 -4.5 3.75 -4.35C3.58 -4.21 3.51 -4.18 3.47 -4.24C3.44 -4.3 3.18 -4.41 3.01 -4.45C2.86 -4.48 2.46 -4.49 2.27 -4.46Z"/>
+ <path id="g42" d="M2.33 -7C1.59 -6.83 1.02 -6.32 0.8 -5.64C0.71 -5.34 0.71 -4.82 0.8 -4.54C0.97 -4.07 1.35 -3.63 1.81 -3.4C2.01 -3.3 2.21 -3.24 2.94 -3.07C3.48 -2.94 3.88 -2.83 3.99 -2.77C4.09 -2.73 4.24 -2.61 4.34 -2.52C4.89 -1.97 4.89 -1.06 4.33 -0.5C4.01 -0.19 3.67 -0.07 3.14 -0.1C2.73 -0.12 2.38 -0.2 2.04 -0.36C1.84 -0.46 1.74 -0.53 1.54 -0.73C1.19 -1.08 1.05 -1.42 1 -1.99L0.97 -2.24L0.88 -2.25C0.83 -2.25 0.77 -2.24 0.75 -2.21S0.72 -1.86 0.72 -0.99L0.73 0.19L0.81 0.2C0.88 0.21 0.91 0.17 1.12 -0.14L1.34 -0.51L1.46 -0.41C1.9 -0.03 2.45 0.16 3.16 0.2C3.48 0.21 3.57 0.21 3.79 0.15C4.19 0.05 4.46 -0.09 4.76 -0.39C4.97 -0.6 5.04 -0.69 5.16 -0.93C5.46 -1.56 5.46 -2.17 5.16 -2.79C5.04 -3.03 4.97 -3.13 4.77 -3.32C4.39 -3.7 4.17 -3.8 3.11 -4.05C2.18 -4.26 1.98 -4.34 1.75 -4.57C1.22 -5.08 1.22 -5.87 1.76 -6.38C2.06 -6.66 2.44 -6.79 2.9 -6.76C3.45 -6.73 3.81 -6.58 4.15 -6.23C4.5 -5.89 4.67 -5.52 4.78 -4.88L4.83 -4.59H4.95H5.07V-5.81V-7.03L4.99 -7.04C4.92 -7.04 4.89 -7.01 4.69 -6.69C4.57 -6.49 4.47 -6.33 4.47 -6.33C4.46 -6.32 4.39 -6.39 4.3 -6.47C4 -6.75 3.61 -6.94 3.18 -7.01C2.93 -7.05 2.55 -7.05 2.33 -7Z"/>
+ <path id="g43" d="M2.34 -4.38C2.14 -4.31 1.96 -4.18 1.81 -4.01C1.63 -3.82 1.45 -3.46 1.43 -3.31C1.43 -3.2 1.43 -3.2 1.55 -3.19C1.68 -3.18 1.68 -3.19 1.74 -3.31C1.86 -3.6 2.13 -3.77 2.48 -3.77C2.67 -3.77 2.72 -3.76 3 -3.63C3.18 -3.55 3.4 -3.46 3.5 -3.44L3.68 -3.4L2.57 -2.29C1.45 -1.18 1.1 -0.78 0.77 -0.28C0.57 0.02 0.56 0.1 0.72 0.11C0.83 0.12 0.84 0.11 0.98 -0.09C1.3 -0.56 1.62 -0.73 1.88 -0.57C1.93 -0.54 2.03 -0.45 2.09 -0.37C2.42 0.04 2.56 0.13 2.84 0.11C3.42 0.06 3.99 -0.47 4.24 -1.22C4.32 -1.45 4.3 -1.5 4.15 -1.5C4.05 -1.5 4.02 -1.49 4 -1.42C3.82 -0.99 3.63 -0.77 3.31 -0.62C3.14 -0.54 3.08 -0.52 2.89 -0.52C2.69 -0.52 2.63 -0.54 2.42 -0.64C2.08 -0.8 1.87 -0.87 1.7 -0.87H1.56L1.62 -0.96C1.66 -1.01 2.19 -1.56 2.81 -2.17C3.63 -2.99 3.99 -3.38 4.17 -3.61C4.45 -3.99 4.64 -4.3 4.63 -4.36C4.62 -4.39 4.57 -4.41 4.49 -4.42C4.37 -4.42 4.37 -4.42 4.26 -4.23C4.08 -3.93 3.95 -3.77 3.84 -3.72C3.63 -3.62 3.46 -3.68 3.26 -3.93C2.89 -4.4 2.68 -4.5 2.34 -4.38Z"/>
+ <path id="g44" d="M2.345 -4.452C2.345 -4.641 2.331 -4.648 2.135 -4.648C1.687 -4.207 1.05 -4.2 0.763 -4.2V-3.948C0.931 -3.948 1.393 -3.948 1.778 -4.144V-0.574C1.778 -0.343 1.778 -0.252 1.078 -0.252H0.812V0C0.938 -0.007 1.799 -0.028 2.058 -0.028C2.275 -0.028 3.157 -0.007 3.311 0V-0.252H3.045C2.345 -0.252 2.345 -0.343 2.345 -0.574V-4.452Z"/>
+ <path id="g45" d="M2.35 -4.51C2.07 -4.47 1.64 -4.32 1.41 -4.19C1.3 -4.13 1.1 -3.97 0.97 -3.83C0.76 -3.63 0.7 -3.54 0.59 -3.3C0.39 -2.89 0.34 -2.68 0.34 -2.19C0.34 -1.86 0.36 -1.74 0.41 -1.55C0.6 -0.89 1.05 -0.39 1.69 -0.14C2.09 0 2.31 0.04 2.86 0.04C3.4 0.04 3.62 0 4.02 -0.14C4.66 -0.39 5.11 -0.89 5.3 -1.55C5.36 -1.74 5.37 -1.86 5.37 -2.19C5.37 -2.68 5.32 -2.89 5.12 -3.3C5.01 -3.54 4.95 -3.63 4.74 -3.83C4.61 -3.97 4.41 -4.13 4.3 -4.19C3.8 -4.48 3.03 -4.6 2.35 -4.51ZM3.16 -4.15C3.39 -4.1 3.64 -3.96 3.77 -3.82C4.01 -3.55 4.06 -3.34 4.08 -2.49C4.1 -1.82 4.07 -1.36 3.98 -1.08C3.89 -0.77 3.67 -0.54 3.34 -0.41C3.2 -0.36 3.11 -0.34 2.86 -0.34C2.6 -0.34 2.51 -0.36 2.37 -0.41C1.75 -0.66 1.59 -1.1 1.63 -2.49C1.65 -3.34 1.7 -3.55 1.94 -3.82C2.2 -4.11 2.71 -4.24 3.16 -4.15Z"/>
+ <path id="g46" d="M2.4 -5.87C2.18 -4.98 1.63 -4.32 1.02 -4.25C0.89 -4.23 0.87 -4.22 0.87 -4.16C0.87 -4.13 0.86 -4.07 0.85 -4.05C0.83 -4.01 0.88 -4 1.26 -4C1.49 -4 1.68 -3.99 1.68 -3.98S1.57 -3.31 1.44 -2.52C1.16 -0.86 1.15 -0.71 1.3 -0.41C1.47 -0.06 1.78 0.09 2.25 0.1C2.51 0.1 2.56 0.09 2.71 0.02C3 -0.12 3.3 -0.49 3.43 -0.88C3.46 -0.98 3.51 -1.19 3.53 -1.35C3.56 -1.51 3.59 -1.67 3.6 -1.72C3.61 -1.8 3.61 -1.8 3.48 -1.8C3.4 -1.8 3.34 -1.8 3.34 -1.79S3.3 -1.59 3.26 -1.36C3.11 -0.53 2.76 -0.09 2.3 -0.16C2.14 -0.18 2.04 -0.26 1.96 -0.42C1.84 -0.66 1.86 -0.85 2.13 -2.5L2.38 -4H3.09H3.79L3.8 -4.07C3.81 -4.1 3.82 -4.17 3.83 -4.22L3.85 -4.3H3.14C2.75 -4.3 2.43 -4.31 2.43 -4.32C2.43 -4.34 2.7 -5.95 2.72 -6.06C2.74 -6.14 2.74 -6.14 2.61 -6.14H2.47Z"/>
+ <path id="g47" d="M2.46 -4.43C1.91 -4.32 1.51 -4.04 1.33 -3.66C1.19 -3.35 1.27 -3.07 1.52 -2.98C1.84 -2.87 2.19 -3.14 2.19 -3.49C2.19 -3.61 2.18 -3.66 2.1 -3.74C2.05 -3.79 1.97 -3.85 1.92 -3.87L1.82 -3.9L1.94 -3.98C2.1 -4.09 2.49 -4.21 2.77 -4.23C3.1 -4.26 3.31 -4.19 3.5 -3.99C3.76 -3.73 3.82 -3.38 3.72 -2.84L3.68 -2.63L3.5 -2.61C3.4 -2.6 3.18 -2.57 3 -2.56C2.5 -2.5 2.03 -2.37 1.63 -2.18C1.34 -2.04 1.25 -1.97 1.05 -1.78C0.75 -1.48 0.6 -1.19 0.57 -0.87C0.56 -0.68 0.57 -0.64 0.64 -0.49C0.82 -0.13 1.24 0.07 1.85 0.11C2.2 0.13 2.43 0.08 2.73 -0.06C2.94 -0.17 3.23 -0.42 3.37 -0.61L3.46 -0.73V-0.62C3.46 -0.33 3.64 -0.04 3.87 0.03C4.13 0.11 4.53 -0.01 4.75 -0.25C4.92 -0.44 5.01 -0.64 5.07 -0.99C5.09 -1.15 5.12 -1.31 5.13 -1.36C5.15 -1.44 5.15 -1.44 5.01 -1.44C4.86 -1.44 4.88 -1.48 4.8 -0.99C4.77 -0.83 4.72 -0.63 4.68 -0.55C4.56 -0.29 4.32 -0.19 4.17 -0.34C4.03 -0.47 4.04 -0.55 4.25 -1.86C4.49 -3.24 4.5 -3.4 4.35 -3.7C4.18 -4.05 3.78 -4.34 3.35 -4.44C3.09 -4.49 2.72 -4.49 2.46 -4.43ZM3.64 -2.37C3.64 -2.36 3.59 -2.08 3.53 -1.75C3.41 -1.01 3.34 -0.84 3.05 -0.55C2.73 -0.23 2.27 -0.06 1.9 -0.14C1.67 -0.19 1.52 -0.3 1.42 -0.5C1.35 -0.64 1.34 -0.69 1.36 -0.85C1.41 -1.48 1.93 -2.01 2.71 -2.23C3.02 -2.32 3.64 -2.41 3.64 -2.37Z"/>
+ <path id="g48" d="M2.57 -4.52C2.27 -4.45 2.02 -4.31 1.76 -4.06L1.53 -3.83V-4.17V-4.51H1.17H0.81V-2.25V0H1.2H1.59L1.6 -1.45C1.61 -2.66 1.62 -2.93 1.66 -3.06C1.83 -3.61 2.1 -3.9 2.5 -3.93C2.86 -3.97 3.24 -3.83 3.38 -3.61C3.54 -3.37 3.55 -3.28 3.55 -1.57V0H3.94H4.33V-1.63C4.33 -3.39 4.32 -3.57 4.17 -3.89C3.97 -4.33 3.53 -4.58 2.95 -4.57C2.84 -4.57 2.67 -4.55 2.57 -4.52Z"/>
+ <path id="g49" d="M2.59 -6.53C2.42 -6.37 2.03 -6.18 1.75 -6.11C1.62 -6.07 1.38 -6.04 1.21 -6.03L0.9 -6.01V-5.86V-5.72H1.09C1.42 -5.72 1.79 -5.8 2.14 -5.94C2.19 -5.96 2.19 -5.82 2.19 -3.27C2.19 -1.19 2.18 -0.57 2.15 -0.51C2.08 -0.36 1.94 -0.32 1.43 -0.3L0.96 -0.29V-0.15V-0.01H2.57H4.18V-0.15V-0.29L3.71 -0.3C3.2 -0.32 3.06 -0.36 2.98 -0.51C2.96 -0.57 2.95 -1.25 2.95 -3.57C2.95 -5.21 2.94 -6.58 2.93 -6.6C2.89 -6.69 2.73 -6.66 2.59 -6.53Z"/>
+ <path id="g50" d="M2.66 -4.44C2.23 -4.34 1.84 -4.13 1.5 -3.8C1.12 -3.43 0.85 -3 0.7 -2.5C0.63 -2.27 0.62 -2.19 0.62 -1.82C0.62 -1.44 0.62 -1.37 0.7 -1.15C0.91 -0.52 1.43 -0.05 2.06 0.07C2.94 0.26 3.84 -0.18 4.29 -1.03C4.36 -1.17 4.37 -1.2 4.33 -1.24C4.31 -1.27 4.25 -1.29 4.21 -1.29C4.14 -1.29 4.11 -1.27 4.05 -1.15C3.81 -0.67 3.38 -0.32 2.89 -0.19C2.39 -0.06 1.87 -0.25 1.63 -0.66C1.5 -0.88 1.44 -1.07 1.42 -1.38C1.4 -1.6 1.44 -2.04 1.49 -2.25L1.51 -2.31H3.01H4.51L4.55 -2.38C4.57 -2.43 4.58 -2.6 4.59 -2.89C4.59 -3.26 4.58 -3.35 4.52 -3.54C4.39 -3.95 4.09 -4.25 3.67 -4.39C3.42 -4.48 2.92 -4.5 2.66 -4.44ZM3.47 -4.14C3.66 -4.03 3.76 -3.91 3.84 -3.69C3.93 -3.44 3.95 -3.16 3.93 -2.81L3.9 -2.55H2.73C2.09 -2.55 1.56 -2.56 1.56 -2.57C1.56 -2.63 1.66 -2.96 1.73 -3.13C1.94 -3.66 2.4 -4.1 2.83 -4.21C3.01 -4.26 3.33 -4.22 3.47 -4.14Z"/>
+ <path id="g51" d="M2.72 -4.39C2.15 -4.27 1.67 -3.78 1.54 -3.16C1.49 -2.89 1.52 -2.69 1.64 -2.46C1.8 -2.17 1.99 -2.06 2.55 -1.93C2.99 -1.83 3.16 -1.74 3.27 -1.53C3.44 -1.2 3.28 -0.67 2.9 -0.38C2.66 -0.2 2.42 -0.13 2.03 -0.13C1.62 -0.13 1.41 -0.2 1.21 -0.4C1.08 -0.54 1.02 -0.66 1.1 -0.66C1.13 -0.66 1.21 -0.69 1.28 -0.72C1.5 -0.83 1.63 -1.14 1.53 -1.32C1.46 -1.46 1.19 -1.51 1.02 -1.43C0.72 -1.27 0.63 -0.85 0.81 -0.48C1.02 -0.06 1.49 0.14 2.14 0.11C2.86 0.07 3.42 -0.26 3.71 -0.85C3.99 -1.41 3.96 -1.89 3.63 -2.28C3.47 -2.45 3.16 -2.6 2.74 -2.69C2.33 -2.78 2.22 -2.84 2.13 -3.03C1.96 -3.37 2.21 -3.91 2.62 -4.09C2.75 -4.15 2.83 -4.16 3.07 -4.16C3.33 -4.17 3.37 -4.16 3.51 -4.08C3.67 -3.99 3.76 -3.89 3.8 -3.77C3.82 -3.71 3.81 -3.7 3.73 -3.68C3.68 -3.67 3.59 -3.61 3.53 -3.55C3.45 -3.45 3.43 -3.4 3.43 -3.29S3.44 -3.15 3.52 -3.08C3.69 -2.94 3.94 -3.01 4.07 -3.25C4.16 -3.4 4.16 -3.73 4.07 -3.89C3.98 -4.07 3.8 -4.23 3.6 -4.32C3.45 -4.38 3.36 -4.4 3.14 -4.41C2.99 -4.41 2.8 -4.4 2.72 -4.39Z"/>
+ <path id="g52" d="M2.72 -6.55C2.59 -6.49 2.44 -6.31 2.42 -6.18C2.39 -6.04 2.46 -5.89 2.59 -5.82C2.8 -5.71 3.08 -5.85 3.19 -6.1C3.25 -6.22 3.25 -6.25 3.22 -6.35C3.16 -6.56 2.94 -6.64 2.72 -6.55ZM1.83 -4.38C1.42 -4.24 1.05 -3.74 0.86 -3.09C0.79 -2.83 0.81 -2.77 0.96 -2.77C1.07 -2.77 1.09 -2.79 1.18 -3.11C1.4 -3.82 1.7 -4.18 2.07 -4.18C2.18 -4.18 2.22 -4.14 2.25 -4.02C2.31 -3.78 2.26 -3.63 1.67 -2.01C1.32 -1.08 1.28 -0.95 1.27 -0.73C1.26 -0.53 1.26 -0.46 1.32 -0.33C1.4 -0.15 1.6 0.03 1.77 0.08C2.34 0.25 2.91 -0.24 3.2 -1.18C3.29 -1.47 3.28 -1.53 3.13 -1.53C3.02 -1.53 2.98 -1.49 2.91 -1.23C2.82 -0.89 2.6 -0.46 2.45 -0.31C2.28 -0.14 2.03 -0.07 1.89 -0.15C1.81 -0.19 1.79 -0.39 1.84 -0.64C1.87 -0.76 2.09 -1.42 2.34 -2.1C2.85 -3.48 2.88 -3.61 2.78 -3.9C2.65 -4.3 2.22 -4.52 1.83 -4.38Z"/>
+ <path id="g53" d="M2.74 -4.51C2.31 -4.4 1.95 -4.17 1.67 -3.83L1.52 -3.64L1.51 -4.08L1.5 -4.51H1.15H0.81V-2.25V0H1.18H1.56L1.57 -1.27L1.58 -2.54L1.66 -2.74C1.83 -3.18 2.09 -3.5 2.45 -3.69C2.64 -3.79 2.95 -3.88 3.12 -3.88H3.22V-4.23V-4.57H3.09C3.02 -4.57 2.86 -4.54 2.74 -4.51Z"/>
+ <path id="g54" d="M2.87 -6.83C2.87 -6.84 2.87 -6.94 2.74 -6.94C2.51 -6.94 1.78 -6.86 1.52 -6.84C1.44 -6.83 1.33 -6.82 1.33 -6.64C1.33 -6.52 1.42 -6.52 1.57 -6.52C2.05 -6.52 2.07 -6.45 2.07 -6.35L2.04 -6.15L0.59 -0.39C0.55 -0.25 0.55 -0.23 0.55 -0.17C0.55 0.06 0.75 0.11 0.84 0.11C0.97 0.11 1.12 0.02 1.18 -0.1C1.23 -0.19 1.68 -2.04 1.74 -2.29C2.08 -2.26 2.9 -2.1 2.9 -1.44C2.9 -1.37 2.9 -1.33 2.87 -1.23C2.85 -1.11 2.83 -0.99 2.83 -0.88C2.83 -0.29 3.23 0.11 3.75 0.11C4.05 0.11 4.32 -0.05 4.54 -0.42C4.79 -0.86 4.9 -1.41 4.9 -1.43C4.9 -1.53 4.81 -1.53 4.78 -1.53C4.68 -1.53 4.67 -1.49 4.64 -1.35C4.44 -0.62 4.21 -0.11 3.77 -0.11C3.58 -0.11 3.45 -0.22 3.45 -0.58C3.45 -0.75 3.49 -0.98 3.53 -1.14C3.57 -1.31 3.57 -1.35 3.57 -1.45C3.57 -2.1 2.94 -2.39 2.09 -2.5C2.4 -2.68 2.72 -3 2.95 -3.24C3.43 -3.77 3.89 -4.2 4.38 -4.2C4.44 -4.2 4.45 -4.2 4.47 -4.19C4.59 -4.17 4.6 -4.17 4.68 -4.11C4.7 -4.1 4.7 -4.09 4.72 -4.07C4.24 -4.04 4.15 -3.65 4.15 -3.53C4.15 -3.37 4.26 -3.18 4.53 -3.18C4.79 -3.18 5.08 -3.4 5.08 -3.79C5.08 -4.09 4.85 -4.42 4.4 -4.42C4.12 -4.42 3.66 -4.34 2.94 -3.54C2.6 -3.16 2.21 -2.76 1.83 -2.61L2.87 -6.83Z"/>
+ <path id="g55" d="M2.89 -2.5C2.89 -3.28 2.78 -4.49 2.23 -5.62C1.63 -6.85 0.77 -7.5 0.67 -7.5C0.61 -7.5 0.57 -7.46 0.57 -7.4C0.57 -7.37 0.57 -7.35 0.76 -7.17C1.74 -6.18 2.31 -4.59 2.31 -2.5C2.31 -0.79 1.94 0.97 0.7 2.23C0.57 2.35 0.57 2.37 0.57 2.4C0.57 2.46 0.61 2.5 0.67 2.5C0.77 2.5 1.67 1.82 2.26 0.55C2.77 -0.55 2.89 -1.66 2.89 -2.5Z"/>
+ <path id="g56" d="M2.91 -5.27C2.88 -5.24 2.49 -4.24 2.03 -3.05S1.16 -0.82 1.12 -0.74C0.97 -0.48 0.65 -0.27 0.4 -0.27C0.33 -0.27 0.33 -0.25 0.33 -0.14V-0.01H1.11H1.89V-0.14C1.89 -0.24 1.88 -0.27 1.84 -0.27C1.75 -0.27 1.58 -0.37 1.53 -0.46C1.43 -0.62 1.45 -0.78 1.63 -1.25L1.79 -1.68L2.83 -1.67H3.86L4.07 -1.14C4.18 -0.85 4.27 -0.58 4.27 -0.54C4.27 -0.37 4.11 -0.27 3.86 -0.27C3.76 -0.27 3.76 -0.26 3.76 -0.14V-0.01H4.77H5.78V-0.13V-0.26L5.53 -0.27C5.25 -0.29 5.17 -0.34 5.06 -0.52C5.03 -0.59 4.6 -1.67 4.12 -2.93S3.22 -5.24 3.19 -5.27C3.17 -5.3 3.11 -5.32 3.05 -5.32C3 -5.32 2.94 -5.3 2.91 -5.27ZM3.3 -3.14L3.75 -1.95H2.82H1.89L1.95 -2.1C1.98 -2.17 2.19 -2.71 2.41 -3.28C2.63 -3.86 2.82 -4.33 2.83 -4.33C2.83 -4.33 3.05 -3.79 3.3 -3.14Z"/>
+ <path id="g57" d="M2.94 -6.4C2.94 -6.64 2.94 -6.66 2.71 -6.66C2.09 -6.02 1.21 -6.02 0.89 -6.02V-5.71C1.09 -5.71 1.68 -5.71 2.2 -5.97V-0.79C2.2 -0.43 2.17 -0.31 1.27 -0.31H0.95V0C1.3 -0.03 2.17 -0.03 2.57 -0.03S3.84 -0.03 4.19 0V-0.31H3.87C2.97 -0.31 2.94 -0.42 2.94 -0.79V-6.4Z"/>
+ <path id="g58" d="M3.01 -4.37C2.65 -4.28 2.33 -4.07 2 -3.72C1.4 -3.11 1.05 -2.25 1.05 -1.43C1.05 -0.88 1.19 -0.49 1.5 -0.19C1.75 0.03 1.9 0.1 2.24 0.1C2.5 0.1 2.53 0.09 2.74 0C2.9 -0.08 3.05 -0.19 3.22 -0.35C3.42 -0.54 3.46 -0.56 3.48 -0.52C3.59 -0.15 3.85 0.07 4.19 0.11C4.7 0.16 5.01 -0.22 5.26 -1.2C5.34 -1.48 5.32 -1.53 5.17 -1.53C5.06 -1.53 5.02 -1.47 4.92 -1.07C4.81 -0.66 4.63 -0.28 4.48 -0.18C4.2 0 4 -0.21 4.04 -0.64C4.06 -0.74 4.24 -1.53 4.45 -2.38C4.67 -3.24 4.84 -3.96 4.84 -3.99C4.84 -4.01 4.8 -4.07 4.76 -4.12C4.59 -4.29 4.3 -4.2 4.21 -3.95L4.16 -3.82L4.09 -3.96C3.89 -4.34 3.48 -4.5 3.01 -4.37ZM3.57 -4.12C3.76 -4.03 3.88 -3.86 3.97 -3.5L4.03 -3.27L3.76 -2.19C3.61 -1.59 3.47 -1.07 3.44 -1.02C3.37 -0.88 3.07 -0.53 2.92 -0.41C2.18 0.19 1.62 -0.2 1.74 -1.26C1.79 -1.65 2.08 -2.77 2.2 -3.07C2.57 -3.91 3.11 -4.33 3.57 -4.12Z"/>
+ <path id="g59" d="M3.241 -1.582H5.383C5.474 -1.582 5.642 -1.582 5.642 -1.75C5.642 -1.925 5.481 -1.925 5.383 -1.925H3.241V-4.074C3.241 -4.165 3.241 -4.333 3.073 -4.333C2.898 -4.333 2.898 -4.172 2.898 -4.074V-1.925H0.749C0.658 -1.925 0.49 -1.925 0.49 -1.757C0.49 -1.582 0.651 -1.582 0.749 -1.582H2.898V0.567C2.898 0.658 2.898 0.826 3.066 0.826C3.241 0.826 3.241 0.665 3.241 0.567V-1.582Z"/>
+ <path id="g60" d="M3.25 -4.39C2.74 -4.28 2.27 -4.02 1.88 -3.6C1.37 -3.07 1.14 -2.52 1.12 -1.74C1.1 -1.39 1.11 -1.29 1.17 -1.08C1.37 -0.26 1.9 0.15 2.66 0.11C3 0.08 3.26 0.02 3.57 -0.12C3.9 -0.27 4.13 -0.43 4.38 -0.69C4.66 -0.98 4.68 -1.02 4.6 -1.12C4.57 -1.16 4.52 -1.2 4.5 -1.2S4.39 -1.11 4.3 -1.01C3.93 -0.57 3.45 -0.27 2.92 -0.16C2.51 -0.07 2.28 -0.12 2.08 -0.31C1.78 -0.61 1.72 -1.24 1.91 -2.08L1.96 -2.28H2.14C2.46 -2.28 3.13 -2.34 3.36 -2.39C4 -2.52 4.4 -2.83 4.55 -3.28C4.61 -3.5 4.62 -3.61 4.56 -3.81C4.45 -4.17 4.1 -4.4 3.64 -4.41C3.5 -4.41 3.32 -4.41 3.25 -4.39ZM3.81 -4.15C4.09 -4.08 4.27 -3.78 4.23 -3.48C4.14 -2.91 3.67 -2.63 2.62 -2.55C2.38 -2.53 2.14 -2.52 2.1 -2.53L2.01 -2.54L2.11 -2.83C2.25 -3.23 2.41 -3.5 2.64 -3.73C3.02 -4.1 3.42 -4.24 3.81 -4.15Z"/>
+ <path id="g61" d="M3.31 2.4C3.31 2.37 3.31 2.35 3.14 2.18C1.89 0.92 1.57 -0.97 1.57 -2.5C1.57 -4.24 1.95 -5.98 3.18 -7.23C3.31 -7.35 3.31 -7.37 3.31 -7.4C3.31 -7.47 3.27 -7.5 3.21 -7.5C3.11 -7.5 2.21 -6.82 1.62 -5.55C1.11 -4.45 0.99 -3.34 0.99 -2.5C0.99 -1.72 1.1 -0.51 1.65 0.62C2.25 1.85 3.11 2.5 3.21 2.5C3.27 2.5 3.31 2.47 3.31 2.4Z"/>
+ <path id="g62" d="M3.34 -3.02C3.4 -3.28 3.63 -4.2 4.33 -4.2C4.38 -4.2 4.62 -4.2 4.83 -4.07C4.55 -4.02 4.35 -3.77 4.35 -3.53C4.35 -3.37 4.46 -3.18 4.73 -3.18C4.95 -3.18 5.27 -3.36 5.27 -3.76C5.27 -4.28 4.68 -4.42 4.34 -4.42C3.76 -4.42 3.41 -3.89 3.29 -3.66C3.04 -4.32 2.5 -4.42 2.21 -4.42C1.17 -4.42 0.6 -3.13 0.6 -2.88C0.6 -2.78 0.7 -2.78 0.72 -2.78C0.8 -2.78 0.83 -2.8 0.85 -2.89C1.19 -3.95 1.85 -4.2 2.19 -4.2C2.38 -4.2 2.73 -4.11 2.73 -3.53C2.73 -3.22 2.56 -2.55 2.19 -1.15C2.03 -0.53 1.68 -0.11 1.24 -0.11C1.18 -0.11 0.95 -0.11 0.74 -0.24C0.99 -0.29 1.21 -0.5 1.21 -0.78C1.21 -1.05 0.99 -1.13 0.84 -1.13C0.54 -1.13 0.29 -0.87 0.29 -0.55C0.29 -0.09 0.79 0.11 1.23 0.11C1.89 0.11 2.25 -0.59 2.28 -0.65C2.4 -0.28 2.76 0.11 3.36 0.11C4.39 0.11 4.96 -1.18 4.96 -1.43C4.96 -1.53 4.87 -1.53 4.84 -1.53C4.75 -1.53 4.73 -1.49 4.71 -1.42C4.38 -0.35 3.7 -0.11 3.38 -0.11C2.99 -0.11 2.83 -0.43 2.83 -0.77C2.83 -0.99 2.89 -1.21 3 -1.65L3.34 -3.02Z"/>
+ <path id="g63" d="M3.535 -1.274H3.297C3.276 -1.12 3.206 -0.707 3.115 -0.637C3.059 -0.595 2.52 -0.595 2.422 -0.595H1.134C1.869 -1.246 2.114 -1.442 2.534 -1.771C3.052 -2.184 3.535 -2.618 3.535 -3.283C3.535 -4.13 2.793 -4.648 1.897 -4.648C1.029 -4.648 0.441 -4.039 0.441 -3.395C0.441 -3.038 0.742 -3.003 0.812 -3.003C0.98 -3.003 1.183 -3.122 1.183 -3.374C1.183 -3.5 1.134 -3.745 0.77 -3.745C0.987 -4.242 1.463 -4.396 1.792 -4.396C2.492 -4.396 2.856 -3.85 2.856 -3.283C2.856 -2.674 2.422 -2.191 2.198 -1.939L0.511 -0.273C0.441 -0.21 0.441 -0.196 0.441 0H3.325L3.535 -1.274Z"/>
+ <path id="g64" d="M3.56 -7.01C3.3 -6.97 2.88 -6.84 2.62 -6.72C2.11 -6.49 1.55 -6.02 1.22 -5.56C0.43 -4.45 0.32 -2.95 0.94 -1.73C1.13 -1.37 1.32 -1.11 1.62 -0.81C2.6 0.16 4.08 0.48 5.15 -0.04C5.8 -0.37 6.27 -0.91 6.5 -1.57C6.6 -1.85 6.66 -2.19 6.64 -2.38L6.63 -2.51H6.51H6.39V-2.37C6.32 -1.3 5.7 -0.46 4.75 -0.17C4.43 -0.07 3.88 -0.07 3.53 -0.17C2.5 -0.46 1.86 -1.24 1.63 -2.47C1.56 -2.87 1.56 -3.96 1.63 -4.36C1.85 -5.53 2.44 -6.29 3.36 -6.6C4.5 -6.99 5.51 -6.52 6.05 -5.37C6.18 -5.08 6.25 -4.87 6.32 -4.48L6.37 -4.2H6.5H6.63V-5.61V-7.03L6.56 -7.04C6.49 -7.04 6.45 -7 6.18 -6.61L5.89 -6.17L5.7 -6.35C5.45 -6.58 5.29 -6.69 4.98 -6.83C4.57 -7.02 4.09 -7.08 3.56 -7.01Z"/>
+ <path id="g65" d="M3.612 -2.233C3.612 -3.003 3.521 -3.556 3.199 -4.046C2.982 -4.368 2.548 -4.648 1.988 -4.648C0.364 -4.648 0.364 -2.737 0.364 -2.233S0.364 0.14 1.988 0.14S3.612 -1.729 3.612 -2.233ZM1.988 -0.056C1.666 -0.056 1.239 -0.245 1.099 -0.819C1.001 -1.232 1.001 -1.806 1.001 -2.324C1.001 -2.835 1.001 -3.367 1.106 -3.752C1.253 -4.305 1.701 -4.452 1.988 -4.452C2.366 -4.452 2.73 -4.221 2.856 -3.815C2.968 -3.437 2.975 -2.933 2.975 -2.324C2.975 -1.806 2.975 -1.288 2.884 -0.847C2.744 -0.21 2.268 -0.056 1.988 -0.056Z"/>
+ <path id="g66" d="M3.7 -6.89C3.38 -6.86 3.09 -6.83 3.06 -6.83C3.02 -6.83 3.01 -6.8 3.01 -6.68V-6.54L3.26 -6.52C3.56 -6.5 3.67 -6.46 3.74 -6.32C3.78 -6.22 3.79 -6.1 3.79 -5.01V-3.81L3.66 -3.94C3.38 -4.22 3.02 -4.39 2.63 -4.41C1.79 -4.47 0.93 -3.94 0.56 -3.15C0.42 -2.85 0.36 -2.63 0.34 -2.29C0.27 -1.36 0.77 -0.47 1.57 -0.08C2.3 0.26 3.04 0.16 3.6 -0.37L3.76 -0.52V-0.2C3.76 -0.02 3.76 0.12 3.77 0.12C3.77 0.12 4.09 0.09 4.48 0.06C4.87 0.02 5.2 0 5.21 0S5.23 -0.06 5.23 -0.14V-0.29L4.98 -0.3C4.68 -0.32 4.57 -0.37 4.5 -0.51C4.46 -0.61 4.45 -0.82 4.45 -3.78V-6.95H4.37C4.32 -6.94 4.02 -6.92 3.7 -6.89ZM2.9 -4.13C3.22 -4.05 3.48 -3.85 3.67 -3.56L3.76 -3.42V-2.19V-0.97L3.64 -0.79C3.16 -0.04 2.23 0.09 1.66 -0.48C1.46 -0.67 1.34 -0.92 1.25 -1.25C1.19 -1.48 1.19 -1.59 1.19 -2.15C1.19 -2.84 1.23 -3.06 1.4 -3.41C1.68 -3.99 2.31 -4.29 2.9 -4.13Z"/>
+ <path id="g67" d="M3.83 -7C2.87 -6.84 2 -6.32 1.43 -5.55C1.21 -5.26 0.96 -4.74 0.86 -4.39C0.61 -3.52 0.69 -2.68 1.09 -1.85C1.7 -0.6 3 0.21 4.39 0.21C5.73 0.21 6.89 -0.75 7.1 -2.05C7.12 -2.17 7.13 -2.32 7.13 -2.39C7.12 -2.51 7.11 -2.51 7 -2.51H6.88L6.85 -2.27C6.8 -1.66 6.58 -1.19 6.17 -0.78C5.92 -0.52 5.67 -0.37 5.36 -0.25C4.69 0 3.98 -0.04 3.29 -0.39C2.48 -0.79 2 -1.48 1.81 -2.54C1.74 -2.92 1.74 -3.91 1.81 -4.29C2.02 -5.42 2.58 -6.18 3.49 -6.54C3.85 -6.68 4.07 -6.72 4.5 -6.72C4.84 -6.72 4.92 -6.71 5.13 -6.64C5.46 -6.53 5.72 -6.37 5.97 -6.12C6.42 -5.69 6.69 -5.13 6.81 -4.41L6.85 -4.2H6.98H7.12V-5.61V-7.03L7.04 -7.04C6.97 -7.04 6.93 -6.99 6.65 -6.59L6.34 -6.13L6.16 -6.31C5.84 -6.61 5.46 -6.83 5.05 -6.95C4.77 -7.03 4.18 -7.06 3.83 -7Z"/>
+ <path id="g68" d="M3.98 -4.47C3.78 -4.42 3.57 -4.32 3.4 -4.18C3.27 -4.08 3.25 -4.07 3.2 -4.11C3.09 -4.19 2.72 -4.35 2.56 -4.39C1.73 -4.56 0.84 -4.06 0.64 -3.29C0.53 -2.86 0.65 -2.39 0.95 -2.07L1.06 -1.96L0.95 -1.78C0.71 -1.4 0.68 -0.95 0.86 -0.59C0.92 -0.48 1 -0.35 1.06 -0.31L1.16 -0.22L0.95 -0.12C0.7 0 0.46 0.21 0.35 0.43C0.24 0.66 0.25 0.98 0.37 1.2C0.56 1.54 1.03 1.85 1.61 2C1.88 2.08 1.95 2.08 2.48 2.08C3 2.08 3.08 2.08 3.35 2C3.93 1.85 4.4 1.54 4.58 1.2C4.86 0.68 4.57 -0.1 3.98 -0.4C3.58 -0.6 3.18 -0.66 2.22 -0.66C1.63 -0.66 1.53 -0.67 1.42 -0.72C1.2 -0.82 1.07 -1.04 1.07 -1.34C1.07 -1.52 1.17 -1.82 1.23 -1.79C1.41 -1.69 1.73 -1.56 1.86 -1.53C2.39 -1.42 2.97 -1.58 3.35 -1.96C3.76 -2.34 3.9 -2.8 3.77 -3.29C3.72 -3.49 3.59 -3.75 3.49 -3.83C3.46 -3.86 3.43 -3.9 3.43 -3.91C3.43 -3.96 3.7 -4.13 3.86 -4.18C3.95 -4.21 4.09 -4.25 4.18 -4.26L4.34 -4.28L4.28 -4.2C4.2 -4.1 4.19 -4 4.26 -3.88C4.31 -3.77 4.39 -3.73 4.51 -3.73C4.56 -3.73 4.63 -3.74 4.66 -3.76C4.74 -3.8 4.81 -3.94 4.81 -4.04C4.81 -4.16 4.71 -4.35 4.6 -4.43C4.48 -4.51 4.21 -4.53 3.98 -4.47ZM2.56 -4.1C2.7 -4.03 2.87 -3.88 2.94 -3.75C3.11 -3.42 3.11 -2.5 2.94 -2.17C2.69 -1.71 2 -1.61 1.62 -1.99C1.41 -2.2 1.33 -2.54 1.36 -3.09C1.38 -3.61 1.48 -3.86 1.73 -4.03C1.96 -4.19 2.3 -4.21 2.56 -4.1ZM3.11 -0.02C3.62 0.04 3.91 0.19 4.06 0.45C4.17 0.65 4.17 0.95 4.04 1.17C3.89 1.44 3.55 1.66 3.09 1.79C2.82 1.87 2.14 1.87 1.86 1.79C1.4 1.66 1.06 1.44 0.91 1.17C0.84 1.03 0.82 0.97 0.82 0.79C0.82 0.41 1.03 0.11 1.39 0C1.52 -0.04 1.65 -0.05 2.21 -0.05C2.58 -0.05 2.99 -0.04 3.11 -0.02Z"/>
+ <path id="g69" d="M4.046 -1.918C3.675 -2.352 3.563 -2.471 3.297 -2.66C2.87 -2.968 2.422 -3.087 2.037 -3.087C1.169 -3.087 0.539 -2.345 0.539 -1.505C0.539 -0.686 1.141 0.07 2.016 0.07C2.989 0.07 3.668 -0.728 3.92 -1.099C4.291 -0.665 4.403 -0.546 4.669 -0.357C5.096 -0.049 5.544 0.07 5.929 0.07C6.797 0.07 7.427 -0.672 7.427 -1.512C7.427 -2.331 6.825 -3.087 5.95 -3.087C4.977 -3.087 4.298 -2.289 4.046 -1.918ZM4.27 -1.659C4.55 -2.114 5.159 -2.821 6.013 -2.821C6.734 -2.821 7.231 -2.184 7.231 -1.512S6.685 -0.315 6.041 -0.315C5.39 -0.315 4.942 -0.847 4.27 -1.659ZM3.696 -1.358C3.416 -0.903 2.807 -0.196 1.953 -0.196C1.232 -0.196 0.735 -0.833 0.735 -1.505S1.281 -2.702 1.925 -2.702C2.576 -2.702 3.024 -2.17 3.696 -1.358Z"/>
+ <path id="g70" d="M4.09 -2.3H6.88C7.02 -2.3 7.21 -2.3 7.21 -2.5S7.02 -2.7 6.88 -2.7H4.09V-5.5C4.09 -5.64 4.09 -5.83 3.89 -5.83S3.69 -5.64 3.69 -5.5V-2.7H0.89C0.75 -2.7 0.56 -2.7 0.56 -2.5S0.75 -2.3 0.89 -2.3H3.69V0.5C3.69 0.64 3.69 0.83 3.89 0.83S4.09 0.64 4.09 0.5V-2.3Z"/>
+ <path id="g71" d="M4.36 -6.9C4.01 -6.88 3.67 -6.86 3.62 -6.86H3.52V-6.62V-6.39L3.78 -6.37C4.09 -6.35 4.15 -6.33 4.18 -6.24C4.2 -6.2 4.21 -5.69 4.21 -5.11V-4.06L4.11 -4.13C3.97 -4.24 3.74 -4.35 3.49 -4.43C3.29 -4.49 3.2 -4.5 2.83 -4.49C2.35 -4.49 2.13 -4.45 1.78 -4.31C1.46 -4.18 1.23 -4.03 1 -3.81C0.35 -3.14 0.2 -2.03 0.64 -1.12C0.9 -0.59 1.34 -0.23 2 -0.04C2.23 0.02 2.32 0.03 2.71 0.04C3.09 0.04 3.17 0.03 3.37 -0.02C3.62 -0.1 3.83 -0.2 4.02 -0.33L4.15 -0.42V-0.17V0.06L4.62 0.04C4.89 0.03 5.3 0.02 5.54 0.01L5.99 0V-0.24V-0.47L5.72 -0.48C5.41 -0.5 5.36 -0.52 5.32 -0.62C5.31 -0.66 5.29 -1.98 5.29 -3.82V-6.95H5.15C5.07 -6.94 4.72 -6.92 4.36 -6.9ZM3.32 -4.11C3.58 -4.04 3.78 -3.92 3.98 -3.73L4.15 -3.55V-2.29V-1.03L4.03 -0.88C3.41 -0.1 2.26 -0.11 1.86 -0.89C1.72 -1.17 1.7 -1.37 1.7 -2.21C1.7 -2.86 1.71 -3.02 1.75 -3.18C1.89 -3.69 2.17 -3.98 2.62 -4.1C2.83 -4.16 3.1 -4.16 3.32 -4.11Z"/>
+ <path id="g72" d="M4.71 -2.14C4.71 -3.42 3.71 -4.48 2.5 -4.48C1.25 -4.48 0.28 -3.39 0.28 -2.14C0.28 -0.85 1.32 0.11 2.49 0.11C3.7 0.11 4.71 -0.87 4.71 -2.14ZM2.5 -0.14C2.07 -0.14 1.63 -0.35 1.36 -0.81C1.11 -1.25 1.11 -1.86 1.11 -2.22C1.11 -2.61 1.11 -3.15 1.35 -3.59C1.62 -4.05 2.09 -4.26 2.49 -4.26C2.93 -4.26 3.36 -4.04 3.62 -3.61S3.88 -2.6 3.88 -2.22C3.88 -1.86 3.88 -1.32 3.66 -0.88C3.44 -0.43 3 -0.14 2.5 -0.14Z"/>
+ <path id="g73" d="M4.72 -6.89C4.4 -6.85 4.12 -6.81 4.1 -6.79C4.07 -6.77 4.06 -6.72 4.07 -6.65L4.08 -6.54L4.36 -6.53C4.69 -6.5 4.78 -6.47 4.78 -6.37C4.78 -6.33 4.65 -5.75 4.48 -5.06L4.17 -3.82L4.09 -3.97C3.71 -4.62 2.86 -4.55 2.08 -3.81C1.44 -3.2 1.05 -2.29 1.05 -1.43C1.05 -0.88 1.19 -0.49 1.5 -0.19C1.75 0.03 1.9 0.1 2.24 0.1C2.5 0.1 2.53 0.09 2.74 0C2.9 -0.08 3.05 -0.19 3.22 -0.35C3.42 -0.54 3.46 -0.56 3.48 -0.52C3.59 -0.15 3.85 0.07 4.19 0.11C4.7 0.16 5.01 -0.22 5.26 -1.2C5.34 -1.48 5.32 -1.53 5.17 -1.53C5.06 -1.53 5.02 -1.47 4.92 -1.07C4.81 -0.66 4.63 -0.28 4.48 -0.18C4.2 0 4 -0.21 4.04 -0.64C4.06 -0.74 4.4 -2.18 4.82 -3.83C5.34 -5.91 5.56 -6.86 5.54 -6.89C5.5 -6.95 5.39 -6.95 4.72 -6.89ZM3.57 -4.12C3.76 -4.03 3.88 -3.86 3.97 -3.5L4.03 -3.27L3.76 -2.19C3.61 -1.59 3.47 -1.07 3.44 -1.02C3.37 -0.88 3.07 -0.53 2.92 -0.41C2.18 0.19 1.62 -0.2 1.74 -1.26C1.79 -1.65 2.08 -2.77 2.2 -3.07C2.57 -3.91 3.11 -4.33 3.57 -4.12Z"/>
+ <path id="g74" d="M4.8 -6.89C4.46 -6.86 4.17 -6.83 4.16 -6.82C4.16 -6.82 4.14 -6.75 4.13 -6.67L4.11 -6.54L4.35 -6.52C4.49 -6.51 4.63 -6.49 4.68 -6.46C4.84 -6.39 4.84 -6.35 4.64 -5.1C4.53 -4.47 4.44 -3.93 4.43 -3.89C4.42 -3.83 4.4 -3.84 4.26 -3.99C3.85 -4.42 3.25 -4.54 2.55 -4.3C2.1 -4.15 1.86 -4 1.49 -3.62C1.05 -3.18 0.81 -2.77 0.7 -2.25C0.56 -1.52 0.74 -0.85 1.2 -0.39C1.86 0.27 2.86 0.28 3.65 -0.35L3.84 -0.5L3.79 -0.19C3.76 -0.03 3.74 0.1 3.74 0.11C3.75 0.12 5.21 0 5.22 0C5.23 -0.01 5.24 -0.07 5.25 -0.15L5.27 -0.3H5.1C4.87 -0.3 4.67 -0.35 4.62 -0.43C4.59 -0.46 4.57 -0.53 4.57 -0.59C4.57 -0.64 4.8 -2.07 5.08 -3.76C5.37 -5.45 5.6 -6.86 5.6 -6.89C5.6 -6.96 5.65 -6.96 4.8 -6.89ZM3.65 -4.12C3.89 -4.04 4.1 -3.86 4.23 -3.62L4.33 -3.44L4.12 -2.22L3.92 -1L3.81 -0.84C3.37 -0.24 2.6 0.02 2.06 -0.21C1.53 -0.46 1.35 -1.07 1.53 -2.1C1.63 -2.72 1.75 -3.07 1.97 -3.4C2.37 -4.01 3.06 -4.3 3.65 -4.12Z"/>
+ <path id="g75" d="M5.376 -2.352C5.481 -2.352 5.642 -2.352 5.642 -2.527C5.642 -2.695 5.474 -2.695 5.383 -2.695H0.749C0.658 -2.695 0.49 -2.695 0.49 -2.527C0.49 -2.352 0.651 -2.352 0.756 -2.352H5.376ZM5.383 -0.812C5.474 -0.812 5.642 -0.812 5.642 -0.98C5.642 -1.155 5.481 -1.155 5.376 -1.155H0.756C0.651 -1.155 0.49 -1.155 0.49 -0.98C0.49 -0.812 0.658 -0.812 0.749 -0.812H5.383Z"/>
+ <path id="g76" d="M6.59 -2.3C6.76 -2.3 6.94 -2.3 6.94 -2.5S6.76 -2.7 6.59 -2.7H1.18C1.01 -2.7 0.83 -2.7 0.83 -2.5S1.01 -2.3 1.18 -2.3H6.59Z"/>
+ <path id="g77" d="M6.87 -3.27C7.02 -3.27 7.21 -3.27 7.21 -3.47S7.02 -3.67 6.88 -3.67H0.89C0.75 -3.67 0.56 -3.67 0.56 -3.47S0.75 -3.27 0.9 -3.27H6.87ZM6.88 -1.33C7.02 -1.33 7.21 -1.33 7.21 -1.53S7.02 -1.73 6.87 -1.73H0.9C0.75 -1.73 0.56 -1.73 0.56 -1.53S0.75 -1.33 0.89 -1.33H6.88Z"/>
+ </defs>
+ <g id="page1" transform="matrix(0.996 0 0 0.996 0 0)">
+ <use x="77" xlink:href="#g64" y="63"/>
+ <use x="84.2205" xlink:href="#g34" y="63"/>
+ <use x="89.2192" xlink:href="#g12" y="63"/>
+ <use x="91.9963" xlink:href="#g34" y="63"/>
+ <use x="96.9951" xlink:href="#g7" y="63"/>
+ <use x="104.243" xlink:href="#g20" y="63"/>
+ <use x="108.131" xlink:href="#g33" y="63"/>
+ <use x="112.575" xlink:href="#g21" y="63"/>
+ <use x="116.518" xlink:href="#g20" y="63"/>
+ <use x="120.406" xlink:href="#g15" y="63"/>
+ <g fill="#ff0000">
+ <use x="127.627" xlink:href="#g7" y="63"/>
+ <use x="131.542" xlink:href="#g33" y="63"/>
+ <use x="135.986" xlink:href="#g66" y="63"/>
+ </g>
+ <use x="141.54" xlink:href="#g14" y="63"/>
+ <g fill="#0000ff">
+ <use x="147.649" xlink:href="#g8" y="63"/>
+ <use x="153.204" xlink:href="#g12" y="63"/>
+ <use x="155.981" xlink:href="#g10" y="63"/>
+ <use x="161.535" xlink:href="#g33" y="63"/>
+ </g>
+ <use x="165.978" xlink:href="#g14" y="63"/>
+ <g fill="#ff00ff">
+ <use x="172.088" xlink:href="#g11" y="63"/>
+ <use x="180.419" xlink:href="#g28" y="63"/>
+ <use x="185.418" xlink:href="#g68" y="63"/>
+ <use x="190.417" xlink:href="#g33" y="63"/>
+ <use x="194.86" xlink:href="#g9" y="63"/>
+ <use x="200.137" xlink:href="#g20" y="63"/>
+ <use x="204.025" xlink:href="#g28" y="63"/>
+ </g>
+ <use x="164.374" xlink:href="#g13" y="78.8467"/>
+ <use x="174.374" xlink:href="#g29" y="81.3189"/>
+ <use x="169.929" xlink:href="#g65" y="101.569"/>
+ <use x="181.075" xlink:href="#g16" y="92.4579"/>
+ <use x="185.519" xlink:href="#g72" y="92.4579"/>
+ <use x="190.519" xlink:href="#g36" y="92.4579"/>
+ <use x="196.131" xlink:href="#g35" y="92.4579"/>
+ <use x="201.408" xlink:href="#g66" y="92.4579"/>
+ <use x="206.962" xlink:href="#g35" y="92.4579"/>
+ <use x="213.351" xlink:href="#g77" y="92.4579"/>
+ <use x="227.193" xlink:href="#g69" y="79.9579"/>
+ <use x="223.957" xlink:href="#g32" y="82.9578"/>
+ <use x="223.907" xlink:href="#g39" y="104.486"/>
+ <use x="228.327" xlink:href="#g75" y="104.486"/>
+ <use x="234.466" xlink:href="#g65" y="104.486"/>
+ <use x="238.452" xlink:href="#g61" y="92.4579"/>
+ <use x="242.341" xlink:href="#g76" y="92.4579"/>
+ <use x="250.119" xlink:href="#g57" y="92.4579"/>
+ <use x="255.119" xlink:href="#g55" y="92.4579"/>
+ <use x="259.008" xlink:href="#g39" y="88.329"/>
+ <use x="271.904" xlink:href="#g62" y="85.6928"/>
+ <use x="277.619" xlink:href="#g63" y="82.0639"/>
+ <use x="281.605" xlink:href="#g39" y="82.0639"/>
+ <use x="286.025" xlink:href="#g59" y="82.0639"/>
+ <use x="292.164" xlink:href="#g44" y="82.0639"/>
+ <rect height="0.399979" width="38.2986" x="265.128" y="89.7579"/>
+ <use x="265.128" xlink:href="#g61" y="99.3174"/>
+ <use x="269.017" xlink:href="#g18" y="99.3174"/>
+ <use x="274.017" xlink:href="#g54" y="99.3174"/>
+ <use x="281.76" xlink:href="#g70" y="99.3174"/>
+ <use x="291.76" xlink:href="#g57" y="99.3174"/>
+ <use x="296.76" xlink:href="#g55" y="99.3174"/>
+ <use x="300.649" xlink:href="#g23" y="99.3174"/>
+ <use x="77" xlink:href="#g2" y="123.706"/>
+ <use x="82.6931" xlink:href="#g34" y="123.706"/>
+ <use x="87.6918" xlink:href="#g9" y="123.706"/>
+ <use x="92.9683" xlink:href="#g20" y="123.706"/>
+ <use x="100.189" xlink:href="#g21" y="123.706"/>
+ <use x="104.132" xlink:href="#g20" y="123.706"/>
+ <use x="107.742" xlink:href="#g1" y="123.706"/>
+ <use x="113.019" xlink:href="#g12" y="123.706"/>
+ <use x="115.796" xlink:href="#g33" y="123.706"/>
+ <use x="120.239" xlink:href="#g21" y="123.706"/>
+ <use x="124.183" xlink:href="#g15" y="123.706"/>
+ <use x="131.403" xlink:href="#g17" y="123.706"/>
+ <use x="138.11" xlink:href="#g45" y="123.706"/>
+ <use x="143.859" xlink:href="#g19" y="123.706"/>
+ <use x="147.052" xlink:href="#g71" y="123.706"/>
+ <use x="153.44" xlink:href="#g14" y="123.706"/>
+ <use x="159.549" xlink:href="#g60" y="123.706"/>
+ <use x="164.148" xlink:href="#g24" y="123.706"/>
+ <use x="172.324" xlink:href="#g25" y="123.706"/>
+ <use x="177.434" xlink:href="#g38" y="123.706"/>
+ <use x="182.544" xlink:href="#g58" y="123.706"/>
+ <use x="187.654" xlink:href="#g51" y="123.706"/>
+ <use x="191.741" xlink:href="#g52" y="123.706"/>
+ <use x="194.807" xlink:href="#g43" y="123.706"/>
+ <use x="198.895" xlink:href="#g60" y="123.706"/>
+ <use x="202.983" xlink:href="#g73" y="123.706"/>
+ <use x="208.093" xlink:href="#g14" y="123.706"/>
+ <use x="214.203" xlink:href="#g22" y="123.706"/>
+ <use x="218.035" xlink:href="#g30" y="123.706"/>
+ <use x="222.839" xlink:href="#g48" y="123.706"/>
+ <use x="228.005" xlink:href="#g22" y="123.706"/>
+ <use x="235.17" xlink:href="#g22" y="123.706"/>
+ <use x="239.002" xlink:href="#g31" y="123.706"/>
+ <use x="243.445" xlink:href="#g53" y="123.706"/>
+ <use x="246.861" xlink:href="#g6" y="123.706"/>
+ <use x="249.25" xlink:href="#g40" y="123.706"/>
+ <use x="252.304" xlink:href="#g14" y="123.706"/>
+ <use x="258.414" xlink:href="#g42" y="123.706"/>
+ <use x="264.524" xlink:href="#g5" y="123.706"/>
+ <use x="271.988" xlink:href="#g56" y="123.706"/>
+ <use x="278.12" xlink:href="#g3" y="123.706"/>
+ <use x="283.252" xlink:href="#g3" y="123.706"/>
+ <use x="292.161" xlink:href="#g67" y="123.706"/>
+ <use x="300.021" xlink:href="#g56" y="123.706"/>
+ <use x="306.152" xlink:href="#g4" y="123.706"/>
+ <use x="311.729" xlink:href="#g27" y="123.706"/>
+ <use x="316.305" xlink:href="#g14" y="123.706"/>
+ <use x="322.415" xlink:href="#g41" y="123.706"/>
+ <use x="326.359" xlink:href="#g37" y="123.706"/>
+ <use x="329.136" xlink:href="#g47" y="123.706"/>
+ <use x="334.134" xlink:href="#g26" y="123.706"/>
+ <use x="339.411" xlink:href="#g46" y="123.706"/>
+ <use x="343.299" xlink:href="#g50" y="123.706"/>
+ <use x="347.742" xlink:href="#g74" y="123.706"/>
+ <use x="232.001" xlink:href="#g49" y="633"/>
+ </g>
+</svg>
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample-wf-cmp.svg b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample-wf-cmp.svg
new file mode 100644
index 00000000000..d597c134c9a
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample-wf-cmp.svg
@@ -0,0 +1,201 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="574.732pt" version="1.1" viewBox="76.7123 55.9032 275.656 574.732" width="275.656pt">
+ <defs>
+ <font horiz-adv-x="0" id="cmex10">
+ <font-face ascent="772" descent="-2960" font-family="cmex10" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M1266 -1400L1387 -1080H1362C1323 -1184 1217 -1252 1102 -1282C1081 -1287 983 -1313 791 -1313H188L697 -716C704 -708 706 -705 706 -700C706 -698 706 -695 699 -685L233 -48H781C915 -48 1006 -62 1015 -64C1069 -72 1156 -89 1235 -139C1260 -155 1328 -200 1362 -281H1387L1266 0H84C61 0 60 -1 57 -7C56 -10 56 -29 56 -40L585 -764L67 -1371C57 -1383 57 -1388 57 -1389C57 -1400 66 -1400 84 -1400H1266Z" glyph-name="summationdisplay" horiz-adv-x="1444" unicode="&#x3458;"/>
+ <glyph d="M104 -2177C136 -2175 153 -2153 153 -2128C153 -2095 128 -2079 105 -2079C81 -2079 56 -2094 56 -2129C56 -2180 106 -2222 167 -2222C319 -2222 376 -1988 447 -1698C524 -1382 589 -1063 643 -742C680 -529 717 -329 751 -200C763 -151 797 -22 836 -22C867 -22 892 -41 896 -45C863 -47 846 -69 846 -94C846 -127 871 -143 894 -143C918 -143 943 -128 943 -93C943 -39 889 0 834 0C758 0 702 -109 647 -313C644 -324 508 -826 398 -1480C372 -1633 343 -1800 310 -1939C292 -2012 246 -2200 165 -2200C129 -2200 105 -2177 104 -2177Z" glyph-name="integraldisplay" horiz-adv-x="555" unicode="&#x345A;"/>
+ </font>
+ <font horiz-adv-x="0" id="cmmi10">
+ <font-face ascent="750" descent="-250" font-family="cmmi10" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M287 683C287 684 287 694 274 694C251 694 178 686 152 684C144 683 133 682 133 664C133 652 142 652 157 652C205 652 207 645 207 635L204 615L59 39C55 25 55 23 55 17C55 -6 75 -11 84 -11C97 -11 112 -2 118 10C123 19 168 204 174 229C208 226 290 210 290 144C290 137 290 133 287 123C285 111 283 99 283 88C283 29 323 -11 375 -11C405 -11 432 5 454 42C479 86 490 141 490 143C490 153 481 153 478 153C468 153 467 149 464 135C444 62 421 11 377 11C358 11 345 22 345 58C345 75 349 98 353 114C357 131 357 135 357 145C357 210 294 239 209 250C240 268 272 300 295 324C343 377 389 420 438 420C444 420 445 420 447 419C459 417 460 417 468 411C470 410 470 409 472 407C424 404 415 365 415 353C415 337 426 318 453 318C479 318 508 340 508 379C508 409 485 442 440 442C412 442 366 434 294 354C260 316 221 276 183 261L287 683Z" glyph-name="k" horiz-adv-x="520" unicode="k"/>
+ <glyph d="M206 400H300C320 400 330 400 330 420C330 431 320 431 302 431H214C250 573 255 593 255 599C255 616 243 626 226 626C223 626 195 625 186 590L147 431H53C33 431 23 431 23 412C23 400 31 400 51 400H139C67 116 63 99 63 81C63 27 101 -11 155 -11C257 -11 314 135 314 143C314 153 306 153 302 153C293 153 292 150 287 139C244 35 191 11 157 11C136 11 126 24 126 57C126 81 128 88 132 105L206 400Z" glyph-name="t" horiz-adv-x="361" unicode="t"/>
+ <glyph d="M334 302C340 328 363 420 433 420C438 420 462 420 483 407C455 402 435 377 435 353C435 337 446 318 473 318C495 318 527 336 527 376C527 428 468 442 434 442C376 442 341 389 329 366C304 432 250 442 221 442C117 442 60 313 60 288C60 278 70 278 72 278C80 278 83 280 85 289C119 395 185 420 219 420C238 420 273 411 273 353C273 322 256 255 219 115C203 53 168 11 124 11C118 11 95 11 74 24C99 29 121 50 121 78C121 105 99 113 84 113C54 113 29 87 29 55C29 9 79 -11 123 -11C189 -11 225 59 228 65C240 28 276 -11 336 -11C439 -11 496 118 496 143C496 153 487 153 484 153C475 153 473 149 471 142C438 35 370 11 338 11C299 11 283 43 283 77C283 99 289 121 300 165L334 302Z" glyph-name="x" horiz-adv-x="571" unicode="x"/>
+ </font>
+ <font horiz-adv-x="0" id="cmmi7">
+ <font-face ascent="750" descent="-250" font-family="cmmi7" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M313 664C314 666 317 679 317 680C317 685 313 694 301 694C281 694 198 686 173 684C165 683 151 682 151 661C151 647 165 647 177 647C225 647 225 640 225 632C225 625 223 619 221 610L80 44C75 26 75 24 75 22C75 7 87 -10 109 -10C136 -10 149 10 155 32C157 36 200 212 204 226C275 219 332 196 332 144C332 139 332 134 330 124C326 109 326 104 326 93C326 22 384 -10 432 -10C529 -10 559 142 559 143C559 156 546 156 543 156C529 156 528 151 523 132C511 89 484 18 435 18C408 18 400 43 400 70C400 87 400 89 406 115C407 118 411 135 411 146C411 235 291 249 249 252C278 270 315 303 332 318C383 366 433 413 489 413C501 413 514 410 522 400C479 393 470 359 470 344C470 322 487 307 510 307C537 307 567 329 567 371C567 404 543 441 490 441C433 441 381 400 330 353C288 313 255 282 214 265L313 664Z" glyph-name="k" horiz-adv-x="607" unicode="k"/>
+ <glyph d="M249 106C239 72 206 18 155 18C152 18 122 18 101 32C142 45 145 81 145 87C145 109 128 124 105 124C77 124 48 100 48 63C48 13 104 -10 153 -10C199 -10 240 19 265 61C289 8 344 -10 384 -10C499 -10 560 115 560 143C560 156 547 156 544 156C530 156 529 151 525 139C504 70 444 18 388 18C348 18 327 45 327 83C327 109 351 200 379 311C399 388 444 413 477 413C479 413 510 413 531 399C499 390 487 362 487 344C487 322 504 307 527 307S583 326 583 368C583 424 519 441 479 441C429 441 389 408 367 370C349 411 303 441 247 441C135 441 71 318 71 288C71 275 85 275 88 275C101 275 102 279 107 292C132 370 195 413 244 413C277 413 304 395 304 347C304 327 292 277 283 243L249 106Z" glyph-name="x" horiz-adv-x="647" unicode="x"/>
+ </font>
+ <font horiz-adv-x="0" id="cmr10">
+ <font-face ascent="750" descent="-250" font-family="cmr10" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M153 209L192 665C192 698 165 716 139 716S86 698 86 665L125 210C126 195 127 187 139 187C149 187 152 192 153 209ZM192 53C192 82 168 106 139 106S86 82 86 53S110 0 139 0S192 24 192 53Z" glyph-name="exclam" horiz-adv-x="277" unicode="!"/>
+ <glyph d="M331 -240C331 -237 331 -235 314 -218C189 -92 157 97 157 250C157 424 195 598 318 723C331 735 331 737 331 740C331 747 327 750 321 750C311 750 221 682 162 555C111 445 99 334 99 250C99 172 110 51 165 -62C225 -185 311 -250 321 -250C327 -250 331 -247 331 -240Z" glyph-name="parenleft" horiz-adv-x="388" unicode="("/>
+ <glyph d="M289 250C289 328 278 449 223 562C163 685 77 750 67 750C61 750 57 746 57 740C57 737 57 735 76 717C174 618 231 459 231 250C231 79 194 -97 70 -223C57 -235 57 -237 57 -240C57 -246 61 -250 67 -250C77 -250 167 -182 226 -55C277 55 289 166 289 250Z" glyph-name="parenright" horiz-adv-x="388" unicode=")"/>
+ <glyph d="M409 230H688C702 230 721 230 721 250S702 270 688 270H409V550C409 564 409 583 389 583S369 564 369 550V270H89C75 270 56 270 56 250S75 230 89 230H369V-50C369 -64 369 -83 389 -83S409 -64 409 -50V230Z" glyph-name="plus" horiz-adv-x="777" unicode="+"/>
+ <glyph d="M294 640C294 664 294 666 271 666C209 602 121 602 89 602V571C109 571 168 571 220 597V79C220 43 217 31 127 31H95V0C130 3 217 3 257 3S384 3 419 0V31H387C297 31 294 42 294 79V640Z" glyph-name="one" horiz-adv-x="500" unicode="1"/>
+ <glyph d="M127 77L233 180C389 318 449 372 449 472C449 586 359 666 237 666C124 666 50 574 50 485C50 429 100 429 103 429C120 429 155 441 155 482C155 508 137 534 102 534C94 534 92 534 89 533C112 598 166 635 224 635C315 635 358 554 358 472C358 392 308 313 253 251L61 37C50 26 50 24 50 0H421L449 174H424C419 144 412 100 402 85C395 77 329 77 307 77H127Z" glyph-name="two" horiz-adv-x="500" unicode="2"/>
+ <glyph d="M687 327C702 327 721 327 721 347S702 367 688 367H89C75 367 56 367 56 347S75 327 90 327H687ZM688 133C702 133 721 133 721 153S702 173 687 173H90C75 173 56 173 56 153S75 133 89 133H688Z" glyph-name="equal" horiz-adv-x="777" unicode="="/>
+ <glyph d="M117 218C117 381 199 423 252 423C261 423 324 422 359 386C318 383 312 353 312 340C312 314 330 294 358 294C384 294 404 311 404 341C404 409 328 448 251 448C126 448 34 340 34 216C34 88 133 -11 249 -11C383 -11 415 109 415 119S405 129 402 129C393 129 391 125 389 119C360 26 295 14 258 14C205 14 117 57 117 218Z" glyph-name="c" horiz-adv-x="444" unicode="c"/>
+ <glyph d="M471 214C471 342 371 448 250 448C125 448 28 339 28 214C28 85 132 -11 249 -11C370 -11 471 87 471 214ZM250 14C207 14 163 35 136 81C111 125 111 186 111 222C111 261 111 315 135 359C162 405 209 426 249 426C293 426 336 404 362 361S388 260 388 222C388 186 388 132 366 88C344 43 300 14 250 14Z" glyph-name="o" horiz-adv-x="500" unicode="o"/>
+ <glyph d="M208 194C230 190 312 174 312 102C312 51 277 11 199 11C115 11 79 68 60 153C57 166 56 170 46 170C33 170 33 163 33 145V13C33 -4 33 -11 44 -11C49 -11 50 -10 69 9C71 11 71 13 89 32C133 -10 178 -11 199 -11C314 -11 360 56 360 128C360 181 330 211 318 223C285 255 246 263 204 271C148 282 81 295 81 353C81 388 107 429 193 429C303 429 308 339 310 308C311 299 320 299 322 299C335 299 335 304 335 323V424C335 441 335 448 324 448C319 448 317 448 304 436C301 432 291 423 287 420C249 448 208 448 193 448C71 448 33 381 33 325C33 290 49 262 76 240C108 214 136 208 208 194Z" glyph-name="s" horiz-adv-x="394" unicode="s"/>
+ </font>
+ <font horiz-adv-x="0" id="cmr7">
+ <font-face ascent="750" descent="-250" font-family="cmr7" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M463 226H769C782 226 806 226 806 250C806 275 783 275 769 275H463V582C463 595 463 619 439 619C414 619 414 596 414 582V275H107C94 275 70 275 70 251C70 226 93 226 107 226H414V-81C414 -94 414 -118 438 -118C463 -118 463 -95 463 -81V226Z" glyph-name="plus" horiz-adv-x="877" unicode="+"/>
+ <glyph d="M516 319C516 429 503 508 457 578C426 624 364 664 284 664C52 664 52 391 52 319S52 -20 284 -20S516 247 516 319ZM284 8C238 8 177 35 157 117C143 176 143 258 143 332C143 405 143 481 158 536C179 615 243 636 284 636C338 636 390 603 408 545C424 491 425 419 425 332C425 258 425 184 412 121C392 30 324 8 284 8Z" glyph-name="zero" horiz-adv-x="569" unicode="0"/>
+ <glyph d="M335 636C335 663 333 664 305 664C241 601 150 600 109 600V564C133 564 199 564 254 592V82C254 49 254 36 154 36H116V0C134 1 257 4 294 4C325 4 451 1 473 0V36H435C335 36 335 49 335 82V636Z" glyph-name="one" horiz-adv-x="569" unicode="1"/>
+ <glyph d="M505 182H471C468 160 458 101 445 91C437 85 360 85 346 85H162C267 178 302 206 362 253C436 312 505 374 505 469C505 590 399 664 271 664C147 664 63 577 63 485C63 434 106 429 116 429C140 429 169 446 169 482C169 500 162 535 110 535C141 606 209 628 256 628C356 628 408 550 408 469C408 382 346 313 314 277L73 39C63 30 63 28 63 0H475L505 182Z" glyph-name="two" horiz-adv-x="569" unicode="2"/>
+ <glyph d="M768 336C783 336 806 336 806 361C806 385 782 385 769 385H107C94 385 70 385 70 361C70 336 93 336 108 336H768ZM769 116C782 116 806 116 806 140C806 165 783 165 768 165H108C93 165 70 165 70 140C70 116 94 116 107 116H769Z" glyph-name="equal" horiz-adv-x="877" unicode="="/>
+ </font>
+ <font horiz-adv-x="0" id="cmsy10">
+ <font-face ascent="775" descent="-960" font-family="cmsy10" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M659 230C676 230 694 230 694 250S676 270 659 270H118C101 270 83 270 83 250S101 230 118 230H659Z" glyph-name="minus" horiz-adv-x="777" unicode="&#x3400;"/>
+ </font>
+ <font horiz-adv-x="0" id="cmsy7">
+ <font-face ascent="782" descent="-951" font-family="cmsy7" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M578 274C525 336 509 353 471 380C410 424 346 441 291 441C167 441 77 335 77 215C77 98 163 -10 288 -10C427 -10 524 104 560 157C613 95 629 78 667 51C728 7 792 -10 847 -10C971 -10 1061 96 1061 216C1061 333 975 441 850 441C711 441 614 327 578 274ZM610 237C650 302 737 403 859 403C962 403 1033 312 1033 216S955 45 863 45C770 45 706 121 610 237ZM528 194C488 129 401 28 279 28C176 28 105 119 105 215S183 386 275 386C368 386 432 310 528 194Z" glyph-name="infinity" horiz-adv-x="1138" unicode="&#x221E;"/>
+ </font>
+ <font horiz-adv-x="0" id="ecbx1000">
+ <font-face font-family="ecbx1000" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M120 690C84 688 51 686 45 686H36V662V639L62 637C93 635 98 633 102 624C104 619 105 489 105 308V0H129H152L174 24C187 38 198 50 199 52S205 51 211 46C228 30 258 12 283 3C306 -3 311 -4 352 -4C388 -3 400 -2 424 3C492 21 541 58 569 111C588 149 594 175 594 224S590 291 570 333C543 389 496 425 425 444C409 448 394 449 359 449C318 449 312 448 289 441C260 431 245 424 226 411L213 403V549V695H199C191 694 156 692 120 690ZM397 404C428 390 449 363 459 324C465 299 468 194 464 155C456 93 432 56 385 38C372 33 362 31 337 31C306 31 304 31 282 42C264 51 254 59 239 75L219 97V223V349L227 360C245 383 283 405 317 412C340 417 376 414 397 404Z" horiz-adv-x="638.733" unicode="b"/>
+ <glyph d="M436 690C401 688 367 686 362 686H352V662V639L378 637C409 635 415 633 418 624C420 620 421 569 421 511V406L411 413C397 424 374 435 349 443C329 449 320 450 283 449C235 449 213 445 178 431C146 418 123 403 100 381C35 314 20 203 64 112C90 59 134 23 200 4C223 -2 232 -3 271 -4C309 -4 317 -3 337 2C362 10 383 20 402 33L415 42V17V-6L462 -4C489 -3 530 -2 554 -1L599 0V24V47L572 48C541 50 536 52 532 62C531 66 529 198 529 382V695H515C507 694 472 692 436 690ZM332 411C358 404 378 392 398 373L415 355V229V103L403 88C341 10 226 11 186 89C172 117 170 137 170 221C170 286 171 302 175 318C189 369 217 398 262 410C283 416 310 416 332 411Z" horiz-adv-x="638.733" unicode="d"/>
+ <glyph d="M132 690C96 688 63 686 57 686H48V662V639L74 637C105 635 110 633 114 624C116 619 117 499 117 332V48H82H48V24V1H171H295V24V48H260H225V371V695H211C203 694 168 692 132 690Z" horiz-adv-x="319.366" unicode="l"/>
+ <glyph d="M235 451C207 447 164 432 141 419C130 413 110 397 97 383C76 363 70 354 59 330C39 289 34 268 34 219C34 186 36 174 41 155C60 89 105 39 169 14C209 0 231 -4 286 -4C340 -4 362 0 402 14C466 39 511 89 530 155C536 174 537 186 537 219C537 268 532 289 512 330C501 354 495 363 474 383C461 397 441 413 430 419C380 448 303 460 235 451ZM316 415C339 410 364 396 377 382C401 355 406 334 408 249C410 182 407 136 398 108C389 77 367 54 334 41C320 36 311 34 286 34C260 34 251 36 237 41C175 66 159 110 163 249C165 334 170 355 194 382C220 411 271 424 316 415Z" horiz-adv-x="574.86" unicode="o"/>
+ </font>
+ <font horiz-adv-x="0" id="eccc1000">
+ <font-face font-family="eccc1000" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M383 700C287 684 200 632 143 555C121 526 96 474 86 439C61 352 69 268 109 185C170 60 300 -21 439 -21C573 -21 689 75 710 205C712 217 713 232 713 239C712 251 711 251 700 251H688L685 227C680 166 658 119 617 78C592 52 567 37 536 25C469 0 398 4 329 39C248 79 200 148 181 254C174 292 174 391 181 429C202 542 258 618 349 654C385 668 407 672 450 672C484 672 492 671 513 664C546 653 572 637 597 612C642 569 669 513 681 441L685 420H698H712V561V703L704 704C697 704 693 699 665 659L634 613L616 631C584 661 546 683 505 695C477 703 418 706 383 700Z" horiz-adv-x="785.919" unicode="C"/>
+ <glyph d="M233 700C159 683 102 632 80 564C71 534 71 482 80 454C97 407 135 363 181 340C201 330 221 324 294 307C348 294 388 283 399 277C409 273 424 261 434 252C489 197 489 106 433 50C401 19 367 7 314 10C273 12 238 20 204 36C184 46 174 53 154 73C119 108 105 142 100 199L97 224L88 225C83 225 77 224 75 221S72 186 72 99L73 -19L81 -20C88 -21 91 -17 112 14L134 51L146 41C190 3 245 -16 316 -20C348 -21 357 -21 379 -15C419 -5 446 9 476 39C497 60 504 69 516 93C546 156 546 217 516 279C504 303 497 313 477 332C439 370 417 380 311 405C218 426 198 434 175 457C122 508 122 587 176 638C206 666 244 679 290 676C345 673 381 658 415 623C450 589 467 552 478 488L483 459H495H507V581V703L499 704C492 704 489 701 469 669C457 649 447 633 447 633C446 632 439 639 430 647C400 675 361 694 318 701C293 705 255 705 233 700Z" horiz-adv-x="610.962" unicode="S"/>
+ <glyph d="M291 527C288 524 249 424 203 305S116 82 112 74C97 48 65 27 40 27C33 27 33 25 33 14V1H111H189V14C189 24 188 27 184 27C175 27 158 37 153 46C143 62 145 78 163 125L179 168L283 167H386L407 114C418 85 427 58 427 54C427 37 411 27 386 27C376 27 376 26 376 14V1H477H578V13V26L553 27C525 29 517 34 506 52C503 59 460 167 412 293S322 524 319 527C317 530 311 532 305 532C300 532 294 530 291 527ZM330 314L375 195H282H189L195 210C198 217 219 271 241 328C263 386 282 433 283 433C283 433 305 379 330 314Z" horiz-adv-x="613.184" unicode="a"/>
+ <glyph d="M42 500V487H60C88 487 104 482 110 472C116 459 116 55 110 42C104 32 88 27 60 27H42V13V0H246H451L452 14C453 22 457 59 460 97C464 135 467 173 468 181L470 195H456H443L441 178C434 115 420 81 393 58C379 46 350 33 328 30C317 28 284 27 255 27C202 27 201 27 194 34L186 41V252C186 415 187 463 190 469C196 481 208 485 244 487L277 488V501V513H159H42Z" horiz-adv-x="513.208" unicode="l"/>
+ <glyph d="M48 501V487H66C94 487 110 482 116 472C119 465 120 434 120 271C120 56 120 59 100 42C89 33 70 27 55 27C48 27 48 26 48 14V1H135H222V14C222 26 222 27 215 27C200 27 181 33 170 42C150 59 150 56 151 276L152 473L245 241C296 113 339 6 342 4C347 0 357 -1 364 2C366 4 411 112 464 244L559 483V267C560 83 559 49 555 42C550 32 533 27 506 27H487V14V1H591H695V14V27H677C649 27 632 32 627 42C621 55 621 459 627 472C632 482 649 487 677 487H695V501V514H623C551 514 551 514 546 508C544 504 504 405 457 289C411 172 372 76 372 76C371 75 332 172 285 291C237 410 196 509 195 511C192 513 170 514 119 514H48Z" horiz-adv-x="746.485" unicode="m"/>
+ <glyph d="M45 501V487H63C91 487 107 482 113 472C119 459 119 55 113 42C107 32 91 27 63 27H45V14V1H153H261V14V27H243C233 27 219 28 211 30C189 36 189 36 189 142V234H270C341 234 354 235 375 240C482 268 533 362 481 438C461 468 420 495 377 507C361 512 341 513 202 514L45 515ZM332 484C356 480 374 471 389 457C409 439 414 423 414 373C414 322 409 307 389 289C362 264 339 258 250 258H186V366V473L194 480C201 487 201 487 258 487C289 487 322 486 332 484Z" horiz-adv-x="557.642" unicode="p"/>
+ <glyph d="M171 526C146 521 115 504 94 484C35 424 36 337 98 280C124 255 144 246 220 229C256 220 291 211 298 207C315 198 332 181 342 160C349 145 350 139 350 115C350 92 349 86 342 71C318 23 272 4 207 15C127 30 86 72 78 146C76 166 76 167 67 168C62 168 56 167 54 164S51 136 51 73L52 -13H60C65 -13 71 -8 82 6C90 16 97 27 99 29C101 33 104 31 116 23C146 1 183 -11 229 -14C282 -17 320 -4 355 30C419 93 418 194 353 255C325 281 306 289 230 307C186 317 159 324 151 329C111 353 93 396 107 438C111 452 116 460 130 474C146 490 152 494 169 499C218 514 272 501 307 466C329 444 343 415 351 376L357 347H369H380V438V528H373C367 528 362 523 351 508C343 498 335 487 334 485C332 481 328 483 316 493C278 523 222 536 171 526Z" horiz-adv-x="457.666" unicode="s"/>
+ </font>
+ <font horiz-adv-x="0" id="ecrm1000">
+ <font-face font-family="ecrm1000" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M115 101C81 85 73 40 101 14C121 -4 151 -5 170 12L177 19V1C177 -56 156 -112 117 -158C107 -170 99 -181 99 -183C99 -188 111 -196 115 -194C126 -190 157 -147 173 -115C192 -76 198 -53 200 -13C204 55 181 101 140 104C131 105 121 103 115 101Z" horiz-adv-x="277.71" unicode=","/>
+ <glyph d="M259 653C242 637 203 618 175 611C162 607 138 604 121 603L90 601V586V572H109C142 572 179 580 214 594C219 596 219 582 219 327C219 119 218 57 215 51C208 36 194 32 143 30L96 29V15V1H257H418V15V29L371 30C320 32 306 36 298 51C296 57 295 125 295 357C295 521 294 658 293 660C289 669 273 666 259 653Z" horiz-adv-x="499.878" unicode="1"/>
+ <glyph d="M115 425C102 418 96 412 90 399C77 374 87 344 115 330C157 309 205 357 184 399C170 426 139 438 115 425ZM115 100C102 93 96 87 90 74C77 49 87 19 115 5C157 -16 205 32 184 74C170 101 139 112 115 100Z" horiz-adv-x="277.71" unicode=":"/>
+ <glyph d="M356 701C330 697 288 684 262 672C211 649 155 602 122 556C43 445 32 295 94 173C113 137 132 111 162 81C260 -16 408 -48 515 4C580 37 627 91 650 157C660 185 666 219 664 238L663 251H651H639V237C632 130 570 46 475 17C443 7 388 7 353 17C250 46 186 124 163 247C156 287 156 396 163 436C185 553 244 629 336 660C450 699 551 652 605 537C618 508 625 487 632 448L637 420H650H663V561V703L656 704C649 704 645 700 618 661L589 617L570 635C545 658 529 669 498 683C457 702 409 708 356 701Z" horiz-adv-x="722.046" unicode="C"/>
+ <glyph d="M33 665V651L71 649C113 647 124 644 131 631C137 619 137 61 131 48C124 35 113 32 71 30L33 29V15V1H192H352V15V29L304 30C251 32 236 36 229 51C226 56 225 91 225 192V325L291 324C365 322 374 320 393 302C407 287 412 273 414 235L416 207H429H442V340V472H429H416L414 444C412 407 407 392 393 377C374 359 365 357 291 356L225 354V491C225 571 227 632 228 636C233 649 245 651 352 649C455 648 472 646 500 631C547 608 566 569 579 469L581 454H595H608L607 465C606 472 600 517 594 567S583 663 582 669L580 680H306H33Z" horiz-adv-x="652.618" unicode="F"/>
+ <glyph d="M173 443C113 430 73 394 70 347C68 332 69 328 75 319C87 302 97 296 115 296C171 296 180 373 126 387L116 390L127 398C154 419 216 430 247 420C279 409 303 385 316 352C321 339 323 327 324 299L325 262L302 260C230 255 180 243 137 223C91 201 59 168 47 128C29 68 59 20 130 -1C160 -11 204 -14 229 -9C266 -1 311 31 327 61L333 73L336 58C342 37 350 22 364 10C401 -20 454 -6 480 39C488 55 489 57 490 100L491 144H477H463V106C463 85 462 62 460 55C451 22 417 16 401 46C396 54 395 69 394 194L392 332L381 355C348 425 261 462 173 443ZM324 170C323 88 320 79 289 47C263 21 244 13 207 13C185 13 179 15 166 21C94 59 110 166 195 209C225 224 277 236 311 237H325Z" horiz-adv-x="499.878" unicode="a"/>
+ <glyph d="M96 689C64 686 35 683 32 683C28 683 27 680 27 668V654L52 652C82 650 93 646 100 632C105 622 105 600 105 310V0H118H132L143 20C149 31 157 45 160 50L166 60L178 46C221 -3 272 -20 339 -7C404 5 462 51 493 113C508 143 514 166 516 200C521 268 497 333 450 380C375 456 262 462 190 396L171 378V537V695H163C158 694 128 692 96 689ZM351 406C388 388 412 354 425 305C431 281 431 271 431 215C431 160 430 148 425 128C408 67 373 29 322 16C268 2 213 27 184 78L174 94V217V339L183 352C221 410 295 433 351 406Z" horiz-adv-x="555.42" unicode="b"/>
+ <glyph d="M370 689C338 686 309 683 306 683C302 683 301 680 301 668V654L326 652C356 650 367 646 374 632C378 622 379 610 379 501V381L366 394C338 422 302 439 263 441C179 447 93 394 56 315C42 285 36 263 34 229C27 136 77 47 157 8C230 -26 304 -16 360 37L376 52V20C376 2 376 -12 377 -12C377 -12 409 -9 448 -6C487 -2 520 0 521 0S523 6 523 14V29L498 30C468 32 457 37 450 51C446 61 445 82 445 378V695H437C432 694 402 692 370 689ZM290 413C322 405 348 385 367 356L376 342V219V97L364 79C316 4 223 -9 166 48C146 67 134 92 125 125C119 148 119 159 119 215C119 284 123 306 140 341C168 399 231 429 290 413Z" horiz-adv-x="555.42" unicode="d"/>
+ <glyph d="M204 446C188 443 157 432 139 422C100 401 60 354 43 308C-13 157 84 -2 237 -11C313 -15 383 29 409 98C417 120 415 129 402 129C392 129 391 128 384 108C366 62 332 31 287 19C228 3 164 35 135 94C120 124 114 150 112 196L110 231H261C429 231 415 229 415 254C415 297 402 344 380 377C363 402 347 416 320 429C287 445 239 452 204 446ZM276 414C317 393 340 347 345 282L347 255H229H111L112 262C113 266 114 277 116 287C122 342 151 392 189 412C216 426 250 427 276 414Z" horiz-adv-x="444.336" unicode="e"/>
+ <glyph d="M398 447C378 442 357 432 340 418C327 408 325 407 320 411C309 419 272 435 256 439C173 456 84 406 64 329C53 286 65 239 95 207L106 196L95 178C71 140 68 95 86 59C92 48 100 35 106 31L116 22L95 12C70 0 46 -21 35 -43C24 -66 25 -98 37 -120C56 -154 103 -185 161 -200C188 -208 195 -208 248 -208C300 -208 308 -208 335 -200C393 -185 440 -154 458 -120C486 -68 457 10 398 40C358 60 318 66 222 66C163 66 153 67 142 72C120 82 107 104 107 134C107 152 117 182 123 179C141 169 173 156 186 153C239 142 297 158 335 196C376 234 390 280 377 329C372 349 359 375 349 383C346 386 343 390 343 391C343 396 370 413 386 418C395 421 409 425 418 426L434 428L428 420C420 410 419 400 426 388C431 377 439 373 451 373C456 373 463 374 466 376C474 380 481 394 481 404C481 416 471 435 460 443C448 451 421 453 398 447ZM256 410C270 403 287 388 294 375C311 342 311 250 294 217C269 171 200 161 162 199C141 220 133 254 136 309C138 361 148 386 173 403C196 419 230 421 256 410ZM311 2C362 -4 391 -19 406 -45C417 -65 417 -95 404 -117C389 -144 355 -166 309 -179C282 -187 214 -187 186 -179C140 -166 106 -144 91 -117C84 -103 82 -97 82 -79C82 -41 103 -11 139 0C152 4 165 5 221 5C258 5 299 4 311 2Z" horiz-adv-x="499.878" unicode="g"/>
+ <glyph d="M102 689C70 686 41 683 39 683S36 678 36 668V654L59 652C88 650 99 646 106 632C111 622 111 602 111 337C111 15 113 38 87 33C78 31 63 30 54 30H36V15V1H144H252V15V30H235C205 30 187 35 182 45C178 52 177 97 177 374V695H169C164 694 134 692 102 689Z" horiz-adv-x="277.71" unicode="l"/>
+ <glyph d="M100 436C69 433 41 430 38 430C34 430 33 427 33 415V401L58 399C88 397 99 393 106 379C110 369 111 355 111 211C111 30 112 38 87 33C78 31 63 30 52 30H33V15V1H146H258V15V30H239C208 30 190 35 185 45C178 57 178 271 185 302C191 330 204 357 223 377C263 422 335 431 365 396C386 372 386 371 387 204C388 31 389 38 364 33C355 31 340 30 329 30H310V15V1H423H536V15V30H516C485 30 467 35 462 45C455 57 455 271 462 302C468 330 481 357 500 377C541 422 612 431 642 396C663 372 663 371 664 204C665 31 666 38 641 33C632 31 617 30 606 30H587V15V1H700H813V15V30H793C765 30 744 35 739 43C737 48 735 88 734 198C733 341 732 348 726 364C713 400 691 422 657 434C635 441 593 444 568 439C528 432 484 399 464 363C456 350 454 349 453 353C438 399 418 420 380 434C358 441 316 444 291 439C250 431 205 398 184 359L174 341V392V442H166C161 442 132 439 100 436Z" horiz-adv-x="833.13" unicode="m"/>
+ <glyph d="M97 436C66 433 38 430 35 430C31 430 30 427 30 415V401L55 399C85 397 96 393 103 379C107 369 108 355 108 211C108 30 109 38 84 33C75 31 60 30 49 30H30V15V1H143H255V15V30H236C205 30 187 35 182 45C175 57 175 271 182 302C188 330 201 357 220 377C260 422 332 431 362 396C383 372 383 371 384 204C385 31 386 38 361 33C352 31 337 30 326 30H307V15V1H420H532V15V30H513C485 30 464 35 459 43C457 48 455 88 454 198C453 341 452 348 446 364C428 413 392 438 333 441C300 443 275 439 248 425C222 411 194 384 181 359L171 341V392V442H163C158 442 129 439 97 436Z" horiz-adv-x="555.42" unicode="n"/>
+ <glyph d="M205 444C97 419 21 316 28 201C30 164 35 143 53 109C111 -8 260 -47 370 25C412 53 449 105 462 155C470 184 471 226 465 257C444 366 359 444 255 447C235 448 217 447 205 444ZM295 415C343 396 374 352 382 289C386 256 386 180 381 149C371 87 348 50 305 28C248 0 177 18 142 71C118 108 109 156 112 242C114 301 117 320 133 352C149 385 182 412 218 421C237 426 276 423 295 415Z" horiz-adv-x="499.878" unicode="o"/>
+ <glyph d="M93 436C62 433 35 430 32 430C28 430 27 427 27 415V401L52 399C82 397 93 393 100 379C104 369 105 355 105 211C105 30 106 38 81 33C72 31 57 30 46 30H27V15V1H147H268V15V29L232 30C193 32 181 36 175 48C169 59 170 248 176 285C189 365 225 412 279 417C296 419 296 419 289 413C285 411 280 404 278 398C270 379 274 361 290 346C297 339 301 338 317 338S337 339 344 346C367 367 366 398 341 421C324 437 313 441 286 441C263 441 258 440 240 431C214 418 193 395 177 363L165 338V390V442H157C152 442 123 439 93 436Z" horiz-adv-x="391.571" unicode="r"/>
+ <glyph d="M148 445C111 439 76 420 59 399C54 393 47 380 42 371C31 347 31 307 41 284C51 263 66 246 87 232C112 215 132 208 190 197C245 185 265 178 284 160C306 138 313 112 307 80C300 47 275 24 236 16C146 -2 90 37 65 138C58 166 57 167 49 168C44 168 38 167 36 164C33 161 33 137 33 74L34 -10L42 -11C48 -12 53 -8 68 10L88 33L99 22C127 -2 165 -14 213 -11C248 -8 276 0 299 14C321 28 331 39 343 63C369 114 360 174 321 215C291 247 269 257 194 272C137 284 117 292 99 309C79 329 76 357 90 385C102 409 133 424 179 426C255 431 298 395 306 319L308 299H320H332V373V447L325 448C320 448 314 445 302 433L287 418L275 426C254 440 233 446 197 447C179 447 156 447 148 445Z" horiz-adv-x="394.348" unicode="s"/>
+ <glyph d="M142 581C133 493 90 433 32 425C18 423 18 423 18 412V400H60H102V251C102 164 103 96 105 87C114 37 149 1 198 -8C257 -21 300 3 322 64C327 79 329 91 330 131L331 180H318H304L303 133C301 81 298 64 283 41C264 11 224 6 198 31C173 55 171 68 171 249V400H242H313V415V430H242H171V522V614H158H145Z" horiz-adv-x="388.794" unicode="t"/>
+ <glyph d="M100 436C67 433 38 430 35 430C31 430 30 427 30 415V400H48C75 399 93 394 100 384C106 376 106 372 108 229C110 84 110 82 116 65C131 29 155 8 193 -3C211 -9 222 -10 254 -10C292 -10 294 -10 313 0C338 10 360 30 376 55L388 73V30C388 7 389 -12 390 -11C391 -11 423 -9 460 -6C497 -2 529 0 530 0S532 6 532 14V29L507 30C477 32 466 37 459 51C455 60 454 76 454 252C454 356 454 442 453 442C453 442 421 439 382 436S310 430 309 430S307 424 307 415V401L332 399C362 397 373 393 380 379C384 369 385 357 385 255C385 129 383 115 366 79C353 53 333 33 310 21C295 14 290 13 261 13S228 14 212 22C192 32 185 42 180 69C178 78 177 155 177 263V442H169C164 442 134 439 100 436Z" horiz-adv-x="555.42" unicode="u"/>
+ <glyph d="M18 414V400H35C71 400 86 392 96 367C100 359 135 274 175 176L247 0L228 -45C203 -108 188 -136 170 -154C147 -178 125 -186 98 -182C91 -181 81 -177 75 -174L65 -168L78 -161C95 -153 103 -139 101 -119C98 -83 54 -69 28 -96C20 -104 19 -107 19 -125C19 -149 26 -164 44 -181S81 -206 109 -206C131 -206 136 -205 154 -196C178 -184 204 -158 221 -126C228 -113 275 -3 325 118C375 241 419 347 423 354C437 379 461 395 491 399L505 401V415V429H424H343V415C343 401 343 401 356 398C374 393 385 380 387 362C388 348 384 337 336 219C308 148 283 91 282 92C279 95 172 358 169 368C168 372 169 378 170 382C172 390 193 400 210 400H222V414V429H120H18Z" horiz-adv-x="527.649" unicode="y"/>
+ </font>
+ <font horiz-adv-x="0" id="ecsl1000">
+ <font-face font-family="ecsl1000" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M246 443C191 432 151 404 133 366C119 335 127 307 152 298C184 287 219 314 219 349C219 361 218 366 210 374C205 379 197 385 192 387L182 390L194 398C210 409 249 421 277 423C310 426 331 419 350 399C376 373 382 338 372 284L368 263L350 261C340 260 318 257 300 256C250 250 203 237 163 218C134 204 125 197 105 178C75 148 60 119 57 87C56 68 57 64 64 49C82 13 124 -7 185 -11C220 -13 243 -8 273 6C294 17 323 42 337 61L346 73V62C346 33 364 4 387 -3C413 -11 453 1 475 25C492 44 501 64 507 99C509 115 512 131 513 136C515 144 515 144 501 144C486 144 488 148 480 99C477 83 472 63 468 55C456 29 432 19 417 34C403 47 404 55 425 186C449 324 450 340 435 370C418 405 378 434 335 444C309 449 272 449 246 443ZM364 237C364 236 359 208 353 175C341 101 334 84 305 55C273 23 227 6 190 14C167 19 152 30 142 50C135 64 134 69 136 85C141 148 193 201 271 223C302 232 364 241 364 237Z" horiz-adv-x="499.878" unicode="a"/>
+ <glyph d="M480 689C446 686 417 683 416 682C416 682 414 675 413 667L411 654L435 652C449 651 463 649 468 646C484 639 484 635 464 510C453 447 444 393 443 389C442 383 440 384 426 399C385 442 325 454 255 430C210 415 186 400 149 362C105 318 81 277 70 225C56 152 74 85 120 39C186 -27 286 -28 365 35L384 50L379 19C376 3 374 -10 374 -11C375 -12 521 0 522 0C523 1 524 7 525 15L527 30H510C487 30 467 35 462 43C459 46 457 53 457 59C457 64 480 207 508 376C537 545 560 686 560 689C560 696 565 696 480 689ZM365 412C389 404 410 386 423 362L433 344L412 222L392 100L381 84C337 24 260 -2 206 21C153 46 135 107 153 210C163 272 175 307 197 340C237 401 306 430 365 412Z" horiz-adv-x="555.42" unicode="d"/>
+ <glyph d="M266 444C223 434 184 413 150 380C112 343 85 300 70 250C63 227 62 219 62 182C62 144 62 137 70 115C91 52 143 5 206 -7C294 -26 384 18 429 103C436 117 437 120 433 124C431 127 425 129 421 129C414 129 411 127 405 115C381 67 338 32 289 19C239 6 187 25 163 66C150 88 144 107 142 138C140 160 144 204 149 225L151 231H301H451L455 238C457 243 458 260 459 289C459 326 458 335 452 354C439 395 409 425 367 439C342 448 292 450 266 444ZM347 414C366 403 376 391 384 369C393 344 395 316 393 281L390 255H273C209 255 156 256 156 257C156 263 166 296 173 313C194 366 240 410 283 421C301 426 333 422 347 414Z" horiz-adv-x="444.336" unicode="e"/>
+ <glyph d="M212 689C178 686 149 683 148 682C148 682 147 675 146 668L143 654L168 652C196 650 208 645 212 634C216 621 122 53 113 43C107 35 86 30 58 30C40 30 39 30 38 20C33 0 24 1 146 1C245 1 255 1 255 6C255 9 256 15 257 20L259 29L231 30C215 31 201 33 198 34C184 39 184 35 239 367C268 541 292 686 292 689C292 696 297 696 212 689Z" horiz-adv-x="277.71" unicode="l"/>
+ <glyph d="M167 436C132 433 104 430 103 429C102 429 101 422 100 415L98 401L122 399C136 398 150 396 155 394C172 386 172 385 143 214C129 127 115 52 113 48C108 36 95 32 64 30C48 29 36 28 36 27C35 26 34 20 33 13L31 1H143H255L257 12C258 17 258 24 258 25C258 27 248 29 231 30C215 31 201 33 198 34C185 39 185 47 205 167C216 230 228 289 231 299C252 358 305 406 361 416C414 425 439 405 439 352C439 325 397 62 390 48C385 36 372 32 341 30C325 29 313 28 313 27C312 26 311 20 310 13L308 1H420H532L534 12C535 17 535 24 535 25C535 27 525 29 508 30C492 31 478 33 475 34C462 39 462 45 486 187C505 299 509 327 508 347C505 407 470 438 403 441C368 443 342 438 312 422C288 409 252 377 237 355C230 345 228 343 230 349C233 364 243 429 243 436S251 443 167 436Z" horiz-adv-x="555.42" unicode="n"/>
+ <glyph d="M227 446C144 435 87 378 87 309C87 290 88 284 96 268C115 231 147 213 224 196C291 182 306 174 320 146C329 127 330 112 322 86C307 40 261 12 198 12C130 11 95 52 88 136C87 150 85 162 83 164C80 169 64 169 62 166C58 160 32 -3 34 -7C38 -17 49 -12 72 10L94 32L110 18C135 -5 152 -10 201 -10C237 -10 245 -8 266 -2C326 17 365 60 378 121C386 160 377 193 350 222C326 248 303 259 240 272C186 283 165 291 152 306C137 325 135 345 147 371C162 405 207 427 263 427C301 427 330 415 345 393C355 378 362 348 360 325C359 313 359 304 361 302C365 297 381 296 383 300C386 305 406 431 405 439C404 452 394 450 375 435C358 421 351 418 347 424C344 430 318 441 301 445C286 448 246 449 227 446Z" horiz-adv-x="394.348" unicode="s"/>
+ <glyph d="M240 587C218 498 163 432 102 425C89 423 87 422 87 416C87 413 86 407 85 405C83 401 88 400 126 400C149 400 168 399 168 398S157 331 144 252C116 86 115 71 130 41C147 6 178 -9 225 -10C251 -10 256 -9 271 -2C300 12 330 49 343 88C346 98 351 119 353 135C356 151 359 167 360 172C361 180 361 180 348 180C340 180 334 180 334 179S330 159 326 136C311 53 276 9 230 16C214 18 204 26 196 42C184 66 186 85 213 250L238 400H309H379L380 407C381 410 382 417 383 422L385 430H314C275 430 243 431 243 432C243 434 270 595 272 606C274 614 274 614 261 614H247Z" horiz-adv-x="388.794" unicode="t"/>
+ </font>
+ <font horiz-adv-x="0" id="ecss1000">
+ <font-face font-family="ecss1000" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M194 461C176 459 142 450 125 443C101 433 75 418 75 414C75 405 81 354 82 353S88 355 95 359C134 386 177 400 224 401C259 401 271 397 291 374C311 352 316 333 318 287L319 247L285 245C184 239 107 213 71 174C49 151 43 133 46 103C50 50 82 4 124 -7C167 -20 255 -4 305 25L322 35V17V0H359H397V157C397 330 396 334 378 373C366 398 331 435 307 446C275 461 236 466 194 461ZM319 152C319 120 317 110 313 100C293 56 205 36 151 64C137 71 121 91 118 103C113 129 125 148 153 162C186 179 246 191 294 192H319Z" horiz-adv-x="480.438" unicode="a"/>
+ <glyph d="M196 459C137 445 80 394 54 331C38 293 34 273 34 227C34 176 39 156 60 111C73 84 79 76 103 52C133 22 156 7 191 -2C250 -21 329 -9 388 26L408 38L407 53C407 61 406 76 405 86L403 104L381 91C328 56 259 42 214 56C188 64 172 75 151 97C125 125 110 159 103 205L102 219H257H412V235C412 277 399 339 385 368C355 427 305 460 242 462C226 463 207 461 196 459ZM284 388C306 377 324 359 336 335C344 320 355 286 355 278C355 277 299 277 231 277H107L110 283C127 341 162 382 205 396C226 403 261 399 284 388Z" horiz-adv-x="444.336" unicode="e"/>
+ <glyph d="M223 729C181 718 142 684 120 641C102 604 99 584 99 509V445H61H24V415V385H61H99V192V0H137H174V192V385H228H283V415V445H227H171L172 529C173 604 173 613 178 624C198 664 248 680 305 665C318 662 332 658 336 657C343 655 343 655 343 689V722L330 725C294 735 250 737 223 729Z" horiz-adv-x="305.481" unicode="f"/>
+ <glyph d="M72 638V593H117H162V638V683H117H72ZM81 222V0H118H156V222V445H118H81Z" horiz-adv-x="238.831" unicode="i"/>
+ <glyph d="M257 452C227 445 202 431 176 406L153 383V417V451H117H81V225V0H120H159L160 145C161 266 162 293 166 306C183 361 210 390 250 393C286 397 324 383 338 361C354 337 355 328 355 157V0H394H433V163C433 339 432 357 417 389C397 433 353 458 295 457C284 457 267 455 257 452Z" horiz-adv-x="516.541" unicode="n"/>
+ <glyph d="M274 451C231 440 195 417 167 383L152 364L151 408L150 451H115H81V225V0H118H156L157 127L158 254L166 274C183 318 209 350 245 369C264 379 295 388 312 388H322V423V457H309C302 457 286 454 274 451Z" horiz-adv-x="341.583" unicode="r"/>
+ <glyph d="M151 460C96 450 58 423 41 380C36 366 34 356 34 332C34 306 35 300 42 285C58 252 95 220 133 208C143 204 169 198 191 194C248 182 268 171 280 146C295 113 280 78 246 62C232 56 226 55 191 55C160 56 146 57 126 62C99 70 63 85 48 96L39 102L36 86C33 70 27 35 27 34C27 31 64 14 87 6C125 -6 150 -10 197 -10C229 -10 243 -9 257 -4C312 11 345 46 355 98C364 145 350 188 315 222C287 248 263 259 201 272C173 277 146 285 139 288C95 310 94 370 137 391C150 398 155 398 197 398C247 398 270 394 309 376C323 370 329 368 331 370C332 372 335 384 337 397C339 409 341 422 342 426C343 431 340 433 323 440C287 455 257 460 210 462C186 462 160 462 151 460Z" horiz-adv-x="383.24" unicode="s"/>
+ </font>
+ <font horiz-adv-x="0" id="ecti1000">
+ <font-face font-family="ecti1000" units-per-em="1000"/>
+ <missing-glyph d=""/>
+ <glyph d="M301 437C265 428 233 407 200 372C140 311 105 225 105 143C105 88 119 49 150 19C175 -3 190 -10 224 -10C250 -10 253 -9 274 0C290 8 305 19 322 35C342 54 346 56 348 52C359 15 385 -7 419 -11C470 -16 501 22 526 120C534 148 532 153 517 153C506 153 502 147 492 107C481 66 463 28 448 18C420 0 400 21 404 64C406 74 424 153 445 238C467 324 484 396 484 399C484 401 480 407 476 412C459 429 430 420 421 395L416 382L409 396C389 434 348 450 301 437ZM357 412C376 403 388 386 397 350L403 327L376 219C361 159 347 107 344 102C337 88 307 53 292 41C218 -19 162 20 174 126C179 165 208 277 220 307C257 391 311 433 357 412Z" horiz-adv-x="510.986" unicode="a"/>
+ <glyph d="M472 689C440 685 412 681 410 679C407 677 406 672 407 665L408 654L436 653C469 650 478 647 478 637C478 633 465 575 448 506L417 382L409 397C371 462 286 455 208 381C144 320 105 229 105 143C105 88 119 49 150 19C175 -3 190 -10 224 -10C250 -10 253 -9 274 0C290 8 305 19 322 35C342 54 346 56 348 52C359 15 385 -7 419 -11C470 -16 501 22 526 120C534 148 532 153 517 153C506 153 502 147 492 107C481 66 463 28 448 18C420 0 400 21 404 64C406 74 440 218 482 383C534 591 556 686 554 689C550 695 539 695 472 689ZM357 412C376 403 388 386 397 350L403 327L376 219C361 159 347 107 344 102C337 88 307 53 292 41C218 -19 162 20 174 126C179 165 208 277 220 307C257 391 311 433 357 412Z" horiz-adv-x="510.986" unicode="d"/>
+ <glyph d="M325 439C274 428 227 402 188 360C137 307 114 252 112 174C110 139 111 129 117 108C137 26 190 -15 266 -11C300 -8 326 -2 357 12C390 27 413 43 438 69C466 98 468 102 460 112C457 116 452 120 450 120S439 111 430 101C393 57 345 27 292 16C251 7 228 12 208 31C178 61 172 124 191 208L196 228H214C246 228 313 234 336 239C400 252 440 283 455 328C461 350 462 361 456 381C445 417 410 440 364 441C350 441 332 441 325 439ZM381 415C409 408 427 378 423 348C414 291 367 263 262 255C238 253 214 252 210 253L201 254L211 283C225 323 241 350 264 373C302 410 342 424 381 415Z" horiz-adv-x="459.888" unicode="e"/>
+ <glyph d="M219 689C187 685 159 681 157 679C154 677 153 672 154 665L155 654L183 653C217 650 225 647 225 636C225 632 191 491 149 322C106 153 72 12 72 10C72 1 89 -12 99 -12C113 -12 128 -2 134 9C136 15 153 79 171 153C192 234 207 292 212 302C236 350 271 389 302 404C323 414 352 420 367 417C392 412 405 384 402 341C400 309 381 236 356 167C345 135 334 101 332 91C312 10 393 -42 458 8C486 30 512 73 527 122C534 147 532 153 517 153C506 153 503 149 496 123C478 57 442 12 407 12C391 12 385 20 385 41C385 61 391 82 419 164C430 195 444 239 451 261C460 297 462 306 462 337C462 367 461 374 455 387C446 406 426 425 407 434C386 444 337 443 309 434C287 426 261 409 241 390C234 383 228 379 228 380S245 450 266 534C307 699 307 695 287 695C282 695 252 692 219 689Z" horiz-adv-x="510.986" unicode="h"/>
+ <glyph d="M272 655C259 649 244 631 242 618C239 604 246 589 259 582C280 571 308 585 319 610C325 622 325 625 322 635C316 656 294 664 272 655ZM183 438C142 424 105 374 86 309C79 283 81 277 96 277C107 277 109 279 118 311C140 382 170 418 207 418C218 418 222 414 225 402C231 378 226 363 167 201C132 108 128 95 127 73C126 53 126 46 132 33C140 15 160 -3 177 -8C234 -25 291 24 320 118C329 147 328 153 313 153C302 153 298 149 291 123C282 89 260 46 245 31C228 14 203 7 189 15C181 19 179 39 184 64C187 76 209 142 234 210C285 348 288 361 278 390C265 430 222 452 183 438Z" horiz-adv-x="306.592" unicode="i"/>
+ <glyph d="M158 437C133 425 115 399 100 355C85 313 79 286 84 281C88 276 103 275 107 280C109 282 113 295 117 308C136 382 154 414 179 417C202 420 212 400 207 358C205 346 186 263 163 174C141 84 124 8 125 5C127 -2 141 -12 151 -12C164 -12 180 -1 185 10C187 15 204 80 222 154C259 300 262 309 297 354C328 395 365 416 407 416C430 417 431 416 441 406C453 392 459 368 456 337C455 325 437 247 416 164C396 82 379 12 379 10C379 1 396 -12 407 -12C420 -12 436 -1 441 10C443 16 460 80 478 153C499 235 514 292 519 301C544 350 578 389 609 404C630 414 659 420 674 417C699 412 712 384 709 341C707 309 688 236 663 167C630 73 629 55 648 23C665 -4 702 -18 733 -9C774 3 813 54 834 122C841 147 839 153 825 153C814 153 810 149 803 123C785 57 749 12 714 12C698 12 692 20 692 41C692 61 698 82 727 164C738 195 752 239 758 261C767 297 769 306 769 337C769 367 768 374 762 387C753 406 734 425 714 434C693 444 644 443 616 434C584 423 553 398 526 364L518 354L516 363C511 385 503 399 489 414C439 464 339 446 281 376L268 361L266 371C261 398 243 422 221 434C203 443 173 444 158 437Z" horiz-adv-x="817.578" unicode="m"/>
+ <glyph d="M158 437C133 425 115 399 100 355C85 313 79 286 84 281C88 276 103 275 107 280C109 282 113 295 117 308C136 382 154 414 179 417C202 420 213 398 207 359C203 333 85 -140 79 -150C74 -160 60 -165 35 -165C19 -165 17 -166 14 -172C12 -176 12 -183 13 -187L14 -194H115H216L220 -185C226 -170 221 -167 186 -165C164 -163 154 -162 151 -158C146 -153 147 -146 168 -63C180 -14 191 30 193 35L196 45L202 35C211 20 228 3 242 -4C260 -13 301 -13 327 -2C400 27 461 97 490 185C528 297 505 396 433 431C416 440 411 441 388 441C364 441 360 440 338 429C322 421 308 410 291 395C278 382 267 373 267 373C266 374 264 380 261 387C256 404 237 425 221 434C203 443 173 444 158 437ZM404 414C418 408 428 393 435 372C439 357 440 346 438 317C436 257 402 134 376 88C352 48 317 17 290 13C251 7 221 37 212 93C210 101 217 132 237 213C263 315 265 323 277 340C316 398 369 429 404 414Z" horiz-adv-x="510.986" unicode="p"/>
+ <glyph d="M272 439C215 427 167 378 154 316C149 289 152 269 164 246C180 217 199 206 255 193C299 183 316 174 327 153C344 120 328 67 290 38C266 20 242 13 203 13C162 13 141 20 121 40C108 54 102 66 110 66C113 66 121 69 128 72C150 83 163 114 153 132C146 146 119 151 102 143C72 127 63 85 81 48C102 6 149 -14 214 -11C286 -7 342 26 371 85C399 141 396 189 363 228C347 245 316 260 274 269C233 278 222 284 213 303C196 337 221 391 262 409C275 415 283 416 307 416C333 417 337 416 351 408C367 399 376 389 380 377C382 371 381 370 373 368C368 367 359 361 353 355C345 345 343 340 343 329S344 315 352 308C369 294 394 301 407 325C416 340 416 373 407 389C398 407 380 423 360 432C345 438 336 440 314 441C299 441 280 440 272 439Z" horiz-adv-x="408.789" unicode="s"/>
+ <glyph d="M234 438C214 431 196 418 181 401C163 382 145 346 143 331C143 320 143 320 155 319C168 318 168 319 174 331C186 360 213 377 248 377C267 377 272 376 300 363C318 355 340 346 350 344L368 340L257 229C145 118 110 78 77 28C57 -2 56 -10 72 -11C83 -12 84 -11 98 9C130 56 162 73 188 57C193 54 203 45 209 37C242 -4 256 -13 284 -11C342 -6 399 47 424 122C432 145 430 150 415 150C405 150 402 149 400 142C382 99 363 77 331 62C314 54 308 52 289 52C269 52 263 54 242 64C208 80 187 87 170 87H156L162 96C166 101 219 156 281 217C363 299 399 338 417 361C445 399 464 430 463 436C462 439 457 441 449 442C437 442 437 442 426 423C408 393 395 377 384 372C363 362 346 368 326 393C289 440 268 450 234 438Z" horiz-adv-x="408.789" unicode="z"/>
+ </font>
+ </defs>
+ <style type="text/css">text.f1 {font-family:cmex10;font-size:10}
+text.f2 {font-family:cmmi10;font-size:10}
+text.f3 {font-family:cmmi7;font-size:7}
+text.f4 {font-family:cmr10;font-size:10}
+text.f5 {font-family:cmr7;font-size:7}
+text.f6 {font-family:cmsy10;font-size:10}
+text.f7 {font-family:cmsy7;font-size:7}
+text.f8 {font-family:ecbx1000;font-size:10}
+text.f9 {font-family:eccc1000;font-size:10}
+text.f10 {font-family:ecrm1000;font-size:10}
+text.f11 {font-family:ecsl1000;font-size:10}
+text.f12 {font-family:ecss1000;font-size:10}
+text.f13 {font-family:ecti1000;font-size:10}
+</style>
+ <g id="page1" transform="matrix(0.996 0 0 0.996 0 0)">
+ <text class="f10" x="77" y="63">Color<tspan x="104.243">test:</tspan>
+<tspan fill="#ff0000" x="127.627">red,</tspan>
+<tspan fill="#0000ff" x="147.649">blue,</tspan>
+<tspan fill="#ff00ff" x="172.088">magen</tspan>
+<tspan fill="#ff00ff" x="200.137">ta</tspan>
+</text>
+ <text class="f1" x="164.374" y="78.8467">&#x345A;</text>
+ <text class="f3" x="174.374" y="81.3189">x</text>
+ <text class="f5" x="169.929" y="101.569">0</text>
+ <text class="f4" x="181.075" y="92.4579">cos</text>
+ <text class="f2" x="196.131" y="92.4579">t</text>
+ <text class="f10" x="201.408" y="92.4579">d</text>
+ <text class="f2" x="206.962" y="92.4579">t</text>
+ <text class="f4" x="213.351" y="92.4579">=</text>
+ <text class="f7" x="227.193" y="79.9579">&#x221E;</text>
+ <text class="f1" x="223.957" y="82.9578">&#x3458;</text>
+ <text class="f3" x="223.907" y="104.486">k</text>
+ <text class="f5" x="228.327" y="104.486">=0</text>
+ <text class="f4" x="238.452" y="92.4579">(</text>
+ <text class="f6" x="242.341" y="92.4579">&#x3400;</text>
+ <text class="f4" x="250.119" y="92.4579">1)</text>
+ <text class="f3" x="259.008" y="88.329">k</text>
+ <text class="f2" x="271.904" y="85.6928">x</text>
+ <text class="f5" x="277.619" y="82.0639">2</text>
+ <text class="f3" x="281.605" y="82.0639">k</text>
+ <text class="f5" x="286.025" y="82.0639">+1</text>
+ <rect height="0.399979" width="38.2986" x="265.128" y="89.7579"/>
+ <text class="f4" x="265.128" y="99.3174">(2</text>
+ <text class="f2" x="274.017" y="99.3174">k</text>
+ <text class="f4" x="281.76" y="99.3174">+<tspan x="291.76">1)!</tspan>
+</text>
+ <text class="f10" x="77" y="123.706">F<tspan x="82.6931">on</tspan>
+<tspan x="92.9683">t</tspan>
+<tspan x="100.189">st</tspan>
+<tspan x="107.742">yles:</tspan>
+</text>
+ <text class="f8" x="131.403" y="123.706">b<tspan x="138.11">old</tspan>
+</text>
+ <text class="f10" x="153.44" y="123.706">,</text>
+ <text class="f13" x="159.549" y="123.706">emphasize<tspan x="202.983">d</tspan>
+</text>
+ <text class="f10" x="208.093" y="123.706">,</text>
+ <text class="f12" x="214.203" y="123.706">sans<tspan x="235.17">serif</tspan>
+</text>
+ <text class="f10" x="252.304" y="123.706">,</text>
+ <text class="f9" x="258.414" y="123.706">Small<tspan x="292.161">Caps</tspan>
+</text>
+ <text class="f10" x="316.305" y="123.706">,</text>
+ <text class="f11" x="322.415" y="123.706">slan<tspan x="339.411">ted</tspan>
+</text>
+ <text class="f10" x="232.001" y="633">1</text>
+ </g>
+</svg>
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample.dvi b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample.dvi
new file mode 100644
index 00000000000..87e6236021d
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample.dvi
Binary files differ
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample.sfd b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample.sfd
new file mode 100644
index 00000000000..e7c84c7b5e1
--- /dev/null
+++ b/Build/source/texk/dvisvgm/dvisvgm-1.2.2/tests/sample.sfd
@@ -0,0 +1,293 @@
+00 0x0000_0x00FF
+01 0x3000 0x3001 0x3002 0x00B7 0x02C9 0x02C7 0x00A8 0x3003 \
+ 0x3005 0x2014 0xFF5E 0x2016 0x2026 0x2018 0x2019 0x201C \
+ 0x201D 0x3014 0x3015 0x3008 0x3009 0x300A 0x300B 0x300C \
+ 0x300D 0x300E 0x300F 0x3016 0x3017 0x3010 0x3011 0x00B1 \
+ 0x00D7 0x00F7 0x2236 0x2227 0x2228 0x2211 0x220F 0x222A \
+ 0x2229 0x2208 0x2237 0x221A 0x22A5 0x2225 0x2220 0x2312 \
+ 0x2299 0x222B 0x222E 0x2261 0x224C 0x2248 0x223D 0x221D \
+ 0x2260 0x226E 0x226F 0x2264 0x2265 0x221E 0x2235 0x2234 \
+ 0x2642 0x2640 0x00B0 0x2032 0x2033 0x2103 0xFF04 0x00A4 \
+ 0xFFE0 0xFFE1 0x2030 0x00A7 0x2116 0x2606 0x2605 0x25CB \
+ 0x25CF 0x25CE 0x25C7 0x25C6 0x25A1 0x25A0 0x25B3 0x25B2 \
+ 0x203B 0x2192 0x2190 0x2191 0x2193 0x3013 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0x2488 0x2489 \
+ 0x248A 0x248B 0x248C 0x248D 0x248E 0x248F 0x2490 0x2491 \
+ 0x2492 0x2493 0x2494 0x2495 0x2496 0x2497 0x2498 0x2499 \
+ 0x249A 0x249B 0x2474 0x2475 0x2476 0x2477 0x2478 0x2479 \
+ 0x247A 0x247B 0x247C 0x247D 0x247E 0x247F 0x2480 0x2481 \
+ 0x2482 0x2483 0x2484 0x2485 0x2486 0x2487 0x2460 0x2461 \
+ 0x2462 0x2463 0x2464 0x2465 0x2466 0x2467 0x2468 0x2469 \
+ 0xFFFE 0xFFFE 0x3220 0x3221 0x3222 0x3223 0x3224 0x3225 \
+ 0x3226 0x3227 0x3228 0x3229 0xFFFE 0xFFFE 0x2160 0x2161 \
+ 0x2162 0x2163 0x2164 0x2165 0x2166 0x2167 0x2168 0x2169 \
+ 0x216A 0x216B 0xFFFE 0xFFFE 0xFF01 0xFF02 0xFF03 0xFFE5 \
+ 0xFF05 0xFF06 0xFF07 0xFF08 0xFF09 0xFF0A 0xFF0B 0xFF0C \
+ 0xFF0D 0xFF0E 0xFF0F 0xFF10 0xFF11 0xFF12 0xFF13 0xFF14 \
+ 0xFF15 0xFF16 0xFF17 0xFF18 0xFF19 0xFF1A 0xFF1B 0xFF1C \
+ 0xFF1D 0xFF1E 0xFF1F 0xFF20 0xFF21 0xFF22 0xFF23 0xFF24 \
+ 0xFF25 0xFF26 0xFF27 0xFF28 0xFF29 0xFF2A 0xFF2B 0xFF2C \
+ 0xFF2D 0xFF2E 0xFF2F 0xFF30 0xFF31 0xFF32 0xFF33 0xFF34 \
+ 0xFF35 0xFF36 0xFF37 0xFF38 0xFF39 0xFF3A 0xFF3B 0xFF3C \
+ 0xFF3D 0xFF3E 0xFF3F 0xFF40 0xFF41 0xFF42 0xFF43 0xFF44
+02 0xFF45 0xFF46 0xFF47 0xFF48 0xFF49 0xFF4A 0xFF4B 0xFF4C \
+ 0xFF4D 0xFF4E 0xFF4F 0xFF50 0xFF51 0xFF52 0xFF53 0xFF54 \
+ 0xFF55 0xFF56 0xFF57 0xFF58 0xFF59 0xFF5A 0xFF5B 0xFF5C \
+ 0xFF5D 0xFFE3 0x3041 0x3042 0x3043 0x3044 0x3045 0x3046 \
+ 0x3047 0x3048 0x3049 0x304A 0x304B 0x304C 0x304D 0x304E \
+ 0x304F 0x3050 0x3051 0x3052 0x3053 0x3054 0x3055 0x3056 \
+ 0x3057 0x3058 0x3059 0x305A 0x305B 0x305C 0x305D 0x305E \
+ 0x305F 0x3060 0x3061 0x3062 0x3063 0x3064 0x3065 0x3066 \
+ 0x3067 0x3068 0x3069 0x306A 0x306B 0x306C 0x306D 0x306E \
+ 0x306F 0x3070 0x3071 0x3072 0x3073 0x3074 0x3075 0x3076 \
+ 0x3077 0x3078 0x3079 0x307A 0x307B 0x307C 0x307D 0x307E \
+ 0x307F 0x3080 0x3081 0x3082 0x3083 0x3084 0x3085 0x3086 \
+ 0x3087 0x3088 0x3089 0x308A 0x308B 0x308C 0x308D 0x308E \
+ 0x308F 0x3090 0x3091 0x3092 0x3093 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0x30A1 0x30A2 0x30A3 0x30A4 0x30A5 0x30A6 0x30A7 0x30A8 \
+ 0x30A9 0x30AA 0x30AB 0x30AC 0x30AD 0x30AE 0x30AF 0x30B0 \
+ 0x30B1 0x30B2 0x30B3 0x30B4 0x30B5 0x30B6 0x30B7 0x30B8 \
+ 0x30B9 0x30BA 0x30BB 0x30BC 0x30BD 0x30BE 0x30BF 0x30C0 \
+ 0x30C1 0x30C2 0x30C3 0x30C4 0x30C5 0x30C6 0x30C7 0x30C8 \
+ 0x30C9 0x30CA 0x30CB 0x30CC 0x30CD 0x30CE 0x30CF 0x30D0 \
+ 0x30D1 0x30D2 0x30D3 0x30D4 0x30D5 0x30D6 0x30D7 0x30D8 \
+ 0x30D9 0x30DA 0x30DB 0x30DC 0x30DD 0x30DE 0x30DF 0x30E0 \
+ 0x30E1 0x30E2 0x30E3 0x30E4 0x30E5 0x30E6 0x30E7 0x30E8 \
+ 0x30E9 0x30EA 0x30EB 0x30EC 0x30ED 0x30EE 0x30EF 0x30F0 \
+ 0x30F1 0x30F2 0x30F3 0x30F4 0x30F5 0x30F6 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0x0391 0x0392 \
+ 0x0393 0x0394 0x0395 0x0396 0x0397 0x0398 0x0399 0x039A \
+ 0x039B 0x039C 0x039D 0x039E 0x039F 0x03A0 0x03A1 0x03A3 \
+ 0x03A4 0x03A5 0x03A6 0x03A7 0x03A8 0x03A9 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0x03B1 0x03B2 \
+ 0x03B3 0x03B4 0x03B5 0x03B6 0x03B7 0x03B8 0x03B9 0x03BA
+03 0x03BB 0x03BC 0x03BD 0x03BE 0x03BF 0x03C0 0x03C1 0x03C3 \
+ 0x03C4 0x03C5 0x03C6 0x03C7 0x03C8 0x03C9 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0x0410 0x0411 0x0412 0x0413 \
+ 0x0414 0x0415 0x0401 0x0416 0x0417 0x0418 0x0419 0x041A \
+ 0x041B 0x041C 0x041D 0x041E 0x041F 0x0420 0x0421 0x0422 \
+ 0x0423 0x0424 0x0425 0x0426 0x0427 0x0428 0x0429 0x042A \
+ 0x042B 0x042C 0x042D 0x042E 0x042F 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0x0430 0x0431 0x0432 0x0433 \
+ 0x0434 0x0435 0x0451 0x0436 0x0437 0x0438 0x0439 0x043A \
+ 0x043B 0x043C 0x043D 0x043E 0x043F 0x0440 0x0441 0x0442 \
+ 0x0443 0x0444 0x0445 0x0446 0x0447 0x0448 0x0449 0x044A \
+ 0x044B 0x044C 0x044D 0x044E 0x044F 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0x0101 0x00E1 0x01CE 0x00E0 0x0113 0x00E9 \
+ 0x011B 0x00E8 0x012B 0x00ED 0x01D0 0x00EC 0x014D 0x00F3 \
+ 0x01D2 0x00F2 0x016B 0x00FA 0x01D4 0x00F9 0x01D6 0x01D8 \
+ 0x01DA 0x01DC 0x00FC 0x00EA 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0x3105 0x3106 \
+ 0x3107 0x3108 0x3109 0x310A 0x310B 0x310C 0x310D 0x310E \
+ 0x310F 0x3110 0x3111 0x3112 0x3113 0x3114 0x3115 0x3116 \
+ 0x3117 0x3118 0x3119 0x311A 0x311B 0x311C 0x311D 0x311E \
+ 0x311F 0x3120 0x3121 0x3122 0x3123 0x3124 0x3125 0x3126 \
+ 0x3127 0x3128 0x3129 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0x2500 0x2501 0x2502 0x2503 0x2504 \
+ 0x2505 0x2506 0x2507 0x2508 0x2509 0x250A 0x250B 0x250C
+04 0x250D 0x250E 0x250F 0x2510 0x2511 0x2512 0x2513 0x2514 \
+ 0x2515 0x2516 0x2517 0x2518 0x2519 0x251A 0x251B 0x251C \
+ 0x251D 0x251E 0x251F 0x2520 0x2521 0x2522 0x2523 0x2524 \
+ 0x2525 0x2526 0x2527 0x2528 0x2529 0x252A 0x252B 0x252C \
+ 0x252D 0x252E 0x252F 0x2530 0x2531 0x2532 0x2533 0x2534 \
+ 0x2535 0x2536 0x2537 0x2538 0x2539 0x253A 0x253B 0x253C \
+ 0x253D 0x253E 0x253F 0x2540 0x2541 0x2542 0x2543 0x2544 \
+ 0x2545 0x2546 0x2547 0x2548 0x2549 0x254A 0x254B 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE
+05 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE
+06 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE 0xFFFE \
+ 0xFFFE 0xFFFE 0x554A 0x963F 0x57C3 0x6328 0x54CE 0x5509 \
+ 0x54C0 0x7691 0x764C 0x853C 0x77EE 0x827E 0x788D 0x7231 \
+ 0x9698 0x978D 0x6C28 0x5B89 0x4FFA 0x6309 0x6697 0x5CB8 \
+ 0x80FA 0x6848 0x80AE 0x6602 0x76CE 0x51F9 0x6556 0x71AC \
+ 0x7FF1 0x8884 0x50B2 0x5965 0x61CA 0x6FB3 0x82AD 0x634C \
+ 0x6252 0x53ED 0x5427 0x7B06 0x516B 0x75A4 0x5DF4 0x62D4 \
+ 0x8DCB 0x9776 0x628A 0x8019 0x575D 0x9738 0x7F62 0x7238 \
+ 0x767D 0x67CF 0x767E 0x6446 0x4F70 0x8D25 0x62DC 0x7A17 \
+ 0x6591 0x73ED 0x642C 0x6273 0x822C 0x9881 0x677F 0x7248 \
+ 0x626E 0x62CC 0x4F34 0x74E3 0x534A 0x529E 0x7ECA 0x90A6 \
+ 0x5E2E 0x6886 0x699C 0x8180 0x7ED1 0x68D2 0x78C5 0x868C \
+ 0x9551 0x508D 0x8C24 0x82DE 0x80DE 0x5305 0x8912 0x5265 \
+ 0x8584 0x96F9 0x4FDD 0x5821 0x9971 0x5B9D 0x62B1 0x62A5 \
+ 0x66B4 0x8C79 0x9C8D 0x7206 0x676F 0x7891 0x60B2 0x5351 \
+ 0x5317 0x8F88 0x80CC 0x8D1D 0x94A1 0x500D 0x72C8 0x5907 \
+ 0x60EB 0x7119 0x88AB 0x5954 0x82EF 0x672C 0x7B28 0x5D29
+07 0x7EF7 0x752D 0x6CF5 0x8E66 0x8FF8 0x903C 0x9F3B 0x6BD4 \
+ 0x9119 0x7B14 0x5F7C 0x78A7 0x84D6 0x853D 0x6BD5 0x6BD9 \
+ 0x6BD6 0x5E01 0x5E87 0x75F9 0x95ED 0x655D 0x5F0A 0x5FC5 \
+ 0x8F9F 0x58C1 0x81C2 0x907F 0x965B 0x97AD 0x8FB9 0x7F16 \
+ 0x8D2C 0x6241 0x4FBF 0x53D8 0x535E 0x8FA8 0x8FA9 0x8FAB \
+ 0x904D 0x6807 0x5F6A 0x8198 0x8868 0x9CD6 0x618B 0x522B \
+ 0x762A 0x5F6C 0x658C 0x6FD2 0x6EE8 0x5BBE 0x6448 0x5175 \
+ 0x51B0 0x67C4 0x4E19 0x79C9 0x997C 0x70B3 0x75C5 0x5E76 \
+ 0x73BB 0x83E0 0x64AD 0x62E8 0x94B5 0x6CE2 0x535A 0x52C3 \
+ 0x640F 0x94C2 0x7B94 0x4F2F 0x5E1B 0x8236 0x8116 0x818A \
+ 0x6E24 0x6CCA 0x9A73 0x6355 0x535C 0x54FA 0x8865 0x57E0 \
+ 0x4E0D 0x5E03 0x6B65 0x7C3F 0x90E8 0x6016 0x64E6 0x731C \
+ 0x88C1 0x6750 0x624D 0x8D22 0x776C 0x8E29 0x91C7 0x5F69 \
+ 0x83DC 0x8521 0x9910 0x53C2 0x8695 0x6B8B 0x60ED 0x60E8 \
+ 0x707F 0x82CD 0x8231 0x4ED3 0x6CA7 0x85CF 0x64CD 0x7CD9 \
+ 0x69FD 0x66F9 0x8349 0x5395 0x7B56 0x4FA7 0x518C 0x6D4B \
+ 0x5C42 0x8E6D 0x63D2 0x53C9 0x832C 0x8336 0x67E5 0x78B4 \
+ 0x643D 0x5BDF 0x5C94 0x5DEE 0x8BE7 0x62C6 0x67F4 0x8C7A \
+ 0x6400 0x63BA 0x8749 0x998B 0x8C17 0x7F20 0x94F2 0x4EA7 \
+ 0x9610 0x98A4 0x660C 0x7316 0x573A 0x5C1D 0x5E38 0x957F \
+ 0x507F 0x80A0 0x5382 0x655E 0x7545 0x5531 0x5021 0x8D85 \
+ 0x6284 0x949E 0x671D 0x5632 0x6F6E 0x5DE2 0x5435 0x7092 \
+ 0x8F66 0x626F 0x64A4 0x63A3 0x5F7B 0x6F88 0x90F4 0x81E3 \
+ 0x8FB0 0x5C18 0x6668 0x5FF1 0x6C89 0x9648 0x8D81 0x886C \
+ 0x6491 0x79F0 0x57CE 0x6A59 0x6210 0x5448 0x4E58 0x7A0B \
+ 0x60E9 0x6F84 0x8BDA 0x627F 0x901E 0x9A8B 0x79E4 0x5403 \
+ 0x75F4 0x6301 0x5319 0x6C60 0x8FDF 0x5F1B 0x9A70 0x803B \
+ 0x9F7F 0x4F88 0x5C3A 0x8D64 0x7FC5 0x65A5 0x70BD 0x5145 \
+ 0x51B2 0x866B 0x5D07 0x5BA0 0x62BD 0x916C 0x7574 0x8E0C \
+ 0x7A20 0x6101 0x7B79 0x4EC7 0x7EF8 0x7785 0x4E11 0x81ED \
+ 0x521D 0x51FA 0x6A71 0x53A8 0x8E87 0x9504 0x96CF 0x6EC1 \
+ 0x9664 0x695A 0x7840 0x50A8 0x77D7 0x6410 0x89E6 0x5904
+08 0x63E3 0x5DDD 0x7A7F 0x693D 0x4F20 0x8239 0x5598 0x4E32 \
+ 0x75AE 0x7A97 0x5E62 0x5E8A 0x95EF 0x521B 0x5439 0x708A \
+ 0x6376 0x9524 0x5782 0x6625 0x693F 0x9187 0x5507 0x6DF3 \
+ 0x7EAF 0x8822 0x6233 0x7EF0 0x75B5 0x8328 0x78C1 0x96CC \
+ 0x8F9E 0x6148 0x74F7 0x8BCD 0x6B64 0x523A 0x8D50 0x6B21 \
+ 0x806A 0x8471 0x56F1 0x5306 0x4ECE 0x4E1B 0x51D1 0x7C97 \
+ 0x918B 0x7C07 0x4FC3 0x8E7F 0x7BE1 0x7A9C 0x6467 0x5D14 \
+ 0x50AC 0x8106 0x7601 0x7CB9 0x6DEC 0x7FE0 0x6751 0x5B58 \
+ 0x5BF8 0x78CB 0x64AE 0x6413 0x63AA 0x632B 0x9519 0x642D \
+ 0x8FBE 0x7B54 0x7629 0x6253 0x5927 0x5446 0x6B79 0x50A3 \
+ 0x6234 0x5E26 0x6B86 0x4EE3 0x8D37 0x888B 0x5F85 0x902E \
+ 0x6020 0x803D 0x62C5 0x4E39 0x5355 0x90F8 0x63B8 0x80C6 \
+ 0x65E6 0x6C2E 0x4F46 0x60EE 0x6DE1 0x8BDE 0x5F39 0x86CB \
+ 0x5F53 0x6321 0x515A 0x8361 0x6863 0x5200 0x6363 0x8E48 \
+ 0x5012 0x5C9B 0x7977 0x5BFC 0x5230 0x7A3B 0x60BC 0x9053 \
+ 0x76D7 0x5FB7 0x5F97 0x7684 0x8E6C 0x706F 0x767B 0x7B49 \
+ 0x77AA 0x51F3 0x9093 0x5824 0x4F4E 0x6EF4 0x8FEA 0x654C \
+ 0x7B1B 0x72C4 0x6DA4 0x7FDF 0x5AE1 0x62B5 0x5E95 0x5730 \
+ 0x8482 0x7B2C 0x5E1D 0x5F1F 0x9012 0x7F14 0x98A0 0x6382 \
+ 0x6EC7 0x7898 0x70B9 0x5178 0x975B 0x57AB 0x7535 0x4F43 \
+ 0x7538 0x5E97 0x60E6 0x5960 0x6DC0 0x6BBF 0x7889 0x53FC \
+ 0x96D5 0x51CB 0x5201 0x6389 0x540A 0x9493 0x8C03 0x8DCC \
+ 0x7239 0x789F 0x8776 0x8FED 0x8C0D 0x53E0 0x4E01 0x76EF \
+ 0x53EE 0x9489 0x9876 0x9F0E 0x952D 0x5B9A 0x8BA2 0x4E22 \
+ 0x4E1C 0x51AC 0x8463 0x61C2 0x52A8 0x680B 0x4F97 0x606B \
+ 0x51BB 0x6D1E 0x515C 0x6296 0x6597 0x9661 0x8C46 0x9017 \
+ 0x75D8 0x90FD 0x7763 0x6BD2 0x728A 0x72EC 0x8BFB 0x5835 \
+ 0x7779 0x8D4C 0x675C 0x9540 0x809A 0x5EA6 0x6E21 0x5992 \
+ 0x7AEF 0x77ED 0x953B 0x6BB5 0x65AD 0x7F0E 0x5806 0x5151 \
+ 0x961F 0x5BF9 0x58A9 0x5428 0x8E72 0x6566 0x987F 0x56E4 \
+ 0x949D 0x76FE 0x9041 0x6387 0x54C6 0x591A 0x593A 0x579B \
+ 0x8EB2 0x6735 0x8DFA 0x8235 0x5241 0x60F0 0x5815 0x86FE
+09 0x5CE8 0x9E45 0x4FC4 0x989D 0x8BB9 0x5A25 0x6076 0x5384 \
+ 0x627C 0x904F 0x9102 0x997F 0x6069 0x800C 0x513F 0x8033 \
+ 0x5C14 0x9975 0x6D31 0x4E8C 0x8D30 0x53D1 0x7F5A 0x7B4F \
+ 0x4F10 0x4E4F 0x9600 0x6CD5 0x73D0 0x85E9 0x5E06 0x756A \
+ 0x7FFB 0x6A0A 0x77FE 0x9492 0x7E41 0x51E1 0x70E6 0x53CD \
+ 0x8FD4 0x8303 0x8D29 0x72AF 0x996D 0x6CDB 0x574A 0x82B3 \
+ 0x65B9 0x80AA 0x623F 0x9632 0x59A8 0x4EFF 0x8BBF 0x7EBA \
+ 0x653E 0x83F2 0x975E 0x5561 0x98DE 0x80A5 0x532A 0x8BFD \
+ 0x5420 0x80BA 0x5E9F 0x6CB8 0x8D39 0x82AC 0x915A 0x5429 \
+ 0x6C1B 0x5206 0x7EB7 0x575F 0x711A 0x6C7E 0x7C89 0x594B \
+ 0x4EFD 0x5FFF 0x6124 0x7CAA 0x4E30 0x5C01 0x67AB 0x8702 \
+ 0x5CF0 0x950B 0x98CE 0x75AF 0x70FD 0x9022 0x51AF 0x7F1D \
+ 0x8BBD 0x5949 0x51E4 0x4F5B 0x5426 0x592B 0x6577 0x80A4 \
+ 0x5B75 0x6276 0x62C2 0x8F90 0x5E45 0x6C1F 0x7B26 0x4F0F \
+ 0x4FD8 0x670D 0x6D6E 0x6DAA 0x798F 0x88B1 0x5F17 0x752B \
+ 0x629A 0x8F85 0x4FEF 0x91DC 0x65A7 0x812F 0x8151 0x5E9C \
+ 0x8150 0x8D74 0x526F 0x8986 0x8D4B 0x590D 0x5085 0x4ED8 \
+ 0x961C 0x7236 0x8179 0x8D1F 0x5BCC 0x8BA3 0x9644 0x5987 \
+ 0x7F1A 0x5490 0x5676 0x560E 0x8BE5 0x6539 0x6982 0x9499 \
+ 0x76D6 0x6E89 0x5E72 0x7518 0x6746 0x67D1 0x7AFF 0x809D \
+ 0x8D76 0x611F 0x79C6 0x6562 0x8D63 0x5188 0x521A 0x94A2 \
+ 0x7F38 0x809B 0x7EB2 0x5C97 0x6E2F 0x6760 0x7BD9 0x768B \
+ 0x9AD8 0x818F 0x7F94 0x7CD5 0x641E 0x9550 0x7A3F 0x544A \
+ 0x54E5 0x6B4C 0x6401 0x6208 0x9E3D 0x80F3 0x7599 0x5272 \
+ 0x9769 0x845B 0x683C 0x86E4 0x9601 0x9694 0x94EC 0x4E2A \
+ 0x5404 0x7ED9 0x6839 0x8DDF 0x8015 0x66F4 0x5E9A 0x7FB9 \
+ 0x57C2 0x803F 0x6897 0x5DE5 0x653B 0x529F 0x606D 0x9F9A \
+ 0x4F9B 0x8EAC 0x516C 0x5BAB 0x5F13 0x5DE9 0x6C5E 0x62F1 \
+ 0x8D21 0x5171 0x94A9 0x52FE 0x6C9F 0x82DF 0x72D7 0x57A2 \
+ 0x6784 0x8D2D 0x591F 0x8F9C 0x83C7 0x5495 0x7B8D 0x4F30 \
+ 0x6CBD 0x5B64 0x59D1 0x9F13 0x53E4 0x86CA 0x9AA8 0x8C37 \
+ 0x80A1 0x6545 0x987E 0x56FA 0x96C7 0x522E 0x74DC 0x5250
+x1 0x0010_0x0030 0x1010_0x1030 0xe000 \
+ 0xA0: 0x1000 0x2000
+
+# eof