UNPKG

bliss-svg-builder

Version:

Compose, render, and manipulate Blissymbolics SVG using a compact DSL and a programmatic mutation API.

1 lines • 1.53 MB
{"version":3,"file":"bliss-svg-builder.cjs","names":["endX","endY","sc.createZeroSizedAnchor","sc.createSpace","sc.createDot","sc.createComma","sc.createHeart","sc.createEar","sc.createFiber","sc.createCircle","sc.createHalfCircle","sc.createQuarterCircle","sc.createOpenCircle","sc.createWave","sc.createHalfWave","sc.createHorizontalQuarterWave","sc.createVerticalQuarterWave","sc.createVerticalLine","sc.createHorizontalLine","sc.createAscendingDiagonalLine","sc.createDescendingDiagonalLine","sc.createDiagonalLineOutsideCircle","sc.createAscendingDiagonalLineInsideCircle","sc.createDescendingDiagonalLineInsideCircle","sc.createExternalGlyph","roundForMarkup","formatEntries","unionOf","#wrapWithAnchorAndGroup","#separateAnchorAndGroupOptions","#hitRect","#inkHitBox","#bandHitBox","#LINK_AREAS","#buildsLink","#linkArea","#PAINT_AREAS","#background","#paintArea","#getInheritedOption","#level","#areaPadding","#share","#blissObj","#children","#isSpaceGroup","#relativeToParentX","#baseSpan","#reach","#inkArea","#lineGroups","#contentFrame","#drawnBox","#effectEntries","#filterOutset","#sharedOptions","#effectDeclarations","#authoredBackground","#relativeToParentY","#calculateBounds","#ownLayerEntries","#backgroundKeyLevels","#backgroundDrawing","#visitBackgrounds","#backgroundMarkup","#backgroundLayer","#classifyParts","#isEmptyGroup","#isEmptyGlyph","#parentElement","#inkStartX","#inkEndX","#previousElement","#key","#codeName","#externalGlyphSpacing","#childStartOffset","#getFirstCharacterElement","#classifiedParts","#assignAreas","#holdsOnlySpaces","#advanceX","#haloWrap","#linkHit","#ownFilters","#char","#isBlissGlyph","#isExternalGlyph","#isFused","#positionIndicatorGroup","#kerningKeyAfter","#leafWidth","#leafHeight","#handlePredefinedElement","#handleCompositeElement","#anchorOffsetX","#anchorOffsetY","#leafX","#leafY","#isCharacter","#isShape","#classifyIndicator","#layoutChildren","#isLeaf","#lineWidth","#lineOverhang","#linkBox","#extraPathOptions","#hasMultipleOptionBrackets","#readWordSeparators","#parseOptions","#writtenEntries","#readDefinition","#readPartDefinition","#isBareAlias","#readThroughRenames","#parseParts","#expandPartRecursive","#flagCompositePart","#isComposition","#applyEffectiveMetadata","#applyDefinitionMetadata","#renameToDrawnCode","#isShorthand","#linkOf","#oneCodeDefinitionOf","#readsThrough","#placeByLinks","#anchorOf","#ctx","#level","#nodeRef","#parentRef","#generation","#resolveIndex","#relocate","#scopeLevel","#optionLevel","#assertReachable","#findSnapshot","#partSnapshotIn","#forwardParseWarnings","#parseGlyphArg","#applyDefaultsOverrides","#syncGeneration","#parsePartArg","#fillEmptyGroupWithPart","#inFailFlaggedGroup","#clearGlyphIdentity","#removeGlyphFromGroup","#applyOrClearWordIndicators","#applyOrClearIndicators","#warnIndicatorNoop","#updateGlyphIdentityAfterIndicatorChange","#owningCharacter","#warnings","#withoutRefusedTextValues","#drawnKey","#processOptions","#takeBackgroundKeys","#processAllOptions","#admitAuthoredBags","#normalizeAuthoredPartCodes","#normalizeGlyphCodes","#normalizePartlessGlyphs","#layerOptions","#flagWordParts","#rawBlissObj","#rebuild","#mutationCtx","#toRaw","#mutationWarnings","#isRawSpaceGroup","#makeSpaceGroup","#removeGlyphGroup","#generation","#clearOwnOptions","#ownLookAt","#resolveOpts","#admitAuthoredBag","#assignKeys","#isNonHeadMarkerNode","#isNonHeadMarkerGroup","#dropSpaceDecorations","#isSpaceGlyphNode","#dropSpaceOptionEntries","#positionSuffix","#defaultSpaceAt","#defaultSpaceBefore","#defaultSpaceBeforeWritten","#writtenTextOf","#malformedPartsOf","#elementsCache","#groupsCache","#normalizeMalformedPartInvariant","#normalizeFailedWordInvariant","#normalizeSpacePartInvariant","#normalizeSpaceInvariant","#normalizeTransientInvariant","#normalizePositioningInvariant","#normalizeIndicatorInvariant","#sharedOptions","#authoredFor","#processedOptions","#contentAttributes","#rootAttributes","#layerAttributes","#globalVectorEffect","#globalAnchorAttributes","#layerKeys","#computeGeometry","#partWithKey","#getNonSpaceGroupIndices","#parseGroupWithOpts","#clearOptionsFrom","#recordedGlyphCode","#textFallbackInternalForm","#reapplyGlyphMetadata","#buildNamedDefinition","#normalizePartCodes","#isPartNamed","#readingOf","#isBareAliasDefinition","#drawnCode","#startsWithParts","#flagWordPartsInArray","#NON_HEAD_MARKER_CODES","#positionAtUse","#composition","#keepsNamedOptions","#loneLookOf","#ownLookOf","#writtenParts","#withoutLook","#preservedWrittenName","#readsAloneAsInSlot","#namesCustomWordCode","#namesCustomCode","#movedHead","#renameChainIsPure","#spellsOutOntoHeadAlone","#resolveToBuiltInCode","#contentRender","#pictureMarkup","#svgCode","#X_NAMESPACE_PATTERN","#expandedRunWord","#RESERVED_SYNTAX_NAMES","#validateCode","#assertReplaceable","#extractReferencedCodes","#renamedCode","#expandLateShape","#wordIndicatorCodeWithoutOptions","#spelledOutParts","#underOuterOptions","#mayDrawElsewhere","#flaggedAsIndicators","#placedAsDrawn","#holdsIndicator","#spelledOutWordCodes","#indicatorsStartIn","#placementOf","#headMergedWith","#characterLayout","#writtenPartsReadBack","#layoutPlacesIndicators","#firstLeafOf","#wordCodeReading","#wordCodeAt","#leavesBaseSpan","#wordCodeSpelling","#wordCodeText","#detectType","#partsNamedBy","#carriesKeysOf","#optionsKey","#addendOf","#validateReferences","#hasCircularReference","#assertNoIndicatorBakeDependents","#assertNoWordInternalCoordinates","#normalizeSpaceSegments","#defineShape","#assertDefaultOptionsDescribeTheCharacter","#toCuratedSpelling","#assertOwnBracketDescribesTheCharacter","#assertCodeStringReadable","#defineGlyph","#defineExternalGlyph","#resolveBareAliases","#hasCompositePartViolation","#READING_STAND_IN","#readAsUsed","#findInReading","#defineBare","#ownsDefinition"],"sources":["../src/external-font-data/liberation-sans-svg-path-data.js","../src/lib/bliss-svg-attribute-names.js","../src/lib/bliss-constants.js","../src/lib/bliss-shape-creators.js","../src/lib/bliss-glyph-data.js","../src/lib/bliss-element-definitions.js","../src/lib/indicator-utils.js","../src/lib/bliss-head-glyph-exclusions.js","../src/lib/bliss-filters.js","../src/lib/bliss-element.js","../src/lib/bliss-parser.js","../src/lib/element-handle.js","../src/lib/bliss-svg-builder.js","../src/index.js"],"sourcesContent":["/**\r\n * liberation-sans-svg-path-data.js\r\n *\r\n * Derived from Liberation Sans Regular (Liberation Fonts Project)\r\n * Copyright © 2012–2018 Red Hat, Inc.\r\n *\r\n * This file contains extracted and modified glyph path data.\r\n * Licensed under the Apache License, Version 2.0.\r\n * See the FONT_LICENSE file in this directory for the full license text.\r\n *\r\n * SPDX-License-Identifier: Apache-2.0\r\n */\r\n\r\n// Somewhat arbitrary numbers. Need to be somewhat adjusted to align with normal font letter spacing...\r\nconst defaultLeftSideBearing = 107;\r\nconst defaultRightSideBearing = 165;\r\nconst fontUnitToGridUnitDivisor = 356;\r\n\r\nfunction getGridUnitWidth(width) {\r\n  return (width - defaultLeftSideBearing - defaultRightSideBearing) / fontUnitToGridUnitDivisor;\r\n}\r\n\r\nfunction getGridUnitKerningRule(kerning) {\r\n  return kerning / fontUnitToGridUnitDivisor;\r\n}\r\n\r\nfunction precision(pathString, decimals = 7) {\r\n  return pathString.replace(/-?\\d+\\.?\\d*/g, match => \r\n    parseFloat(parseFloat(match).toFixed(decimals)).toString()\r\n  );\r\n}\r\n\r\nconst alphabetData = {\r\n  // e[X]ternal glyphs (i.e. letters and other non-Bliss characters).\r\n  // Supports: Base Latin (a-z, A-Z), Latin Extended (European languages), Cyrillic (Russian).\r\n  'Xa': {\r\n    getPath: () => precision(`M1.1633399724960327,16.04509925842285q-0.45802998542785645,0,-0.6884499788284302,-0.24165916442871094t-0.23041999340057373,-0.6631603240966797q0,-0.4720802307128906,0.3105049729347229,-0.7249794006347656t1.0017650723457336,-0.2697601318359375l0.6828298568725586,-0.011240005493164062l0,-0.16579055786132812q0,-0.37091922760009766,-0.15735983848571777,-0.5310897827148438t-0.4945601224899292,-0.1601696014404297q-0.3400099277496338,0,-0.4945598840713501,0.11520957946777344t-0.18546003103256226,0.36810970306396484l-0.5282800197601318,-0.04776954650878906q0.12926000356674194,-0.8205204010009766,1.2195399403572083,-0.8205204010009766q0.5732401609420776,0,0.8626700639724731,0.26273536682128906t0.2894299030303955,0.7601051330566406l0,1.3094596862792969q0,0.22480010986328125,0.05901002883911133,0.3386049270629883t0.22480010986328125,0.11380481719970703q0.0730600357055664,0,0.16578984260559082,-0.019669532775878906l0,0.31472015380859375q-0.19107985496520996,0.04496002197265625,-0.39058995246887207,0.04496002197265625q-0.28099989891052246,0,-0.40885496139526367,-0.14752483367919922t-0.1447150707244873,-0.46224498748779297l-0.016860008239746094,0q-0.19388985633850098,0.34843921661376953,-0.45100486278533936,0.49315452575683594t-0.6252250671386719,0.14471435546875ZM1.2785500288009644,15.665749549865723q0.278190016746521,0,0.49456000328063965,-0.1264495849609375t0.34141504764556885,-0.34703540802001953t0.1250448226928711,-0.4538145065307617l0,-0.2500896453857422l-0.5535699129104614,0.011240005493164062q-0.3568699359893799,0.005620002746582031,-0.5409250259399414,0.0730600357055664t-0.28240495920181274,0.20793914794921875t-0.09834998846054077,0.36811065673828125q0,0.24728012084960938,0.13347500562667847,0.3821601867675781t0.3807550072669983,0.13487911224365234Z`),\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16.05,\r\n    char: \"a\"\r\n  },\r\n  'Xb': {\r\n    getPath: () => precision(`M2.958930015563965,14.45464038848877q0,1.590458869934082,-1.118380069732666,1.590458869934082q-0.3456299304962158,0,-0.574644923210144,-0.1250438690185547t-0.37232500314712524,-0.40323543548583984l-0.005620002746582031,0q0,0.08711051940917969,-0.011240005493164062,0.2655448913574219t-0.016860008239746094,0.20653533935546875l-0.4889400005340576,0q0.016860008239746094,-0.15174007415771484,0.016860008239746094,-0.6266298294067383l0,-3.543410301208496l0.5058000087738037,0l0,1.1886301040649414q0,0.1826496124267578,-0.011240005493164062,0.4299297332763672l0.011240005493164062,0q0.140500009059906,-0.2922401428222656,0.37232500314712524,-0.4186897277832031t0.574644923210144,-0.1264505386352539q0.5760500431060791,0,0.847214937210083,0.38778018951416016t0.271165132522583,1.1745805740356445ZM2.427839994430542,14.471500396728516q0,-0.6378707885742188,-0.16860008239746094,-0.9132499694824219t-0.5479499101638794,-0.27538013458251953q-0.4271199703216553,0,-0.6224149465560913,0.2922401428222656t-0.1952950358390808,0.9272994995117188q0,0.5985298156738281,0.1910800337791443,0.8837451934814453t0.6210099458694458,0.2852144241333008q0.3821600675582886,0,0.5521649122238159,-0.28240489959716797t0.17000508308410645,-0.9174642562866211Z`),\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16.05,\r\n    char: \"b\"\r\n  },\r\n  'Xc': {\r\n    getPath: () => precision(`M0.7727500200271606,14.45464038848877q0,0.606959342956543,0.1910799741744995,0.8991994857788086t0.5760500431060791,0.2922401428222656q0.26976001262664795,0,0.4510049819946289,-0.1461200714111328t0.22339487075805664,-0.4496002197265625l0.5114200115203857,0.03372001647949219q-0.05900979042053223,0.43836021423339844,-0.373729944229126,0.6996898651123047t-0.7980399131774902,0.26132965087890625q-0.6378700733184814,0,-0.9736650586128235,-0.40323448181152344t-0.33579498529434204,-1.1759843826293945q0,-0.7671308517456055,0.33719998598098755,-1.170365333557129t0.966640055179596,-0.40323543548583984q0.4664599895477295,0,0.7741549015045166,0.24166011810302734t0.38637495040893555,0.6659698486328125l-0.5198497772216797,0.03934001922607422q-0.03934001922607422,-0.252899169921875,-0.1995100975036621,-0.40182971954345703t-0.45521998405456543,-0.14892959594726562q-0.4018300771713257,0,-0.5816700458526611,0.2669496536254883t-0.17983996868133545,0.899200439453125Z`),\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16.05,\r\n    char: \"c\"\r\n  },\r\n  'Xd': {\r\n    getPath: () => precision(`M2.3070099353790283,15.499959945678711q-0.14049983024597168,0.2922401428222656,-0.37232494354248047,0.4186897277832031t-0.5746450424194336,0.1264495849609375q-0.5760499238967896,0,-0.847214937210083,-0.38777923583984375t-0.27116501331329346,-1.1745796203613281q0,-1.5904607772827148,1.1183799505233765,-1.5904607772827148q0.34563004970550537,0,0.5760500431060791,0.1264505386352539t0.37091994285583496,0.40182971954345703l0.005620002746582031,0l-0.005620002746582031,-0.3400096893310547l0,-1.2616901397705078l0.5058000087738037,0l0,3.543410301208496q0,0.47488975524902344,0.016860008239746094,0.6266298294067383l-0.4833199977874756,0q-0.008430004119873047,-0.04496002197265625,-0.0182650089263916,-0.20794010162353516t-0.009835004806518555,-0.28100013732910156l-0.011240005493164062,0ZM0.7727500200271606,14.465880393981934q0,0.6378698348999023,0.1685999631881714,0.9132499694824219t0.547950029373169,0.2753791809082031q0.4299299716949463,0,0.6238200664520264,-0.29785919189453125t0.19388985633850098,-0.9244899749755859q0,-0.6041507720947266,-0.19388985633850098,-0.8851499557495117t-0.6182000637054443,-0.28100013732910156q-0.3821600675582886,0,-0.5521650314331055,0.28240489959716797t-0.1700049638748169,0.9174652099609375Z`),\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16.05,\r\n    char: \"d\"\r\n  },\r\n  'Xe': {\r\n    getPath: () => precision(`M0.7755600214004517,14.575469970703125q0,0.5226602554321289,0.21636998653411865,0.8064699172973633t0.6322499513626099,0.2838096618652344q0.3287700414657593,0,0.5268751382827759,-0.13206958770751953t0.2683548927307129,-0.33438968658447266l0.44397997856140137,0.1264495849609375q-0.2725698947906494,0.7193593978881836,-1.2392100095748901,0.7193593978881836q-0.6743999719619751,0,-1.0270549654960632,-0.40182971954345703t-0.35265499353408813,-1.194249153137207q0,-0.7530803680419922,0.35265499353408813,-1.1549100875854492t1.0073849558830261,-0.40183067321777344q1.3403700590133667,0,1.3403700590133667,1.6157503128051758l0,0.06744003295898438l-2.169319987297058,0ZM2.42221999168396,14.187689781188965q-0.042150020599365234,-0.48050975799560547,-0.24446988105773926,-0.7010946273803711t-0.5816701650619507,-0.22058486938476562q-0.36810994148254395,0,-0.5830749273300171,0.24587440490722656t-0.23182499408721924,0.6758050918579102l1.6410399675369263,0Z`),\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16.05,\r\n    char: \"e\"\r\n  },\r\n  'Xf': {\r\n    getPath: () => precision(`M1.0144100189208984,13.316590309143066l0,2.6723098754882812l-0.5058000087738037,0l0,-2.6723098754882812l-0.42712000757455826,0l0,-0.36811065673828125l0.42712000757455826,0l0,-0.3428192138671875q0,-0.4158802032470703,0.18264997005462646,-0.5985307693481445t0.559190034866333,-0.1826496124267578q0.21074998378753662,0,0.3568699359893799,0.03372001647949219l0,0.38496971130371094q-0.12644994258880615,-0.022480010986328125,-0.2247999906539917,-0.022480010986328125q-0.19388997554779053,0,-0.281000018119812,0.09835052490234375t-0.08710992336273193,0.3568696975708008l0,0.2725696563720703l0.5929099321365356,0l0,0.36811065673828125l-0.5929099321365356,0Z`),\r\n    get width() { return getGridUnitWidth(569); },\r\n    height: 15.99,\r\n    char: \"f\",\r\n    kerningRules: {\r\n      \"f\": getGridUnitKerningRule(37),\r\n    }\r\n  },\r\n  'Xg': {\r\n    getPath: () => precision(`M1.5398800373077393,17.183149337768555q-0.49737000465393066,0,-0.7924200296401978,-0.19529342651367188t-0.3793500065803528,-0.5549755096435547l0.5086100101470947,-0.07306098937988281q0.050579965114593506,0.21075057983398438,0.22339493036270142,0.3245563507080078t0.4538151025772095,0.11380386352539062q0.755889892578125,0,0.755889892578125,-0.8851499557495117l0,-0.4889392852783203l-0.005620002746582031,0q-0.1433098316192627,0.2922391891479492,-0.3933999538421631,0.43976497650146484t-0.5844799280166626,0.1475238800048828q-0.559190034866333,0,-0.8219250440597534,-0.37091922760009766t-0.2627350091934204,-1.1661500930786133q0,-0.8064699172973633,0.2824050188064575,-1.1900348663330078t0.8584549427032471,-0.38356494903564453q0.32315003871917725,0,0.5605950355529785,0.14752483367919922t0.36670494079589844,0.42009544372558594l0.005620002746582031,0q0,-0.08430004119873047,0.011240005493164062,-0.2922401428222656t0.022480010986328125,-0.22761058807373047l0.48050999641418457,0q-0.016860008239746094,0.15174007415771484,-0.016860008239746094,0.6294403076171875l0,2.3238697052001953q0,1.2813596725463867,-1.2729299068450928,1.2813596725463867ZM2.3098199367523193,14.468689918518066q0,-0.37092018127441406,-0.10116004943847656,-0.6392745971679688t-0.285214900970459,-0.4102602005004883t-0.4172849655151367,-0.1419048309326172q-0.3877800703048706,0,-0.564810037612915,0.28100013732910156t-0.17702996730804443,0.9104394912719727q0,0.6238203048706055,0.16578996181488037,0.8963899612426758t0.567620038986206,0.2725696563720703q0.23884999752044678,0,0.42430996894836426,-0.14049911499023438t0.2866199016571045,-0.40323543548583984t0.10116004943847656,-0.6252250671386719Z`),\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 17.18,\r\n    char: \"g\"\r\n  },\r\n  'Xh': {\r\n    getPath: () => precision(`M0.8907700181007385,13.468330383300781q0.16298002004623413,-0.29786014556884766,0.39199501276016235,-0.43695545196533203t0.5802649259567261,-0.13909530639648438q0.49456000328063965,0,0.7291951179504395,0.24587535858154297t0.2346348762512207,0.8247346878051758l0,2.026010513305664l-0.5086100101470947,0l0,-1.9276599884033203q0,-0.3203401565551758,-0.05901002883911133,-0.47629547119140625t-0.19388985633850098,-0.22901439666748047t-0.3737300634384155,-0.0730600357055664q-0.3568699359893799,0,-0.5718350410461426,0.24728012084960938t-0.21496492624282837,0.6659698486328125l0,1.7927799224853516l-0.5058000385761261,0l0,-4.170040130615234l0.5058000385761261,0l0,1.0846595764160156q0,0.17141056060791016,-0.009835004806518555,0.35406017303466797t-0.01264500617980957,0.21075057983398438l0.008430004119873047,0Z`),\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 15.99,\r\n    char: \"h\"\r\n  },\r\n  'Xi': {\r\n    getPath: () => precision(`M0.3849700093269348,12.302180290222168l0,-0.4833202362060547l0.5058000087738037,0l0,0.4833202362060547l-0.5058000087738037,0ZM0.3849700093269348,15.988900184631348l0,-3.0404205322265625l0.5058000087738037,0l0,3.0404205322265625l-0.5058000087738037,0Z`),\r\n    get width() { return getGridUnitWidth(455); },\r\n    height: 15.99,\r\n    char: \"i\"\r\n  },\r\n  'Xj': {\r\n    getPath: () => precision(`M0.3849700093269348,12.302180290222168l0,-0.4833202362060547l0.5058000087738037,0l0,0.4833202362060547l-0.5058000087738037,0ZM0.8907700181007385,16.365440368652344q0,0.4299297332763672,-0.16860002279281616,0.6238193511962891t-0.5057999938726425,0.19388961791992188q-0.21637000143527985,0,-0.35686999559402466,-0.025289535522460938l0,-0.3905906677246094l0.1742199957370758,0.0168609619140625q0.19389000535011292,0,0.27256999909877777,-0.10116004943847656t0.07868000864982605,-0.3934001922607422l0,-3.341090202331543l0.5058000087738037,0l0,3.4169607162475586Z`),\r\n    get width() { return getGridUnitWidth(455); },\r\n    height: 17.18,\r\n    char: \"j\"\r\n  },\r\n  'Xk': {\r\n    getPath: () => precision(`M2.2929599285125732,15.988900184631348l-1.028459906578064,-1.3881397247314453l-0.37092000246047974,0.3062896728515625l0,1.0818500518798828l-0.5058000087738037,0l0,-4.170040130615234l0.5058000087738037,0l0,2.604869842529297l1.3347498774528503,-1.475250244140625l0.5929100513458252,0l-1.233590006828308,1.306650161743164l1.2982200384140015,1.7337703704833984l-0.5929100513458252,0Z`),\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 15.99,\r\n    char: \"k\"\r\n  },\r\n  'Xl': {\r\n    getPath: () => precision(`M0.38778001070022583,15.988900184631348l0,-4.170040130615234l0.5058000087738037,0l0,4.170040130615234l-0.5058000087738037,0Z`),\r\n    get width() { return getGridUnitWidth(455); },\r\n    height: 15.99,\r\n    char: \"l\"\r\n  },\r\n  'Xm': {\r\n    getPath: () => precision(`M2.1580801010131836,15.988900184631348l0,-1.9276599884033203q0,-0.44116973876953125,-0.12083005905151367,-0.6097698211669922t-0.43555009365081787,-0.16860008239746094q-0.3231499195098877,0,-0.5114198923110962,0.24728012084960938t-0.18827003240585327,0.6968793869018555l0,1.7618703842163086l-0.5029900372028351,0l0,-2.3913097381591797q0,-0.5310907363891602,-0.016859978437423706,-0.6491107940673828l0.47769999504089355,0q0.0028100013732910156,0.014050483703613281,0.005620002746582031,0.07587051391601562t0.007025003433227539,0.1419048309326172t0.009835004806518555,0.3020753860473633l0.008430004119873047,0q0.16298002004623413,-0.323150634765625,0.37373000383377075,-0.4496002197265625t0.5142300128936768,-0.1264505386352539q0.34563004970550537,0,0.5465449094772339,0.13769054412841797t0.27959513664245605,0.43836021423339844l0.008430004119873047,0q0.15735983848571777,-0.3062906265258789,0.3807549476623535,-0.44117069244384766t0.5409250259399414,-0.13488006591796875q0.46083998680114746,0,0.670184850692749,0.2500905990600586t0.20934486389160156,0.8205194473266602l0,2.026010513305664l-0.5001797676086426,0l0,-1.9276599884033203q0,-0.44116973876953125,-0.12083005905151367,-0.6097698211669922t-0.4355499744415283,-0.16860008239746094q-0.33157992362976074,0,-0.5156350135803223,0.24587440490722656t-0.18405485153198242,0.6982851028442383l0,1.7618703842163086l-0.5001800060272217,0Z`),\r\n    get width() { return getGridUnitWidth(1706); },\r\n    height: 15.99,\r\n    char: \"m\"\r\n  },\r\n  'Xn': {\r\n    getPath: () => precision(`M2.3182499408721924,15.988900184631348l0,-1.9276599884033203q0,-0.3006706237792969,-0.05901002883911133,-0.4664602279663086t-0.18826985359191895,-0.23884963989257812t-0.37935006618499756,-0.0730600357055664q-0.36529994010925293,0,-0.5760500431060791,0.2500896453857422t-0.21074992418289185,0.6940698623657227l0,1.7618703842163086l-0.5058000385761261,0l0,-2.3913097381591797q0,-0.5310907363891602,-0.016859978437423706,-0.6491107940673828l0.47769999504089355,0q0.0028100013732910156,0.014050483703613281,0.005620002746582031,0.07587051391601562t0.007025003433227539,0.1419048309326172t0.009835004806518555,0.3020753860473633l0.008430004119873047,0q0.1742200255393982,-0.31472015380859375,0.4032350182533264,-0.4453849792480469t0.569024920463562,-0.13066577911376953q0.5001800060272217,0,0.7320051193237305,0.2486858367919922t0.2318248748779297,0.8219242095947266l0,2.026010513305664l-0.5086100101470947,0Z`),\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 15.99,\r\n    char: \"n\"\r\n  },\r\n  'Xo': {\r\n    getPath: () => precision(`M2.958930015563965,14.465880393981934q0,0.798039436340332,-0.35124993324279785,1.188629150390625t-1.02003014087677,0.39058971405029297q-0.665969967842102,0,-1.0059799551963806,-0.40604400634765625t-0.34000998735427856,-1.1731748580932617q0,-1.5736007690429688,1.3628499507904053,-1.5736007690429688q0.6968799829483032,0,1.025650143623352,0.38356494903564453t0.3287699222564697,1.1900358200073242ZM2.427839994430542,14.465880393981934q0,-0.6294403076171875,-0.18686509132385254,-0.9146556854248047t-0.6280349493026733,-0.2852144241333008q-0.44397997856140137,0,-0.6420849561691284,0.2908344268798828t-0.19810497760772705,0.9090356826782227q0,0.6013393402099609,0.19529497623443604,0.9034147262573242t0.6139850616455078,0.3020744323730469q0.45521998405456543,0,0.6505148410797119,-0.2922391891479492t0.19529509544372559,-0.9132499694824219Z`),\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16.05,\r\n    char: \"o\"\r\n  },\r\n  'Xp': {\r\n    getPath: () => precision(`M2.958930015563965,14.45464038848877q0,1.590458869934082,-1.118380069732666,1.590458869934082q-0.7024999856948853,0,-0.9441599249839783,-0.5282793045043945l-0.014050006866455078,0q0.011240005493164062,0.022480010986328125,0.011240005493164062,0.47770023345947266l0,1.188629150390625l-0.5058000087738037,0l0,-3.613658905029297q0,-0.4692707061767578,-0.016860008239746094,-0.6210107803344727l0.4889400005340576,0q0.0028100013732910156,0.011240005493164062,0.008430004119873047,0.08008575439453125t0.01264500617980957,0.21215438842773438t0.007025003433227539,0.1967000961303711l0.011240005493164062,0q0.13488000631332397,-0.28100013732910156,0.35686999559402466,-0.4116649627685547t0.5844799280166626,-0.13066482543945312q0.562000036239624,0,0.8401901721954346,0.3765401840209961t0.27818989753723145,1.1830101013183594ZM2.427839994430542,14.465880393981934q0,-0.6350603103637695,-0.17141008377075195,-0.9076299667358398t-0.5451399087905884,-0.2725706100463867q-0.3006700277328491,0,-0.470674991607666,0.1264505386352539t-0.2585200071334839,0.3948049545288086t-0.08851498365402222,0.6982851028442383q0,0.5985298156738281,0.1910800337791443,0.8823394775390625t0.6210099458694458,0.2838096618652344q0.37654006481170654,0,0.5493549108505249,-0.27678489685058594t0.17281508445739746,-0.9287042617797852Z`),\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 17.18,\r\n    char: \"p\"\r\n  },\r\n  'Xq': {\r\n    getPath: () => precision(`M1.3600399494171143,16.04509925842285q-0.5788599252700806,0,-0.8486199378967285,-0.39058971405029297t-0.26976001262664795,-1.171769142150879q0,-1.5904607772827148,1.1183799505233765,-1.5904607772827148q0.34563004970550537,0,0.5704300403594971,0.12223529815673828t0.376539945602417,0.40604496002197266l0.005620002746582031,0q0,-0.08430004119873047,0.011240005493164062,-0.2908344268798828t0.022480010986328125,-0.22058582305908203l0.4861299991607666,0q-0.01967000961303711,0.16579055786132812,-0.01967000961303711,0.8289499282836914l0,3.4450597763061523l-0.5058000087738037,0l0,-1.2335891723632812l0.011240005493164062,-0.46084022521972656l-0.005620002746582031,0q-0.15173983573913574,0.30066967010498047,-0.373729944229126,0.4285249710083008t-0.5788600444793701,0.1278543472290039ZM2.3070099353790283,14.432160377502441q0,-0.5929107666015625,-0.19388985633850098,-0.8795299530029297t-0.6182000637054443,-0.2866201400756836q-0.3849700689315796,0,-0.553570032119751,0.2866201400756836t-0.1685999631881714,0.9132499694824219q0,0.6378698348999023,0.1700049638748169,0.9132499694824219t0.5465450286865234,0.2753791809082031q0.4299299716949463,0,0.6238200664520264,-0.3062896728515625t0.19388985633850098,-0.9160594940185547Z`),\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 17.18,\r\n    char: \"q\"\r\n  },\r\n  'Xr': {\r\n    getPath: () => precision(`M0.3990199863910675,15.988900184631348l0,-2.3323001861572266q0,-0.3203401565551758,-0.016859978437423706,-0.7081203460693359l0.47769999504089355,0q0.022480010986328125,0.5170402526855469,0.022480010986328125,0.6210107803344727l0.011240005493164062,0q0.1208299994468689,-0.3905906677246094,0.2781899571418762,-0.533900260925293t0.44397997856140137,-0.143310546875q0.10116004943847656,0,0.20513010025024414,0.028100013732910156l0,0.4636507034301758q-0.10116004943847656,-0.028100013732910156,-0.26976001262664795,-0.028100013732910156q-0.3147200345993042,0,-0.48050999641418457,0.2711648941040039t-0.16579002141952515,0.7769651412963867l0,1.5848398208618164l-0.5058000385761261,0Z`),\r\n    get width() { return getGridUnitWidth(682); },\r\n    height: 15.99,\r\n    char: \"r\"\r\n  },\r\n  'Xs': {\r\n    getPath: () => precision(`M2.6695001125335693,15.148710250854492q0,0.4299297332763672,-0.3245551586151123,0.6631593704223633t-0.9090349674224854,0.2332296371459961q-0.5676199793815613,0,-0.8753150105476379,-0.18686389923095703t-0.4004249721765518,-0.5830755233764648l0.4467899948358536,-0.08710956573486328q0.06462997198104858,0.24446964263916016,0.26695001125335693,0.3582744598388672t0.5619999766349792,0.11380481719970703q0.3849700689315796,0,0.5634050369262695,-0.11801910400390625t0.1784350872039795,-0.35406017303466797q0,-0.179840087890625,-0.12364006042480469,-0.2922401428222656t-0.39902007579803467,-0.18546009063720703l-0.3624899387359619,-0.09554004669189453q-0.4355500340461731,-0.11240005493164062,-0.6196050643920898,-0.22058486938476562t-0.2880249619483948,-0.26273536682128906t-0.10397002100944519,-0.3793497085571289q0,-0.4158802032470703,0.2964549958705902,-0.6336545944213867t0.8640750050544739,-0.2177753448486328q0.5029900074005127,0,0.7994449138641357,0.17702960968017578t0.3751351833343506,0.5676202774047852l-0.45521998405456543,0.05620002746582031q-0.042150020599365234,-0.20232009887695312,-0.22620511054992676,-0.3105049133300781t-0.49315500259399414,-0.108184814453125q-0.34282004833221436,0,-0.5058000087738037,0.10396957397460938t-0.16297996044158936,0.31472015380859375q0,0.12926006317138672,0.0674399733543396,0.2135601043701172t0.19951003789901733,0.1433095932006836t0.5563799142837524,0.1629800796508789q0.4018300771713257,0.10116004943847656,0.5788601636886597,0.18686485290527344t0.27959489822387695,0.18967533111572266t0.15876507759094238,0.24025535583496094t0.05620002746582031,0.3105049133300781Z`),\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16.05,\r\n    char: \"s\"\r\n  },\r\n  'Xt': {\r\n    getPath: () => precision(`M1.5567400455474854,15.96642017364502q-0.25009000301361084,0.06743907928466797,-0.5114200115203857,0.06743907928466797q-0.6069600284099579,0,-0.6069600284099579,-0.6884489059448242l0,-2.028820037841797l-0.3512500077486038,0l0,-0.36811065673828125l0.37091998755931854,0l0.14893001317977905,-0.6800193786621094l0.33719998598098755,0l0,0.6800193786621094l0.562000036239624,0l0,0.36811065673828125l-0.562000036239624,0l0,1.919229507446289q0,0.21918010711669922,0.0716550350189209,0.3076953887939453t0.24868500232696533,0.08851432800292969q0.10115993022918701,0,0.2922400236129761,-0.03933906555175781l0,0.3737297058105469Z`),\r\n    get width() { return getGridUnitWidth(569); },\r\n    height: 16.03,\r\n    char: \"t\"\r\n  },\r\n  'Xu': {\r\n    getPath: () => precision(`M0.8823400139808655,12.948479652404785l0,1.9276599884033203q0,0.3006706237792969,0.05900996923446655,0.4664602279663086t0.1882699728012085,0.23885059356689453t0.37935006618499756,0.07305908203125q0.36529994010925293,0,0.5760500431060791,-0.2500896453857422t0.21074986457824707,-0.6940698623657227l0,-1.7618703842163086l0.5058000087738037,0l0,2.391310691833496q0,0.5310897827148438,0.016860008239746094,0.6491098403930664l-0.47769999504089355,0q-0.0028100013732910156,-0.014050483703613281,-0.005620002746582031,-0.07587051391601562t-0.007025003433227539,-0.1419048309326172t-0.009835004806518555,-0.3020744323730469l-0.008430004119873047,0q-0.17421984672546387,0.31471920013427734,-0.40323495864868164,0.4453849792480469t-0.569024920463562,0.13066387176513672q-0.5001800656318665,0,-0.7320050597190857,-0.24868392944335938t-0.23182499408721924,-0.821925163269043l0,-2.026010513305664l0.5086100101470947,0Z`),\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16.05,\r\n    char: \"u\"\r\n  },\r\n  'Xv': {\r\n    getPath: () => precision(`M1.7225300073623657,15.988900184631348l-0.5985300540924072,0l-1.1043299529701471,-3.0404205322265625l0.5395199749618769,0l0.6687800288200378,1.9782400131225586q0.0365300178527832,0.11240005493164062,0.19388997554779053,0.6659708023071289l0.09835004806518555,-0.32877063751220703l0.10958993434906006,-0.33158016204833984l0.6912599802017212,-1.9838600158691406l0.5367100238800049,0Z`),\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 15.99,\r\n    char: \"v\"\r\n  },\r\n  'Xw': {\r\n    getPath: () => precision(`M3.2989399433135986,15.988900184631348l-0.5872900485992432,0l-0.5310897827148438,-2.1496505737304688l-0.10116004943847656,-0.47488975524902344q-0.02529001235961914,0.1264505386352539,-0.07868003845214844,0.3638954162597656t-0.5732400417327881,2.2606449127197266l-0.5844799876213074,0l-0.851429995149374,-3.0404205322265625l0.5001800023019314,0l0.5142300128936768,2.0653505325317383q0.01967000961303711,0.06744003295898438,0.12082993984222412,0.5563802719116211l0.047770023345947266,-0.20794010162353516l0.6350600719451904,-2.413790702819824l0.5423299074172974,0l0.5310900211334229,2.0878305435180664l0.12926006317138672,0.533900260925293l0.08711004257202148,-0.3905906677246094l0.5760498046875,-2.23114013671875l0.49456024169921875,0Z`),\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 15.99,\r\n    char: \"w\"\r\n  },\r\n  'Xx': {\r\n    getPath: () => precision(`M2.250809907913208,15.988900184631348l-0.8177099227905273,-1.247640609741211l-0.8233299851417542,1.247640609741211l-0.5451399981975555,0l1.0818499624729156,-1.5623598098754883l-1.0312699675559998,-1.4780607223510742l0.5591899752616882,0l0.7587000131607056,1.1830101013183594l0.7530801296234131,-1.1830101013183594l0.5648097991943359,0l-1.031269907951355,1.4724407196044922l1.0958999395370483,1.5679798126220703l-0.564810037612915,0Z`),\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 15.99,\r\n    char: \"x\"\r\n  },\r\n  'Xy': {\r\n    getPath: () => precision(`M0.5367100238800049,17.183149337768555q-0.207940012216568,0,-0.348440021276474,-0.030908584594726562l0,-0.3793506622314453q0.10677999258041382,0.016859054565429688,0.23603999614715576,0.016859054565429688q0.4720800220966339,0,0.7474599778652191,-0.6940689086914062l0.047770023345947266,-0.12083053588867188l-1.205489999614656,-3.026370048522949l0.5395199721679091,0l0.6406800150871277,1.6803808212280273q0.014050006866455078,0.03933906555175781,0.03372001647949219,0.09413433074951172t0.12644994258880615,0.36670494079589844t0.11521005630493164,0.34844017028808594l0.19669997692108154,-0.5535697937011719l0.665969967842102,-1.9360904693603516l0.5339000225067139,0l-1.1689599752426147,3.0404205322265625q-0.1882699728012085,0.4861307144165039,-0.3512500524520874,0.7235746383666992t-0.3610849380493164,0.3540611267089844t-0.4481949806213379,0.11661338806152344Z`),\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 17.18,\r\n    char: \"y\"\r\n  },\r\n  'Xz': {\r\n    getPath: () => precision(`M0.23322999477386475,15.988900184631348l0,-0.38496971130371094l1.7000499963760376,-2.264860153198242l-1.6045099794864655,0l0,-0.3905906677246094l2.2030400335788727,0l0,0.38497066497802734l-1.7028600573539734,2.264860153198242l1.7618700861930847,0l0,0.39058971405029297l-2.357590079307556,0Z`),\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 15.99,\r\n    char: \"z\"\r\n  },\r\n  'Xå': {\r\n    getPath: () => precision(`M1.1633399724960327,16.04509925842285q-0.45802998542785645,0,-0.6884499788284302,-0.24165916442871094t-0.23041999340057373,-0.6631603240966797q0,-0.4720802307128906,0.3105049729347229,-0.7249794006347656t1.0017650723457336,-0.2697601318359375l0.6828298568725586,-0.011240005493164062l0,-0.16579055786132812q0,-0.37091922760009766,-0.15735983848571777,-0.5310897827148438t-0.4945601224899292,-0.1601696014404297q-0.3400099277496338,0,-0.4945598840713501,0.11520957946777344t-0.18546003103256226,0.36810970306396484l-0.5282800197601318,-0.04776954650878906q0.12926000356674194,-0.8205204010009766,1.2195399403572083,-0.8205204010009766q0.5732401609420776,0,0.8626700639724731,0.26273536682128906t0.2894299030303955,0.7601051330566406l0,1.3094596862792969q0,0.22480010986328125,0.05901002883911133,0.3386049270629883t0.22480010986328125,0.11380481719970703q0.0730600357055664,0,0.16578984260559082,-0.019669532775878906l0,0.31472015380859375q-0.19107985496520996,0.04496002197265625,-0.39058995246887207,0.04496002197265625q-0.28099989891052246,0,-0.40885496139526367,-0.14752483367919922t-0.1447150707244873,-0.46224498748779297l-0.016860008239746094,0q-0.19388985633850098,0.34843921661376953,-0.45100486278533936,0.49315452575683594t-0.6252250671386719,0.14471435546875ZM1.2785500288009644,15.665749549865723q0.278190016746521,0,0.49456000328063965,-0.1264495849609375t0.34141504764556885,-0.34703540802001953t0.1250448226928711,-0.4538145065307617l0,-0.2500896453857422l-0.5535699129104614,0.011240005493164062q-0.3568699359893799,0.005620002746582031,-0.5409250259399414,0.0730600357055664t-0.28240495920181274,0.20793914794921875t-0.09834998846054077,0.36811065673828125q0,0.24728012084960938,0.13347500562667847,0.3821601867675781t0.3807550072669983,0.13487911224365234ZM2.245189905166626,12.026800155639648q0,0.28100013732910156,-0.199509859085083,0.48050975799560547t-0.48050999641418457,0.1995096206665039t-0.48050999641418457,-0.1995096206665039t-0.19951003789901733,-0.48050975799560547q0,-0.2838106155395508,0.19951003789901733,-0.48050975799560547t0.48050999641418457,-0.1967000961303711q0.27818989753723145,0,0.47910499572753906,0.1981048583984375t0.20091485977172852,0.47910499572753906ZM1.9417099952697754,12.026800155639648q0,-0.15736007690429688,-0.10959005355834961,-0.2669506072998047t-0.2669498920440674,-0.1095895767211914q-0.1601700782775879,0,-0.26976001262664795,0.1095895767211914t-0.10959005355834961,0.2669506072998047q0,0.15454959869384766,0.1067800521850586,0.2697601318359375t0.27257001399993896,0.11520957946777344q0.16297996044158936,0,0.2697598934173584,-0.11380481719970703t0.1067800521850586,-0.2711648941040039Z`),\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16.05,\r\n    char: \"å\"\r\n  },\r\n  'Xä': {\r\n    getPath: () => precision(`M1.1633399724960327,16.04509925842285q-0.45802998542785645,0,-0.6884499788284302,-0.24165916442871094t-0.23041999340057373,-0.6631603240966797q0,-0.4720802307128906,0.3105049729347229,-0.7249794006347656t1.0017650723457336,-0.2697601318359375l0.6828298568725586,-0.011240005493164062l0,-0.16579055786132812q0,-0.37091922760009766,-0.15735983848571777,-0.5310897827148438t-0.4945601224899292,-0.1601696014404297q-0.3400099277496338,0,-0.4945598840713501,0.11520957946777344t-0.18546003103256226,0.36810970306396484l-0.5282800197601318,-0.04776954650878906q0.12926000356674194,-0.8205204010009766,1.2195399403572083,-0.8205204010009766q0.5732401609420776,0,0.8626700639724731,0.26273536682128906t0.2894299030303955,0.7601051330566406l0,1.3094596862792969q0,0.22480010986328125,0.05901002883911133,0.3386049270629883t0.22480010986328125,0.11380481719970703q0.0730600357055664,0,0.16578984260559082,-0.019669532775878906l0,0.31472015380859375q-0.19107985496520996,0.04496002197265625,-0.39058995246887207,0.04496002197265625q-0.28099989891052246,0,-0.40885496139526367,-0.14752483367919922t-0.1447150707244873,-0.46224498748779297l-0.016860008239746094,0q-0.19388985633850098,0.34843921661376953,-0.45100486278533936,0.49315452575683594t-0.6252250671386719,0.14471435546875ZM1.2785500288009644,15.665749549865723q0.278190016746521,0,0.49456000328063965,-0.1264495849609375t0.34141504764556885,-0.34703540802001953t0.1250448226928711,-0.4538145065307617l0,-0.2500896453857422l-0.5535699129104614,0.011240005493164062q-0.3568699359893799,0.005620002746582031,-0.5409250259399414,0.0730600357055664t-0.28240495920181274,0.20793914794921875t-0.09834998846054077,0.36811065673828125q0,0.24728012084960938,0.13347500562667847,0.3821601867675781t0.3807550072669983,0.13487911224365234ZM1.8939399719238281,12.563509941101074l0,-0.5170402526855469l0.45802998542785645,0l0,0.5170402526855469l-0.45802998542785645,0ZM0.7868000268936157,12.563509941101074l0,-0.5170402526855469l0.4636499881744385,0l0,0.5170402526855469l-0.4636499881744385,0Z`),\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16.05,\r\n    char: \"ä\"\r\n  },\r\n  'Xö': {\r\n    getPath: () => precision(`M2.958930015563965,14.465880393981934q0,0.798039436340332,-0.35124993324279785,1.188629150390625t-1.02003014087677,0.39058971405029297q-0.665969967842102,0,-1.0059799551963806,-0.40604400634765625t-0.34000998735427856,-1.1731748580932617q0,-1.5736007690429688,1.3628499507904053,-1.5736007690429688q0.6968799829483032,0,1.025650143623352,0.38356494903564453t0.3287699222564697,1.1900358200073242ZM2.427839994430542,14.465880393981934q0,-0.6294403076171875,-0.18686509132385254,-0.9146556854248047t-0.6280349493026733,-0.2852144241333008q-0.44397997856140137,0,-0.6420849561691284,0.2908344268798828t-0.19810497760772705,0.9090356826782227q0,0.6013393402099609,0.19529497623443604,0.9034147262573242t0.6139850616455078,0.3020744323730469q0.45521998405456543,0,0.6505148410797119,-0.2922391891479492t0.19529509544372559,-0.9132499694824219ZM1.9360899925231934,12.563509941101074l0,-0.5170402526855469l0.45802998542785645,0l0,0.5170402526855469l-0.45802998542785645,0ZM0.8289499878883362,12.563509941101074l0,-0.5170402526855469l0.46365004777908325,0l0,0.5170402526855469l-0.46365004777908325,0Z`),\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16.05,\r\n    char: \"ö\"\r\n  },\r\n  'XA': {\r\n    getPath: () => precision(`M3.2792699337005615,15.988900184631348l-0.4524099826812744,-1.1577205657958984l-1.8040199279785156,0l-0.4552200436592102,1.1577205657958984l-0.5563799794763327,0l1.6157499607652426,-3.9592905044555664l0.6097699403762817,0l1.5904600620269775,3.9592905044555664l-0.547950029373169,0ZM1.9248499870300293,12.434249877929688l-0.02529001235961914,0.07868003845214844q-0.07024991512298584,0.2332296371459961,-0.2079399824142456,0.5985298156738281l-0.5058000087738037,1.301030158996582l1.4808701276779175,0l-0.5086100101470947,-1.306650161743164q-0.07868003845214844,-0.19388961791992188,-0.15736007690429688,-0.43835926055908203Z`),\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 15.99,\r\n    char: \"A\",\r\n    kerningRules: {\r\n      \"y\": getGridUnitKerningRule(37),\r\n      \"v\": getGridUnitKerningRule(37),\r\n      \"w\": getGridUnitKerningRule(37),\r\n      \"Y\": getGridUnitKerningRule(152),\r\n      \"W\": getGridUnitKerningRule(76),\r\n      \"V\": getGridUnitKerningRule(152),\r\n      \"T\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  'XB': {\r\n    getPath: () => precision(`M3.534980058670044,14.873330116271973q0,0.5282802581787109,-0.38496994972229004,0.821925163269043t-1.0706100463867188,0.29364490509033203l-1.6073200702667236,0l0,-3.9592905044555664l1.4387199878692627,0q1.3937599658966064,0,1.3937599658966064,0.9610204696655273q0,0.35124969482421875,-0.196699857711792,0.5901002883911133t-0.556380033493042,0.3203392028808594q0.4720799922943115,0.05620002746582031,0.7277898788452148,0.31612491607666016t0.2557101249694824,0.6561355590820312ZM2.7650399208068848,13.055259704589844q0,-0.3203401565551758,-0.21917986869812012,-0.45802974700927734t-0.6350600719451904,-0.13768959045410156l-0.9020099639892578,0l0,1.2532596588134766l0.9020099639892578,0q0.4299299716949463,0,0.642085075378418,-0.1615753173828125t0.21215486526489258,-0.49596500396728516ZM2.992650032043457,14.83117961883545q0,-0.6996898651123047,-0.9835000038146973,-0.6996898651123047l-1.0003600120544434,0l0,1.427480697631836l1.0425100326538086,0q0.49175000190734863,0,0.7165498733520508,-0.18265056610107422t0.22480010986328125,-0.545140266418457Z`),\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 15.99,\r\n    char: \"B\"\r\n  },\r\n  'XC': {\r\n    getPath: () => precision(`M2.225519895553589,12.408960342407227q-0.6575398445129395,0,-1.022839903831482,0.42290496826171875t-0.3652999997138977,1.1591243743896484q0,0.7277898788452148,0.3807550072669983,1.170365333557129t1.0298649072647095,0.44257545471191406q0.8317601680755615,0,1.2504501342773438,-0.8233308792114258l0.43835997581481934,0.21918010711669922q-0.24447011947631836,0.5114202499389648,-0.6870450973510742,0.7783699035644531t-1.027055025100708,0.2669496536254883q-0.5985299348831177,0,-1.0354849100112915,-0.24868392944335938t-0.665969967842102,-0.7109298706054688t-0.2290150225162506,-1.0944957733154297q0,-0.9469699859619141,0.5114199817180634,-1.4836797714233398t1.4162399172782898,-0.5367097854614258q0.6322500705718994,0,1.0565600395202637,0.24728012084960938t0.6238200664520264,0.7334098815917969l-0.5086100101470947,0.16860008239746094q-0.13769006729125977,-0.3456306457519531,-0.44257497787475586,-0.5282802581787109t-0.7235751152038574,-0.1826496124267578Z`),\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16.05,\r\n    char: \"C\"\r\n  },\r\n  'XD': {\r\n    getPath: () => precision(`M3.8806099891662598,13.968509674072266q0,0.6125802993774414,-0.23884987831115723,1.0720157623291016t-0.6772100925445557,0.7039041519165039t-1.0116000175476074,0.24447059631347656l-1.480870008468628,0l0,-3.9592905044555664l1.3094600439071655,0q1.0059798955917358,0,1.5525249242782593,0.5043954849243164t0.5465450286865234,1.434504508972168ZM3.341089963912964,13.968509674072266q0,-0.7362194061279297,-0.40323495864868164,-1.1225948333740234t-1.1675549745559692,-0.38637447357177734l-0.7615100145339966,0l0,3.0994300842285156l0.8823399543762207,0q0.4355499744415283,0,0.7657251358032227,-0.19108009338378906t0.5072050094604492,-0.5507602691650391t0.17702984809875488,-0.8486204147338867Z`),\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 15.99,\r\n    char: \"D\"\r\n  },\r\n  'XE': {\r\n    getPath: () => precision(`M0.4720799922943115,15.988900184631348l0,-3.9592905044555664l3.003890037536621,0l0,0.43836021423339844l-2.467180013656616,0l0,1.2701196670532227l2.2985799312591553,0l0,0.4327402114868164l-2.2985799312591553,0l0,1.3797101974487305l2.582390069961548,0l0,0.43836021423339844l-3.1191000938415527,0Z`),\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 15.99,\r\n    char: \"E\"\r\n  },\r\n  'XF': {\r\n    getPath: () => precision(`M1.0087900161743164,12.46796989440918l0,1.4724397659301758l2.2086598873138428,0l0,0.44398021697998047l-2.2086598873138428,0l0,1.6045103073120117l-0.5367100238800049,0l0,-3.9592905044555664l2.812809944152832,0l0,0.43836021423339844l-2.276099920272827,0Z`),\r\n    get width() { return getGridUnitWidth(1251); },\r\n    height: 15.99,\r\n    char: \"F\",\r\n    kerningRules: {\r\n      \"A\": getGridUnitKerningRule(113)\r\n    }\r\n  },\r\n  'XG': {\r\n    getPath: () => precision(`M0.28942999243736267,13.990989685058594q0,-0.9638299942016602,0.5170399844646454,-1.4921092987060547t1.452769935131073,-0.5282802581787109q0.6575400829315186,0,1.0678000450134277,0.22198963165283203t0.6322500705718994,0.7109298706054688l-0.5114200115203857,0.15174007415771484q-0.16860008239746094,-0.3372001647949219,-0.465054988861084,-0.49174976348876953t-0.7376251220703125,-0.15454959869384766q-0.6856398582458496,0,-1.048129916191101,0.4144744873046875t-0.3624899983406067,1.1675548553466797q0,0.750269889831543,0.3849700093269348,1.1844148635864258t1.0649899244308472,0.4341459274291992q0.38778018951416016,0,0.7235751152038574,-0.11802005767822266t0.5437350273132324,-0.3203401565551758l0,-0.713740348815918l-1.1830101013183594,0l0,-0.4496002197265625l1.677570104598999,0l0,1.3656606674194336q-0.31472015380859375,0.3203392028808594,-0.7713451385498047,0.49596500396728516t-0.9905250072479248,0.17562389373779297q-0.6210099458694458,0,-1.0706099271774292,-0.24727916717529297t-0.6870449781417847,-0.7123346328735352t-0.23744502663612366,-1.0944957733154297Z`),\r\n    get width() { return getGridUnitWidth(1593); },\r\n    height: 16.05,\r\n    char: \"G\"\r\n  },\r\n  'XH': {\r\n    getPath: () => precision(`M3.150010108947754,15.988900184631348l0,-1.834930419921875l-2.1412200927734375,0l0,1.834930419921875l-0.5367100238800049,0l0,-3.9592905044555664l0.5367100238800049,0l0,1.674759864807129l2.1412200927734375,0l0,-1.674759864807129l0.5367097854614258,0l0,3.9592905044555664l-0.5367097854614258,0Z`),\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 15.99,\r\n    char: \"H\"\r\n  },\r\n  'XI': {\r\n    getPath: () => precision(`M0.5310900211334229,15.988900184631348l0,-3.9592905044555664l0.5367100238800049,0l0,3.9592905044555664l-0.5367100238800049,0Z`),\r\n    get width() { return getGridUnitWidth(569); },\r\n    height: 15.99,\r\n    char: \"I\"\r\n  },\r\n  'XJ': {\r\n    getPath: () => precision(`M1.2841700315475464,16.04509925842285q-1.0059800446033478,0,-1.1942500323057175,-1.0396995544433594l0.5254700034856796,-0.08710956573486328q0.05058002471923828,0.3259601593017578,0.22760999202728271,0.5086097717285156t0.44398003816604614,0.18265056610107422q0.2922400236129761,0,0.46083998680114746,-0.20091533660888672t0.1685999631881714,-0.5886955261230469l0,-2.3519697189331055l-0.7615100145339966,0l0,-0.43836021423339844l1.2954100370407104,0l0,2.77908992767334q0,0.5760507583618164,-0.31190991401672363,0.9062252044677734t-0.8542400598526001,0.33017444610595703Z`),\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16.05,\r\n    char: \"J\"\r\n  },\r\n  'XK': {\r\n    getPath: () => precision(`M3.1078600883483887,15.988900184631348l-1.5820300579071045,-1.9107999801635742l-0.5170400142669678,0.3934001922607422l0,1.517399787902832l-0.5367100238800049,0l0,-3.9592905044555664l0.5367100238800049,0l0,1.9838600158691406l1.9079899787902832,-1.9838600158691406l0.6322500705718994,0l-1.686000108718872,1.7197198867797852l1.9107999801635742,2.2395706176757812l-0.6659698486328125,0Z`),\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 15.99,\r\n    char: \"K\"\r\n  },\r\n  'XL': {\r\n    getPath: () => precision(`M0.4720799922943115,15.988900184631348l0,-3.9592905044555664l0.5367100238800049,0l0,3.520930290222168l2.0007200241088867,0l0,0.43836021423339844l-2.5374300479888916,0Z`),\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 15.99,\r\n    char: \"L\",\r\n    kerningRules: {\r\n      \"y\": getGridUnitKerningRule(76),\r\n      \"Y\": getGridUnitKerningRule(152),\r\n      \"W\": getGridUnitKerningRule(152),\r\n      \"V\": getGridUnitKerningRule(152),\r\n      \"T\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  'XM': {\r\n    getPath: () => precision(`M3.8384599685668945,15.988900184631348l0,-2.6414003372192383q0,-0.43836021423339844,0.02529001235961914,-0.8429994583129883q-0.13769006729125977,0.5029897689819336,-0.24727988243103027,0.786799430847168l-1.0228400230407715,2.6976003646850586l-0.3765401840209961,0l-1.036889910697937,-2.6976003646850586l-0.15735995769500732,-0.47770023345947266l-0.09273004531860352,-0.3090991973876953l0.008430004119873047,0.31190967559814453l0.011240005493164062,0.5310897827148438l0,2.6414003372192383l-0.47769999504089355,0l0,-3.9592905044555664l0.7053099870681763,0l1.053749918937683,2.7453699111938477q0.05620002746582031,0.16579055786132812,0.1081850528717041,0.3554649353027344t0.06884503364562988,0.2739753723144531q0.022480010986328125,-0.11240005493164062,0.09413504600524902,-0.3414144515991211t0.09694504737854004,-0.2880258560180664l1.0340800285339355,-2.7453699111938477l0.6884500980377197,0l0,3.9592905044555664l-0.4833202362060547,0Z`),\r\n    get width() { return getGridUnitWidth(1706); },\r\n    height: 15.99,\r\n    char: \"M\"\r\n  },\r\n  'XN': {\r\n    getPath: () => precision(`M3.0404200553894043,15.988900184631348l-2.1187400817871094,-3.371999740600586l0.014050006866455078,0.2725696563720703l0.014050006866455078,0.4692697525024414l0,2.630160331726074l-0.47769999504089355,0l0,-3.9592905044555664l0.6238200664520264,0l2.1412198543548584,3.3944807052612305q-0.03372001647949219,-0.5507602691650391,-0.03372001647949219,-0.7980403900146484l0,-2.596440315246582l0.4833199977874756,0l0,3.9592905044555664l-0.6462998390197754,0Z`),\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 15.99,\r\n    char: \"N\"\r\n  },\r\n  'XO': {\r\n    getPath: () => precision(`M4.2009501457214355,13.990989685058594q0,0.6210107803344727,-0.23744511604309082,1.0874700546264648t-0.6814250946044922,0.7165498733520508t-1.0481300354003906,0.2500896453857422q-0.6097699403762817,0,-1.0523449182510376,-0.24727916717529297t-0.6758049726486206,-0.7151451110839844t-0.23322999477386475,-1.0916852951049805q0,-0.9497795104980469,0.5198500156402588,-1.4850845336914062t1.4471498727798462,-0.5353050231933594q0.6041500568389893,0,1.0481300354003906,0.24025440216064453t0.6786150932312012,0.6982851028442383t0.2346351146697998,1.0818500518798828ZM3.6530001163482666,13.990989685058594q0,-0.7390298843383789,-0.36951518058776855,-1.1605300903320312t-1.043915033340454,-0.42149925231933594q-0.6800198554992676,0,-1.050939917564392,0.4158792495727539t-0.37092000246047974,1.1661500930786133q0,0.7446498870849609,0.37513500452041626,1.181605339050293t1.0411049127578735,0.43695545196533203q0.6856400966644287,0,1.0523450374603271,-0.42290592193603516t0.36670517921447754,-1.1956548690795898Z`),\r\n    get width() { return getGridUnitWidth(1593); },\r\n    height: 16.05,\r\n    char: \"O\"\r\n  },\r\n  'XP': {\r\n    getPath: () => precision(`M3.534980058670044,13.221050262451172q0,0.5619993209838867,-0.36670494079589844,0.8935794830322266t-0.9961450099945068,0.33158016204833984l-1.1633400917053223,0l0,1.5426902770996094l-0.5367100238800049,0l0,-3.9592905044555664l1.666330099105835,0q0.6659698486328125,0,1.0312700271606445,0.31191062927246094t0.36529994010925293,0.8795299530029297ZM2.995460033416748,13.226670265197754q0,-0.7671298980712891,-0.9216799736022949,-0.7671298980712891l-1.0649900436401367,0l0,1.5623598098754883l1.0874700546264648,0q0.8991999626159668,0,0.8991999626159668,-0.7952299118041992Z`),\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 15.99,\r\n    char: \"P\",\r\n    kerningRules: {\r\n      \"A\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  'XQ': {\r\n    getPath: () => precision(`M4.2009501457214355,13.990989685058594q0,0.8373804092407227,-0.42150020599365234,1.3769006729125977t-1.1717698574066162,0.6378698348999023q0.11520981788635254,0.35405921936035156,0.3020749092102051,0.5114192962646484t0.47348499298095703,0.15736007690429688q0.15455007553100586,0,0.3231499195098877,-0.036529541015625l0,0.3765392303466797q-0.26132988929748535,0.06182098388671875,-0.5001800060272217,0.06182098388671875q-0.42430996894836426,0,-0.6982848644256592,-0.24025535583496094t-0.4481949806213379,-0.8022556304931641q-0.556380033493042,-0.02809906005859375,-0.9596151113510132,-0.28240394592285156t-0.6153899431228638,-0.7081203460693359t-0.21215498447418213,-1.0523452758789062q0,-0.9497795104980469,0.5198500156402588,-1.4850845336914062t1.4471498727798462,-0.5353050231933594q0.6041500568389893,0,1.0481300354003906,0.24025440216064453t0.6786150932312012,0.6982851028442383t0.2346351146697998,1.0818500518798828ZM3.6530001163482666,13.990989685058594q0,-0.7390298843383789,-0.36951518058776855,-1.1605300903320312t-1.043915033340454,-0.42149925231933594q-0.6800198554992676,0,-1.050939917564392,0.4158792495727539t-0.37092000246047974,1.1661500930786133q0,0.7446498870849609,0.37513500452041626,1.181605339050293t1.0411049127578735,0.43695545196533203q0.6856400966644287,0,1.0523450374603271,-0.42290592193603516t0.36670517921447754,-1.1956548690795898Z`),\r\n    get width() { return getGridUnitWidth(1593); },\r\n    height: 17.08,\r\n    char: \"Q\"\r\n  },\r\n  'XR': {\r\n    getPath: () => precision(`M3.2708399295806885,15.988900184631348l-1.0284600257873535,-1.643850326538086l-1.2335898876190186,0l0,1.643850326538086l-0.5367100238800049,0l0,-3.9592905044555664l1.863029956817627,0q0.6687800884246826,0,1.03267502784729,0.29926490783691406t0.3638949394226074,0.833165168762207q0,0.44117069244384766,-0.25711488723754883,0.7418403625488281t-0.7095251083374023,0.3793497085571289l1.124000072479248,1.7056703567504883l-0.6182000637054443,0ZM3.19215989112854,13.167659759521484q0,-0.3456296920776367,-0.2346348762512207,-0.5268745422363281t-0.6758050918579102,-0.1812448501586914l-1.2729299068450928,0l0,1.4611997604370117l1.295409917831421,0q0.42430996894836426,0,0.656135082244873,-0.1981048583984375t0.2318248748779297,-0.5549755096435547Z`),\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 15.99,\r\n    char: \"R\",\r\n    kerningRules: {\r\n      \"Y\": getGridUnitKerningRule(37),\r\n      \"W\": getGridUnitKerningRule(37),\r\n      \"V\": getGridUnitKerningRule(37),\r\n      \"T\": getGridUnitKerningRule(37)\r\n    }\r\n  },\r\n  'XS': {\r\n    getPath: () => precision(`M3.574320077896118,14.8958101272583q0,0.5479497909545898,-0.4285249710083008,0.8486194610595703t-1.206895112991333,0.30066967010498047q-1.4471499919891357,0,-1.6775699853897095,-1.0059795379638672l0.5198500156402588,-0.10396957397460938q0.08991998434066772,0.3568696975708008,0.382159948348999,0.5240650177001953t0.7952300310134888,0.16719436645507812q0.5198500156402588,0,0.8022549152374268,-0.1784343719482422t0.28240513801574707,-0.5240650177001953q0,-0.19389057159423828,-0.08851504325866699,-0.31472015380859375t-0.24868512153625488,-0.1995096206665039t-0.382159948348999,-0.13207054138183594t-0.49175000190734863,-0.11520957946777344q-0.4692699909210205,-0.10397052764892578,-0.7123349905014038,-0.20794010162353516t-0.38356494903564453,-0.2318248748779297t-0.21496498584747314,-0.29926490783691406t-0.07446500658988953,-0.3934001922607422q0,-0.5086097717285156,0.38918498158454895,-0.7839899063110352t1.1141650080680847,-0.27538013458251953q0.6744000911712646,0,1.0312700271606445,0.20653533935546875t0.5001800060272217,0.7039041519165039l-0.5282800197601318,0.09273052215576172q-0.08711004257202148,-0.31472015380859375,-0.33157992362976074,-0.45662498474121094t-0.6772100925445557,-0.1419048309326172q-0.47488999366760254,0,-0.7249799966812134,0.15736007690429688t-0.25009000301361084,0.4692697525024414q0,0.1826496124267578,0.09694504737854004,0.3020744323730469t0.27959489822387695,0.20232009887695312t0.727790117263794,0.20372486114501953q0.18264985084533691,0.04215049743652344,0.3638949394226074,0.08570575714111328t0.34703493118286133,0.10396957397460938t0.3105051517486572,0.1419048309326172t0.2514948844909668,0.1995105743408203t0.16719508171081543,0.27818965911865234t0.060415029525756836,0.3765401840209961Z`),\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16.05,\r\n    char: \"S\"\r\n  },\r\n  'XT': {\r\n    getPath: () => precision(`M2.023200035095215,12.46796989440918l0,3.520930290222168l-0.5339000225067139,0l0,-3.520930290222168l-1.360040009021759,0l0,-0.43836021423339844l3.253979980945587,0l0,0.43836021423339844l-1.3600399494171143,0Z`),\r\n    get width() { return getGridUnitWidth(1251); },\r\n    height: 15.99,\r\n    char: \"T\",\r\n    kerningRules: {\r\n      \"y\": getGridUnitKerningRule(113),\r\n      \"w\": getGridUnitKerningRule(113),\r\n      \"u\": getGridUnitKerningRule(76),\r\n      \"ù\": getGridUnitKerningRule(76),\r\n      \"ú\": getGridUnitKerningRule(76),\r\n      \"û\": getGridUnitKerningRule(76),\r\n      \"ü\": getGridUnitKerningRule(76),\r\n      \"ū\": getGridUnitKerningRule(76),\r\n      \"ű\": getGridUnitKerningRule(76),\r\n      \"ų\": getGridUnitKerningRule(76),\r\n      \"s\": getGridUnitKerningRule(227),\r\n      \"š\": getGridUnitKerningRule(227),\r\n      \"ś\": getGridUnitKerningRule(227),\r\n      \"r\": getGridUnitKerningRule(76),\r\n      \"o\": getGridUnitKerningRule(227),\r\n      \"ò\": getGridUnitKerningRule(227),\r\n      \"ó\": getGridUnitKerningRule(227),\r\n      \"ô\": getGridUnitKerningRule(227),\r\n      \"õ\": getGridUnitKerningRule(227),\r\n      \"ö\": getGridUnitKerningRule(227),\r\n      \"ø\": getGridUnitKerningRule(227),\r\n      \"ō\": getGridUnitKerningRule(227),\r\n      \"ő\": getGridUnitKerningRule(227),\r\n      \"i\": getGridUnitKerningRule(76),\r\n      \"ì\": getGridUnitKerningRule(76),\r\n      \"í\": getGridUnitKerningRule(76),\r\n      \"î\": getGridUnitKerningRule(76),\r\n      \"ï\": getGridUnitKerningRule(76),\r\n      \"ī\": getGridUnitKerningRule(76),\r\n      \"į\": getGridUnitKerningRule(76),\r\n      \"e\": getGridUnitKerningRule(227),\r\n      \"è\": getGridUnitKerningRule(227),\r\n      \"é\": getGridUnitKerningRule(227),\r\n      \"ê\": getGridUnitKerningRule(227),\r\n      \"ë\": getGridUnitKerningRule(227),\r\n      \"ē\": getGridUnitKerningRule(227),\r\n      \"ė\": getGridUnitKerningRule(227),\r\n      \"ę\": getGridUnitKerningRule(227),\r\n      \"c\": getGridUnitKerningRule(227),\r\n      \"ć\": getGridUnitKerningRule(227),\r\n      \"č\": getGridUnitKerningRule(227),\r\n      \"ç\": getGridUnitKerningRule(227),\r\n      \"a\": getGridUnitKerningRule(227),\r\n      \"à\": getGridUnitKerningRule(227),\r\n      \"á\": getGridUnitKerningRule(227),\r\n      \"â\": getGridUnitKerningRule(227),\r\n      \"ã\": getGridUnitKerningRule(227),\r\n      \"ä\": getGridUnitKerningRule(227),\r\n      \"å\": getGridUnitKerningRule(227),\r\n      \"ā\": getGridUnitKerningRule(227),\r\n      \"ą\": getGridUnitKerningRule(227),\r\n      \"æ\": getGridUnitKerningRule(227),\r\n      \"O\": getGridUnitKerningRule(37),\r\n      \"Ò\": getGridUnitKerningRule(37),\r\n      \"Ó\": getGridUnitKerningRule(37),\r\n      \"Ô\": getGridUnitKerningRule(37),\r\n      \"Õ\": getGridUnitKerningRule(37),\r\n      \"Ö\": getGridUnitKerningRule(37),\r\n      \"Ø\": getGridUnitKerningRule(37),\r\n      \"Ō\": getGridUnitKerningRule(37),\r\n      \"Ő\": getGridUnitKerningRule(37),\r\n      \"A\": getGridUnitKerningRule(152),\r\n      \"À\": getGridUnitKerningRule(152),\r\n      \"Á\": getGridUnitKerningRule(152),\r\n      \"Â\": getGridUnitKerningRule(152),\r\n      \"Ã\": getGridUnitKerningRule(152),\r\n      \"Ä\": getGridUnitKerningRule(152),\r\n      \"Å\": getGridUnitKerningRule(152),\r\n      \"Ā\": getGridUnitKerningRule(152),\r\n      \"Ą\": getGridUnitKerningRule(152),\r\n      \"Æ\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  'XU': {\r\n    getPath: () => precision(`M2.054110050201416,16.04509925842285q-0.4861299991607666,0,-0.8486200571060181,-0.17702960968017578t-0.5619999766349792,-0.5142297744750977t-0.19951000809669495,-0.8036594390869141l0,-2.520570755004883l0.5367099940776825,0l0,2.4756107330322266q0,0.5423297882080078,0.27538001537323,0.8233299255371094t0.7952300310134888,0.28100013732910156q0.5339000225067139,0,0.8303549289703369,-0.2908353805541992t0.29645490646362305,-0.8500251770019531l0,-2.439080238342285l0.5339000225067139,0l0,2.4699907302856445q0,0.48050975799560547,-0.20372486114501953,0.8289499282836914t-0.5760500431060791,0.5324945449829102t-0.8781249523162842,0.18405437469482422Z`),\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16.05,\r\n    char: \"U\"\r\n  },\r\n  'XV': {\r\n    getPath: () => precision(`M2.1974198818206787,15.988900184631348l-0.5563799142837524,0l-1.6157499682158232,-3.9592905044555664l0.5648099910467863,0l1.0958999991416931,2.787520408630371l0.23603999614715576,0.6996898651123047l0.2360401153564453,-0.6996898651123047l1.0902798175811768,-2.787520408630371l0.564810037612915,0Z`),\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 15.99,\r\n    char: \"V\",\r\n    kerningRules: {\r\n      \"y\": getGridUnitKerningRule(76),\r\n      \"ý\": getGridUnitKerningRule(76),\r\n      \"ÿ\": getGridUnitKerningRule(76),\r\n      \"u\": getGridUnitKerningRule(76),\r\n      \"ù\": getGridUnitKerningRule(76),\r\n      \"ú\": getGridUnitKerningRule(76),\r\n      \"û\": getGridUnitKerningRule(76),\r\n      \"ü\": getGridUnitKerningRule(76),\r\n      \"ū\": getGridUnitKerningRule(76),\r\n      \"ű\": getGridUnitKerningRule(76),\r\n      \"ų\": getGridUnitKerningRule(76),\r\n      \"r\": getGridUnitKerningRule(76),\r\n      \"o\": getGridUnitKerningRule(113),\r\n      \"ò\": getGridUnitKerningRule(113),\r\n      \"ó\": getGridUnitKerningRule(113),\r\n      \"ô\": getGridUnitKerningRule(113),\r\n      \"õ\": getGridUnitKerningRule(113),\r\n      \"ö\": getGridUnitKerningRule(113),\r\n      \"ø\": getGridUnitKerningRule(113),\r\n      \"ō\": getGridUnitKerningRule(113),\r\n      \"ő\": getGridUnitKerningRule(113),\r\n      \"i\": getGridUnitKerningRule(37),\r\n      \"ì\": getGridUnitKerningRule(37),\r\n      \"í\": getGridUnitKerningRule(37),\r\n      \"î\": getGridUnitKerningRule(37),\r\n      \"ï\": getGridUnitKerningRule(37),\r\n      \"ī\": getGridUnitKerningRule(37),\r\n      \"į\": getGridUnitKerningRule(37),\r\n      \"e\": getGridUnitKerningRule(113),\r\n      \"è\": getGridUnitKerningRule(113),\r\n      \"é\": getGridUnitKerningRule(113),\r\n      \"ê\": getGridUnitKerningRule(113),\r\n      \"ë\": getGridUnitKerningRule(113),\r\n      \"ē\": getGridUnitKerningRule(113),\r\n      \"ė\": getGridUnitKerningRule(113),\r\n      \"ę\": getGridUnitKerningRule(113),\r\n      \"a\": getGridUnitKerningRule(227),\r\n      \"à\": getGridUnitKerningRule(227),\r\n      \"á\": getGridUnitKerningRule(227),\r\n      \"â\": getGridUnitKerningRule(227),\r\n      \"ã\": getGridUnitKerningRule(227),\r\n      \"ä\": getGridUnitKerningRule(227),\r\n      \"å\": getGridUnitKerningRule(227),\r\n      \"ā\": getGridUnitKerningRule(227),\r\n      \"ą\": getGridUnitKerningRule(227),\r\n      \"æ\": getGridUnitKerningRule(227),\r\n      \"A\": getGridUnitKerningRule(152),\r\n      \"À\": getGridUnitKerningRule(152),\r\n      \"Á\": getGridUnitKerningRule(152),\r\n      \"Â\": getGridUnitKerningRule(152),\r\n      \"Ã\": getGridUnitKerningRule(152),\r\n      \"Ä\": getGridUnitKerningRule(152),\r\n      \"Å\": getGridUnitKerningRule(152),\r\n      \"Ā\": getGridUnitKerningRule(152),\r\n      \"Ą\": getGridUnitKerningRule(152),\r\n      \"Æ\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  'XW': {\r\n    getPath: () => precision(`M4.245910167694092,15.988900184631348l-0.6406800746917725,0l-0.6856400966644287,-2.5149497985839844q-0.06744003295898438,-0.2360401153564453,-0.1967000961303711,-0.8458099365234375q-0.0730597972869873,0.3259592056274414,-0.12363982200622559,0.5451393127441406t-0.7671301364898682,2.8156204223632812l-0.6406799554824829,0l-1.1661499869078398,-3.9592905044555664l0.5591899883002043,0l0.7109300494194031,2.514950752258301q0.12644994258880615,0.4720792770385742,0.23322999477386475,0.972259521484375q0.06743991374969482,-0.3091001510620117,0.15595495700836182,-0.6744003295898438t0.7797750234603882,-2.812809944152832l0.5142300128936768,0l0.6884498596191406,2.4643707275390625q0.15736007690429688,0.6041498184204102,0.24728012084960938,1.0228395462036133l0.02529001235961914,-0.09834957122802734q0.07587003707885742,-0.323150634765625,0.12364006042480469,-0.5268754959106445t0.7896099090576172,-2.861985206604004l0.5591897964477539,0Z`),\r\n    get width() { return getGridUnitWidth(1933); },\r\n    height: 15.99,\r\n    char: \"W\",\r\n    kerningRules: {\r\n      \"y\": getGridUnitKerningRule(18),\r\n      \"ý\": getGridUnitKerningRule(18),\r\n      \"ÿ\": getGridUnitKerningRule(18),\r\n      \"u\": getGridUnitKerningRule(37),\r\n      \"ù\": getGridUnitKerningRule(37),\r\n      \"ú\": getGridUnitKerningRule(37),\r\n      \"û\": getGridUnitKerningRule(37),\r\n      \"ü\": getGridUnitKerningRule(37),\r\n      \"ū\": getGridUnitKerningRule(37),\r\n      \"ű\": getGridUnitKerningRule(37),\r\n      \"ų\": getGridUnitKerningRule(37),\r\n      \"r\": getGridUnitKerningRule(37),\r\n      \"o\": getGridUnitKerningRule(37),\r\n      \"ò\": getGridUnitKerningRule(37),\r\n      \"ó\": getGridUnitKerningRule(37),\r\n      \"ô\": getGridUnitKerningRule(37),\r\n      \"õ\": getGridUnitKerningRule(37),\r\n      \"ö\": getGridUnitKerningRule(37),\r\n      \"ø\": getGridUnitKerningRule(37),\r\n      \"ō\": getGridUnitKerningRule(37),\r\n      \"ő\": getGridUnitKerningRule(37),\r\n      \"e\": getGridUnitKerningRule(37),\r\n      \"è\": getGridUnitKerningRule(37),\r\n      \"é\": getGridUnitKerningRule(37),\r\n      \"ê\": getGridUnitKerningRule(37),\r\n      \"ë\": getGridUnitKerningRule(37),\r\n      \"ē\": getGridUnitKerningRule(37),\r\n      \"ė\": getGridUnitKerningRule(37),\r\n      \"ę\": getGridUnitKerningRule(37),\r\n      \"a\": getGridUnitKerningRule(76),\r\n      \"à\": getGridUnitKerningRule(76),\r\n      \"á\": getGridUnitKerningRule(76),\r\n      \"â\": getGridUnitKerningRule(76),\r\n      \"ã\": getGridUnitKerningRule(76),\r\n      \"ä\": getGridUnitKerningRule(76),\r\n      \"å\": getGridUnitKerningRule(76),\r\n      \"ā\": getGridUnitKerningRule(76),\r\n      \"ą\": getGridUnitKerningRule(76),\r\n      \"æ\": getGridUnitKerningRule(76),\r\n      \"A\": getGridUnitKerningRule(76),\r\n      \"À\": getGridUnitKerningRule(76),\r\n      \"Á\": getGridUnitKerningRule(76),\r\n      \"Â\": getGridUnitKerningRule(76),\r\n      \"Ã\": getGridUnitKerningRule(76),\r\n      \"Ä\": getGridUnitKerningRule(76),\r\n      \"Å\": getGridUnitKerningRule(76),\r\n      \"Ā\": getGridUnitKerningRule(76),\r\n      \"Ą\": getGridUnitKerningRule(76),\r\n      \"Æ\": getGridUnitKerningRule(76)\r\n    }\r\n  },\r\n  'XX': {\r\n    getPath: () => precision(`M3.1247200965881348,15.988900184631348l-1.1886301040649414,-1.7309598922729492l-1.213919997215271,1.7309598922729492l-0.5929099917411804,0l1.5061599612236023,-2.056920051574707l-1.3909499645233154,-1.9023704528808594l0.5929099917411804,0l1.1015200018882751,1.5539302825927734l1.0706100463867188,-1.5539302825927734l0.5929100513458252,0l-1.3544201850891113,1.882699966430664l1.4696300029754639,2.0765905380249023l-0.5929098129272461,0Z`),\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 15.99,\r\n    char: \"X\"\r\n  },\r\n  'XY': {\r\n    getPath: () => precision(`M2.1833701133728027,14.347860336303711l0,1.6410398483276367l-0.5339001417160034,0l0,-1.6410398483276367l-1.5230199694633484,-2.3182506561279297l0.5900999903678894,0l1.205489993095398,1.8855104446411133l1.1998701095581055,-1.8855104446411133l0.5900998115539551,0Z`),\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 15.99,\r\n    char: \"Y\",\r\n    kerningRules: {\r\n      \"v\": getGridUnitKerningRule(113),\r\n      \"u\": getGridUnitKerningRule(113),\r\n      \"ù\": getGridUnitKerningRule(113),\r\n      \"ú\": getGridUnitKerningRule(113),\r\n      \"û\": getGridUnitKerningRule(113),\r\n      \"ü\": getGridUnitKerningRule(113),\r\n      \"ū\": getGridUnitKerningRule(113),\r\n      \"ű\": getGridUnitKerningRule(113),\r\n      \"ų\": getGridUnitKerningRule(113),\r\n      \"q\": getGridUnitKerningRule(188),\r\n      \"p\": getGridUnitKerningRule(152),\r\n      \"o\": getGridUnitKerningRule(188),\r\n      \"ò\": getGridUnitKerningRule(188),\r\n      \"ó\": getGridUnitKerningRule(188),\r\n      \"ô\": getGridUnitKerningRule(188),\r\n      \"õ\": getGridUnitKerningRule(188),\r\n      \"ö\": getGridUnitKerningRule(188),\r\n      \"ø\": getGridUnitKerningRule(188),\r\n      \"ō\": getGridUnitKerningRule(188),\r\n      \"ő\": getGridUnitKerningRule(188),\r\n      \"i\": getGridUnitKerningRule(76),\r\n      \"ì\": getGridUnitKerningRule(76),\r\n      \"í\": getGridUnitKerningRule(76),\r\n      \"î\": getGridUnitKerningRule(76),\r\n      \"ï\": getGridUnitKerningRule(76),\r\n      \"ī\": getGridUnitKerningRule(76),\r\n      \"į\": getGridUnitKerningRule(76),\r\n      \"e\": getGridUnitKerningRule(188),\r\n      \"è\": getGridUnitKerningRule(188),\r\n      \"é\": getGridUnitKerningRule(188),\r\n      \"ê\": getGridUnitKerningRule(188),\r\n      \"ë\": getGridUnitKerningRule(188),\r\n      \"ē\": getGridUnitKerningRule(188),\r\n      \"ė\": getGridUnitKerningRule(188),\r\n      \"ę\": getGridUnitKerningRule(188),\r\n      \"a\": getGridUnitKerningRule(152),\r\n      \"à\": getGridUnitKerningRule(152),\r\n      \"á\": getGridUnitKerningRule(152),\r\n      \"â\": getGridUnitKerningRule(152),\r\n      \"ã\": getGridUnitKerningRule(152),\r\n      \"ä\": getGridUnitKerningRule(152),\r\n      \"å\": getGridUnitKerningRule(152),\r\n      \"ā\": getGridUnitKerningRule(152),\r\n      \"ą\": getGridUnitKerningRule(152),\r\n      \"æ\": getGridUnitKerningRule(152),\r\n      \"A\": getGridUnitKerningRule(152),\r\n      \"À\": getGridUnitKerningRule(152),\r\n      \"Á\": getGridUnitKerningRule(152),\r\n      \"Â\": getGridUnitKerningRule(152),\r\n      \"Ã\": getGridUnitKerningRule(152),\r\n      \"Ä\": getGridUnitKerningRule(152),\r\n      \"Å\": getGridUnitKerningRule(152),\r\n      \"Ā\": getGridUnitKerningRule(152),\r\n      \"Ą\": getGridUnitKerningRule(152),\r\n      \"Æ\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  'XZ': {\r\n    getPath: () => precision(`M3.335469961166382,15.988900184631348l-3.152819961309433,0l0,-0.40182971954345703l2.410980075597763,-3.119100570678711l-2.205850064754486,0l0,-0.43836021423339844l2.8156198859214783,0l0,0.3905906677246094l-2.4109798669815063,3.1303396224975586l2.543049931526184,0l0,0.43836021423339844Z`),\r\n    get width() { return getGridUnitWidth(1251); },\r\n    height: 15.99,\r\n    char: \"Z\"\r\n  },\r\n  'XÅ': {\r\n    getPath: () => precision(`M3.2792699337005615,15.988900184631348l-0.4524099826812744,-1.1577205657958984l-1.8040199279785156,0l-0.4552200436592102,1.1577205657958984l-0.5563799794763327,0l1.6157499607652426,-3.9592905044555664l0.6097699403762817,0l1.5904600620269775,3.9592905044555664l-0.547950029373169,0ZM1.9248499870300293,12.434249877929688l-0.02529001235961914,0.07868003845214844q-0.07024991512298584,0.2332296371459961,-0.2079399824142456,0.5985298156738281l-0.5058000087738037,1.301030158996582l1.4808701276779175,0l-0.5086100101470947,-1.306650161743164q-0.07868003845214844,-0.19388961791992188,-0.15736007690429688,-0.43835926055908203ZM2.607680082321167,11.64463996887207q0,0.28100013732910156,-0.1995100975036621,0.48050975799560547t-0.48050999641418457,0.1995105743408203t-0.48050999641418457,-0.1995105743408203t-0.19950997829437256,-0.48050975799560547q0,-0.2838096618652344,0.19950997829437256,-0.48050975799560547t0.48050999641418457,-0.1967000961303711q0.27818989753723145,0,0.47910499572753906,0.1981048583984375t0.20091509819030762,0.47910499572753906ZM2.3041999340057373,11.64463996887207q0,-0.15736007690429688,-0.10958981513977051,-0.2669496536254883t-0.2669501304626465,-0.10959053039550781q-0.16016995906829834,0,-0.26976001262664795,0.10959053039550781t-0.10958993434906006,0.2669496536254883q0,0.15454959869384766,0.10677993297576904,0.2697601318359375t0.27257001399993896,0.11520957946777344q0.1629800796508789,0,0.2697598934173584,-0.11380481719970703t0.1067800521850586,-0.2711648941040039Z`),\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 15.99,\r\n    char: \"Å\",\r\n    kerningRules: {\r\n      \"y\": getGridUnitKerningRule(37),\r\n      \"v\": getGridUnitKerningRule(37),\r\n      \"w\": getGridUnitKerningRule(37),\r\n      \"Y\": getGridUnitKerningRule(152),\r\n      \"W\": getGridUnitKerningRule(76),\r\n      \"V\": getGridUnitKerningRule(152),\r\n      \"T\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  'XÄ': {\r\n    getPath: () => precision(`M3.2792699337005615,15.988900184631348l-0.4524099826812744,-1.1577205657958984l-1.8040199279785156,0l-0.4552200436592102,1.1577205657958984l-0.5563799794763327,0l1.6157499607652426,-3.9592905044555664l0.6097699403762817,0l1.5904600620269775,3.9592905044555664l-0.547950029373169,0ZM1.9248499870300293,12.434249877929688l-0.02529001235961914,0.07868003845214844q-0.07024991512298584,0.2332296371459961,-0.2079399824142456,0.5985298156738281l-0.5058000087738037,1.301030158996582l1.4808701276779175,0l-0.5086100101470947,-1.306650161743164q-0.07868003845214844,-0.19388961791992188,-0.15736007690429688,-0.43835926055908203ZM2.25642991065979,11.689599990844727l0,-0.5170402526855469l0.45802998542785645,0l0,0.5170402526855469l-0.45802998542785645,0ZM1.1492899656295776,11.689599990844727l0,-0.5170402526855469l0.4636499881744385,0l0,0.5170402526855469l-0.4636499881744385,0Z`),\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 15.99,\r\n    char: \"Ä\",\r\n    kerningRules: {\r\n      \"y\": getGridUnitKerningRule(37),\r\n      \"v\": getGridUnitKerningRule(37),\r\n      \"w\": getGridUnitKerningRule(37),\r\n      \"Y\": getGridUnitKerningRule(152),\r\n      \"W\": getGridUnitKerningRule(76),\r\n      \"V\": getGridUnitKerningRule(152),\r\n      \"T\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  'XÖ': {\r\n    getPath: () => precision(`M4.2009501457214355,13.990989685058594q0,0.6210107803344727,-0.23744511604309082,1.0874700546264648t-0.6814250946044922,0.7165498733520508t-1.0481300354003906,0.2500896453857422q-0.6097699403762817,0,-1.0523449182510376,-0.24727916717529297t-0.6758049726486206,-0.7151451110839844t-0.23322999477386475,-1.0916852951049805q0,-0.9497795104980469,0.5198500156402588,-1.4850845336914062t1.4471498727798462,-0.5353050231933594q0.6041500568389893,0,1.0481300354003906,0.24025440216064453t0.6786150932312012,0.6982851028442383t0.2346351146697998,1.0818500518798828ZM3.6530001163482666,13.990989685058594q0,-0.7390298843383789,-0.36951518058776855,-1.1605300903320312t-1.043915033340454,-0.42149925231933594q-0.6800198554992676,0,-1.050939917564392,0.4158792495727539t-0.37092000246047974,1.1661500930786133q0,0.7446498870849609,0.37513500452041626,1.181605339050293t1.0411049127578735,0.43695545196533203q0.6856400966644287,0,1.0523450374603271,-0.42290592193603516t0.36670517921447754,-1.1956548690795898ZM2.5571000576019287,11.689599990844727l0,-0.5170402526855469l0.45802998542785645,0l0,0.5170402526855469l-0.45802998542785645,0ZM1.4499599933624268,11.689599990844727l0,-0.5170402526855469l0.4636499881744385,0l0,0.5170402526855469l-0.4636499881744385,0Z`),\r\n    get width() { return getGridUnitWidth(1593); },\r\n    height: 16.05,\r\n    char: \"Ö\"\r\n  },\r\n  // Kerning inherited from 'A'\r\n  'XÀ': {\r\n    getPath: () => `M3.2781,16l-0.4522,-1.1573h-1.8034l-0.4551,1.1573h-0.5562l1.6152,-3.9579h0.6096l1.5899,3.9579h-0.5478zM1.9242,12.4466l-0.0253,0.0787q-0.0702,0.2331,-0.2079,0.5983l-0.5056,1.3006h1.4803l-0.5084,-1.3062q-0.0787,-0.1938,-0.1573,-0.4382zM2.1067,11.7022l-0.8708,-0.6096v-0.0815h0.5815l0.6096,0.6348v0.0562h-0.3202z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"À\",\r\n    kerningRules: {\r\n      \"T\": getGridUnitKerningRule(152),\r\n      \"v\": getGridUnitKerningRule(37),\r\n      \"V\": getGridUnitKerningRule(152),\r\n      \"w\": getGridUnitKerningRule(37),\r\n      \"W\": getGridUnitKerningRule(76),\r\n      \"y\": getGridUnitKerningRule(37),\r\n      \"Y\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  // Kerning inherited from 'A'\r\n  'XÁ': {\r\n    getPath: () => `M3.2781,16l-0.4522,-1.1573h-1.8034l-0.4551,1.1573h-0.5562l1.6152,-3.9579h0.6096l1.5899,3.9579h-0.5478zM1.9242,12.4466l-0.0253,0.0787q-0.0702,0.2331,-0.2079,0.5983l-0.5056,1.3006h1.4803l-0.5084,-1.3062q-0.0787,-0.1938,-0.1573,-0.4382zM1.5365,11.7022v-0.0562l0.6096,-0.6348h0.5815v0.0815l-0.8708,0.6096h-0.3202z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Á\",\r\n    kerningRules: {\r\n      \"T\": getGridUnitKerningRule(152),\r\n      \"v\": getGridUnitKerningRule(37),\r\n      \"V\": getGridUnitKerningRule(152),\r\n      \"w\": getGridUnitKerningRule(37),\r\n      \"W\": getGridUnitKerningRule(76),\r\n      \"y\": getGridUnitKerningRule(37),\r\n      \"Y\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  // Kerning inherited from 'A'\r\n  'XÂ': {\r\n    getPath: () => `M3.2781,16l-0.4522,-1.1573h-1.8034l-0.4551,1.1573h-0.5562l1.6152,-3.9579h0.6096l1.5899,3.9579h-0.5478zM1.9242,12.4466l-0.0253,0.0787q-0.0702,0.2331,-0.2079,0.5983l-0.5056,1.3006h1.4803l-0.5084,-1.3062q-0.0787,-0.1938,-0.1573,-0.4382zM2.8483,11.6461v0.0562h-0.2949l-0.6152,-0.3904h-0.0056l-0.6517,0.3904h-0.2921v-0.0562l0.6573,-0.6742h0.573z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Â\",\r\n    kerningRules: {\r\n      \"T\": getGridUnitKerningRule(152),\r\n      \"v\": getGridUnitKerningRule(37),\r\n      \"V\": getGridUnitKerningRule(152),\r\n      \"w\": getGridUnitKerningRule(37),\r\n      \"W\": getGridUnitKerningRule(76),\r\n      \"y\": getGridUnitKerningRule(37),\r\n      \"Y\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  // Kerning inherited from 'A'\r\n  'XÃ': {\r\n    getPath: () => `M3.2781,16l-0.4522,-1.1573h-1.8034l-0.4551,1.1573h-0.5562l1.6152,-3.9579h0.6096l1.5899,3.9579h-0.5478zM1.9242,12.4466l-0.0253,0.0787q-0.0702,0.2331,-0.2079,0.5983l-0.5056,1.3006h1.4803l-0.5084,-1.3062q-0.0787,-0.1938,-0.1573,-0.4382zM2.3652,11.7022q-0.118,0,-0.236,-0.052t-0.2275,-0.1152t-0.2093,-0.1152t-0.1868,-0.052q-0.1545,0,-0.2303,0.0871t-0.1011,0.2472h-0.2556q0.0309,-0.2865,0.0983,-0.434t0.1812,-0.2331t0.2907,-0.0857q0.1236,0,0.2416,0.052t0.2275,0.1152t0.2065,0.1152t0.1812,0.052q0.2809,0,0.3287,-0.3343h0.2584q-0.0478,0.4157,-0.1882,0.5843t-0.3792,0.1685z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Ã\",\r\n    kerningRules: {\r\n      \"T\": getGridUnitKerningRule(152),\r\n      \"v\": getGridUnitKerningRule(37),\r\n      \"V\": getGridUnitKerningRule(152),\r\n      \"w\": getGridUnitKerningRule(37),\r\n      \"W\": getGridUnitKerningRule(76),\r\n      \"y\": getGridUnitKerningRule(37),\r\n      \"Y\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  // Kerning inherited from 'A'\r\n  'XÆ': {\r\n    getPath: () => `M2.7219,16v-1.1573h-1.5393l-0.5562,1.1573h-0.559l1.927,-3.9579h3.3961v0.4382h-2.132v1.2697h1.9635v0.4326h-1.9635v1.3792h2.2472v0.4382h-2.7837zM2.7219,12.4551h-0.4242l-0.0787,0.177l-0.8399,1.7921h1.3427v-1.9691z`,\r\n    get width() { return getGridUnitWidth(2048); },\r\n    height: 16,\r\n    char: \"Æ\",\r\n    kerningRules: {\r\n      \"T\": getGridUnitKerningRule(152),\r\n      \"v\": getGridUnitKerningRule(37),\r\n      \"V\": getGridUnitKerningRule(152),\r\n      \"w\": getGridUnitKerningRule(37),\r\n      \"W\": getGridUnitKerningRule(76),\r\n      \"y\": getGridUnitKerningRule(37),\r\n      \"Y\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  'XÇ': {\r\n    getPath: () => `M2.2247,12.4213q-0.6573,0,-1.0225,0.4228t-0.3652,1.1587q0,0.7275,0.3806,1.1699t1.0295,0.4424q0.8315,0,1.25,-0.823l0.4382,0.2191q-0.2444,0.5112,-0.6868,0.7781t-1.0267,0.2669q-0.5983,0,-1.0351,-0.2486t-0.6657,-0.7107t-0.2289,-1.0941q0,-0.9466,0.5112,-1.4831t1.4157,-0.5365q0.632,0,1.0562,0.2472t0.6236,0.7331l-0.5084,0.1685q-0.1376,-0.3455,-0.4424,-0.5281t-0.7233,-0.1826zM2.7893,16.7107q0,0.5084,-0.7697,0.5084q-0.1601,0,-0.2528,-0.0112v-0.2753q0.1376,0.0169,0.2416,0.0169q0.4129,0,0.4129,-0.2275q0,-0.2163,-0.3736,-0.2163q-0.1208,0,-0.1601,0.0056l0.1826,-0.5112h0.3006l-0.1096,0.2809q0.264,0.0084,0.3961,0.1222t0.132,0.3076z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Ç\"\r\n  },\r\n  'XÈ': {\r\n    getPath: () => `M0.4719,16v-3.9579h3.0028v0.4382h-2.4663v1.2697h2.2978v0.4326h-2.2978v1.3792h2.5815v0.4382h-3.118zM2.0646,11.7022l-0.8708,-0.6096v-0.0815h0.5815l0.6096,0.6348v0.0562h-0.3202z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"È\"\r\n  },\r\n  'XÉ': {\r\n    getPath: () => `M0.4719,16v-3.9579h3.0028v0.4382h-2.4663v1.2697h2.2978v0.4326h-2.2978v1.3792h2.5815v0.4382h-3.118zM1.5478,11.7022v-0.0562l0.6096,-0.6348h0.5815v0.0815l-0.8708,0.6096h-0.3202z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"É\"\r\n  },\r\n  'XÊ': {\r\n    getPath: () => `M0.4719,16v-3.9579h3.0028v0.4382h-2.4663v1.2697h2.2978v0.4326h-2.2978v1.3792h2.5815v0.4382h-3.118zM2.9129,11.6461v0.0562h-0.2949l-0.6152,-0.3904h-0.0056l-0.6517,0.3904h-0.2921v-0.0562l0.6573,-0.6742h0.573z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Ê\"\r\n  },\r\n  'XË': {\r\n    getPath: () => `M0.4719,16v-3.9579h3.0028v0.4382h-2.4663v1.2697h2.2978v0.4326h-2.2978v1.3792h2.5815v0.4382h-3.118zM2.2921,11.7022v-0.5169h0.4579v0.5169h-0.4579zM1.1854,11.7022v-0.5169h0.4635v0.5169h-0.4635z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Ë\"\r\n  },\r\n  'XÌ': {\r\n    getPath: () => `M0.5309,16v-3.9579h0.5365v3.9579h-0.5365zM0.8961,11.7022l-0.8708,-0.6096v-0.0815h0.5815l0.6096,0.6348v0.0562h-0.3202z`,\r\n    get width() { return getGridUnitWidth(569); },\r\n    height: 16,\r\n    char: \"Ì\"\r\n  },\r\n  'XÍ': {\r\n    getPath: () => `M0.5309,16v-3.9579h0.5365v3.9579h-0.5365zM0.3989,11.7022v-0.0562l0.6096,-0.6348h0.5815v0.0815l-0.8708,0.6096h-0.3202z`,\r\n    get width() { return getGridUnitWidth(569); },\r\n    height: 16,\r\n    char: \"Í\"\r\n  },\r\n  'XÎ': {\r\n    getPath: () => `M0.5309,16v-3.9579h0.5365v3.9579h-0.5365zM1.7303,11.6461v0.0562h-0.2949l-0.6152,-0.3904h-0.0056l-0.6517,0.3904h-0.2921v-0.0562l0.6573,-0.6742h0.573z`,\r\n    get width() { return getGridUnitWidth(569); },\r\n    height: 16,\r\n    char: \"Î\"\r\n  },\r\n  'XÏ': {\r\n    getPath: () => `M0.5309,16v-3.9579h0.5365v3.9579h-0.5365zM1.1264,11.7022v-0.5169h0.4579v0.5169h-0.4579zM0.0197,11.7022v-0.5169h0.4635v0.5169h-0.4635z`,\r\n    get width() { return getGridUnitWidth(569); },\r\n    height: 16,\r\n    char: \"Ï\"\r\n  },\r\n  'XÐ': {\r\n    getPath: () => `M0.0393,13.75h0.4326v-1.7079h1.309q1.0056,0,1.552,0.5042t0.5463,1.434q0,0.6124,-0.2388,1.0716t-0.677,0.7037t-1.0112,0.2444h-1.4803v-1.8174h-0.4326v-0.4326zM3.3399,13.9803q0,-0.736,-0.4031,-1.1222t-1.1671,-0.3862h-0.7612v1.2781h1.1404v0.4326h-1.1404v1.3876h0.882q0.4354,0,0.7654,-0.191t0.507,-0.5506t0.177,-0.8483z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Ð\"\r\n  },\r\n  'XÑ': {\r\n    getPath: () => `M3.0393,16l-2.118,-3.3708l0.014,0.2725l0.014,0.4691v2.6292h-0.4775v-3.9579h0.6236l2.1404,3.3933q-0.0337,-0.5506,-0.0337,-0.7978v-2.5955h0.4831v3.9579h-0.6461zM2.5534,11.7022q-0.118,0,-0.236,-0.052t-0.2275,-0.1152t-0.2093,-0.1152t-0.1868,-0.052q-0.1545,0,-0.2303,0.0871t-0.1011,0.2472h-0.2556q0.0309,-0.2865,0.0983,-0.434t0.1812,-0.2331t0.2907,-0.0857q0.1236,0,0.2416,0.052t0.2275,0.1152t0.2065,0.1152t0.1812,0.052q0.2809,0,0.3287,-0.3343h0.2584q-0.0478,0.4157,-0.1882,0.5843t-0.3792,0.1685z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Ñ\"\r\n  },\r\n  'XÒ': {\r\n    getPath: () => `M4.1994,14.0028q0,0.6208,-0.2374,1.0871t-0.6812,0.7163t-1.0478,0.25q-0.6096,0,-1.052,-0.2472t-0.6756,-0.7149t-0.2331,-1.0913q0,-0.9494,0.5197,-1.4846t1.4466,-0.5351q0.6039,0,1.0478,0.2402t0.6784,0.698t0.2346,1.0815zM3.6517,14.0028q0,-0.7388,-0.3694,-1.1601t-1.0435,-0.4213q-0.6798,0,-1.0506,0.4157t-0.3708,1.1657q0,0.7444,0.375,1.1812t1.0407,0.4368q0.6854,0,1.052,-0.4228t0.3666,-1.1952zM2.3989,11.7022l-0.8708,-0.6096v-0.0815h0.5815l0.6096,0.6348v0.0562h-0.3202z`,\r\n    get width() { return getGridUnitWidth(1593); },\r\n    height: 16,\r\n    char: \"Ò\"\r\n  },\r\n  'XÓ': {\r\n    getPath: () => `M4.1994,14.0028q0,0.6208,-0.2374,1.0871t-0.6812,0.7163t-1.0478,0.25q-0.6096,0,-1.052,-0.2472t-0.6756,-0.7149t-0.2331,-1.0913q0,-0.9494,0.5197,-1.4846t1.4466,-0.5351q0.6039,0,1.0478,0.2402t0.6784,0.698t0.2346,1.0815zM3.6517,14.0028q0,-0.7388,-0.3694,-1.1601t-1.0435,-0.4213q-0.6798,0,-1.0506,0.4157t-0.3708,1.1657q0,0.7444,0.375,1.1812t1.0407,0.4368q0.6854,0,1.052,-0.4228t0.3666,-1.1952zM1.7444,11.7022v-0.0562l0.6096,-0.6348h0.5815v0.0815l-0.8708,0.6096h-0.3202z`,\r\n    get width() { return getGridUnitWidth(1593); },\r\n    height: 16,\r\n    char: \"Ó\"\r\n  },\r\n  'XÔ': {\r\n    getPath: () => `M4.1994,14.0028q0,0.6208,-0.2374,1.0871t-0.6812,0.7163t-1.0478,0.25q-0.6096,0,-1.052,-0.2472t-0.6756,-0.7149t-0.2331,-1.0913q0,-0.9494,0.5197,-1.4846t1.4466,-0.5351q0.6039,0,1.0478,0.2402t0.6784,0.698t0.2346,1.0815zM3.6517,14.0028q0,-0.7388,-0.3694,-1.1601t-1.0435,-0.4213q-0.6798,0,-1.0506,0.4157t-0.3708,1.1657q0,0.7444,0.375,1.1812t1.0407,0.4368q0.6854,0,1.052,-0.4228t0.3666,-1.1952zM3.177,11.6461v0.0562h-0.2949l-0.6152,-0.3904h-0.0056l-0.6517,0.3904h-0.2921v-0.0562l0.6573,-0.6742h0.573z`,\r\n    get width() { return getGridUnitWidth(1593); },\r\n    height: 16,\r\n    char: \"Ô\"\r\n  },\r\n  'XÕ': {\r\n    getPath: () => `M4.1994,14.0028q0,0.6208,-0.2374,1.0871t-0.6812,0.7163t-1.0478,0.25q-0.6096,0,-1.052,-0.2472t-0.6756,-0.7149t-0.2331,-1.0913q0,-0.9494,0.5197,-1.4846t1.4466,-0.5351q0.6039,0,1.0478,0.2402t0.6784,0.698t0.2346,1.0815zM3.6517,14.0028q0,-0.7388,-0.3694,-1.1601t-1.0435,-0.4213q-0.6798,0,-1.0506,0.4157t-0.3708,1.1657q0,0.7444,0.375,1.1812t1.0407,0.4368q0.6854,0,1.052,-0.4228t0.3666,-1.1952zM2.6433,11.7022q-0.118,0,-0.236,-0.052t-0.2275,-0.1152t-0.2093,-0.1152t-0.1868,-0.052q-0.1545,0,-0.2303,0.0871t-0.1011,0.2472h-0.2556q0.0309,-0.2865,0.0983,-0.434t0.1812,-0.2331t0.2907,-0.0857q0.1236,0,0.2416,0.052t0.2275,0.1152t0.2065,0.1152t0.1812,0.052q0.2809,0,0.3287,-0.3343h0.2584q-0.0478,0.4157,-0.1882,0.5843t-0.3792,0.1685z`,\r\n    get width() { return getGridUnitWidth(1593); },\r\n    height: 16,\r\n    char: \"Õ\"\r\n  },\r\n  'XØ': {\r\n    getPath: () => `M4.1994,14.0028q0,0.6208,-0.2374,1.0871t-0.6812,0.7163t-1.0478,0.25q-0.691,0,-1.1629,-0.3146l-0.3371,0.4073h-0.5337l0.5618,-0.677q-0.4888,-0.5393,-0.4888,-1.4691q0,-0.9494,0.5197,-1.4846t1.4466,-0.5351q0.6938,0,1.1629,0.309l0.3399,-0.4101h0.5393l-0.5646,0.6798q0.4831,0.5337,0.4831,1.441zM3.6517,14.0028q0,-0.6292,-0.2753,-1.0337l-1.9916,2.3961q0.3427,0.2556,0.8483,0.2556q0.6854,0,1.052,-0.4228t0.3666,-1.1952zM0.8174,14.0028q0,0.6433,0.2837,1.0618l1.986,-2.3961q-0.3483,-0.2472,-0.8483,-0.2472q-0.6798,0,-1.0506,0.4157t-0.3708,1.1657z`,\r\n    get width() { return getGridUnitWidth(1593); },\r\n    height: 16,\r\n    char: \"Ø\"\r\n  },\r\n  'XÙ': {\r\n    getPath: () => `M2.0534,16.0562q-0.486,0,-0.8483,-0.177t-0.5618,-0.514t-0.1994,-0.8034v-2.5197h0.5365v2.4747q0,0.5421,0.2753,0.823t0.7949,0.2809q0.5337,0,0.8301,-0.2907t0.2963,-0.8497v-2.4382h0.5337v2.4691q0,0.4803,-0.2037,0.8287t-0.5758,0.5323t-0.8778,0.184zM2.2837,11.7022l-0.8708,-0.6096v-0.0815h0.5815l0.6096,0.6348v0.0562h-0.3202z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Ù\"\r\n  },\r\n  'XÚ': {\r\n    getPath: () => `M2.0534,16.0562q-0.486,0,-0.8483,-0.177t-0.5618,-0.514t-0.1994,-0.8034v-2.5197h0.5365v2.4747q0,0.5421,0.2753,0.823t0.7949,0.2809q0.5337,0,0.8301,-0.2907t0.2963,-0.8497v-2.4382h0.5337v2.4691q0,0.4803,-0.2037,0.8287t-0.5758,0.5323t-0.8778,0.184zM1.5871,11.7022v-0.0562l0.6096,-0.6348h0.5815v0.0815l-0.8708,0.6096h-0.3202z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Ú\"\r\n  },\r\n  'XÛ': {\r\n    getPath: () => `M2.0534,16.0562q-0.486,0,-0.8483,-0.177t-0.5618,-0.514t-0.1994,-0.8034v-2.5197h0.5365v2.4747q0,0.5421,0.2753,0.823t0.7949,0.2809q0.5337,0,0.8301,-0.2907t0.2963,-0.8497v-2.4382h0.5337v2.4691q0,0.4803,-0.2037,0.8287t-0.5758,0.5323t-0.8778,0.184zM3.0056,11.6461v0.0562h-0.2949l-0.6152,-0.3904h-0.0056l-0.6517,0.3904h-0.2921v-0.0562l0.6573,-0.6742h0.573z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Û\"\r\n  },\r\n  'XÜ': {\r\n    getPath: () => `M2.0534,16.0562q-0.486,0,-0.8483,-0.177t-0.5618,-0.514t-0.1994,-0.8034v-2.5197h0.5365v2.4747q0,0.5421,0.2753,0.823t0.7949,0.2809q0.5337,0,0.8301,-0.2907t0.2963,-0.8497v-2.4382h0.5337v2.4691q0,0.4803,-0.2037,0.8287t-0.5758,0.5323t-0.8778,0.184zM2.3961,11.7022v-0.5169h0.4579v0.5169h-0.4579zM1.2893,11.7022v-0.5169h0.4635v0.5169h-0.4635z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Ü\"\r\n  },\r\n  // Kerning inherited from 'Y'\r\n  'XÝ': {\r\n    getPath: () => `M2.1826,14.3596v1.6404h-0.5337v-1.6404l-1.5225,-2.3174h0.5899l1.2051,1.8848l1.1994,-1.8848h0.5899zM1.5056,11.7022v-0.0562l0.6096,-0.6348h0.5815v0.0815l-0.8708,0.6096h-0.3202z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Ý\",\r\n    kerningRules: {\r\n      \"a\": getGridUnitKerningRule(152),\r\n      \"A\": getGridUnitKerningRule(152),\r\n      \"e\": getGridUnitKerningRule(188),\r\n      \"i\": getGridUnitKerningRule(76),\r\n      \"o\": getGridUnitKerningRule(188),\r\n      \"p\": getGridUnitKerningRule(152),\r\n      \"q\": getGridUnitKerningRule(188),\r\n      \"u\": getGridUnitKerningRule(113),\r\n      \"v\": getGridUnitKerningRule(113)\r\n    }\r\n  },\r\n  // Kerning inherited from 'T'\r\n  'XÞ': {\r\n    getPath: () => `M3.5337,13.9354q0,0.3596,-0.1629,0.639t-0.4705,0.4354t-0.7289,0.1559h-1.1629v0.8343h-0.5365v-3.9579h0.5365v0.7079h1.1292q0.6713,0,1.0337,0.3118t0.3624,0.8736zM2.9944,13.9466q0,-0.3764,-0.2303,-0.5857t-0.691,-0.2093h-1.0646v1.618h1.0871q0.4298,0,0.6643,-0.2177t0.2346,-0.6053z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Þ\",\r\n    kerningRules: {\r\n      \"a\": getGridUnitKerningRule(227),\r\n      \"A\": getGridUnitKerningRule(152),\r\n      \"c\": getGridUnitKerningRule(227),\r\n      \"e\": getGridUnitKerningRule(227),\r\n      \"i\": getGridUnitKerningRule(76),\r\n      \"o\": getGridUnitKerningRule(227),\r\n      \"O\": getGridUnitKerningRule(37),\r\n      \"r\": getGridUnitKerningRule(76),\r\n      \"s\": getGridUnitKerningRule(227),\r\n      \"u\": getGridUnitKerningRule(76),\r\n      \"w\": getGridUnitKerningRule(113),\r\n      \"y\": getGridUnitKerningRule(113)\r\n    }\r\n  },\r\n  'Xß': {\r\n    getPath: () => `M3.2781,15.1713q0,0.4213,-0.264,0.6531t-0.7416,0.2317q-0.4803,0,-0.7949,-0.1376l-0.0056,-0.4607q0.1461,0.0815,0.3708,0.1376t0.4185,0.0562q0.2584,0,0.3961,-0.1208t0.1376,-0.3427q0,-0.1798,-0.1194,-0.323t-0.3919,-0.3062q-0.2584,-0.1517,-0.3862,-0.3371t-0.1278,-0.427q0,-0.1713,0.0801,-0.3118t0.2317,-0.2669q0.1629,-0.1348,0.2374,-0.2528t0.0744,-0.2584q0,-0.2163,-0.1882,-0.3469t-0.4944,-0.1306q-0.4157,0,-0.611,0.2247t-0.1952,0.6798v2.868h-0.5056v-2.8848q0,-0.6376,0.3301,-0.9607t0.9817,-0.323q0.5337,0,0.8497,0.2261t0.316,0.6081q0,0.4017,-0.3174,0.691q-0.2219,0.2022,-0.2697,0.2711t-0.0478,0.1503q0,0.1067,0.0772,0.1896t0.1924,0.1629t0.25,0.1699q0.5169,0.3483,0.5169,0.8708z`,\r\n    get width() { return getGridUnitWidth(1251); },\r\n    height: 16,\r\n    char: \"ß\"\r\n  },\r\n  'Xà': {\r\n    getPath: () => `M1.1629,16.0562q-0.4579,0,-0.6882,-0.2416t-0.2303,-0.6629q0,-0.4719,0.3104,-0.7247t1.0014,-0.2697l0.6826,-0.0112v-0.1657q0,-0.3708,-0.1573,-0.5309t-0.4944,-0.1601q-0.3399,0,-0.4944,0.1152t-0.1854,0.368l-0.5281,-0.0478q0.1292,-0.8202,1.2191,-0.8202q0.573,0,0.8624,0.2626t0.2893,0.7598v1.309q0,0.2247,0.059,0.3385t0.2247,0.1138q0.073,0,0.1657,-0.0197v0.3146q-0.191,0.0449,-0.3904,0.0449q-0.2809,0,-0.4087,-0.1475t-0.1447,-0.4621h-0.0169q-0.1938,0.3483,-0.4508,0.493t-0.625,0.1447zM1.2781,15.677q0.2781,0,0.4944,-0.1264t0.3413,-0.3469t0.125,-0.4537v-0.25l-0.5534,0.0112q-0.3567,0.0056,-0.5407,0.073t-0.2823,0.2079t-0.0983,0.368q0,0.2472,0.1334,0.382t0.3806,0.1348zM1.7528,12.6264l-0.927,-0.7809v-0.0815h0.5815l0.6096,0.8062v0.0562h-0.264z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"à\"\r\n  },\r\n  'Xá': {\r\n    getPath: () => `M1.1629,16.0562q-0.4579,0,-0.6882,-0.2416t-0.2303,-0.6629q0,-0.4719,0.3104,-0.7247t1.0014,-0.2697l0.6826,-0.0112v-0.1657q0,-0.3708,-0.1573,-0.5309t-0.4944,-0.1601q-0.3399,0,-0.4944,0.1152t-0.1854,0.368l-0.5281,-0.0478q0.1292,-0.8202,1.2191,-0.8202q0.573,0,0.8624,0.2626t0.2893,0.7598v1.309q0,0.2247,0.059,0.3385t0.2247,0.1138q0.073,0,0.1657,-0.0197v0.3146q-0.191,0.0449,-0.3904,0.0449q-0.2809,0,-0.4087,-0.1475t-0.1447,-0.4621h-0.0169q-0.1938,0.3483,-0.4508,0.493t-0.625,0.1447zM1.2781,15.677q0.2781,0,0.4944,-0.1264t0.3413,-0.3469t0.125,-0.4537v-0.25l-0.5534,0.0112q-0.3567,0.0056,-0.5407,0.073t-0.2823,0.2079t-0.0983,0.368q0,0.2472,0.1334,0.382t0.3806,0.1348zM1.1573,12.6264v-0.0562l0.6096,-0.8062h0.5815v0.0815l-0.927,0.7809h-0.264z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"á\"\r\n  },\r\n  'Xâ': {\r\n    getPath: () => `M1.1629,16.0562q-0.4579,0,-0.6882,-0.2416t-0.2303,-0.6629q0,-0.4719,0.3104,-0.7247t1.0014,-0.2697l0.6826,-0.0112v-0.1657q0,-0.3708,-0.1573,-0.5309t-0.4944,-0.1601q-0.3399,0,-0.4944,0.1152t-0.1854,0.368l-0.5281,-0.0478q0.1292,-0.8202,1.2191,-0.8202q0.573,0,0.8624,0.2626t0.2893,0.7598v1.309q0,0.2247,0.059,0.3385t0.2247,0.1138q0.073,0,0.1657,-0.0197v0.3146q-0.191,0.0449,-0.3904,0.0449q-0.2809,0,-0.4087,-0.1475t-0.1447,-0.4621h-0.0169q-0.1938,0.3483,-0.4508,0.493t-0.625,0.1447zM1.2781,15.677q0.2781,0,0.4944,-0.1264t0.3413,-0.3469t0.125,-0.4537v-0.25l-0.5534,0.0112q-0.3567,0.0056,-0.5407,0.073t-0.2823,0.2079t-0.0983,0.368q0,0.2472,0.1334,0.382t0.3806,0.1348zM2.4719,12.5702v0.0562h-0.2949l-0.6152,-0.4747h-0.0056l-0.6517,0.4747h-0.2921v-0.0562l0.6573,-0.7584h0.573z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"â\"\r\n  },\r\n  'Xã': {\r\n    getPath: () => `M1.1629,16.0562q-0.4579,0,-0.6882,-0.2416t-0.2303,-0.6629q0,-0.4719,0.3104,-0.7247t1.0014,-0.2697l0.6826,-0.0112v-0.1657q0,-0.3708,-0.1573,-0.5309t-0.4944,-0.1601q-0.3399,0,-0.4944,0.1152t-0.1854,0.368l-0.5281,-0.0478q0.1292,-0.8202,1.2191,-0.8202q0.573,0,0.8624,0.2626t0.2893,0.7598v1.309q0,0.2247,0.059,0.3385t0.2247,0.1138q0.073,0,0.1657,-0.0197v0.3146q-0.191,0.0449,-0.3904,0.0449q-0.2809,0,-0.4087,-0.1475t-0.1447,-0.4621h-0.0169q-0.1938,0.3483,-0.4508,0.493t-0.625,0.1447zM1.2781,15.677q0.2781,0,0.4944,-0.1264t0.3413,-0.3469t0.125,-0.4537v-0.25l-0.5534,0.0112q-0.3567,0.0056,-0.5407,0.073t-0.2823,0.2079t-0.0983,0.368q0,0.2472,0.1334,0.382t0.3806,0.1348zM2.0702,12.6264q-0.118,0,-0.236,-0.052t-0.2275,-0.1152t-0.2093,-0.1152t-0.1868,-0.052q-0.1545,0,-0.2303,0.0871t-0.1011,0.2472h-0.2556q0.0309,-0.2865,0.0983,-0.434t0.1812,-0.2331t0.2907,-0.0857q0.1236,0,0.2416,0.052t0.2275,0.1152t0.2065,0.1152t0.1812,0.052q0.2809,0,0.3287,-0.3343h0.2584q-0.0478,0.4157,-0.1882,0.5843t-0.3792,0.1685z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ã\"\r\n  },\r\n  'Xæ': {\r\n    getPath: () => `M2.7191,14.5871v0.0478q0.0056,0.5084,0.2163,0.7753t0.6039,0.2669q0.3287,0,0.5267,-0.132t0.2683,-0.3343l0.4438,0.1264q-0.2725,0.7191,-1.2388,0.7191q-0.9017,0,-1.1882,-0.7219q-0.2219,0.3933,-0.5169,0.5576t-0.7051,0.1643q-0.4691,0,-0.7065,-0.2416t-0.2374,-0.6629q0,-0.4888,0.3343,-0.736t1.014,-0.2584l0.6742,-0.0112v-0.1657q0,-0.3792,-0.1559,-0.5351t-0.4958,-0.1559q-0.3539,0,-0.5126,0.1124t-0.1952,0.3708l-0.5281,-0.0478q0.1292,-0.8202,1.2472,-0.8202q0.7022,0,0.9803,0.3904q0.3315,-0.3904,0.9719,-0.3904q1.3399,0,1.3399,1.6152v0.0674h-2.1404zM2.2079,14.5l-0.5478,0.0112q-0.3736,0.0084,-0.5716,0.0829t-0.2907,0.2163t-0.0927,0.3497q0,0.2444,0.1404,0.3806t0.4017,0.1362q0.2865,0,0.5014,-0.125t0.3371,-0.3427t0.1222,-0.4593v-0.25zM4.3371,14.1994q-0.0421,-0.4803,-0.2444,-0.7008t-0.5815,-0.2205q-0.3567,0,-0.5632,0.2402t-0.2233,0.6812h1.6124z`,\r\n    get width() { return getGridUnitWidth(1821); },\r\n    height: 16,\r\n    char: \"æ\"\r\n  },\r\n  'Xç': {\r\n    getPath: () => `M0.7725,14.4663q0,0.6067,0.191,0.8989t0.5758,0.2921q0.2697,0,0.4508,-0.1461t0.2233,-0.4494l0.5112,0.0337q-0.059,0.4382,-0.3736,0.6994t-0.7978,0.2612q-0.6376,0,-0.9733,-0.4031t-0.3357,-1.1756q0,-0.7669,0.3371,-1.1699t0.9663,-0.4031q0.4663,0,0.7739,0.2416t0.3862,0.6657l-0.5197,0.0393q-0.0393,-0.2528,-0.1994,-0.4017t-0.4551,-0.1489q-0.4017,0,-0.5815,0.2669t-0.1798,0.8989zM2.1096,16.7107q0,0.5084,-0.7697,0.5084q-0.1601,0,-0.2528,-0.0112v-0.2753q0.1376,0.0169,0.2416,0.0169q0.4129,0,0.4129,-0.2275q0,-0.2163,-0.3736,-0.2163q-0.1208,0,-0.1601,0.0056l0.1826,-0.5112h0.3006l-0.1096,0.2809q0.264,0.0084,0.3961,0.1222t0.132,0.3076z`,\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16,\r\n    char: \"ç\"\r\n  },\r\n  'Xè': {\r\n    getPath: () => `M0.7753,14.5871q0,0.5225,0.2163,0.8062t0.632,0.2837q0.3287,0,0.5267,-0.132t0.2683,-0.3343l0.4438,0.1264q-0.2725,0.7191,-1.2388,0.7191q-0.6742,0,-1.0267,-0.4017t-0.3525,-1.1938q0,-0.7528,0.3525,-1.1545t1.007,-0.4017q1.3399,0,1.3399,1.6152v0.0674h-2.1685zM2.4213,14.1994q-0.0421,-0.4803,-0.2444,-0.7008t-0.5815,-0.2205q-0.368,0,-0.5829,0.2458t-0.2317,0.6756h1.6404zM1.8455,12.6264l-0.927,-0.7809v-0.0815h0.5815l0.6096,0.8062v0.0562h-0.264z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"è\"\r\n  },\r\n  'Xé': {\r\n    getPath: () => `M0.7753,14.5871q0,0.5225,0.2163,0.8062t0.632,0.2837q0.3287,0,0.5267,-0.132t0.2683,-0.3343l0.4438,0.1264q-0.2725,0.7191,-1.2388,0.7191q-0.6742,0,-1.0267,-0.4017t-0.3525,-1.1938q0,-0.7528,0.3525,-1.1545t1.007,-0.4017q1.3399,0,1.3399,1.6152v0.0674h-2.1685zM2.4213,14.1994q-0.0421,-0.4803,-0.2444,-0.7008t-0.5815,-0.2205q-0.368,0,-0.5829,0.2458t-0.2317,0.6756h1.6404zM1.236,12.6264v-0.0562l0.6096,-0.8062h0.5815v0.0815l-0.927,0.7809h-0.264z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"é\"\r\n  },\r\n  'Xê': {\r\n    getPath: () => `M0.7753,14.5871q0,0.5225,0.2163,0.8062t0.632,0.2837q0.3287,0,0.5267,-0.132t0.2683,-0.3343l0.4438,0.1264q-0.2725,0.7191,-1.2388,0.7191q-0.6742,0,-1.0267,-0.4017t-0.3525,-1.1938q0,-0.7528,0.3525,-1.1545t1.007,-0.4017q1.3399,0,1.3399,1.6152v0.0674h-2.1685zM2.4213,14.1994q-0.0421,-0.4803,-0.2444,-0.7008t-0.5815,-0.2205q-0.368,0,-0.5829,0.2458t-0.2317,0.6756h1.6404zM2.5478,12.5702v0.0562h-0.2949l-0.6152,-0.4747h-0.0056l-0.6517,0.4747h-0.2921v-0.0562l0.6573,-0.7584h0.573z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ê\"\r\n  },\r\n  'Xë': {\r\n    getPath: () => `M0.7753,14.5871q0,0.5225,0.2163,0.8062t0.632,0.2837q0.3287,0,0.5267,-0.132t0.2683,-0.3343l0.4438,0.1264q-0.2725,0.7191,-1.2388,0.7191q-0.6742,0,-1.0267,-0.4017t-0.3525,-1.1938q0,-0.7528,0.3525,-1.1545t1.007,-0.4017q1.3399,0,1.3399,1.6152v0.0674h-2.1685zM2.4213,14.1994q-0.0421,-0.4803,-0.2444,-0.7008t-0.5815,-0.2205q-0.368,0,-0.5829,0.2458t-0.2317,0.6756h1.6404zM1.9298,12.5758v-0.5169h0.4579v0.5169h-0.4579zM0.823,12.5758v-0.5169h0.4635v0.5169h-0.4635z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ë\"\r\n  },\r\n  'Xì': {\r\n    getPath: () => `M0.5449,16v-3.0393h0.5056v3.0393h-0.5056zM0.9551,12.6264l-0.927,-0.7809v-0.0815h0.5815l0.6096,0.8062v0.0562h-0.264z`,\r\n    get width() { return getGridUnitWidth(569); },\r\n    height: 16,\r\n    char: \"ì\"\r\n  },\r\n  'Xí': {\r\n    getPath: () => `M0.5449,16v-3.0393h0.5056v3.0393h-0.5056zM0.3792,12.6264v-0.0562l0.6096,-0.8062h0.5815v0.0815l-0.927,0.7809h-0.264z`,\r\n    get width() { return getGridUnitWidth(569); },\r\n    height: 16,\r\n    char: \"í\"\r\n  },\r\n  'Xî': {\r\n    getPath: () => `M0.5449,16v-3.0393h0.5056v3.0393h-0.5056zM1.7331,12.5702v0.0562h-0.2949l-0.6152,-0.4747h-0.0056l-0.6517,0.4747h-0.2921v-0.0562l0.6573,-0.7584h0.573z`,\r\n    get width() { return getGridUnitWidth(569); },\r\n    height: 16,\r\n    char: \"î\"\r\n  },\r\n  'Xï': {\r\n    getPath: () => `M0.5449,16v-3.0393h0.5056v3.0393h-0.5056zM1.1292,12.5758v-0.5169h0.4579v0.5169h-0.4579zM0.0225,12.5758v-0.5169h0.4635v0.5169h-0.4635z`,\r\n    get width() { return getGridUnitWidth(569); },\r\n    height: 16,\r\n    char: \"ï\"\r\n  },\r\n  'Xð': {\r\n    getPath: () => `M1.5899,16.0562q-0.6517,0,-1,-0.3624t-0.3483,-1.0449q0,-0.6854,0.3483,-1.0421t1.0197,-0.3567q0.3848,0,0.6489,0.1657q-0.3062,-0.6096,-0.6573,-0.9298l-0.8455,0.3736v-0.3202l0.6124,-0.264q-0.3062,-0.2444,-0.6798,-0.4438h0.5871q0.2247,0.1011,0.4775,0.2865l0.8596,-0.3708l-0.0028,0.3146l-0.5927,0.2584q0.4803,0.4382,0.7247,1.0084t0.2444,1.2219v0.0169q0,0.7331,-0.3497,1.111t-1.0463,0.3778zM2.4551,14.6489q0,-0.5393,-0.198,-0.7823t-0.6362,-0.243q-0.441,0,-0.6447,0.2444t-0.2037,0.7809q0,0.5337,0.2022,0.7837t0.6096,0.25q0.4522,0,0.6615,-0.2458t0.2093,-0.7879z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ð\"\r\n  },\r\n  'Xñ': {\r\n    getPath: () => `M2.3287,16v-1.927q0,-0.3006,-0.059,-0.4663t-0.1882,-0.2388t-0.3792,-0.073q-0.3652,0,-0.5758,0.25t-0.2107,0.6938v1.7612h-0.5056v-2.3904q0,-0.5309,-0.0169,-0.6489h0.4775q0.0028,0.014,0.0056,0.0758t0.007,0.1419t0.0098,0.302h0.0084q0.1742,-0.3146,0.4031,-0.4452t0.5688,-0.1306q0.5,0,0.7317,0.2486t0.2317,0.8216v2.0253h-0.5084zM2.0702,12.6264q-0.118,0,-0.236,-0.052t-0.2275,-0.1152t-0.2093,-0.1152t-0.1868,-0.052q-0.1545,0,-0.2303,0.0871t-0.1011,0.2472h-0.2556q0.0309,-0.2865,0.0983,-0.434t0.1812,-0.2331t0.2907,-0.0857q0.1236,0,0.2416,0.052t0.2275,0.1152t0.2065,0.1152t0.1812,0.052q0.2809,0,0.3287,-0.3343h0.2584q-0.0478,0.4157,-0.1882,0.5843t-0.3792,0.1685z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ñ\"\r\n  },\r\n  'Xò': {\r\n    getPath: () => `M2.9579,14.4775q0,0.7978,-0.3511,1.1882t-1.0197,0.3904q-0.6657,0,-1.0056,-0.4059t-0.3399,-1.1728q0,-1.573,1.3624,-1.573q0.6966,0,1.0253,0.3834t0.3287,1.1896zM2.427,14.4775q0,-0.6292,-0.1868,-0.9143t-0.6278,-0.2851q-0.4438,0,-0.6419,0.2907t-0.198,0.9087q0,0.6011,0.1952,0.9031t0.6138,0.302q0.4551,0,0.6503,-0.2921t0.1952,-0.9129zM1.8511,12.6264l-0.927,-0.7809v-0.0815h0.5815l0.6096,0.8062v0.0562h-0.264z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ò\"\r\n  },\r\n  'Xó': {\r\n    getPath: () => `M2.9579,14.4775q0,0.7978,-0.3511,1.1882t-1.0197,0.3904q-0.6657,0,-1.0056,-0.4059t-0.3399,-1.1728q0,-1.573,1.3624,-1.573q0.6966,0,1.0253,0.3834t0.3287,1.1896zM2.427,14.4775q0,-0.6292,-0.1868,-0.9143t-0.6278,-0.2851q-0.4438,0,-0.6419,0.2907t-0.198,0.9087q0,0.6011,0.1952,0.9031t0.6138,0.302q0.4551,0,0.6503,-0.2921t0.1952,-0.9129zM1.2107,12.6264v-0.0562l0.6096,-0.8062h0.5815v0.0815l-0.927,0.7809h-0.264z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ó\"\r\n  },\r\n  'Xô': {\r\n    getPath: () => `M2.9579,14.4775q0,0.7978,-0.3511,1.1882t-1.0197,0.3904q-0.6657,0,-1.0056,-0.4059t-0.3399,-1.1728q0,-1.573,1.3624,-1.573q0.6966,0,1.0253,0.3834t0.3287,1.1896zM2.427,14.4775q0,-0.6292,-0.1868,-0.9143t-0.6278,-0.2851q-0.4438,0,-0.6419,0.2907t-0.198,0.9087q0,0.6011,0.1952,0.9031t0.6138,0.302q0.4551,0,0.6503,-0.2921t0.1952,-0.9129zM2.5337,12.5702v0.0562h-0.2949l-0.6152,-0.4747h-0.0056l-0.6517,0.4747h-0.2921v-0.0562l0.6573,-0.7584h0.573z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ô\"\r\n  },\r\n  'Xõ': {\r\n    getPath: () => `M2.9579,14.4775q0,0.7978,-0.3511,1.1882t-1.0197,0.3904q-0.6657,0,-1.0056,-0.4059t-0.3399,-1.1728q0,-1.573,1.3624,-1.573q0.6966,0,1.0253,0.3834t0.3287,1.1896zM2.427,14.4775q0,-0.6292,-0.1868,-0.9143t-0.6278,-0.2851q-0.4438,0,-0.6419,0.2907t-0.198,0.9087q0,0.6011,0.1952,0.9031t0.6138,0.302q0.4551,0,0.6503,-0.2921t0.1952,-0.9129zM2.0758,12.6264q-0.118,0,-0.236,-0.052t-0.2275,-0.1152t-0.2093,-0.1152t-0.1868,-0.052q-0.1545,0,-0.2303,0.0871t-0.1011,0.2472h-0.2556q0.0309,-0.2865,0.0983,-0.434t0.1812,-0.2331t0.2907,-0.0857q0.1236,0,0.2416,0.052t0.2275,0.1152t0.2065,0.1152t0.1812,0.052q0.2809,0,0.3287,-0.3343h0.2584q-0.0478,0.4157,-0.1882,0.5843t-0.3792,0.1685z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"õ\"\r\n  },\r\n  'Xø': {\r\n    getPath: () => `M3.1236,14.4775q0,0.7978,-0.3511,1.1882t-1.0197,0.3904q-0.5478,0,-0.8792,-0.2753l-0.2809,0.3258h-0.4691l0.5169,-0.6011q-0.2331,-0.3876,-0.2331,-1.0281q0,-1.573,1.3624,-1.573q0.5646,0,0.8876,0.2556l0.2556,-0.2949h0.4691l-0.486,0.5646q0.2275,0.3736,0.2275,1.0478zM2.5927,14.4775q0,-0.3624,-0.0646,-0.6208l-1.3567,1.5787q0.191,0.2472,0.5758,0.2472q0.4551,0,0.6503,-0.2921t0.1952,-0.9129zM0.9382,14.4775q0,0.3652,0.0674,0.6039l1.3539,-1.5758q-0.1882,-0.2275,-0.5815,-0.2275q-0.4438,0,-0.6419,0.2907t-0.198,0.9087z`,\r\n    get width() { return getGridUnitWidth(1251); },\r\n    height: 16,\r\n    char: \"ø\"\r\n  },\r\n  'Xù': {\r\n    getPath: () => `M0.8989,12.9607v1.927q0,0.3006,0.059,0.4663t0.1882,0.2388t0.3792,0.073q0.3652,0,0.5758,-0.25t0.2107,-0.6938v-1.7612h0.5056v2.3904q0,0.5309,0.0169,0.6489h-0.4775q-0.0028,-0.014,-0.0056,-0.0758t-0.007,-0.1419t-0.0098,-0.302h-0.0084q-0.1742,0.3146,-0.4031,0.4452t-0.5688,0.1306q-0.5,0,-0.7317,-0.2486t-0.2317,-0.8216v-2.0253h0.5084zM1.8876,12.6264l-0.927,-0.7809v-0.0815h0.5815l0.6096,0.8062v0.0562h-0.264z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ù\"\r\n  },\r\n  'Xú': {\r\n    getPath: () => `M0.8989,12.9607v1.927q0,0.3006,0.059,0.4663t0.1882,0.2388t0.3792,0.073q0.3652,0,0.5758,-0.25t0.2107,-0.6938v-1.7612h0.5056v2.3904q0,0.5309,0.0169,0.6489h-0.4775q-0.0028,-0.014,-0.0056,-0.0758t-0.007,-0.1419t-0.0098,-0.302h-0.0084q-0.1742,0.3146,-0.4031,0.4452t-0.5688,0.1306q-0.5,0,-0.7317,-0.2486t-0.2317,-0.8216v-2.0253h0.5084zM1.1657,12.6264v-0.0562l0.6096,-0.8062h0.5815v0.0815l-0.927,0.7809h-0.264z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ú\"\r\n  },\r\n  'Xû': {\r\n    getPath: () => `M0.8989,12.9607v1.927q0,0.3006,0.059,0.4663t0.1882,0.2388t0.3792,0.073q0.3652,0,0.5758,-0.25t0.2107,-0.6938v-1.7612h0.5056v2.3904q0,0.5309,0.0169,0.6489h-0.4775q-0.0028,-0.014,-0.0056,-0.0758t-0.007,-0.1419t-0.0098,-0.302h-0.0084q-0.1742,0.3146,-0.4031,0.4452t-0.5688,0.1306q-0.5,0,-0.7317,-0.2486t-0.2317,-0.8216v-2.0253h0.5084zM2.5309,12.5702v0.0562h-0.2949l-0.6152,-0.4747h-0.0056l-0.6517,0.4747h-0.2921v-0.0562l0.6573,-0.7584h0.573z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"û\"\r\n  },\r\n  'Xü': {\r\n    getPath: () => `M0.8989,12.9607v1.927q0,0.3006,0.059,0.4663t0.1882,0.2388t0.3792,0.073q0.3652,0,0.5758,-0.25t0.2107,-0.6938v-1.7612h0.5056v2.3904q0,0.5309,0.0169,0.6489h-0.4775q-0.0028,-0.014,-0.0056,-0.0758t-0.007,-0.1419t-0.0098,-0.302h-0.0084q-0.1742,0.3146,-0.4031,0.4452t-0.5688,0.1306q-0.5,0,-0.7317,-0.2486t-0.2317,-0.8216v-2.0253h0.5084zM1.8989,12.5758v-0.5169h0.4579v0.5169h-0.4579zM0.7921,12.5758v-0.5169h0.4635v0.5169h-0.4635z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ü\"\r\n  },\r\n  'Xý': {\r\n    getPath: () => `M0.5365,17.1938q-0.2079,0,-0.3483,-0.0309v-0.3792q0.1067,0.0169,0.236,0.0169q0.4719,0,0.7472,-0.6938l0.0478,-0.1208l-1.2051,-3.0253h0.5393l0.6404,1.6798q0.014,0.0393,0.0337,0.0941t0.1264,0.3666t0.1152,0.3483l0.1966,-0.5534l0.6657,-1.9354h0.5337l-1.1685,3.0393q-0.1882,0.486,-0.3511,0.7233t-0.361,0.3539t-0.448,0.1166zM0.9972,12.6264v-0.0562l0.6096,-0.8062h0.5815v0.0815l-0.927,0.7809h-0.264z`,\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16,\r\n    char: \"ý\"\r\n  },\r\n  'Xþ': {\r\n    getPath: () => `M0.3876,11.8315h0.5056v1.1882q0,0.1826,-0.0112,0.4298h0.0169q0.1348,-0.2809,0.3567,-0.4115t0.5843,-0.1306q0.5618,0,0.8399,0.3764t0.2781,1.1826q0,1.5899,-1.118,1.5899q-0.7022,0,-0.9438,-0.5281h-0.014q0.0112,0.0225,0.0112,0.4775v1.1882h-0.5056v-5.3624zM2.427,14.4775q0,-0.6348,-0.1713,-0.9073t-0.5449,-0.2725q-0.3006,0,-0.4705,0.1264t-0.2584,0.3947t-0.0885,0.698q0,0.5983,0.191,0.882t0.6208,0.2837q0.3764,0,0.5492,-0.2767t0.1728,-0.9284z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"þ\"\r\n  },\r\n  'Xÿ': {\r\n    getPath: () => `M0.5365,17.1938q-0.2079,0,-0.3483,-0.0309v-0.3792q0.1067,0.0169,0.236,0.0169q0.4719,0,0.7472,-0.6938l0.0478,-0.1208l-1.2051,-3.0253h0.5393l0.6404,1.6798q0.014,0.0393,0.0337,0.0941t0.1264,0.3666t0.1152,0.3483l0.1966,-0.5534l0.6657,-1.9354h0.5337l-1.1685,3.0393q-0.1882,0.486,-0.3511,0.7233t-0.361,0.3539t-0.448,0.1166zM1.7584,12.5758v-0.5169h0.4579v0.5169h-0.4579zM0.6517,12.5758v-0.5169h0.4635v0.5169h-0.4635z`,\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16,\r\n    char: \"ÿ\"\r\n  },\r\n  // Kerning inherited from 'A'\r\n  'XĀ': {\r\n    getPath: () => `M3.2781,16l-0.4522,-1.1573h-1.8034l-0.4551,1.1573h-0.5562l1.6152,-3.9579h0.6096l1.5899,3.9579h-0.5478zM1.9242,12.4466l-0.0253,0.0787q-0.0702,0.2331,-0.2079,0.5983l-0.5056,1.3006h1.4803l-0.5084,-1.3062q-0.0787,-0.1938,-0.1573,-0.4382zM2.6966,11.6039h-1.5421v-0.3567h1.5421v0.3567z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Ā\",\r\n    kerningRules: {\r\n      \"T\": getGridUnitKerningRule(152),\r\n      \"v\": getGridUnitKerningRule(37),\r\n      \"V\": getGridUnitKerningRule(152),\r\n      \"w\": getGridUnitKerningRule(37),\r\n      \"W\": getGridUnitKerningRule(76),\r\n      \"y\": getGridUnitKerningRule(37),\r\n      \"Y\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  'Xā': {\r\n    getPath: () => `M1.1629,16.0562q-0.4579,0,-0.6882,-0.2416t-0.2303,-0.6629q0,-0.4719,0.3104,-0.7247t1.0014,-0.2697l0.6826,-0.0112v-0.1657q0,-0.3708,-0.1573,-0.5309t-0.4944,-0.1601q-0.3399,0,-0.4944,0.1152t-0.1854,0.368l-0.5281,-0.0478q0.1292,-0.8202,1.2191,-0.8202q0.573,0,0.8624,0.2626t0.2893,0.7598v1.309q0,0.2247,0.059,0.3385t0.2247,0.1138q0.073,0,0.1657,-0.0197v0.3146q-0.191,0.0449,-0.3904,0.0449q-0.2809,0,-0.4087,-0.1475t-0.1447,-0.4621h-0.0169q-0.1938,0.3483,-0.4508,0.493t-0.625,0.1447zM1.2781,15.677q0.2781,0,0.4944,-0.1264t0.3413,-0.3469t0.125,-0.4537v-0.25l-0.5534,0.0112q-0.3567,0.0056,-0.5407,0.073t-0.2823,0.2079t-0.0983,0.368q0,0.2472,0.1334,0.382t0.3806,0.1348zM2.3399,12.5281h-1.5421v-0.3567h1.5421v0.3567z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ā\"\r\n  },\r\n  // Kerning inherited from 'A'\r\n  'XĄ': {\r\n    getPath: () => `M3.2781,16l-0.4522,-1.1573h-1.8034l-0.4551,1.1573h-0.5562l1.6152,-3.9579h0.6096l1.5899,3.9579h-0.5478zM1.9242,12.4466l-0.0253,0.0787q-0.0702,0.2331,-0.2079,0.5983l-0.5056,1.3006h1.4803l-0.5084,-1.3062q-0.0787,-0.1938,-0.1573,-0.4382zM3.8736,17.0927q-0.177,0.0758,-0.3904,0.0758q-0.2949,0,-0.4438,-0.1433t-0.1489,-0.382q0,-0.1966,0.1222,-0.382t0.3132,-0.2921h0.3736q-0.0702,0.0393,-0.1433,0.1025t-0.1334,0.1461t-0.0983,0.1812t-0.0379,0.2079q0,0.118,0.0688,0.1854t0.1952,0.0674q0.1517,0,0.323,-0.0674v0.3006z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Ą\",\r\n    kerningRules: {\r\n      \"T\": getGridUnitKerningRule(152),\r\n      \"v\": getGridUnitKerningRule(37),\r\n      \"V\": getGridUnitKerningRule(152),\r\n      \"w\": getGridUnitKerningRule(37),\r\n      \"W\": getGridUnitKerningRule(76),\r\n      \"y\": getGridUnitKerningRule(37),\r\n      \"Y\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  'Xą': {\r\n    getPath: () => `M1.1629,16.0562q-0.4579,0,-0.6882,-0.2416t-0.2303,-0.6629q0,-0.4719,0.3104,-0.7247t1.0014,-0.2697l0.6826,-0.0112v-0.1657q0,-0.3708,-0.1573,-0.5309t-0.4944,-0.1601q-0.3399,0,-0.4944,0.1152t-0.1854,0.368l-0.5281,-0.0478q0.1292,-0.8202,1.2191,-0.8202q0.573,0,0.8624,0.2626t0.2893,0.7598v1.309q0,0.2247,0.059,0.3385t0.2247,0.1138q0.073,0,0.1657,-0.0197v0.3146q-0.191,0.0449,-0.3904,0.0449q-0.2809,0,-0.4087,-0.1475t-0.1447,-0.4621h-0.0169q-0.1938,0.3483,-0.4508,0.493t-0.625,0.1447zM1.2781,15.677q0.2781,0,0.4944,-0.1264t0.3413,-0.3469t0.125,-0.4537v-0.25l-0.5534,0.0112q-0.3567,0.0056,-0.5407,0.073t-0.2823,0.2079t-0.0983,0.368q0,0.2472,0.1334,0.382t0.3806,0.1348zM3.1994,17.1236q-0.177,0.0758,-0.3904,0.0758q-0.2949,0,-0.4438,-0.1433t-0.1489,-0.382q0,-0.1966,0.1222,-0.382t0.3132,-0.2921h0.3736q-0.0702,0.0393,-0.1433,0.1025t-0.1334,0.1461t-0.0983,0.1812t-0.0379,0.2079q0,0.118,0.0688,0.1854t0.1952,0.0674q0.1517,0,0.323,-0.0674v0.3006z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ą\"\r\n  },\r\n  'XĆ': {\r\n    getPath: () => `M2.2247,12.4213q-0.6573,0,-1.0225,0.4228t-0.3652,1.1587q0,0.7275,0.3806,1.1699t1.0295,0.4424q0.8315,0,1.25,-0.823l0.4382,0.2191q-0.2444,0.5112,-0.6868,0.7781t-1.0267,0.2669q-0.5983,0,-1.0351,-0.2486t-0.6657,-0.7107t-0.2289,-1.0941q0,-0.9466,0.5112,-1.4831t1.4157,-0.5365q0.632,0,1.0562,0.2472t0.6236,0.7331l-0.5084,0.1685q-0.1376,-0.3455,-0.4424,-0.5281t-0.7233,-0.1826zM1.8736,11.7022v-0.0562l0.6096,-0.6348h0.5815v0.0815l-0.8708,0.6096h-0.3202z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Ć\"\r\n  },\r\n  'Xć': {\r\n    getPath: () => `M0.7725,14.4663q0,0.6067,0.191,0.8989t0.5758,0.2921q0.2697,0,0.4508,-0.1461t0.2233,-0.4494l0.5112,0.0337q-0.059,0.4382,-0.3736,0.6994t-0.7978,0.2612q-0.6376,0,-0.9733,-0.4031t-0.3357,-1.1756q0,-0.7669,0.3371,-1.1699t0.9663,-0.4031q0.4663,0,0.7739,0.2416t0.3862,0.6657l-0.5197,0.0393q-0.0393,-0.2528,-0.1994,-0.4017t-0.4551,-0.1489q-0.4017,0,-0.5815,0.2669t-0.1798,0.8989zM1.2107,12.6264v-0.0562l0.6096,-0.8062h0.5815v0.0815l-0.927,0.7809h-0.264z`,\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16,\r\n    char: \"ć\"\r\n  },\r\n  'XČ': {\r\n    getPath: () => `M2.2247,12.4213q-0.6573,0,-1.0225,0.4228t-0.3652,1.1587q0,0.7275,0.3806,1.1699t1.0295,0.4424q0.8315,0,1.25,-0.823l0.4382,0.2191q-0.2444,0.5112,-0.6868,0.7781t-1.0267,0.2669q-0.5983,0,-1.0351,-0.2486t-0.6657,-0.7107t-0.2289,-1.0941q0,-0.9466,0.5112,-1.4831t1.4157,-0.5365q0.632,0,1.0562,0.2472t0.6236,0.7331l-0.5084,0.1685q-0.1376,-0.3455,-0.4424,-0.5281t-0.7233,-0.1826zM2.5225,11.7022h-0.573l-0.6573,-0.6713v-0.059h0.2921l0.6517,0.3904h0.0056l0.6152,-0.3904h0.2949v0.059z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Č\"\r\n  },\r\n  'Xč': {\r\n    getPath: () => `M0.7725,14.4663q0,0.6067,0.191,0.8989t0.5758,0.2921q0.2697,0,0.4508,-0.1461t0.2233,-0.4494l0.5112,0.0337q-0.059,0.4382,-0.3736,0.6994t-0.7978,0.2612q-0.6376,0,-0.9733,-0.4031t-0.3357,-1.1756q0,-0.7669,0.3371,-1.1699t0.9663,-0.4031q0.4663,0,0.7739,0.2416t0.3862,0.6657l-0.5197,0.0393q-0.0393,-0.2528,-0.1994,-0.4017t-0.4551,-0.1489q-0.4017,0,-0.5815,0.2669t-0.1798,0.8989zM1.8315,12.6264h-0.573l-0.6573,-0.7584v-0.0562h0.2921l0.6517,0.4747h0.0056l0.6152,-0.4747h0.2949v0.0562z`,\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16,\r\n    char: \"č\"\r\n  },\r\n  'XĒ': {\r\n    getPath: () => `M0.4719,16v-3.9579h3.0028v0.4382h-2.4663v1.2697h2.2978v0.4326h-2.2978v1.3792h2.5815v0.4382h-3.118zM2.7472,11.6039h-1.5421v-0.3567h1.5421v0.3567z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Ē\"\r\n  },\r\n  'Xē': {\r\n    getPath: () => `M0.7753,14.5871q0,0.5225,0.2163,0.8062t0.632,0.2837q0.3287,0,0.5267,-0.132t0.2683,-0.3343l0.4438,0.1264q-0.2725,0.7191,-1.2388,0.7191q-0.6742,0,-1.0267,-0.4017t-0.3525,-1.1938q0,-0.7528,0.3525,-1.1545t1.007,-0.4017q1.3399,0,1.3399,1.6152v0.0674h-2.1685zM2.4213,14.1994q-0.0421,-0.4803,-0.2444,-0.7008t-0.5815,-0.2205q-0.368,0,-0.5829,0.2458t-0.2317,0.6756h1.6404zM2.3736,12.5281h-1.5421v-0.3567h1.5421v0.3567z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ē\"\r\n  },\r\n  'XĖ': {\r\n    getPath: () => `M0.4719,16v-3.9579h3.0028v0.4382h-2.4663v1.2697h2.2978v0.4326h-2.2978v1.3792h2.5815v0.4382h-3.118zM1.7219,11.4916v-0.4831h0.5056v0.4831h-0.5056z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Ė\"\r\n  },\r\n  'Xė': {\r\n    getPath: () => `M0.7753,14.5871q0,0.5225,0.2163,0.8062t0.632,0.2837q0.3287,0,0.5267,-0.132t0.2683,-0.3343l0.4438,0.1264q-0.2725,0.7191,-1.2388,0.7191q-0.6742,0,-1.0267,-0.4017t-0.3525,-1.1938q0,-0.7528,0.3525,-1.1545t1.007,-0.4017q1.3399,0,1.3399,1.6152v0.0674h-2.1685zM2.4213,14.1994q-0.0421,-0.4803,-0.2444,-0.7008t-0.5815,-0.2205q-0.368,0,-0.5829,0.2458t-0.2317,0.6756h1.6404zM1.3483,12.3146v-0.4831h0.5056v0.4831h-0.5056z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ė\"\r\n  },\r\n  'XĘ': {\r\n    getPath: () => `M0.4719,16v-3.9579h3.0028v0.4382h-2.4663v1.2697h2.2978v0.4326h-2.2978v1.3792h2.5815v0.4382h-3.118zM3.5899,17.1236q-0.177,0.0758,-0.3904,0.0758q-0.2949,0,-0.4438,-0.1433t-0.1489,-0.382q0,-0.1966,0.1222,-0.382t0.3132,-0.2921h0.3736q-0.0702,0.0393,-0.1433,0.1025t-0.1334,0.1461t-0.0983,0.1812t-0.0379,0.2079q0,0.118,0.0688,0.1854t0.1952,0.0674q0.1517,0,0.323,-0.0674v0.3006z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Ę\"\r\n  },\r\n  'Xę': {\r\n    getPath: () => `M0.7753,14.5871q0,0.5225,0.2163,0.8062t0.632,0.2837q0.3287,0,0.5267,-0.132t0.2683,-0.3343l0.4438,0.1264q-0.2725,0.7191,-1.2388,0.7191q-0.6742,0,-1.0267,-0.4017t-0.3525,-1.1938q0,-0.7528,0.3525,-1.1545t1.007,-0.4017q1.3399,0,1.3399,1.6152v0.0674h-2.1685zM2.4213,14.1994q-0.0421,-0.4803,-0.2444,-0.7008t-0.5815,-0.2205q-0.368,0,-0.5829,0.2458t-0.2317,0.6756h1.6404zM2.2781,17.1236q-0.177,0.0758,-0.3904,0.0758q-0.2949,0,-0.4438,-0.1433t-0.1489,-0.382q0,-0.1966,0.1222,-0.382t0.3132,-0.2921h0.3736q-0.0702,0.0393,-0.1433,0.1025t-0.1334,0.1461t-0.0983,0.1812t-0.0379,0.2079q0,0.118,0.0688,0.1854t0.1952,0.0674q0.1517,0,0.323,-0.0674v0.3006z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ę\"\r\n  },\r\n  'XĢ': {\r\n    getPath: () => `M0.2893,14.0028q0,-0.9635,0.5169,-1.4916t1.4522,-0.5281q0.6573,0,1.0674,0.2219t0.632,0.7107l-0.5112,0.1517q-0.1685,-0.3371,-0.4649,-0.4916t-0.7374,-0.1545q-0.6854,0,-1.0478,0.4143t-0.3624,1.1671q0,0.75,0.3848,1.184t1.0646,0.434q0.3876,0,0.7233,-0.118t0.5435,-0.3202v-0.7135h-1.1826v-0.4494h1.677v1.3652q-0.3146,0.3202,-0.7711,0.4958t-0.9902,0.1756q-0.6208,0,-1.0702,-0.2472t-0.6868,-0.7121t-0.2374,-1.0941zM2.5787,16.5421q0,0.2444,-0.0618,0.3947t-0.1742,0.2823h-0.3287q0.1264,-0.1348,0.1952,-0.2556t0.0688,-0.25h-0.2472v-0.4382h0.5478v0.2669z`,\r\n    get width() { return getGridUnitWidth(1593); },\r\n    height: 16,\r\n    char: \"Ģ\"\r\n  },\r\n  'Xģ': {\r\n    getPath: () => `M1.5393,17.1938q-0.4972,0,-0.7921,-0.1952t-0.3792,-0.5548l0.5084,-0.073q0.0506,0.2107,0.2233,0.3244t0.4537,0.1138q0.7556,0,0.7556,-0.8848v-0.4888h-0.0056q-0.1433,0.2921,-0.3933,0.4396t-0.5843,0.1475q-0.559,0,-0.8216,-0.3708t-0.2626,-1.1657q0,-0.8062,0.2823,-1.1896t0.8581,-0.3834q0.323,0,0.5604,0.1475t0.3666,0.4199h0.0056q0,-0.0843,0.0112,-0.2921t0.0225,-0.2275h0.4803q-0.0169,0.1517,-0.0169,0.6292v2.323q0,1.2809,-1.2725,1.2809zM2.309,14.4803q0,-0.3708,-0.1011,-0.639t-0.2851,-0.4101t-0.4171,-0.1419q-0.3876,0,-0.5646,0.2809t-0.177,0.9101q0,0.6236,0.1657,0.8961t0.5674,0.2725q0.2388,0,0.4242,-0.1404t0.2865,-0.4031t0.1011,-0.625zM1.2416,12.3006q0,-0.2444,0.0618,-0.4087t0.1742,-0.2963h0.3287q-0.264,0.2809,-0.264,0.5337h0.2472v0.4691h-0.5478v-0.2978z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ģ\"\r\n  },\r\n  'XĪ': {\r\n    getPath: () => `M0.5309,16v-3.9579h0.5365v3.9579h-0.5365zM1.5758,11.6039h-1.5421v-0.3567h1.5421v0.3567z`,\r\n    get width() { return getGridUnitWidth(569); },\r\n    height: 16,\r\n    char: \"Ī\"\r\n  },\r\n  'Xī': {\r\n    getPath: () => `M0.5449,16v-3.0393h0.5056v3.0393h-0.5056zM1.5758,12.5281h-1.5421v-0.3567h1.5421v0.3567z`,\r\n    get width() { return getGridUnitWidth(569); },\r\n    height: 16,\r\n    char: \"ī\"\r\n  },\r\n  'XĮ': {\r\n    getPath: () => `M0.5309,16v-3.9579h0.5365v3.9579h-0.5365zM1.2416,17.1236q-0.177,0.0758,-0.3904,0.0758q-0.2949,0,-0.4438,-0.1433t-0.1489,-0.382q0,-0.1966,0.1222,-0.382t0.3132,-0.2921h0.3736q-0.0702,0.0393,-0.1433,0.1025t-0.1334,0.1461t-0.0983,0.1812t-0.0379,0.2079q0,0.118,0.0688,0.1854t0.1952,0.0674q0.1517,0,0.323,-0.0674v0.3006z`,\r\n    get width() { return getGridUnitWidth(569); },\r\n    height: 16,\r\n    char: \"Į\"\r\n  },\r\n  'Xį': {\r\n    getPath: () => `M0.3848,12.3146v-0.4831h0.5056v0.4831h-0.5056zM0.3848,16v-3.0393h0.5056v3.0393h-0.5056zM1.0702,17.1236q-0.177,0.0758,-0.3904,0.0758q-0.2949,0,-0.4438,-0.1433t-0.1489,-0.382q0,-0.1966,0.1222,-0.382t0.3132,-0.2921h0.3736q-0.0702,0.0393,-0.1433,0.1025t-0.1334,0.1461t-0.0983,0.1812t-0.0379,0.2079q0,0.118,0.0688,0.1854t0.1952,0.0674q0.1517,0,0.323,-0.0674v0.3006z`,\r\n    get width() { return getGridUnitWidth(455); },\r\n    height: 16,\r\n    char: \"į\"\r\n  },\r\n  'XĶ': {\r\n    getPath: () => `M3.1067,16l-1.5815,-1.9101l-0.5169,0.3933v1.5169h-0.5365v-3.9579h0.5365v1.9831l1.9073,-1.9831h0.632l-1.6854,1.7191l1.9101,2.2388h-0.6657zM2.2612,16.5421q0,0.2444,-0.0618,0.3947t-0.1742,0.2823h-0.3287q0.1264,-0.1348,0.1952,-0.2556t0.0688,-0.25h-0.2472v-0.4382h0.5478v0.2669z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Ķ\"\r\n  },\r\n  'Xķ': {\r\n    getPath: () => `M2.2921,16l-1.0281,-1.3876l-0.3708,0.3062v1.0815h-0.5056v-4.1685h0.5056v2.6039l1.3343,-1.4747h0.5927l-1.2331,1.3062l1.2978,1.7331h-0.5927zM1.8596,16.5421q0,0.2444,-0.0618,0.3947t-0.1742,0.2823h-0.3287q0.1264,-0.1348,0.1952,-0.2556t0.0688,-0.25h-0.2472v-0.4382h0.5478v0.2669z`,\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16,\r\n    char: \"ķ\"\r\n  },\r\n  // Kerning inherited from 'L'\r\n  'XĻ': {\r\n    getPath: () => `M0.4719,16v-3.9579h0.5365v3.5197h2v0.4382h-2.5365zM2.014,16.5421q0,0.2444,-0.0618,0.3947t-0.1742,0.2823h-0.3287q0.1264,-0.1348,0.1952,-0.2556t0.0688,-0.25h-0.2472v-0.4382h0.5478v0.2669z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"Ļ\",\r\n    kerningRules: {\r\n      \"T\": getGridUnitKerningRule(152),\r\n      \"V\": getGridUnitKerningRule(152),\r\n      \"W\": getGridUnitKerningRule(152),\r\n      \"y\": getGridUnitKerningRule(76),\r\n      \"Y\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  'Xļ': {\r\n    getPath: () => `M0.3876,16v-4.1685h0.5056v4.1685h-0.5056zM0.9185,16.5421q0,0.2444,-0.0618,0.3947t-0.1742,0.2823h-0.3287q0.1264,-0.1348,0.1952,-0.2556t0.0688,-0.25h-0.2472v-0.4382h0.5478v0.2669z`,\r\n    get width() { return getGridUnitWidth(455); },\r\n    height: 16,\r\n    char: \"ļ\"\r\n  },\r\n  // Kerning inherited from 'L'\r\n  'XŁ': {\r\n    getPath: () => `M1.7303,13.7612l-0.7219,0.4185v1.382h2v0.4382h-2.5365v-1.5112l-0.4157,0.2388v-0.4438l0.4157,-0.2388v-2.0028h0.5365v1.6938l0.7219,-0.4157v0.441z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"Ł\",\r\n    kerningRules: {\r\n      \"T\": getGridUnitKerningRule(152),\r\n      \"V\": getGridUnitKerningRule(152),\r\n      \"W\": getGridUnitKerningRule(152),\r\n      \"y\": getGridUnitKerningRule(76),\r\n      \"Y\": getGridUnitKerningRule(152)\r\n    }\r\n  },\r\n  'Xł': {\r\n    getPath: () => `M0.3876,16v-1.5225l-0.3427,0.191v-0.4438l0.3427,-0.191v-2.2022h0.5056v1.9101l0.3483,-0.2022v0.4466l-0.3483,0.1994v1.8146h-0.5056z`,\r\n    get width() { return getGridUnitWidth(455); },\r\n    height: 16,\r\n    char: \"ł\"\r\n  },\r\n  'XŃ': {\r\n    getPath: () => `M3.0393,16l-2.118,-3.3708l0.014,0.2725l0.014,0.4691v2.6292h-0.4775v-3.9579h0.6236l2.1404,3.3933q-0.0337,-0.5506,-0.0337,-0.7978v-2.5955h0.4831v3.9579h-0.6461zM1.6882,11.7022v-0.0562l0.6096,-0.6348h0.5815v0.0815l-0.8708,0.6096h-0.3202z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Ń\"\r\n  },\r\n  'Xń': {\r\n    getPath: () => `M2.3287,16v-1.927q0,-0.3006,-0.059,-0.4663t-0.1882,-0.2388t-0.3792,-0.073q-0.3652,0,-0.5758,0.25t-0.2107,0.6938v1.7612h-0.5056v-2.3904q0,-0.5309,-0.0169,-0.6489h0.4775q0.0028,0.014,0.0056,0.0758t0.007,0.1419t0.0098,0.302h0.0084q0.1742,-0.3146,0.4031,-0.4452t0.5688,-0.1306q0.5,0,0.7317,0.2486t0.2317,0.8216v2.0253h-0.5084zM1.2921,12.6264v-0.0562l0.6096,-0.8062h0.5815v0.0815l-0.927,0.7809h-0.264z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ń\"\r\n  },\r\n  'XŅ': {\r\n    getPath: () => `M3.0393,16l-2.118,-3.3708l0.014,0.2725l0.014,0.4691v2.6292h-0.4775v-3.9579h0.6236l2.1404,3.3933q-0.0337,-0.5506,-0.0337,-0.7978v-2.5955h0.4831v3.9579h-0.6461zM2.3483,16.5421q0,0.2444,-0.0618,0.3947t-0.1742,0.2823h-0.3287q0.1264,-0.1348,0.1952,-0.2556t0.0688,-0.25h-0.2472v-0.4382h0.5478v0.2669z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Ņ\"\r\n  },\r\n  'Xņ': {\r\n    getPath: () => `M2.3287,16v-1.927q0,-0.3006,-0.059,-0.4663t-0.1882,-0.2388t-0.3792,-0.073q-0.3652,0,-0.5758,0.25t-0.2107,0.6938v1.7612h-0.5056v-2.3904q0,-0.5309,-0.0169,-0.6489h0.4775q0.0028,0.014,0.0056,0.0758t0.007,0.1419t0.0098,0.302h0.0084q0.1742,-0.3146,0.4031,-0.4452t0.5688,-0.1306q0.5,0,0.7317,0.2486t0.2317,0.8216v2.0253h-0.5084zM1.8961,16.5421q0,0.2444,-0.0618,0.3947t-0.1742,0.2823h-0.3287q0.1264,-0.1348,0.1952,-0.2556t0.0688,-0.25h-0.2472v-0.4382h0.5478v0.2669z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ņ\"\r\n  },\r\n  'XŐ': {\r\n    getPath: () => `M4.1994,14.0028q0,0.6208,-0.2374,1.0871t-0.6812,0.7163t-1.0478,0.25q-0.6096,0,-1.052,-0.2472t-0.6756,-0.7149t-0.2331,-1.0913q0,-0.9494,0.5197,-1.4846t1.4466,-0.5351q0.6039,0,1.0478,0.2402t0.6784,0.698t0.2346,1.0815zM3.6517,14.0028q0,-0.7388,-0.3694,-1.1601t-1.0435,-0.4213q-0.6798,0,-1.0506,0.4157t-0.3708,1.1657q0,0.7444,0.375,1.1812t1.0407,0.4368q0.6854,0,1.052,-0.4228t0.3666,-1.1952zM1.4438,11.7022v-0.0562l0.5534,-0.6376h0.5815v0.0815l-0.8708,0.6124h-0.264zM2.4185,11.7022v-0.0562l0.5534,-0.6376h0.5815v0.0815l-0.8708,0.6124h-0.264z`,\r\n    get width() { return getGridUnitWidth(1593); },\r\n    height: 16,\r\n    char: \"Ő\"\r\n  },\r\n  'Xő': {\r\n    getPath: () => `M2.9579,14.4775q0,0.7978,-0.3511,1.1882t-1.0197,0.3904q-0.6657,0,-1.0056,-0.4059t-0.3399,-1.1728q0,-1.573,1.3624,-1.573q0.6966,0,1.0253,0.3834t0.3287,1.1896zM2.427,14.4775q0,-0.6292,-0.1868,-0.9143t-0.6278,-0.2851q-0.4438,0,-0.6419,0.2907t-0.198,0.9087q0,0.6011,0.1952,0.9031t0.6138,0.302q0.4551,0,0.6503,-0.2921t0.1952,-0.9129zM0.8062,12.6264v-0.0562l0.6096,-0.8062h0.5815v0.0815l-0.927,0.7809h-0.264zM1.7809,12.6264v-0.0562l0.6096,-0.8062h0.5815v0.0815l-0.927,0.7809h-0.264z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ő\"\r\n  },\r\n  'XŒ': {\r\n    getPath: () => `M2.8062,16q-0.1882,0.0281,-0.5899,0.0281q-0.9073,0,-1.4256,-0.5421t-0.5183,-1.4831q0,-0.9326,0.5169,-1.4621t1.4326,-0.5295q0.3006,0,0.5955,0.0309h2.5674v0.4382h-2.2556v1.2697h2.0871v0.4326h-2.0871v1.3792h2.3708v0.4382h-2.6938zM2.2163,15.5927q0.2303,0,0.3764,-0.0112v-3.1208q-0.1236,-0.0112,-0.2261,-0.0112h-0.1447q-0.6882,0,-1.0463,0.4017t-0.3581,1.1517q0,0.7528,0.3694,1.1713t1.0295,0.4185z`,\r\n    get width() { return getGridUnitWidth(2048); },\r\n    height: 16,\r\n    char: \"Œ\"\r\n  },\r\n  'Xœ': {\r\n    getPath: () => `M3.0056,14.5871q0,0.5225,0.2163,0.8062t0.632,0.2837q0.3287,0,0.5267,-0.132t0.2683,-0.3343l0.4438,0.1264q-0.2725,0.7191,-1.2388,0.7191q-0.7725,0,-1.1124,-0.514q-0.3483,0.514,-1.1264,0.514q-0.6685,0,-1.0211,-0.4059t-0.3525,-1.1728q0,-0.7837,0.3553,-1.1784t1.0351,-0.3947q0.7893,0,1.118,0.4972q0.3539,-0.4972,1.0843,-0.4972q1.3399,0,1.3399,1.6152v0.0674h-2.1685zM2.4747,14.4775q0,-0.6152,-0.1938,-0.9073t-0.6404,-0.2921q-0.4551,0,-0.6615,0.2992t-0.2065,0.9003q0,1.2051,0.8371,1.2051q0.4607,0,0.6629,-0.2921t0.2022,-0.9129zM4.6517,14.1994q-0.0421,-0.4803,-0.2444,-0.7008t-0.5815,-0.2205q-0.368,0,-0.5829,0.2458t-0.2317,0.6756h1.6404z`,\r\n    get width() { return getGridUnitWidth(1933); },\r\n    height: 16,\r\n    char: \"œ\"\r\n  },\r\n  'XŚ': {\r\n    getPath: () => `M3.573,14.9073q0,0.5478,-0.4284,0.8483t-1.2065,0.3006q-1.4466,0,-1.677,-1.0056l0.5197,-0.1039q0.0899,0.3567,0.382,0.5239t0.7949,0.1671q0.5197,0,0.802,-0.1784t0.2823,-0.5239q0,-0.1938,-0.0885,-0.3146t-0.2486,-0.1994t-0.382,-0.132t-0.4916,-0.1152q-0.4691,-0.1039,-0.7121,-0.2079t-0.3834,-0.2317t-0.2149,-0.2992t-0.0744,-0.3933q0,-0.5084,0.389,-0.7837t1.1138,-0.2753q0.6742,0,1.0309,0.2065t0.5,0.7037l-0.5281,0.0927q-0.0871,-0.3146,-0.3315,-0.4565t-0.677,-0.1419q-0.4747,0,-0.7247,0.1573t-0.25,0.4691q0,0.1826,0.0969,0.302t0.2795,0.2022t0.7275,0.2037q0.1826,0.0421,0.3638,0.0857t0.3469,0.1039t0.3104,0.1419t0.2514,0.1994t0.1671,0.2781t0.0604,0.3764zM1.5787,11.7022v-0.0562l0.6096,-0.8062h0.5815v0.0815l-0.927,0.7809h-0.264z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Ś\"\r\n  },\r\n  'Xś': {\r\n    getPath: () => `M2.6685,15.1601q0,0.4298,-0.3244,0.6629t-0.9087,0.2331q-0.5674,0,-0.875,-0.1868t-0.4003,-0.5829l0.4466,-0.0871q0.0646,0.2444,0.2669,0.3581t0.5618,0.1138q0.3848,0,0.5632,-0.118t0.1784,-0.3539q0,-0.1798,-0.1236,-0.2921t-0.3989,-0.1854l-0.3624,-0.0955q-0.4354,-0.1124,-0.6194,-0.2205t-0.2879,-0.2626t-0.1039,-0.3792q0,-0.4157,0.2963,-0.6334t0.8638,-0.2177q0.5028,0,0.7992,0.177t0.375,0.5674l-0.4551,0.0562q-0.0421,-0.2022,-0.2261,-0.3104t-0.493,-0.1081q-0.3427,0,-0.5056,0.1039t-0.1629,0.3146q0,0.1292,0.0674,0.2135t0.1994,0.1433t0.5562,0.1629q0.4017,0.1011,0.5787,0.1868t0.2795,0.1896t0.1587,0.2402t0.0562,0.3104zM1.0815,12.6264v-0.0562l0.6096,-0.8062h0.5815v0.0815l-0.927,0.7809h-0.264z`,\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16,\r\n    char: \"ś\"\r\n  },\r\n  'XŠ': {\r\n    getPath: () => `M3.573,14.9073q0,0.5478,-0.4284,0.8483t-1.2065,0.3006q-1.4466,0,-1.677,-1.0056l0.5197,-0.1039q0.0899,0.3567,0.382,0.5239t0.7949,0.1671q0.5197,0,0.802,-0.1784t0.2823,-0.5239q0,-0.1938,-0.0885,-0.3146t-0.2486,-0.1994t-0.382,-0.132t-0.4916,-0.1152q-0.4691,-0.1039,-0.7121,-0.2079t-0.3834,-0.2317t-0.2149,-0.2992t-0.0744,-0.3933q0,-0.5084,0.389,-0.7837t1.1138,-0.2753q0.6742,0,1.0309,0.2065t0.5,0.7037l-0.5281,0.0927q-0.0871,-0.3146,-0.3315,-0.4565t-0.677,-0.1419q-0.4747,0,-0.7247,0.1573t-0.25,0.4691q0,0.1826,0.0969,0.302t0.2795,0.2022t0.7275,0.2037q0.1826,0.0421,0.3638,0.0857t0.3469,0.1039t0.3104,0.1419t0.2514,0.1994t0.1671,0.2781t0.0604,0.3764zM2.2725,11.7022h-0.573l-0.6573,-0.6713v-0.059h0.2921l0.6517,0.3904h0.0056l0.6152,-0.3904h0.2949v0.059z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Š\"\r\n  },\r\n  'Xš': {\r\n    getPath: () => `M2.6685,15.1601q0,0.4298,-0.3244,0.6629t-0.9087,0.2331q-0.5674,0,-0.875,-0.1868t-0.4003,-0.5829l0.4466,-0.0871q0.0646,0.2444,0.2669,0.3581t0.5618,0.1138q0.3848,0,0.5632,-0.118t0.1784,-0.3539q0,-0.1798,-0.1236,-0.2921t-0.3989,-0.1854l-0.3624,-0.0955q-0.4354,-0.1124,-0.6194,-0.2205t-0.2879,-0.2626t-0.1039,-0.3792q0,-0.4157,0.2963,-0.6334t0.8638,-0.2177q0.5028,0,0.7992,0.177t0.375,0.5674l-0.4551,0.0562q-0.0421,-0.2022,-0.2261,-0.3104t-0.493,-0.1081q-0.3427,0,-0.5056,0.1039t-0.1629,0.3146q0,0.1292,0.0674,0.2135t0.1994,0.1433t0.5562,0.1629q0.4017,0.1011,0.5787,0.1868t0.2795,0.1896t0.1587,0.2402t0.0562,0.3104zM1.7163,12.6264h-0.573l-0.6573,-0.7584v-0.0562h0.2921l0.6517,0.4747h0.0056l0.6152,-0.4747h0.2949v0.0562z`,\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16,\r\n    char: \"š\"\r\n  },\r\n  'XŪ': {\r\n    getPath: () => `M2.0534,16.0562q-0.486,0,-0.8483,-0.177t-0.5618,-0.514t-0.1994,-0.8034v-2.5197h0.5365v2.4747q0,0.5421,0.2753,0.823t0.7949,0.2809q0.5337,0,0.8301,-0.2907t0.2963,-0.8497v-2.4382h0.5337v2.4691q0,0.4803,-0.2037,0.8287t-0.5758,0.5323t-0.8778,0.184zM2.8511,11.6039h-1.5421v-0.3567h1.5421v0.3567z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Ū\"\r\n  },\r\n  'Xū': {\r\n    getPath: () => `M0.882,12.9607v1.927q0,0.3006,0.059,0.4663t0.1882,0.2388t0.3792,0.073q0.3652,0,0.5758,-0.25t0.2107,-0.6938v-1.7612h0.5056v2.3904q0,0.5309,0.0169,0.6489h-0.4775q-0.0028,-0.014,-0.0056,-0.0758t-0.007,-0.1419t-0.0098,-0.302h-0.0084q-0.1742,0.3146,-0.4031,0.4452t-0.5688,0.1306q-0.5,0,-0.7317,-0.2486t-0.2317,-0.8216v-2.0253h0.5084zM2.3596,12.5281h-1.5421v-0.3567h1.5421v0.3567z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ū\"\r\n  },\r\n  'XŰ': {\r\n    getPath: () => `M2.0534,16.0562q-0.486,0,-0.8483,-0.177t-0.5618,-0.514t-0.1994,-0.8034v-2.5197h0.5365v2.4747q0,0.5421,0.2753,0.823t0.7949,0.2809q0.5337,0,0.8301,-0.2907t0.2963,-0.8497v-2.4382h0.5337v2.4691q0,0.4803,-0.2037,0.8287t-0.5758,0.5323t-0.8778,0.184zM1.25,11.7022v-0.0562l0.5534,-0.6376h0.5815v0.0815l-0.8708,0.6124h-0.264zM2.2247,11.7022v-0.0562l0.5534,-0.6376h0.5815v0.0815l-0.8708,0.6124h-0.264z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Ű\"\r\n  },\r\n  'Xű': {\r\n    getPath: () => `M0.882,12.9607v1.927q0,0.3006,0.059,0.4663t0.1882,0.2388t0.3792,0.073q0.3652,0,0.5758,-0.25t0.2107,-0.6938v-1.7612h0.5056v2.3904q0,0.5309,0.0169,0.6489h-0.4775q-0.0028,-0.014,-0.0056,-0.0758t-0.007,-0.1419t-0.0098,-0.302h-0.0084q-0.1742,0.3146,-0.4031,0.4452t-0.5688,0.1306q-0.5,0,-0.7317,-0.2486t-0.2317,-0.8216v-2.0253h0.5084zM0.7949,12.6264v-0.0562l0.6096,-0.8062h0.5815v0.0815l-0.927,0.7809h-0.264zM1.7697,12.6264v-0.0562l0.6096,-0.8062h0.5815v0.0815l-0.927,0.7809h-0.264z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ű\"\r\n  },\r\n  'XŲ': {\r\n    getPath: () => `M2.0534,16.0562q-0.486,0,-0.8483,-0.177t-0.5618,-0.514t-0.1994,-0.8034v-2.5197h0.5365v2.4747q0,0.5421,0.2753,0.823t0.7949,0.2809q0.5337,0,0.8301,-0.2907t0.2963,-0.8497v-2.4382h0.5337v2.4691q0,0.4803,-0.2037,0.8287t-0.5758,0.5323t-0.8778,0.184zM2.736,17.1236q-0.177,0.0758,-0.3904,0.0758q-0.2949,0,-0.4438,-0.1433t-0.1489,-0.382q0,-0.1966,0.1222,-0.382t0.3132,-0.2921h0.3736q-0.0702,0.0393,-0.1433,0.1025t-0.1334,0.1461t-0.0983,0.1812t-0.0379,0.2079q0,0.118,0.0688,0.1854t0.1952,0.0674q0.1517,0,0.323,-0.0674v0.3006z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Ų\"\r\n  },\r\n  'Xų': {\r\n    getPath: () => `M0.882,12.9607v1.927q0,0.3006,0.059,0.4663t0.1882,0.2388t0.3792,0.073q0.3652,0,0.5758,-0.25t0.2107,-0.6938v-1.7612h0.5056v2.3904q0,0.5309,0.0169,0.6489h-0.4775q-0.0028,-0.014,-0.0056,-0.0758t-0.007,-0.1419t-0.0098,-0.302h-0.0084q-0.1742,0.3146,-0.4031,0.4452t-0.5688,0.1306q-0.5,0,-0.7317,-0.2486t-0.2317,-0.8216v-2.0253h0.5084zM2.8904,17.1236q-0.177,0.0758,-0.3904,0.0758q-0.2949,0,-0.4438,-0.1433t-0.1489,-0.382q0,-0.1966,0.1222,-0.382t0.3132,-0.2921h0.3736q-0.0702,0.0393,-0.1433,0.1025t-0.1334,0.1461t-0.0983,0.1812t-0.0379,0.2079q0,0.118,0.0688,0.1854t0.1952,0.0674q0.1517,0,0.323,-0.0674v0.3006z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ų\"\r\n  },\r\n  // Kerning inherited from 'Y'\r\n  'XŸ': {\r\n    getPath: () => `M2.1826,14.3596v1.6404h-0.5337v-1.6404l-1.5225,-2.3174h0.5899l1.2051,1.8848l1.1994,-1.8848h0.5899zM2.2444,11.7022v-0.5169h0.4579v0.5169h-0.4579zM1.1376,11.7022v-0.5169h0.4635v0.5169h-0.4635z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Ÿ\",\r\n    kerningRules: {\r\n      \"a\": getGridUnitKerningRule(152),\r\n      \"A\": getGridUnitKerningRule(152),\r\n      \"e\": getGridUnitKerningRule(188),\r\n      \"i\": getGridUnitKerningRule(76),\r\n      \"o\": getGridUnitKerningRule(188),\r\n      \"p\": getGridUnitKerningRule(152),\r\n      \"q\": getGridUnitKerningRule(188),\r\n      \"u\": getGridUnitKerningRule(113),\r\n      \"v\": getGridUnitKerningRule(113)\r\n    }\r\n  },\r\n  'XŹ': {\r\n    getPath: () => `M3.3343,16h-3.1517v-0.4017l2.4101,-3.118h-2.2051v-0.4382h2.8146v0.3904l-2.4101,3.1292h2.5421v0.4382zM1.3708,11.7022v-0.0562l0.6096,-0.6348h0.5815v0.0815l-0.8708,0.6096h-0.3202z`,\r\n    get width() { return getGridUnitWidth(1251); },\r\n    height: 16,\r\n    char: \"Ź\"\r\n  },\r\n  'Xź': {\r\n    getPath: () => `M0.2331,16v-0.3848l1.6994,-2.264h-1.6039v-0.3904h2.2022v0.3848l-1.7022,2.264h1.7612v0.3904h-2.3567zM1.0702,12.6264v-0.0562l0.6096,-0.8062h0.5815v0.0815l-0.927,0.7809h-0.264z`,\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16,\r\n    char: \"ź\"\r\n  },\r\n  'XŻ': {\r\n    getPath: () => `M3.3343,16h-3.1517v-0.4017l2.4101,-3.118h-2.2051v-0.4382h2.8146v0.3904l-2.4101,3.1292h2.5421v0.4382zM1.5056,11.4916v-0.4831h0.5056v0.4831h-0.5056z`,\r\n    get width() { return getGridUnitWidth(1251); },\r\n    height: 16,\r\n    char: \"Ż\"\r\n  },\r\n  'Xż': {\r\n    getPath: () => `M0.2331,16v-0.3848l1.6994,-2.264h-1.6039v-0.3904h2.2022v0.3848l-1.7022,2.264h1.7612v0.3904h-2.3567zM1.1489,12.3146v-0.4831h0.5056v0.4831h-0.5056z`,\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16,\r\n    char: \"ż\"\r\n  },\r\n  'XŽ': {\r\n    getPath: () => `M3.3343,16h-3.1517v-0.4017l2.4101,-3.118h-2.2051v-0.4382h2.8146v0.3904l-2.4101,3.1292h2.5421v0.4382zM2.1067,11.7022h-0.573l-0.6573,-0.6713v-0.059h0.2921l0.6517,0.3904h0.0056l0.6152,-0.3904h0.2949v0.059z`,\r\n    get width() { return getGridUnitWidth(1251); },\r\n    height: 16,\r\n    char: \"Ž\"\r\n  },\r\n  'Xž': {\r\n    getPath: () => `M0.2331,16v-0.3848l1.6994,-2.264h-1.6039v-0.3904h2.2022v0.3848l-1.7022,2.264h1.7612v0.3904h-2.3567zM1.6685,12.6264h-0.573l-0.6573,-0.7584v-0.0562h0.2921l0.6517,0.4747h0.0056l0.6152,-0.4747h0.2949v0.0562z`,\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16,\r\n    char: \"ž\"\r\n  },\r\n  'Xа': {\r\n    getPath: () => `M1.1629,16.0562q-0.4579,0,-0.6882,-0.2416t-0.2303,-0.6629q0,-0.4719,0.3104,-0.7247t1.0014,-0.2697l0.6826,-0.0112v-0.1657q0,-0.3708,-0.1573,-0.5309t-0.4944,-0.1601q-0.3399,0,-0.4944,0.1152t-0.1854,0.368l-0.5281,-0.0478q0.1292,-0.8202,1.2191,-0.8202q0.573,0,0.8624,0.2626t0.2893,0.7598v1.309q0,0.2247,0.059,0.3385t0.2247,0.1138q0.073,0,0.1657,-0.0197v0.3146q-0.191,0.0449,-0.3904,0.0449q-0.2809,0,-0.4087,-0.1475t-0.1447,-0.4621h-0.0169q-0.1938,0.3483,-0.4508,0.493t-0.625,0.1447zM1.2781,15.677q0.2781,0,0.4944,-0.1264t0.3413,-0.3469t0.125,-0.4537v-0.25l-0.5534,0.0112q-0.3567,0.0056,-0.5407,0.073t-0.2823,0.2079t-0.0983,0.368q0,0.2472,0.1334,0.382t0.3806,0.1348z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"а\"\r\n  },\r\n  'Xб': {\r\n    getPath: () => `M2.5225,14.5899q0,-0.5674,-0.1854,-0.8357t-0.6039,-0.2683q-0.4466,0,-0.6559,0.2725t-0.2093,0.8315q0,0.5449,0.1952,0.8188t0.6138,0.2739q0.4522,0,0.6489,-0.2626t0.1966,-0.8301zM1.8399,13.1152q0.6236,0,0.9185,0.3666t0.2949,1.1025q0,0.7444,-0.3511,1.1081t-1.0197,0.3638q-0.691,0,-1.0183,-0.4522t-0.3272,-1.3904q0,-0.4775,0.0646,-0.8385t0.2022,-0.6222t0.3553,-0.4354t0.5478,-0.2809t1.4031,-0.2556v0.4522q-1.177,0.1517,-1.5239,0.2893t-0.4874,0.4382t-0.1517,0.8989q0.1208,-0.3511,0.4045,-0.5478t0.6882,-0.1966z`,\r\n    get width() { return getGridUnitWidth(1173); },\r\n    height: 16,\r\n    char: \"б\"\r\n  },\r\n  'Xв': {\r\n    getPath: () => `M1.5843,12.9607q0.5618,0,0.8427,0.1966t0.2809,0.5646q0,0.2612,-0.1601,0.4354t-0.4663,0.2331v0.0197q0.3624,0.0478,0.5435,0.2303t0.1812,0.4831q0,0.4129,-0.3076,0.6447t-0.8497,0.2317h-1.25v-3.0393h1.1854zM0.9045,15.6264h0.6629q0.3876,0,0.5449,-0.1194t0.1573,-0.3806q0,-0.2837,-0.1671,-0.4003t-0.5688,-0.1166h-0.6292v1.0169zM0.9045,13.3455v0.8989h0.6067q0.3596,0,0.5126,-0.1011t0.1531,-0.3539q0,-0.2303,-0.1433,-0.3371t-0.4831,-0.1067h-0.6461z`,\r\n    get width() { return getGridUnitWidth(1088); },\r\n    height: 16,\r\n    char: \"в\"\r\n  },\r\n  'Xг': {\r\n    getPath: () => `M1.9298,12.9607v0.368h-1.0253v2.6713h-0.5056v-3.0393h1.5309z`,\r\n    get width() { return getGridUnitWidth(747); },\r\n    height: 16,\r\n    char: \"г\"\r\n  },\r\n  'Xд': {\r\n    getPath: () => `M2.3427,13.3287h-0.8596q-0.1039,0.764,-0.2303,1.3301t-0.3062,0.9733h1.3961v-2.3034zM3.2584,17.1461h-0.4579v-1.1461h-2.2865v1.1461h-0.4579v-1.514h0.3343q0.2107,-0.3511,0.3652,-0.9972t0.2837,-1.6742h1.809v2.6713h0.4101v1.514z`,\r\n    get width() { return getGridUnitWidth(1195); },\r\n    height: 16,\r\n    char: \"д\"\r\n  },\r\n  'Xе': {\r\n    getPath: () => `M0.7753,14.5871q0,0.5225,0.2163,0.8062t0.632,0.2837q0.3287,0,0.5267,-0.132t0.2683,-0.3343l0.4438,0.1264q-0.2725,0.7191,-1.2388,0.7191q-0.6742,0,-1.0267,-0.4017t-0.3525,-1.1938q0,-0.7528,0.3525,-1.1545t1.007,-0.4017q1.3399,0,1.3399,1.6152v0.0674h-2.1685zM2.4213,14.1994q-0.0421,-0.4803,-0.2444,-0.7008t-0.5815,-0.2205q-0.368,0,-0.5829,0.2458t-0.2317,0.6756h1.6404z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"е\"\r\n  },\r\n  'Xё': {\r\n    getPath: () => `M0.7753,14.5871q0,0.5225,0.2163,0.8062t0.632,0.2837q0.3287,0,0.5267,-0.132t0.2683,-0.3343l0.4438,0.1264q-0.2725,0.7191,-1.2388,0.7191q-0.6742,0,-1.0267,-0.4017t-0.3525,-1.1938q0,-0.7528,0.3525,-1.1545t1.007,-0.4017q1.3399,0,1.3399,1.6152v0.0674h-2.1685zM2.4213,14.1994q-0.0421,-0.4803,-0.2444,-0.7008t-0.5815,-0.2205q-0.368,0,-0.5829,0.2458t-0.2317,0.6756h1.6404zM1.9298,12.5758v-0.5169h0.4579v0.5169h-0.4579zM0.823,12.5758v-0.5169h0.4635v0.5169h-0.4635z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"ё\"\r\n  },\r\n  'Xж': {\r\n    getPath: () => `M1.6713,14.6601q-0.073,0,-0.1643,-0.0169t-0.1447,-0.0393l-0.7809,1.3961h-0.5618l0.9916,-1.6629q-0.0983,-0.0815,-0.3596,-0.4635l-0.6067,-0.9129h0.5281l0.4157,0.6713q0.1854,0.2978,0.2865,0.4284t0.184,0.1812t0.2121,0.0506v-1.3315h0.5056v1.3315q0.0843,0,0.1517,-0.0225t0.1404,-0.0941t0.1657,-0.2008t0.6404,-1.014h0.5281l-0.6067,0.9129q-0.2612,0.382,-0.3596,0.4635l0.9916,1.6629h-0.5618l-0.7809,-1.3961q-0.0534,0.0225,-0.1447,0.0393t-0.1643,0.0169v1.3399h-0.5056v-1.3399z`,\r\n    get width() { return getGridUnitWidth(1370); },\r\n    height: 16,\r\n    char: \"ж\"\r\n  },\r\n  'Xз': {\r\n    getPath: () => `M1.2865,16.0562q-0.4691,0,-0.7458,-0.1756t-0.4031,-0.5379l0.4466,-0.1236q0.1489,0.4607,0.7135,0.4607q0.2697,0,0.4284,-0.132t0.1587,-0.3876q0,-0.5618,-0.9298,-0.5618v-0.3848q0.4522,0,0.6657,-0.118t0.2135,-0.3652q0,-0.2079,-0.139,-0.3287t-0.4003,-0.1208q-0.25,0,-0.4087,0.1039t-0.1924,0.3006l-0.4551,-0.0562q0.1292,-0.7247,1.059,-0.7247q0.4719,0,0.7612,0.2233t0.2893,0.5772q0,0.2837,-0.2037,0.4747t-0.493,0.2163v0.0056q0.3399,0.0365,0.5548,0.2374t0.2149,0.507q0,0.427,-0.302,0.6685t-0.8329,0.2416z`,\r\n    get width() { return getGridUnitWidth(939); },\r\n    height: 16,\r\n    char: \"з\"\r\n  },\r\n  'Xи': {\r\n    getPath: () => `M0.8876,12.9607v1.6629l-0.0281,0.7781l1.4017,-2.441h0.5534v3.0393h-0.4831v-1.8539q0,-0.1011,0.0098,-0.3062t0.0183,-0.2921l-1.4213,2.4522h-0.5393v-3.0393h0.4888z`,\r\n    get width() { return getGridUnitWidth(1144); },\r\n    height: 16,\r\n    char: \"и\"\r\n  },\r\n  'Xй': {\r\n    getPath: () => `M0.8876,12.9607v1.6629l-0.0281,0.7781l1.4017,-2.441h0.5534v3.0393h-0.4831v-1.8539q0,-0.1011,0.0098,-0.3062t0.0183,-0.2921l-1.4213,2.4522h-0.5393v-3.0393h0.4888zM1.6124,12.6292q-1,0,-1.0309,-0.8989h0.4607q0.0337,0.559,0.5702,0.559t0.5702,-0.559h0.4607q-0.0309,0.8989,-1.0309,0.8989z`,\r\n    get width() { return getGridUnitWidth(1144); },\r\n    height: 16,\r\n    char: \"й\"\r\n  },\r\n  'Xк': {\r\n    getPath: () => `M0.3876,12.9607h0.5056v1.3315q0.0843,0,0.1517,-0.0225t0.1404,-0.0941t0.1657,-0.2008t0.6404,-1.014h0.5281l-0.6067,0.9129q-0.2612,0.382,-0.3596,0.4635l0.9916,1.6629h-0.5618l-0.7809,-1.3961q-0.0534,0.0225,-0.1447,0.0393t-0.1643,0.0169v1.3399h-0.5056v-3.0393z`,\r\n    get width() { return getGridUnitWidth(896); },\r\n    height: 16,\r\n    char: \"к\"\r\n  },\r\n  'Xл': {\r\n    getPath: () => `M2.4494,16v-2.6713h-1.0534q-0.1657,1.2247,-0.2556,1.6531t-0.1938,0.6475t-0.257,0.323t-0.3947,0.1039q-0.1404,0,-0.264,-0.0365v-0.3624q0.0702,0.0253,0.191,0.0253q0.1545,0,0.2486,-0.1545t0.1713,-0.5337t0.1756,-1.1208l0.1236,-0.9129h2.0169v3.0393h-0.5084z`,\r\n    get width() { return getGridUnitWidth(1195); },\r\n    height: 16,\r\n    char: \"л\"\r\n  },\r\n  'Xм': {\r\n    getPath: () => `M2.2107,16h-0.4298l-0.9101,-2.6713q0.0169,0.4382,0.0169,0.6376v2.0337h-0.4888v-3.0393h0.7865l0.618,1.8567q0.1461,0.4017,0.191,0.8034q0.0618,-0.4522,0.191,-0.8034l0.618,-1.8567h0.7556v3.0393h-0.486v-2.0337l0.0084,-0.3202l0.014,-0.323z`,\r\n    get width() { return getGridUnitWidth(1408); },\r\n    height: 16,\r\n    char: \"м\"\r\n  },\r\n  'Xн': {\r\n    getPath: () => `M0.9045,12.9607v1.2865h1.368v-1.2865h0.5056v3.0393h-0.5056v-1.3848h-1.368v1.3848h-0.5056v-3.0393h0.5056z`,\r\n    get width() { return getGridUnitWidth(1131); },\r\n    height: 16,\r\n    char: \"н\"\r\n  },\r\n  'Xо': {\r\n    getPath: () => `M2.9579,14.4775q0,0.7978,-0.3511,1.1882t-1.0197,0.3904q-0.6657,0,-1.0056,-0.4059t-0.3399,-1.1728q0,-1.573,1.3624,-1.573q0.6966,0,1.0253,0.3834t0.3287,1.1896zM2.427,14.4775q0,-0.6292,-0.1868,-0.9143t-0.6278,-0.2851q-0.4438,0,-0.6419,0.2907t-0.198,0.9087q0,0.6011,0.1952,0.9031t0.6138,0.302q0.4551,0,0.6503,-0.2921t0.1952,-0.9129z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"о\"\r\n  },\r\n  'Xп': {\r\n    getPath: () => `M2.7163,12.9607v3.0393h-0.5056v-2.6713h-1.3062v2.6713h-0.5056v-3.0393h2.3174z`,\r\n    get width() { return getGridUnitWidth(1109); },\r\n    height: 16,\r\n    char: \"п\"\r\n  },\r\n  'Xр': {\r\n    getPath: () => `M2.9579,14.4663q0,1.5899,-1.118,1.5899q-0.7022,0,-0.9438,-0.5281h-0.014q0.0112,0.0225,0.0112,0.4775v1.1882h-0.5056v-3.6124q0,-0.4691,-0.0169,-0.6208h0.4888q0.0028,0.0112,0.0084,0.0801t0.0126,0.2121t0.007,0.1966h0.0112q0.1348,-0.2809,0.3567,-0.4115t0.5843,-0.1306q0.5618,0,0.8399,0.3764t0.2781,1.1826zM2.427,14.4775q0,-0.6348,-0.1713,-0.9073t-0.5449,-0.2725q-0.3006,0,-0.4705,0.1264t-0.2584,0.3947t-0.0885,0.698q0,0.5983,0.191,0.882t0.6208,0.2837q0.3764,0,0.5492,-0.2767t0.1728,-0.9284z`,\r\n    get width() { return getGridUnitWidth(1139); },\r\n    height: 16,\r\n    char: \"р\"\r\n  },\r\n  'Xс': {\r\n    getPath: () => `M0.7725,14.4663q0,0.6067,0.191,0.8989t0.5758,0.2921q0.2697,0,0.4508,-0.1461t0.2233,-0.4494l0.5112,0.0337q-0.059,0.4382,-0.3736,0.6994t-0.7978,0.2612q-0.6376,0,-0.9733,-0.4031t-0.3357,-1.1756q0,-0.7669,0.3371,-1.1699t0.9663,-0.4031q0.4663,0,0.7739,0.2416t0.3862,0.6657l-0.5197,0.0393q-0.0393,-0.2528,-0.1994,-0.4017t-0.4551,-0.1489q-0.4017,0,-0.5815,0.2669t-0.1798,0.8989z`,\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16,\r\n    char: \"с\"\r\n  },\r\n  'Xт': {\r\n    getPath: () => `M0.0983,12.9607h2.4382v0.368h-0.9663v2.6713h-0.5056v-2.6713h-0.9663v-0.368z`,\r\n    get width() { return getGridUnitWidth(938); },\r\n    height: 16,\r\n    char: \"т\"\r\n  },\r\n  'Xу': {\r\n    getPath: () => `M0.5365,17.1938q-0.2079,0,-0.3483,-0.0309v-0.3792q0.1067,0.0169,0.236,0.0169q0.4719,0,0.7472,-0.6938l0.0478,-0.1208l-1.2051,-3.0253h0.5393l0.6404,1.6798q0.014,0.0393,0.0337,0.0941t0.1264,0.3666t0.1152,0.3483l0.1966,-0.5534l0.6657,-1.9354h0.5337l-1.1685,3.0393q-0.1882,0.486,-0.3511,0.7233t-0.361,0.3539t-0.448,0.1166z`,\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16,\r\n    char: \"у\"\r\n  },\r\n  'Xф': {\r\n    getPath: () => `M4.4888,14.4663q0,0.7978,-0.2598,1.1938t-0.7654,0.3961q-0.6348,0,-0.8567,-0.5281h-0.0169q0.014,0.2444,0.014,0.4775v1.1882h-0.4775v-1.1882q0,-0.3062,0.014,-0.4944h-0.014q-0.1292,0.2921,-0.3385,0.4185t-0.5211,0.1264q-0.5225,0,-0.7739,-0.3862t-0.2514,-1.1756q0,-1.5899,1.0253,-1.5899q0.3146,0,0.5239,0.1264t0.3357,0.4017h0.014l-0.014,-0.4242v-1.177h0.4775v1.1798l-0.0084,0.4382h0.014q0.1292,-0.2921,0.3315,-0.4171t0.5225,-0.125q0.514,0,0.7697,0.3834t0.2556,1.1756zM0.7725,14.4775q0,0.632,0.1531,0.9101t0.4846,0.2781q0.3652,0,0.5365,-0.2767t0.1798,-0.8778v-0.0674q0,-0.5927,-0.1671,-0.8792t-0.5435,-0.2865q-0.3399,0,-0.4916,0.2893t-0.1517,0.9101zM3.9579,14.4775q0,-0.6124,-0.1503,-0.8961t-0.4874,-0.2837q-0.264,0,-0.4129,0.1292t-0.2261,0.3947t-0.0772,0.6952v0.0646q0.0056,0.5646,0.177,0.8329t0.5337,0.2683q0.3343,0,0.4888,-0.2879t0.1545,-0.9171z`,\r\n    get width() { return getGridUnitWidth(1685); },\r\n    height: 16,\r\n    char: \"ф\"\r\n  },\r\n  'Xх': {\r\n    getPath: () => `M2.25,16l-0.8174,-1.2472l-0.823,1.2472h-0.5449l1.0815,-1.5618l-1.0309,-1.4775h0.559l0.7584,1.1826l0.7528,-1.1826h0.5646l-1.0309,1.4719l1.0955,1.5674h-0.5646z`,\r\n    get width() { return getGridUnitWidth(1024); },\r\n    height: 16,\r\n    char: \"х\"\r\n  },\r\n  'Xц': {\r\n    getPath: () => `M0.9045,12.9607v2.6713h1.3399v-2.6713h0.5056v2.6713h0.4129v1.514h-0.4579v-1.1461h-2.3062v-3.0393h0.5056z`,\r\n    get width() { return getGridUnitWidth(1173); },\r\n    height: 16,\r\n    char: \"ц\"\r\n  },\r\n  'Xч': {\r\n    getPath: () => `M0.8483,12.9607v1.1292q0,0.4551,0.4663,0.4551q0.309,0,0.7753,-0.132v-1.4522h0.5056v3.0393h-0.5056v-1.2949l-0.2191,0.0843q-0.4101,0.1573,-0.764,0.1573q-0.3624,0,-0.5632,-0.2177t-0.2008,-0.6138v-1.1545h0.5056z`,\r\n    get width() { return getGridUnitWidth(1067); },\r\n    height: 16,\r\n    char: \"ч\"\r\n  },\r\n  'Xш': {\r\n    getPath: () => `M0.3989,16v-3.0393h0.5056v2.6713h1.1517v-2.6713h0.5056v2.6713h1.1489v-2.6713h0.5056v3.0393h-3.8174z`,\r\n    get width() { return getGridUnitWidth(1643); },\r\n    height: 16,\r\n    char: \"ш\"\r\n  },\r\n  'Xщ': {\r\n    getPath: () => `M0.3989,16v-3.0393h0.5056v2.6713h1.1376v-2.6713h0.5056v2.6713h1.1348v-2.6713h0.5056v2.6713h0.4129v1.514h-0.4579v-1.1461h-3.7444z`,\r\n    get width() { return getGridUnitWidth(1685); },\r\n    height: 16,\r\n    char: \"щ\"\r\n  },\r\n  'Xъ': {\r\n    getPath: () => `M2.1938,14.2472q0.5758,0,0.8708,0.2065t0.2949,0.6531q0,0.4326,-0.3034,0.6629t-0.8596,0.2303h-1.1489v-2.6713h-0.9213v-0.368h1.427v1.2865h0.6404zM1.5534,15.6433h0.5674q0.3652,0,0.5337,-0.1292t0.1685,-0.4073q0,-0.264,-0.1629,-0.3862t-0.5365,-0.1222h-0.5702v1.0449z`,\r\n    get width() { return getGridUnitWidth(1280); },\r\n    height: 16,\r\n    char: \"ъ\"\r\n  },\r\n  'Xы': {\r\n    getPath: () => `M1.5449,14.2472q0.5758,0,0.8708,0.2065t0.2949,0.6531q0,0.4326,-0.3034,0.6629t-0.8596,0.2303h-1.1489v-3.0393h0.5056v1.2865h0.6404zM0.9045,15.6433h0.5674q0.3652,0,0.5337,-0.1292t0.1685,-0.4073q0,-0.264,-0.1629,-0.3862t-0.5365,-0.1222h-0.5702v1.0449zM3.2303,16v-3.0393h0.5056v3.0393h-0.5056z`,\r\n    get width() { return getGridUnitWidth(1472); },\r\n    height: 16,\r\n    char: \"ы\"\r\n  },\r\n  'Xь': {\r\n    getPath: () => `M1.5955,14.2472q0.5758,0,0.8708,0.2065t0.2949,0.6531q0,0.4326,-0.3034,0.6629t-0.8596,0.2303h-1.1994v-3.0393h0.5056v1.2865h0.691zM0.9045,15.6433h0.618q0.3652,0,0.5337,-0.1292t0.1685,-0.4073q0,-0.264,-0.1629,-0.3862t-0.5365,-0.1222h-0.6208v1.0449z`,\r\n    get width() { return getGridUnitWidth(1067); },\r\n    height: 16,\r\n    char: \"ь\"\r\n  },\r\n  'Xэ': {\r\n    getPath: () => `M0.1545,15.1152l0.5112,-0.0337q0.0449,0.3034,0.2317,0.4494t0.4677,0.1461q0.3624,0,0.5618,-0.2486t0.2331,-0.7823h-1.1601v-0.368h1.1601q-0.0225,-0.5309,-0.2121,-0.764t-0.5772,-0.2331q-0.5899,0,-0.6798,0.5506l-0.5197,-0.0393q0.0787,-0.4185,0.3919,-0.6531t0.7935,-0.2346q0.6461,0,0.9902,0.4045t0.3441,1.1685q0,0.7753,-0.3441,1.177t-0.9958,0.4017q-0.4972,0,-0.8174,-0.2528t-0.3792,-0.6882z`,\r\n    get width() { return getGridUnitWidth(1045); },\r\n    height: 16,\r\n    char: \"э\"\r\n  },\r\n  'Xю': {\r\n    getPath: () => `M4.073,14.4775q0,0.7978,-0.3301,1.1882t-0.9565,0.3904q-0.5955,0,-0.9143,-0.3694t-0.3441,-1.0716h-0.6236v1.3848h-0.5056v-3.0393h0.5056v1.2865h0.6264q0.0927,-1.3427,1.2725,-1.3427q0.6657,0,0.9677,0.3933t0.302,1.1798zM3.5421,14.4775q0,-0.6292,-0.1685,-0.9143t-0.5618,-0.2851q-0.3989,0,-0.5772,0.2907t-0.1784,0.9087q0,0.6124,0.177,0.9087t0.5506,0.2963q0.4101,0,0.5843,-0.2935t0.1742,-0.9115z`,\r\n    get width() { return getGridUnitWidth(1536); },\r\n    height: 16,\r\n    char: \"ю\"\r\n  },\r\n  'Xя': {\r\n    getPath: () => `M1.5028,14.7135l-0.8848,1.2865h-0.5702l0.9663,-1.323q-0.6994,-0.1433,-0.6994,-0.8764q0,-0.4185,0.3034,-0.6292t0.8848,-0.2107h1.2135v3.0393h-0.5056v-1.2865h-0.7079zM2.2107,13.3174h-0.6573q-0.3652,0,-0.5337,0.1292t-0.1685,0.3904q0,0.264,0.1503,0.3947t0.4986,0.1306h0.7107v-1.0449z`,\r\n    get width() { return getGridUnitWidth(1109); },\r\n    height: 16,\r\n    char: \"я\"\r\n  },\r\n  'XА': {\r\n    getPath: () => `M3.2781,16l-0.4522,-1.1573h-1.8034l-0.4551,1.1573h-0.5562l1.6152,-3.9579h0.6096l1.5899,3.9579h-0.5478zM1.9242,12.4466l-0.0253,0.0787q-0.0702,0.2331,-0.2079,0.5983l-0.5056,1.3006h1.4803l-0.5084,-1.3062q-0.0787,-0.1938,-0.1573,-0.4382z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"А\"\r\n  },\r\n  'XБ': {\r\n    getPath: () => `M3.4775,14.8399q0,0.5253,-0.3624,0.8427t-1,0.3174h-1.6433v-3.9579h2.6011v0.4382h-2.0646v1.236h1.073q0.6629,0,1.0295,0.2949t0.3666,0.8287zM2.9382,14.8455q0,-0.3399,-0.2303,-0.5211t-0.691,-0.1812h-1.0084v1.4326h1.0309q0.4607,0,0.6798,-0.191t0.2191,-0.5393z`,\r\n    get width() { return getGridUnitWidth(1344); },\r\n    height: 16,\r\n    char: \"Б\"\r\n  },\r\n  'XВ': {\r\n    getPath: () => `M3.5337,14.8848q0,0.5281,-0.3848,0.8216t-1.0702,0.2935h-1.6067v-3.9579h1.4382q1.3933,0,1.3933,0.9607q0,0.3511,-0.1966,0.5899t-0.5562,0.3202q0.4719,0.0562,0.7275,0.316t0.2556,0.6559zM2.764,13.0674q0,-0.3202,-0.2191,-0.4579t-0.6348,-0.1376h-0.9017v1.2528h0.9017q0.4298,0,0.6419,-0.1615t0.2121,-0.4958zM2.9916,14.8427q0,-0.6994,-0.9831,-0.6994h-1v1.427h1.0421q0.4916,0,0.7163,-0.1826t0.2247,-0.5449z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"В\"\r\n  },\r\n  'XГ': {\r\n    getPath: () => `M3.0084,12.0393v0.4382h-2v3.5197h-0.5365v-3.9579h2.5365z`,\r\n    get width() { return getGridUnitWidth(1109); },\r\n    height: 16,\r\n    char: \"Г\"\r\n  },\r\n  'XД': {\r\n    getPath: () => `M3.2978,15.5506h0.4916v1.5955h-0.5056v-1.1461h-2.736v1.1461h-0.5056v-1.5955h0.4045q0.2191,-0.2725,0.3722,-0.7654t0.257,-1.3104l0.1882,-1.4326h2.0337v3.5084zM2.7753,15.5506v-3.059h-1.0534l-0.1376,1.0337q-0.1039,0.7697,-0.2303,1.2556t-0.3034,0.7697h1.7247z`,\r\n    get width() { return getGridUnitWidth(1387); },\r\n    height: 16,\r\n    char: \"Д\"\r\n  },\r\n  'XЕ': {\r\n    getPath: () => `M0.4719,16v-3.9579h3.0028v0.4382h-2.4663v1.2697h2.2978v0.4326h-2.2978v1.3792h2.5815v0.4382h-3.118z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Е\"\r\n  },\r\n  'XЁ': {\r\n    getPath: () => `M0.4719,16v-3.9579h3.0028v0.4382h-2.4663v1.2697h2.2978v0.4326h-2.2978v1.3792h2.5815v0.4382h-3.118zM2.2921,11.7022v-0.5169h0.4579v0.5169h-0.4579zM1.1854,11.7022v-0.5169h0.4635v0.5169h-0.4635z`,\r\n    get width() { return getGridUnitWidth(1367); },\r\n    height: 16,\r\n    char: \"Ё\"\r\n  },\r\n  'XЖ': {\r\n    getPath: () => `M2.3876,14.1882q-0.1039,0,-0.2598,-0.0365t-0.2261,-0.0702l-1.1994,1.9185h-0.6236l1.4298,-2.177q-0.1348,-0.0983,-0.5028,-0.6292l-0.7949,-1.1517h0.5618l0.5758,0.8567q0.3118,0.4691,0.4466,0.6194t0.2584,0.2065t0.3343,0.0562v-1.7388h0.5365v1.7388q0.2107,0,0.3371,-0.0576t0.264,-0.2135t0.4382,-0.611l0.5758,-0.8567h0.5618l-0.7949,1.1517q-0.368,0.5309,-0.5028,0.6292l1.4298,2.177h-0.6236l-1.1994,-1.9185q-0.0702,0.0337,-0.2233,0.0702t-0.2626,0.0365v1.8118h-0.5365v-1.8118z`,\r\n    get width() { return getGridUnitWidth(1891); },\r\n    height: 16,\r\n    char: \"Ж\"\r\n  },\r\n  'XЗ': {\r\n    getPath: () => `M1.7444,16.0562q-0.573,0,-0.9438,-0.2261t-0.6124,-0.7514l0.4635,-0.2163q0.3343,0.764,1.073,0.764q0.4298,0,0.677,-0.1994t0.2472,-0.559q0,-0.3736,-0.2697,-0.5393t-0.8371,-0.1657h-0.1994v-0.4157h0.1994q0.5084,0,0.7514,-0.1671t0.243,-0.5126q0,-0.3006,-0.2037,-0.4733t-0.5829,-0.1728q-0.3539,0,-0.5955,0.1643t-0.3848,0.5295l-0.5,-0.1713q0.1966,-0.486,0.5674,-0.7219t0.9326,-0.236q0.5955,0,0.9494,0.2795t0.3539,0.7542q0,0.3567,-0.2022,0.5899t-0.5843,0.323q0.427,0.0646,0.6657,0.3104t0.2388,0.6166q0,0.5478,-0.389,0.8722t-1.0576,0.3244z`,\r\n    get width() { return getGridUnitWidth(1237); },\r\n    height: 16,\r\n    char: \"З\"\r\n  },\r\n  'XИ': {\r\n    getPath: () => `M0.4719,16v-3.9579h0.4831v2.5955q0,0.3202,-0.0225,0.7697l2.1067,-3.3652h0.6236v3.9579h-0.4775v-2.6292q0,-0.3427,0.0169,-0.7135l-2.0843,3.3427h-0.6461z`,\r\n    get width() { return getGridUnitWidth(1472); },\r\n    height: 16,\r\n    char: \"И\"\r\n  },\r\n  'XЙ': {\r\n    getPath: () => `M0.4719,16v-3.9579h0.4831v2.5955q0,0.3202,-0.0225,0.7697l2.1067,-3.3652h0.6236v3.9579h-0.4775v-2.6292q0,-0.3427,0.0169,-0.7135l-2.0843,3.3427h-0.6461zM2.0843,11.7022q-1,0,-1.0309,-0.8989h0.4607q0.0337,0.559,0.5702,0.559t0.5702,-0.559h0.4607q-0.0309,0.8989,-1.0309,0.8989z`,\r\n    get width() { return getGridUnitWidth(1472); },\r\n    height: 16,\r\n    char: \"Й\"\r\n  },\r\n  'XК': {\r\n    getPath: () => `M0.4719,12.0421h0.5365v1.7388q0.2107,0,0.3371,-0.0576t0.264,-0.2135t0.4382,-0.611l0.5758,-0.8567h0.5618l-0.7949,1.1517q-0.368,0.5309,-0.5028,0.6292l1.4298,2.177h-0.6236l-1.1994,-1.9185q-0.0702,0.0337,-0.2233,0.0702t-0.2626,0.0365v1.8118h-0.5365v-3.9579z`,\r\n    get width() { return getGridUnitWidth(1193); },\r\n    height: 16,\r\n    char: \"К\"\r\n  },\r\n  'XЛ': {\r\n    getPath: () => `M2.7837,12.4916h-1.1742l-0.1376,1.0337q-0.1433,1.118,-0.2767,1.6096t-0.3357,0.7008t-0.5674,0.2093q-0.1629,0,-0.2416,-0.0281v-0.427q0.0534,0.0197,0.1573,0.0197q0.1489,0,0.243,-0.0913t0.1756,-0.3034t0.1629,-0.6292t0.1629,-1.0281t0.1994,-1.5154h2.1545v3.9579h-0.5225v-3.5084z`,\r\n    get width() { return getGridUnitWidth(1344); },\r\n    height: 16,\r\n    char: \"Л\"\r\n  },\r\n  'XМ': {\r\n    getPath: () => `M3.8371,16v-2.6404q0,-0.4382,0.0253,-0.8427q-0.1376,0.5028,-0.2472,0.7865l-1.0225,2.6966h-0.3764l-1.0365,-2.6966l-0.1573,-0.4775l-0.0927,-0.309l0.0084,0.3118l0.0112,0.5309v2.6404h-0.4775v-3.9579h0.7051l1.0534,2.7444q0.0562,0.1657,0.1081,0.3553t0.0688,0.2739q0.0225,-0.1124,0.0941,-0.3413t0.0969,-0.2879l1.0337,-2.7444h0.6882v3.9579h-0.4831z`,\r\n    get width() { return getGridUnitWidth(1706); },\r\n    height: 16,\r\n    char: \"М\"\r\n  },\r\n  'XН': {\r\n    getPath: () => `M3.1489,16v-1.8343h-2.1404v1.8343h-0.5365v-3.9579h0.5365v1.6742h2.1404v-1.6742h0.5365v3.9579h-0.5365z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Н\"\r\n  },\r\n  'XО': {\r\n    getPath: () => `M4.1994,14.0028q0,0.6208,-0.2374,1.0871t-0.6812,0.7163t-1.0478,0.25q-0.6096,0,-1.052,-0.2472t-0.6756,-0.7149t-0.2331,-1.0913q0,-0.9494,0.5197,-1.4846t1.4466,-0.5351q0.6039,0,1.0478,0.2402t0.6784,0.698t0.2346,1.0815zM3.6517,14.0028q0,-0.7388,-0.3694,-1.1601t-1.0435,-0.4213q-0.6798,0,-1.0506,0.4157t-0.3708,1.1657q0,0.7444,0.375,1.1812t1.0407,0.4368q0.6854,0,1.052,-0.4228t0.3666,-1.1952z`,\r\n    get width() { return getGridUnitWidth(1593); },\r\n    height: 16,\r\n    char: \"О\"\r\n  },\r\n  'XП': {\r\n    getPath: () => `M3.1433,16v-3.5056h-2.1404v3.5056h-0.5365v-3.9579h3.2135v3.9579h-0.5365z`,\r\n    get width() { return getGridUnitWidth(1472); },\r\n    height: 16,\r\n    char: \"П\"\r\n  },\r\n  'XР': {\r\n    getPath: () => `M3.5337,13.2331q0,0.5618,-0.3666,0.8933t-0.9958,0.3315h-1.1629v1.5421h-0.5365v-3.9579h1.6657q0.6657,0,1.0309,0.3118t0.3652,0.8792zM2.9944,13.2388q0,-0.7669,-0.9213,-0.7669h-1.0646v1.5618h1.0871q0.8989,0,0.8989,-0.7949z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Р\"\r\n  },\r\n  'XС': {\r\n    getPath: () => `M2.2247,12.4213q-0.6573,0,-1.0225,0.4228t-0.3652,1.1587q0,0.7275,0.3806,1.1699t1.0295,0.4424q0.8315,0,1.25,-0.823l0.4382,0.2191q-0.2444,0.5112,-0.6868,0.7781t-1.0267,0.2669q-0.5983,0,-1.0351,-0.2486t-0.6657,-0.7107t-0.2289,-1.0941q0,-0.9466,0.5112,-1.4831t1.4157,-0.5365q0.632,0,1.0562,0.2472t0.6236,0.7331l-0.5084,0.1685q-0.1376,-0.3455,-0.4424,-0.5281t-0.7233,-0.1826z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"С\"\r\n  },\r\n  'XТ': {\r\n    getPath: () => `M2.0225,12.4803v3.5197h-0.5337v-3.5197h-1.3596v-0.4382h3.2528v0.4382h-1.3596z`,\r\n    get width() { return getGridUnitWidth(1251); },\r\n    height: 16,\r\n    char: \"Т\"\r\n  },\r\n  'XУ': {\r\n    getPath: () => `M0.9326,16.0562q-0.1742,0,-0.3638,-0.0534t-0.3188,-0.1433l0.2275,-0.4045q0.264,0.1657,0.4663,0.1657q0.1433,0,0.2402,-0.0548t0.1952,-0.1882t0.3848,-0.6559l-1.6096,-2.6798h0.6124l1.2612,2.2022l1.0787,-2.2022h0.5758l-1.6208,3.0646q-0.2388,0.4494,-0.3876,0.6208t-0.3244,0.25t-0.4171,0.0787z`,\r\n    get width() { return getGridUnitWidth(1301); },\r\n    height: 16,\r\n    char: \"У\"\r\n  },\r\n  'XФ': {\r\n    getPath: () => `M4.0421,13.9326q0,0.4298,-0.1784,0.7626t-0.5126,0.5154t-0.7837,0.1826h-0.1124v0.6376h-0.5365v-0.6376h-0.1124q-0.4522,0,-0.7865,-0.184t-0.5112,-0.5169t-0.177,-0.7598q0,-0.6685,0.3919,-1.0379t1.1138,-0.3694h0.0815v-0.5112h0.5365v0.5112h0.0787q0.7247,0,1.1166,0.3708t0.3919,1.0365zM3.5028,13.9438q0,-1.0309,-1.0337,-1.0309h-0.014v2.0955h0.0365q0.4888,0,0.75,-0.2697t0.2612,-0.7949zM0.8708,13.9438q0,0.5253,0.2612,0.7949t0.75,0.2697h0.0365v-2.0955h-0.0253q-0.5112,0,-0.7669,0.2528t-0.2556,0.7781z`,\r\n    get width() { return getGridUnitWidth(1557); },\r\n    height: 16,\r\n    char: \"Ф\"\r\n  },\r\n  'XХ': {\r\n    getPath: () => `M3.1236,16l-1.1882,-1.7303l-1.2135,1.7303h-0.5927l1.5056,-2.0562l-1.3904,-1.9017h0.5927l1.1011,1.5534l1.0702,-1.5534h0.5927l-1.3539,1.882l1.4691,2.0758h-0.5927z`,\r\n    get width() { return getGridUnitWidth(1366); },\r\n    height: 16,\r\n    char: \"Х\"\r\n  },\r\n  'XЦ': {\r\n    getPath: () => `M4.1489,15.5506v1.5955h-0.5056v-1.1461h-3.1713v-3.9579h0.5365v3.5084h2.1264v-3.5084h0.5225v3.5084h0.4916z`,\r\n    get width() { return getGridUnitWidth(1515); },\r\n    height: 16,\r\n    char: \"Ц\"\r\n  },\r\n  'XЧ': {\r\n    getPath: () => `M2.8315,14.573q-0.4354,0.0955,-0.691,0.1292t-0.4551,0.0337q-0.6236,0,-0.9298,-0.2542t-0.3062,-0.7711v-1.6685h0.5337v1.6124q0,0.3455,0.1826,0.4972t0.559,0.1517q0.4185,0,1.1067,-0.1376v-2.1236h0.5337v3.9579h-0.5337v-1.427z`,\r\n    get width() { return getGridUnitWidth(1365); },\r\n    height: 16,\r\n    char: \"Ч\"\r\n  },\r\n  'XШ': {\r\n    getPath: () => `M0.4719,16v-3.9579h0.5365v3.5084h1.3736v-3.5084h0.5225v3.5084h1.3736v-3.5084h0.5225v3.9579h-4.3287z`,\r\n    get width() { return getGridUnitWidth(1877); },\r\n    height: 16,\r\n    char: \"Ш\"\r\n  },\r\n  'XЩ': {\r\n    getPath: () => `M5.1657,15.5506v1.5955h-0.5056v-1.1461h-4.1882v-3.9579h0.5365v3.5084h1.3118v-3.5084h0.5225v3.5084h1.309v-3.5084h0.5225v3.5084h0.4916z`,\r\n    get width() { return getGridUnitWidth(1920); },\r\n    height: 16,\r\n    char: \"Щ\"\r\n  },\r\n  'XЪ': {\r\n    getPath: () => `M1.9551,13.7163h0.9045q0.6629,0,1.0295,0.2949t0.3666,0.8287q0,0.5253,-0.3624,0.8427t-1,0.3174h-1.4747v-3.5197h-1.2893v-0.4382h1.8258v1.6742zM3.7163,14.8455q0,-0.3399,-0.2303,-0.5211t-0.691,-0.1812h-0.8399v1.4326h0.8624q0.4607,0,0.6798,-0.191t0.2191,-0.5393z`,\r\n    get width() { return getGridUnitWidth(1621); },\r\n    height: 16,\r\n    char: \"Ъ\"\r\n  },\r\n  'XЫ': {\r\n    getPath: () => `M3.4775,14.8399q0,0.5253,-0.3624,0.8427t-1,0.3174h-1.6433v-3.9579h0.5365v1.6742h1.073q0.6629,0,1.0295,0.2949t0.3666,0.8287zM2.9382,14.8455q0,-0.3399,-0.2303,-0.5211t-0.691,-0.1812h-1.0084v1.4326h1.0309q0.4607,0,0.6798,-0.191t0.2191,-0.5393zM4.0843,16v-3.9579h0.5365v3.9579h-0.5365z`,\r\n    get width() { return getGridUnitWidth(1813); },\r\n    height: 16,\r\n    char: \"Ы\"\r\n  },\r\n  'XЬ': {\r\n    getPath: () => `M3.4775,14.8399q0,0.5253,-0.3624,0.8427t-1,0.3174h-1.6433v-3.9579h0.5365v1.6742h1.073q0.6629,0,1.0295,0.2949t0.3666,0.8287zM2.9382,14.8567q0,-0.3399,-0.2303,-0.5239t-0.691,-0.184h-1.0084v1.427h1.0309q0.8989,0,0.8989,-0.7191z`,\r\n    get width() { return getGridUnitWidth(1344); },\r\n    height: 16,\r\n    char: \"Ь\"\r\n  },\r\n  'XЭ': {\r\n    getPath: () => `M2.0028,12.4213q-0.427,0,-0.7331,0.1896t-0.4326,0.5211l-0.5084,-0.1685q0.1994,-0.486,0.6236,-0.7331t1.0562,-0.2472q0.9045,0,1.4157,0.5365t0.5112,1.4831q0,0.6264,-0.2275,1.0899t-0.6615,0.7135t-1.0379,0.25q-1.1966,0,-1.7135,-1.0449l0.4382,-0.2191q0.1938,0.3933,0.5169,0.6081t0.7303,0.2149q0.5983,0,0.9733,-0.3806t0.4284,-1.0267h-1.8371v-0.4326h1.8371q-0.059,-0.6433,-0.4199,-0.9986t-0.9593,-0.3553z`,\r\n    get width() { return getGridUnitWidth(1472); },\r\n    height: 16,\r\n    char: \"Э\"\r\n  },\r\n  'XЮ': {\r\n    getPath: () => `M5.5365,14.0028q0,0.6208,-0.2247,1.0885t-0.6461,0.7163t-0.9831,0.2486q-0.8287,0,-1.316,-0.5028t-0.5295,-1.3876h-0.8287v1.8343h-0.5365v-3.9579h0.5365v1.6742h0.8371q0.0758,-0.8202,0.5576,-1.2767t1.2851,-0.4565q0.8708,0,1.3596,0.5379t0.4888,1.4817zM4.9888,14.0028q0,-0.7388,-0.3413,-1.1601t-0.9593,-0.4213q-0.6264,0,-0.9677,0.4157t-0.3413,1.1657q0,0.7444,0.3469,1.1812t0.9565,0.4368q0.6264,0,0.9663,-0.4199t0.3399,-1.198z`,\r\n    get width() { return getGridUnitWidth(2069); },\r\n    height: 16,\r\n    char: \"Ю\"\r\n  },\r\n  'XЯ': {\r\n    getPath: () => `M0.2697,16l1.1236,-1.7051q-0.4522,-0.0787,-0.7093,-0.3792t-0.257,-0.7416q0,-0.5337,0.3624,-0.8329t1.0337,-0.2992h1.8624v3.9579h-0.5365v-1.6433h-1.2331l-1.0281,1.6433h-0.618zM0.9663,13.1798q0,0.3567,0.2317,0.5548t0.6559,0.198h1.2949v-1.4607h-1.2725q-0.441,0,-0.6756,0.1812t-0.2346,0.5267z`,\r\n    get width() { return getGridUnitWidth(1479); },\r\n    height: 16,\r\n    char: \"Я\"\r\n  }\r\n};\r\n\r\nfor (const letter of Object.values(alphabetData)) {\r\n  letter.specialRule = \"external glyph\";\r\n  letter.leftSideBearing = parseFloat((defaultLeftSideBearing / fontUnitToGridUnitDivisor).toFixed(7));\r\n  letter.rightSideBearing = parseFloat((defaultRightSideBearing / fontUnitToGridUnitDivisor).toFixed(7));\r\n}\r\n\r\nexport { alphabetData };","/**\n * The attribute names a standard owns in a fixed spelling, and the lookup that\n * resolves any casing or hyphenation of one back to that spelling.\n *\n * An author writing `view-box`, `viewbox` or `VIEWBOX` means SVG's `viewBox`.\n * A single lookup recovers all three shapes: strip the hyphens, lowercase, and\n * read off the owner's spelling. A name that answers nothing is a name nobody\n * owns, and those are emitted exactly as written.\n *\n * PROVENANCE, so this list can be regenerated rather than guessed at:\n *\n *   source   SVGO 4.0.1, `plugins/_collections.js` (MIT), retrieved 2026-10-21\n *            from https://cdn.jsdelivr.net/npm/svgo@4.0.1/plugins/_collections.js\n *   recipe   for each element in SVG_ELEMENT_BASIS, union `elems[el].attrs`\n *            with every `attrsGroups[g]` named by `elems[el].attrsGroups`;\n *            then drop namespaced names, then add the link attributes below.\n *   minus    namespaced names (`xlink:*`, `xml:*`). Neither entry point can\n *            deliver one, by two different mechanisms: an option bracket splits\n *            the key on the colon before any lookup could see it, and an\n *            options object keeps the key whole but is refused by the safety\n *            gate with `UNSAFE_ATTRIBUTE_NAME`. Owning them here would be a\n *            promise neither channel can keep.\n *   plus     the SVG 2 link attributes the library routes onto an `<a>`:\n *            href, rel, download, hreflang, referrerpolicy. SVGO's collections\n *            describe SVG 1.1, which knows only `xlink:href`, so the five names\n *            the library already emits are absent upstream. The other two\n *            routed names arrive through the 1.1 union: `target` from `<a>`,\n *            and `type` from `<style>` and nowhere else, which is why dropping\n *            `<style>` from the basis is not the isolated change it looks like.\n *   census   135 names: 18 camelCase, 50 hyphenated, 67 single-word, resolving\n *            to 135 distinct normalized keys.\n *\n * Sixteen of the 135 are inert in both directions and are kept anyway: the\n * `on*` event handlers are refused by the safety gate under every spelling, so\n * no canonicalization can make one live. They stay because the list is faithful\n * to its source, and because excluding them would be the kind of unstated\n * special case the basis exists to refuse.\n *\n * The list is pinned here rather than generated at build time. Its invariants\n * are carried by `tests/BlissSVGBuilder.svg-attribute-vocabulary.test.js`: one\n * test fails if two names ever collapse onto one key, another fails the day the\n * library emits an element this basis does not name.\n *\n * Scoped deliberately to the elements the library emits, and no wider. Every\n * name here is one the library may rewrite on the author's behalf, so a longer\n * list is a larger surface on which to rename something an author meant\n * literally. Generic SVG words such as `in`, `result`, `values` and `operator`\n * are here because the library emits the filter primitives that own them;\n * `mode` (`<feBlend>`) and `kernelMatrix` (`<feConvolveMatrix>`) belong to\n * elements it does not emit, and stay out.\n */\n\n/**\n * The elements the library puts in its output. Confirmed against the rendered\n * markup rather than read off the source: the vocabulary above is a union over\n * exactly these, so a feature that emits an element missing here leaves the\n * vocabulary short until it is added.\n */\nexport const SVG_ELEMENT_BASIS = new Set([\n  'a', 'desc', 'g', 'path', 'rect', 'style', 'svg', 'text', 'title',\n  // the native filter a CSS `filter` inside the picture is drawn as\n  'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feFlood', 'feFuncA', 'feFuncB',\n  'feFuncG', 'feFuncR', 'feGaussianBlur', 'feMerge', 'feMergeNode', 'feOffset', 'filter',\n]);\n\n/** The owner's spelling of every attribute name in scope. */\nexport const SVG_ATTRIBUTE_NAMES = new Set([\n  'alignment-baseline', 'amplitude', 'baseProfile', 'baseline-shift', 'class', 'clip',\n  'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters',\n  'color-profile', 'color-rendering', 'contentScriptType', 'contentStyleType', 'cursor', 'd',\n  'direction', 'display', 'dominant-baseline', 'download', 'dx', 'dy', 'enable-background',\n  'exponent', 'externalResourcesRequired', 'fill', 'fill-opacity', 'fill-rule', 'filter',\n  'filterRes', 'filterUnits', 'flood-color', 'flood-opacity', 'font-family', 'font-size',\n  'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight',\n  'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'height', 'href', 'hreflang',\n  'id', 'image-rendering', 'in', 'in2', 'intercept', 'k1', 'k2', 'k3', 'k4', 'lengthAdjust',\n  'letter-spacing', 'lighting-color',\n  'marker-end', 'marker-mid', 'marker-start', 'mask', 'media', 'offset', 'onabort', 'onactivate',\n  'onclick', 'onerror', 'onfocusin', 'onfocusout', 'onload', 'onmousedown', 'onmousemove',\n  'onmouseout', 'onmouseover', 'onmouseup', 'onresize', 'onscroll', 'onunload', 'onzoom',\n  'opacity', 'operator', 'overflow', 'paint-order', 'pathLength', 'pointer-events',\n  'preserveAspectRatio',\n  'primitiveUnits', 'referrerpolicy', 'rel', 'requiredExtensions', 'requiredFeatures', 'result',\n  'rotate', 'rx', 'ry', 'shape-rendering', 'slope', 'stdDeviation', 'stop-color', 'stop-opacity',\n  'stroke', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin',\n  'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'style', 'systemLanguage', 'tabindex',\n  'tableValues', 'target', 'text-anchor', 'text-decoration', 'text-overflow', 'text-rendering',\n  'textLength', 'title', 'transform', 'transform-origin', 'type', 'unicode-bidi', 'values',\n  'vector-effect', 'version', 'viewBox', 'visibility', 'width', 'word-spacing', 'writing-mode',\n  'x', 'y', 'zoomAndPan',\n]);\n\n/**\n * The form every spelling of one name collapses to. Hyphens carry no meaning\n * once a name is known, and neither does case, so `stroke-dasharray`,\n * `strokeDasharray` and `STROKEDASHARRAY` all answer to `strokedasharray`.\n */\nexport const normalizeAttributeName = (name) => String(name).replace(/-/g, '').toLowerCase();\n\nconst OWNER_SPELLINGS = new Map(\n  [...SVG_ATTRIBUTE_NAMES].map((name) => [normalizeAttributeName(name), name]),\n);\n\n/**\n * The owner's spelling of a written name, or `undefined` when no standard owns\n * it. `undefined` is the answer that keeps an author's own name verbatim, so\n * callers must treat it as \"leave this alone\" rather than as a failure.\n */\nexport const svgAttributeSpelling = (name) => OWNER_SPELLINGS.get(normalizeAttributeName(name));\n","/**\r\n * This Source Code Form is subject to the terms of the Mozilla Public\r\n * License, v. 2.0. If a copy of the MPL was not distributed with this\r\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\r\n */\r\n\r\nimport { svgAttributeSpelling } from \"./bliss-svg-attribute-names.js\";\r\n\r\n// Replaced at build time by Vite's define (also available in Vitest and VitePress).\r\n// Falls back to empty string when imported outside Vite (e.g. bare Node).\r\nexport const LIB_VERSION = typeof __LIB_VERSION__ !== 'undefined' ? __LIB_VERSION__ : '';\r\n\r\n/**\r\n * Known option keys (kebab-case) that are explicitly processed in #processOptions().\r\n * Any option key NOT in this set will be passed through as-is (for unknown SVG attributes like stroke-dasharray).\r\n */\r\nexport const KNOWN_OPTION_KEYS = new Set([\r\n  'stroke-width', 'dot-extra-width', 'sdot-extra-width', 'dot-width', 'sdot-width',\r\n  'char-space', 'word-space', 'external-glyph-space',\r\n  'margin', 'margin-top', 'margin-bottom', 'margin-left', 'margin-right',\r\n  'min-width', 'center',\r\n  'crop', 'crop-top', 'crop-bottom', 'crop-left', 'crop-right',\r\n  'grid', 'grid-color', 'grid-major-color', 'grid-medium-color', 'grid-minor-color',\r\n  'grid-sky-color', 'grid-earth-color',\r\n  'grid-stroke-width', 'grid-major-stroke-width', 'grid-medium-stroke-width',\r\n  'grid-minor-stroke-width', 'grid-sky-stroke-width', 'grid-earth-stroke-width',\r\n  'grid-shift',\r\n  'color', 'background', 'background-top', 'background-mid', 'background-bottom',\r\n  'background-area', 'link-area', 'background-padding', 'link-padding',\r\n  'text', 'svg-desc', 'svg-title', 'svg-height', 'error-placeholder',\r\n  'key'\r\n]);\r\n\r\n/**\r\n * Every element the library paints, and the classes it carries, general to\r\n * specific, exactly as the emitters write them. One declaration serves three\r\n * readers: the emitter writes `class` from it, a `<target>--<attribute>` key\r\n * resolves by membership in it, and the displacement report reads the curated\r\n * options behind a computed attribute. Add a painted element here and it is\r\n * targetable the moment its emitter carries the class.\r\n */\r\nexport const ELEMENT_CLASSES = Object.freeze({\r\n  root:           ['bliss-root'],\r\n  background:     ['bliss-background'],\r\n  backgroundZone: ['bliss-background-zone'],\r\n  zoneTop:        ['bliss-background-zone', 'bliss-background-zone--top'],\r\n  zoneMid:        ['bliss-background-zone', 'bliss-background-zone--mid'],\r\n  zoneBottom:     ['bliss-background-zone', 'bliss-background-zone--bottom'],\r\n  grid:           ['bliss-grid'],\r\n  gridMinor:      ['bliss-grid-line', 'bliss-grid-line--minor'],\r\n  gridMedium:     ['bliss-grid-line', 'bliss-grid-line--medium'],\r\n  gridMajor:      ['bliss-grid-line', 'bliss-grid-line--major'],\r\n  gridSky:        ['bliss-grid-line', 'bliss-grid-line--major', 'bliss-grid-line--sky'],\r\n  gridEarth:      ['bliss-grid-line', 'bliss-grid-line--major', 'bliss-grid-line--earth'],\r\n  content:        ['bliss-content'],\r\n  elementBackgroundBox: ['bliss-element-background', 'bliss-element-background--box'],\r\n  elementBackgroundInk: ['bliss-element-background', 'bliss-element-background--ink'],\r\n});\r\n\r\n/**\r\n * The element a word's, a character's or a part's background is drawn as,\r\n * keyed by the `background-area` word that draws it. These are the painted\r\n * elements the element tree draws rather than the builder, so whether one is\r\n * drawn is known only once the tree is built, after the global walk; the\r\n * displacement report judges them there.\r\n */\r\nexport const BACKGROUND_AREA_ELEMENTS = Object.freeze({\r\n  box: 'elementBackgroundBox',\r\n  ink: 'elementBackgroundInk',\r\n});\r\n\r\n/**\r\n * Which written option produced a computed attribute, most specific first,\r\n * mirroring the order #processOptions resolves the curated cascade. Read only\r\n * to NAME a written curated option that a raw key displaced; nothing resolves\r\n * through it, and a key absent from it is simply never reported as displaced.\r\n *\r\n * Closed and ours: it lists names the library itself computes, not a table of\r\n * SVG semantics. Keyed by ELEMENT_CLASSES entry.\r\n *\r\n * Add an option to a chain here and it becomes reportable the moment something\r\n * writes it; leave one out and that option is silently never named as displaced.\r\n * Every name in every chain carries a row in `layer-sub-targets.test.js` (the\r\n * element backgrounds' in `element-background-layer.test.js` and\r\n * `ink-areas.test.js`), since an entry no test reaches can be deleted with the\r\n * whole suite green.\r\n *\r\n * A box takes its paint as `fill`, an ink area as `stroke`: the two are told\r\n * apart by class, so the report names the attribute each one's paint reached.\r\n */\r\nexport const CURATED_ATTRIBUTE_SOURCES = Object.freeze({\r\n  gridMinor:  { stroke: ['grid-minor-color', 'grid-color'],\r\n                'stroke-width': ['grid-minor-stroke-width', 'grid-stroke-width'],\r\n                d: ['grid-shift'] },\r\n  gridMedium: { stroke: ['grid-medium-color', 'grid-color'],\r\n                'stroke-width': ['grid-medium-stroke-width', 'grid-stroke-width'],\r\n                d: ['grid-shift'] },\r\n  gridMajor:  { stroke: ['grid-major-color', 'grid-color'],\r\n                'stroke-width': ['grid-major-stroke-width', 'grid-stroke-width'],\r\n                d: ['grid-shift'] },\r\n  gridSky:    { stroke: ['grid-sky-color', 'grid-major-color', 'grid-color'],\r\n                'stroke-width': ['grid-sky-stroke-width', 'grid-major-stroke-width', 'grid-stroke-width'],\r\n                d: ['grid-shift'] },\r\n  gridEarth:  { stroke: ['grid-earth-color', 'grid-major-color', 'grid-color'],\r\n                'stroke-width': ['grid-earth-stroke-width', 'grid-major-stroke-width', 'grid-stroke-width'],\r\n                d: ['grid-shift'] },\r\n  backgroundZone: { fill: ['background'] },\r\n  zoneTop:    { fill: ['background-top', 'background'] },\r\n  zoneMid:    { fill: ['background-mid', 'background'] },\r\n  zoneBottom: { fill: ['background-bottom', 'background'] },\r\n  elementBackgroundBox: { fill: ['background'] },\r\n  elementBackgroundInk: { stroke: ['background'] },\r\n});\r\n\r\n/**\r\n * Per container, the attribute names whose value cannot take effect there, and\r\n * the target that reaches the children where it can. The membership rule is\r\n * exactly \"every name this container's own emitter stamps on its CHILDREN\",\r\n * which is checkable by eye against the emitters and needs no table of SVG\r\n * semantics, the open-ended thing the library declined to build for vector-effect. That\r\n * is why `rx` and `opacity` are out (nothing stamps them, so we cannot say a\r\n * child's value takes effect instead) and why `shape-rendering` is out (the\r\n * grid group carries it itself, so a written one replaces it rather than being\r\n * shadowed by a child. The embedded `@supports` stylesheet does set it on\r\n * `.bliss-grid-line` in WebKit, where a CSS rule beats an inherited\r\n * presentation attribute and the lines keep their own; that is a stylesheet we\r\n * ship, not a value the emitter stamps, so it does not meet the rule above).\r\n * `class` is the one carve-out from the rule: every child carries it, but the\r\n * container carries it too and an authored value MERGES there, so reporting it\r\n * would report a live feature.\r\n *\r\n * The root is a container by the same rule: its emitter stamps the five paint\r\n * defaults on the content group, so a `root--stroke` is beaten there by the\r\n * content group's own `stroke`, and `content--` is what reaches it. The grid\r\n * lines and the paper set their own paint too, so nothing the library draws\r\n * shows the root's value. A layer added later outside the content group (the\r\n * coming text layer) must set each of these names itself, or the report stops\r\n * being true for the names it leaves out.\r\n *\r\n * STATIC, not computed from what was actually drawn: a container whose children\r\n * are all cropped away would have no triggers, so the warning would fall silent\r\n * in exactly the configuration where it is most needed.\r\n *\r\n * Two kinds of name sit in one list because the remedy is identical for both.\r\n * The paint names are inherited, and a child's own value beats what the parent\r\n * passes down. `x`, `y`, `width`, `height` and `d` are geometry: a group\r\n * carries none of them and passes none of them down, so the value is simply\r\n * inert there. The message therefore states only what an author can observe,\r\n * that the child's value is the one that takes effect, rather than naming the\r\n * inheritance mechanism, which holds for one half of the list and is false for\r\n * the other.\r\n *\r\n * A Map, not an object literal, so an inherited name can never answer for a\r\n * real target. Adding a container here means adding an arm to `containerIsDrawn`\r\n * in `bliss-svg-builder.js`; without one it reports whether or not anything was\r\n * drawn.\r\n */\r\nexport const CONTAINER_SHADOWED_ATTRIBUTES = new Map([\r\n  ['grid',       { names: ['stroke', 'stroke-width', 'stroke-linecap', 'stroke-linejoin', 'd'],\r\n                   childTarget: 'grid-line' }],\r\n  ['background', { names: ['x', 'y', 'width', 'height', 'stroke', 'fill'],\r\n                   childTarget: 'background-zone' }],\r\n  ['root',       { names: ['fill', 'stroke', 'stroke-linejoin', 'stroke-linecap', 'stroke-width'],\r\n                   childTarget: 'content' }],\r\n]);\r\n\r\n/** The `bliss-` prefix every structural class carries and no target repeats. */\r\nexport const CLASS_PREFIX = 'bliss-';\r\n\r\n/** A class name as it is written in a key: the class minus the prefix. */\r\nexport const targetOfClass = (className) => className.slice(CLASS_PREFIX.length);\r\n\r\n/**\r\n * The targets a `<target>--<attribute>` key can name: every class the library\r\n * writes, minus the prefix. Derived from ELEMENT_CLASSES rather than listed, so\r\n * the vocabulary and the markup cannot drift apart. Membership decides only\r\n * whether an unmatched target is SILENT or reported: resolution itself is class\r\n * membership at the emitters, so a target is silent when its class exists and\r\n * nothing drew it, and reported when no element could ever carry it.\r\n *\r\n * `root` is in here even though a bare key already reaches the root for the\r\n * attributes that describe the image (`isImageAttribute`). An `svg--` spelling\r\n * was dropped on the rule that a second spelling for one target is a\r\n * duplicate; that rule is knowingly outweighed, because the value of this\r\n * vocabulary is that every class the library writes is addressable, and an\r\n * exception for the outermost element is the one a reader would trip on. The\r\n * collision it creates is resolved where the root's attributes are built, and\r\n * reported.\r\n */\r\nexport const LAYER_TARGETS = new Set(\r\n  Object.values(ELEMENT_CLASSES).flat().map(targetOfClass)\r\n);\r\n\r\n/**\r\n * The targets a key may name below the global bracket as well as in it: the\r\n * element backgrounds' classes, minus the prefix. Every other target is one\r\n * layer of the whole SVG, so it acts only from `||`; an element background is\r\n * drawn for each word, character or part that writes a `background`, so a key\r\n * written on one of them styles every element background inside it, its own\r\n * included, the nearest key winning. Derived from the elements the tree paints,\r\n * so a background area added later is targetable at every scope at once.\r\n */\r\nexport const ELEMENT_LAYER_TARGETS = new Set(\r\n  Object.values(BACKGROUND_AREA_ELEMENTS).flatMap((element) => ELEMENT_CLASSES[element]).map(targetOfClass)\r\n);\r\n\r\n/**\r\n * Attribute names that state what the FILE is rather than anything about the\r\n * picture, so they are refused wherever they are written. `xmlns` has exactly\r\n * one legal value here: a second declaration, at any depth, moves that subtree\r\n * out of the SVG namespace, which makes a file no browser renders and our own\r\n * `svgElement` getter cannot parse. A bad value is one thing; producing a\r\n * document that is not SVG is something else, and that is why this set is not\r\n * scoped to the root the way the one below is.\r\n */\r\nexport const DOCUMENT_DEFINING_ATTRIBUTES = new Set(['xmlns']);\r\n\r\n/**\r\n * Whether a written name IS one of the two reserved names, judged without\r\n * regard to casing.\r\n *\r\n * A file served as SVG keeps `XMLNS` distinct from `xmlns`, so the miscased\r\n * spelling would merely be dead there. The same markup pasted into an HTML\r\n * page is a different story: the HTML parser lowercases every attribute name,\r\n * so `XMLNS=\"…\"` becomes a real second namespace declaration on the page it\r\n * was written into, and `DATA-GENERATOR` overwrites the provenance stamp. The\r\n * guards judge the name rather than the spelling, or they hold on one of the\r\n * two routes this library's output takes.\r\n */\r\nexport const isDocumentDefiningAttribute = (name) =>\r\n  DOCUMENT_DEFINING_ATTRIBUTES.has(String(name).toLowerCase());\r\n\r\n/**\r\n * Names the library owns ON THE ROOT and nowhere else, on the rule that the\r\n * user owns statements about the PICTURE and the library owns statements about\r\n * ITSELF. `data-generator` is the provenance stamp, and a stamp anyone can\r\n * overwrite is worth nothing to whoever reads it; a consumer recording their\r\n * own pipeline adds a name of their own instead. The same name on an inner\r\n * layer collides with nothing and is an ordinary data attribute the author set,\r\n * so it is left alone there.\r\n */\r\nexport const LIBRARY_OWNED_ROOT_ATTRIBUTES = new Set(['data-generator']);\r\n\r\n/** Whether a written name is the root stamp, judged like the set above. */\r\nexport const isLibraryOwnedRootAttribute = (name) =>\r\n  LIBRARY_OWNED_ROOT_ATTRIBUTES.has(String(name).toLowerCase());\r\n\r\n/**\r\n * The attributes that describe the IMAGE rather than style the drawing. A bare\r\n * global key with one of these names goes on the root `<svg>`; every other bare\r\n * global key styles the symbol and goes on its content group.\r\n *\r\n * Closed on purpose: an open table of SVG semantics is what this module\r\n * refuses to build. A name left off styles the symbol, which is what nearly\r\n * every attribute is for, and what a name of the author's own is assumed to be.\r\n * - `role`, `aria-*`: assistive technology reads them on the image, not on a\r\n *   group inside it.\r\n * - `id`, `class`, `data-*`: they name the image for a page's scripts and\r\n *   styles, or record something about it.\r\n * - `lang`: the language of the image's title and description.\r\n * - `tabindex`: the image is what takes focus.\r\n * - `preserveAspectRatio`, `overflow`, `viewBox`, `width`, `height`: the\r\n *   viewport's own, and meaningless on a group.\r\n * SVG 1.1's other root-only names (`version`, `baseProfile`, `zoomAndPan`,\r\n * `contentScriptType`, `contentStyleType`) are left off: they do nothing on\r\n * either element, so listing them would promise more than it delivers.\r\n *\r\n * Judged on the STORED name, which the vocabulary has already resolved\r\n * (`TabIndex` is stored as `tabindex`, `ariaLabel` as `aria-label`). XML names\r\n * are case-sensitive, so `Role` and `dataX` are names of the author's own.\r\n */\r\nconst IMAGE_ATTRIBUTES = new Set([\r\n  'role', 'id', 'class', 'lang', 'tabindex',\r\n  'preserveAspectRatio', 'overflow', 'viewBox', 'width', 'height',\r\n]);\r\n\r\n/** Whether a stored attribute name describes the image (the list above). */\r\nexport const isImageAttribute = (name) =>\r\n  IMAGE_ATTRIBUTES.has(name) || name.startsWith('aria-') || name.startsWith('data-');\r\n\r\n/**\r\n * The link attributes. A bare key with one of these names goes on the `<a>`\r\n * its `href` builds: the element's own at element scope, the one around the\r\n * content group at global scope. Never on a group, where `href` does nothing\r\n * and an `href` the safety check refused would come back as written. Without a\r\n * usable `href` there is no `<a>`, and the whole family is dropped. Behind a\r\n * target prefix they are ordinary attributes, written where the prefix says.\r\n */\r\nexport const ANCHOR_ATTRIBUTE_NAMES = Object.freeze(\r\n  ['href', 'target', 'rel', 'download', 'hreflang', 'type', 'referrerpolicy']\r\n);\r\n\r\n/**\r\n * The writing band's height: every character spans y 0 to 20 in its own\r\n * frame, however much of it the ink fills.\r\n */\r\nexport const BAND_HEIGHT = 20;\r\n\r\n/**\r\n * How far a linked element's clickable area reaches past what it covers when\r\n * no `link-padding` sets it. Ink is drawn on the stroke's centre line, so an\r\n * area that stopped there would leave the outer half of every edge stroke\r\n * unclickable. A word's or a character's area reaches HIT_MARGIN past the band\r\n * and past its base span (less where a linked neighbour is closer, so the two\r\n * links meet); a part's reaches PART_HIT_MARGIN past its ink box on every side.\r\n *\r\n * An element background's box is the same shape with the same defaults, which\r\n * `background-padding` replaces, shared between painted neighbours instead of\r\n * linked ones.\r\n */\r\nexport const HIT_MARGIN = 1;\r\nexport const PART_HIT_MARGIN = 0.5;\r\n\r\n/**\r\n * How far an ink area reaches past the lines it follows, on each side, for a\r\n * background and a link alike, when no `background-padding` or `link-padding`\r\n * sets it: the element's lines drawn again twice this much wider (a 0.5 line\r\n * becomes 1.3), and a filled letter outlined by twice this.\r\n */\r\nexport const INK_AREA_MARGIN = 0.4;\r\n\r\n/** The width the symbol's lines are drawn at when no `stroke-width` is written. */\r\nexport const DEFAULT_STROKE_WIDTH = 0.5;\r\n\r\n/**\r\n * The written options whose whole job is to compute the root's `viewBox`. When\r\n * an author writes the `viewBox` directly, the value these produced is replaced,\r\n * so they are reported as displaced rather than left to look effective.\r\n */\r\nexport const GEOMETRY_OPTION_KEYS = new Set([\r\n  'margin', 'margin-top', 'margin-bottom', 'margin-left', 'margin-right',\r\n  'crop', 'crop-top', 'crop-bottom', 'crop-left', 'crop-right',\r\n  'min-width', 'center',\r\n]);\r\n\r\n/**\r\n * The written options whose values reach one of the six numbers the root\r\n * carries: the four `viewBox` terms and the `width`/`height` pair. A superset\r\n * of `GEOMETRY_OPTION_KEYS`, which answers the narrower question of what a\r\n * hand-written `viewBox` displaces: `svg-height` sizes the root without\r\n * touching the viewBox, and the three spacings widen the composition the\r\n * viewBox is measured from. An overflow report names whichever of these was\r\n * written, so the author is told which values to reduce.\r\n */\r\nexport const SIZE_OPTION_KEYS = new Set([\r\n  ...GEOMETRY_OPTION_KEYS,\r\n  'svg-height',\r\n  'char-space', 'word-space', 'external-glyph-space',\r\n]);\r\n\r\n/**\r\n * Every processed option the geometry is computed from, in the internal\r\n * spelling the options pass leaves behind once the bulk keys are expanded.\r\n * Removing all of them is how an overflow falls back: the consumers' own `??`\r\n * defaults then supply the size, so there is no second mode to write.\r\n *\r\n * The spacings are deliberately absent. They are consumed into the shared\r\n * options and baked into the composition before the geometry can be judged, so\r\n * removing them here would narrow nothing;\r\n * `BlissSVGBuilder.option-value-gate.test.js` pins that limit.\r\n */\r\nexport const COMPUTED_GEOMETRY_INPUTS = [\r\n  'minWidth', 'center',\r\n  'marginTop', 'marginBottom', 'marginLeft', 'marginRight',\r\n  'cropTop', 'cropBottom', 'cropLeft', 'cropRight',\r\n  'cropCompact', 'autoVertical',\r\n  'svgHeight',\r\n];\r\n\r\n/** True for a key written in the `<layer>--<attribute>` form, valid or not. */\r\nexport const isLayerAttributeKey = (key) => key.includes('--');\r\n\r\n/**\r\n * Splits `grid-line--sky--stroke-dasharray` into its target and its attribute,\r\n * at the LAST `--`. The boundary we need is between the class and the attribute,\r\n * and every `--` inside a class name sits to the left of it, so a compound class\r\n * can carry any number of them. Returns null when the target names no class we\r\n * write or the attribute half is empty, so the caller reports rather than emits\r\n * a key nothing can use. The cost is that `data--foo` is unreachable as an\r\n * attribute NAME behind a prefix; that was weighed and accepted.\r\n */\r\nexport const parseLayerAttributeKey = (key) => {\r\n  const at = key.lastIndexOf('--');\r\n  const layer = key.slice(0, at);\r\n  const attribute = key.slice(at + 2);\r\n  if (!LAYER_TARGETS.has(layer) || !attribute) return null;\r\n  return { layer, attribute };\r\n};\r\n\r\n/**\r\n * True for a key whose target is an element background's\r\n * (`ELEMENT_LAYER_TARGETS`), the one kind a word, a character or a part may\r\n * carry. The target is read before the LAST `--`, as `parseLayerAttributeKey`\r\n * reads it, so `element-backgrounds--fill` and `element-background----fill`\r\n * name no such target. An attribute is not required: `element-background--`\r\n * is written where it can act, so it is kept there and its missing name\r\n * reported, as it is after `||`, rather than dropped as misplaced.\r\n */\r\nexport const isElementLayerKey = (key) =>\r\n  isLayerAttributeKey(key) && ELEMENT_LAYER_TARGETS.has(key.slice(0, key.lastIndexOf('--')));\r\n\r\n/**\r\n * Returns false for event handler attribute names (on*) or names containing\r\n * characters outside the safe allowlist to prevent XSS.\r\n */\r\nexport const isSafeAttributeName = (name) =>\r\n  /^[a-zA-Z][a-zA-Z0-9-]*$/.test(name) && !/^on/i.test(name);\r\n\r\n/**\r\n * Escapes HTML special characters to prevent XSS in SVG output.\r\n */\r\nexport const escapeHtml = (str) => String(str)\r\n  .replace(/&/g, '&amp;')\r\n  .replace(/</g, '&lt;')\r\n  .replace(/>/g, '&gt;')\r\n  .replace(/\"/g, '&quot;')\r\n  .replace(/'/g, '&#39;');\r\n\r\n/**\r\n * Converts a camelCase string to kebab-case.\r\n * e.g., strokeWidth → stroke-width, gridSkyColor → grid-sky-color\r\n * Single-word keys (color, grid, margin) pass through unchanged.\r\n */\r\nexport const camelToKebab = (str) => str.replace(/[A-Z]/g, m => '-' + m.toLowerCase());\r\n\r\n/**\r\n * Converts a kebab-case string to camelCase.\r\n * e.g., stroke-width → strokeWidth, grid-sky-color → gridSkyColor\r\n * Single-word keys (color, grid, margin) pass through unchanged.\r\n *\r\n * The inverse of camelToKebab over the curated vocabulary, which is the only\r\n * vocabulary either one is applied to: both directions are lossy on a name with\r\n * digits or consecutive capitals, and the library's own option names have\r\n * neither.\r\n */\r\nconst kebabToCamel = (str) => str.replace(/-(.)/g, (_, letter) => letter.toUpperCase());\r\n\r\n// The long-form kerning options are curated vocabulary too, but they are absent\r\n// from KNOWN_OPTION_KEYS because that set lists what #processOptions dispatches\r\n// on, and kerning is promoted by the parser instead. Their canonical spelling is\r\n// the kebab one a bracket carries, so the API's camelCase form has to translate\r\n// like every other named option. (INTERNAL_OPTIONS lists all four spellings for\r\n// a different reason: keeping them out of the emitted markup.)\r\nconst KERNING_OPTION_SPELLINGS = new Set(['relative-kerning', 'absolute-kerning']);\r\n\r\n// The long-form option spellings of the two kerning markers, mapped to the one\r\n// numeric key the layout reads. Kebab is what a writer puts in a bracket, camel\r\n// is what the API and a definition's `defaultOptions` use; both mean the same\r\n// value, so both resolve here rather than at each consumer. Exported so no site\r\n// re-derives the set.\r\nexport const KERNING_OPTION_KEYS = Object.freeze({\r\n  'relative-kerning': 'relativeKerning',\r\n  relativeKerning: 'relativeKerning',\r\n  'absolute-kerning': 'absoluteKerning',\r\n  absoluteKerning: 'absoluteKerning',\r\n});\r\n\r\n/**\r\n * True when a key belongs to the curated option vocabulary, in either spelling.\r\n *\r\n * Only these keys are translated between camelCase and kebab-case. An attribute\r\n * name is emitted exactly as written, because hyphenating an arbitrary name is a\r\n * guess: it is right for our own vocabulary, where we own both spellings, and\r\n * wrong for every camelCase SVG attribute (preserveAspectRatio, viewBox,\r\n * gradientUnits) and every camelCase data attribute.\r\n */\r\nexport const isNamedOptionKey = (key) => {\r\n  if (KNOWN_OPTION_KEYS.has(key)) return true;\r\n  const kebab = camelToKebab(key);\r\n  return KNOWN_OPTION_KEYS.has(kebab) || KERNING_OPTION_SPELLINGS.has(kebab);\r\n};\r\n\r\n/**\r\n * An ARIA name written the way JavaScript spells things. Matched by pattern\r\n * rather than by list, which is what keeps it from going stale as ARIA grows:\r\n * every state and property is `aria-` followed by ONE lowercase token with no\r\n * internal hyphen, so the remainder is lowercased whole rather than hyphenated\r\n * at its capitals. Hyphenating would invent `aria-value-now`,\r\n * `aria-labelled-by` and `aria-has-popup`, none of which exist.\r\n *\r\n * The capital after `aria` is what makes the pattern safe to apply without a\r\n * list: it is the camelCase boundary, so `arialFont` is not claimed.\r\n */\r\nconst ARIA_PROGRAMMATIC_NAME = /^aria[A-Z]/;\r\n\r\n/**\r\n * The spelling an option key is stored and emitted under: the owner's, when a\r\n * standard owns the name in a fixed spelling, and the key exactly as written\r\n * when nobody does. Casing and hyphenation carry no meaning in a name a\r\n * standard owns, so `view-box`, `viewbox` and `VIEWBOX` all reach `viewBox`.\r\n *\r\n * The library's OWN vocabulary is asked first, and it accepts exactly two\r\n * spellings: the kebab one a bracket carries and the camelCase one JavaScript\r\n * writes. It is asked first so a name we share with a standard stays ours:\r\n * `strokeWidth` means the option that computes a stroke width, not the raw\r\n * attribute of that name, and `color` still means the paint we publish as\r\n * `stroke`. The narrower acceptance is deliberate and is what keeps\r\n * `STROKE-WIDTH` a literal attribute name: a standard owns its names in every\r\n * casing and hyphenation, we own ours in the two we publish.\r\n *\r\n * Three kinds of key are then returned untouched.\r\n *\r\n * A name the library will REFUSE is not a name it renames, which is the reason\r\n * the sixteen event handlers in the vocabulary are inert in both directions\r\n * rather than merely unemitted.\r\n *\r\n * A `<target>--attribute` key means its attribute LITERALLY, which is the one\r\n * way to demand a name the library would otherwise resolve. Skipping the whole\r\n * key also keeps a prefix from being read as part of a name: stripping the\r\n * dashes from `content--script-type` would otherwise land on SVG's\r\n * `contentScriptType`.\r\n *\r\n * A name nobody owns is the author's, and an author's name is never rewritten.\r\n */\r\nexport const canonicalOptionKey = (key) => {\r\n  // Resolution exists to make a written name WORK, so it buys nothing on a name\r\n  // that can never be emitted, and it costs the author the ability to find in\r\n  // their own input the spelling the refusal names.\r\n  if (!isSafeAttributeName(key)) return key;\r\n  if (isLayerAttributeKey(key)) return key;\r\n  if (isNamedOptionKey(key)) return camelToKebab(key);\r\n  if (ARIA_PROGRAMMATIC_NAME.test(key)) return `aria-${key.slice(4).toLowerCase()}`;\r\n  const owner = svgAttributeSpelling(key);\r\n  // A miscased spelling of a name we curate (`STROKE-WIDTH`) reaches here with\r\n  // a curated owner and no curated spelling of its own, and stays literal.\r\n  return owner === undefined || isNamedOptionKey(owner) ? key : owner;\r\n};\r\n\r\n/**\r\n * The spelling an option key is PUBLISHED under, which is the mirror of\r\n * `canonicalOptionKey` rather than a second opinion on it.\r\n *\r\n * Storage is kebab for the library's own vocabulary, because that is the\r\n * spelling a bracket carries and the one the options pass dispatches on.\r\n * Publication is camelCase, because published output is JavaScript's view of a\r\n * composition and camelCase is how JavaScript spells a name. The DSL's view\r\n * keeps the kebab spelling, which is why the two serializers differ on purpose.\r\n *\r\n * Only the library's own vocabulary moves. A name a standard owns is already\r\n * stored under its owner's spelling, and rewriting `stroke-dasharray` or\r\n * `aria-label` into our house style would claim a name we do not own; an\r\n * author's name is never rewritten at all.\r\n *\r\n * `canonicalOptionKey`'s three refusals need no counterpart here, because none\r\n * of the three can reach the curated test: a `<target>--attribute` key keeps its\r\n * `--` through `camelToKebab`, and no curated option contains one; and the names\r\n * the safety gate refuses are event handlers and namespaced names, which the\r\n * curated vocabulary has none of.\r\n *\r\n * Resolving the stored key through `camelToKebab` first is DEFENSIVE and\r\n * changes no answer: for the kebab form to be a curated name at all, every\r\n * capital in the key must already sit at one of that name's hyphens, and a\r\n * hyphen written before a capital doubles into `--`, which no curated name\r\n * carries. It is kept because it states the rule, publish the canonical form of\r\n * this name, rather than resting on `kebabToCamel` happening to be the identity\r\n * on a key that is already camelCase. Storage is not always the kebab spelling:\r\n * a bracket's kerning option is promoted onto the character under the camelCase\r\n * one while the options argument stores the kebab one, and those are one name.\r\n */\r\nexport const programmaticOptionKey = (key) => (\r\n  isNamedOptionKey(key) ? kebabToCamel(camelToKebab(key)) : key\r\n);\r\n\r\n/**\r\n * Removes one option name from a bag, by READING the name the way ingest wrote\r\n * it rather than by converting it. A name the library or a standard owns goes\r\n * under either spelling; a name nobody owns goes under exactly the spelling the\r\n * caller wrote.\r\n *\r\n * Hyphenating every key is what this replaces, and it deleted attributes the\r\n * caller had not named: `dataBlissId` and `data-bliss-id` are two different\r\n * names, both can be live at once, and their coexistence is deliberately silent,\r\n * so the extra deletion was invisible from outside. A `<target>--name` key was\r\n * wrong the same way, since the prefix suspends conversion by design.\r\n *\r\n * The two lookups this repeats are the two a name can be STORED under, so\r\n * between them they are exhaustive and neither needs a guard of its own:\r\n *\r\n * - `canonicalOptionKey` is the spelling ingest stores, which is kebab for the\r\n *   library's vocabulary and the owner's for a name a standard owns.\r\n * - `programmaticOptionKey` is the camelCase spelling, which character scope\r\n *   promotes a kerning option to. That makes kerning the one curated name whose\r\n *   stored key is not the kebab one, and the kebab spelling used to miss it.\r\n *\r\n * On a name nobody owns both lookups are the identity, so the pair collapses to\r\n * the one key the caller named, which is the whole point.\r\n */\r\nexport const deleteOptionByName = (bag, key) => {\r\n  delete bag[canonicalOptionKey(key)];\r\n  delete bag[programmaticOptionKey(key)];\r\n};\r\n\r\n/**\r\n * Removes one option name from an element: from its options bag, read as\r\n * `deleteOptionByName` reads it, and for an axis from the node's promoted\r\n * `x`/`y` field too. The one removal both `removeOptions` methods make, the\r\n * element's and the builder's, so the two cannot disagree about a position.\r\n *\r\n * A position is ONE value with two spellings, the `[x=N]` option and a part's\r\n * `CODE:x,y` coordinate, and which one entered it is not observable afterwards.\r\n * Both land on the promoted numeric field, and that field is what the render\r\n * and `toJSON()` read, so it is the thing that has to go; an option key beside\r\n * it goes with the ordinary deletion.\r\n *\r\n * The name is resolved before the axis test so `X` and `x` behave alike, and\r\n * the test is what keeps this off every other field the node carries: without\r\n * it, removing `codeName` would delete the element's own identity.\r\n */\r\nexport const removeElementOption = (node, key) => {\r\n  const resolved = canonicalOptionKey(key);\r\n  if (resolved === 'x' || resolved === 'y') delete node[resolved];\r\n  if (node.options) deleteOptionByName(node.options, key);\r\n};\r\n\r\n/**\r\n * Watches one options bag being filled and reports when two spellings of one\r\n * name land on the same key. Resolution is what makes the collision invisible:\r\n * before it, both spellings survived side by side and the reader could see\r\n * them; after it, one value silently displaces the other.\r\n *\r\n * The LAST value written wins, so the displaced one is the earlier. That is\r\n * the only rule available once spelling has been declared meaningless, and it\r\n * is the one object spread already implies: `{...defaults, marginTop: 3}` must\r\n * let the explicit override beat a `margin-top` default, whichever way each was\r\n * spelled.\r\n *\r\n * Two writes of the SAME spelling are not this: a plain duplicate is visible in\r\n * the source and has always taken the last value in silence.\r\n *\r\n * @param {(warning: object) => void} warn - where to send the report\r\n * @returns {(writtenKey: string, storedKey: string, value: unknown) => void}\r\n */\r\nexport const optionSpellingWatcher = (warn) => {\r\n  const written = new Map();\r\n  return (writtenKey, storedKey, value) => {\r\n    const displaced = written.get(storedKey);\r\n    written.set(storedKey, { key: writtenKey, value });\r\n    if (displaced === undefined || displaced.key === writtenKey) return;\r\n    // A bare key is stored as `true`, so name it the way it was written.\r\n    const source = displaced.value === true ? displaced.key : `${displaced.key}=${textOfValue(displaced.value)}`;\r\n    warn({\r\n      code: WARNING_CODES.MULTIPLE_OPTION_SPELLINGS,\r\n      message: `An option takes one value however it is spelled, so \"${source}\" is ignored. \"${displaced.key}\" and \"${writtenKey}\" are two spellings of one name, and the last value written wins.`,\r\n      source,\r\n    });\r\n  };\r\n};\r\n\r\n/**\r\n * The two internal option names with no curated kebab spelling of their own, and\r\n * the whole option that reaches the same behaviour. Both worked as input on\r\n * every route until the options bags were separated, by the same accident as\r\n * every other internal name: the key fell through into the bag under exactly\r\n * the name the consumer reads. Nothing documented them, and no route reads them\r\n * as input now; the table exists so the report can name the option that works.\r\n *\r\n * `camelToKebab` gives `auto-vertical` and `crop-compact`, neither of which is\r\n * an option, so `canonicalOptionKey` cannot see these two and any rule derived\r\n * from the curated vocabulary would name a key that does not exist. A lookup,\r\n * because there is no rule that derives `crop=compact` from `cropCompact`.\r\n *\r\n * That is also why these two are the last spellings anything still reports:\r\n * each names a whole option rather than a name, so resolving names on ingest\r\n * left them with nothing to resolve.\r\n *\r\n * Not a general \"did you mean\" mechanism, which is ruled out: these are names\r\n * the library itself uses, so nothing is being guessed about what was meant.\r\n */\r\nexport const INTERNAL_ONLY_SPELLINGS = new Map([\r\n  ['autoVertical', 'crop=auto-vertical'],\r\n  ['cropCompact', 'crop=compact'],\r\n]);\r\n\r\n/**\r\n * Serializes one option VALUE for DSL emission (`[key=value]` brackets).\r\n * A value carrying characters the DSL grammar would otherwise claim (`;`\r\n * splits options and parts, `]` ends the bracket, `[` opens one, `|` splits\r\n * groups and the global prefix, quotes confuse the value grammar) or\r\n * leading/trailing whitespace (trimmed on parse) is wrapped in double\r\n * quotes with inner `\"` escaped as `\\\"` — the exact spelling the option\r\n * parser strips and unescapes on the way back in. Everything else emits\r\n * byte-unchanged. Lives here because both the builder (toString) and the\r\n * parser (`;;`-overlay rebuild) emit option values, and the builder already\r\n * imports the parser. Known residue: the parser unescapes only `\\\"`, so a\r\n * backslash before a quote in the quoted form can end the span early, and a\r\n * value that needs quotes and ends in `\\` (`a;b\\`) or holds `\\\"` before a\r\n * `;` can fail to read back.\r\n */\r\nexport const serializeOptionValue = (value) => {\r\n  // Guarded, as a defence for a value `String()` throws on, though nothing\r\n  // hands it one: the admission stage lets no value with no text form in.\r\n  const str = textOfValue(value);\r\n  return /[;\\[\\]|\"']/.test(str) || /^\\s|\\s$/.test(str)\r\n    ? `\"${str.replace(/\"/g, '\\\\\"')}\"`\r\n    : str;\r\n};\r\n\r\n/**\r\n * One quoted span inside an option bracket (\"...\" or '...', with \\-escapes), a\r\n * regex SOURCE fragment with no group. Both scans of a bracket step over it\r\n * whole, the one that finds where the bracket ends and the one that finds where\r\n * each of its entries ends, so a quoted `]` or `;` ends neither.\r\n */\r\nexport const QUOTED_SPAN = String.raw`\"(?:[^\"\\\\]|\\\\.)*\"|'(?:[^'\\\\]|\\\\.)*'`;\r\n\r\n/**\r\n * Bracket-content grammar (a regex SOURCE fragment) shared by every site\r\n * that tokenizes or (re-)extracts one `[option]` bracket: a quoted span\r\n * (\"...\" or '...', with \\-escapes) may carry `]` `;` `|` `[` — mirroring\r\n * the option parser's value grammar so tokenization and value parsing agree\r\n * on where a bracket ends (a quoted `]` used to truncate the bracket).\r\n * Each step commits through an atomic lookahead ((?=(?<atom>...))\\k<atom>):\r\n * ECMAScript lookaheads discard their interior choice points once matched,\r\n * so an UNCLOSED bracket fails in LINEAR time — the plain alternation form\r\n * backtracks exponentially there (measured ~2s at 40 stray quotes, hours at\r\n * 60). Trade-off: an unclosed bracket whose only `]`s sit inside complete\r\n * quoted spans no longer half-tokenizes; it falls through whole to the\r\n * malformed/unknown warn paths (visible, not silently truncated).\r\n * Embed at most once per composed regex (the group is named); the counterpart\r\n * of [[serializeOptionValue]] above.\r\n */\r\nexport const OPTION_BRACKET_CONTENT = String.raw`(?:(?=(?<atom>` + QUOTED_SPAN + String.raw`|[^\\]]))\\k<atom>)*`;\r\n\r\n/**\r\n * One character-scope option bracket (no `>` after it) at the start of a\r\n * definition's code string: group 1 the bracket, group 2 the grammar's\r\n * internal atom, group 3 the text behind it. A code string is raw text, so the\r\n * bracket is read with the quote-aware grammar above: a quoted `]` does not end\r\n * it, and a part bracket holding one (`[data-x=\"a]b\"]>C8`) is not mistaken for\r\n * a character bracket followed by junk.\r\n */\r\nconst CHARACTER_BRACKET_PATTERN = new RegExp(String.raw`^(\\[` + OPTION_BRACKET_CONTENT + String.raw`\\])(?!>)(.*)`);\r\n\r\n/**\r\n * A definition's code string without the `>` leading it with no bracket before\r\n * it: an option region carrying nothing, which the DSL consumes before it reads\r\n * anything else (`>B291` is `B291`, `>[color=red]B291` is `[color=red]B291`).\r\n * Exactly one is consumed, as there.\r\n *\r\n * @param {string} codeString\r\n * @returns {string}\r\n */\r\nexport const withoutEmptyRegion = (codeString) => codeString.replace(/^>/, '');\r\n\r\n/**\r\n * A definition's code string split into the character brackets leading it, in\r\n * order, and the text behind them, an empty option region before them read as\r\n * nothing (see withoutEmptyRegion). Shared by every reader of a definition's\r\n * code string as written: the parser's reading of a definition's own options\r\n * and of the code its first character is made of, the alias resolution that\r\n * reads through them, and the saves' reading of a rename, so none of them can\r\n * disagree about where such a bracket ends or what the code behind it is.\r\n *\r\n * @param {string} codeString\r\n * @returns {{ brackets: string[], body: string }}\r\n */\r\nexport const peelCharacterBrackets = (codeString) => {\r\n  const brackets = [];\r\n  let body = withoutEmptyRegion(codeString);\r\n  let match;\r\n  while ((match = body.match(CHARACTER_BRACKET_PATTERN)) !== null) {\r\n    brackets.push(match[1]);\r\n    body = match[3];\r\n  }\r\n  return { brackets, body };\r\n};\r\n\r\n/**\r\n * Generates a random 8-character key for element identity.\r\n * ~2.8 trillion combinations — negligible collision probability.\r\n */\r\nexport function generateKey() {\r\n  const chars = 'abcdefghijklmnopqrstuvwxyz0123456789';\r\n  let key = '';\r\n  for (let i = 0; i < 8; i++) key += chars[Math.floor(Math.random() * 36)];\r\n  return key;\r\n}\r\n\r\n/**\r\n * Builder-canvas option keys (kebab-case, as written in the DSL) that take\r\n * effect ONLY in the global `[opts]||` bracket. Written at group `[opts]|`,\r\n * character `[opts]`, or part `[opts]>` level they are inert, so the parser\r\n * warns MISPLACED_GLOBAL_OPTION and drops the key.\r\n *\r\n * Deliberately curated, NOT INTERNAL_OPTIONS verbatim:\r\n * - `text` is excluded: it is an unimplemented stub at EVERY level including\r\n *   global (the deferred `{text}` overlay), so it is not \"misplaced\" anywhere.\r\n * - The dot-sizing family (dot-width/dot-extra-width/sdot-*) is excluded: it\r\n *   genuinely applies per element via option inheritance.\r\n * - x/y/key and kerning are excluded: positioning and identity, handled by\r\n *   their own extraction logic.\r\n * - `background` is excluded, and so are the two area options\r\n *   (`background-area`, `link-area`) and the two paddings\r\n *   (`background-padding`, `link-padding`): each acts at every scope, and\r\n *   below the global bracket a background paints its own word, character or\r\n *   part. Its three zones stay: they are bands of the writing grid.\r\n */\r\nexport const GLOBAL_ONLY_OPTION_KEYS = new Set([\r\n  'margin', 'margin-top', 'margin-bottom', 'margin-left', 'margin-right',\r\n  'crop', 'crop-top', 'crop-bottom', 'crop-left', 'crop-right',\r\n  'grid', 'grid-color', 'grid-major-color', 'grid-medium-color',\r\n  'grid-minor-color', 'grid-sky-color', 'grid-earth-color',\r\n  'grid-stroke-width', 'grid-major-stroke-width', 'grid-medium-stroke-width',\r\n  'grid-minor-stroke-width', 'grid-sky-stroke-width', 'grid-earth-stroke-width',\r\n  'grid-shift',\r\n  'background-top', 'background-mid', 'background-bottom',\r\n  'center', 'min-width', 'char-space', 'word-space', 'external-glyph-space',\r\n  'svg-title', 'svg-desc', 'svg-height', 'error-placeholder'\r\n]);\r\n\r\n/**\r\n * Keys the emitters must never write as SVG attributes even though they reach\r\n * them in the author's bag.\r\n *\r\n * It used to hide the library's own computed values as well, which is no longer\r\n * a job anybody has: the options pass returns those in a separate bag, and the\r\n * only ones that reach the markup at all are the two the publication map\r\n * renames. What is left is position and kerning, which reach the emitters\r\n * through the author's bag whether the author wrote them in a bracket or the\r\n * parser promoted them there. Both spellings of each kerning key, because a\r\n * bracket carries the kebab one and without it an unrecognized\r\n * `relative-kerning` fell through to the attribute pass-through and landed in\r\n * the shipped SVG as `<g relative-kerning=\"3\">`, which is not an attribute of\r\n * anything.\r\n */\r\nexport const INTERNAL_OPTIONS = new Set([\r\n  'x',\r\n  'y',\r\n  'relativeKerning',\r\n  'absoluteKerning',\r\n  'relative-kerning',\r\n  'absolute-kerning'\r\n]);\r\n\r\n/**\r\n * The only renaming on the way OUT: the two values the library computes that\r\n * also reach the markup, and the attribute names they reach it under.\r\n * Everything else in the computed bag is consumed by the emitters, and\r\n * everything in the author's bag is emitted exactly as the author typed it.\r\n * (`#toRaw` still renames on the way IN, translating the programmatic camelCase\r\n * spelling to the kebab one the options pass dispatches on; that is the other\r\n * direction and a different question.)\r\n *\r\n * It replaces a blanket `isNamedOptionKey ? camelToKebab : identity`, which was\r\n * the mechanism that let an author's raw key be renamed on its way out. Shared\r\n * by the root and the element scopes, which used to carry separate copies of the\r\n * same table and could therefore disagree.\r\n *\r\n * **Apply it only while building the published walk, never as a lookup over the\r\n * keys being emitted.** `strokeWidth` is a key here AND a spelling a bracket can\r\n * carry, and a bracket's `strokeWidth` is an author's key, so a shared lookup\r\n * renames the author's own key on its way out and leaves that one spelling\r\n * half-working: setting the attribute while computing nothing.\r\n *\r\n * A Map, not an object literal, so an inherited name (constructor, toString)\r\n * can never answer for a real key.\r\n */\r\nexport const PUBLICATION_MAP = new Map([\r\n  ['strokeWidth', 'stroke-width'],\r\n  ['color', 'stroke'],\r\n]);\r\n\r\n/**\r\n * Option keys the transient channel refuses, in every spelling.\r\n *\r\n * Each of these is consumed while the composition is being built, before the\r\n * render copy is taken: position is promoted onto the element itself, kerning\r\n * is resolved and rewritten, and `key` becomes element identity. A transient\r\n * spelling would therefore never reach the picture, so it is reported and\r\n * dropped rather than left to look as though it worked.\r\n *\r\n * All four kerning spellings are refused together on purpose. The surviving\r\n * camelCase numeric key IS read after the render copy, so accepting that one\r\n * while refusing its kebab twin would be a subtler trap than refusing both.\r\n */\r\nexport const TRANSIENT_REFUSED_OPTION_KEYS = new Set([\r\n  'x',\r\n  'y',\r\n  'key',\r\n  'relativeKerning',\r\n  'absoluteKerning',\r\n  'relative-kerning',\r\n  'absolute-kerning'\r\n]);\r\n\r\n/**\r\n * The refusal of keys the transient channel cannot carry, in words shared by\r\n * the two places that refuse them: the admission stage, one key per report,\r\n * for a value with no text form, and the transient check, the keys of one\r\n * bag joined, for text.\r\n */\r\nexport const transientRefusalMessage = (keys) =>\r\n  `\"${keys.join('\", \"')}\" cannot be a transient option: the value is read while the composition is built, not while it is drawn, so it would never reach the picture. Set it with setOptions() instead.`;\r\n\r\n/**\r\n * The complete warning-code vocabulary. Single source of truth: every warning\r\n * emitted on `builder.warnings` references `WARNING_CODES.X` rather than an inline\r\n * literal, so the set is typo-proof and discoverable in one place.\r\n *\r\n * Verb convention:\r\n *   MALFORMED_   input did not parse in the required shape (a FORMAT failure)\r\n *   OUT_OF_RANGE_ a well-formed number outside what the attribute can carry (a\r\n *                VALUE failure; INVALID_ stays reserved for a value that is not\r\n *                a number at all)\r\n *   MISPLACED_   a well-formed token in the wrong position\r\n *   MULTIPLE_    more than one where one is allowed (resolved by a stated rule:\r\n *                the first for repeated option brackets and head markers, the\r\n *                higher-precedence spelling for a value written two ways)\r\n *   DUPLICATE_   the same identifier twice\r\n *   UNKNOWN_     an unrecognized reference\r\n *   DROPPED_     something discarded (first-wins / merge)\r\n *   UNSUPPORTED_ valid, but not implemented yet\r\n *   NOOP_        a mutation call had no effect\r\n *   UNSAFE_      refused by a safety gate rather than by the grammar\r\n *   RESERVED_    refused because the NAME is the library's own\r\n *   …_AS_PART    an illegal operand in a ;-part slot\r\n *\r\n * Structural attachment points use group/glyph/part (matches `toJSON()`); the\r\n * linguistic indicator concepts use word/character (a word-indicator sets a\r\n * word's part-of-speech; a space-group has none).\r\n */\r\nexport const WARNING_CODES = Object.freeze({\r\n  // malformed-syntax: input did not parse in the required shape\r\n  MALFORMED_GLOBAL_OPTIONS: 'MALFORMED_GLOBAL_OPTIONS',\r\n  MALFORMED_GROUP_OPTIONS: 'MALFORMED_GROUP_OPTIONS',\r\n  MALFORMED_WORD_INDICATOR: 'MALFORMED_WORD_INDICATOR',\r\n  MALFORMED_COORDINATES: 'MALFORMED_COORDINATES',\r\n  MALFORMED_KERNING_VALUE: 'MALFORMED_KERNING_VALUE',\r\n  // a composition object's element in the wrong shape: an entry of a word,\r\n  // character or part list that is not an element object, or such a list that\r\n  // is not a list. The entry is left out (a part takes its whole character),\r\n  // or the unit holding the list; the source is its path in the object.\r\n  MALFORMED_ELEMENT: 'MALFORMED_ELEMENT',\r\n  // a numeric option given something that is not a number at all. INVALID_ is\r\n  // the reserved verb for exactly this: OUT_OF_RANGE_ answers for a well-formed\r\n  // number the attribute cannot carry, and the two are different repairs.\r\n  INVALID_OPTION_VALUE: 'INVALID_OPTION_VALUE',\r\n  // a numeric option given a well-formed number nothing can use: non-finite at\r\n  // any scope, or negative where the quantity is a length. Refused rather than\r\n  // clamped, because a clamp substitutes a value the author did not write and\r\n  // says nothing about it.\r\n  OUT_OF_RANGE_OPTION_VALUE: 'OUT_OF_RANGE_OPTION_VALUE',\r\n  // every written value was accepted and the size they COMPUTE is what nothing\r\n  // can carry: two terms sum past the largest double, or the six-times\r\n  // presentation multiplier runs off the end of it. Separate from\r\n  // OUT_OF_RANGE_OPTION_VALUE because no single value is out of range here;\r\n  // MULTIPLE_GEOMETRY_VALUES is the precedent for a code no one key owns.\r\n  OUT_OF_RANGE_COMPUTED_GEOMETRY: 'OUT_OF_RANGE_COMPUTED_GEOMETRY',\r\n  // misplaced: a well-formed token in the wrong position\r\n  MISPLACED_HEAD_MARKER: 'MISPLACED_HEAD_MARKER',\r\n  MISPLACED_CHARACTER_INDICATOR: 'MISPLACED_CHARACTER_INDICATOR',\r\n  // a well-formed word-level indicator (`;;`) on a target that cannot carry\r\n  // one: a space word (the overlay is dropped), or a word whose head glyph\r\n  // holds a part after one of its indicators (the overlay is kept and saved,\r\n  // but not applied)\r\n  MISPLACED_WORD_INDICATOR: 'MISPLACED_WORD_INDICATOR',\r\n  MISPLACED_PART_OPTION: 'MISPLACED_PART_OPTION',\r\n  MISPLACED_CHARACTER_OPTION: 'MISPLACED_CHARACTER_OPTION',\r\n  MISPLACED_GROUP_OPTION: 'MISPLACED_GROUP_OPTION',\r\n  // a global-only (builder-canvas) option KEY inside a group/character/part\r\n  // bracket: the key is well-formed but its scope is the whole SVG\r\n  MISPLACED_GLOBAL_OPTION: 'MISPLACED_GLOBAL_OPTION',\r\n  // the mirror image: a kerning option KEY outside character scope. Kerning is\r\n  // the gap before a character, so the key means nothing at part, word or\r\n  // global scope; it is dropped there rather than passing through to the SVG as\r\n  // an attribute, which is what an unrecognized key deliberately does.\r\n  MISPLACED_KERNING_OPTION: 'MISPLACED_KERNING_OPTION',\r\n  // the same rule for a `<layer>--<attribute>` key below global scope: the\r\n  // layers it can name are the whole SVG's, so there is nothing for the key to\r\n  // target inside a group, character or part. Dropped there rather than passing\r\n  // through to the markup as a `<g layer--attr=\"...\">` nothing can use.\r\n  MISPLACED_LAYER_OPTION: 'MISPLACED_LAYER_OPTION',\r\n  // an attribute that reached a container whose children each carry the same\r\n  // name (for the root, a paint name the content group carries), so the child's\r\n  // value is the one that takes effect and the written one cannot show. Two\r\n  // mechanisms, one remedy: an inherited paint value is beaten by the child's\r\n  // own, while geometry a group cannot carry is inert there. It is still\r\n  // emitted where it was asked for; the report names the target that works.\r\n  // Silent when the container is not drawn, since there is then no landing\r\n  // site to describe.\r\n  MISPLACED_CONTAINER_ATTRIBUTE: 'MISPLACED_CONTAINER_ATTRIBUTE',\r\n  // a coordinate (`:x,y`) or an option (`[opts]` at any scope) on a TSP/QSP\r\n  // space: a space is a pure word-separator with no ink to position or style,\r\n  // so the decoration is dropped and the space keeps its identity (ZSA is\r\n  // content and is exempt; use it for a positionable/styleable blank)\r\n  MISPLACED_SPACE_DECORATION: 'MISPLACED_SPACE_DECORATION',\r\n  // an indicator part that precedes default-positioned content in a glyph's\r\n  // part list: an indicator is only meaningful in the trailing indicator run\r\n  // (BASE;INDICATOR), so the misplaced indicator is dropped from render and\r\n  // serialization while the character still renders. Content the author\r\n  // explicitly positioned does not convict a preceding indicator (a compound\r\n  // indicator's decomposed anatomy must round-trip); that asks whether an axis\r\n  // was WRITTEN, not whether its value is non-zero, so `:0,0` carries the\r\n  // exemption and `:,`, which writes no axis, does not. Neither does an\r\n  // unclassifiable part (unknown code, error node).\r\n  MISPLACED_INDICATOR_PART: 'MISPLACED_INDICATOR_PART',\r\n  // a curated option written in the spelling only the JavaScript entry points\r\n  // read (`[marginTop=3]`, or a hand-authored `{ marginTop: 3 }` options bag).\r\n  // The right key in the wrong channel: those entry points translate camelCase\r\n  // to the curated kebab spelling on the way in, and an option bracket does not,\r\n  // so the key lands in the author's bag, is emitted as written and sets\r\n  // nothing. Emitted rather than dropped, because it is a usable attribute name\r\n  // and the pass-through rule is that such a name reaches the markup as typed.\r\n  MISPLACED_OPTION_SPELLING: 'MISPLACED_OPTION_SPELLING',\r\n  // a space code (TSP/QSP) in a `;`-part slot: a space is a word-level\r\n  // separator, never a character part, so the space part is dropped from\r\n  // render and serialization while the character still renders. A single-part\r\n  // space glyph IS the space itself and is untouched; ZSA is content (a\r\n  // positionable inkless shape) and is exempt.\r\n  MISPLACED_SPACE: 'MISPLACED_SPACE',\r\n  // too-many / duplicate\r\n  MULTIPLE_HEAD_MARKERS: 'MULTIPLE_HEAD_MARKERS',\r\n  MULTIPLE_OPTION_BRACKETS: 'MULTIPLE_OPTION_BRACKETS',\r\n  // one option written twice under two spellings in one bag\r\n  // (`[marginTop=3;margin-top=4]`, or `{ viewBox: …, 'view-box': … }`). Both\r\n  // spellings name one option, so the second write displaces the first and the\r\n  // last value written wins; the displaced value is named. Two writes of the\r\n  // SAME spelling are a plain duplicate, visible in the source, and stay\r\n  // silent. It reports more-than-one rather than value-lost, so two equal\r\n  // values still raise it.\r\n  MULTIPLE_OPTION_SPELLINGS: 'MULTIPLE_OPTION_SPELLINGS',\r\n  // one part positioned twice: an `[x=N;y=M]>` option and the `:x,y` suffix on\r\n  // the same part are two spellings of one value, so the option wins and the\r\n  // coordinate it overrides is reported. A glyph-level `[x=N]` is a different\r\n  // level (leading blank on the glyph) and composes with a part coordinate\r\n  // instead of competing with it, so it never raises this.\r\n  MULTIPLE_POSITION_VALUES: 'MULTIPLE_POSITION_VALUES',\r\n  // one character kerned twice: the `RK:`/`AK:` markers and the long-form\r\n  // `[relative-kerning=N]` / `[absolute-kerning=N]` options are spellings of\r\n  // one value, so an option beats a marker, the last one written wins, and\r\n  // every displaced value is named.\r\n  MULTIPLE_KERNING_VALUES: 'MULTIPLE_KERNING_VALUES',\r\n  // one viewBox written two ways: a global `viewBox` attribute states the value\r\n  // that margin/crop/min-width/center exist to compute, so the written value\r\n  // wins and the options it displaced are named. Writing either one alone is\r\n  // not a conflict and stays silent.\r\n  MULTIPLE_GEOMETRY_VALUES: 'MULTIPLE_GEOMETRY_VALUES',\r\n  // one attribute written twice for one element: a bare global key and the\r\n  // `root--` or `content--` spelling of the same attribute, whichever names the\r\n  // element the bare key lands on, or a curated option and a raw key that\r\n  // reach the same attribute on the same element. The key that NAMES its\r\n  // target wins, because it states a destination where the other has to be\r\n  // resolved to one, and the displaced key is named. It reports more-than-one\r\n  // rather than value-lost, so two equal values still raise it. Silent when the\r\n  // layer that would carry them is switched off, matching every other statement\r\n  // about an absent layer, and silent for a single element the render does not\r\n  // paint where that is settled before the render (an undrawn background zone).\r\n  MULTIPLE_ATTRIBUTE_VALUES: 'MULTIPLE_ATTRIBUTE_VALUES',\r\n  DUPLICATE_KEY: 'DUPLICATE_KEY',\r\n  // unrecognized reference\r\n  UNKNOWN_CODE: 'UNKNOWN_CODE',\r\n  // a global key in `<target>--<attribute>` form that does not resolve to a\r\n  // target and an attribute: a target we do not KNOW (`foo--x`), an empty target\r\n  // half (`--x`), or an empty attribute half (`content--`). The test is\r\n  // LAYER_TARGETS membership and not whether the element is currently drawn, so\r\n  // `grid--opacity` with the grid off is silent, and so is a sub-element a crop\r\n  // removed, matching the named grid options. Never emitted, but KEPT in the\r\n  // options bag so it round-trips, on\r\n  // the UNKNOWN_ family's own logic: the reference may become valid later,\r\n  // exactly as UNKNOWN_CODE keeps a code you might define() afterwards.\r\n  UNKNOWN_LAYER: 'UNKNOWN_LAYER',\r\n  // discarded\r\n  DROPPED_WORD_INDICATOR: 'DROPPED_WORD_INDICATOR',\r\n  // unsupported feature\r\n  UNSUPPORTED_TEXT_BLOCKS: 'UNSUPPORTED_TEXT_BLOCKS',\r\n  // no-op mutation\r\n  NOOP_INDICATOR_MUTATION: 'NOOP_INDICATOR_MUTATION',\r\n  // an attribute name refused by the safety gate: an `on*` event handler, or\r\n  // characters outside the legal name set. Such a name is skipped at render\r\n  // wherever it appears, so nothing can execute; the warning closes the\r\n  // VISIBILITY gap, telling the author their key will never be emitted.\r\n  UNSAFE_ATTRIBUTE_NAME: 'UNSAFE_ATTRIBUTE_NAME',\r\n  // an attribute whose name belongs to the library rather than to the author.\r\n  // The written value is dropped and the library's own is kept, because\r\n  // overriding it would break the file format or forge the library's\r\n  // provenance stamp rather than change the picture. A new verb: refused\r\n  // because the NAME is ours, not because the value is unsafe or the position\r\n  // is wrong. Two sets, guarded at different reaches: a name that declares the\r\n  // document (DOCUMENT_DEFINING_ATTRIBUTES) is refused at every layer, since it\r\n  // breaks the file wherever it lands; a name the library owns on the root\r\n  // (LIBRARY_OWNED_ROOT_ATTRIBUTES) is refused there only.\r\n  RESERVED_ATTRIBUTE_NAME: 'RESERVED_ATTRIBUTE_NAME',\r\n  // an option key that cannot travel in the transient channel because the\r\n  // library consumes it while building the composition rather than while\r\n  // drawing it (position, kerning, the runtime key). A transient spelling\r\n  // would be inert, so it is reported and dropped instead of silently ignored.\r\n  MISPLACED_TRANSIENT_OPTION: 'MISPLACED_TRANSIENT_OPTION',\r\n  // illegal operand in a ;-part slot (also used as an internal part.errorCode)\r\n  COMPOSITE_AS_PART: 'COMPOSITE_AS_PART',\r\n  WORD_AS_PART: 'WORD_AS_PART',\r\n  // illegal operand in a ;; word-indicator slot: a recognized non-indicator\r\n  // (a real base) supplied where a word-level indicator is required\r\n  NON_INDICATOR_AS_WORD_INDICATOR: 'NON_INDICATOR_AS_WORD_INDICATOR',\r\n  // same rule one level down: a recognized non-indicator supplied to the\r\n  // glyph-level applyIndicators() slot (the API's character-indicator channel)\r\n  NON_INDICATOR_AS_CHARACTER_INDICATOR: 'NON_INDICATOR_AS_CHARACTER_INDICATOR',\r\n});\r\n\r\n/**\r\n * Every numeric option, by the spelling an author writes it in, and what its\r\n * value may be.\r\n *\r\n * `kind` decides one thing only, the negative rule. A LENGTH is a distance and\r\n * nothing can draw a negative one, so it is refused. An OFFSET may be negative\r\n * and means something there: a negative margin or crop pushes the viewBox out\r\n * instead of pulling it in, and the viewBox floors its dimensions at 0 anyway.\r\n *\r\n * `noun` is how the warning names the thing that kept its old value, so the\r\n * message describes an outcome the author can see rather than an internal key.\r\n *\r\n * `fallback` records where the value comes from when one is refused. A refused\r\n * option falls back exactly as if it had never been written, so the consumer's\r\n * own `?? default` supplies it; recording it here means a reader does not have\r\n * to find the consumer to know what a refusal looks like.\r\n *\r\n * There is no upper bound in this table and there must not be one. Seven of\r\n * these keys were clamped until this change, which rewrote a written value in\r\n * silence: `[char-space=50]` rendered byte-identical to `[char-space=10]` with\r\n * an empty warnings array. Honour the value or refuse it; never substitute one\r\n * quietly.\r\n *\r\n * These 29 are exactly the numeric members of KNOWN_OPTION_KEYS. The two\r\n * numeric options NOT here are `relative-kerning` and `absolute-kerning`, which\r\n * are absent from that set as well (the parser promotes them rather than\r\n * dispatching on them) and carry their own gate, MALFORMED_KERNING_VALUE. They\r\n * are gated, just not from here.\r\n */\r\nexport const NUMERIC_OPTION_POLICY = new Map([\r\n  ['stroke-width',             { kind: 'length', noun: 'stroke',   fallback: '0.5 at the root; below it, whatever is inherited' }],\r\n  ['dot-extra-width',          { kind: 'length', noun: 'dot',      fallback: 'the dot-sizing walk in bliss-element.js' }],\r\n  ['sdot-extra-width',         { kind: 'length', noun: 'dot',      fallback: 'the dot-sizing walk in bliss-element.js' }],\r\n  ['dot-width',                { kind: 'length', noun: 'dot',      fallback: 'the dot-sizing walk in bliss-element.js' }],\r\n  ['sdot-width',               { kind: 'length', noun: 'dot',      fallback: 'the dot-sizing walk in bliss-element.js' }],\r\n  ['char-space',               { kind: 'length', noun: 'spacing',  fallback: '2, in #sharedOptions' }],\r\n  ['word-space',               { kind: 'length', noun: 'spacing',  fallback: '8, in #sharedOptions' }],\r\n  ['external-glyph-space',     { kind: 'length', noun: 'spacing',  fallback: '0.8, in #sharedOptions' }],\r\n  ['margin',                   { kind: 'offset', noun: 'margin',   fallback: '0.75, in #svgCode' }],\r\n  ['margin-top',               { kind: 'offset', noun: 'margin',   fallback: '0.75, in #svgCode' }],\r\n  ['margin-bottom',            { kind: 'offset', noun: 'margin',   fallback: '0.75, in #svgCode' }],\r\n  ['margin-left',              { kind: 'offset', noun: 'margin',   fallback: '0.75, in #svgCode' }],\r\n  ['margin-right',             { kind: 'offset', noun: 'margin',   fallback: '0.75, in #svgCode' }],\r\n  ['min-width',                { kind: 'length', noun: 'width',    fallback: '0, in #svgCode' }],\r\n  ['crop',                     { kind: 'offset', noun: 'crop',     fallback: '0, in #svgCode' }],\r\n  ['crop-top',                 { kind: 'offset', noun: 'crop',     fallback: '0, in #svgCode' }],\r\n  ['crop-bottom',              { kind: 'offset', noun: 'crop',     fallback: '0, in #svgCode' }],\r\n  ['crop-left',                { kind: 'offset', noun: 'crop',     fallback: '0, in #svgCode' }],\r\n  ['crop-right',               { kind: 'offset', noun: 'crop',     fallback: '0, in #svgCode' }],\r\n  ['grid-stroke-width',        { kind: 'length', noun: 'grid line width', fallback: '0.166, in #processOptions' }],\r\n  ['grid-major-stroke-width',  { kind: 'length', noun: 'grid line width', fallback: '0.166, in #processOptions' }],\r\n  ['grid-medium-stroke-width', { kind: 'length', noun: 'grid line width', fallback: '0.166, in #processOptions' }],\r\n  ['grid-minor-stroke-width',  { kind: 'length', noun: 'grid line width', fallback: '0.166, in #processOptions' }],\r\n  ['grid-sky-stroke-width',    { kind: 'length', noun: 'grid line width', fallback: '0.166, in #processOptions' }],\r\n  ['grid-earth-stroke-width',  { kind: 'length', noun: 'grid line width', fallback: '0.166, in #processOptions' }],\r\n  ['grid-shift',               { kind: 'offset', noun: 'grid position', fallback: '0, in #pictureMarkup' }],\r\n  ['background-padding',       { kind: 'length', noun: 'padding',  fallback: 'whatever is inherited, else the area default in bliss-element.js' }],\r\n  ['link-padding',             { kind: 'length', noun: 'padding',  fallback: 'whatever is inherited, else the area default in bliss-element.js' }],\r\n  ['svg-height',              { kind: 'length', noun: 'height',   fallback: 'six times the viewBox height, in #svgCode' }],\r\n]);\r\n\r\n/**\r\n * Judges one written value for a numeric option. Two arms and no third: the\r\n * value is either refused, in which case the option falls back exactly as if it\r\n * had never been written, or honoured exactly as written.\r\n *\r\n * The order of the checks is observable, so it is fixed here rather than left to\r\n * each caller: something that is not a number at all is INVALID, a well-formed\r\n * number the SVG format cannot carry is OUT_OF_RANGE, and the negative rule runs\r\n * last and only for a length. A bare key (`[margin]`) and an empty value\r\n * (`[margin=]`) are refusals too, because `Number(true)` is 1 and `Number('')`\r\n * is 0 and honouring either would have the library invent a value nobody typed.\r\n *\r\n * Returns null when the value is honoured, so the caller assigns it; otherwise\r\n * the warning to report, and the caller assigns nothing.\r\n */\r\n/**\r\n * A refused value as a refusal message should show it: as it was GIVEN, not as\r\n * it coerced. `[5]` reads as a list rather than as the number 5, which is the\r\n * whole reason it was refused, and a message built from the coerced form would\r\n * say a number is not a number.\r\n *\r\n * `JSON.stringify` throws on a value that refers back to itself, which an\r\n * ordinary parent/child config with a back-pointer does. Left unguarded that\r\n * throw escapes the constructor, so a caller who hands the builder a value it\r\n * cannot use gets no picture and no diagnosis instead of a refusal.\r\n */\r\nconst describeRefusedValue = (rawValue) => {\r\n  try {\r\n    return JSON.stringify(rawValue) ?? String(rawValue);\r\n  } catch {\r\n    return Object.prototype.toString.call(rawValue);\r\n  }\r\n};\r\n\r\n/**\r\n * A value as the text a warning's `source` or a saved bracket writes, without\r\n * throwing. `String()` is the conversion everywhere it succeeds, so nothing it\r\n * can convert reads any differently.\r\n *\r\n * It fails on three plain literals, and that is why this exists: an object whose\r\n * `toString` is not a function (`{ toString: 5 }`, which `JSON.parse` produces\r\n * as readily as a hand-written literal), an object with no prototype, and a\r\n * `toString` that throws. Each is exactly the kind of value the library refuses,\r\n * so building the refusal must not be what fails: a throw here escapes the\r\n * constructor and hands the caller no picture and no diagnosis instead of a\r\n * report. On failure it falls back to the description a refusal message uses.\r\n */\r\nexport const textOfValue = (value) => {\r\n  try {\r\n    return String(value);\r\n  } catch {\r\n    return describeRefusedValue(value);\r\n  }\r\n};\r\n\r\n/**\r\n * The one grammar a number written as text is read by: JavaScript's decimal\r\n * notation, the form `String()` writes a number in, so every number a save\r\n * writes reads back as itself and every spelling of a value (an option, a\r\n * coordinate, a kerning marker) agrees. A sign, digits with an optional\r\n * fraction or a fraction alone, an optional exponent; `Infinity` is a spelling\r\n * too, and the finiteness checks refuse it where a length is needed. The hex,\r\n * binary and octal forms `Number()` also reads are not numbers here: nothing\r\n * documented them, and a coordinate or a marker never read them.\r\n *\r\n * A regex SOURCE fragment with no capturing group, so the coordinate suffix and\r\n * the kerning marker can embed it without renumbering their own groups.\r\n */\r\nexport const NUMBER_TEXT = String.raw`[+-]?(?:Infinity|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][+-]?\\d+)?)`;\r\nconst WHOLE_NUMBER_TEXT = new RegExp(`^${NUMBER_TEXT}$`);\r\n\r\n/** Text read as a number by that grammar, its padding ignored, or NaN. */\r\nconst numberFromText = (text) => (WHOLE_NUMBER_TEXT.test(text.trim()) ? Number(text) : NaN);\r\n\r\n/**\r\n * Finds a coordinate written on a code: a `:` followed by what can start a\r\n * number in that grammar. `define()`'s word guard asks it, and so does the\r\n * alias expansion, which appends an outer coordinate only to a first part\r\n * carrying none: a spelling it missed would get a second coordinate, which no\r\n * reader accepts, and the character would be dropped.\r\n */\r\nexport const WRITTEN_COORDINATE_PATTERN = /:[+-]?(?:[\\d.]|Infinity)/;\r\n\r\n/**\r\n * A written value read as a number, or NaN when it cannot be one, with the TYPE\r\n * deciding first: only a number, a bigint, or text the number grammar reads, is\r\n * read.\r\n *\r\n * The same rule `judgeNumericOptionValue` applies to the numeric options, and\r\n * for the same reason. `Number()` reads `null`, `[]` and a blank string as 0 and\r\n * `[5]` as 5, so trusting it alone invents a value nobody wrote, and for a\r\n * position a 0 is not an absence: it moves the element to its own origin. Blank\r\n * text is no number to the grammar, so it is refused with the rest.\r\n * Shared by the position and kerning readers so the two cannot drift.\r\n */\r\nexport const writtenNumber = (value) => {\r\n  if (typeof value === 'number' || typeof value === 'bigint') return Number(value);\r\n  return typeof value === 'string' ? numberFromText(value) : NaN;\r\n};\r\n\r\n// CSS's number syntax, padded with nothing but the whitespace CSS skips.\r\nconst CSS_NUMBER_TEXT = /^[\\t\\n\\f\\r ]*[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?[\\t\\n\\f\\r ]*$/;\r\n\r\n/**\r\n * A value written for a renderer, read as a number the way the renderer reads\r\n * it, or NaN when it reads none: a number or a bigint as itself, text only in\r\n * CSS's number syntax. A renderer refuses text the number grammar above reads,\r\n * a trailing point (`4.`), `Infinity`, or padding with any other space (a\r\n * no-break space), and draws the inherited value instead, so a box sized by\r\n * that grammar's reading could cut what is drawn. Positions and kerning, which\r\n * no renderer reads, keep writtenNumber.\r\n */\r\nexport const cssNumber = (value) => {\r\n  if (typeof value === 'number' || typeof value === 'bigint') return Number(value);\r\n  return typeof value === 'string' && CSS_NUMBER_TEXT.test(value) ? Number(value) : NaN;\r\n};\r\n\r\n/**\r\n * A written `stroke-width` read as a width in user units (cssNumber), or\r\n * undefined where it reads as no number at or above 0. A renderer resolves\r\n * such a value alone (`5px` as pixels, a word, a negative one or one CSS\r\n * cannot read as a number as the inherited width), so a box the library sizes\r\n * around the line keeps the width the library computed. Shared by every box a\r\n * written width sizes, so the readings cannot drift.\r\n */\r\nexport const writtenWidth = (value) => {\r\n  const width = cssNumber(value);\r\n  return Number.isFinite(width) && width >= 0 ? width : undefined;\r\n};\r\n\r\n/**\r\n * True when an option was written without a value. Blank rather than absent: a\r\n * bare key arrives as `true`, an empty value as '', a quoted blank as\r\n * whitespace, and an omitted one as null or undefined. Shared by the two\r\n * judges that give a missing value a refusal of its own, the numeric one and\r\n * the keyword one, so they cannot disagree on what counts as missing.\r\n */\r\nconst isWrittenWithoutValue = (rawValue) => (\r\n  rawValue === true || rawValue === null || rawValue === undefined\r\n  || (typeof rawValue === 'string' && rawValue.trim() === '')\r\n);\r\n\r\nexport const judgeNumericOptionValue = (key, rawValue) => {\r\n  const policy = NUMERIC_OPTION_POLICY.get(key);\r\n  if (!policy) return null;\r\n  const tail = `so it was ignored: the ${policy.noun} keeps the value it would have had without it.`;\r\n  // Guarded rather than interpolated: this judge now sees the RAW value on every\r\n  // route, and a template literal throws on a symbol and on the three objects\r\n  // `textOfValue` names. Every value that converts reads exactly as before.\r\n  const source = rawValue === true ? key : `${key}=${textOfValue(rawValue)}`;\r\n  // Number() turns every blank value into 0, so each would otherwise set a\r\n  // spacing nobody typed.\r\n  if (isWrittenWithoutValue(rawValue)) {\r\n    return {\r\n      code: WARNING_CODES.INVALID_OPTION_VALUE,\r\n      message: `\"${key}\" needs a number and was written without one, ${tail}`,\r\n      source,\r\n    };\r\n  }\r\n  // The TYPE decides, not what Number() makes of it. Number(false) is 0 and\r\n  // Number([5]) is 5, so trusting the NaN check below would honour a value the\r\n  // author never wrote as a number. Only a number, or a string the number\r\n  // grammar reads, can be honoured; a padded number such as ' 5 ' still is.\r\n  const written = typeof rawValue === 'number'\r\n    ? rawValue\r\n    : typeof rawValue === 'string' ? numberFromText(rawValue) : NaN;\r\n  if (Number.isNaN(written)) {\r\n    return {\r\n      code: WARNING_CODES.INVALID_OPTION_VALUE,\r\n      message: `\"${key}\" needs a number and ${describeRefusedValue(rawValue)} is not one, ${tail}`,\r\n      source,\r\n    };\r\n  }\r\n  // The key is quoted and leads rather than following an article, because an\r\n  // article cannot be chosen for 29 names at once: \"a sdot-extra-width\" and\r\n  // \"a external-glyph-space\" are both wrong, and the rule that picks between\r\n  // \"a\" and \"an\" is about sound, not spelling.\r\n  if (!Number.isFinite(written)) {\r\n    return {\r\n      code: WARNING_CODES.OUT_OF_RANGE_OPTION_VALUE,\r\n      message: `\"${key}\" cannot be ${written}, which is not a length the SVG format can carry, ${tail}`,\r\n      source,\r\n    };\r\n  }\r\n  if (policy.kind === 'length' && written < 0) {\r\n    return {\r\n      code: WARNING_CODES.OUT_OF_RANGE_OPTION_VALUE,\r\n      message: `\"${key}\" cannot be ${written}, because a negative ${policy.noun} cannot be drawn, ${tail}`,\r\n      source,\r\n    };\r\n  }\r\n  return null;\r\n};\r\n\r\n/**\r\n * The curated options that are SWITCHES rather than values. Each is read by\r\n * identity against `true`, so every other value means \"off\" and the ordinary\r\n * way to turn one off is to write something that is not `true`. Judging their\r\n * values would report on that.\r\n */\r\nexport const BOOLEAN_OPTION_KEYS = new Set(['center', 'grid', 'error-placeholder']);\r\n\r\n/**\r\n * The curated options whose value reaches the document as TEXT, derived rather\r\n * than listed: everything in the curated vocabulary that is neither a number\r\n * nor a switch nor `key`, which names the element rather than anything in the\r\n * markup. Deriving it is what makes the sweep in\r\n * `BlissSVGBuilder.text-option-values.test.js` cover an option added later on\r\n * the day it lands, and it puts a new option in the GATED half by default,\r\n * which is the safe direction to be wrong in.\r\n */\r\nexport const TEXT_OPTION_KEYS = new Set(\r\n  [...KNOWN_OPTION_KEYS].filter((key) => (\r\n    !NUMERIC_OPTION_POLICY.has(key) && !BOOLEAN_OPTION_KEYS.has(key) && key !== 'key'\r\n  ))\r\n);\r\n\r\n/**\r\n * The text options whose value is a paint: the symbol's color, the background\r\n * and its three zones, and the grid lines. Listed only so a refusal can say\r\n * what one of them needs; a text option missing from it is refused all the\r\n * same, asked for \"a text value\" instead of \"a color\".\r\n */\r\nconst COLOR_OPTION_KEYS = new Set([\r\n  'color', 'background', 'background-top', 'background-mid', 'background-bottom',\r\n  'grid-color', 'grid-major-color', 'grid-medium-color', 'grid-minor-color',\r\n  'grid-sky-color', 'grid-earth-color',\r\n]);\r\n\r\n/**\r\n * True for a key whose value the library will write into the document as text.\r\n * A name the library does not curate at all is one of these too: it is emitted\r\n * as the author typed it, so whatever it carries becomes attribute text.\r\n *\r\n * `INTERNAL_OPTIONS` is exactly the set of uncurated names where that premise is\r\n * FALSE: position and kerning reach an emitter as geometry and never as text,\r\n * and each already has a gate of its own (MALFORMED_COORDINATES,\r\n * MALFORMED_KERNING_VALUE). Without the exemption a value with no text form on\r\n * one is refused as needing a text value, rather than in the words of the gate\r\n * that reports the same key everywhere else.\r\n */\r\nexport const isTextValuedOptionKey = (key) => (\r\n  !INTERNAL_OPTIONS.has(key)\r\n  && (TEXT_OPTION_KEYS.has(key) || !KNOWN_OPTION_KEYS.has(key))\r\n);\r\n\r\n/**\r\n * True when a value has a text form the author meant, which is what makes it\r\n * INPUT at all. Every primitive has one; `null`, `undefined` and everything\r\n * that is not a primitive have none.\r\n *\r\n * A boolean counts, INCLUDING as a text value: a bare key in a bracket\r\n * (`[myOwnAttr]`) arrives as `true`, so refusing booleans would refuse the\r\n * DSL's own shorthand.\r\n *\r\n * The null test is redundant on purpose, and measured so: `typeof null` is\r\n * 'object', so the object test already catches it. It is written out because\r\n * the rule is \"non-primitive, null or undefined\" and leaning on that quirk\r\n * would hide a third of the rule behind a JavaScript wart.\r\n *\r\n * Shared by the two gates that must agree on it: this is the test\r\n * `judgeTextOptionValue` applies to every value but a library option's bare\r\n * key, and it is also what `admitOptions` asks before judging anything, since\r\n * a value that IS text is input whether or not the option can use it.\r\n */\r\nconst hasAuthoredTextForm = (value) => (\r\n  value !== null && value !== undefined\r\n  && typeof value !== 'object' && typeof value !== 'function' && typeof value !== 'symbol'\r\n);\r\n\r\n/**\r\n * Judges one written value for a text-valued option, the string half of the\r\n * same gate `judgeNumericOptionValue` is the numeric half of. Same two arms and\r\n * no third: the value is refused, in which case the option falls back exactly\r\n * as if it had never been written, or it is honoured exactly as written.\r\n *\r\n * Nothing that is not a primitive is honoured, and neither is `null` or\r\n * `undefined`, because none of them has a text form the author meant.\r\n *\r\n * All six kinds reach the gate, including a function and a symbol: a\r\n * composition object cannot carry either, since `structuredClone` rejects both,\r\n * but the constructor's options argument and the mutation setters can, and\r\n * before `admitOptions` judged them they were stringified into the shipped\r\n * document as `stroke=\"() =&gt; 1\"` and `stroke=\"Symbol(x)\"` in silence.\r\n *\r\n * Without the gate, all of them were: `{color: null}` painted `stroke=\"null\"`\r\n * on the symbol and `{'aria-label': {}}` shipped `[object Object]` as an\r\n * accessible name.\r\n *\r\n * A library option written as a bare key is refused too, in words of its own,\r\n * as the numeric and keyword judges refuse one. The key arrives as `true`,\r\n * which has a text form, so the type test alone honoured it: `[background]`\r\n * painted `fill=\"true\"` and `[svg-title]` named the picture \"true\". On a name\r\n * the library does not curate, a bare key is the DSL's shorthand for `true`\r\n * (`[data-selected]`) and is honoured. The keyword options are left to their\r\n * own judge, whose refusal names the words the option takes.\r\n *\r\n * Returns null when the value is honoured, so the caller assigns it; otherwise\r\n * the warning to report, and the caller assigns nothing.\r\n */\r\nexport const judgeTextOptionValue = (key, rawValue) => {\r\n  if (!isTextValuedOptionKey(key)) return null;\r\n  const curated = KNOWN_OPTION_KEYS.has(key);\r\n  // An option the library curates has a value of its own to fall back to; a\r\n  // name it does not curate has none, so the honest thing to say about it is\r\n  // that nothing is emitted under it at all.\r\n  const tail = curated\r\n    ? 'so it was ignored: the option keeps the value it would have had without it.'\r\n    : 'so it was dropped and will not be emitted.';\r\n  if (rawValue === true && curated && !KEYWORD_OPTION_VALUES.has(key)) {\r\n    const needs = COLOR_OPTION_KEYS.has(key) ? 'a color' : 'a text value';\r\n    return {\r\n      code: WARNING_CODES.INVALID_OPTION_VALUE,\r\n      message: `\"${key}\" needs ${needs} and was written without one, ${tail}`,\r\n      source: key,\r\n    };\r\n  }\r\n  if (hasAuthoredTextForm(rawValue)) return null;\r\n  return {\r\n    code: WARNING_CODES.INVALID_OPTION_VALUE,\r\n    message: `\"${key}\" needs a text value and ${describeRefusedValue(rawValue)} is not one, ${tail}`,\r\n    source: `${key}=${textOfValue(rawValue)}`,\r\n  };\r\n};\r\n\r\n/**\r\n * The curated options that take one WORD from a closed list, and the words\r\n * each takes, in the order a refusal names them.\r\n *\r\n * A family of its own because its judge enforces the list: every other value\r\n * is refused, so the list is the whole truth about what the option accepts,\r\n * and that is what lets the option's declared type name its words rather than\r\n * `string`. A text option cannot be typed that way, since the text gate\r\n * honours any text it is given.\r\n *\r\n * The keys stay text options as well (derived into `TEXT_OPTION_KEYS`), so a\r\n * value with no text form is refused first, by the text gate in that gate's\r\n * words, and only a value that has one reaches the judge below.\r\n */\r\nexport const KEYWORD_OPTION_VALUES = new Map([\r\n  ['background-area', ['box', 'ink']],\r\n  ['link-area', ['box', 'ink']],\r\n]);\r\n\r\n/**\r\n * Judges one written value for a keyword option. Same two arms as the numeric\r\n * and text judges: the value is honoured when it is exactly one of the\r\n * option's words, or refused, and then the option falls back exactly as if it\r\n * had never been written.\r\n *\r\n * Exactly, as `crop=auto` is matched: `INK` is refused, not read as `ink`. A\r\n * judge that folded case would honour a spelling the saved string then keeps\r\n * as typed, and every other reader of that string would have to fold it too.\r\n *\r\n * A value written without one is refused in words of its own, as the numeric\r\n * judge refuses it: a bare key arrives as `true`, which the author never wrote,\r\n * so quoting it would name a value nobody typed. The message is phrased for an\r\n * option of two words, which is every one there is.\r\n *\r\n * Returns null when the value is honoured, so the caller assigns it; otherwise\r\n * the warning to report, and the caller assigns nothing.\r\n */\r\nexport const judgeKeywordOptionValue = (key, rawValue) => {\r\n  const words = KEYWORD_OPTION_VALUES.get(key);\r\n  if (!words || words.includes(rawValue)) return null;\r\n  const takes = `\"${key}\" takes ${words.join(' or ')}`;\r\n  const tail = 'so it was ignored: the option keeps the value it would have had without it.';\r\n  return {\r\n    code: WARNING_CODES.INVALID_OPTION_VALUE,\r\n    message: isWrittenWithoutValue(rawValue)\r\n      ? `${takes} and was written without one, ${tail}`\r\n      : `${takes}, and ${describeRefusedValue(rawValue)} is neither, ${tail}`,\r\n    source: rawValue === true ? key : `${key}=${textOfValue(rawValue)}`,\r\n  };\r\n};\r\n\r\n// What `source` carries, one rule for every refusal: THE WHOLE KEY when the\r\n// NAME is what was refused, `key=value` when the VALUE is what was refused.\r\n// `source` is documented as the fragment that triggered the warning, so it has\r\n// to be a fragment the author can find in their own input and it has to name\r\n// the thing that actually offended. `xmlns` is not a fragment of\r\n// `[content--xmlns=x]`, and two refusals in one bracket that report the same\r\n// string cannot be told apart; a value that was never looked at is noise.\r\n\r\n// Why a reserved name is refused, one reason per name: the two reserved sets\r\n// are guarded for different reasons and a single sentence covering both would\r\n// be true of neither. A Map rather than an object literal, so an inherited\r\n// name can never answer for a real one.\r\nconst RESERVED_ATTRIBUTE_REASONS = new Map([\r\n  ['xmlns', 'declares what the file is rather than anything about the picture, and a second declaration moves everything under it out of SVG, where no renderer draws it'],\r\n  ['data-generator', \"is the library's own stamp recording what produced the file, and a stamp anyone can overwrite tells its reader nothing; record your own pipeline under a name of your own\"],\r\n]);\r\n\r\n/**\r\n * The refusal of a reserved name, in words shared by every place that refuses\r\n * one. The reason is looked up on the NAME and the sentence quotes the\r\n * SPELLING. The two guards judge these names without regard to casing, since\r\n * an SVG placed inline in an HTML page has its attribute names lowercased\r\n * there, so a written `XMLNS` has to find `xmlns`'s reason while the author\r\n * still reads back the spelling they typed.\r\n */\r\nexport const reservedAttributeMessage = (name) =>\r\n  `\"${name}\" ${RESERVED_ATTRIBUTE_REASONS.get(String(name).toLowerCase())}, so the written value was refused.`;\r\n\r\n// The two names people reach for that the library spells another way: the\r\n// kerning marker, which goes between characters, and SVG 1.1's namespaced link.\r\n// The marker example repeats the key only when the reader would take it for a\r\n// marker (a finite value in the number grammar, as written). Any other key\r\n// (`RK:`, `RK:abc`, `RK: 5`) copied from the message would be refused in its\r\n// turn, so the example shows the form instead.\r\nconst unsafeNameHint = (key) => {\r\n  const marker = /^(RK|AK):/.exec(key);\r\n  if (marker) {\r\n    const value = key.slice(marker[0].length);\r\n    const example = WHOLE_NUMBER_TEXT.test(value) && Number.isFinite(Number(value)) ? key : `${marker[1]}:5`;\r\n    return ` A kerning marker goes between two characters, as in B291/${example}/B313, not inside a bracket.`;\r\n  }\r\n  if (key.toLowerCase() === 'xlink:href') return ' Write \"href\": SVG 2 dropped the xlink: prefix.';\r\n  return '';\r\n};\r\n\r\n/** The refusal of a name the safety gate rejects, in words shared by every place that rejects one. */\r\nexport const unsafeAttributeNameMessage = (key) =>\r\n  `\"${key}\" is not a usable attribute name (event handlers and names outside letters, digits and dashes are refused), so it was dropped and will not be emitted.${unsafeNameHint(key)}`;\r\n\r\n// Why a target-prefixed key resolved to no target. All three shapes fail the\r\n// same way, so they share a code, but each fails for its own reason and a\r\n// message covering all three describes none of them: `content--` names a target\r\n// we know perfectly well, and `--x` names none at all. The same split\r\n// `parseLayerAttributeKey` makes, so the reason reported is the reason the key\r\n// was actually rejected. The closing advice says where the attribute lands\r\n// when written with no prefix: below the global bracket, on the element it is\r\n// written on; in it, on the symbol, or on the root <svg> for an attribute that\r\n// describes the image, by the list the global walk routes a bare key with.\r\nconst unresolvedLayerKeyMessage = (key, level) => {\r\n  const separator = key.lastIndexOf('--');\r\n  const layer = key.slice(0, separator);\r\n  const bareLandsOn = level !== 'global' ? 'this element'\r\n    : isImageAttribute(key.slice(separator + 2)) ? 'the root <svg>' : 'the symbol';\r\n  const targets = `A target is a class the library writes, without the \"bliss-\" prefix, and the attribute follows the LAST \"--\": ${[...LAYER_TARGETS].join(', ')}. Write the attribute with no prefix to put it on ${bareLandsOn}.`;\r\n  if (!LAYER_TARGETS.has(layer)) {\r\n    return layer === ''\r\n      ? `\"${key}\" has no target name before the \"--\", so there is nothing for it to target and nothing was emitted. ${targets}`\r\n      : `\"${key}\" names no target the library knows, so nothing was emitted for it. ${targets}`;\r\n  }\r\n  return `\"${key}\" names the ${layer} target but no attribute after the \"--\", so there was nothing to emit.`;\r\n};\r\n\r\n/**\r\n * The report a target-prefixed key earns for its NAME, in the words of the\r\n * global form, or null when its name is one the global form emits.\r\n *\r\n * Four askers, so that none of them can word or rule it differently: the\r\n * global split, which reports it; the scope judge, which reports it IN PLACE\r\n * OF the misplacement when the same key is written below global scope; the\r\n * options pass, for an element background's key written below global scope,\r\n * where it is at home and so reported as the global split reports it; and the\r\n * name judge below. The lower report used to be the misplacement, whose\r\n * advice to move the key into the global bracket led the author straight to\r\n * this refusal without ever naming it.\r\n *\r\n * The order is the global form's: a key that resolves to no target is not\r\n * judged as an attribute name at all, and an unsafe name is reported before a\r\n * reserved one. The library's stamp is reserved behind the root prefix alone,\r\n * since on any other target it collides with nothing. A link attribute is not\r\n * here: the global form refuses it for what it does on a layer, not for its\r\n * name. `level` changes one sentence, the unknown target's closing advice.\r\n *\r\n * Asked only of a key `isLayerAttributeKey` accepts; any other key would be\r\n * read as a target that does not exist.\r\n *\r\n * @param {string} key - the stored option name, target-prefixed\r\n * @param {OptionScope['level']} [level] - where the key is written\r\n * @returns {{code: string, message: string, source: string} | null}\r\n */\r\nexport const layerKeyNameRefusal = (key, level = 'global') => {\r\n  const target = parseLayerAttributeKey(key);\r\n  if (!target) {\r\n    return { code: WARNING_CODES.UNKNOWN_LAYER, message: unresolvedLayerKeyMessage(key, level), source: key };\r\n  }\r\n  if (!isSafeAttributeName(target.attribute)) {\r\n    return { code: WARNING_CODES.UNSAFE_ATTRIBUTE_NAME, message: unsafeAttributeNameMessage(key), source: key };\r\n  }\r\n  if (isDocumentDefiningAttribute(target.attribute)\r\n      || (target.layer === 'root' && isLibraryOwnedRootAttribute(target.attribute))) {\r\n    return { code: WARNING_CODES.RESERVED_ATTRIBUTE_NAME, message: reservedAttributeMessage(target.attribute), source: key };\r\n  }\r\n  return null;\r\n};\r\n\r\n/**\r\n * The report a key earns for its NAME alone, or null when no pass refuses\r\n * the name. One judge returns it, so every place that refuses a name words\r\n * it the same way.\r\n *\r\n * Two places report it, split by whether the key can be stored. A value with\r\n * no text form cannot be, so the admission stage reports the name and drops\r\n * the key: left in the bag for a later pass to name, it was dropped first by\r\n * the JavaScript channels, with nothing said, or kept by a composition object\r\n * and saved as `[onclick=null]`. Nor can a name the text form cannot write\r\n * back, which the stage drops whatever it holds. Any other key is kept, and\r\n * the pass that refuses the name (the safety gate and the reserved-name guard\r\n * in the options pass and the root split, the layer-key split loop) reports\r\n * it on every load. Either way the name is the report worth having: told\r\n * only that `null` is not a text value, an author fixes the value and\r\n * `nosuch--fill` is just as dead, where the name refusal hands them the\r\n * targets that exist.\r\n *\r\n * `level` is where the key is written, because one name is refused at one\r\n * place only: the library's stamp, which the root alone reads, so it is\r\n * refused written bare at global scope and behind the root prefix, and is an\r\n * ordinary name anywhere else. A caller that cannot know where the bag will\r\n * act (a definition's defaults, which act where the code is used, never on\r\n * the root) passes none. A target-prefixed key is judged in the words of the\r\n * global form, the only scope it reaches this judge from but for an element\r\n * background's, which is at home at every scope and earns the same words\r\n * wherever it is written: written lower, any other is refused first by the\r\n * scope judge, in that scope's words.\r\n *\r\n * The two internal names in `INTERNAL_ONLY_SPELLINGS` are not here. They\r\n * name no option and refuse nothing: the pass-through emits a value written\r\n * under one, with a hint naming the option that works, so a value with no\r\n * text form on one is refused as on any name of your own.\r\n *\r\n * @param {string} key - the stored option name\r\n * @param {OptionScope['level']} [level] - where the key is written\r\n * @returns {{code: string, message: string, source: string} | null}\r\n */\r\nexport const optionNameRefusal = (key, level) => {\r\n  if (isLayerAttributeKey(key)) return layerKeyNameRefusal(key);\r\n  if (!isSafeAttributeName(key)) {\r\n    return { code: WARNING_CODES.UNSAFE_ATTRIBUTE_NAME, message: unsafeAttributeNameMessage(key), source: key };\r\n  }\r\n  if (isDocumentDefiningAttribute(key) || (level === 'global' && isLibraryOwnedRootAttribute(key))) {\r\n    return { code: WARNING_CODES.RESERVED_ATTRIBUTE_NAME, message: reservedAttributeMessage(key), source: key };\r\n  }\r\n  return null;\r\n};\r\n\r\n/**\r\n * Whether a pass refuses the key's name. The render backstop asks it, to\r\n * leave the value gate off a key whose name refusal that pass reports\r\n * instead; answered by the stage's own judge, so the two cannot disagree.\r\n */\r\nexport const optionNameIsAlreadyRefused = (key, level) => optionNameRefusal(key, level) !== null;\r\n\r\n// Whether the text form can write this name back as itself. A bracket key ends\r\n// at its first `=`, an entry at a `;` and the bracket at a `]`, a quote can\r\n// open a span that runs on into the next key, and the reader trims a key's\r\n// ends, so a name holding any of these reads back as another name, which can\r\n// be a working one: stored, `' color'` would be saved as `[ color=red]` and\r\n// read back as `color`. A `[` is none of these: a bracket reads it as part of\r\n// the name.\r\nconst hasTextSpelling = (key) => !/[=;\\]\"']|^\\s|\\s$/.test(key);\r\n\r\n/**\r\n * The refusal that keeps one written entry OUT of the composition, or null when\r\n * nothing is refused.\r\n *\r\n * For a value, one test decides it, and it is a test on the value's TYPE rather\r\n * than on which option it was written on, so it governs every option that\r\n * exists and every option added later with no list to maintain. A value with no\r\n * text form the author meant is not input: it cannot be saved, cannot be read\r\n * back and cannot be fixed by reading it, so it is reported once and does not\r\n * enter. A value that IS text is input even when it is wrong for the option\r\n * (`crop=nope`), because the author can read it and fix it, so it is kept and\r\n * reported by the gate that knows what that option accepts.\r\n *\r\n * A name is held to the same rule. One the text form cannot write back as\r\n * itself (`hasTextSpelling`) cannot be saved and read back either, so it does\r\n * not enter, whatever it holds. Every such name is one the safety gate refuses,\r\n * so it is reported under the refusal its name earns. The transient channel\r\n * never saves, so a name there is left to that channel's own checks.\r\n *\r\n * Asked after the scope judge, it names the first thing wrong with a key whose\r\n * value has no text form, in the words that thing is reported in everywhere\r\n * else: the channel (a key the transient channel refuses), then the name (a\r\n * name a later pass refuses), then the value. The value is dropped whichever\r\n * is named, since it cannot be stored, so naming the one the author has to fix\r\n * first costs nothing. A text value is judged here only under a name the text\r\n * form cannot write: under any other refused name it is kept, and the pass\r\n * that refuses the name reports it on every load.\r\n *\r\n * The judges are asked rather than the type test being reported directly, for\r\n * two reasons. They word the refusal for the option it landed on, so a number\r\n * option says it needs a number and a position is refused in its own gate's\r\n * words. And all of them returning null is what leaves unrefused the one kind\r\n * of key no value can make wrong: a switch, on only when it is exactly `true`.\r\n * A switch holding no text does not enter either, like any value with no text\r\n * form (`admitOptions` drops it, in silence).\r\n */\r\nconst admissionRefusal = (key, value, scope) => {\r\n  if (!scope?.transient && !hasTextSpelling(key)) return optionNameRefusal(key, scope?.level);\r\n  if (hasAuthoredTextForm(value)) return null;\r\n  if (scope?.transient && TRANSIENT_REFUSED_OPTION_KEYS.has(key)) {\r\n    return { code: WARNING_CODES.MISPLACED_TRANSIENT_OPTION, message: transientRefusalMessage([key]), source: key };\r\n  }\r\n  return optionNameRefusal(key, scope?.level)\r\n    ?? judgeNumericOptionValue(key, value)\r\n    ?? judgeTextOptionValue(key, value)\r\n    ?? judgeGeometryOptionValue(key, value)\r\n    ?? judgeElementKeyValue(key, value);\r\n};\r\n\r\n/**\r\n * The element key under the rule every option is under, in words for what it\r\n * does. It reaches neither the picture nor the saved text, but it names the\r\n * element, and `handle.key` and `getElementByKey()` read that name as text: a\r\n * value with no text form names nothing, so it is refused, and the element\r\n * keeps the key it had. Any other value names the element by its text, which\r\n * it becomes where the key is read off the options.\r\n *\r\n * Asked only for a value with no text form, as the judges before it are.\r\n */\r\nconst judgeElementKeyValue = (key, value) => {\r\n  if (key !== 'key') return null;\r\n  return {\r\n    code: WARNING_CODES.INVALID_OPTION_VALUE,\r\n    message: `\"key\" needs a text value and ${describeRefusedValue(value)} is not one, ${ELEMENT_KEY_REFUSAL_TAIL}`,\r\n    source: `key=${textOfValue(value)}`,\r\n  };\r\n};\r\n\r\nconst ELEMENT_KEY_REFUSAL_TAIL = 'so it was ignored: the element keeps the key it would have had without it.';\r\n\r\n/**\r\n * The element key written bare, which arrives as `true`, in the words a bare\r\n * library option is refused in. A key written with no value names nothing, as\r\n * an empty one does, but unlike an empty one it was surely not meant, so it is\r\n * reported. `true` has a text form, so the judge above never sees it: it is\r\n * refused where the key is read, so a bracket's bare key and the JavaScript\r\n * `true` are reported alike, and `[key=true]`, the text, still names the\r\n * element \"true\".\r\n */\r\nexport const bareElementKeyRefusal = () => ({\r\n  code: WARNING_CODES.INVALID_OPTION_VALUE,\r\n  message: `\"key\" needs a text value and was written without one, ${ELEMENT_KEY_REFUSAL_TAIL}`,\r\n  source: 'key',\r\n});\r\n\r\n/**\r\n * Position and kerning under the same rule, reported the way their own gates\r\n * report, so a value refused here reads exactly like one refused further on.\r\n *\r\n * Their gates live downstream because a position and a kerning value are read\r\n * as geometry, not written as text, and a text refusal would name the wrong\r\n * thing. Leaving a value with no text form to those gates is what the JavaScript\r\n * channels could not do: they converted to text first, so a `null` there was\r\n * dropped in silence while the same `null` in a composition object was read as\r\n * a written 0, and an `undefined` was saved as `[x=undefined]`.\r\n */\r\nconst judgeGeometryOptionValue = (key, value) => {\r\n  if (!INTERNAL_OPTIONS.has(key)) return null;\r\n  const source = `${key}=${textOfValue(value)}`;\r\n  return key === 'x' || key === 'y'\r\n    ? {\r\n        code: WARNING_CODES.MALFORMED_COORDINATES,\r\n        message: `Malformed position \"${source}\"; the option is ignored.`,\r\n        source,\r\n      }\r\n    : {\r\n        code: WARNING_CODES.MALFORMED_KERNING_VALUE,\r\n        message: `Malformed kerning value \"${source}\"; the option is ignored.`,\r\n        source,\r\n      };\r\n};\r\n\r\n/**\r\n * Some option keys mean something at exactly ONE scope. Written anywhere else\r\n * they are dropped with a warning rather than left in place, because an option\r\n * the library does not recognize AT THAT SCOPE falls through to the SVG\r\n * attribute pass-through (what `[data-*]` options are for), so a silent drop\r\n * would make a real option and a pass-through attribute look identical in the\r\n * source and behave differently with nothing said.\r\n *\r\n * One row per bound key set. A future key with a home scope of its own needs a\r\n * row and a warning code, not new machinery. `text` has no row: it is an\r\n * unimplemented stub at every level, so it is misplaced nowhere.\r\n *\r\n * Each report is two sentences. The first says what is wrong and is the same on\r\n * every route. The second says where the key belongs, and it is written in the\r\n * notation the author was using, since a bracket to paste is no help to someone\r\n * writing a JavaScript object.\r\n *\r\n * A row whose keys can carry a name the home scope refuses names that refusal\r\n * (`nameRefusal`) and the codes it can write (`nameRefusalCodes`). Sending such\r\n * a key home would only trade this report for that one, so it gets that one\r\n * here, and is dropped all the same, since no name would let it act here.\r\n */\r\nconst SCOPE_BOUND_OPTIONS = [\r\n  {\r\n    home: 'global',\r\n    has: (key) => GLOBAL_ONLY_OPTION_KEYS.has(key),\r\n    code: WARNING_CODES.MISPLACED_GLOBAL_OPTION,\r\n    diagnosis: (written, level) => `Global option (${written}) ignored at ${level} level: it configures the whole SVG.`,\r\n    fix: (written, scope) => `${documentHome(written, scope)} to apply it globally.`,\r\n  },\r\n  {\r\n    home: 'character',\r\n    has: (key) => Object.hasOwn(KERNING_OPTION_KEYS, key),\r\n    code: WARNING_CODES.MISPLACED_KERNING_OPTION,\r\n    diagnosis: (written, level) => `Kerning option (${written}) ignored at ${level} level: kerning is the gap before a character.`,\r\n    // The RK:/AK: markers are code-string syntax, so only a bracket is offered them.\r\n    fix: (_written, { notation }) => (notation === 'bracket'\r\n      ? 'Write it on the character, or use the RK:/AK: marker before it.'\r\n      : \"Set it on the character's options.\"),\r\n  },\r\n  {\r\n    home: 'global',\r\n    // An element background's target is at home at every scope, so it is not\r\n    // bound here: written on an element, it styles the backgrounds inside it.\r\n    has: (key) => isLayerAttributeKey(key) && !isElementLayerKey(key),\r\n    code: WARNING_CODES.MISPLACED_LAYER_OPTION,\r\n    diagnosis: (written, level) => `Layer option (${written}) ignored at ${level} level: it names a layer of the whole SVG.`,\r\n    fix: (written, scope) =>\r\n      `${documentHome(written, scope)} to apply it, or write the attribute without a layer prefix to put it on this element.`,\r\n    nameRefusal: layerKeyNameRefusal,\r\n    nameRefusalCodes: [WARNING_CODES.UNKNOWN_LAYER, WARNING_CODES.UNSAFE_ATTRIBUTE_NAME, WARNING_CODES.RESERVED_ATTRIBUTE_NAME],\r\n  },\r\n];\r\n\r\n// Where a key that acts on the whole SVG goes, in the author's own notation, as\r\n// the start of the sentence that sends it there. A transient key goes to the\r\n// transient channel's own top level, which is what keeps it transient.\r\nconst documentHome = (written, { notation, transient = false }) => {\r\n  if (notation === 'bracket') return `Use [${written}]||`;\r\n  if (notation === 'object') return `Put it in the composition's top-level ${transient ? 'transientOptions' : 'options'}`;\r\n  return transient ? 'Pass it to builder.setTransientOptions()' : 'Pass it to builder.setOptions()';\r\n};\r\n\r\n/**\r\n * The refusal for one key written at a scope it cannot act on, or null when the\r\n * key is at home there or bound to no scope at all.\r\n *\r\n * The one judge of scope, whatever route the key arrived through, and asked only\r\n * by `admitOptions`: a DSL bracket and a JavaScript bag both reach it inside the\r\n * stage, in the same order against the same neighbours. One table read by one\r\n * function in one place is what keeps a key misplaced in a bracket and the same\r\n * key misplaced in an object from being reported differently, or one of them\r\n * not at all.\r\n *\r\n * `level` is the parser's vocabulary (`'global'`, `'group'`, `'character'`,\r\n * `'part'`) because the message prints it. `notation` is how the author wrote\r\n * the bag: `'bracket'` for the DSL, `'object'` for a composition object, and\r\n * `'setter'` for any options argument of a JavaScript call (the constructor's,\r\n * the handle setters', and the `opts` of the adding and replacing methods).\r\n * Only the second sentence of a report depends on it. `transient` marks a\r\n * transient bag, where a key the transient channel refuses outright is left to\r\n * that refusal (the stage's own for a value with no text form, the transient\r\n * check's for text): it refuses kerning at every level, so telling the author to\r\n * move a transient kerning value onto a character would only send them to the\r\n * second refusal.\r\n *\r\n * The report names the key as stored, and the value is written through\r\n * `textOfValue`, so building a report cannot throw on a value with no text form.\r\n * A key whose name the home scope refuses is reported by that refusal instead,\r\n * which names the key alone: it is the name that offended.\r\n *\r\n * @param {string} key - the stored (canonical) option name\r\n * @param {unknown} value - the value as written\r\n * @param {OptionScope} scope\r\n * @returns {{code: string, message: string, source: string} | null}\r\n */\r\nconst scopeRefusal = (key, value, scope) => {\r\n  if (scope.transient && TRANSIENT_REFUSED_OPTION_KEYS.has(key)) return null;\r\n  const rule = SCOPE_BOUND_OPTIONS.find((r) => r.home !== scope.level && r.has(key));\r\n  if (!rule) return null;\r\n  const nameRefusal = rule.nameRefusal?.(key, scope.level);\r\n  if (nameRefusal) return nameRefusal;\r\n  const written = value === true ? key : `${key}=${textOfValue(value)}`;\r\n  return {\r\n    code: rule.code,\r\n    message: `${rule.diagnosis(written, scope.level)} ${rule.fix(written, scope)}`,\r\n    source: written,\r\n  };\r\n};\r\n\r\n/**\r\n * @typedef {object} OptionScope\r\n * @property {'global' | 'group' | 'character' | 'part'} level - where the bag is being written\r\n * @property {'bracket' | 'object' | 'setter'} notation - how the author wrote it\r\n * @property {boolean} [transient] - a transient bag\r\n */\r\n\r\n/**\r\n * True when a report is one the scope judge wrote. For a caller that inspects a\r\n * bracket rather than ingesting it, and has to know whether the stage dropped a\r\n * key for its scope without re-deriving which keys are bound to one.\r\n *\r\n * A name refusal counts, since the judge writes one for a misplaced key whose\r\n * name is refused as well. Its codes are the judge's only among the stage's own\r\n * reports: the passes that refuse a name at render raise the same codes for\r\n * keys they keep, so this is asked of what the stage reported.\r\n *\r\n * @param {{code: string}} warning\r\n * @returns {boolean}\r\n */\r\nexport const isScopeRefusal = (warning) =>\r\n  SCOPE_BOUND_OPTIONS.some((r) => r.code === warning.code || r.nameRefusalCodes?.includes(warning.code));\r\n\r\n/**\r\n * The one stage an options bag passes through on its way INTO a composition:\r\n * the name is resolved, the value is judged, and what comes back is what the\r\n * composition will hold.\r\n *\r\n * Every ingest route runs it FIRST and nothing else resolves an option name, so\r\n * a route added later is judged whether or not its author knew this rule\r\n * existed. Four routes each deciding for themselves is what this replaces: a\r\n * composition object kept everything, the options argument and the mutation\r\n * setters dropped four kinds in silence, and a definition's defaults kept\r\n * everything, so one value saved through one channel and reloaded through\r\n * another changed what it meant.\r\n *\r\n * Entries in and entries out, rather than a bag in and a bag out, because the\r\n * routes differ in what they build and each still builds its own: the DSL's bag\r\n * has no prototype on purpose (a bracket may spell `__proto__`, and a plain\r\n * object built only to feed this stage would be a second place that bites), and\r\n * the JavaScript channels convert each value to text on the way into theirs.\r\n * What is shared is the judgement, which is the part that was drifting.\r\n *\r\n * The value is judged BEFORE the spelling is noted, so a value that never\r\n * enters cannot be named as displacing another. `{strokeWidth: 5,\r\n * 'stroke-width': null}` is why: the null is dropped and the 5 survives, so a\r\n * collision report would say the 5 was ignored when it is the value in force.\r\n * A switch holding a value with no text form never enters either, so it\r\n * displaces nothing: neither another spelling of the switch in the same bag\r\n * nor a `true` written in a lower layer, such as the builder's `defaults`,\r\n * which stays in force (`false` is what turns that off). It is dropped in\r\n * silence, since on its own it leaves the switch off anyway.\r\n *\r\n * The drop does not depend on there being anywhere to report it: every route\r\n * passes a warnings channel, and a caller that passes none still has the\r\n * refusal applied, with nobody told.\r\n *\r\n * Given the `scope` the bag is being written at, the stage also refuses a key\r\n * that cannot act there (`scopeRefusal`), and it asks that FIRST: where a key\r\n * cannot act, fixing its value would achieve nothing, so `{marginTop: null}` on\r\n * a character is reported once, as misplaced. Then a name the text form cannot\r\n * write back, whatever it holds, outside a transient bag, which is never saved.\r\n * Then, for a value with no text form, the channel and the name, so `{x: null}`\r\n * in a transient bag is reported as a key that channel refuses and\r\n * `{onclick: null}` as a name, each in the words the same key earns with a\r\n * text value. A key refused for its\r\n * scope is never noted as a spelling either, for the same reason a refused\r\n * value is not.\r\n * Without a scope nothing is judged for scope. That is a definition's\r\n * `defaultOptions`, and only those: the defaults attach wherever the definition\r\n * is used, which the stage cannot know when they are declared, and no key bound\r\n * to a scope can be among them, since `define()` refuses every one (canvas-wide,\r\n * target-prefixed but for an element background's target, which is bound to\r\n * none, kerning) as a definition error. A definition's code string is DSL text,\r\n * so its brackets are judged at part scope wherever it is expanded.\r\n *\r\n * @param {Iterable<[string, unknown]>} writtenEntries - keys as written, with their values\r\n * @param {(warning: object) => void} [warn] - where to send a refusal\r\n * @param {OptionScope} [scope] - where the bag is being written, and how\r\n * @returns {Array<[string, unknown]>} the admitted entries, keys resolved\r\n */\r\nexport const admitOptions = (writtenEntries, warn, scope) => {\r\n  const admitted = [];\r\n  const noteSpelling = warn ? optionSpellingWatcher(warn) : () => {};\r\n  for (const [writtenKey, value] of writtenEntries) {\r\n    const key = canonicalOptionKey(writtenKey);\r\n    const refusal = (scope ? scopeRefusal(key, value, scope) : null)\r\n      ?? admissionRefusal(key, value, scope);\r\n    if (refusal) {\r\n      warn?.(refusal);\r\n      continue;\r\n    }\r\n    // A switch is on only when it is exactly `true`, so on its own a value with\r\n    // no text form leaves it off. It is dropped like every value with no text\r\n    // form, so no save writes it and it displaces nothing, but without a report:\r\n    // reporting it would scold a common way of saying off.\r\n    if (BOOLEAN_OPTION_KEYS.has(key) && !hasAuthoredTextForm(value)) continue;\r\n    noteSpelling(writtenKey, key, value);\r\n    admitted.push([key, value]);\r\n  }\r\n  return admitted;\r\n};\r\n\r\n/**\r\n * Maps semantic indicator types to their root B-codes.\r\n * When overriding indicators, the semantic root is preserved by default\r\n * unless the new indicators include a semantic indicator or strip-semantic (!) is used.\r\n */\r\nexport const SEMANTIC_INDICATOR_ROOTS = {\r\n  thing: 'B97',\r\n  abstract: 'B6436'\r\n};\r\n\r\n/**\r\n * Maximum allowed depth for element nesting and parser recursion.\r\n * Prevents stack overflow on pathological or self-referential definitions.\r\n */\r\nexport const MAX_RECURSION_DEPTH = 50;\r\n\r\n/**\r\n * Approximate minimum y-coordinate for content bounds in external glyphs\r\n * and text fallbacks. Actual values vary per glyph; this is used for\r\n * effectiveBounds estimation only.\r\n */\r\nexport const APPROX_GLYPH_MIN_Y = 11;\r\n","/** \r\n * This Source Code Form is subject to the terms of the Mozilla Public\r\n * License, v. 2.0. If a copy of the MPL was not distributed with this\r\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\r\n */\r\n\r\nimport { alphabetData } from \"../external-font-data/liberation-sans-svg-path-data.js\";\r\nimport { escapeHtml, APPROX_GLYPH_MIN_Y } from \"./bliss-constants.js\";\r\n\r\n/**\r\n * Checks if a character has hardcoded path data available.\r\n *\r\n * @param {string} char - The character to check.\r\n * @return {boolean} True if path data exists, false if text fallback would be used.\r\n */\r\nexport function hasPathData(char) {\r\n  return !!alphabetData[`X${char}`];\r\n}\r\n\r\n/**\r\n * Creates a text fallback glyph for characters without hardcoded path data.\r\n * Uses SVG <text> element which relies on system fonts. Its getPath takes the\r\n * `color` it is filled in and an `outline`, the width it is stroked at (0, no\r\n * stroke, unless an ink area draws it).\r\n *\r\n * @param {string} str - The character or string to render.\r\n * @return {object} A glyph object compatible with createExternalGlyph.\r\n */\r\nexport function createTextFallbackGlyph(str) {\r\n  // Use known character widths where available, generous fallback for unknown.\r\n  // Users may need manual kerning/cropping for precise layouts with unknown chars.\r\n  const unknownCharWidth = 2.5;\r\n  const defaultCharSpace = 272 / 356; // ~0.764\r\n  const charWidths = [...str].reduce((sum, char) => {\r\n    const glyphData = alphabetData[`X${char}`];\r\n    return sum + (glyphData ? glyphData.width : unknownCharWidth);\r\n  }, 0);\r\n  const charSpacing = (str.length - 1) * defaultCharSpace;\r\n  const width = charWidths + charSpacing;\r\n  const approxMinY = APPROX_GLYPH_MIN_Y;\r\n  const maxY = 16;\r\n\r\n  return {\r\n    getPath: (x, y, options = {}) => {\r\n      const fill = escapeHtml(options.color || '#000000');\r\n      const safeStr = escapeHtml(str);\r\n      const closePath = `\"/>`;\r\n      const openPath = `<path d=\"`;\r\n      const baseline = 16;\r\n      const textX = x - 0.3;\r\n      const textY = y + baseline;\r\n      return `${closePath}<text x=\"${textX}\" y=\"${textY}\" font-family=\"Liberation Sans, sans-serif\" font-size=\"5.7\" stroke-width=\"${options.outline ?? 0}\" fill=\"${fill}\">${safeStr}</text>${openPath}`;\r\n    },\r\n    width,\r\n    y: approxMinY,\r\n    height: maxY - approxMinY,\r\n    isExternalGlyph: true,\r\n    // Single-char fallback IS a single glyph: `char` + `glyphCode`,\r\n    // parallel to single X-codes.\r\n    // Multi-char fallback is a composite carrying multiple chars: no\r\n    // `char`, no `glyphCode`, but a `codeName` (alias-style identifier).\r\n    ...(str.length === 1\r\n      ? { char: str, glyphCode: `XTXT_${str}` }\r\n      : { codeName: `XTXT_${str}` }),\r\n  };\r\n}\r\n\r\n/**\r\n * Create an invisible zero-sized anchor element with zero width and height.\r\n * Used to prevent normalization when explicit positioning is needed.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n */\r\nexport function createZeroSizedAnchor() {\r\n  return {\r\n    getPath: () => '',\r\n    width: 0,\r\n    height: 0,\r\n  };\r\n}\r\n\r\n/**\r\n * Create an invisible space glyph.\r\n * Width is 0 (invisible). advanceWidth controls cursor movement.\r\n * @param {number} advanceWidth - Default advance width (may be overridden by BlissSVGBuilder based on options)\r\n * @returns {Object} - An object with getPath, width, height, and advanceWidth.\r\n */\r\nexport function createSpace(advanceWidth) {\r\n  return {\r\n    getPath: () => '',\r\n    width: 0,\r\n    height: 0,\r\n    advanceWidth,\r\n  };\r\n}\r\n\r\n/**\r\n * Create a circle object with a specified radius.\r\n * @param {number} radius - The radius of the circle.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n */\r\nexport function createCircle(radius) {\r\n  const initialX = 0;\r\n  const initialY = radius;\r\n\r\n  return {\r\n    getPath: (x, y) => {\r\n      const startX = initialX + x;\r\n      const startY = initialY + y;\r\n      return `M${startX},${startY}a${radius},${radius} 0 1,1 ${radius * 2},0a${radius},${radius} 0 1,1 ${-radius * 2},0`;\r\n    },\r\n    width: radius * 2,\r\n    height: radius * 2,\r\n  };\r\n}\r\n\r\n/**\r\n * Create a half circle object with a specified radius and radial direction.\r\n * @param {number} radius - The radius of the half circle.\r\n * @param {'N'|'S'|'W'|'E'} radialDirection - The direction of the half circle's arc.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n */\r\nexport function createHalfCircle(radius, radialDirection) {\r\n  const directionMapping = {\r\n    'N': { initialX: 0, initialY: radius, endX: radius * 2, endY: 0, sweepFlag: 1, width: radius * 2, height: radius },\r\n    'S': { initialX: 0, initialY: 0, endX: radius * 2, endY: 0, sweepFlag: 0, width: radius * 2, height: radius },\r\n    'W': { initialX: radius, initialY: 0, endX: 0, endY: radius * 2, sweepFlag: 0, width: radius, height: radius * 2 },\r\n    'E': { initialX: 0, initialY: 0, endX: 0, endY: radius * 2, sweepFlag: 1, width: radius, height: radius * 2 },\r\n  };\r\n\r\n  const { initialX, initialY, endX, endY, sweepFlag, width, height } = directionMapping[radialDirection];\r\n\r\n  return {\r\n    getPath: (x, y) => {\r\n      const startX = initialX + x;\r\n      const startY = initialY + y;\r\n      return `M${startX},${startY}a${radius},${radius} 0 1,${sweepFlag} ${endX},${endY}`;\r\n    },\r\n    width,\r\n    height,\r\n  };\r\n}\r\n\r\n/**\r\n * Create a quarter circle object with a specified radius and radial direction.\r\n * @param {number} radius - The radius of the quarter circle.\r\n * @param {'NW'|'NE'|'SW'|'SE'} radialDirection - The direction of the quarter circle's arc.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n */\r\nexport function createQuarterCircle(radius, radialDirection) {\r\n  const directionMapping = {\r\n    'NW': { initialX: 0, initialY: radius, endX: radius, endY: -radius, sweepFlag: 1 },\r\n    'NE': { initialX: 0, initialY: 0, endX: radius, endY: radius, sweepFlag: 1 },\r\n    'SW': { initialX: 0, initialY: 0, endX: radius, endY: radius, sweepFlag: 0 },\r\n    'SE': { initialX: 0, initialY: radius, endX: radius, endY: -radius, sweepFlag: 0 },\r\n  };\r\n\r\n  const { initialX, initialY, endX, endY, sweepFlag } = directionMapping[radialDirection];\r\n\r\n  return {\r\n    getPath: (x, y) => {\r\n      const startX = initialX + x;\r\n      const startY = initialY + y;\r\n      return `M${startX},${startY}a${radius},${radius} 0 0,${sweepFlag} ${endX},${endY}`;\r\n    },\r\n    width: radius,\r\n    height: radius,\r\n  };\r\n}\r\n\r\n/**\r\n * Create an open circle object with a specified radius and opening direction.\r\n * @param {number} radius - The radius of the open circle.\r\n * @param {'NW'|'NE'|'SW'|'SE'} openingDirection - The direction of the open circle's opening.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n */\r\nexport function createOpenCircle(radius, openingDirection) {\r\n  const directionMapping = {\r\n    'NW': { initialX: radius, initialY: 0, endX: -radius, endY: radius, sweepFlag: 1 },\r\n    'NE': { initialX: radius * 2, initialY: radius, endX: -radius, endY: -radius, sweepFlag: 1 },\r\n    'SW': { initialX: 0, initialY: radius, endX: radius, endY: radius, sweepFlag: 1 },\r\n    'SE': { initialX: radius, initialY: radius * 2, endX: radius, endY: -radius, sweepFlag: 1 },\r\n  };\r\n\r\n  const { initialX, initialY, endX, endY, sweepFlag } = directionMapping[openingDirection];\r\n\r\n  return {\r\n    getPath: (x, y) => {\r\n      const startX = initialX + x;\r\n      const startY = initialY + y;\r\n      return `M${startX},${startY}a${radius},${radius} 0 1,${sweepFlag} ${endX},${endY}`;\r\n    },\r\n    width: radius * 2,\r\n    height: radius * 2,\r\n  };\r\n}\r\n\r\n/**\r\n * Create an wave object with a specified length and radial direction.\r\n * @param {number} length - The width (N/S) or height (W/E) of the wave.\r\n * @param {'N'|'S'|'W'|'E'} radialDirection - The direction of the leftmost (W/E) or uppermost (N/S) half-wave's arc.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n */\r\nexport function createWave(length, radialDirection) {\r\n  const radius = length * 5 / 8 / 2;\r\n\r\n  const directionMapping = {\r\n    'N': { initialX: 0, initialY: length / 8, endX: length / 2, endY: 0, firstSweepFlag: 1, secondSweepFlag: 0, width: length, height: length / 4 },\r\n    'S': { initialX: 0, initialY: length / 8, endX: length / 2, endY: 0, firstSweepFlag: 0, secondSweepFlag: 1, width: length, height: length / 4 },\r\n    'W': { initialX: length / 8, initialY: 0, endX: 0, endY: length / 2, firstSweepFlag: 0, secondSweepFlag: 1, width: length / 4, height: length },\r\n    'E': { initialX: length / 8, initialY: 0, endX: 0, endY: length / 2, firstSweepFlag: 1, secondSweepFlag: 0, width: length / 4, height: length },\r\n  };\r\n\r\n  const { initialX, initialY, endX, endY, firstSweepFlag, secondSweepFlag, width, height } = directionMapping[radialDirection];\r\n\r\n  return {\r\n    getPath: (x, y) => {\r\n      const startX = initialX + x;\r\n      const startY = initialY + y;\r\n      return `M${startX},${startY}a${radius},${radius} 0 0,${firstSweepFlag} ${endX},${endY}a${radius},${radius} 0 0,${secondSweepFlag} ${endX},${endY}`;\r\n    },\r\n    width,\r\n    height,\r\n  }\r\n}\r\n\r\n/**\r\n * Create an half-wave arc object with a specified length and radial direction.\r\n * @param {number} length - The width (N/S) or height (W/E) of the half-wave arc.\r\n * @param {'N'|'S'|'W'|'E'} radialDirection - The direction of the half-wave's arc.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n */\r\nexport function createHalfWave(length, radialDirection) {\r\n  const radius = length * 5 / 8;\r\n\r\n  const directionMapping = {\r\n    'N': { initialX: 0, initialY: length / 4, endX: length, endY: 0, sweepFlag: 1, width: length, height: length / 4 },\r\n    'S': { initialX: 0, initialY: 0, endX: length, endY: 0, sweepFlag: 0, width: length, height: length / 4 },\r\n    'W': { initialX: length / 4, initialY: 0, endX: 0, endY: length, sweepFlag: 0, width: length / 4, height: length },\r\n    'E': { initialX: 0, initialY: 0, endX: 0, endY: length, sweepFlag: 1, width: length / 4, height: length },\r\n  };\r\n\r\n  const { initialX, initialY, endX, endY, sweepFlag, width, height } = directionMapping[radialDirection];\r\n\r\n  return {\r\n    getPath: (x, y) => {\r\n      const startX = initialX + x;\r\n      const startY = initialY + y;\r\n      return `M${startX},${startY}a${radius},${radius} 0 0,${sweepFlag} ${endX},${endY}`;\r\n    },\r\n    width,\r\n    height,\r\n  };\r\n}\r\n\r\n/**\r\n * Create a horizontal quarter-wave arc object with a specified width and radial direction.\r\n * @param {number} width - The width of the quarter-wave arc.\r\n * @param {'NW'|'NE'|'SW'|'SE'} radialDirection - The direction of the quarter-wave's arc.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n */\r\nexport function createHorizontalQuarterWave(width, radialDirection) {\r\n  const radius = width * 5 / 4;\r\n\r\n  const directionMapping = {\r\n    'NW': { initialX: 0, initialY: width / 2, endX: width, endY: -width / 2, sweepFlag: 1 },\r\n    'NE': { initialX: 0, initialY: 0, endX: width, endY: width / 2, sweepFlag: 1 },\r\n    'SW': { initialX: 0, initialY: 0, endX: width, endY: width / 2, sweepFlag: 0 },\r\n    'SE': { initialX: 0, initialY: width / 2, endX: width, endY: -width / 2, sweepFlag: 0 },\r\n  };\r\n\r\n  const { initialX, initialY, endX, endY, sweepFlag } = directionMapping[radialDirection];\r\n\r\n  return {\r\n    getPath: (x, y) => {\r\n      const startX = initialX + x;\r\n      const startY = initialY + y;\r\n      return `M${startX},${startY}a${radius},${radius} 0 0,${sweepFlag} ${endX},${endY}`;\r\n    },\r\n    width,\r\n    height: width / 2,\r\n  };\r\n}\r\n\r\n/**\r\n * Create a vertical quarter-wave arc object with a specified height and radial direction.\r\n * @param {number} height - The height of the quarter-wave arc.\r\n * @param {'NW'|'NE'|'SW'|'SE'} radialDirection - The direction of the quarter-wave's arc.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n */\r\nexport function createVerticalQuarterWave(height, radialDirection) {\r\n  const radius = height * 5 / 4;\r\n\r\n  const directionMapping = {\r\n    'NW': { initialX: height / 2, initialY: 0, endX: -height / 2, endY: height, sweepFlag: 0 },\r\n    'NE': { initialX: 0, initialY: 0, endX: height / 2, endY: height, sweepFlag: 1 },\r\n    'SW': { initialX: 0, initialY: 0, endX: height / 2, endY: height, sweepFlag: 0 },\r\n    'SE': { initialX: height / 2, initialY: 0, endX: -height / 2, endY: height, sweepFlag: 1 },\r\n  };\r\n\r\n  const { initialX, initialY, endX, endY, sweepFlag } = directionMapping[radialDirection];\r\n\r\n  return {\r\n    getPath: (x, y) => {\r\n      const startX = initialX + x;\r\n      const startY = initialY + y;\r\n      return `M${startX},${startY}a${radius},${radius} 0 0,${sweepFlag} ${endX},${endY}`;\r\n    },\r\n    width: height / 2,\r\n    height,\r\n  };\r\n}\r\n\r\n/**\r\n * Create a vertical line object with a specified length.\r\n * @param {number} length - The length of the line.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n */\r\nexport function createVerticalLine(length) {\r\n  return {\r\n    getPath: (x, y) => `M${x},${y}v${length}`,\r\n    width: 0,\r\n    height: length,\r\n  };\r\n}\r\n\r\n/**\r\n * Create a horizontal line object with a specified length.\r\n * @param {number} length - The length of the line.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n */\r\nexport function createHorizontalLine(length) {\r\n  return {\r\n    getPath: (x, y) => `M${x},${y}h${length}`,\r\n    width: length,\r\n    height: 0,\r\n  };\r\n}\r\n\r\n/**\r\n * Create an ascending diagonal line object with a specified width and height.\r\n * @param {number} width - The horizontal length of the line.\r\n * @param {number} height - The vertical length of the line.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n */\r\nexport function createAscendingDiagonalLine(width, height) {\r\n  return {\r\n    getPath: (x, y) => `M${x},${y + height}l${width},${-height}`,\r\n    width,\r\n    height,\r\n  };\r\n};\r\n\r\n/**\r\n * Create a descending diagonal line object with a specified width and height.\r\n * @param {number} width - The horizontal length of the line.\r\n * @param {number} height - The vertical length of the line.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n */\r\nexport function createDescendingDiagonalLine(width, height) {\r\n  return {\r\n    getPath: (x, y) => `M${x},${y}l${width},${height}`,\r\n    width,\r\n    height,\r\n  };\r\n};\r\n\r\n/** \r\n * Create a diagonal line between a circle and a corner of a square in a specified direction, for a square/circle with a specified width/height/diameter.\r\n * @param {number} size - The width/height/diameter of the circle/square.\r\n * @param {'NW'|'NE'|'SW'|'SE'} direction - The direction of the diagonal line.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n*/\r\nexport function createDiagonalLineOutsideCircle(size, direction) {\r\n  const radius = size / 2;\r\n  const lineWidth = radius * (1 - Math.SQRT1_2);\r\n  const lineHeight = lineWidth;\r\n\r\n  const directionMapping = {\r\n    'NW': { initialX: 0, initialY: 0, endX: lineWidth, endY: lineHeight },\r\n    'NE': { initialX: size - lineWidth, initialY: lineHeight, endX: lineWidth, endY: -lineHeight },\r\n    'SW': { initialX: 0, initialY: size, endX: lineWidth, endY: -lineHeight },\r\n    'SE': { initialX: size - lineWidth, initialY: size - lineHeight, endX: lineWidth, endY: lineHeight },\r\n  };\r\n\r\n  const { initialX, initialY, endX, endY } = directionMapping[direction];\r\n\r\n  return {\r\n    //x and y are in this case the coordinates of the square that the diagonal lines are related to. Also width and height relates to the square.\r\n    getPath: (x, y) => {\r\n      const startX = initialX + x;\r\n      const startY = initialY + y;\r\n      return `M${startX},${startY}l${endX},${endY}`;\r\n    },\r\n    width: size,\r\n    height: size,\r\n  };\r\n}\r\n\r\n/** \r\n * Create an ascending diagonal line inside a circle with a specified radius.\r\n * @param {number} radius - The radius of the circle.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n*/\r\nexport function createAscendingDiagonalLineInsideCircle(radius) {\r\n  const lineWidth = radius * 2 * Math.SQRT1_2;\r\n  const lineHeight = lineWidth;\r\n\r\n  return {\r\n    //x and y are in this case the coordinates of the bounding box of the circle that the diagonal lines are related to. Also width and height relates to the square.\r\n    getPath: (x, y) => {\r\n      const startX = radius - lineWidth / 2 + x;\r\n      const startY = radius + lineHeight / 2 + y;\r\n      const endX = lineWidth;\r\n      const endY = -lineHeight;\r\n      return `M${startX},${startY}l${endX},${endY}`;\r\n    },\r\n    width: radius * 2,\r\n    height: radius * 2,\r\n  };\r\n}\r\n\r\n/** \r\n * Create a descending diagonal line inside a circle with a specified radius.\r\n * @param {number} radius - The radius of the circle.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n*/\r\nexport function createDescendingDiagonalLineInsideCircle(radius) {\r\n  const lineWidth = radius * 2 * Math.SQRT1_2;\r\n  const lineHeight = lineWidth;\r\n\r\n  return {\r\n    //x and y are in this case the coordinates of the bounding box of the circle that the diagonal lines are related to. Also width and height relates to the square.\r\n    getPath: (x, y) => {\r\n      const startX = radius - lineWidth / 2 + x;\r\n      const startY = radius - lineHeight / 2 + y;\r\n      const endX = lineWidth;\r\n      const endY = lineHeight;\r\n      return `M${startX},${startY}l${endX},${endY}`;\r\n    },\r\n    width: radius * 2,\r\n    height: radius * 2,\r\n  };\r\n}\r\n\r\n/** \r\n * Create a heart with a specified size.\r\n * @param {number} size - The size of the heart.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n*/\r\nexport function createHeart(size) {\r\n  const radius = size / 4\r\n\r\n  return {\r\n    getPath: (x, y) => `M${x},${y + radius}a${radius},${radius} 0 1,1 ${radius * 2},0a${radius},${radius} 0 1,1 ${radius * 2},0q0,${size * 3 / 8} ${-(size / 2)},${size * 3 / 4}q${-(size / 2)},${-(size * 3 / 8)} ${-(size / 2)},${-(size * 3 / 4)}`,\r\n    width: size,\r\n    height: size,\r\n  };\r\n}\r\n\r\n/** \r\n * Create an ear with a specified height.\r\n * @param {number} height - The height of the ear.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n*/\r\nexport function createEar(height) {\r\n  const radius = height / 4\r\n  \r\n  return {\r\n    getPath: (x, y) => `M${x},${y + radius}a${radius},${radius} 0 1,1 ${radius * 2},0q0,${height * 3 / 8} ${-(height / 2)},${height * 3 / 4}`,\r\n    width: height / 2,\r\n    height,\r\n  };\r\n}\r\n\r\n/** \r\n * Create a dot.\r\n * @param {number} defaultBaseStrokeWidth - The default stroke width to use with returned functions. The stroke-width of a normal line in the SVG, used to derive other dimensions of the dot.\r\n * @param {number} defaultExtraDotWidth - The default extra dot width do use with returned functions. The outer diameter of the dot is the normal stroke-width + extra-dot-width.\r\n * @returns {Object} - An object with a getDotData method, getDotSVGString method, width, and height properties.\r\n*/\r\nexport function createDot(defaultBaseStrokeWidth = 0.5, defaultExtraDotWidth = 0.333) {\r\n  const dot = {\r\n    /**\r\n     * Create an object with SVG string parts closePath, openPath, dotPath and openPath\r\n     * so that joining these can be used along with other shapes' getPath functions,\r\n     * based on specified strokeWidth and extraDotWidth.\r\n     * @param {number} x - The x-coordinate of the dot's position.\r\n     * @param {number} y - The y-coordinate of the dot's position.\r\n     * @param {number} baseStrokeWidth - The stroke-width of a normal line in the SVG, used to derive other dimensions of the dot.\r\n     * @param {number} extraDotWidth - A dot's outer diameter is the normal line stroke-width + extraDotWidth.\r\n     * @param {number} [settings.dotWidth] - Optional absolute rendered diameter; when set, overrides baseStrokeWidth/extraDotWidth (ink stroke-width = dotWidth/2).\r\n     * @param {number} [settings.outline] - Added to the dot's stroke-width alone (an ink area's), so its outer diameter grows by exactly that much around the same circle.\r\n     * @returns {Object} - An object with closePath, openPath, dotPath and openPath properties.\r\n     */\r\n    getDotData: (x, y, settings = { baseStrokeWidth: defaultBaseStrokeWidth, extraDotWidth: defaultExtraDotWidth }) => {\r\n      const dotStrokeWidth = settings.dotWidth !== undefined\r\n        ? settings.dotWidth / 2\r\n        : (settings.baseStrokeWidth + settings.extraDotWidth) / 2;\r\n      const dotStrokeRadius = dotStrokeWidth / 2;\r\n      const outline = settings.outline ?? 0;\r\n      return {\r\n        closePath: `\"/>`,\r\n        openWrapper: `<g stroke-width=\"${dotStrokeWidth + outline}\">`,\r\n        openDotPath: `<path d=\"`,\r\n        dotPath: `M${x - dotStrokeRadius},${y}a${dotStrokeRadius},${dotStrokeRadius} 0 1,1 ${dotStrokeRadius * 2},0a${dotStrokeRadius},${dotStrokeRadius} 0 1,1 ${-dotStrokeRadius * 2},0`,\r\n        closeDotPath: `\"/>`,\r\n        closeWrapper: `</g>`,\r\n        openPath: `<path d=\"`\r\n      };\r\n    },\r\n    width: 0,\r\n    height: 0,\r\n  };\r\n\r\n  /**\r\n   * Create an SVG string with the components closePath, openDotPath, dotPath and openPath\r\n   * so that joining these can be used along with other shapes' getPath functions,\r\n   * based on specified baseStrokeWidth and extraDotWidth.\r\n   * @param {number} x - The x-coordinate of the dot's position.\r\n   * @param {number} y - The y-coordinate of the dot's position.\r\n   * @param {number} baseStrokeWidth - The stroke-width of a normal line in the SVG, used to derive other dimensions of the dot.\r\n   * @param {number} extraDotWidth - A dot's outer diameter is the normal line stroke-width + extraDotWidth.\r\n   * @returns {Object} - An object with closePath, openPath, dotPath and openPath properties.\r\n   */\r\n  dot.getPath = (x, y, settings = { baseStrokeWidth: defaultBaseStrokeWidth, extraDotWidth: defaultExtraDotWidth }) => {\r\n    const { closePath, openWrapper, openDotPath, dotPath, closeDotPath, closeWrapper, openPath } = dot.getDotData(x, y, settings);\r\n    return `${closePath}${openWrapper}${openDotPath}${dotPath}${closeDotPath}${closeWrapper}${openPath}`;\r\n  };\r\n\r\n  return dot;\r\n}\r\n\r\n/** \r\n * Create a comma.\r\n * @param {number} defaultBaseStrokeWidth - The default stroke width to use with returned functions. The stroke-width of a normal line in the SVG, used to derive other dimensions of the comma.\r\n * @param {number} defaultExtraDotWidth - The default extra dot width to use with returned functions. The outer diameter of the dot (which the comma is partly made of) is the normal stroke-width + the extra dot width.\r\n * @returns {Object} - An object with a getCommaData method, getCommaSVGString method, width, and height properties.\r\n*/\r\nexport function createComma(defaultBaseStrokeWidth = 0.5, defaultExtraDotWidth = 0.333) {\r\n  const comma = {\r\n    /**\r\n     * Create an object with SVG string parts closePath, openDotPath, dotPath, openCommaPath, commaPath and openPath so that joining these can be used along with other shapes' getPath functions, based on specified strokeWidth and extraDotWidth.\r\n     * @param {number} x - The x-coordinate of the dot's position.\r\n     * @param {number} y - The y-coordinate of the dot's position.\r\n     * @param {number} baseStrokeWidth - The stroke-width of a normal line in the SVG, used to derive other dimensions of the comma.\r\n     * @param {number} extraDotWidth - A dot's outer diameter is the normal line stroke-width + extraDotWidth.\r\n     * @param {number} [settings.dotWidth] - Optional absolute rendered dot diameter; when set, overrides baseStrokeWidth/extraDotWidth (ink stroke-width = dotWidth/2). The comma tail scales off it too.\r\n     * @param {number} [settings.outline] - Added to the dot's and the tail's stroke-widths alone (an ink area's): the tail's curve still scales off the dot's own width, so the comma keeps its shape.\r\n     * @returns {Object} - An object with closePath, openDotPath, dotPath, commaPath and openPath properties.\r\n     */\r\n    getCommaData: (x, y, settings = { baseStrokeWidth: defaultBaseStrokeWidth, extraDotWidth: defaultExtraDotWidth }) => {\r\n      const dotStrokeWidth = settings.dotWidth !== undefined\r\n        ? settings.dotWidth / 2\r\n        : (settings.baseStrokeWidth + settings.extraDotWidth) / 2;\r\n      const dotStrokeRadius = dotStrokeWidth / 2;\r\n      const commaStrokeWidth = dotStrokeWidth * 2 / 3;\r\n      const outline = settings.outline ?? 0;\r\n      const commaStartX = commaStrokeWidth + x;\r\n      const commaStartY = y;\r\n      const commaEndX = commaStrokeWidth * -2;\r\n      const commaEndY = commaStrokeWidth * 4;\r\n      const commaQX = commaStrokeWidth / 4\r\n      const commaQY = commaStrokeWidth * 2.5;\r\n      return {\r\n        closePath: `\"/>`,\r\n        openDotWrapper: `<g stroke-width=\"${dotStrokeWidth + outline}\">`,\r\n        openDotPath: `<path d=\"`,\r\n        dotPath: `M${x - dotStrokeRadius},${y}a${dotStrokeRadius},${dotStrokeRadius} 0 1,1 ${dotStrokeRadius * 2},0a${dotStrokeRadius},${dotStrokeRadius} 0 1,1 ${-dotStrokeRadius * 2},0`,\r\n        closeDotPath: `\"/>`,\r\n        closeDotWrapper: `</g>`,\r\n        openCommaWrapper: `<g stroke-width=\"${commaStrokeWidth + outline}\">`,\r\n        openCommaPath: `<path d=\"`,\r\n        commaPath: `M${commaStartX},${commaStartY}q${commaQX},${commaQY} ${commaEndX},${commaEndY}`,\r\n        closeCommaPath: `\"/>`,\r\n        closeCommaWrapper: `</g>`,\r\n        openPath: `<path d=\"`\r\n      };\r\n    },\r\n    width: 0,\r\n    height: (defaultBaseStrokeWidth + defaultExtraDotWidth) * 4 / 3,\r\n  };\r\n\r\n  /**\r\n   * Create an SVG string with the components closePath, openDotPath, dotPath, openCommaPath, commaPath and openPath\r\n   * so that joining these can be used along with other elements' getPath functions,\r\n   * based on specified baseStrokeWidth and extraDotWidth.\r\n   * @param {number} x - The x-coordinate of the dot's position.\r\n   * @param {number} y - The y-coordinate of the dot's position.\r\n   * @param {number} baseStrokeWidth - The stroke-width of a normal line in the SVG, used to derive other dimensions of the comma.\r\n   * @param {number} extraDotWidth - A dot's outer diameter is the normal line stroke-width + extraDotWidth.\r\n   * @returns {Object} - An object with closePath, openDotPath, dotPath, openCommaPath, commaPath and openPath properties.\r\n   */\r\n  comma.getPath = (x, y, settings = { baseStrokeWidth: defaultBaseStrokeWidth, extraDotWidth: defaultExtraDotWidth }) => {\r\n    const { closePath, openDotWrapper, openDotPath, dotPath, closeDotPath, closeDotWrapper, openCommaWrapper, openCommaPath, commaPath, closeCommaPath, closeCommaWrapper, openPath } = comma.getCommaData(x, y, settings);\r\n    return `${closePath}${openDotWrapper}${openDotPath}${dotPath}${closeDotPath}${closeDotWrapper}${openCommaWrapper}${openCommaPath}${commaPath}${closeCommaPath}${closeCommaWrapper}${openPath}`;\r\n  };\r\n\r\n  return comma;\r\n}\r\n\r\n/**\r\n * Create a fiber with a specified height.\r\n * @param {number} height - The height of the fiber.\r\n * @returns {Object} - An object with a getPath method, width, and height properties.\r\n */\r\nexport function createFiber(height) {\r\n  const radius = height * 5 / 8;\r\n  const initialX = 0;\r\n  const initialY = height;\r\n  const midX = height / 4;\r\n  const midY = -height / 2;\r\n  const endX = height / 4;\r\n  const endY = -height / 2;\r\n\r\n  return {\r\n    getPath: (x, y) => {\r\n      const startX = initialX + x;\r\n      const startY = initialY + y;\r\n      return `M${startX},${startY}a${radius},${radius} 0 0,1 ${midX},${midY}a${radius},${radius} 0 0,0 ${endX},${endY}`;\r\n    },\r\n    width: height / 2,\r\n    height,\r\n  };\r\n}\r\n\r\n/**\r\n * Creates an external glyph object for the given rendered character. Its\r\n * getPath takes the `color` the letter is filled in and an `outline`: with\r\n * none the letter is filled only (`stroke=\"none\"`); with one (an ink area's)\r\n * it is stroked at that width too, in the stroke its group sets.\r\n *\r\n * @param {string} char - The rendered character (e.g. \"a\" from input code \"Xa\").\r\n * @return {object} An object with getPath, width, kerningRules, char, glyphCode, isExternalGlyph properties.\r\n */\r\nexport function createExternalGlyph(char) {\r\n  const aObj = alphabetData[`X${char}`];\r\n  const adjustX = -aObj.leftSideBearing;\r\n  const adjustY = -0.015; //revisit this\r\n  const closePath = `\"/>`;\r\n  const glyphPath = aObj?.getPath() || \"\";\r\n  const openPath = `<path d=\"`;\r\n\r\n  const round = (num) => parseFloat(num.toFixed(4));\r\n\r\n  // aObj.height is actually maxY (where the bottom of the glyph path sits), not content height.\r\n  const approxMinY = APPROX_GLYPH_MIN_Y;\r\n  const maxY = aObj.height || 0;\r\n\r\n  return {\r\n    getPath: (x, y, options = {}) => {\r\n      // Transform all M coordinates directly (paths use relative commands after M)\r\n      const transformedPath = glyphPath.replace(\r\n        /M(-?\\d+\\.?\\d*),(-?\\d+\\.?\\d*)/g,\r\n        (_, mx, my) => `M${round(parseFloat(mx) + x + adjustX)},${round(parseFloat(my) + y + adjustY)}`\r\n      );\r\n      const fill = options.color || \"#000000\";\r\n      const stroke = options.outline ? `stroke-width=\"${options.outline}\"` : 'stroke=\"none\"';\r\n      const openGlyphPath = `<path ${stroke} fill=\"${fill}\" d=\"`;\r\n      return `${closePath}${openGlyphPath}${transformedPath}${closePath}${openPath}`;\r\n    },\r\n    width: aObj.width || 0,\r\n    y: approxMinY,\r\n    height: maxY - approxMinY,\r\n    // Indicates that this \"shape\" is an external, non-Bliss glyph.\r\n    isExternalGlyph: true,\r\n    // The rendered character.\r\n    char: aObj.char,\r\n    // Single external glyph identifier (parallel to B-codes' glyphCode).\r\n    glyphCode: `X${aObj.char}`,\r\n    // The kerning rules for the glyph\r\n    kerningRules: {...aObj.kerningRules}\r\n  }\r\n}\r\n","/*\r\n * This Source Code Form is subject to the terms of the Mozilla Public\r\n * License, v. 2.0. If a copy of the MPL was not distributed with this\r\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\r\n */\r\n\r\nconst digitKerning = {\r\n  B9: -1, B10: -1, B11: -1, B12: -1, B13: -1,\r\n  B14: -1, B15: -1, B16: -1, B17: -1, B18: -1\r\n};\r\n\r\nconst smallDigitKerning = {\r\n  B19: -1, B20: -1, B21: -1, B22: -1, B23: -1,\r\n  B24: -1, B25: -1, B26: -1, B27: -1, B28: -1\r\n};\r\n\r\nconst glyphData = {\r\n  B1: {\r\n    codeString: \"VL6:0,8;DOT:0,16\",\r\n    shrinksPrecedingWordSpace: true\r\n  },\r\n  B2: {\r\n    codeString: \"C2:0,8;DL4-8N:0,8;C2:2,14\",\r\n    shrinksPrecedingWordSpace: true\r\n  },\r\n  B3: {\r\n    codeString: \"OC4SW:0,8;VL2:2,12;DOT:2,16\",\r\n    shrinksPrecedingWordSpace: true\r\n  },\r\n  B4: {\r\n    codeString: \"DOT:0,16\",\r\n    shrinksPrecedingWordSpace: true\r\n  },\r\n  B5: {\r\n    codeString: \"COMMA:0,16\",\r\n    shrinksPrecedingWordSpace: true\r\n  },\r\n  B6: {\r\n    codeString: \"DOT:0,14;DOT:0,16\",\r\n    shrinksPrecedingWordSpace: true\r\n  },\r\n  B7: {\r\n    codeString: \"COMMA:0,8\",\r\n    shrinksPrecedingWordSpace: true\r\n  },\r\n  B8: {\r\n    codeString: \"C2:0,8\"\r\n  },\r\n  B9: {\r\n    codeString: \"HC2N:0,12;VL2:0,13;HC2S:0,15;VL2:2,13\",\r\n    kerningRules: digitKerning\r\n  },\r\n  B10: {\r\n    codeString: \"DL1N:0,12;VL4:1,12;HL2:0,16\",\r\n    kerningRules: digitKerning\r\n  },\r\n  B11: {\r\n    codeString: \"HC2N:0,12;DL2-3N:0,13;HL2:0,16\",\r\n    kerningRules: digitKerning\r\n  },\r\n  B12: {\r\n    codeString: \"OC2SW:0,12;OC2NW:0,14\",\r\n    kerningRules: digitKerning\r\n  },\r\n  B13: {\r\n    codeString: \"VL2:0,12;HL2:0,14;VL4:2,12\",\r\n    kerningRules: digitKerning\r\n  },\r\n  B14: {\r\n    codeString: \"HL2:0,12;VL2:0,12;HL1:0,14;HL1:0,16;HC2E:1,14\",\r\n    kerningRules: digitKerning\r\n  },\r\n  B15: {\r\n    codeString: \"HC2N:0,12;VL2:0,13;C2:0,14\",\r\n    kerningRules: digitKerning\r\n  },\r\n  B16: {\r\n    codeString: \"HL2:0,12;DL1-4N:1,12\",\r\n    kerningRules: digitKerning\r\n  },\r\n  B17: {\r\n    codeString: \"C2:0,12;C2:0,14\",\r\n    kerningRules: digitKerning\r\n  },\r\n  B18: {\r\n    codeString: \"C2:0,12;HC2S:0,15;VL2:2,13\",\r\n    kerningRules: digitKerning\r\n  },\r\n  B19: {\r\n    codeString: \"HC1N:0,14;VL1:0,14.5;HC1S:0,15.5;VL1:1,14.5\",\r\n    kerningRules: smallDigitKerning\r\n  },\r\n  B20: {\r\n    codeString: \"DL.5N:0,14;VL2:0.5,14;HL1:0,16\",\r\n    kerningRules: smallDigitKerning\r\n  },\r\n  B21: {\r\n    codeString: \"HC1N:0,14;DL1-1.5N:0,14.5;HL1:0,16\",\r\n    kerningRules: smallDigitKerning\r\n  },\r\n  B22: {\r\n    codeString: \"OC1SW:0,14;OC1NW:0,15\",\r\n    kerningRules: smallDigitKerning\r\n  },\r\n  B23: {\r\n    codeString: \"VL1:0,14;HL1:0,15;VL2:1,14\",\r\n    kerningRules: smallDigitKerning\r\n  },\r\n  B24: {\r\n    codeString: \"HL1:0,14;VL1:0,14;HL.5:0,15;HL.5:0,16;HC1E:0.5,15\",\r\n    kerningRules: smallDigitKerning\r\n  },\r\n  B25: {\r\n    codeString: \"HC1N:0,14;VL1:0,14.5;C1:0,15\",\r\n    kerningRules: smallDigitKerning\r\n  },\r\n  B26: {\r\n    codeString: \"HL1:0,14;DL.5-2N:0.5,14\",\r\n    kerningRules: smallDigitKerning\r\n  },\r\n  B27: {\r\n    codeString: \"C1:0,14;C1:0,15\",\r\n    kerningRules: smallDigitKerning\r\n  },\r\n  B28: {\r\n    codeString: \"C1:0,14;HC1S:0,15.5;VL1:1,14.5\",\r\n    kerningRules: smallDigitKerning\r\n  },\r\n  B81: {\r\n    codeString: \"AA2N:0,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    name: \"INDICATOR ACTION\"\r\n  },\r\n  B82: {\r\n    codeString: \"AA2E:0,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    name: \"INDICATOR ACTIVE\"\r\n  },\r\n  B83: {\r\n    codeString: \"OC1SW:0,4;VL.25:0.5,5;SDOT:0.5,6\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    width: 1,\r\n    name: \"INDICATOR PRESENT CONDITIONAL\"\r\n  },\r\n  B84: {\r\n    codeString: \"B86;SDOT:3,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'adjectival',\r\n    anchorOffsetX: -0.5,\r\n    width: 3,\r\n    name: \"INDICATOR DESCRIPTION AFTER THE FACT\"\r\n  },\r\n  B85: {\r\n    codeString: \"SDOT:0,4;B86:1,0\",\r\n    isIndicator: true,\r\n    indicatorRole: 'adjectival',\r\n    anchorOffsetX:  0.5,\r\n    width: 3,\r\n    name: \"INDICATOR DESCRIPTION BEFORE THE FACT\"\r\n  },\r\n  B86: {\r\n    codeString: \"AA2S:0,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'adjectival',\r\n    name: \"INDICATOR DESCRIPTION\"\r\n  },\r\n  B87: {\r\n    codeString: \"HW2W:0,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    width: 0.5,\r\n    name: \"INDICATOR FUTURE\"\r\n  },\r\n  B88: {\r\n    codeString: \"B83;B87:2,0\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    width: 2.5,\r\n    name: \"INDICATOR FUTURE CONDITIONAL\"\r\n  },\r\n  B89: {\r\n    codeString: \"B91;B87:3,0\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    width: 3.5,\r\n    name: \"INDICATOR FUTURE PASSIVE\"\r\n  },\r\n  B90: {\r\n    codeString: \"B91;B88:3,0\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    width: 5.5,\r\n    name: \"INDICATOR FUTURE PASSIVE CONDITIONAL\"\r\n  },\r\n  B91: {\r\n    codeString: \"AA2W:0,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    name: \"INDICATOR PASSIVE\"\r\n  },\r\n  B92: {\r\n    codeString: \"HW2E:0,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    width: 0.5,\r\n    name: \"INDICATOR PAST\"\r\n  },\r\n  B93: {\r\n    codeString: \"B83;B92:2,0\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    width: 2.5,\r\n    name: \"INDICATOR PAST CONDITIONAL\"\r\n  },\r\n  B94: {\r\n    codeString: \"B91;B93:3,0\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    width: 5.5,\r\n    name: \"INDICATOR PAST PASSIVE CONDITIONAL\"\r\n  },\r\n  B95: {\r\n    codeString: \"B91;B92:3,0\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    width: 3.5,\r\n    name: \"INDICATOR PAST PASSIVE\"\r\n  },\r\n  B96: {\r\n    codeString: \"B91;B83:3,0\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    width: 4,\r\n    name: \"INDICATOR PRESENT PASSIVE CONDITIONAL\"\r\n  },\r\n  B97: {\r\n    codeString: \"S2:0,4\",\r\n    isIndicator: true,\r\n    semanticIndicator: 'thing',\r\n    indicatorRole: 'nominal',\r\n    name: \"INDICATOR THING\"\r\n  },\r\n  B98: {\r\n    codeString: \"B97;B99:3,0\",\r\n    isIndicator: true,\r\n    semanticIndicator: 'thing',\r\n    indicatorRole: 'nominal',\r\n    width: 5,\r\n    name: \"INDICATOR PLURAL THING\"\r\n  },\r\n  B99: {\r\n    codeString: \"DC2:0,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'nominal',\r\n    name: \"INDICATOR PLURAL\"\r\n  },\r\n  B100: {\r\n    codeString: \"DL2S:0,11\"\r\n  },\r\n  B101: {\r\n    codeString: \"B270;B297:2,0\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B102: {\r\n    codeString: \"RA4E:0,10\"\r\n  },\r\n  B103: {\r\n    codeString: \"B239;VL6:2,8;HL4:2,8;VL6:6,8\"\r\n  },\r\n  B104: {\r\n    codeString: \"VL6:2,10;HL4:0,12;HL4:0,14\"\r\n  },\r\n  B105: {\r\n    codeString: \"AA8N:0,8\"\r\n  },\r\n  B106: {\r\n    codeString: \"AA4N:0,12\"\r\n  },\r\n  B107: {\r\n    codeString: \"SC8:0,8\"\r\n  },\r\n  B108: {\r\n    codeString: \"B325;HL4:0,8;HL4:0,16\"\r\n  },\r\n  B109: {\r\n    codeString: \"B428;B270:2,0\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B110: {\r\n    codeString: \"B270;B270:2,0\"\r\n  },\r\n  B111: {\r\n    codeString: \"RA4W:0,10;RA4W:2,10\"\r\n  },\r\n  B112: {\r\n    codeString: \"HW4E:0,12\"\r\n  },\r\n  B113: {\r\n    codeString: \"B335;B335:0,4\"\r\n  },\r\n  B114: {\r\n    codeString: \"B597;B473:4,0\"\r\n  },\r\n  B115: {\r\n    codeString: \"B708;B700:2,0\"\r\n  },\r\n  B116: {\r\n    codeString: \"RA8S:0,8;VL4:4,12;HL8:0,16\"\r\n  },\r\n  B117: {\r\n    codeString: \"B291;B459\"\r\n  },\r\n  B118: {\r\n    codeString: \"Xa;Xb:3.2353933,0;Xc:6.4707865,0\"\r\n  },\r\n  B119: {\r\n    codeString: \"P4W:0,6;P4E:4,10;P4W:0,14\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B120: {\r\n    codeString: \"SC4:0,10\"\r\n  },\r\n  B121: {\r\n    codeString: \"DL8N:0,8;HL8:0,16\"\r\n  },\r\n  B122: {\r\n    codeString: \"HL8:0,12;AA4N:0,12;AA4N:4,12\"\r\n  },\r\n  B123: {\r\n    codeString: \"B122;B737:4,2\"\r\n  },\r\n  B124: {\r\n    codeString: \"HC4W:0,8;B122:2,0\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B125: {\r\n    codeString: \"B122;B737:4,0\"\r\n  },\r\n  B126: {\r\n    codeString: \"B122;HC2N:0,15;HC2N:4,15;HC2N:8,15\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B127: {\r\n    codeString: \"B122;B695:0,6\"\r\n  },\r\n  B128: {\r\n    codeString: \"P4E:0,14;B514:3,0\",\r\n    anchorOffsetX: 1.5\r\n  },\r\n  B129: {\r\n    codeString: \"B291;B699:3,0\"\r\n  },\r\n  B130: {\r\n    codeString: \"B281;B100:3,0\"\r\n  },\r\n  B131: {\r\n    codeString: \"HC4N:0,10;HC4N:4,10;HC8S:0,12;QC4NW:4,8\"\r\n  },\r\n  B132: {\r\n    codeString: \"RA4SW:0,8\"\r\n  },\r\n  B133: {\r\n    codeString: \"B212;HL4:0,10;VL2:4,10\"\r\n  },\r\n  B134: {\r\n    codeString: \"B255;B270\"\r\n  },\r\n  B135: {\r\n    codeString: \"RA4E:0,10;B270:4,0\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B136: {\r\n    codeString: \"LARRC8SC:0,8;B5840:3,0\"\r\n  },\r\n  B137: {\r\n    codeString: \"B257;B11:7,0;B500:8,0\"\r\n  },\r\n  B138: {\r\n    codeString: \"QC4NW:3,4;VQW4NW:1,8;VQW4NE:3,8;HW4W:0,12;HW4E:5,12;B528:2.5,0;HL4:1,16\",\r\n    anchorOffsetX: -0.5,\r\n    anchorOffsetY: -4\r\n  },\r\n  B139: {\r\n    codeString: \"VL4:0,10;P4E:8,10\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B140: {\r\n    codeString: \"C4:0,12;VL4:4,12;HL4:4,14;VL4:8,12\"\r\n  },\r\n  B141: {\r\n    codeString: \"C4:0,12;AA4W:4,12\"\r\n  },\r\n  B142: {\r\n    codeString: \"C4:0,12;AT4W:4,12\"\r\n  },\r\n  B143: {\r\n    codeString: \"P4E:0,6;B518:3,0\",\r\n    anchorOffsetX: 1.5,\r\n    anchorOffsetY: -1\r\n  },\r\n  B144: {\r\n    codeString: \"B335;B145:0,4\"\r\n  },\r\n  B145: {\r\n    codeString: \"LARR8W:0,10\"\r\n  },\r\n  B146: {\r\n    codeString: \"VL4:0,8;HL8:0,8;VL4:8,8;HC8S:0,12\"\r\n  },\r\n  B147: {\r\n    codeString: \"HC4N:2,10;R84:0,12\"\r\n  },\r\n  B148: {\r\n    codeString: \"C4:0,12;HL4:0,14\"\r\n  },\r\n  B149: {\r\n    codeString: \"C8:0,4;QC4SE:0,12\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B150: {\r\n    codeString: \"QC4NW:0,4;HW8E:0,8;HC8E:0,8\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B151: {\r\n    codeString: \"B612;B428:12,0\"\r\n  },\r\n  B152: {\r\n    codeString: \"B122;B708\"\r\n  },\r\n  B153: {\r\n    codeString: \"B281;B695:8,4\"\r\n  },\r\n  B154: {\r\n    codeString: \"B801;C4:1,10\"\r\n  },\r\n  B155: {\r\n    codeString: \"B1139;P4W:7,16\",\r\n    anchorOffsetX: -0.5\r\n  },\r\n  B156: {\r\n    codeString: \"VL8:0,8;HL8:0,12;DL4N:4,8;VL8:8,8\"\r\n  },\r\n  B157: {\r\n    codeString: \"B400;HC8N:2,8;HL8:2,12\"\r\n  },\r\n  B158: {\r\n    codeString: \"B270;B428:2,0\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B159: {\r\n    codeString: \"B428;B335\"\r\n  },\r\n  B160: {\r\n    codeString: \"B120:0,4\"\r\n  },\r\n  B161: {\r\n    codeString: \"C4:0,10;QC4NE:4,12\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B162: {\r\n    codeString: \"B428;B270:2,0;B428:4,0\"\r\n  },\r\n  B163: {\r\n    codeString: \"B708;AA2N:3,12\"\r\n  },\r\n  B164: {\r\n    codeString: \"B163;B695:0,6\"\r\n  },\r\n  B165: {\r\n    codeString: \"HW8W:0,8;HL8:2,8;HL2:2,16;HL2:8,16;HW8E:10,8;B140:2,-2;LARR4S:4,16\"\r\n  },\r\n  B166: {\r\n    codeString: \"B548;B622:3,0\"\r\n  },\r\n  B167: {\r\n    codeString: \"B712;B509\"\r\n  },\r\n  B168: {\r\n    codeString: \"S4:0,10;DL2N:0,8;HL4:2,8;DL2N:4,8;VL4:6,8;DL2N:4,12\"\r\n  },\r\n  B169: {\r\n    codeString: \"B639;P4N:2,13\"\r\n  },\r\n  B170: {\r\n    codeString: \"VL4:4,8;HL8:0,12;B239\"\r\n  },\r\n  B171: {\r\n    codeString: \"HW8W:0,8;HL8:2,8;HL8:2,16;HW8E:10,8\"\r\n  },\r\n  B172: {\r\n    codeString: \"DOT:0,8;VL4:0,10;DOT:0,16\"\r\n  },\r\n  B173: {\r\n    codeString: \"B497;OR48W:4,8\"\r\n  },\r\n  B174: {\r\n    codeString: \"VL4:2,8;C4:0,12\"\r\n  },\r\n  B175: {\r\n    codeString: \"B291;P4N:2,17\"\r\n  },\r\n  B176: {\r\n    codeString: \"C4:0,10;C4:4,10;RA4N:2,14\"\r\n  },\r\n  B177: {\r\n    codeString: \"S8:0,8;DL4N:0,4;HL8:4,4;DL4N:8,4;VL8:12,4;DL4N:8,12\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B178: {\r\n    codeString: \"C4:0,8;B106\"\r\n  },\r\n  B179: {\r\n    codeString: \"B666;P4W:9,10\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B180: {\r\n    codeString: \"HW4W:0,12;HL8:1,12;HL8:1,16;HW4E:9,12\"\r\n  },\r\n  B181: {\r\n    codeString: \"B171;P4N:2,12;P4N:6,12\"\r\n  },\r\n  B182: {\r\n    codeString: \"B1154;HC8N:4,12;B1154:12,0\"\r\n  },\r\n  B183: {\r\n    codeString: \"OR84S:0,12;VL8:4,8\"\r\n  },\r\n  B184: {\r\n    codeString: \"OR84N:0,8;VL8:4,8\"\r\n  },\r\n  B185: {\r\n    codeString: \"B345;P4W:5,10\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B186: {\r\n    codeString: \"B123;HC4N:0,10\"\r\n  },\r\n  B187: {\r\n    codeString: \"B1137;P4W:7,16\",\r\n    anchorOffsetX: -0.5\r\n  },\r\n  B188: {\r\n    codeString: \"B892;DL2N:9,9;DL2S:10,10\"\r\n  },\r\n  B189: {\r\n    codeString: \"B884;B188:10,0;HL10:12,16\"\r\n  },\r\n  B190: {\r\n    codeString: \"QC4SE:0,10;VL6:4,10;QC4SW:4,10\"\r\n  },\r\n  B191: {\r\n    codeString: \"B451:2,0;B239\"\r\n  },\r\n  B192: {\r\n    codeString: \"HL4:0,12;VL4:4,10\"\r\n  },\r\n  B193: {\r\n    codeString: \"HW8W:0,8;HW8E:2,8;HW8W:4,8;HW8E:6,8\"\r\n  },\r\n  B194: {\r\n    codeString: \"P4E:0,10;B518:3,0\",\r\n    anchorOffsetX: 1.5\r\n  },\r\n  B195: {\r\n    codeString: \"RA4W:0,10\"\r\n  },\r\n  B196: {\r\n    codeString: \"B422;HC4N:2,10\"\r\n  },\r\n  B197: {\r\n    codeString: \"B391;HC4N:0,10;HC4N:4,10\",\r\n    anchorOffsetX: -3\r\n  },\r\n  B198: {\r\n    codeString: \"B291;B424\"\r\n  },\r\n  B199: {\r\n    codeString: \"VL4:0,8;B688;RA8N:0,4;VL4:8,8\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B200: {\r\n    codeString: \"C4:0,8;VL4:0,10;VL4:4,10;HC4S:0,14\"\r\n  },\r\n  B201: {\r\n    codeString: \"B700:3,0;B939\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B202: {\r\n    codeString: \"B688;DL2N:5,9;DL2S:6,10\"\r\n  },\r\n  B203: {\r\n    codeString: \"QC4NW:4,12;B281;AA4S:2,16\"\r\n  },\r\n  B204: {\r\n    codeString: \"B1099;LARR4E:4,8\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B205: {\r\n    codeString: \"HL14:0,8;VL8:0,8;C4:2,10;HL6:4,10;C4:8,10;VL8:14,8;HL14:0,16\"\r\n  },\r\n  B206: {\r\n    codeString: \"RT8E:0,8\"\r\n  },\r\n  B207: {\r\n    codeString: \"B644;DOT:2,14\"\r\n  },\r\n  B208: {\r\n    codeString: \"B572;P4N:2,9\"\r\n  },\r\n  B209: {\r\n    codeString: \"B1119;VL6:2,8;VL8:4,8;VL6:6,8;HC4S:2,14\"\r\n  },\r\n  B210: {\r\n    codeString: \"HC4N:0,10;VL2:0,12;HC4S:0,14;VL10:2,8\"\r\n  },\r\n  B211: {\r\n    codeString: \"B265;B357:6,0\"\r\n  },\r\n  B212: {\r\n    codeString: \"VL8:0,8;HL4:0,12;VL4:4,12\"\r\n  },\r\n  B213: {\r\n    codeString: \"B423;B695\"\r\n  },\r\n  B214: {\r\n    codeString: \"B306;P4W:9,10\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B215: {\r\n    codeString: \"RA4NE:0,12;QC4SW:0,12\"\r\n  },\r\n  B216: {\r\n    codeString: \"DL8N:0,8;VL4:8,8;B651:6,2\",\r\n    anchorOffsetX: 3\r\n  },\r\n  B217: {\r\n    codeString: \"B338;B528:1.5,0;HW4W:5,8;C4:4,12;B528:5.5,0\"\r\n  },\r\n  B218: {\r\n    codeString: \"B171;P4N:4,12\"\r\n  },\r\n  B219: {\r\n    codeString: \"S8:0,8;HL8:0,12;DOT:4,10;DOT:4,14\"\r\n  },\r\n  B220: {\r\n    codeString: \"C4:0,8;B956\"\r\n  },\r\n  B221: {\r\n    codeString: \"B1132;P4W:9,6\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B222: {\r\n    codeString: \"B306;P4N:2,17\"\r\n  },\r\n  B223: {\r\n    codeString: \"B368:0,-4;HL4:0,12;B303:0,2\"\r\n  },\r\n  B224: {\r\n    codeString: \"B1085;P4N:4,17\"\r\n  },\r\n  B225: {\r\n    codeString: \"B281;B433:2,0\"\r\n  },\r\n  B226: {\r\n    codeString: \"B126;P4W:11,14\",\r\n    anchorOffsetX: -2.5\r\n  },\r\n  B227: {\r\n    codeString: \"B978;P4W:8,12\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B228: {\r\n    codeString: \"VL8:2,8;VL8:6,8;HL8:0,10;HL8:0,14\"\r\n  },\r\n  B229: {\r\n    codeString: \"B228;B548\"\r\n  },\r\n  B230: {\r\n    codeString: \"B597;W8N:0,7\",\r\n    anchorOffsetY: -1\r\n  },\r\n  B231: {\r\n    codeString: \"OR84N:0,12;VL4:4,12\"\r\n  },\r\n  B232: {\r\n    codeString: \"C4:0,10;C4:2,10\"\r\n  },\r\n  B233: {\r\n    codeString: \"C2:0,4;C2:1,4\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B234: {\r\n    codeString: \"B622:0,4;B255:1,0\"\r\n  },\r\n  B235: {\r\n    codeString: \"HC4N:0,8;HC4N:4,8;VL6:0,10;VL6:4,10;VL6:8,10;HL8:0,16\"\r\n  },\r\n  B236: {\r\n    codeString: \"W8S:0,11;B285:6,0\",\r\n    anchorOffsetX: 3\r\n  },\r\n  B237: {\r\n    codeString: \"RA8N:0,8;HC8S:0,12\"\r\n  },\r\n  B238: {\r\n    codeString: \"B447;B447:0,-4\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B239: {\r\n    codeString: \"HC8S:0,12\"\r\n  },\r\n  B240: {\r\n    codeString: \"B687;DOT:4,10;DOT:4,12;DOT:4,14\"\r\n  },\r\n  B241: {\r\n    codeString: \"B572;P4W:9,14\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B242: {\r\n    codeString: \"DL4S:0,8;OR84S:4,12\"\r\n  },\r\n  B243: {\r\n    codeString: \"B281;B322:4,0\"\r\n  },\r\n  B244: {\r\n    codeString: \"B281;B666\"\r\n  },\r\n  B245: {\r\n    codeString: \"B433;B710:4,0\"\r\n  },\r\n  B246: {\r\n    codeString: \"B433;B548:2,0;B710:8,0\"\r\n  },\r\n  B247: {\r\n    codeString: \"AT8N:0,8\"\r\n  },\r\n  B248: {\r\n    codeString: \"VL8:2,8;HL4:0,10\"\r\n  },\r\n  B249: {\r\n    codeString: \"B171;P4N:4,17\"\r\n  },\r\n  B250: {\r\n    codeString: \"RA4N:0,8;B651;RA4S:0,14\"\r\n  },\r\n  B251: {\r\n    codeString: \"B352;HC4E:4,10\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B252: {\r\n    codeString: \"S8:0,8;DOT:2,12;VL8:4,8;DOT:6,12\"\r\n  },\r\n  B253: {\r\n    codeString: \"B161;C4:0,14;HW4N:4,15\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B254: {\r\n    codeString: \"OS8S:0,8;QC4SE:0,8;QC4SW:4,8\"\r\n  },\r\n  B255: {\r\n    codeString: \"HC8E:0,8\"\r\n  },\r\n  B256: {\r\n    codeString: \"B247;B401:4,0\"\r\n  },\r\n  B257: {\r\n    codeString: \"B548;B314:2,0\"\r\n  },\r\n  B258: {\r\n    codeString: \"B281;B636\"\r\n  },\r\n  B259: {\r\n    codeString: \"B423;B939\"\r\n  },\r\n  B260: {\r\n    codeString: \"B447;B292\"\r\n  },\r\n  B261: {\r\n    codeString: \"B213;LARR8E:8,10\",\r\n    anchorOffsetX: -4\r\n  },\r\n  B262: {\r\n    codeString: \"B939;B578:2,0\"\r\n  },\r\n  B263: {\r\n    codeString: \"C4:0,12;HW4E:5,12\"\r\n  },\r\n  B264: {\r\n    codeString: \"B939;B562\"\r\n  },\r\n  B265: {\r\n    codeString: \"DL4S:0,12;HL8:4,16;DL4N:12,12\"\r\n  },\r\n  B266: {\r\n    codeString: \"DOT:4,10;HL8:0,12;DOT:4,14\"\r\n  },\r\n  B267: {\r\n    codeString: \"VL12:2,6;OC4SE:0,8;OC4NW:0,12\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B268: {\r\n    codeString: \"HC4E:0,14;B851:2,0\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B269: {\r\n    codeString: \"OS8S:0,8\"\r\n  },\r\n  B270: {\r\n    codeString: \"DOT:0,12\"\r\n  },\r\n  B271: {\r\n    codeString: \"LARR8S:0,8\"\r\n  },\r\n  B272: {\r\n    codeString: \"RA4SW:0,12;DL8N:0,8\"\r\n  },\r\n  B273: {\r\n    codeString: \"DL8S:0,8;RA4SE:4,12\"\r\n  },\r\n  B274: {\r\n    codeString: \"B219;P4W:9,8\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B275: {\r\n    codeString: \"B695;B329:2,0\"\r\n  },\r\n  B276: {\r\n    codeString: \"B391;HC4N:2,10\",\r\n    anchorOffsetX: -3\r\n  },\r\n  B277: {\r\n    codeString: \"B426;B270:4,-6\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B278: {\r\n    codeString: \"E:0,8\"\r\n  },\r\n  B279: {\r\n    codeString: \"B651;B278:2,0\"\r\n  },\r\n  B280: {\r\n    codeString: \"DL8S:0,8;C8:0,8\"\r\n  },\r\n  B281: {\r\n    codeString: \"HL8:0,16\"\r\n  },\r\n  B282: {\r\n    codeString: \"B636;P4E:5,10\"\r\n  },\r\n  B283: {\r\n    codeString: \"B639;P4S:6,9\"\r\n  },\r\n  B284: {\r\n    codeString: \"B559;OR48W:0,8\"\r\n  },\r\n  B285: {\r\n    codeString: \"C8:0,8;HW4N:2,11;HW4S:2,12\"\r\n  },\r\n  B286: {\r\n    codeString: \"B270;RA4E:0,10\"\r\n  },\r\n  B287: {\r\n    codeString: \"P4E:0,10;B132:3,0\",\r\n    anchorOffsetX: 1.5\r\n  },\r\n  B288: {\r\n    codeString: \"DL4N:0,8;HL4:0,12;DL4N:0,12\"\r\n  },\r\n  B289: {\r\n    codeString: \"DL8-4S:0,10;VL4:8,10;DL8-4S:8,10\"\r\n  },\r\n  B290: {\r\n    codeString: \"B171;B894:4,0\"\r\n  },\r\n  B291: {\r\n    codeString: \"S8:0,8\"\r\n  },\r\n  B292: {\r\n    codeString: \"B335;B428:8,0\"\r\n  },\r\n  B293: {\r\n    codeString: \"B289;B636:4,0\"\r\n  },\r\n  B294: {\r\n    codeString: \"B712;B695\"\r\n  },\r\n  B295: {\r\n    codeString: \"B518;DL2N:0,10\"\r\n  },\r\n  B296: {\r\n    codeString: \"VL2:2,6;HW8W:0,8;HW8E:2,8\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B297: {\r\n    codeString: \"AA8S:0,8\"\r\n  },\r\n  B298: {\r\n    codeString: \"B281;VQW4NE:4,12;QC4NE:4,12\"\r\n  },\r\n  B299: {\r\n    codeString: \"B894;B1154\"\r\n  },\r\n  B300: {\r\n    codeString: \"B666;QC4SE:0,10;QC4SW:4,10\"\r\n  },\r\n  B301: {\r\n    codeString: \"B447;B1042:2,0\"\r\n  },\r\n  B302: {\r\n    codeString: \"LARR4W:0,10;LARR4N:4,6;B651:4,0;LARR4E:8,10;LARR4S:4,14\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B303: {\r\n    codeString: \"C4:0,10;DOT:2,12\"\r\n  },\r\n  B304: {\r\n    codeString: \"B1138;P4W:5,6\",\r\n    anchorOffsetX: -1.5,\r\n    anchorOffsetY: -2\r\n  },\r\n  B305: {\r\n    codeString: \"B303;P4S:0,7\",\r\n    anchorOffsetY: -1\r\n  },\r\n  B306: {\r\n    codeString: \"B376;DOT:2,10;DOT:6,10\"\r\n  },\r\n  B307: {\r\n    codeString: \"B447;B299:2,0\"\r\n  },\r\n  B308: {\r\n    codeString: \"B393;B704:10,0\"\r\n  },\r\n  B309: {\r\n    codeString: \"B513;B548:2,0;B513:8,0\"\r\n  },\r\n  B310: {\r\n    codeString: \"HC8N:0,8;RA8S:0,12\"\r\n  },\r\n  B311: {\r\n    codeString: \"B548;B317\"\r\n  },\r\n  B312: {\r\n    codeString: \"B548;B433:2,0\"\r\n  },\r\n  B313: {\r\n    codeString: \"H:0,8\"\r\n  },\r\n  B314: {\r\n    codeString: \"AT4N:0,12\"\r\n  },\r\n  B315: {\r\n    codeString: \"B1135;P4W:17,12\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B316: {\r\n    codeString: \"B171;B140:2,-2\"\r\n  },\r\n  B317: {\r\n    codeString: \"B357;B281\"\r\n  },\r\n  B318: {\r\n    codeString: \"B374;P4W:5,6\",\r\n    anchorOffsetX: -1.5,\r\n    anchorOffsetY: -1\r\n  },\r\n  B319: {\r\n    codeString: \"W8E:0,8\"\r\n  },\r\n  B320: {\r\n    codeString: \"B484;B319:3,0\"\r\n  },\r\n  B321: {\r\n    codeString: \"HC8S:0,12;HC8N:0,12\"\r\n  },\r\n  B322: {\r\n    codeString: \"VL8:0,8;OS4W:0,8\"\r\n  },\r\n  B323: {\r\n    codeString: \"B572;P4N:2,17\"\r\n  },\r\n  B324: {\r\n    codeString: \"B572;P4S:2,13\"\r\n  },\r\n  B325: {\r\n    codeString: \"C4:0,8;VL4:2,12\"\r\n  },\r\n  B326: {\r\n    codeString: \"B1137;P4W:7,8\",\r\n    anchorOffsetX: -0.5\r\n  },\r\n  B327: {\r\n    codeString: \"B400;B708:2,0\"\r\n  },\r\n  B328: {\r\n    codeString: \"B597;B695\"\r\n  },\r\n  B329: {\r\n    codeString: \"B457;B1154\"\r\n  },\r\n  B330: {\r\n    codeString: \"B418;P4S:8,13\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B331: {\r\n    codeString: \"P4N:0,8;P4S:0,14\"\r\n  },\r\n  B332: {\r\n    codeString: \"RA4E:0,10;RA4E:2,10\"\r\n  },\r\n  B333: {\r\n    codeString: \"B306;P4S:2,7\",\r\n    anchorOffsetY: -1\r\n  },\r\n  B334: {\r\n    codeString: \"DL6N:0,10;DL4S:2,10;DL2N:2,8;DL2N:6,12\"\r\n  },\r\n  B335: {\r\n    codeString: \"LARR8E:0,10\"\r\n  },\r\n  B336: {\r\n    codeString: \"B484;B313\"\r\n  },\r\n  B337: {\r\n    codeString: \"VL4:0,10;P4E:2,10\"\r\n  },\r\n  B338: {\r\n    codeString: \"QC4NW:2,8;C4:0,12\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B339: {\r\n    codeString: \"B293;B291:4,0\"\r\n  },\r\n  B340: {\r\n    codeString: \"B1141;P4W:7,8\",\r\n    anchorOffsetX: -0.5\r\n  },\r\n  B341: {\r\n    codeString: \"HW8W:0,8\"\r\n  },\r\n  B342: {\r\n    codeString: \"B392;B700;B700:4,0\"\r\n  },\r\n  B343: {\r\n    codeString: \"B239;B694\"\r\n  },\r\n  B344: {\r\n    codeString: \"B281;B325:2,0\"\r\n  },\r\n  B345: {\r\n    codeString: \"B678;C4:0,10\"\r\n  },\r\n  B346: {\r\n    codeString: \"LARR4E:0,10;LARR4S:4,6;LARR4N:4,14;LARR4W:8,10\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B347: {\r\n    codeString: \"B106;B314:4,0\"\r\n  },\r\n  B348: {\r\n    codeString: \"B368;B457:0,-2\"\r\n  },\r\n  B349: {\r\n    codeString: \"B518;P4W:1,10\"\r\n  },\r\n  B350: {\r\n    codeString: \"B122;VL8:8,4;HL4:8,4\",\r\n    anchorOffsetX: -2,\r\n    anchorOffsetY: -4\r\n  },\r\n  B351: {\r\n    codeString: \"C4:0,8;B314\"\r\n  },\r\n  B352: {\r\n    codeString: \"OR48N:0,8\"\r\n  },\r\n  B353: {\r\n    codeString: \"B303;HC4N:4,10;B303:8,0\"\r\n  },\r\n  B354: {\r\n    codeString: \"OS8S:0,8;B148:2,0\"\r\n  },\r\n  B355: {\r\n    codeString: \"AA8N:0,4;HL2:0,12;HL2:6,12;B247\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B356: {\r\n    codeString: \"B239;B651:2,0\"\r\n  },\r\n  B357: {\r\n    codeString: \"B366;B366:4,0\"\r\n  },\r\n  B358: {\r\n    codeString: \"B312;B500:8,0\"\r\n  },\r\n  B359: {\r\n    codeString: \"B312;B455:8,0\"\r\n  },\r\n  B360: {\r\n    codeString: \"B312;B312:8,0\"\r\n  },\r\n  B361: {\r\n    codeString: \"B455;B500:8,0\"\r\n  },\r\n  B362: {\r\n    codeString: \"B455;B455:8,0\"\r\n  },\r\n  B363: {\r\n    codeString: \"B455;B312:8,0\"\r\n  },\r\n  B364: {\r\n    codeString: \"B500;B500:8,0\"\r\n  },\r\n  B365: {\r\n    codeString: \"C4:0,10;C4:4,10;C4:2,14;QC4NW:4,8\"\r\n  },\r\n  B366: {\r\n    codeString: \"QC4NW:0,12\"\r\n  },\r\n  B367: {\r\n    codeString: \"B281;HL8:0,20;VL2:8,18\"\r\n  },\r\n  B368: {\r\n    codeString: \"DC4:0,12\"\r\n  },\r\n  B369: {\r\n    codeString: \"HL12:0,12;HC4S:1,12\"\r\n  },\r\n  B370: {\r\n    codeString: \"B394;B271:2,0\"\r\n  },\r\n  B371: {\r\n    codeString: \"HW2W:0,10;HW2W:2,10;HW2W:4,10\"\r\n  },\r\n  B372: {\r\n    codeString: \"B1143;P4W:7,4\",\r\n    anchorOffsetX: -0.5,\r\n    anchorOffsetY: -3\r\n  },\r\n  B373: {\r\n    codeString: \"DL6N:0,10;DL4S:4,8\"\r\n  },\r\n  B374: {\r\n    codeString: \"DL4S:0,12;VL8:4,8\"\r\n  },\r\n  B375: {\r\n    codeString: \"B239;HL8:0,12;HC4N:2,10\"\r\n  },\r\n  B376: {\r\n    codeString: \"C8:0,8;VL4:4,10;HL4:2,14\"\r\n  },\r\n  B377: {\r\n    codeString: \"B132;VL8:4,8\"\r\n  },\r\n  B378: {\r\n    codeString: \"P4W:0,10;B319:3,0;P4E:6,10\"\r\n  },\r\n  B379: {\r\n    codeString: \"B122:4,0;DL4S:0,8;DL4S:4,8;DL4S:8,8\",\r\n    anchorOffsetX: 2\r\n  },\r\n  B380: {\r\n    codeString: \"P4E:0,14;B418:3,0\",\r\n    anchorOffsetX: -0.5\r\n  },\r\n  B381: {\r\n    codeString: \"B983;B700:2,0\"\r\n  },\r\n  B382: {\r\n    codeString: \"DL4-8N:0,8;B513:2,0\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B383: {\r\n    codeString: \"RA4E:0,10;B270:4,0;B270:6,0\",\r\n    anchorOffsetX: 2\r\n  },\r\n  B384: {\r\n    codeString: \"B418;P4W:5,6\",\r\n    anchorOffsetX: -2,\r\n    anchorOffsetY: -2\r\n  },\r\n  B385: {\r\n    codeString: \"B127;DL4N:8,8;DL2S:12,8\",\r\n    anchorOffsetX: -3\r\n  },\r\n  B386: {\r\n    codeString: \"B1154;B239:4,4;B1154:12,0\"\r\n  },\r\n  B387: {\r\n    codeString: \"HL8:0,12;RA4S:8,12\"\r\n  },\r\n  B388: {\r\n    codeString: \"B454;P4W:9,14\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B389: {\r\n    codeString: \"HL8:0,12;HC4N:4,10;QC4SE:8,8;QC4NE:8,12\"\r\n  },\r\n  B390: {\r\n    codeString: \"B123;P4W:9,8\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B391: {\r\n    codeString: \"B122;DL4N:8,8;DL2S:12,8\",\r\n    anchorOffsetX: -3\r\n  },\r\n  B392: {\r\n    codeString: \"B878;B548\"\r\n  },\r\n  B393: {\r\n    codeString: \"B433;B548:2,0\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B394: {\r\n    codeString: \"B695;B651:2,0\"\r\n  },\r\n  B395: {\r\n    codeString: \"AT4S:0,12;HC4N:0,10\"\r\n  },\r\n  B396: {\r\n    codeString: \"B418;QC4SE:0,16;QC4SE:8,16\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B397: {\r\n    codeString: \"B447;B271:2,0\"\r\n  },\r\n  B398: {\r\n    codeString: \"B291;B270:4,0\"\r\n  },\r\n  B399: {\r\n    codeString: \"VL4:0,10;HL4:0,12;R84:4,10;HL4:12,12\"\r\n  },\r\n  B400: {\r\n    codeString: \"AA4N:0,12;AA4N:4,12;AA4N:8,12\"\r\n  },\r\n  B401: {\r\n    codeString: \"VL3:0,10;DOT:0,14\"\r\n  },\r\n  B402: {\r\n    codeString: \"B335;B291:4,0\",\r\n    anchorOffsetX: 2\r\n  },\r\n  B403: {\r\n    codeString: \"QC4NW:0,12;HC4N:4,10;HL4:4,12;VL4:8,12;HL8:0,16\"\r\n  },\r\n  B404: {\r\n    codeString: \"B695:0,4;B281:8,0;B695:16,4\"\r\n  },\r\n  B405: {\r\n    codeString: \"VL4:0,12\"\r\n  },\r\n  B406: {\r\n    codeString: \"P4E:0,14;B1002:3,0\",\r\n    anchorOffsetX: 1.5\r\n  },\r\n  B407: {\r\n    codeString: \"HL8:0,12;HC4S:0,12;VL4:8,12\"\r\n  },\r\n  B408: {\r\n    codeString: \"B457;B457:4,0\"\r\n  },\r\n  B409: {\r\n    codeString: \"DS8:0,4;QC4SE:0,12\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B410: {\r\n    codeString: \"B514;P4W:5,14\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B411: {\r\n    codeString: \"DL4S:0,12;DL8N:0,8\"\r\n  },\r\n  B412: {\r\n    codeString: \"B447;OR84N:0,12\"\r\n  },\r\n  B413: {\r\n    codeString: \"VL8:0,8;HL4:0,10;HL4:0,14;VL8:4,8\"\r\n  },\r\n  B414: {\r\n    codeString: \"B457;B278:2,0\"\r\n  },\r\n  B415: {\r\n    codeString: \"B281;B366:4,0\"\r\n  },\r\n  B416: {\r\n    codeString: \"HW8W:0,8;VL8:2,8;HW8E:2,8\"\r\n  },\r\n  B417: {\r\n    codeString: \"B418;P4W:7,10\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B418: {\r\n    codeString: \"AA8N:0,8;HL4:0,16;HL4:8,16\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B419: {\r\n    codeString: \"QC4NW:2,4;HW8W:0,8;HW8E:2,8\",\r\n    anchorOffsetX: -1,\r\n    anchorOffsetY: -4\r\n  },\r\n  B420: {\r\n    codeString: \"VL4:0,10;HL8:0,12;VL4:8,10\"\r\n  },\r\n  B421: {\r\n    codeString: \"B291;RA8S:0,8\"\r\n  },\r\n  B422: {\r\n    codeString: \"B281;QC4NE:0,12;B366:4,0\"\r\n  },\r\n  B423: {\r\n    codeString: \"B636;VL8:4,8\"\r\n  },\r\n  B424: {\r\n    codeString: \"B636;B303:2,0\"\r\n  },\r\n  B425: {\r\n    codeString: \"B597;B288:4,0\"\r\n  },\r\n  B426: {\r\n    codeString: \"VL8:0,8;B655;VL8:8,8\"\r\n  },\r\n  B427: {\r\n    codeString: \"B428;B428:8,0\"\r\n  },\r\n  B428: {\r\n    codeString: \"VL8:0,8\"\r\n  },\r\n  B429: {\r\n    codeString: \"P4S:0,7;B457;P4N:0,15\",\r\n    anchorOffsetY: -1\r\n  },\r\n  B430: {\r\n    codeString: \"B818;HC4E:0,8;HC4W:6,8\"\r\n  },\r\n  B431: {\r\n    codeString: \"HL4:0,12;B313:4,0;B335:8,0\"\r\n  },\r\n  B432: {\r\n    codeString: \"B636;B700:2,0\"\r\n  },\r\n  B433: {\r\n    codeString: \"VL4:2,8;B106\"\r\n  },\r\n  B434: {\r\n    codeString: \"B518;DL2S:0,12\"\r\n  },\r\n  B435: {\r\n    codeString: \"W8E:0,8;QC4NW:1,4;B528:1.5,0;HC8E:1,8\"\r\n  },\r\n  B436: {\r\n    codeString: \"HL2:0,10;RA4N:2,8;HL2:6,10;RA4E:0,10;RA4W:6,10;HL8:0,14;VL2:4,14\"\r\n  },\r\n  B437: {\r\n    codeString: \"B548;B232:1,2\"\r\n  },\r\n  B438: {\r\n    codeString: \"B651;B1154\"\r\n  },\r\n  B439: {\r\n    codeString: \"B580;B829:3,0\"\r\n  },\r\n  B440: {\r\n    codeString: \"B509;B447;B457:2,0\"\r\n  },\r\n  B441: {\r\n    codeString: \"B420;VL4:4,10\"\r\n  },\r\n  B442: {\r\n    codeString: \"C8:0,8;C4:2,10;QC4NW:4,4\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B443: {\r\n    codeString: \"VL4:0,8;VL4:2,8;VL4:4,8;VL4:6,8;VL10:8,6;VL4:10,8;VL4:12,8;VL4:14,8;VL4:16,8;HL16:0,12;HL4:6,16\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B444: {\r\n    codeString: \"B457:0,-6;VL8:2,8;B1154\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B445: {\r\n    codeString: \"B289;B291:4,0\"\r\n  },\r\n  B446: {\r\n    codeString: \"B291;P4S:2,10\"\r\n  },\r\n  B447: {\r\n    codeString: \"HC8N:0,8\"\r\n  },\r\n  B448: {\r\n    codeString: \"B456;B270:6,2\"\r\n  },\r\n  B449: {\r\n    codeString: \"HL4:0,12\"\r\n  },\r\n  B450: {\r\n    codeString: \"DL4S:0,8;ARR4SW:0,12\"\r\n  },\r\n  B451: {\r\n    codeString: \"C4:0,8;C4:0,12;VL8:2,8\"\r\n  },\r\n  B452: {\r\n    codeString: \"VL8:0,8;HC8E:0,8\"\r\n  },\r\n  B453: {\r\n    codeString: \"HW8E:0,8;HC8E:0,8\"\r\n  },\r\n  B454: {\r\n    codeString: \"HC8N:0,12;B281\"\r\n  },\r\n  B455: {\r\n    codeString: \"B548;B710:2,0\"\r\n  },\r\n  B456: {\r\n    codeString: \"RT8SE:0,8\"\r\n  },\r\n  B457: {\r\n    codeString: \"C4:0,10\"\r\n  },\r\n  B458: {\r\n    codeString: \"B695:0,4;HL12:0,16\"\r\n  },\r\n  B459: {\r\n    codeString: \"DC8:0,8\"\r\n  },\r\n  B460: {\r\n    codeString: \"B718;P4W:5,10\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B461: {\r\n    codeString: \"HC4N:0,10;HL4:0,12;VL4:2,12\"\r\n  },\r\n  B462: {\r\n    codeString: \"VL6:4,8;C4:0,12\"\r\n  },\r\n  B463: {\r\n    codeString: \"HL4:0,8;VL8:2,8\"\r\n  },\r\n  B464: {\r\n    codeString: \"B509;B457:2,0\"\r\n  },\r\n  B465: {\r\n    codeString: \"B1142;P4W:6,16\"\r\n  },\r\n  B466: {\r\n    codeString: \"B171;P4S:4,5\",\r\n    anchorOffsetY: -3\r\n  },\r\n  B467: {\r\n    codeString: \"HL4:0,16;DL4-8N:2,8\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B468: {\r\n    codeString: \"VL8:0,8;HC4E:0,8\"\r\n  },\r\n  B469: {\r\n    codeString: \"B303;B278:2,0\"\r\n  },\r\n  B470: {\r\n    codeString: \"B281;B453:4,0\"\r\n  },\r\n  B471: {\r\n    codeString: \"B440;B939\"\r\n  },\r\n  B472: {\r\n    codeString: \"B636;P4N:2,9\"\r\n  },\r\n  B473: {\r\n    codeString: \"DL4-8N:0,8;HL4:0,16\"\r\n  },\r\n  B474: {\r\n    codeString: \"B112;B648:3,0\"\r\n  },\r\n  B475: {\r\n    codeString: \"B449:2,0;B281\"\r\n  },\r\n  B476: {\r\n    codeString: \"P4W:0,10;B477:3,0;P4E:12,10\"\r\n  },\r\n  B477: {\r\n    codeString: \"B136;P2E:1,11\"\r\n  },\r\n  B478: {\r\n    codeString: \"DL4-8N:1,8;HL8:2,10;DL4-8N:5,8;HL8:0,14\"\r\n  },\r\n  B479: {\r\n    codeString: \"B548;B347\"\r\n  },\r\n  B480: {\r\n    codeString: \"B695;B695:0,4\"\r\n  },\r\n  B481: {\r\n    codeString: \"QC4NW:1,8;HW4W:0,12;HW4E:1,12\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B482: {\r\n    codeString: \"B1154;P4S:0,14\"\r\n  },\r\n  B483: {\r\n    codeString: \"B281;C4:2,16;HW4W:3,16;HW4E:4,16\"\r\n  },\r\n  B484: {\r\n    codeString: \"OS8N:0,8\"\r\n  },\r\n  B485: {\r\n    codeString: \"B447;B457:2,0\"\r\n  },\r\n  B486: {\r\n    codeString: \"DL2N:0,8;VL8:2,8;DL2N:2,14\"\r\n  },\r\n  B487: {\r\n    codeString: \"B558;B558:4,0\"\r\n  },\r\n  B488: {\r\n    codeString: \"RA4W:0,10;B270:2,0\"\r\n  },\r\n  B489: {\r\n    codeString: \"B338;HW4W:1,12;HW4E:2,12\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B490: {\r\n    codeString: \"B291;B270:10,0\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B491: {\r\n    codeString: \"B291;B335:4,0\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B492: {\r\n    codeString: \"B291;B271:2,4\"\r\n  },\r\n  B493: {\r\n    codeString: \"B634;B270:4,-2\"\r\n  },\r\n  B494: {\r\n    codeString: \"HW8N:0,12;HL8:0,14;HW8S:0,14;B695:0,6\"\r\n  },\r\n  B495: {\r\n    codeString: \"HC4N:2,10;HL8:0,12;DL2-4S:0,12;HL4:2,16;DL2-4N:6,12\"\r\n  },\r\n  B496: {\r\n    codeString: \"HC4N:0,8;HC4N:4,8;VL6:4,10\"\r\n  },\r\n  B497: {\r\n    codeString: \"R48:0,8\"\r\n  },\r\n  B498: {\r\n    codeString: \"B428;B428:2,0\"\r\n  },\r\n  B499: {\r\n    codeString: \"HL12:0,8;VL8:0,8;RA8E:0,8;RA8W:8,8;VL8:12,8;HL12:0,16\"\r\n  },\r\n  B500: {\r\n    codeString: \"B548;B513:2,0\"\r\n  },\r\n  B501: {\r\n    codeString: \"B325;B281:2,0;B666:6,0\"\r\n  },\r\n  B502: {\r\n    codeString: \"DOT:2,10;HL4:0,12;DOT:2,14\"\r\n  },\r\n  B503: {\r\n    codeString: \"HW8E:0,8\"\r\n  },\r\n  B504: {\r\n    codeString: \"B122;P4W:9,14\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B505: {\r\n    codeString: \"B712;B313\"\r\n  },\r\n  B506: {\r\n    codeString: \"QC4NW:4,8;HC4N:0,10;HC4N:4,10;HC8S:0,12;B528:3.5,0\"\r\n  },\r\n  B507: {\r\n    codeString: \"QC4NW:3,4;VQW4NW:1,8;VQW4NE:3,8;HW4W:0,12;HW4E:5,12;HL4:1,16\",\r\n    anchorOffsetX: -0.5,\r\n    anchorOffsetY: -4\r\n  },\r\n  B508: {\r\n    codeString: \"B801;C2:2,9;C2:2,13\"\r\n  },\r\n  B509: {\r\n    codeString: \"DL8S:0,8\"\r\n  },\r\n  B510: {\r\n    codeString: \"B434;P4W:3,12\",\r\n    anchorOffsetX: -0.5\r\n  },\r\n  B511: {\r\n    codeString: \"QC4NW:2,4;VL2:2,8;HC2N:0,9;HC2N:2,9;VL4:0,10;VL4:4,10;HC4S:0,14\",\r\n    anchorOffsetX: -1,\r\n    anchorOffsetY: -4\r\n  },\r\n  B512: {\r\n    codeString: \"HL8:0,16;VL8:4,8\"\r\n  },\r\n  B513: {\r\n    codeString: \"HL4:0,16;VL8:2,8\"\r\n  },\r\n  B514: {\r\n    codeString: \"VL4:0,8;DL4S:0,12;HL4:0,16\"\r\n  },\r\n  B515: {\r\n    codeString: \"HL8:0,16;VL4:8,12\"\r\n  },\r\n  B516: {\r\n    codeString: \"RA8N:0,12;VL4:8,12\"\r\n  },\r\n  B517: {\r\n    codeString: \"VL4:0,8;HL4:0,12;VL4:4,12\"\r\n  },\r\n  B518: {\r\n    codeString: \"VL8:0,8;HL4:0,16\"\r\n  },\r\n  B519: {\r\n    codeString: \"RA8E:0,8;HL4:0,16\"\r\n  },\r\n  B520: {\r\n    codeString: \"OR84S:0,12;HL2:8,16;B695:10,4;B170:10,0\"\r\n  },\r\n  B521: {\r\n    codeString: \"HC4S:0,8;HC4W:2,8;B122:4,0\",\r\n    anchorOffsetX: 2\r\n  },\r\n  B522: {\r\n    codeString: \"B156;P4S:6,5\",\r\n    anchorOffsetX: -1,\r\n    anchorOffsetY: -3\r\n  },\r\n  B523: {\r\n    codeString: \"B1140;P4W:9,10\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B524: {\r\n    codeString: \"HL4:0,12;VL4:2,12\"\r\n  },\r\n  B525: {\r\n    codeString: \"QC4NE:0,4;VL4:4,4;QC4NW:4,4;HC4N:2,8;VL4:2,10;VL4:6,10;HC4S:2,14\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B526: {\r\n    codeString: \"B1086;P4W:13,12\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B527: {\r\n    codeString: \"C4:0,12;HL8:2,12;HL8:2,16\"\r\n  },\r\n  B528: {\r\n    codeString: \"HW2W:0,13;HW2E:0.5,13\"\r\n  },\r\n  B529: {\r\n    codeString: \"B180;HL8:1,14\"\r\n  },\r\n  B530: {\r\n    codeString: \"DL4S:0,8;OR48N:4,8;HC4E:8,10\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B531: {\r\n    codeString: \"B281;P4S:2,14\"\r\n  },\r\n  B532: {\r\n    codeString: \"B447;B840\"\r\n  },\r\n  B533: {\r\n    codeString: \"B325;QC4NW:2,12\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B534: {\r\n    codeString: \"B884;B688:10,0;HL6:12,16\"\r\n  },\r\n  B535: {\r\n    codeString: \"HC4W:0,8;DC4:2,12;HC4E:6,8\"\r\n  },\r\n  B536: {\r\n    codeString: \"B411;B281\"\r\n  },\r\n  B537: {\r\n    codeString: \"B338;B528:1.5,0\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B538: {\r\n    codeString: \"B411;P4W:9,6\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B539: {\r\n    codeString: \"B878;B695\"\r\n  },\r\n  B540: {\r\n    codeString: \"B559;B270:6,0\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B541: {\r\n    codeString: \"B620;VL8:0,8;HL8:0,16\"\r\n  },\r\n  B542: {\r\n    codeString: \"OR84N:0,12;DL4N:8,8\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B543: {\r\n    codeString: \"HW2N:1,9.5;VL6:1,10;HL2:0,12;HL3:1,16;HC2E:4,14\"\r\n  },\r\n  B544: {\r\n    codeString: \"DOT:0,16;DOT:4,12;DOT:4,16\"\r\n  },\r\n  B545: {\r\n    codeString: \"B289;B105:4,0\"\r\n  },\r\n  B546: {\r\n    codeString: \"B503;B341:4,0\"\r\n  },\r\n  B547: {\r\n    codeString: \"B198;LARR4E:8,10\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B548: {\r\n    codeString: \"RA8N:0,8\"\r\n  },\r\n  B549: {\r\n    codeString: \"B1129;P4W:9,16\"\r\n  },\r\n  B550: {\r\n    codeString: \"HL16:0,16;HL8:8,8;VL8:16,8\"\r\n  },\r\n  B551: {\r\n    codeString: \"B559;B559:4,0\"\r\n  },\r\n  B552: {\r\n    codeString: \"AT8N:0,8;DL8-4S:4,8;DL4N:8,12\"\r\n  },\r\n  B553: {\r\n    codeString: \"B484;B699:3,0\"\r\n  },\r\n  B554: {\r\n    codeString: \"B335:4,0;B335:0,4\"\r\n  },\r\n  B555: {\r\n    codeString: \"DL4N:0,12;DLOC4SW:4,8;C4:4,8;SC4:4,8\"\r\n  },\r\n  B556: {\r\n    codeString: \"B695;B271:2,0\"\r\n  },\r\n  B557: {\r\n    codeString: \"C2:0,11;C2:2,10;C2:2,12;QC4NE:4,12\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B558: {\r\n    codeString: \"RA8W:0,8\"\r\n  },\r\n  B559: {\r\n    codeString: \"RA8E:0,8\"\r\n  },\r\n  B560: {\r\n    codeString: \"B548;B513:6,0;B548:8,0\"\r\n  },\r\n  B561: {\r\n    codeString: \"COMMA:0,12;COMMA:2,12\"\r\n  },\r\n  B562: {\r\n    codeString: \"B313;B281\"\r\n  },\r\n  B563: {\r\n    codeString: \"B428;B145:2,0\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B564: {\r\n    codeString: \"B391;QC2SE:14,8\",\r\n    anchorOffsetX: -4\r\n  },\r\n  B565: {\r\n    codeString: \"B695:0,4;B357:2,0\"\r\n  },\r\n  B566: {\r\n    codeString: \"RA8SW:0,8;RA2NE:0,14\"\r\n  },\r\n  B567: {\r\n    codeString: \"C8:0,8;C4:2,10\"\r\n  },\r\n  B568: {\r\n    codeString: \"B335;B695:0,4\"\r\n  },\r\n  B569: {\r\n    codeString: \"B1148;P4S:2,13\"\r\n  },\r\n  B570: {\r\n    codeString: \"HW4W:0,12;HL4:1,12;HL4:1,16;HW4E:5,12\"\r\n  },\r\n  B571: {\r\n    codeString: \"B418;B700:0,4;B700:8,4\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B572: {\r\n    codeString: \"OS8W:0,8\"\r\n  },\r\n  B573: {\r\n    codeString: \"B1119;QC4SW:4,16\"\r\n  },\r\n  B574: {\r\n    codeString: \"VL4:0,8;B239;VL4:8,8\"\r\n  },\r\n  B575: {\r\n    codeString: \"VL8:0,8;DL4S:0,8;HL4:0,12\"\r\n  },\r\n  B576: {\r\n    codeString: \"B170;DL4S:4,8\"\r\n  },\r\n  B577: {\r\n    codeString: \"B265;QC4NE:4,12;QC4NW:8,12\"\r\n  },\r\n  B578: {\r\n    codeString: \"HL4:0,10;HL4:0,14\"\r\n  },\r\n  B579: {\r\n    codeString: \"DL12N:0,8;RA4SE:4,12;RA4SE:8,8\"\r\n  },\r\n  B580: {\r\n    codeString: \"B447;B247\"\r\n  },\r\n  B581: {\r\n    codeString: \"C4:0,12;VL8:4,8;C4:4,12\"\r\n  },\r\n  B582: {\r\n    codeString: \"VL8:0,8;W8E:2,8;VL8:6,8\"\r\n  },\r\n  B583: {\r\n    codeString: \"B291;B457:2,0\"\r\n  },\r\n  B584: {\r\n    codeString: \"B281;DOT:2,18;DOT:6,18\"\r\n  },\r\n  B585: {\r\n    codeString: \"DL8-4N:0,10;AT4N:2,12\"\r\n  },\r\n  B586: {\r\n    codeString: \"C4:2,8;C4:0,12;C4:4,12;VL2:4,14;QC4SE:0,16\"\r\n  },\r\n  B587: {\r\n    codeString: \"OS8S:0,8;HL8:0,12\"\r\n  },\r\n  B588: {\r\n    codeString: \"B1006;P4W:9,10\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B589: {\r\n    codeString: \"B171;P4S:8,5\",\r\n    anchorOffsetY: -3\r\n  },\r\n  B590: {\r\n    codeString: \"HL4:0,8;VL6:2,8;HL4:0,14;HC4S:0,14\"\r\n  },\r\n  B591: {\r\n    codeString: \"B572;B556\"\r\n  },\r\n  B592: {\r\n    codeString: \"B171;P4W:13,10\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B593: {\r\n    codeString: \"B291;P4W:9,10\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B594: {\r\n    codeString: \"B239;B271:2,4\"\r\n  },\r\n  B595: {\r\n    codeString: \"B239;B695\"\r\n  },\r\n  B596: {\r\n    codeString: \"B688;QC4SE:8,8\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B597: {\r\n    codeString: \"HL8:0,8\"\r\n  },\r\n  B598: {\r\n    codeString: \"B1084;OS4S:0,12\"\r\n  },\r\n  B599: {\r\n    codeString: \"B291;B303:2,0\"\r\n  },\r\n  B600: {\r\n    codeString: \"B473;B1154:0,2\"\r\n  },\r\n  B601: {\r\n    codeString: \"HL8:0,16;HC4N:4,14;DL4N:8,12\"\r\n  },\r\n  B602: {\r\n    codeString: \"HC4N:0,12;HC4S:4,14;HC4N:8,12\"\r\n  },\r\n  B603: {\r\n    codeString: \"B602;B695:2,6\"\r\n  },\r\n  B604: {\r\n    codeString: \"B695;VL6:4,8;B622:3,4\"\r\n  },\r\n  B605: {\r\n    codeString: \"B604;P4W:6,14\"\r\n  },\r\n  B606: {\r\n    codeString: \"B651:0,2;B651:4,-2\"\r\n  },\r\n  B607: {\r\n    codeString: \"B548;B106:2,0\"\r\n  },\r\n  B608: {\r\n    codeString: \"B278;B1154\"\r\n  },\r\n  B609: {\r\n    codeString: \"B265;B695:4,0\"\r\n  },\r\n  B610: {\r\n    codeString: \"B636;P4S:2,13\"\r\n  },\r\n  B611: {\r\n    codeString: \"RA8SW:0,8;DL4N:0,12\"\r\n  },\r\n  B612: {\r\n    codeString: \"W8S:0,11;HW4N:8,11;HW4S:8,12\"\r\n  },\r\n  B613: {\r\n    codeString: \"C4:2,10;HC8N:0,12;HW4E:4,12\"\r\n  },\r\n  B614: {\r\n    codeString: \"DL4N:0,12;DLOC4SW:4,8;C4:4,8\"\r\n  },\r\n  B615: {\r\n    codeString: \"DL4-8S:0,8;HL4:4,16\"\r\n  },\r\n  B616: {\r\n    codeString: \"B513;B548:2,0\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B617: {\r\n    codeString: \"B482;B457\"\r\n  },\r\n  B618: {\r\n    codeString: \"B1119;C8:0,8;C4:2,10\"\r\n  },\r\n  B619: {\r\n    codeString: \"RA4NW:0,12;RA4NW:4,8\"\r\n  },\r\n  B620: {\r\n    codeString: \"HL8:0,8;VL4:4,8;HL4:4,12;VL8:8,8\"\r\n  },\r\n  B621: {\r\n    codeString: \"AT8N:0,8;AT8S:0,10\"\r\n  },\r\n  B622: {\r\n    codeString: \"VL4:1,10;DC2:0,11\"\r\n  },\r\n  B623: {\r\n    codeString: \"B695;B678:2,0\"\r\n  },\r\n  B624: {\r\n    codeString: \"B572;B623\"\r\n  },\r\n  B625: {\r\n    codeString: \"B325;P4W:3,12\",\r\n    anchorOffsetX: -0.5\r\n  },\r\n  B626: {\r\n    codeString: \"B393;B455:10,0\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B627: {\r\n    codeString: \"B704;B312:8,0\"\r\n  },\r\n  B628: {\r\n    codeString: \"B171;P4S:4,10\"\r\n  },\r\n  B629: {\r\n    codeString: \"RT4SE:0,12\"\r\n  },\r\n  B630: {\r\n    codeString: \"B291;B319:3,0\"\r\n  },\r\n  B631: {\r\n    codeString: \"B161;DOT:1,12;DOT:3,12;DOT:2,13\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B632: {\r\n    codeString: \"B1150;P4S:2,13\"\r\n  },\r\n  B633: {\r\n    codeString: \"DOT:0,8;HL4:2,8;DOT:8,8;VL4:0,10;VL4:8,10;DOT:0,16;HL4:2,16;DOT:8,16\"\r\n  },\r\n  B634: {\r\n    codeString: \"HL8:0,12\"\r\n  },\r\n  B635: {\r\n    codeString: \"B1063;B335:4,0\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B636: {\r\n    codeString: \"C8:0,8\"\r\n  },\r\n  B637: {\r\n    codeString: \"B695:0,4;B1154\"\r\n  },\r\n  B638: {\r\n    codeString: \"B851;W8W:7,8;DL2S:8,8\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B639: {\r\n    codeString: \"OR84S:0,12\"\r\n  },\r\n  B640: {\r\n    codeString: \"P4E:0,8;B124:3,0\",\r\n    anchorOffsetX: 2.5\r\n  },\r\n  B641: {\r\n    codeString: \"B201:0,-4;HL15:0,12;B700:3,0;B700:7,0;B700:11,0;DL2N:12,9;DL2S:13,10\",\r\n    anchorOffsetX: 1.5,\r\n    anchorOffsetY: -4\r\n  },\r\n  B642: {\r\n    codeString: \"B473;B457\"\r\n  },\r\n  B643: {\r\n    codeString: \"B108;HL4:0,12\"\r\n  },\r\n  B644: {\r\n    codeString: \"B1121;B1121:4,0\"\r\n  },\r\n  B645: {\r\n    codeString: \"B927;DOT:2,18\"\r\n  },\r\n  B646: {\r\n    codeString: \"B270:0,2;B647:1,0\",\r\n    anchorOffsetX: 0.5\r\n  },\r\n  B647: {\r\n    codeString: \"DL2N:0,11\"\r\n  },\r\n  B648: {\r\n    codeString: \"HW4W:0,12\"\r\n  },\r\n  B649: {\r\n    codeString: \"B270;B270:2,0;RA4W:4,10\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B650: {\r\n    codeString: \"RT4E:0,10\"\r\n  },\r\n  B651: {\r\n    codeString: \"S4:0,10\"\r\n  },\r\n  B652: {\r\n    codeString: \"B647;B270:3,-2\",\r\n    anchorOffsetX: -0.5\r\n  },\r\n  B653: {\r\n    codeString: \"B335;B428:4,0\"\r\n  },\r\n  B654: {\r\n    codeString: \"P4E:0,10;B374:3,0\",\r\n    anchorOffsetX: 1.5\r\n  },\r\n  B655: {\r\n    codeString: \"C8:0,8;RA4SW:4,8\"\r\n  },\r\n  B656: {\r\n    codeString: \"B700;P4W:5,12\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B657: {\r\n    codeString: \"P4E:0,10;VL4:4,10\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B658: {\r\n    codeString: \"B418;P4W:13,14\",\r\n    anchorOffsetX: -3.5\r\n  },\r\n  B659: {\r\n    codeString: \"B695:0,4;B212:2,0\"\r\n  },\r\n  B660: {\r\n    codeString: \"B374;B651:2,0\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B661: {\r\n    codeString: \"B291;P4S:2,5\",\r\n    anchorOffsetY: -3\r\n  },\r\n  B662: {\r\n    codeString: \"AT4S:0,12;VL2:2,10\"\r\n  },\r\n  B663: {\r\n    codeString: \"VL2:2,6;VL2:6,6;S8:0,8;VL2:2,16;VL2:6,16\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B664: {\r\n    codeString: \"B827;HL4:8,12;B700:8,0;DL2N:9,9;DL2S:10,10\"\r\n  },\r\n  B665: {\r\n    codeString: \"RA2NE:0,14;HL8:2,16;RA2NW:10,14\"\r\n  },\r\n  B666: {\r\n    codeString: \"QC4SE:0,8;VL8:4,8;QC4SW:4,8\"\r\n  },\r\n  B667: {\r\n    codeString: \"B281;B700:2,0\"\r\n  },\r\n  B668: {\r\n    codeString: \"B188;OS4S:0,8\"\r\n  },\r\n  B669: {\r\n    codeString: \"B666;P4W:5,12\"\r\n  },\r\n  B670: {\r\n    codeString: \"B447;B1048\"\r\n  },\r\n  B671: {\r\n    codeString: \"B281;C4:2,16;B416:2,0\"\r\n  },\r\n  B672: {\r\n    codeString: \"B122;HC8N:0,8;DL4N:8,8\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B673: {\r\n    codeString: \"B447;B502:2,0\"\r\n  },\r\n  B674: {\r\n    codeString: \"B548;VL6:4,8;HC4S:4,14\"\r\n  },\r\n  B675: {\r\n    codeString: \"B607;B11:7,0;B500:8,0\"\r\n  },\r\n  B676: {\r\n    codeString: \"B634;B270:4,2\"\r\n  },\r\n  B677: {\r\n    codeString: \"VL4:2,10;P4E:0,10\"\r\n  },\r\n  B678: {\r\n    codeString: \"LARR8N:0,8\"\r\n  },\r\n  B679: {\r\n    codeString: \"DL8S:0,8;RA4NW:0,8\"\r\n  },\r\n  B680: {\r\n    codeString: \"DL8N:0,8;RA4NE:4,8\"\r\n  },\r\n  B681: {\r\n    codeString: \"B171;B314:4,-2\"\r\n  },\r\n  B682: {\r\n    codeString: \"HW8W:0,8;HL8:2,8;HL2:2,16;HL2:8,16;HW8E:10,8;B314:4,-2;P4N:4,16\"\r\n  },\r\n  B683: {\r\n    codeString: \"B1144;P4S:10,13\"\r\n  },\r\n  B684: {\r\n    codeString: \"C4:2,12;B1119\"\r\n  },\r\n  B685: {\r\n    codeString: \"QC4NW:4,12;B281;C4:2,16\"\r\n  },\r\n  B686: {\r\n    codeString: \"B685;HW4W:3,16;HW4E:4,16\"\r\n  },\r\n  B687: {\r\n    codeString: \"HC4N:2,8;VL4:2,10;VL4:6,10;HC4S:2,14;B1119\"\r\n  },\r\n  B688: {\r\n    codeString: \"HL8:0,12;B700;B700:4,0\"\r\n  },\r\n  B689: {\r\n    codeString: \"DL4S:0,8;B688:4,0\",\r\n    anchorOffsetX: 1.5\r\n  },\r\n  B690: {\r\n    codeString: \"B171:3,0;P4E:0,10;P4W:16,10\"\r\n  },\r\n  B691: {\r\n    codeString: \"B572;P4W:9,10\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B692: {\r\n    codeString: \"DC2:0,8;VL8:1,8\"\r\n  },\r\n  B693: {\r\n    codeString: \"B411;DL4N:8,12;DL8S:4,8\"\r\n  },\r\n  B694: {\r\n    codeString: \"B939;B651:2,0\"\r\n  },\r\n  B695: {\r\n    codeString: \"W8N:0,11\"\r\n  },\r\n  B696: {\r\n    codeString: \"B636;B556\"\r\n  },\r\n  B697: {\r\n    codeString: \"HL8:0,12;AT4N:2,12\"\r\n  },\r\n  B698: {\r\n    codeString: \"B636;P4W:1,10\"\r\n  },\r\n  B699: {\r\n    codeString: \"OC2SW:0,10;VL1:1,12;DOT:1,14\"\r\n  },\r\n  B700: {\r\n    codeString: \"C4:0,12;DLIC4N:0,12;DLIC4S:0,12\"\r\n  },\r\n  B701: {\r\n    codeString: \"B212;B700\"\r\n  },\r\n  B702: {\r\n    codeString: \"B281;B561:3,0\"\r\n  },\r\n  B703: {\r\n    codeString: \"B281;B699:3,0\"\r\n  },\r\n  B704: {\r\n    codeString: \"B548;B710:6,0\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B705: {\r\n    codeString: \"B114;B335:4,0\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B706: {\r\n    codeString: \"B291;SC8:0,8\"\r\n  },\r\n  B707: {\r\n    codeString: \"B291;VL8:2,8;VL8:6,8;HL8:0,10;HL8:0,14\"\r\n  },\r\n  B708: {\r\n    codeString: \"QC4NE:0,8;QC4NW:4,8\"\r\n  },\r\n  B709: {\r\n    codeString: \"B120:0,-4\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B710: {\r\n    codeString: \"VL4:2,8;B314\"\r\n  },\r\n  B711: {\r\n    codeString: \"B106;B106:0,-4\"\r\n  },\r\n  B712: {\r\n    codeString: \"B597;B281\"\r\n  },\r\n  B713: {\r\n    codeString: \"HL12:0,16;B602:0,4\"\r\n  },\r\n  B714: {\r\n    codeString: \"B132;P4W:1,6\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B715: {\r\n    codeString: \"B1135;P4S:10,13\"\r\n  },\r\n  B716: {\r\n    codeString: \"LARRC8EC:0,8\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B717: {\r\n    codeString: \"AA4S:0,8;HL4:0,12;HL4:0,14;VL4:2,12\"\r\n  },\r\n  B718: {\r\n    codeString: \"B132;HC4N:0,10\"\r\n  },\r\n  B719: {\r\n    codeString: \"B377;B106\"\r\n  },\r\n  B720: {\r\n    codeString: \"VL8:4,8;DL4N:0,8;HL4:0,12\"\r\n  },\r\n  B721: {\r\n    codeString: \"B170;DL4N:0,8\"\r\n  },\r\n  B722: {\r\n    codeString: \"B695;B617:2,0\"\r\n  },\r\n  B723: {\r\n    codeString: \"B678;B271:4,0\"\r\n  },\r\n  B724: {\r\n    codeString: \"VL8:0,8;HW4N:0,7;HW4S:0,8;HW4S:0,16;VL8:4,8\",\r\n    anchorOffsetY: -1\r\n  },\r\n  B725: {\r\n    codeString: \"B313;B355\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B726: {\r\n    codeString: \"B313;B247\"\r\n  },\r\n  B727: {\r\n    codeString: \"B313;B733\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B728: {\r\n    codeString: \"B513;B737:0,-2\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B729: {\r\n    codeString: \"B708;B513:2,0\"\r\n  },\r\n  B730: {\r\n    codeString: \"B246;B622:5,0\"\r\n  },\r\n  B731: {\r\n    codeString: \"HC2W:0,14;HL8:1,14;HL8:1,16;HC2E:9,14\"\r\n  },\r\n  B732: {\r\n    codeString: \"B570;HL6:0,14\"\r\n  },\r\n  B733: {\r\n    codeString: \"B447:0,-4;B247\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B734: {\r\n    codeString: \"P4W:0,10;B355:3,0;P4E:12,10\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B735: {\r\n    codeString: \"B313;B894:2,0\"\r\n  },\r\n  B736: {\r\n    codeString: \"B803;B513:2,0\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B737: {\r\n    codeString: \"HC4S:0,8\"\r\n  },\r\n  B738: {\r\n    codeString: \"HW4W:0,8;HW4E:3,8\"\r\n  },\r\n  B739: {\r\n    codeString: \"B500;B548:8,0\"\r\n  },\r\n  B740: {\r\n    codeString: \"B455;B548:8,0\"\r\n  },\r\n  B741: {\r\n    codeString: \"B312;B548:8,0\"\r\n  },\r\n  B742: {\r\n    codeString: \"B739;B622:11,0\"\r\n  },\r\n  B743: {\r\n    codeString: \"B712;B303:2,0\"\r\n  },\r\n  B744: {\r\n    codeString: \"HL12:0,10;VL6:0,10;VL2:10,12;HL8:2,14;VL6:12,10;HL12:0,16\"\r\n  },\r\n  B745: {\r\n    codeString: \"W8E:0,8;W8W:6,8;HL6:1,16\"\r\n  },\r\n  B746: {\r\n    codeString: \"B412;B699:3,0\"\r\n  },\r\n  B747: {\r\n    codeString: \"RT8S:0,8;VL4:4,12;HL8:0,16\"\r\n  },\r\n  B748: {\r\n    codeString: \"C8:0,8;B894:2,0\"\r\n  },\r\n  B749: {\r\n    codeString: \"HL4:0,11;HL4:0,13;HC4N:2,8;VL4:2,10;HC4S:2,14\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B750: {\r\n    codeString: \"B467;HL4:8,16;DL4-8S:6,8\"\r\n  },\r\n  B751: {\r\n    codeString: \"B447;B106:2,0\"\r\n  },\r\n  B752: {\r\n    codeString: \"HC8N:0,8;HL12:0,12\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B753: {\r\n    codeString: \"B167;B457:2,0\"\r\n  },\r\n  B754: {\r\n    codeString: \"HW8N:0,12;HL8:0,14;HW8S:0,14\"\r\n  },\r\n  B755: {\r\n    codeString: \"HL4:0,8;VL8:0,8;VL8:2,8;VL8:4,8\"\r\n  },\r\n  B756: {\r\n    codeString: \"B731:0,-4;B700:1,0;B700:5,0\"\r\n  },\r\n  B757: {\r\n    codeString: \"B518:2,0;B700\"\r\n  },\r\n  B758: {\r\n    codeString: \"B292;B335:8,0\"\r\n  },\r\n  B759: {\r\n    codeString: \"C4:0,10;C4:3,10;C4:6,10\"\r\n  },\r\n  B760: {\r\n    codeString: \"HC8E:0,8;LARR8E:0,10\"\r\n  },\r\n  B761: {\r\n    codeString: \"B695:0,4;P4S:0,12\"\r\n  },\r\n  B762: {\r\n    codeString: \"B720;P4W:5,12\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B763: {\r\n    codeString: \"B720:1,0;P4N:0,13\",\r\n    anchorOffsetX: 0.5\r\n  },\r\n  B764: {\r\n    codeString: \"B170;P4S:5,9\",\r\n    anchorOffsetX: -0.5\r\n  },\r\n  B765: {\r\n    codeString: \"B170;P4W:9,10\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B766: {\r\n    codeString: \"P4E:0,10;B170:3,0\",\r\n    anchorOffsetX: 1.5\r\n  },\r\n  B767: {\r\n    codeString: \"B170;P4N:2,17\"\r\n  },\r\n  B768: {\r\n    codeString: \"B170;P4N:2,13\"\r\n  },\r\n  B769: {\r\n    codeString: \"B170;VL4:0,12\"\r\n  },\r\n  B770: {\r\n    codeString: \"B695:0,4;DL4N:1,12;DL4N:3,14;DL2S:1,16;DL2S:5,12;DL5N:6,8\"\r\n  },\r\n  B771: {\r\n    codeString: \"B695:0,4;DL4N:1,12;DL4N:3,14;DL2S:1,16;DL2S:5,12;DL2N:6,11;DL4N:7,6;DL4N:9,8;DL2S:7,10;DL2S:11,6\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B772: {\r\n    codeString: \"B170;RA4NW:0,8\"\r\n  },\r\n  B773: {\r\n    codeString: \"HC8N:0,4;B1040\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B774: {\r\n    codeString: \"C8:0,4;OR42N:2,12\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B775: {\r\n    codeString: \"B392;B270:4,0\"\r\n  },\r\n  B776: {\r\n    codeString: \"B265;HC8N:4,12\"\r\n  },\r\n  B777: {\r\n    codeString: \"DOT:0,10;DOT:0,14;DOT:4,10;DOT:4,14\"\r\n  },\r\n  B778: {\r\n    codeString: \"S4:0,8;VL4:2,12\"\r\n  },\r\n  B779: {\r\n    codeString: \"HC4N:0,8;VL4:0,10;VL4:4,10;HL4:0,14;VL2:2,14\"\r\n  },\r\n  B780: {\r\n    codeString: \"B395;P4W:4,8\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B781: {\r\n    codeString: \"R84:0,10;RA4E:0,10;RA4W:6,10\"\r\n  },\r\n  B782: {\r\n    codeString: \"RT4E:0,10;S4:2,10;RT4W:6,10\"\r\n  },\r\n  B783: {\r\n    codeString: \"LARRHC8NC:0,8;LARRHC8SC:2,12\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B784: {\r\n    codeString: \"B450;B428:4,0\"\r\n  },\r\n  B785: {\r\n    codeString: \"ARR4NW:0,8;ARR4SW:0,12;B428:4,0\"\r\n  },\r\n  B786: {\r\n    codeString: \"B374;B457:2,0\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B787: {\r\n    codeString: \"DL4S:0,8;DL4N:5,8;VL4:4,12;VL4:5,12\"\r\n  },\r\n  B788: {\r\n    codeString: \"B630;P4S:2,5\",\r\n    anchorOffsetY: -3\r\n  },\r\n  B789: {\r\n    codeString: \"OS4N:0,12;HC4E:4,12\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B790: {\r\n    codeString: \"OS4N:0,12;DL4N:4,8\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B791: {\r\n    codeString: \"HL8:0,10;HC4N:2,8\"\r\n  },\r\n  B792: {\r\n    codeString: \"HC4W:0,8;OS8N:2,8;HC4E:10,8\"\r\n  },\r\n  B793: {\r\n    codeString: \"HL2:0,14;R84:2,12;HL2:10,14\"\r\n  },\r\n  B794: {\r\n    codeString: \"B280;P4W:8,7\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B795: {\r\n    codeString: \"B280;P4W:9,14\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B796: {\r\n    codeString: \"B280:3,0;P4E:0,6\",\r\n    anchorOffsetX: 1.5\r\n  },\r\n  B797: {\r\n    codeString: \"B695:0,4;B456:8,0\"\r\n  },\r\n  B798: {\r\n    codeString: \"OR84N:0,8;RA4S:0,8;RA4S:4,8\"\r\n  },\r\n  B799: {\r\n    codeString: \"B281;B695:8,4;B281:16,0\"\r\n  },\r\n  B800: {\r\n    codeString: \"HL12:0,12;C8:2,8\"\r\n  },\r\n  B801: {\r\n    codeString: \"HW8W:0,8;HW8E:4,8\"\r\n  },\r\n  B802: {\r\n    codeString: \"B447;B699:3,0\"\r\n  },\r\n  B803: {\r\n    codeString: \"B447;LARR4E:8,10\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B804: {\r\n    codeString: \"B377;B447\"\r\n  },\r\n  B805: {\r\n    codeString: \"B1130;P4W:8,8\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B806: {\r\n    codeString: \"B1131;P4W:9,15\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B807: {\r\n    codeString: \"B321;QC2SW:8,12\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B808: {\r\n    codeString: \"B1134;P4W:9,13\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B809: {\r\n    codeString: \"B1133;P4W:9,15\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B810: {\r\n    codeString: \"B123;QC2SW:8,12\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B811: {\r\n    codeString: \"B566;P4N:2,17\"\r\n  },\r\n  B812: {\r\n    codeString: \"B851;VL2:0,16;VL2:4,16;VL2:8,16\"\r\n  },\r\n  B813: {\r\n    codeString: \"B447;HL4:2,12;AT4N:2,12\"\r\n  },\r\n  B814: {\r\n    codeString: \"R84:0,10;VL4:4,10\"\r\n  },\r\n  B815: {\r\n    codeString: \"B291;B723\"\r\n  },\r\n  B816: {\r\n    codeString: \"B817;B548:8,0;HL8:8,16;VL8:12,8;VL4:16,12\"\r\n  },\r\n  B817: {\r\n    codeString: \"B392;VL8:4,8\"\r\n  },\r\n  B818: {\r\n    codeString: \"B321;VL4:0,8;VL4:8,8\"\r\n  },\r\n  B819: {\r\n    codeString: \"B550;B191:8,0\"\r\n  },\r\n  B820: {\r\n    codeString: \"B803;B451:2,0\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B821: {\r\n    codeString: \"OR48N:0,8;RA4N:0,6\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B822: {\r\n    codeString: \"B566:3,0;P4E:0,10\",\r\n    anchorOffsetX: 1.5\r\n  },\r\n  B823: {\r\n    codeString: \"B428;B120:2,0;B428:8,0\"\r\n  },\r\n  B824: {\r\n    codeString: \"R84:0,10\"\r\n  },\r\n  B825: {\r\n    codeString: \"RA4N:0,6;VL8:0,8;HL16:0,16;VL4:4,8;RA8N:4,8;VL4:12,8;RA4N:12,6;VL8:16,8\"\r\n  },\r\n  B826: {\r\n    codeString: \"B447;B206:4,0\"\r\n  },\r\n  B827: {\r\n    codeString: \"C8:0,8;DLIC8N:0,8;DLIC8S:0,8\"\r\n  },\r\n  B828: {\r\n    codeString: \"B447;B829:3,0\"\r\n  },\r\n  B829: {\r\n    codeString: \"VL2:1,10;C2:0,13\"\r\n  },\r\n  B830: {\r\n    codeString: \"HL12:0,12;AA4N:4,12;AA4N:8,12;VL4:12,8;HL2:12,8\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B831: {\r\n    codeString: \"LARR8W:0,10;VL4:8,8\"\r\n  },\r\n  B832: {\r\n    codeString: \"B239;B829:3,0\"\r\n  },\r\n  B833: {\r\n    codeString: \"HC4N:0,10;R84:0,12\"\r\n  },\r\n  B834: {\r\n    codeString: \"B122;B845\"\r\n  },\r\n  B835: {\r\n    codeString: \"B447;B678:2,0\"\r\n  },\r\n  B836: {\r\n    codeString: \"LARRHC8NC:0,12\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B837: {\r\n    codeString: \"B945;B433:2,0\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B838: {\r\n    codeString: \"B945;B513:2,0\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B839: {\r\n    codeString: \"B945;B710:2,0\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B840: {\r\n    codeString: \"RT8N:0,12\"\r\n  },\r\n  B841: {\r\n    codeString: \"B412;B270:4,0\"\r\n  },\r\n  B842: {\r\n    codeString: \"HC4N:0,8;VL4:0,10;VL4:4,10;HC4S:0,14\"\r\n  },\r\n  B843: {\r\n    codeString: \"B265;HL8:4,14\"\r\n  },\r\n  B844: {\r\n    codeString: \"HL8:0,12;DL4S:0,12\"\r\n  },\r\n  B845: {\r\n    codeString: \"DL2S:0,10;DL2S:2,10;DL2S:4,10\"\r\n  },\r\n  B846: {\r\n    codeString: \"DL8-4N:0,12;HL4:8,12\"\r\n  },\r\n  B847: {\r\n    codeString: \"B695:0,4;B366:4,0\"\r\n  },\r\n  B848: {\r\n    codeString: \"B639;P4S:2,9\"\r\n  },\r\n  B849: {\r\n    codeString: \"HL8:0,12;VL4:2,12;VL4:6,12;HL8:0,16\"\r\n  },\r\n  B850: {\r\n    codeString: \"B391;DL2N:13,7\",\r\n    anchorOffsetX: -3.5\r\n  },\r\n  B851: {\r\n    codeString: \"HC8N:0,12;B695:0,4\"\r\n  },\r\n  B852: {\r\n    codeString: \"B871;P4W:5,8\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B853: {\r\n    codeString: \"B871;P4W:5,14\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B854: {\r\n    codeString: \"HC8N:0,12\"\r\n  },\r\n  B855: {\r\n    codeString: \"B856;P4W:9,12\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B856: {\r\n    codeString: \"VL8:4,8;HW8N:0,12;HL8:0,14\"\r\n  },\r\n  B857: {\r\n    codeString: \"VL6:2,8;VL8:4,8;VL6:6,8;HC4S:2,14;B281;C4:2,16\"\r\n  },\r\n  B858: {\r\n    codeString: \"DOT:0,8;DOT:0,12;DOT:0,16;DOT:4,10;DOT:4,14;DOT:8,10;DOT:8,14;B695:6,0\"\r\n  },\r\n  B859: {\r\n    codeString: \"OR84S:0,12;HC8S:0,12\"\r\n  },\r\n  B860: {\r\n    codeString: \"B695;B939\"\r\n  },\r\n  B861: {\r\n    codeString: \"B866;DOT:2,10;DOT:2,12\"\r\n  },\r\n  B862: {\r\n    codeString: \"B527;DOT:6,14;DOT:8,14\"\r\n  },\r\n  B863: {\r\n    codeString: \"B114;B695:2,0\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B864: {\r\n    codeString: \"R84:0,10;VL4:2,10;VL4:4,10;VL4:6,10\"\r\n  },\r\n  B865: {\r\n    codeString: \"B651;B462:2,0\"\r\n  },\r\n  B866: {\r\n    codeString: \"VL8:0,8;VL8:4,8;C4:0,14\"\r\n  },\r\n  B867: {\r\n    codeString: \"HL4:0,8;B866\"\r\n  },\r\n  B868: {\r\n    codeString: \"B871;P4W:5,10\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B869: {\r\n    codeString: \"QC4NW:0,12;HL2:4,12;QC4NW:2,12;HL2:0,16\"\r\n  },\r\n  B870: {\r\n    codeString: \"B871;P4W:5,6\",\r\n    anchorOffsetX: -1.5,\r\n    anchorOffsetY: -1\r\n  },\r\n  B871: {\r\n    codeString: \"HL4:0,8;HL4:0,10;HL4:0,12;HL4:0,14;HL4:0,16\"\r\n  },\r\n  B872: {\r\n    codeString: \"VL8:0,8;P4W:1,8\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B873: {\r\n    codeString: \"B856;P4W:5,8\"\r\n  },\r\n  B874: {\r\n    codeString: \"B871;P4W:5,12\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B875: {\r\n    codeString: \"B573;VL8:4,8\"\r\n  },\r\n  B876: {\r\n    codeString: \"B736;LARR4W:14,10\",\r\n    anchorOffsetX: -5\r\n  },\r\n  B877: {\r\n    codeString: \"B597;B423;B281\"\r\n  },\r\n  B878: {\r\n    codeString: \"OR84N:0,12\"\r\n  },\r\n  B879: {\r\n    codeString: \"B391;P4W:9,14\",\r\n    anchorOffsetX: -3\r\n  },\r\n  B880: {\r\n    codeString: \"HC8W:0,8;HC4E:4,8;HC4E:4,12\"\r\n  },\r\n  B881: {\r\n    codeString: \"B391;P4W:15,8\",\r\n    anchorOffsetX: -4.5\r\n  },\r\n  B882: {\r\n    codeString: \"B1128;P4W:7,10\"\r\n  },\r\n  B883: {\r\n    codeString: \"P4W:0,10;B513:3,0;P4E:8,10\"\r\n  },\r\n  B884: {\r\n    codeString: \"OR84S:0,12;HL4:8,16\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B885: {\r\n    codeString: \"B803;B457:2,0\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B886: {\r\n    codeString: \"B238;B2115:4,0\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B887: {\r\n    codeString: \"LARROC8NWC:0,8\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B888: {\r\n    codeString: \"B887;B281:2,0\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B889: {\r\n    codeString: \"B1136;P4S:10,13\"\r\n  },\r\n  B890: {\r\n    codeString: \"B695;HW4N:4,11\"\r\n  },\r\n  B891: {\r\n    codeString: \"VL4:0,10;HL4:0,12\"\r\n  },\r\n  B892: {\r\n    codeString: \"HL12:0,12;B700;B700:4,0;B700:8,0\"\r\n  },\r\n  B893: {\r\n    codeString: \"B271:2,0;B281\"\r\n  },\r\n  B894: {\r\n    codeString: \"C4:0,10;VL4:2,10\"\r\n  },\r\n  B895: {\r\n    codeString: \"B635;VL8:12,8\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B896: {\r\n    codeString: \"C8:0,8;B622:3,0\"\r\n  },\r\n  B897: {\r\n    codeString: \"B447;B516\"\r\n  },\r\n  B898: {\r\n    codeString: \"B438;DOT:2,12\"\r\n  },\r\n  B899: {\r\n    codeString: \"R48:0,8;HL4:0,12\"\r\n  },\r\n  B900: {\r\n    codeString: \"B280;P2SW:5,10\"\r\n  },\r\n  B901: {\r\n    codeString: \"B291;B829:3,0\"\r\n  },\r\n  B902: {\r\n    codeString: \"B86;B81:2,0\",\r\n    isIndicator: true,\r\n    indicatorRole: 'adjectival',\r\n    width: 4,\r\n    name: \"INDICATOR DESCRIPTION OF ACTION\"\r\n  },\r\n  B903: {\r\n    codeString: \"HL2:0,5\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    name: \"INDICATOR CONTINUOUS\"\r\n  },\r\n  B904: {\r\n    codeString: \"DL2N:0,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'nominal',\r\n    name: \"INDICATOR DEFINITE\"\r\n  },\r\n  // Not planned for Unicode\r\n  B905: {\r\n    codeString: \"AT2N:0,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'nominal',\r\n    name: \"INDICATOR FEMININE\"\r\n  },\r\n  // Not planned for Unicode\r\n  B906: {\r\n    codeString: \"VL2:0.5,4;HL1:0,6;DL.5N:0,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'nominal',\r\n    width: 1,\r\n    name: \"INDICATOR FIRST PERSON\"\r\n  },\r\n  B907: {\r\n    codeString: \"VL1.25:0,4;SDOT:0,6\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    width: 0,\r\n    name: \"INDICATOR IMPERATIVE\"\r\n  },\r\n  // Not planned for Unicode\r\n  B908: {\r\n    codeString: \"DL2S:0,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'nominal',\r\n    name: \"INDICATOR INDEFINITE\"\r\n  },\r\n  // Not planned for Unicode\r\n  B909: {\r\n    codeString: \"VL2:0,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'nominal',\r\n    width: 0,\r\n    name: \"INDICATOR NEUTER\"\r\n  },\r\n  // Not planned for Unicode\r\n  B910: {\r\n    codeString: \"P2E:0,4;VL2:2,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'nominal',\r\n    name: \"INDICATOR DIRECT OBJECT\"\r\n  },\r\n  B911: {\r\n    codeString: \"B92;B86:1.5,0\",\r\n    isIndicator: true,\r\n    indicatorRole: 'adjectival',\r\n    width: 3.5,\r\n    name: \"INDICATOR PAST PARTICIPLE\"\r\n  },\r\n  B912: {\r\n    codeString: \"B92;SDOT:1.5,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'adjectival',\r\n    anchorOffsetX: -0.5,\r\n    width: 1.5,\r\n    name: \"INDICATOR PAST PERFECTIVE PARTICIPLE\"\r\n  },\r\n  // Not planned for Unicode\r\n  B913: {\r\n    codeString: \"SC2:0,4\",\r\n    isIndicator: true,\r\n    indicatorRole: 'nominal',\r\n    name: \"INDICATOR POSSESSIVE\"\r\n  },\r\n  B914: {\r\n    codeString: \"B928;B86:3,0\",\r\n    isIndicator: true,\r\n    indicatorRole: 'adjectival',\r\n    width: 5,\r\n    name: \"INDICATOR PRESENT PARTICIPLE\"\r\n  },\r\n  // Not planned for Unicode\r\n  B915: {\r\n    codeString: \"HC1N:0,4;DL1-1.5N:0,4.5;HL1:0,6\",\r\n    isIndicator: true,\r\n    indicatorRole: 'nominal',\r\n    width: 1,\r\n    name: \"INDICATOR SECOND PERSON\"\r\n  },\r\n  // Not planned for Unicode\r\n  B916: {\r\n    codeString: \"OC1SW:0,4;OC1NW:0,5\",\r\n    isIndicator: true,\r\n    indicatorRole: 'nominal',\r\n    width: 1,\r\n    name: \"INDICATOR THIRD PERSON\"\r\n  },\r\n  B917: {\r\n    codeString: \"B239;LARR4E:8,10\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B918: {\r\n    codeString: \"B239;HC2E:8,12\",\r\n    anchorOffsetX: -0.5\r\n  },\r\n  B919: {\r\n    codeString: \"QC4SW:0,12\"\r\n  },\r\n  B920: {\r\n    codeString: \"B239;B271:2,0\"\r\n  },\r\n  B921: {\r\n    codeString: \"HL8:0,12;C4:2,10\"\r\n  },\r\n  B922: {\r\n    codeString: \"HW2E:0,11;HW4E:1,10;HW8E:1,8\"\r\n  },\r\n  B923: {\r\n    codeString: \"P4S:0,9;B619:1,0\",\r\n    anchorOffsetX: 0.5\r\n  },\r\n  B924: {\r\n    codeString: \"B695;B325:2,0\"\r\n  },\r\n  B925: {\r\n    codeString: \"C2:0,8;C8:1,8;C2:8,8;DOT:3,12;DOT:7,12;DOT:5,14\"\r\n  },\r\n  B926: {\r\n    codeString: \"LARRHC8NCC:0,12\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B927: {\r\n    codeString: \"B936;HL4:0,12\"\r\n  },\r\n  B928: {\r\n    codeString: \"B92;B87:1.5,0\",\r\n    isIndicator: true,\r\n    indicatorRole: 'verbal',\r\n    name: \"INDICATOR PRESENT\"\r\n  },\r\n  B929: {\r\n    codeString: \"B335;B651:8,0\",\r\n    anchorOffsetX: 4\r\n  },\r\n  B930: {\r\n    codeString: \"B447;B319:3,0\"\r\n  },\r\n  B931: {\r\n    codeString: \"B447;B303:2,0\"\r\n  },\r\n  B932: {\r\n    codeString: \"B447;B660\"\r\n  },\r\n  B933: {\r\n    codeString: \"HL4:0,12;DL4S:4,12\"\r\n  },\r\n  B934: {\r\n    codeString: \"DC8:0,8;VL4:0,12;VL4:8,12\"\r\n  },\r\n  B935: {\r\n    codeString: \"B335;B392:4,0\",\r\n    anchorOffsetX: 2\r\n  },\r\n  B936: {\r\n    codeString: \"HL4:0,8;VL8:2,8;HL4:0,16\"\r\n  },\r\n  B937: {\r\n    codeString: \"B368:0,-4;HL4:0,12\"\r\n  },\r\n  B938: {\r\n    codeString: \"B447;B2115:4,0\"\r\n  },\r\n  B939: {\r\n    codeString: \"DL8N:0,8\"\r\n  },\r\n  B940: {\r\n    codeString: \"B335;VL2:8,8;VL2:8,14\"\r\n  },\r\n  B941: {\r\n    codeString: \"LARR4W:0,10;LARR4N:4,6;LARR4S:4,14;LARR4E:8,10\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B942: {\r\n    codeString: \"C4:0,12;HC8N:2,8;C4:8,12\"\r\n  },\r\n  B943: {\r\n    codeString: \"B335;VL2:4,8;VL2:4,14\"\r\n  },\r\n  B944: {\r\n    codeString: \"B239;LARRHC8NC:4,10\",\r\n    anchorOffsetX: -3\r\n  },\r\n  B945: {\r\n    codeString: \"B597;B894:2,-6\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B946: {\r\n    codeString: \"VL4:0,10;VL4:8,10\"\r\n  },\r\n  B947: {\r\n    codeString: \"B239;HL8:0,12\"\r\n  },\r\n  B948: {\r\n    codeString: \"B412;B335:4,0\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B949: {\r\n    codeString: \"B239;B678:2,0\"\r\n  },\r\n  B950: {\r\n    codeString: \"S8:0,8;VL8:2,8;VL8:4,8;VL8:6,8;HL8:0,10;HL8:0,12;HL8:0,14\"\r\n  },\r\n  B951: {\r\n    codeString: \"B10:0,-4;DL4-8N:2,8;B11:6,0\"\r\n  },\r\n  B952: {\r\n    codeString: \"HL4:0,8;HL4:0,16\"\r\n  },\r\n  B953: {\r\n    codeString: \"HL4:0,16;B120:0,2\"\r\n  },\r\n  B954: {\r\n    codeString: \"B447;B401:3,0;B401:5,0\"\r\n  },\r\n  B955: {\r\n    codeString: \"B447;B401:4,0\"\r\n  },\r\n  B956: {\r\n    codeString: \"HL4:0,12;VL4:2,12;HL4:0,16\"\r\n  },\r\n  B957: {\r\n    codeString: \"HL4:0,12;HL4:0,16\"\r\n  },\r\n  B958: {\r\n    codeString: \"W8W:0,8;VL8:1,8\"\r\n  },\r\n  B959: {\r\n    codeString: \"B281;B107\"\r\n  },\r\n  B960: {\r\n    codeString: \"B447;B653\"\r\n  },\r\n  B961: {\r\n    codeString: \"B803;LARR4E:8,14\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B962: {\r\n    codeString: \"B10:0,-4;DL4-8N:2,8;B13:6,0\"\r\n  },\r\n  B963: {\r\n    codeString: \"B428;B428:4,0\"\r\n  },\r\n  B964: {\r\n    codeString: \"B447;B10:1,0;VL8:4,8\"\r\n  },\r\n  B965: {\r\n    codeString: \"VL4:0,10;HL4:0,12;VL4:4,10\"\r\n  },\r\n  B966: {\r\n    codeString: \"B695;DOT:6,10;DOT:6,14;DOT:10,10;DOT:10,14;DOT:14,8;DOT:14,12;DOT:14,16\"\r\n  },\r\n  B967: {\r\n    codeString: \"B377;HC4N:0,10\"\r\n  },\r\n  B968: {\r\n    codeString: \"HL4:0,8;B368:0,-4\"\r\n  },\r\n  B969: {\r\n    codeString: \"B484;B303:2,0\"\r\n  },\r\n  B970: {\r\n    codeString: \"B313;B457:2,0\"\r\n  },\r\n  B971: {\r\n    codeString: \"B411;B457:2,0\"\r\n  },\r\n  B972: {\r\n    codeString: \"XA;XB:3.8730337;XC:7.7460674\"\r\n  },\r\n  B973: {\r\n    codeString: \"B651;LARR4S:0,14\"\r\n  },\r\n  B974: {\r\n    codeString: \"B700;B1154\"\r\n  },\r\n  B975: {\r\n    codeString: \"B291;B313\"\r\n  },\r\n  B976: {\r\n    codeString: \"B145;B291:4,0\",\r\n    anchorOffsetX: 2\r\n  },\r\n  B977: {\r\n    codeString: \"B291;B678:2,-4\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B978: {\r\n    codeString: \"B163;HC2N:1,13;HC2N:5,13\"\r\n  },\r\n  B979: {\r\n    codeString: \"P4W:0,10;B288:3,0;P4E:8,10\"\r\n  },\r\n  B980: {\r\n    codeString: \"B651;P4W:5,10\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B981: {\r\n    codeString: \"P4W:0,10;B982:3,0;P4E:12,10\",\r\n    anchorOffsetY: -1\r\n  },\r\n  B982: {\r\n    codeString: \"B814;HW2N:3,8.5;HW4N:2,7;HW2S:3,15;HW4S:2,16\",\r\n    anchorOffsetY: -1\r\n  },\r\n  B983: {\r\n    codeString: \"DL8-4N:0,8;DL8-4S:0,8;VL2:4,10\"\r\n  },\r\n  B984: {\r\n    codeString: \"P4E:0,10;B651:3,0\",\r\n    anchorOffsetX: 1.5\r\n  },\r\n  B985: {\r\n    codeString: \"B447;B894:2,0\"\r\n  },\r\n  B986: {\r\n    codeString: \"P4S:0,7;B651\",\r\n    anchorOffsetY: -1\r\n  },\r\n  B987: {\r\n    codeString: \"B428;B288:2,0;B428:8,0\"\r\n  },\r\n  B988: {\r\n    codeString: \"RA4SW:0,12;DL8N:0,8;RA4NE:4,8\"\r\n  },\r\n  B989: {\r\n    codeString: \"LARRHC8SCC:2,12;P4N:0,12\"\r\n  },\r\n  B990: {\r\n    codeString: \"B651;P4N:0,15\"\r\n  },\r\n  B991: {\r\n    codeString: \"B447;B288:2,0\"\r\n  },\r\n  // Not planned for Unicode\r\n  B992: {\r\n    codeString: \"HL2:0,4;VL2:1,4;HL2:0,6\",\r\n    isIndicator: true,\r\n    indicatorRole: 'nominal',\r\n    name: \"INDICATOR DIMINUTIVE\"\r\n  },\r\n  B993: {\r\n    codeString: \"HW8W:0,8;HL4:2,8;HL4:2,16;HW8E:6,8;DOT:4,12\"\r\n  },\r\n  B994: {\r\n    codeString: \"B270;B1028:2,0\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B995: {\r\n    codeString: \"W8E:0,4;B122:1,0\",\r\n    anchorOffsetX: 0.5,\r\n    anchorOffsetY: -4\r\n  },\r\n  B996: {\r\n    codeString: \"VL4:0,10;DOT:2,16;DOT:4,16;DOT:6,16;P4E:8,10\"\r\n  },\r\n  B997: {\r\n    codeString: \"B238;B449:2,0\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B998: {\r\n    codeString: \"B148:2,0;B281\"\r\n  },\r\n  B999: {\r\n    codeString: \"B216;C8:4,8\",\r\n    anchorOffsetX: 2\r\n  },\r\n  B1000: {\r\n    codeString: \"B939;B303:1,0\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B1001: {\r\n    codeString: \"B153;B335:4,0\"\r\n  },\r\n  B1002: {\r\n    codeString: \"B172;HL4:2,16;DOT:8,16\"\r\n  },\r\n  B1003: {\r\n    codeString: \"B174;P4W:3,6\",\r\n    anchorOffsetX: -0.5,\r\n    anchorOffsetY: -2\r\n  },\r\n  B1004: {\r\n    codeString: \"P4S:3,9;B180;P4N:3,17\"\r\n  },\r\n  B1005: {\r\n    codeString: \"P4E:0,10;B518:3,0;P4W:4,10\",\r\n    anchorOffsetX: -0.5\r\n  },\r\n  B1006: {\r\n    codeString: \"B291;B651:2,0\"\r\n  },\r\n  B1007: {\r\n    codeString: \"P4W:0,10;B394:2,0;P4E:10,10\"\r\n  },\r\n  B1008: {\r\n    codeString: \"B335;B651:8,0;B145:12,0\"\r\n  },\r\n  B1009: {\r\n    codeString: \"B239:0,-4\"\r\n  },\r\n  B1010: {\r\n    codeString: \"B239:0,4\"\r\n  },\r\n  B1011: {\r\n    codeString: \"B1094;P4W:9,10\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B1012: {\r\n    codeString: \"B447;B120:2,0\"\r\n  },\r\n  B1013: {\r\n    codeString: \"B447;B449:2,0\"\r\n  },\r\n  B1014: {\r\n    codeString: \"B710;B710:4,0\"\r\n  },\r\n  B1015: {\r\n    codeString: \"B433;B433:4,0\"\r\n  },\r\n  B1016: {\r\n    codeString: \"C4:0,8;DLOC4SE:0,8;SC4:0,8;DL4S:4,12;B555:4,0\"\r\n  },\r\n  B1017: {\r\n    codeString: \"B278:2,0;B939\"\r\n  },\r\n  B1018: {\r\n    codeString: \"B153;B145:4,0\"\r\n  },\r\n  B1019: {\r\n    codeString: \"B335;B1063:8,0\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B1020: {\r\n    codeString: \"VL8:0,8;P4S:0,14;VL8:4,8\"\r\n  },\r\n  B1021: {\r\n    codeString: \"B236;B939:6,0\",\r\n    anchorOffsetX: 3\r\n  },\r\n  B1022: {\r\n    codeString: \"B428;B449:2,0;B428:8,0\"\r\n  },\r\n  B1023: {\r\n    codeString: \"DL2-4N:0,8;DL2-4S:2,8;DL2-4S:0,12;DL2-4N:2,12\"\r\n  },\r\n  B1024: {\r\n    codeString: \"B590:2,0;B281\"\r\n  },\r\n  B1025: {\r\n    codeString: \"VL8:0,8;B829:3,0;VL8:8,8\"\r\n  },\r\n  B1026: {\r\n    codeString: \"B712;B829:3,0\"\r\n  },\r\n  B1027: {\r\n    codeString: \"B505;B939\"\r\n  },\r\n  B1028: {\r\n    codeString: \"AA4S:0,12\"\r\n  },\r\n  B1029: {\r\n    codeString: \"B920;P4N:2,8\"\r\n  },\r\n  B1030: {\r\n    codeString: \"B319:3,0;B939\"\r\n  },\r\n  B1031: {\r\n    codeString: \"P4S:0,7;B303;P4N:0,15\",\r\n    anchorOffsetY: -1\r\n  },\r\n  B1032: {\r\n    codeString: \"B303;P4N:0,15\"\r\n  },\r\n  B1033: {\r\n    codeString: \"VL4:0,10;DOT:2,16;DOT:4,16;DOT:6,16;VL4:8,10\"\r\n  },\r\n  B1034: {\r\n    codeString: \"P4E:0,10;B428:2,0;DOT:4,16;DOT:6,16;DOT:8,16;B428:10,0;P4W:10,10\"\r\n  },\r\n  B1035: {\r\n    codeString: \"P4E:0,10;B428:2,0;B428:10,0;P4W:10,10\"\r\n  },\r\n  B1036: {\r\n    codeString: \"B695:0,4;B239\"\r\n  },\r\n  B1037: {\r\n    codeString: \"B325;P4W:5,8\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B1038: {\r\n    codeString: \"B428;LARRQC4NEC:0,12;B634:0,4\"\r\n  },\r\n  B1039: {\r\n    codeString: \"B695;B651:6,0\"\r\n  },\r\n  B1040: {\r\n    codeString: \"B597;B271:2,0\"\r\n  },\r\n  B1041: {\r\n    codeString: \"QC4NW:2,8;AT4S:0,12\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B1042: {\r\n    codeString: \"B341;B699:2,0\"\r\n  },\r\n  B1043: {\r\n    codeString: \"B238;B120:2,0\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B1044: {\r\n    codeString: \"B281;B651:2,4\"\r\n  },\r\n  B1045: {\r\n    codeString: \"B391;P4E:7,7\",\r\n    anchorOffsetX: -3,\r\n    anchorOffsetY: -1\r\n  },\r\n  B1046: {\r\n    codeString: \"P4E:0,10;B391:3,0\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B1047: {\r\n    codeString: \"B399;P4W:17,10\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B1048: {\r\n    codeString: \"B247;B699:3,1\"\r\n  },\r\n  B1049: {\r\n    codeString: \"VL4:0,12;HC8S:0,12;VL4:8,12\"\r\n  },\r\n  B1050: {\r\n    codeString: \"B548;B341:2,0;B699:3,0\"\r\n  },\r\n  B1051: {\r\n    codeString: \"HL4:0,8;VL8:4,8\"\r\n  },\r\n  B1052: {\r\n    codeString: \"B418;P4W:7,10;P4S:10,13\",\r\n    anchorOffsetX: -3\r\n  },\r\n  B1053: {\r\n    codeString: \"B428;DOT:2,16;DOT:4,16;DOT:6,16;B428:8,0\"\r\n  },\r\n  B1054: {\r\n    codeString: \"B1127;P4W:9,4\",\r\n    anchorOffsetY: -3\r\n  },\r\n  B1055: {\r\n    codeString: \"B335;B329:8,0;B145:12,0\"\r\n  },\r\n  B1056: {\r\n    codeString: \"C8:0,8;DOT:2,12;DOT:6,12;HW4N:0,11;HW4S:0,12;HW4N:4,11;HW4S:4,12\"\r\n  },\r\n  B1057: {\r\n    codeString: \"B335;B145:10,0\"\r\n  },\r\n  B1058: {\r\n    codeString: \"B1057:0,-2;B1066:0,2\"\r\n  },\r\n  B1059: {\r\n    codeString: \"B444:2,0;B708\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B1060: {\r\n    codeString: \"VL4:0,10;VL4:4,10\"\r\n  },\r\n  B1061: {\r\n    codeString: \"B423;B335:4,0\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B1062: {\r\n    codeString: \"B457:2,0;B939\"\r\n  },\r\n  B1063: {\r\n    codeString: \"B145:0,-4;B145:0,4\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B1064: {\r\n    codeString: \"B171;B678:4,-4\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B1065: {\r\n    codeString: \"B392;B270:10,0\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B1066: {\r\n    codeString: \"B145;B335:10,0\"\r\n  },\r\n  B1067: {\r\n    codeString: \"HC8N:0,4;B960\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B1068: {\r\n    codeString: \"C8:0,8;DLIC8N:0,8;DLIC8S:0,8;VL8:4,8\"\r\n  },\r\n  B1069: {\r\n    codeString: \"B449:0,-2;B120:0,2\"\r\n  },\r\n  B1070: {\r\n    codeString: \"B120:0,2\"\r\n  },\r\n  B1071: {\r\n    codeString: \"B548;B695:0,4\"\r\n  },\r\n  B1072: {\r\n    codeString: \"B548;P4W:9,10\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B1073: {\r\n    codeString: \"B651;LARR4E:4,10\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B1075: {\r\n    codeString: \"C8:0,8;DOT:4,12\"\r\n  },\r\n  B1076: {\r\n    codeString: \"B784;B447\"\r\n  },\r\n  B1077: {\r\n    codeString: \"B517;B335:0,4\"\r\n  },\r\n  B1078: {\r\n    codeString: \"HL4:0,8;VL8:0,8\"\r\n  },\r\n  B1079: {\r\n    codeString: \"B392;B939\"\r\n  },\r\n  B1080: {\r\n    codeString: \"VL4:0,12;P4S:0,14;VL4:4,12\"\r\n  },\r\n  B1081: {\r\n    codeString: \"VL4:0,12;HL4:0,16;VL4:2,12;VL4:4,12\"\r\n  },\r\n  B1082: {\r\n    codeString: \"B708;B148:2,0\"\r\n  },\r\n  B1083: {\r\n    codeString: \"B517;B1084\"\r\n  },\r\n  B1084: {\r\n    codeString: \"HL8:0,16;QC4SE:8,12\"\r\n  },\r\n  B1085: {\r\n    codeString: \"B457:0,2;HL8:2,16;B319:9,0\"\r\n  },\r\n  B1086: {\r\n    codeString: \"B457:0,2;HL10:2,16;VL4:8,12;B319:9,0;VL4:12,12\"\r\n  },\r\n  B1087: {\r\n    codeString: \"HW8W:0,8;VL12:2,8;HL4:0,12;HW8E:2,8\"\r\n  },\r\n  B1088: {\r\n    codeString: \"AA4N:0,8;B651:0,2\"\r\n  },\r\n  B1089: {\r\n    codeString: \"B612;B939:6,0\"\r\n  },\r\n  B1090: {\r\n    codeString: \"OC4NE:0,8;OC4NE:2,10;OC4NE:4,12\"\r\n  },\r\n  B1091: {\r\n    codeString: \"B457;LARRQC4NEC:4,12\",\r\n    anchorOffsetX: -3\r\n  },\r\n  B1092: {\r\n    codeString: \"B615;B148:6,0\"\r\n  },\r\n  B1093: {\r\n    codeString: \"B615;B263:6,0\"\r\n  },\r\n  B1094: {\r\n    codeString: \"DS8:0,8\"\r\n  },\r\n  B1095: {\r\n    codeString: \"B651;B695:2,0\"\r\n  },\r\n  B1096: {\r\n    codeString: \"P4E:0,10;B428:2,0;B428:6,0;P4W:6,10\"\r\n  },\r\n  B1097: {\r\n    codeString: \"B695:0,-4;B695;B695:0,4\",\r\n    anchorOffsetY: -1\r\n  },\r\n  B1098: {\r\n    codeString: \"B291:0,-4;B700;B700:4,0\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B1099: {\r\n    codeString: \"B651:0,-2;B700\"\r\n  },\r\n  B1100: {\r\n    codeString: \"B666;B939\"\r\n  },\r\n  B1101: {\r\n    codeString: \"LARRHC8EC:0,8\"\r\n  },\r\n  B1102: {\r\n    codeString: \"B676:0,4\"\r\n  },\r\n  B1103: {\r\n    codeString: \"B335;B412:4,0\",\r\n    anchorOffsetX: 2\r\n  },\r\n  B1104: {\r\n    codeString: \"B428;LARRQC4NECC:0,10;B634:0,4\"\r\n  },\r\n  B1105: {\r\n    codeString: \"S8:0,8;DC8:0,8;SC8:0,8\"\r\n  },\r\n  B1106: {\r\n    codeString: \"QC4NW:0,12;QC4SE:0,12;B127:4,0\",\r\n    anchorOffsetX: 2\r\n  },\r\n  B1107: {\r\n    codeString: \"B281;B695\"\r\n  },\r\n  B1108: {\r\n    codeString: \"B428;P4W:0,10;P4E:6,10;B428:8,0\"\r\n  },\r\n  B1109: {\r\n    codeString: \"B239;DL4N:8,8\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B1110: {\r\n    codeString: \"B710;P4W:4,12\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B1111: {\r\n    codeString: \"B430;P4W:9,8\",\r\n    anchorOffsetX: -1.5\r\n  },\r\n  B1112: {\r\n    codeString: \"B710;B548:2,0;B710:8,0\"\r\n  },\r\n  B1113: {\r\n    codeString: \"B433;B548:2,0;B433:8,0\"\r\n  },\r\n  B1114: {\r\n    codeString: \"B1112;B622:5,0\"\r\n  },\r\n  B1115: {\r\n    codeString: \"B1113;B622:5,0\"\r\n  },\r\n  B1116: {\r\n    codeString: \"HL4:0,10;HL4:0,12;HL4:0,14\"\r\n  },\r\n  B1117: {\r\n    codeString: \"B695:0,4\"\r\n  },\r\n  B1118: {\r\n    codeString: \"B423;B281\"\r\n  },\r\n  B1119: {\r\n    codeString: \"B281;QC4SE:0,16\"\r\n  },\r\n  B1120: {\r\n    codeString: \"B616;B500:10,0\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B1121: {\r\n    codeString: \"AT4S:0,12\"\r\n  },\r\n  B1122: {\r\n    codeString: \"QC4NW:0,12;QC4SE:4,8\"\r\n  },\r\n  B1123: {\r\n    codeString: \"B291;B145:4,0\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B1124: {\r\n    codeString: \"B291;B271:2,-4\",\r\n    anchorOffsetY: -4\r\n  },\r\n  B1125: {\r\n    codeString: \"B291;B678:2,4\"\r\n  },\r\n  B1126: {\r\n    codeString: \"DL2S:0,8;DL2N:0,10;DL2S:0,12;DL2N:0,14\"\r\n  },\r\n  B1127: {\r\n    codeString: \"B171;B371:3.5,-4\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B1128: {\r\n    codeString: \"B171;DOT:6,12\"\r\n  },\r\n  B1129: {\r\n    codeString: \"B171;B371:3.5,6\"\r\n  },\r\n  B1130: {\r\n    codeString: \"B392;HL8:0,12\"\r\n  },\r\n  B1131: {\r\n    codeString: \"B392;VL2:0,16;HL8:0,18;VL2:8,16\"\r\n  },\r\n  B1132: {\r\n    codeString: \"B392;VL4:8,8\"\r\n  },\r\n  B1133: {\r\n    codeString: \"B392;VL2:0,16;VL2:8,16\"\r\n  },\r\n  B1134: {\r\n    codeString: \"B392;HL8:0,14\"\r\n  },\r\n  B1135: {\r\n    codeString: \"B392;HL8:8,16;VL4:16,12\"\r\n  },\r\n  B1136: {\r\n    codeString: \"B392;B281:8,0;B392:16,0\"\r\n  },\r\n  B1137: {\r\n    codeString: \"B325:2,0;B483\"\r\n  },\r\n  B1138: {\r\n    codeString: \"B303;HL4:0,8\"\r\n  },\r\n  B1139: {\r\n    codeString: \"B306;B371:1.5,6\"\r\n  },\r\n  B1140: {\r\n    codeString: \"B306;DOT:7,12\"\r\n  },\r\n  B1141: {\r\n    codeString: \"B371:1.5,0;B122\"\r\n  },\r\n  B1142: {\r\n    codeString: \"B376;VL2:3,16;VL2:5,16\"\r\n  },\r\n  B1143: {\r\n    codeString: \"B376;B371:1.5,-4\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B1144: {\r\n    codeString: \"RT8SW:0,8;B281:8,0;B456:16,0\"\r\n  },\r\n  B1145: {\r\n    codeString: \"B171;B271:4,4\"\r\n  },\r\n  B1146: {\r\n    codeString: \"P4S:0,10\"\r\n  },\r\n  B1147: {\r\n    codeString: \"RA2S:0,11\"\r\n  },\r\n  B1148: {\r\n    codeString: \"HL16:0,16;B202:8,0\"\r\n  },\r\n  B1149: {\r\n    codeString: \"B202;P4W:8,7\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B1150: {\r\n    codeString: \"B281;B392:8,0\"\r\n  },\r\n  B1151: {\r\n    codeString: \"B10:0,-4;DL4-8N:2,8;B12:6,0\"\r\n  },\r\n  B1152: {\r\n    codeString: \"B11:0,-4;DL4-8N:2,8;B12:6,0\"\r\n  },\r\n  B1153: {\r\n    codeString: \"B12:0,-4;DL4-8N:2,8;B13:6,0\"\r\n  },\r\n  B1154: {\r\n    codeString: \"HL4:0,16\"\r\n  },\r\n  B1155: {\r\n    codeString: \"B859;P4S:2,9\"\r\n  },\r\n  B1156: {\r\n    codeString: \"B636;P3NE:3,10\"\r\n  },\r\n  B1157: {\r\n    codeString: \"B636;P3NW:2,10\"\r\n  },\r\n  B1158: {\r\n    codeString: \"B636;P3SE:3,11\"\r\n  },\r\n  B1159: {\r\n    codeString: \"B636;P3SW:2,11\"\r\n  },\r\n  B1160: {\r\n    codeString: \"B376;P4S:2,5\",\r\n    anchorOffsetY: -3\r\n  },\r\n  B1161: {\r\n    codeString: \"B303;B1154\"\r\n  },\r\n  B1162: {\r\n    codeString: \"HL4:0,12;VL4:4,12;B335:4,0\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B1163: {\r\n    codeString: \"LARR4W:0,10;LARR4E:4,10\"\r\n  },\r\n  B1218: {\r\n    codeString: \"B335;B428:10,0\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B1470: {\r\n    codeString: \"B513;B513:6,0\"\r\n  },\r\n  B1525: {\r\n    codeString: \"B428;B335:2,0\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B1999: {\r\n    codeString: \"VL2:2,6;R48:0,8;VL2:2,16\",\r\n    anchorOffsetY: -2\r\n  },\r\n  B2115: {\r\n    codeString: \"VL8:0,8;B11:2,0\"\r\n  },\r\n  B2343: {\r\n    codeString: \"B10;VL8:4,8\"\r\n  },\r\n  B5061: {\r\n    codeString: \"B335;B335:10,0\"\r\n  },\r\n  B5640: {\r\n    codeString: \"B335;B940:10,0\"\r\n  },\r\n  B5836: {\r\n    codeString: \"B428;B109:2,0\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B5837: {\r\n    codeString: \"HC4N:0,8\"\r\n  },\r\n  B5838: {\r\n    codeString: \"B5840:0,-1;B5840:0,3;B5840:4,-1;B5840:4,3\"\r\n  },\r\n  B5839: {\r\n    codeString: \"B171;P4S:6,13\"\r\n  },\r\n  B5840: {\r\n    codeString: \"C2:0,11\"\r\n  },\r\n  B5841: {\r\n    codeString: \"B572;B191\"\r\n  },\r\n  B5842: {\r\n    codeString: \"B629;B366:4,0\"\r\n  },\r\n  B5843: {\r\n    codeString: \"B5844;VL6:3,8\"\r\n  },\r\n  B5844: {\r\n    codeString: \"B106;B314:2,0\"\r\n  },\r\n  B5995: {\r\n    codeString: \"B457;P4S:0,7\",\r\n    anchorOffsetY: -1\r\n  },\r\n  B5996: {\r\n    codeString: \"B99;B904:3,0\",\r\n    isIndicator: true,\r\n    indicatorRole: 'nominal',\r\n    width: 5,\r\n    name: \"INDICATOR DEFINITE PLURAL\"\r\n  },\r\n  B5997: {\r\n    codeString: \"B97;B904:3,0\",\r\n    isIndicator: true,\r\n    semanticIndicator: 'thing',\r\n    indicatorRole: 'nominal',\r\n    width: 5,\r\n    name: \"INDICATOR DEFINITE THING\"\r\n  },\r\n  B5998: {\r\n    codeString: \"B97;B5996:3,0\",\r\n    isIndicator: true,\r\n    semanticIndicator: 'thing',\r\n    indicatorRole: 'nominal',\r\n    width: 8,\r\n    name: \"INDICATOR DEFINITE PLURAL THING\"\r\n  },\r\n  B5999: {\r\n    codeString: \"B956:0,2\"\r\n  },\r\n  B6000: {\r\n    codeString: \"B314:0,2\"\r\n  },\r\n  B6001: {\r\n    codeString: \"HL4:0,18;VL4:2,14\"\r\n  },\r\n  B6002: {\r\n    codeString: \"B106:0,2\"\r\n  },\r\n  B6003: {\r\n    codeString: \"B657:0,4\",\r\n    anchorOffsetX: -1\r\n  },\r\n  B6013: {\r\n    codeString: \"B696;LARR4E:8,10\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B6015: {\r\n    codeString: \"B213;LARR4E:8,10\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B6091: { // Temporarily removed from Blissary as its status for inclusion by BCI is unclear. Graphically, it's the opposite of COMPRESSION B1008.\r\n    codeString: \"B145;B651:8,0;B335:12,0\"\r\n  },\r\n  B6106: {\r\n    codeString: \"HW8E:0,8;HL6:0,8;HL6:0,16;HW8W:4,8\"\r\n  },\r\n  B6109: {\r\n    codeString: \"HW8W:0,8;HW8E:2,8\"\r\n  },\r\n  B6168: {\r\n    codeString: \"B303;B651:4,0\"\r\n  },\r\n  B6232: {\r\n    codeString: \"B917;B651:2,0\",\r\n    anchorOffsetX: -2\r\n  },\r\n  B6287: {\r\n    codeString: \"B700;HL8:2,12;HL8:2,16;B700:8,0\"\r\n  },\r\n  B6300: {\r\n    codeString: \"B303;VL2:2,8;VL2:2,14;HL8:2,8;HL8:2,16;VL8:10,8\",\r\n    anchorOffsetX: 1\r\n  },\r\n  B6321: {\r\n    codeString: \"DL1N:0,8;VL4:1,8;DL1N:1,11;B968:3,0\",\r\n    anchorOffsetX: 1.5\r\n  },\r\n  B6393: {\r\n    codeString: \"P4S:0,7;B1116\",\r\n    anchorOffsetY: -1\r\n  },\r\n  B6414: {\r\n    codeString: \"DL8-4N:0,10\"\r\n  },\r\n  B6415: {\r\n    codeString: \"DL8-4S:0,10\"\r\n  },\r\n  B6420: {\r\n    codeString: \"DL4-8N:0,8\"\r\n  },\r\n  B6435: {\r\n    codeString: \"HC8W:0,8;HW8W:2,8;B622:4,0\"\r\n  },\r\n  B6436: {\r\n    codeString: \"HC2N:0,4\",\r\n    isIndicator: true,\r\n    semanticIndicator: 'abstract',\r\n    indicatorRole: 'nominal',\r\n    name: \"INDICATOR ABSTRACT\"\r\n  },\r\n  B6437: {\r\n    codeString: \"B814;B695:6,0\"\r\n  },\r\n  B6438: {\r\n    codeString: \"DL1N:0,8;VL4:1,8;DL1N:1,11;B937:3,0\",\r\n    anchorOffsetX: 1.5\r\n  },\r\n  B6439: {\r\n    codeString: \"P2E:0,4;B910:1.5\",\r\n    isIndicator: true,\r\n    indicatorRole: 'nominal',\r\n    name: \"INDICATOR INDIRECT OBJECT\",\r\n    width: 3.5\r\n  },\r\n  // Contains \"all of a thing\", not added yet.\r\n  B6443: {\r\n    codeString: \"B651;HL4:0,8;DC4:0,10;HL4:0,16\"\r\n  },\r\n  B6444: {\r\n    codeString: \"B712;B894:2,0\"\r\n  },\r\n  B6579: {\r\n    codeString: \"P4E:0,14;B6003:2,0\",\r\n    anchorOffsetX: -1\r\n  }\r\n}\r\n\r\nexport { glyphData };","/** \r\n * This Source Code Form is subject to the terms of the Mozilla Public\r\n * License, v. 2.0. If a copy of the MPL was not distributed with this\r\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\r\n */\r\n\r\nimport * as sc from \"./bliss-shape-creators.js\";\r\nimport { glyphData } from \"./bliss-glyph-data.js\";\r\nimport { alphabetData } from \"../external-font-data/liberation-sans-svg-path-data.js\";\r\n\r\n/**\r\n * Special space glyph codes: TSP and QSP\r\n * These codes have dynamic width calculated by BlissElement.\r\n * DO NOT rename or remove these without updating BlissElement.\r\n */\r\nconst SPACE_GLYPH_CODES = ['TSP', 'QSP'];\r\n\r\nexport function isSpaceGlyph(code) {\r\n  return SPACE_GLYPH_CODES.includes(code);\r\n}\r\n\r\n// Non-shape elements: spacing and anchors\r\nconst nonShapeDefinitions = {\r\n  'ZSA': sc.createZeroSizedAnchor(),\r\n  'TSP': sc.createSpace(6),\r\n  'QSP': sc.createSpace(2),\r\n};\r\n\r\n// Reference glyphs: visual aids for positioning and alignment\r\nconst referenceGlyphDefinitions = {\r\n  'REFSQUARE': { codeString: \"S8:0,8\", glyphCode: 'REFSQUARE', isBlissGlyph: true, defaultOptions: { 'stroke-dasharray': '0 0.999' } },\r\n  'ANCHORRING': { codeString: \"C2:0,4\", glyphCode: 'ANCHORRING', isBlissGlyph: true, isIndicator: true, defaultOptions: { 'stroke-dasharray': '0 0.777' } },\r\n};\r\n\r\n// Shape primitives\r\nconst shapeDefinitions = {\r\n  'DOT': sc.createDot(0.5, 0.333),\r\n  'SDOT': sc.createDot(0.5, 0.1665),\r\n  'COMMA': sc.createComma(0.5, 0.333),\r\n  'H': sc.createHeart(8),\r\n  'E': sc.createEar(8),\r\n  'F': sc.createFiber(8),\r\n  'C8': sc.createCircle(4),\r\n  'C4': sc.createCircle(2),\r\n  'C2': sc.createCircle(1),\r\n  'C1': sc.createCircle(0.5),\r\n  'HC8N': sc.createHalfCircle(4, 'N'),\r\n  'HC4N': sc.createHalfCircle(2, 'N'),\r\n  'HC2N': sc.createHalfCircle(1, 'N'),\r\n  'HC1N': sc.createHalfCircle(0.5, 'N'),\r\n  'HC.5N': sc.createHalfCircle(0.25, 'N'),\r\n  'HC8S': sc.createHalfCircle(4, 'S'),\r\n  'HC4S': sc.createHalfCircle(2, 'S'),\r\n  'HC2S': sc.createHalfCircle(1, 'S'),\r\n  'HC1S': sc.createHalfCircle(0.5, 'S'),\r\n  'HC.5S': sc.createHalfCircle(0.25, 'S'),\r\n  'HC8W': sc.createHalfCircle(4, 'W'),\r\n  'HC4W': sc.createHalfCircle(2, 'W'),\r\n  'HC2W': sc.createHalfCircle(1, 'W'),\r\n  'HC1W': sc.createHalfCircle(0.5, 'W'),\r\n  'HC.5W': sc.createHalfCircle(0.25, 'W'),\r\n  'HC8E': sc.createHalfCircle(4, 'E'),\r\n  'HC4E': sc.createHalfCircle(2, 'E'),\r\n  'HC2E': sc.createHalfCircle(1, 'E'),\r\n  'HC1E': sc.createHalfCircle(0.5, 'E'),\r\n  'HC.5E': sc.createHalfCircle(0.25, 'E'),\r\n  'QC4NW': sc.createQuarterCircle(4, 'NW'),\r\n  'QC2NW': sc.createQuarterCircle(2, 'NW'),\r\n  'QC1NW': sc.createQuarterCircle(1, 'NW'),\r\n  'QC.5NW': sc.createQuarterCircle(0.5, 'NW'),\r\n  'QC4NE': sc.createQuarterCircle(4, 'NE'),\r\n  'QC2NE': sc.createQuarterCircle(2, 'NE'),\r\n  'QC1NE': sc.createQuarterCircle(1, 'NE'),\r\n  'QC.5NE': sc.createQuarterCircle(0.5, 'NE'),\r\n  'QC4SW': sc.createQuarterCircle(4, 'SW'),\r\n  'QC2SW': sc.createQuarterCircle(2, 'SW'),\r\n  'QC1SW': sc.createQuarterCircle(1, 'SW'),\r\n  'QC.5SW': sc.createQuarterCircle(0.5, 'SW'),\r\n  'QC4SE': sc.createQuarterCircle(4, 'SE'),\r\n  'QC2SE': sc.createQuarterCircle(2, 'SE'),\r\n  'QC1SE': sc.createQuarterCircle(1, 'SE'),\r\n  'QC.5SE': sc.createQuarterCircle(0.5, 'SE'),\r\n  'OC8NW': sc.createOpenCircle(4, 'NW'),\r\n  'OC4NW': sc.createOpenCircle(2, 'NW'),\r\n  'OC2NW': sc.createOpenCircle(1, 'NW'),\r\n  'OC1NW': sc.createOpenCircle(0.5, 'NW'),\r\n  'OC8NE': sc.createOpenCircle(4, 'NE'),\r\n  'OC4NE': sc.createOpenCircle(2, 'NE'),\r\n  'OC2NE': sc.createOpenCircle(1, 'NE'),\r\n  'OC1NE': sc.createOpenCircle(0.5, 'NE'),\r\n  'OC8SW': sc.createOpenCircle(4, 'SW'),\r\n  'OC4SW': sc.createOpenCircle(2, 'SW'),\r\n  'OC2SW': sc.createOpenCircle(1, 'SW'),\r\n  'OC1SW': sc.createOpenCircle(0.5, 'SW'),\r\n  'OC8SE': sc.createOpenCircle(4, 'SE'),\r\n  'OC4SE': sc.createOpenCircle(2, 'SE'),\r\n  'OC2SE': sc.createOpenCircle(1, 'SE'),\r\n  'OC1SE': sc.createOpenCircle(0.5, 'SE'),\r\n  'W8N': sc.createWave(8, 'N'),\r\n  'W8S': sc.createWave(8, 'S'),\r\n  'W8W': sc.createWave(8, 'W'),\r\n  'W8E': sc.createWave(8, 'E'),\r\n  'HW8N': sc.createHalfWave(8, 'N'),\r\n  'HW4N': sc.createHalfWave(4, 'N'),\r\n  'HW2N': sc.createHalfWave(2, 'N'),\r\n  'HW8S': sc.createHalfWave(8, 'S'),\r\n  'HW4S': sc.createHalfWave(4, 'S'),\r\n  'HW2S': sc.createHalfWave(2, 'S'),\r\n  'HW8W': sc.createHalfWave(8, 'W'),\r\n  'HW4W': sc.createHalfWave(4, 'W'),\r\n  'HW2W': sc.createHalfWave(2, 'W'),\r\n  'HW8E': sc.createHalfWave(8, 'E'),\r\n  'HW4E': sc.createHalfWave(4, 'E'),\r\n  'HW2E': sc.createHalfWave(2, 'E'),\r\n  'HQW4NW': sc.createHorizontalQuarterWave(4, 'NW'),\r\n  'HQW2NW': sc.createHorizontalQuarterWave(2, 'NW'),\r\n  'HQW1NW': sc.createHorizontalQuarterWave(1, 'NW'),\r\n  'HQW4NE': sc.createHorizontalQuarterWave(4, 'NE'),\r\n  'HQW2NE': sc.createHorizontalQuarterWave(2, 'NE'),\r\n  'HQW1NE': sc.createHorizontalQuarterWave(1, 'NE'),\r\n  'HQW4SW': sc.createHorizontalQuarterWave(4, 'SW'),\r\n  'HQW2SW': sc.createHorizontalQuarterWave(2, 'SW'),\r\n  'HQW1SW': sc.createHorizontalQuarterWave(1, 'SW'),\r\n  'HQW4SE': sc.createHorizontalQuarterWave(4, 'SE'),\r\n  'HQW2SE': sc.createHorizontalQuarterWave(2, 'SE'),\r\n  'HQW1SE': sc.createHorizontalQuarterWave(1, 'SE'),\r\n  'VQW4NW': sc.createVerticalQuarterWave(4, 'NW'),\r\n  'VQW2NW': sc.createVerticalQuarterWave(2, 'NW'),\r\n  'VQW1NW': sc.createVerticalQuarterWave(1, 'NW'),\r\n  'VQW4NE': sc.createVerticalQuarterWave(4, 'NE'),\r\n  'VQW2NE': sc.createVerticalQuarterWave(2, 'NE'),\r\n  'VQW1NE': sc.createVerticalQuarterWave(1, 'NE'),\r\n  'VQW4SW': sc.createVerticalQuarterWave(4, 'SW'),\r\n  'VQW2SW': sc.createVerticalQuarterWave(2, 'SW'),\r\n  'VQW1SW': sc.createVerticalQuarterWave(1, 'SW'),\r\n  'VQW4SE': sc.createVerticalQuarterWave(4, 'SE'),\r\n  'VQW2SE': sc.createVerticalQuarterWave(2, 'SE'),\r\n  'VQW1SE': sc.createVerticalQuarterWave(1, 'SE'),\r\n  'VL12': sc.createVerticalLine(12),\r\n  'VL10': sc.createVerticalLine(10),\r\n  'VL8': sc.createVerticalLine(8),\r\n  'VL6': sc.createVerticalLine(6),\r\n  'VL4': sc.createVerticalLine(4),\r\n  'VL3': sc.createVerticalLine(3),\r\n  'VL2': sc.createVerticalLine(2),\r\n  'VL1.5': sc.createVerticalLine(1.5),\r\n  'VL1.25': sc.createVerticalLine(1.25),\r\n  'VL1': sc.createVerticalLine(1),\r\n  'VL.5': sc.createVerticalLine(0.5),\r\n  'VL.25': sc.createVerticalLine(0.25),\r\n  'HL16': sc.createHorizontalLine(16),\r\n  'HL15': sc.createHorizontalLine(15),\r\n  'HL14': sc.createHorizontalLine(14),\r\n  'HL12': sc.createHorizontalLine(12),\r\n  'HL10': sc.createHorizontalLine(10),\r\n  'HL8': sc.createHorizontalLine(8),\r\n  'HL6': sc.createHorizontalLine(6),\r\n  'HL4': sc.createHorizontalLine(4),\r\n  'HL3': sc.createHorizontalLine(3),\r\n  'HL2': sc.createHorizontalLine(2),\r\n  'HL1.5': sc.createHorizontalLine(1.5),\r\n  'HL1': sc.createHorizontalLine(1),\r\n  'HL.5': sc.createHorizontalLine(0.5),\r\n  'HL.25': sc.createHorizontalLine(0.25),\r\n  'DL12N': sc.createAscendingDiagonalLine(12, 12),\r\n  'DL8N': sc.createAscendingDiagonalLine(8, 8),\r\n  'DL6N': sc.createAscendingDiagonalLine(6, 6),\r\n  'DL5N': sc.createAscendingDiagonalLine(5, 5),\r\n  'DL4N': sc.createAscendingDiagonalLine(4, 4),\r\n  'DL3N': sc.createAscendingDiagonalLine(3, 3),\r\n  'DL2N': sc.createAscendingDiagonalLine(2, 2),\r\n  'DL1.5N': sc.createAscendingDiagonalLine(1.5, 1.5),\r\n  'DL1N': sc.createAscendingDiagonalLine(1, 1),\r\n  \"DL.5N\": sc.createAscendingDiagonalLine(0.5, 0.5),\r\n  'DL2-3N': sc.createAscendingDiagonalLine(2, 3),\r\n  'DL1-1.5N': sc.createAscendingDiagonalLine(1, 1.5),\r\n  'DL3-2N': sc.createAscendingDiagonalLine(3, 2),\r\n  'DL1.5-1N': sc.createAscendingDiagonalLine(1.5, 1),\r\n  'DL4-8N': sc.createAscendingDiagonalLine(4, 8),\r\n  'DL2-4N': sc.createAscendingDiagonalLine(2, 4),\r\n  'DL1-2N': sc.createAscendingDiagonalLine(1, 2),\r\n  'DL.5-1N': sc.createAscendingDiagonalLine(0.5, 1),\r\n  'DL8-4N': sc.createAscendingDiagonalLine(8, 4),\r\n  'DL4-2N': sc.createAscendingDiagonalLine(4, 2),\r\n  'DL2-1N': sc.createAscendingDiagonalLine(2, 1),\r\n  'DL1-.5N': sc.createAscendingDiagonalLine(1, 0.5),\r\n  'DL1-4N': sc.createAscendingDiagonalLine(1, 4),\r\n  'DL.5-2N': sc.createAscendingDiagonalLine(0.5, 2),\r\n  'DL4-1N': sc.createAscendingDiagonalLine(4, 1),\r\n  'DL2-.5N': sc.createAscendingDiagonalLine(2, 0.5),\r\n  'DL12S': sc.createDescendingDiagonalLine(12, 12),\r\n  'DL8S': sc.createDescendingDiagonalLine(8, 8),\r\n  'DL6S': sc.createDescendingDiagonalLine(6, 6),\r\n  'DL5S': sc.createDescendingDiagonalLine(5, 5),\r\n  'DL4S': sc.createDescendingDiagonalLine(4, 4),\r\n  'DL3S': sc.createDescendingDiagonalLine(3, 3),\r\n  'DL2S': sc.createDescendingDiagonalLine(2, 2),\r\n  'DL1.5S': sc.createDescendingDiagonalLine(1.5, 1.5),\r\n  'DL1S': sc.createDescendingDiagonalLine(1, 1),\r\n  'DL.5S': sc.createDescendingDiagonalLine(0.5, 0.5),\r\n  'DL2-3S': sc.createDescendingDiagonalLine(2, 3),\r\n  'DL1-1.5S': sc.createDescendingDiagonalLine(1, 1.5),\r\n  'DL3-2S': sc.createDescendingDiagonalLine(3, 2),\r\n  'DL1.5-1S': sc.createDescendingDiagonalLine(1.5, 1),\r\n  'DL4-8S': sc.createDescendingDiagonalLine(4, 8),\r\n  'DL2-4S': sc.createDescendingDiagonalLine(2, 4),\r\n  'DL1-2S': sc.createDescendingDiagonalLine(1, 2),\r\n  'DL.5-1S': sc.createDescendingDiagonalLine(0.5, 1),\r\n  'DL8-4S': sc.createDescendingDiagonalLine(8, 4),\r\n  'DL4-2S': sc.createDescendingDiagonalLine(4, 2),\r\n  'DL2-1S': sc.createDescendingDiagonalLine(2, 1),\r\n  'DL1-.5S': sc.createDescendingDiagonalLine(1, 0.5),\r\n  'DL1-4S': sc.createDescendingDiagonalLine(1, 4),\r\n  'DL.5-2S': sc.createDescendingDiagonalLine(0.5, 2),\r\n  'DL4-1S': sc.createDescendingDiagonalLine(4, 1),\r\n  'DL2-.5S': sc.createDescendingDiagonalLine(2, 0.5),\r\n  'DLOC8NW': sc.createDiagonalLineOutsideCircle(8, 'NW'),\r\n  'DLOC8NE': sc.createDiagonalLineOutsideCircle(8, 'NE'),\r\n  'DLOC8SW': sc.createDiagonalLineOutsideCircle(8, 'SW'),\r\n  'DLOC8SE': sc.createDiagonalLineOutsideCircle(8, 'SE'),\r\n  'DLOC4NW': sc.createDiagonalLineOutsideCircle(4, 'NW'),\r\n  'DLOC4NE': sc.createDiagonalLineOutsideCircle(4, 'NE'),\r\n  'DLOC4SW': sc.createDiagonalLineOutsideCircle(4, 'SW'),\r\n  'DLOC4SE': sc.createDiagonalLineOutsideCircle(4, 'SE'),\r\n  'DLIC8N': sc.createAscendingDiagonalLineInsideCircle(4),\r\n  'DLIC4N': sc.createAscendingDiagonalLineInsideCircle(2),\r\n  'DLIC8S': sc.createDescendingDiagonalLineInsideCircle(4),\r\n  'DLIC4S': sc.createDescendingDiagonalLineInsideCircle(2),\r\n  'RA8NW': { codeString: \"VL8;HL8\" },\r\n  'RA4NW': { codeString: \"VL4;HL4\" },\r\n  'RA3NW': { codeString: \"VL3;HL3\" },\r\n  'RA2NW': { codeString: \"VL2;HL2\" },\r\n  'RA1.5NW': { codeString: \"VL1.5;HL1.5\" },\r\n  'RA1NW': { codeString: \"VL1;HL1\" },\r\n  'RA8NE': { codeString: \"HL8;VL8:8,0\" },\r\n  'RA4NE': { codeString: \"HL4;VL4:4,0\" },\r\n  'RA3NE': { codeString: \"HL3;VL3:3,0\" },\r\n  'RA2NE': { codeString: \"HL2;VL2:2,0\" },\r\n  'RA1.5NE': { codeString: \"HL1.5;VL1.5:1.5,0\" },\r\n  'RA1NE': { codeString: \"HL1;VL1:1,0\" },\r\n  'RA8SW': { codeString: \"VL8;HL8:0,8\" },\r\n  'RA4SW': { codeString: \"VL4;HL4:0,4\" },\r\n  'RA3SW': { codeString: \"VL3;HL3:0,3\" },\r\n  'RA2SW': { codeString: \"VL2;HL2:0,2\" },\r\n  'RA1.5SW': { codeString: \"VL1.5;HL1.5:0,1.5\" },\r\n  'RA1SW': { codeString: \"VL1;HL1:0,1\" },\r\n  'RA8SE': { codeString: \"HL8:0,8;VL8:8,0\" },\r\n  'RA4SE': { codeString: \"HL4:0,4;VL4:4,0\" },\r\n  'RA3SE': { codeString: \"HL3:0,3;VL3:3,0\" },\r\n  'RA2SE': { codeString: \"HL2:0,2;VL2:2,0\" },\r\n  'RA1.5SE': { codeString: \"HL1.5:0,1.5;VL1.5:1.5,0\" },\r\n  'RA1SE': { codeString: \"HL1:0,1;VL1:1,0\" },\r\n  'RA8N': { codeString: \"DL4N;DL4S:4,0\" },\r\n  'RA4N': { codeString: \"DL2N;DL2S:2,0\" },\r\n  'RA3N': { codeString: \"DL1.5N;DL1.5S:1.5,0\" },\r\n  'RA2N': { codeString: \"DL1N;DL1S:1,0\" },\r\n  'RA1N': { codeString: \"DL.5N;DL.5S:0.5,0\" },\r\n  'RA8S': { codeString: \"DL4S;DL4N:4,0\" },\r\n  'RA4S': { codeString: \"DL2S;DL2N:2,0\" },\r\n  'RA3S': { codeString: \"DL1.5S;DL1.5N:1.5,0\" },\r\n  'RA2S': { codeString: \"DL1S;DL1N:1,0\" },\r\n  'RA1S': { codeString: \"DL.5S;DL.5N:.5,0\" },\r\n  'RA8W': { codeString: \"DL4N;DL4S:0,4\" },\r\n  'RA4W': { codeString: \"DL2N;DL2S:0,2\" },\r\n  'RA3W': { codeString: \"DL1.5N;DL1.5S:0,1.5\" },\r\n  'RA2W': { codeString: \"DL1N;DL1S:0,1\" },\r\n  'RA1W': { codeString: \"DL.5N;DL.5S:0,0.5\" },\r\n  'RA8E': { codeString: \"DL4S;DL4N:0,4\" },\r\n  'RA4E': { codeString: \"DL2S;DL2N:0,2\" },\r\n  'RA3E': { codeString: \"DL1.5S;DL1.5N:0,1.5\" },\r\n  'RA2E': { codeString: \"DL1S;DL1N:0,1\" },\r\n  'RA1E': { codeString: \"DL.5S;DL.5N:0,0.5\" },\r\n  'AA8N': { codeString: \"DL4-8N;DL4-8S:4,0\" },\r\n  'AA4N': { codeString: \"DL2-4N;DL2-4S:2,0\" },\r\n  'AA2N': { codeString: \"DL1-2N;DL1-2S:1,0\" },\r\n  'AA8S': { codeString: \"DL4-8S;DL4-8N:4,0\" },\r\n  'AA4S': { codeString: \"DL2-4S;DL2-4N:2,0\" },\r\n  'AA2S': { codeString: \"DL1-2S;DL1-2N:1,0\" },\r\n  'AA8W': { codeString: \"DL8-4N;DL8-4S:0,4\" },\r\n  'AA4W': { codeString: \"DL4-2N;DL4-2S:0,2\" },\r\n  'AA2W': { codeString: \"DL2-1N;DL2-1S:0,1\" },\r\n  'AA8E': { codeString: \"DL8-4S;DL8-4N:0,4\" },\r\n  'AA4E': { codeString: \"DL4-2S;DL4-2N:0,2\" },\r\n  'AA2E': { codeString: \"DL2-1S;DL2-1N:0,1\" },\r\n  'SC8': { codeString: \"HL8:0,4;VL8:4,0\" },\r\n  'SC4': { codeString: \"HL4:0,2;VL4:2,0\" },\r\n  'SC2': { codeString: \"HL2:0,1;VL2:1,0\" },\r\n  'DC8': { codeString: \"DL8S;DL8N\" },\r\n  'DC4': { codeString: \"DL4S;DL4N\" },\r\n  'DC2': { codeString: \"DL2S;DL2N\" },\r\n  'RT8SW': { codeString: \"VL8;HL8:0,8;DL8S\" },\r\n  'RT4SW': { codeString: \"VL4;HL4:0,4;DL4S\" },\r\n  'RT2SW': { codeString: \"VL2;HL2:0,2;DL2S\" },\r\n  'RT8NW': { codeString: \"VL8;HL8;DL8N\" },\r\n  'RT4NW': { codeString: \"VL4;HL4;DL4N\" },\r\n  'RT2NW': { codeString: \"VL2;HL2;DL2N\" },\r\n  'RT8NE': { codeString: \"HL8;VL8:8,0;DL8S\" },\r\n  'RT4NE': { codeString: \"HL4;VL4:4,0;DL4S\" },\r\n  'RT2NE': { codeString: \"HL2;VL2:2,0;DL2S\" },\r\n  'RT8SE': { codeString: \"HL8:0,8;VL8:8,0;DL8N\" },\r\n  'RT4SE': { codeString: \"HL4:0,4;VL4:4,0;DL4N\" },\r\n  'RT2SE': { codeString: \"HL2:0,2;VL2:2,0;DL2N\" },\r\n  'RT8N': { codeString: \"DL4N;DL4S:4,0;HL8:0,4\" },\r\n  'RT4N': { codeString: \"DL2N;DL2S:2,0;HL4:0,2\" },\r\n  'RT2N': { codeString: \"DL1N;DL1S:1,0;HL2:0,1\" },\r\n  'RT8S': { codeString: \"DL4S;DL4N:4,0;HL8\" },\r\n  'RT4S': { codeString: \"DL2S;DL2N:2,0;HL4\" },\r\n  'RT2S': { codeString: \"DL1S;DL1N:1,0;HL2\" },\r\n  'RT8W': { codeString: \"DL4N;DL4S:0,4;VL8:4,0\" },\r\n  'RT4W': { codeString: \"DL2N;DL2S:0,2;VL4:2,0\" },\r\n  'RT2W': { codeString: \"DL1N;DL1S:0,1;VL2:1,0\" },\r\n  'RT8E': { codeString: \"DL4S;DL4N:0,4;VL8\" },\r\n  'RT4E': { codeString: \"DL2S;DL2N:0,2;VL4\" },\r\n  'RT2E': { codeString: \"DL1S;DL1N:0,1;VL2\" },\r\n  'AT8N': { codeString: \"DL4-8N;DL4-8S:4,0;HL8:0,8\" },\r\n  'AT4N': { codeString: \"DL2-4N;DL2-4S:2,0;HL4:0,4\" },\r\n  'AT2N': { codeString: \"DL1-2N;DL1-2S:1,0;HL2:0,2\" },\r\n  'AT8S': { codeString: \"DL4-8S;DL4-8N:4,0;HL8\" },\r\n  'AT4S': { codeString: \"DL2-4S;DL2-4N:2,0;HL4\" },\r\n  'AT2S': { codeString: \"DL1-2S;DL1-2N:1,0;HL2\" },\r\n  'AT8W': { codeString: \"DL8-4N;DL8-4S:0,4;VL8:8,0\" },\r\n  'AT4W': { codeString: \"DL4-2N;DL4-2S:0,2;VL4:4,0\" },\r\n  'AT2W': { codeString: \"DL2-1N;DL2-1S:0,1;VL2:2,0\" },\r\n  'AT8E': { codeString: \"DL8-4S;DL8-4N:0,4;VL8\" },\r\n  'AT4E': { codeString: \"DL4-2S;DL4-2N:0,2;VL4\" },\r\n  'AT2E': { codeString: \"DL2-1S;DL2-1N:0,1;VL2\" },\r\n  'S8': { codeString: \"HL8;HL8:0,8;VL8;VL8:8,0\" },\r\n  'S4': { codeString: \"HL4;HL4:0,4;VL4;VL4:4,0\" },\r\n  'S2': { codeString: \"HL2;HL2:0,2;VL2;VL2:2,0\" },\r\n  'DS8': { codeString: \"DL4N;DL4S:4,0;DL4S:0,4;DL4N:4,4\" },\r\n  'DS4': { codeString: \"DL2N;DL2S:2,0;DL2S:0,2;DL2N:2,2\" },\r\n  'DS2': { codeString: \"DL1N;DL1S:1,0;DL1S:0,1;DL1N:1,1\" },\r\n  'OS8N': { codeString: \"VL8;HL8:0,8;VL8:8,0\" },\r\n  'OS4N': { codeString: \"VL4;HL4:0,4;VL4:4,0\" },\r\n  'OS2N': { codeString: \"VL2;HL2:0,2;VL2:2,0\" },\r\n  'OS8S': { codeString: \"VL8;HL8;VL8:8,0\" },\r\n  'OS4S': { codeString: \"VL4;HL4;VL4:4,0\" },\r\n  'OS2S': { codeString: \"VL2;HL2;VL2:2,0\" },\r\n  'OS8W': { codeString: \"HL8;HL8:0,8;VL8:8,0\" },\r\n  'OS4W': { codeString: \"HL4;HL4:0,4;VL4:4,0\" },\r\n  'OS2W': { codeString: \"HL2;HL2:0,2;VL2:2,0\" },\r\n  'OS8E': { codeString: \"VL8;HL8;HL8:0,8\" },\r\n  'OS4E': { codeString: \"VL4;HL4;HL4:0,4\" },\r\n  'OS2E': { codeString: \"VL2;HL2;HL2:0,2\" },\r\n  'R84': { codeString: \"HL8;HL8:0,4;VL4;VL4:8,0\" },\r\n  'R42': { codeString: \"HL4;HL4:0,2;VL2;VL2:4,0\" },\r\n  'R48': { codeString: \"HL4;HL4:0,8;VL8;VL8:4,0\" },\r\n  'R24': { codeString: \"HL2;HL2:0,4;VL4;VL4:2,0\" },\r\n  'OR84N': { codeString: \"VL4;HL8:0,4;VL4:8,0\" },\r\n  'OR42N': { codeString: \"VL2;HL4:0,2;VL2:4,0\" },\r\n  'OR84S': { codeString: \"VL4;HL8;VL4:8,0\" },\r\n  'OR42S': { codeString: \"VL2;HL4;VL2:4,0\" },\r\n  'OR84W': { codeString: \"HL8;HL8:0,4;VL4:8,0\" },\r\n  'OR42W': { codeString: \"HL4;HL4:0,2;VL2:4,0\" },\r\n  'OR84E': { codeString: \"VL4;HL8;HL8:0,4\" },\r\n  'OR42E': { codeString: \"VL2;HL4;HL4:0,2\" },\r\n  'OR48N': { codeString: \"VL8;HL4:0,8;VL8:4,0\" },\r\n  'OR24N': { codeString: \"VL4;HL2:0,4;VL4:2,0\" },\r\n  'OR48S': { codeString: \"VL8;HL4;VL8:4,0\" },\r\n  'OR24S': { codeString: \"VL4;HL2;VL4:2,0\" },\r\n  'OR48W': { codeString: \"HL4;HL4:0,8;VL8:4,0\" },\r\n  'OR24W': { codeString: \"HL2;HL2:0,4;VL4:2,0\" },\r\n  'OR48E': { codeString: \"VL8;HL4;HL4:0,8\" },\r\n  'OR24E': { codeString: \"VL4;HL2;HL2:0,4\" },\r\n  'LARR8W': { codeString: \"P4W;HL8:0,2\" },\r\n  'ARR8W': { codeString: \"P3W;HL8:0,1.5\" },\r\n  'LARR4W': { codeString: \"P4W;HL4:0,2\" },\r\n  'ARR4W': { codeString: \"P3W;HL3:0,1.5\" },\r\n  'LARR8E': { codeString: \"HL8:0,2;P4E:6,0\" },\r\n  'ARR8E': { codeString: \"HL8:0,1.5;P3E:6.5,0\" },\r\n  'LARR4E': { codeString: \"HL4:0,2;P4E:2,0\" },\r\n  'ARR4E': { codeString: \"HL4:0,1.5;P3E:2.5,0\" },\r\n  'LARR8N': { codeString: \"P4N;VL8:2,0\" },\r\n  'ARR8N': { codeString: \"P3N;VL8:1.5,0\" },\r\n  'LARR4N': { codeString: \"P4N;VL4:2,0\" },\r\n  'ARR4N': { codeString: \"P3N;VL4:1.5,0\" },\r\n  'LARR8S': { codeString: \"P4S:0,6;VL8:2,0\" },\r\n  'ARR8S': { codeString: \"P3S:0,6.5;VL8:1.5,0\" },\r\n  'LARR4S': { codeString: \"P4S:0,2;VL4:2,0\" },\r\n  'ARR4S': { codeString: \"P3S:0,2.5;VL4:1.5,0\" },\r\n  'LARR8NW': { codeString: \"DL8S;P3NW\" },\r\n  'ARR8NW': { codeString: \"DL8S;P2NW\" },\r\n  'LARR4NW': { codeString: \"DL4S;P3NW\" },\r\n  'ARR4NW': { codeString: \"DL4S;P2NW\" },\r\n  'LARR8NE': { codeString: \"DL8N;P3NE:5,0\" },\r\n  'ARR8NE': { codeString: \"DL8N;P2NE:6,0\" },\r\n  'LARR4NE': { codeString: \"DL4N;P3NE:1,0\" },\r\n  'ARR4NE': { codeString: \"DL4N;P2NE:2,0\" },\r\n  'LARR8SW': { codeString: \"DL8N;P3SW:0,5\" },\r\n  'ARR8SW': { codeString: \"DL8N;P2SW:0,6\" },\r\n  'LARR4SW': { codeString: \"DL4N;P3SW:0,1\" },\r\n  'ARR4SW': { codeString: \"DL4N;P2SW:0,2\" },\r\n  'LARR8SE': { codeString: \"DL8S;P3SE:5,5\" },\r\n  'ARR8SE': { codeString: \"DL8S;P2SE:6,6\" },\r\n  'LARR4SE': { codeString: \"DL4S;P3SE:1,1\" },\r\n  'ARR4SE': { codeString: \"DL4S;P2SE:2,2\" },\r\n  'P4N': { codeString: \"RA4N\" },\r\n  'P3N': { codeString: \"RA3N\" },\r\n  'P2N': { codeString: \"RA2N\" },\r\n  'P4S': { codeString: \"RA4S\" },\r\n  'P3S': { codeString: \"RA3S\" },\r\n  'P2S': { codeString: \"RA2S\" },\r\n  'P4W': { codeString: \"RA4W\" },\r\n  'P3W': { codeString: \"RA3W\" },\r\n  'P2W': { codeString: \"RA2W\" },\r\n  'P4E': { codeString: \"RA4E\" },\r\n  'P3E': { codeString: \"RA3E\" },\r\n  'P2E': { codeString: \"RA2E\" },\r\n  'P3NW': { codeString: \"RA3NW\" },\r\n  'P3NE': { codeString: \"RA3NE\" },\r\n  'P3SW': { codeString: \"RA3SW\" },\r\n  'P3SE': { codeString: \"RA3SE\" },\r\n  'P2NW': { codeString: \"RA2NW\" },\r\n  'P2NE': { codeString: \"RA2NE\" },\r\n  'P2SW': { codeString: \"RA2SW\" },\r\n  'P2SE': { codeString: \"RA2SE\" },\r\n  'P1.5NW': { codeString: \"RA1.5NW\" },\r\n  'P1.5NE': { codeString: \"RA1.5NE\" },\r\n  'P1.5SW': { codeString: \"RA1.5SW\" },\r\n  'P1.5SE': { codeString: \"RA1.5SE\" },\r\n  'LARRC8EC': { codeString: \"C8;P4S:6,2\" },\r\n  'ARRC8EC': { codeString: \"C8;P3S:6.5,2.5\" },\r\n  'LARRC8WC': { codeString: \"P4N:0,4;C8:2,0\" },\r\n  'ARRC8WC': { codeString: \"P3N:0,4;C8:1.5,0\" },\r\n  'LARRC8NC': { codeString: \"C8:0,2;P4E:2,0\" },\r\n  'ARRC8NC': { codeString: \"C8:0,1.5;P3E:2.5,0\" },\r\n  'LARRC8SC': { codeString: \"C8;P4W:4,6\" },\r\n  'ARRC8SC': { codeString: \"C8;P3W:4,6.5\" },\r\n  'LARRC8ECC': { codeString: \"C8;P4N:6,4\" },\r\n  'ARRC8ECC': { codeString: \"C8;P3N:6.5,4\" },\r\n  'LARRC8WCC': { codeString: \"P4S:0,2;C8:2,0\" },\r\n  'ARRC8WCC': { codeString: \"P3S:0,2.5;C8:1.5,0\" },\r\n  'LARRC8NCC': { codeString: \"C8:0,2;P4W:4,0\" },\r\n  'ARRC8NCC': { codeString: \"C8:0,1.5;P3W:4,0\" },\r\n  'LARRC8SCC': { codeString: \"C8;P4E:2,6\" },\r\n  'ARRC8SCC': { codeString: \"C8;P3E:2.5,6.5\" },\r\n  'LARROC8SEC': { codeString: \"OC8SE;P4S:6,2\" },\r\n  'ARROC8SEC': { codeString: \"OC8SE;P3S:6.5,2.5\" },\r\n  'LARROC8NWC': { codeString: \"P4N:0,4;OC8NW:2,0\" },\r\n  'ARROC8NWC': { codeString: \"P3N:0,4;OC8NW:1.5,0\" },\r\n  'LARROC8NEC': { codeString: \"OC8NE:0,2;P4E:2,0\" },\r\n  'ARROC8NEC': { codeString: \"OC8NE:0,1.5;P3E:2.5,0\" },\r\n  'LARROC8SWC': { codeString: \"OC8SW;P4W:4,6\" },\r\n  'ARROC8SWC': { codeString: \"OC8SW;P3W:4,6.5\" },\r\n  'LARROC8SECC': { codeString: \"OC8SE;P4E:2,6\" },\r\n  'ARROC8SECC': { codeString: \"OC8SE;P3E:2.5,6.5\" },\r\n  'LARROC8NWCC': { codeString: \"OC8NW:0,2;P4W:4,0\" },\r\n  'ARROC8NWCC': { codeString: \"OC8NW:0,1.5;P3W:4,0\" },\r\n  'LARROC8NECC': { codeString: \"OC8NE;P4N:6,4\" },\r\n  'ARROC8NECC': { codeString: \"OC8NE;P3N:6.5,4\" },\r\n  'LARROC8SWCC': { codeString: \"P4S:0,2;OC8SW:2,0\" },\r\n  'ARROC8SWCC': { codeString: \"P3S:0,2.5;OC8SW:1.5,0\" },\r\n  'LARRHC8NC': { codeString: \"HC8N;P4S:6,2\" },\r\n  'ARRHC8NC': { codeString: \"HC8N;P3S:6.5,2.5\" },\r\n  'LARRHC8SC': { codeString: \"P4N;HC8S:2,0\" },\r\n  'ARRHC8SC': { codeString: \"P3N;HC8S:1.5,0\" },\r\n  'LARRHC8WC': { codeString: \"HC8W:0,2;P4E:2,0\" },\r\n  'ARRHC8WC': { codeString: \"HC8W:0,1.5;P3E:2.5,0\" },\r\n  'LARRHC8EC': { codeString: \"HC8E;P4W:0,6\" },\r\n  'ARRHC8EC': { codeString: \"HC8E;P3W:0,6.5\" },\r\n  'LARRHC8NCC': { codeString: \"P4S:0,2;HC8N:2,0\" },\r\n  'ARRHC8NCC': { codeString: \"P3S:0,2.5;HC8N:1.5,0\" },\r\n  'LARRHC8SCC': { codeString: \"HC8S;P4N:6,0\" },\r\n  'ARRHC8SCC': { codeString: \"HC8S;P3N:6.5,0\" },\r\n  'LARRHC8WCC': { codeString: \"HC8W;P4E:2,6\" },\r\n  'ARRHC8WCC': { codeString: \"HC8W;P3E:2.5,6.5\" },\r\n  'LARRHC8ECC': { codeString: \"P4W;HC8E:0,2\" },\r\n  'ARRHC8ECC': { codeString: \"P3W;HC8E:0,1.5\" },\r\n  'LARRQC4NWC': { codeString: \"QC4NW:0,2;P4E:2,0\" },\r\n  'ARRQC4NWC': { codeString: \"QC4NW:0,1.5;P3E:2.5,0\" },\r\n  'LARRQC4SWC': { codeString: \"P4N;QC4SW:2,0\" },\r\n  'ARRQC4SWC': { codeString: \"P3N;QC4SW:1.5,0\" },\r\n  'LARRQC4NEC': { codeString: \"QC4NE;P4S:2,2\" },\r\n  'ARRQC4NEC': { codeString: \"QC4NE;P3S:2.5,2.5\" },\r\n  'LARRQC4SEC': { codeString: \"QC4SE;P4W:0,2\" },\r\n  'ARRQC4SEC': { codeString: \"QC4SE;P3W:0,2.5\" },\r\n  'LARRQC4NWCC': { codeString: \"P4S:0,2;QC4NW:2,0\" },\r\n  'ARRQC4NWCC': { codeString: \"P3S:0,2.5;QC4NW:1.5,0\" },\r\n  'LARRQC4SWCC': { codeString: \"QC4SW;P4E:2,2\" },\r\n  'ARRQC4SWCC': { codeString: \"QC4SW;P3E:2.5,2.5\" },\r\n  'LARRQC4NECC': { codeString: \"P4W;QC4NE:0,2\" },\r\n  'ARRQC4NECC': { codeString: \"P3W;QC4NE:0,1.5\" },\r\n  'LARRQC4SECC': { codeString: \"QC4SE;P4N:2,0\" },\r\n  'ARRQC4SECC': { codeString: \"QC4SE;P3N:2.5,0\" }\r\n};\r\n\r\nshapeDefinitions['DOT'].extraPathOptions = {\r\n  baseStrokeWidth: 0.5,\r\n  extraDotWidth: 0.333\r\n};\r\n\r\nshapeDefinitions['SDOT'].extraPathOptions = {\r\n  baseStrokeWidth: 0.5,\r\n  extraDotWidth: 0.1665\r\n};\r\n\r\nshapeDefinitions['COMMA'].extraPathOptions = {\r\n  baseStrokeWidth: 0.5,\r\n  extraDotWidth: 0.333\r\n};\r\n\r\n// Dot family: which per-type sizing knobs apply to each dot-bearing shape.\r\n// DOT and COMMA take the dot-* knobs; SDOT takes the sdot-* knobs (and\r\n// halves dot-extra-width by default). Read in bliss-element.js getSvgContent.\r\nshapeDefinitions['DOT'].dotFamily = 'dot';\r\nshapeDefinitions['SDOT'].dotFamily = 'sdot';\r\nshapeDefinitions['COMMA'].dotFamily = 'dot';\r\n\r\n/**\r\n * External glyph definitions derived from alphabetData in liberation-sans-svg-path-data.js.\r\n *\r\n * Supported character sets:\r\n * - Base Latin (a-z, A-Z) - English\r\n * - Latin Extended - European languages:\r\n *   - Swedish/Finnish: å, ä, ö, Å, Ä, Ö\r\n *   - Norwegian/Danish: å, æ, ø, Å, Æ, Ø\r\n *   - Icelandic: á, é, í, ó, ú, ý, ð, þ, æ, ö, Á, É, Í, Ó, Ú, Ý, Ð, Þ, Æ, Ö\r\n *   - German: ä, ö, ü, ß, Ä, Ö, Ü\r\n *   - French: à, â, ç, è, é, ê, ë, î, ï, ô, ù, û, ü, ÿ, œ, æ, Œ, Æ\r\n *   - Spanish: á, é, í, ó, ú, ü, ñ, Á, É, Í, Ó, Ú, Ü, Ñ\r\n *   - Portuguese: á, â, ã, à, ç, é, ê, í, ó, ô, õ, ú, Á, Â, Ã, À, Ç, É, Ê, Í, Ó, Ô, Õ, Ú\r\n *   - Italian: à, è, é, ì, ò, ù, À, È, É, Ì, Ò, Ù\r\n *   - Dutch: é, ë, ï, ö, ü\r\n *   - Polish: ą, ć, ę, ł, ń, ó, ś, ź, ż, Ą, Ć, Ę, Ł, Ń, Ó, Ś, Ź, Ż\r\n *   - Czech/Slovak: á, č, é, í, ó, š, ú, ý, ž (partial)\r\n *   - Hungarian: á, é, í, ó, ö, ő, ú, ü, ű, Á, É, Í, Ó, Ö, Ő, Ú, Ü, Ű\r\n *   - Lithuanian: ą, č, ę, ė, į, š, ų, ū, ž, Ą, Č, Ę, Ė, Į, Š, Ų, Ū, Ž\r\n *   - Latvian: ā, č, ē, ģ, ī, ķ, ļ, ņ, š, ū, ž, Ā, Č, Ē, Ģ, Ī, Ķ, Ļ, Ņ, Š, Ū, Ž\r\n *   - Estonian: ä, ö, ü, õ\r\n *   - Slovenian/Croatian: č, š, ž (partial)\r\n *   - Afrikaans: ê, ë, î, ï, ô, û\r\n * - Cyrillic (Russian): а-я, А-Я, ё, Ё\r\n *\r\n * To add more characters, add them to alphabetData in liberation-sans-svg-path-data.js.\r\n */\r\nconst externalGlyphDefinitions = {};\r\nfor (const [code, data] of Object.entries(alphabetData)) {\r\n  externalGlyphDefinitions[code] = sc.createExternalGlyph(data.char);\r\n}\r\n\r\nfor (const definition of Object.values(shapeDefinitions)) {\r\n  definition.isShape = true;\r\n}\r\n\r\nconst blissElementDefinitions = {\r\n  ...nonShapeDefinitions,\r\n  ...referenceGlyphDefinitions,\r\n  ...shapeDefinitions,\r\n  ...externalGlyphDefinitions,\r\n};\r\n\r\n// Add Bliss glyph definitions (B-codes use Blissary ID:s)\r\nfor (const [code, definition] of Object.entries(glyphData)) {\r\n  definition.glyphCode = code;\r\n  definition.isBlissGlyph = true;\r\n}\r\nObject.assign(blissElementDefinitions, glyphData);\r\n\r\n// Track built-in codes so removeDefinition can prevent deleting them\r\nconst builtInCodes = new Set(Object.keys(blissElementDefinitions));\r\n\r\n// Letter aliases: B-codes that map to external glyph X-codes.\r\n// Registered after builtInCodes so they're treated as aliases, not built-in Bliss glyphs.\r\nconst letterAliases = {\r\n  B29: { codeString: \"Xa\" },  B30: { codeString: \"Xb\" },  B31: { codeString: \"Xc\" },\r\n  B32: { codeString: \"Xd\" },  B33: { codeString: \"Xe\" },  B34: { codeString: \"Xf\" },\r\n  B35: { codeString: \"Xg\" },  B36: { codeString: \"Xh\" },  B37: { codeString: \"Xi\" },\r\n  B38: { codeString: \"Xj\" },  B39: { codeString: \"Xk\" },  B40: { codeString: \"Xl\" },\r\n  B41: { codeString: \"Xm\" },  B42: { codeString: \"Xn\" },  B43: { codeString: \"Xo\" },\r\n  B44: { codeString: \"Xp\" },  B45: { codeString: \"Xq\" },  B46: { codeString: \"Xr\" },\r\n  B47: { codeString: \"Xs\" },  B48: { codeString: \"Xt\" },  B49: { codeString: \"Xu\" },\r\n  B50: { codeString: \"Xv\" },  B51: { codeString: \"Xw\" },  B52: { codeString: \"Xx\" },\r\n  B53: { codeString: \"Xy\" },  B54: { codeString: \"Xz\" },\r\n  B55: { codeString: \"XA\" },  B56: { codeString: \"XB\" },  B57: { codeString: \"XC\" },\r\n  B58: { codeString: \"XD\" },  B59: { codeString: \"XE\" },  B60: { codeString: \"XF\" },\r\n  B61: { codeString: \"XG\" },  B62: { codeString: \"XH\" },  B63: { codeString: \"XI\" },\r\n  B64: { codeString: \"XJ\" },  B65: { codeString: \"XK\" },  B66: { codeString: \"XL\" },\r\n  B67: { codeString: \"XM\" },  B68: { codeString: \"XN\" },  B69: { codeString: \"XO\" },\r\n  B70: { codeString: \"XP\" },  B71: { codeString: \"XQ\" },  B72: { codeString: \"XR\" },\r\n  B73: { codeString: \"XS\" },  B74: { codeString: \"XT\" },  B75: { codeString: \"XU\" },\r\n  B76: { codeString: \"XV\" },  B77: { codeString: \"XW\" },  B78: { codeString: \"XX\" },\r\n  B79: { codeString: \"XY\" },  B80: { codeString: \"XZ\" },\r\n};\r\nObject.assign(blissElementDefinitions, letterAliases);\r\n\r\n// Every code shipped with the library is permanent vocabulary: the letter\r\n// aliases stay OUT of builtInCodes (so resolution and decomposition keep\r\n// treating them as aliases — B29 emits Xa) but must be just as immune to\r\n// overwrite/patch/remove, or a portable composition using letters could\r\n// render differently per instance. This is the guard set for those three\r\n// routes and the isBuiltIn report; builtInCodes stays the resolution set.\r\nconst protectedCodes = new Set([...builtInCodes, ...Object.keys(letterAliases)]);\r\n\r\nexport { blissElementDefinitions, builtInCodes, protectedCodes };","/**\r\n * This Source Code Form is subject to the terms of the Mozilla Public\r\n * License, v. 2.0. If a copy of the MPL was not distributed with this\r\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\r\n */\r\n\r\nimport { OPTION_BRACKET_CONTENT, SEMANTIC_INDICATOR_ROOTS, peelCharacterBrackets } from './bliss-constants.js';\r\nimport { builtInCodes } from './bliss-element-definitions.js';\r\n\r\n// Quote-aware option-prefix matchers: overlay codes arrive RESTORED, so a\r\n// quoted value may carry ']'/';'/':' and a lazy `\\[.*?\\]` would cut inside\r\n// it. Group 2 is the shared grammar's internal atom; group 3 the remainder.\r\nconst PART_OPTION_PREFIX = new RegExp(String.raw`^(\\[` + OPTION_BRACKET_CONTENT + String.raw`\\])>(.+)$`);\r\nconst CHAR_OPTION_PREFIX = new RegExp(String.raw`^(\\[` + OPTION_BRACKET_CONTENT + String.raw`\\])(?!>)`);\r\n// Like CHAR_OPTION_PREFIX but requiring a non-empty remainder (group 3), the\r\n// strip form used by the overlay store gate: a baseless bracket (`[opts]`)\r\n// stays whole and classifies UNKNOWN_CODE instead of stripping to nothing\r\n// (mirrors the DSL gate's `(.+)` requirement).\r\nconst CHAR_OPTION_STRIP = new RegExp(String.raw`^(\\[` + OPTION_BRACKET_CONTENT + String.raw`\\])(?!>)(.+)$`);\r\n\r\n// A codeString that is one code as the DSL reads it: no character the DSL\r\n// reads as structure (a separator, a coordinate, an option bracket, a head\r\n// marker, a text block, white space), the only form a pure-rename alias can\r\n// hold. Any other character is part of a name: define() accepts names spelled\r\n// with a hyphen, a dot or a letter outside ASCII, and digit-leading ones (the\r\n// Blissary-ID pattern, e.g. '1219'), and an alias to one must resolve like\r\n// any other single-code rename.\r\nexport const SINGLE_CODE_TOKEN = /^[^/;:|^[\\]>{}\\s]+$/;\r\n\r\n/**\r\n * Resolve a definition to its EFFECTIVE definition by following pure-rename\r\n * bare aliases: a definition whose whole content is a single-code codeString\r\n * (no `/`, `;`, `:`, part options, `^`) and which carries no identity or\r\n * metadata of its own (no glyph/shape/externalGlyph flags, no getPath, no\r\n * isIndicator) is transparent, so indicator-ness and layout metadata read\r\n * through it. A character bracket leading the codeString is the definition's\r\n * own options, as its defaultOptions are, so the code behind it is the one it\r\n * renames.\r\n * The chain stops at the first definition with identity (a flagged glyph, a\r\n * shape, an external glyph, an indicator) or whose codeString is not a single\r\n * clean token — so a multi-code composition NEVER resolves through (the\r\n * single-code-target guardrail), and a definition's\r\n * own metadata is never bypassed. Unregistered targets end the chain at the\r\n * alias itself (classified like any recognized non-indicator).\r\n *\r\n * Shared by the `;;` classifier (partitionWordIndicators), the render-merge\r\n * filter (filterToIndicators), the semantic helpers, and the parser's part\r\n * metadata application, so every indicator surface resolves aliases\r\n * identically (GH #35).\r\n *\r\n * @param {Object|undefined} definition - the starting definition entry\r\n * @param {Object} definitions - the live definitions registry\r\n * @returns {Object|undefined} the effective definition (the input when no\r\n *   chain applies)\r\n */\r\nexport function resolveEffectiveDefinition(definition, definitions) {\r\n  let current = definition;\r\n  const seen = new Set();\r\n  while (\r\n    current &&\r\n    current.isIndicator !== true &&\r\n    !current.isBlissGlyph && !current.isShape && !current.isExternalGlyph &&\r\n    !current.glyphCode && typeof current.getPath !== 'function' &&\r\n    typeof current.codeString === 'string'\r\n  ) {\r\n    const target = peelCharacterBrackets(current.codeString).body;\r\n    if (!SINGLE_CODE_TOKEN.test(target) || seen.has(target)\r\n        || !Object.prototype.hasOwnProperty.call(definitions, target)) break;\r\n    seen.add(target);\r\n    current = definitions[target];\r\n  }\r\n  return current ?? definition;\r\n}\r\n\r\n/**\r\n * The code a name stands for: followed through every definition whose code\r\n * string is one clean code (a character bracket leading it is the\r\n * definition's own options), a typed one included, to the first code that is\r\n * built-in, undefined, or defined as anything else. Unlike\r\n * resolveEffectiveDefinition, which stops at a definition's identity, this\r\n * reads a typed definition drawing one code as that code.\r\n *\r\n * @param {string} name - a code name, possibly custom\r\n * @param {Object} definitions - the live definitions registry\r\n * @returns {string}\r\n */\r\nfunction codeNameStandsFor(name, definitions) {\r\n  let code = name;\r\n  const seen = new Set();\r\n  while (!builtInCodes.has(code) && !seen.has(code)\r\n      && Object.prototype.hasOwnProperty.call(definitions, code)) {\r\n    seen.add(code);\r\n    const { codeString } = definitions[code];\r\n    if (typeof codeString !== 'string') return code;\r\n    const target = peelCharacterBrackets(codeString).body;\r\n    if (!SINGLE_CODE_TOKEN.test(target)) return code;\r\n    code = target;\r\n  }\r\n  return code;\r\n}\r\n\r\n/**\r\n * Look up a code's effective definition: registry lookup (own properties\r\n * only) followed by pure-rename resolution. The single predicate source for\r\n * \"is this code an indicator\" across the `;;` store, the render-merge, and\r\n * the semantic classification helpers; also the custom glyph a recorded name\r\n * stands for when an object is read back.\r\n */\r\nexport function lookupEffectiveDefinition(bareCode, definitions) {\r\n  const definition = Object.prototype.hasOwnProperty.call(definitions, bareCode)\r\n    ? definitions[bareCode]\r\n    : undefined;\r\n  return definition ? resolveEffectiveDefinition(definition, definitions) : undefined;\r\n}\r\n\r\n/**\r\n * Extract the bare B-code from a code string that may include\r\n * option prefixes (e.g. '[color=red]>B81') and position suffixes (':0,4').\r\n */\r\nexport function getBareCode(str) {\r\n  const partLevelMatch = str.match(PART_OPTION_PREFIX);\r\n  if (partLevelMatch) return partLevelMatch[3].split(':')[0].split(';')[0];\r\n  const optionsMatch = str.match(CHAR_OPTION_PREFIX);\r\n  const code = optionsMatch ? str.slice(optionsMatch[1].length) : str;\r\n  return code.split(':')[0].split(';')[0];\r\n}\r\n\r\n/**\r\n * Get semantic indicator root from a list of indicator codes.\r\n * Returns the root B-code (e.g. 'B97') or null.\r\n */\r\nexport function getSemanticRoot(indicatorCodes, definitions) {\r\n  for (const ind of indicatorCodes) {\r\n    const bareInd = getBareCode(ind);\r\n    const indDef = lookupEffectiveDefinition(bareInd, definitions);\r\n    if (indDef?.semanticIndicator) {\r\n      return SEMANTIC_INDICATOR_ROOTS[indDef.semanticIndicator];\r\n    }\r\n  }\r\n  return null;\r\n}\r\n\r\n/**\r\n * Check if any indicator in the list carries a semanticIndicator flag.\r\n */\r\nexport function hasSemantic(indicatorCodes, definitions) {\r\n  return indicatorCodes.some(ind => lookupEffectiveDefinition(getBareCode(ind), definitions)?.semanticIndicator);\r\n}\r\n\r\n/**\r\n * Filter codes to only include real indicators (isIndicator: true), reading\r\n * indicator-ness through pure-rename aliases (GH #35).\r\n * Non-indicator codes passed in indicator position are silently dropped.\r\n */\r\nexport function filterToIndicators(codes, definitions) {\r\n  return codes.filter(code => lookupEffectiveDefinition(getBareCode(code), definitions)?.isIndicator === true);\r\n}\r\n\r\n/**\r\n * Detect a TOP-LEVEL character separator (`/`) in an indicator code: outside\r\n * option brackets and outside a quoted option value (same scan state as\r\n * `splitTopLevelSemicolons`). A `/` hidden behind a coordinate suffix\r\n * (`B81:1,2/ZZ9`) escapes `getBareCode` (which reads only up to the `:`), yet\r\n * the serialized form re-parses as word structure, so an indicator slot can\r\n * never hold such a code.\r\n */\r\nfunction hasTopLevelSlash(code) {\r\n  let depth = 0;\r\n  let quote = null;\r\n  for (let i = 0; i < code.length; i++) {\r\n    const ch = code[i];\r\n    if (quote !== null) {\r\n      if (ch === '\\\\' && i + 1 < code.length) i++;\r\n      else if (ch === quote) quote = null;\r\n      continue;\r\n    }\r\n    if ((ch === '\"' || ch === \"'\") && depth > 0) quote = ch;\r\n    else if (ch === '[') depth++;\r\n    else if (ch === ']') { if (depth > 0) depth--; }\r\n    else if (ch === '/' && depth === 0) return true;\r\n  }\r\n  return false;\r\n}\r\n\r\n/**\r\n * Partition a list of `;;` word-level indicator codes into the ones that are\r\n * real indicators (kept) and the ones that must be rejected. A word-level\r\n * indicator must BE an indicator (isIndicator: true); a recognized non-indicator\r\n * (a real base such as B291) is rejected as `'non-indicator'`, an unrecognized\r\n * code as `'unknown'`, and a code carrying word structure (a top-level `/`,\r\n * which no indicator slot can serialize back out) as `'word-structure'`.\r\n * Shared by the DSL `;;` parser path, the API `applyIndicators` overlay path,\r\n * AND the glyph-level `applyIndicators` character-indicator gate, so all three\r\n * classify an indicator code identically (DSL/API parity; the \"word\" in the\r\n * name is historical — the classification itself is level-agnostic). The\r\n * kept-code test mirrors `filterToIndicators`, so a code accepted here always\r\n * survives the later resolve.\r\n *\r\n * @param {string[]} codes - raw `;;` codes (may carry options/coords)\r\n * @param {Object} definitions\r\n * @returns {{ valid: string[], rejected: Array<{ code: string, reason: 'non-indicator'|'unknown'|'word-structure' }> }}\r\n *   `valid` preserves each code verbatim (options/coords intact); each rejected\r\n *   `code` is the bare offending code (options/coords stripped), except a\r\n *   `'word-structure'` reject, which keeps the full code (its bare form would\r\n *   hide the offending `/`).\r\n */\r\nexport function partitionWordIndicators(codes, definitions) {\r\n  const valid = [];\r\n  const rejected = [];\r\n  for (const code of codes) {\r\n    if (hasTopLevelSlash(code)) {\r\n      rejected.push({ code, reason: 'word-structure' });\r\n      continue;\r\n    }\r\n    const bare = getBareCode(code);\r\n    // Own-property check (inside lookupEffectiveDefinition): a normal\r\n    // definitions object inherits Object.prototype members (toString,\r\n    // constructor, __proto__), so a plain `definitions[bare]` lookup would\r\n    // classify those names as recognized non-indicators. Only an OWN key is a\r\n    // real registered code; everything else is unknown. Indicator-ness reads\r\n    // through pure-rename aliases (GH #35): the effective definition is\r\n    // checked, so a 1:1 alias to an indicator is accepted, while an alias to\r\n    // a multi-code composition stays a recognized non-indicator (the\r\n    // single-code-target guardrail).\r\n    const definition = lookupEffectiveDefinition(bare, definitions);\r\n    if (definition?.isIndicator === true) {\r\n      valid.push(code);\r\n    } else {\r\n      rejected.push({ code: bare, reason: definition ? 'non-indicator' : 'unknown' });\r\n    }\r\n  }\r\n  return { valid, rejected };\r\n}\r\n\r\n/**\r\n * Resolve a `;;` word-level indicator overlay from raw codes plus a stripSemantic\r\n * flag: validate each code (a `;;` code must BE an indicator) and apply the store\r\n * decision. The single source of truth shared by the DSL parser, the API\r\n * (`applyIndicators` overlay), and the object constructor, so all three input\r\n * surfaces classify and store a `;;` overlay identically (DSL/API/object parity).\r\n *\r\n * Each rejected code is reported via `onReject({ code, reason })` so the caller\r\n * emits a surface-appropriate warning (parser `parseWarnings` vs the API mutation\r\n * channel vs the object `_parseWarnings` channel).\r\n *\r\n * Store decision: return an overlay only when it carries meaning -- a surviving\r\n * indicator, an explicit strip, or a deliberately-empty input (`rawCodes` empty,\r\n * a bare `;;` clear). An input whose codes were ALL dropped as invalid (and no\r\n * strip) returns null: the overlay is discarded, not rewritten as an empty one.\r\n *\r\n * A CHARACTER-form option prefix (`[opts]CODE`, no `>`) is inert in overlay\r\n * position for every key -- the render-merge extracts parts only, so the\r\n * bracket styles nothing (`[opts]>` is the styled form). The DSL `;;` store\r\n * gate strips + warns these before storing; the API and object surfaces reach\r\n * this resolver with raw codes, so the same strip applies here for parity\r\n * (without the strip, the quote-aware bare-code lookup would silently store\r\n * the inert prefix). Every leading char-form bracket strips\r\n * (one `onCharOptionStrip` report each) BEFORE validation; the code itself is\r\n * kept and validated normally. The parser's codes arrive pre-stripped, so the\r\n * pass is a no-op on the DSL path (no double warning).\r\n *\r\n * @param {string[]} rawCodes\r\n * @param {boolean} stripSemantic\r\n * @param {Object} definitions\r\n * @param {(rejected: { code: string, reason: 'non-indicator'|'unknown'|'word-structure' }) => void} [onReject]\r\n * @param {(stripped: { bracket: string, code: string, source: string }) => void} [onCharOptionStrip]\r\n * @returns {{ codes: string[], stripSemantic: boolean } | null}\r\n */\r\nexport function resolveWordIndicatorOverlay(rawCodes, stripSemantic, definitions, onReject, onCharOptionStrip) {\r\n  const gatedCodes = rawCodes.map((code) => {\r\n    let current = code;\r\n    let charPrefix;\r\n    while ((charPrefix = current.match(CHAR_OPTION_STRIP)) !== null) {\r\n      if (onCharOptionStrip) onCharOptionStrip({ bracket: charPrefix[1], code: charPrefix[3], source: current });\r\n      current = charPrefix[3];\r\n    }\r\n    return current;\r\n  });\r\n  const { valid, rejected } = partitionWordIndicators(gatedCodes, definitions);\r\n  if (onReject) for (const r of rejected) onReject(r);\r\n  if (valid.length > 0 || stripSemantic || rawCodes.length === 0) {\r\n    return { codes: valid, stripSemantic };\r\n  }\r\n  return null;\r\n}\r\n\r\n/**\r\n * Split a `;`-separated indicator code list on TOP-LEVEL semicolons only, leaving\r\n * a `;` inside an option block (`[color=red;stroke-width=2]>B81`) intact. The DSL\r\n * parser protects option-block semicolons with placeholders before splitting; the\r\n * API receives raw strings, so it needs this bracket-aware split to tokenize a\r\n * multi-key-option indicator the same way (DSL/API parity). Inside a bracket, a\r\n * quoted span owns its characters — a `[`/`]`/`;` in a quoted option value\r\n * (`[data-t=\"a[b\"]>B81;B86`) must not move the depth or split (otherwise a\r\n * quoted `[` would hold the depth open across the real separator and join\r\n * two indicators into one stored code). Escapes (`\\\"`) consume the next\r\n * character, matching the option parser's quote grammar. Trims and drops empty\r\n * segments, matching the prior naive `code.split(';').map(trim).filter(Boolean)`.\r\n */\r\nexport function splitTopLevelSemicolons(code) {\r\n  const result = [];\r\n  let depth = 0;\r\n  let quote = null;\r\n  let current = '';\r\n  for (let i = 0; i < code.length; i++) {\r\n    const ch = code[i];\r\n    if (quote !== null) {\r\n      current += ch;\r\n      if (ch === '\\\\' && i + 1 < code.length) current += code[++i];\r\n      else if (ch === quote) quote = null;\r\n      continue;\r\n    }\r\n    if ((ch === '\"' || ch === \"'\") && depth > 0) quote = ch;\r\n    else if (ch === '[') depth++;\r\n    else if (ch === ']') { if (depth > 0) depth--; }\r\n    if (ch === ';' && depth === 0) {\r\n      result.push(current);\r\n      current = '';\r\n    } else {\r\n      current += ch;\r\n    }\r\n  }\r\n  result.push(current);\r\n  return result.map(s => s.trim()).filter(Boolean);\r\n}\r\n\r\n/**\r\n * Determine whether auto-preserved semantic root goes before or after new indicators.\r\n * Default: semantic first (nominal). If ALL non-semantic new indicators are verbal or\r\n * adjectival, semantic goes last (the word is being used as a verb/adjective).\r\n */\r\nexport function semanticGoesLast(newIndicatorCodes, definitions) {\r\n  const nonSemantic = newIndicatorCodes.filter(ind =>\r\n    !lookupEffectiveDefinition(getBareCode(ind), definitions)?.semanticIndicator);\r\n  return nonSemantic.length > 0 &&\r\n    nonSemantic.every(ind => {\r\n      const role = lookupEffectiveDefinition(getBareCode(ind), definitions)?.indicatorRole;\r\n      return role === 'verbal' || role === 'adjectival';\r\n    });\r\n}\r\n\r\n/**\r\n * Build the indicator list with semantic root in the correct position.\r\n * Returns an array (not a joined string) to preserve position coordinates\r\n * on individual codes (e.g. 'B86:0,4').\r\n */\r\nexport function buildWithSemantic(semanticRoot, newInds, definitions) {\r\n  return semanticGoesLast(newInds, definitions)\r\n    ? [...newInds, semanticRoot]\r\n    : [semanticRoot, ...newInds];\r\n}\r\n\r\n/**\r\n * Resolve the final indicator code list from existing indicators, the\r\n * requested new codes, and the stripSemantic flag. Shared decision logic\r\n * for both the DSL `;;` parser path and the character-level mutation path:\r\n *\r\n * - Preserve the existing semantic root (unless stripSemantic) and place it\r\n *   relative to the new indicators per the placement rule.\r\n * - Replace-all: the new indicators replace any existing grammatical ones.\r\n * - Never double a semantic root the new codes already carry.\r\n * - Drop non-indicator codes; an empty result keeps the root alone (or [] if\r\n *   there is no root to keep).\r\n *\r\n * Returns an array of code strings (position coordinates preserved).\r\n */\r\nexport function resolveIndicatorCodes(existingIndicatorCodes, newCodes, { stripSemantic } = {}, definitions) {\r\n  const semanticRoot = !stripSemantic ? getSemanticRoot(existingIndicatorCodes, definitions) : null;\r\n  const validNew = filterToIndicators(newCodes, definitions);\r\n  if (validNew.length > 0) {\r\n    return semanticRoot && !hasSemantic(validNew, definitions)\r\n      ? buildWithSemantic(semanticRoot, validNew, definitions)\r\n      : validNew;\r\n  }\r\n  return semanticRoot ? [semanticRoot] : [];\r\n}\r\n\r\n/**\r\n * How many base parts a character draws, its parts read as the element's\r\n * layout reads them: the base parts first, then the indicators. An indicator\r\n * is left out of the count only there, where the layout places it as an\r\n * indicator; written before a part, it is drawn where it stands, an ordinary\r\n * part of a character composed on the fly, and then every part counts. Reads\r\n * only each part's `isIndicator`, so it serves a parsed part and a laid-out\r\n * element alike.\r\n *\r\n * @param {Array<{isIndicator?: boolean}>} parts\r\n * @returns {number}\r\n */\r\nexport function basePartCount(parts) {\r\n  const firstIndicator = parts.findIndex((part) => part.isIndicator);\r\n  if (firstIndicator === -1) return parts.length;\r\n  return parts.slice(firstIndicator).every((part) => part.isIndicator) ? firstIndicator : parts.length;\r\n}\r\n\r\n/**\r\n * Classify an indicator code's kind for introspection: 'semantic' when its\r\n * definition carries a semanticIndicator flag (e.g. THING), 'grammatical'\r\n * otherwise, or null when the definition cannot be resolved. The caller gates\r\n * on the node's `isIndicator` first; this only reads the definition, so the\r\n * handle (raw node) and the snapshot classify identically (DSL/API parity).\r\n *\r\n * @param {string|null} code - the indicator's bare codeName\r\n * @param {Object} definitions\r\n * @returns {'semantic'|'grammatical'|null}\r\n */\r\nexport function classifyIndicatorKind(code, definitions) {\r\n  const definition = lookupEffectiveDefinition(code, definitions);\r\n  if (!definition) return null;\r\n  return definition.semanticIndicator ? 'semantic' : 'grammatical';\r\n}\r\n\r\n/**\r\n * Resolve a word-level indicator overlay onto a head glyph's parts at decode\r\n * time. The single merge used by render (#rebuild) and, under flatten, by\r\n * serialize, so the DSL `;;` path and the API word-level path cannot drift.\r\n *\r\n * Splits the head's parts into base parts and trailing indicator parts, runs\r\n * resolveIndicatorCodes against the overlay (replace-all with semantic-root\r\n * preservation), and returns a new array of [...baseParts, ...resolved], each\r\n * resolved indicator appended strictly after every base part. A resolved code\r\n * that matches an existing character-level `;` indicator part REUSES that part\r\n * (a shallow clone keeping its key and its 'character' origin) so navigation\r\n * round-trips it; a genuinely overlay-added code is parsed fresh and\r\n * tagged `_indicatorOrigin: 'word'`. The input glyph is not mutated. A head\r\n * whose parts hold a non-indicator after an indicator is returned unchanged.\r\n *\r\n * A caller that has to read the merged parts back against the head and the\r\n * codes they came from (a save checking where a reload draws each one) passes\r\n * `trace`, which the merge fills with what it decided, so the caller never\r\n * restates the merge's rules: `applied` (false where the head is returned\r\n * unchanged), and where applied, `baseCount` (the head parts kept in front),\r\n * `finalCodes` (the resolved code list) and `indicators`, one entry per merged\r\n * indicator part in order, `{ finalIndex, reusedFrom }`: its index in\r\n * `finalCodes`, and the index of the head part it reuses, or -1 for a part\r\n * parsed fresh. The merged parts are the same with or without a trace.\r\n *\r\n * @param {{parts: Array}} headGlyph - the head glyph node (has .parts)\r\n * @param {{codes: string[], stripSemantic?: boolean}} overlay\r\n * @param {Object} definitions\r\n * @param {(code: string) => Object} parse - parser used to build part nodes\r\n * @param {Object} [trace] - filled with the merge's decisions, as above\r\n * @returns {Array} the resolved parts array\r\n */\r\nexport function mergeWordIndicatorsOntoHead(headGlyph, overlay, definitions, parse, trace) {\r\n  const parts = headGlyph?.parts ?? [];\r\n  // The first part is always the base, even when it is itself an indicator\r\n  // (e.g. a head whose bareCode is B85): scan for the first trailing indicator\r\n  // from index 1, so a word-level overlay onto an indicator base adds rather\r\n  // than replaces it.\r\n  const firstIndicatorIndex = parts.findIndex((p, i) => i > 0 && p.isIndicator === true);\r\n  const baseParts = firstIndicatorIndex === -1 ? parts.slice() : parts.slice(0, firstIndicatorIndex);\r\n  const existingIndicatorParts = firstIndicatorIndex === -1 ? [] : parts.slice(firstIndicatorIndex);\r\n\r\n  // A non-indicator after the first indicator is not a clean base+indicator\r\n  // shape; leave the glyph untouched rather than guess where the boundary is.\r\n  if (!existingIndicatorParts.every(p => p.isIndicator === true)) {\r\n    if (trace) trace.applied = false;\r\n    return parts.slice();\r\n  }\r\n\r\n  const existingIndicatorCodes = existingIndicatorParts.map(p => p.codeName);\r\n  const finalCodes = resolveIndicatorCodes(\r\n    existingIndicatorCodes,\r\n    overlay?.codes ?? [],\r\n    { stripSemantic: overlay?.stripSemantic === true },\r\n    definitions\r\n  );\r\n\r\n  // Reuse an existing character-level `;` indicator part when a resolved\r\n  // code matches it, so the reordered part keeps its raw key (navigation and\r\n  // getElementByKey round-trip it) and its true 'character' origin, instead of\r\n  // re-parsing into a fresh keyless node tagged 'word'. A code with no existing\r\n  // match is genuinely overlay-added, so it is parsed fresh and tagged 'word'.\r\n  // A part named by a definition of one code matches as that code, so the\r\n  // same indicator keeps its place and options whether it is written through\r\n  // a name or written out. A definition of several codes matches only by its\r\n  // own name.\r\n  const reusable = existingIndicatorParts.map((part, index) => ({ part, headIndex: baseParts.length + index }));\r\n  const indicatorParts = [];\r\n  const indicatorTrace = [];\r\n  for (const [finalIndex, code] of finalCodes.entries()) {\r\n    const reuseIndex = reusable.findIndex(r => r.part.codeName === code\r\n      || codeNameStandsFor(r.part.codeName, definitions) === code);\r\n    if (reuseIndex !== -1) {\r\n      const [reused] = reusable.splice(reuseIndex, 1);\r\n      indicatorParts.push({ ...reused.part });\r\n      indicatorTrace.push({ finalIndex, reusedFrom: reused.headIndex });\r\n      continue;\r\n    }\r\n    const node = wordIndicatorNode(code, definitions, parse);\r\n    if (node) {\r\n      indicatorParts.push({ ...node, _indicatorOrigin: 'word' });\r\n      indicatorTrace.push({ finalIndex, reusedFrom: -1 });\r\n    }\r\n  }\r\n\r\n  if (trace) Object.assign(trace, { applied: true, baseCount: baseParts.length, finalCodes, indicators: indicatorTrace });\r\n  return [...baseParts, ...indicatorParts];\r\n}\r\n\r\n/**\r\n * The part node one word-level (`;;`) code stands for: the reading the render\r\n * merges onto the head, flatten writes out, and the view without options\r\n * rewrites. One reading for all three, so what the view takes off is exactly\r\n * what the overlay draws with.\r\n *\r\n * @param {string} code - a stored `;;` code (may carry an option bracket and coordinates)\r\n * @param {Object} definitions\r\n * @param {(code: string) => Object} parse - parser used to build the node\r\n * @returns {Object|undefined} a fresh part node, or undefined when the code reads as nothing\r\n */\r\nexport function wordIndicatorNode(code, definitions, parse) {\r\n  const parsedGlyph = parse(code)?.groups?.[0]?.glyphs?.[0];\r\n  const parsedParts = parsedGlyph?.parts;\r\n  const bare = getBareCode(code);\r\n  // A code an overlay stores is one indicator, so it parses as one part: a\r\n  // compound indicator, built-in (B98) or custom (define COMBI = 'B97;B99:3,0'),\r\n  // is one part named after it holding its anatomy, as in the `;` slot\r\n  // (`B291;COMBI`), so `;` and `;;` agree for the same definition.\r\n  const node = parsedParts?.[0];\r\n  if (!node) return undefined;\r\n  const immediate = Object.prototype.hasOwnProperty.call(definitions, bare)\r\n    ? definitions[bare]\r\n    : undefined;\r\n  // A single-code rename overlay (e.g. MYIND -> C2, BAREIND -> B81) loses\r\n  // the written code at parse; record it so preserve-mode serialization\r\n  // restores it. This stamp is load-bearing for the `;;`\r\n  // surface: the standalone parse resolves the alias at glyph level, so the\r\n  // parser's own single-ref rename recording never fires for this node\r\n  // (unlike an object-input part, where it does). A code reading as several\r\n  // parts (none that an overlay stores) is not one rename: stamping the alias\r\n  // on its first part would mislabel it.\r\n  if (parsedParts.length === 1 && node.codeName !== bare) {\r\n    node._aliasCodeName = bare;\r\n  }\r\n  // The `;;` overlay parses its code standalone, which (unlike the `;`-slot's\r\n  // #applyDefinitionMetadata) does not carry a single-code alias's own\r\n  // indicator metadata onto the node when the alias target is not itself an\r\n  // indicator (MYIND -> C2, isIndicator on the definition). Apply it here from\r\n  // the effective definition so\r\n  // `;` and `;;` place the indicator identically and the flatten+preserve\r\n  // round-trip is svg-stable. Built-in indicators\r\n  // already carry the flag, so the guard makes this a no-op for them.\r\n  if (node.isIndicator !== true) {\r\n    const effective = resolveEffectiveDefinition(immediate, definitions);\r\n    if (effective?.isIndicator) {\r\n      node.isIndicator = true;\r\n      node.width = effective.width ?? 2;\r\n      if (effective.anchorOffsetX !== undefined) node.anchorOffsetX = effective.anchorOffsetX;\r\n    }\r\n  }\r\n  // The options a definition brings of its own sit on the part a standalone\r\n  // parse gives the code, as they do in a `;` slot, never on the character, and\r\n  // a stored `;;` code carries no character bracket (the store strips it), so\r\n  // the part node holds everything the code draws with.\r\n  return node;\r\n}\r\n","/*\r\n * This Source Code Form is subject to the terms of the Mozilla Public\r\n * License, v. 2.0. If a copy of the MPL was not distributed with this\r\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\r\n */\r\n\r\n/**\r\n * Bliss Head Glyph Exclusions\r\n *\r\n * Characters and sequences to skip when finding the head glyph (the character\r\n * that receives grammatical indicators).\r\n *\r\n * Priority hierarchy for head glyph selection (highest to lowest):\r\n * 1. Non-exclusions - always head if present\r\n * 2. Regular exclusions - head if no non-exclusions available\r\n * 3. Low-priority exclusions (B401, B699) - head only if alone or with same/lower priority\r\n * 4. Absolute never-head (B233) - never outranks another glyph, but is the\r\n *    head when it is the sole candidate (structural marker like quotation marks)\r\n *\r\n * When prefix modifiers are used, it's recommended to mark the head glyph\r\n * explicitly with ^ to avoid ambiguity.\r\n *\r\n * Examples:\r\n * 'B486/B1108^' (narrowness)\r\n * 'B486/B1108;B86^' (narrow)\r\n */\r\n\r\n/**\r\n * Absolute never-head codes (lowest priority tier).\r\n * These never outrank another glyph when competing for the head: any other\r\n * candidate wins. But a never-head code is still the head when it is the sole\r\n * candidate, because something must carry the indicator (an atypical or\r\n * structural glyph is a valid head at the default position when it stands\r\n * alone). They are purely structural markers (like quotation marks).\r\n */\r\nexport const absoluteNeverHead = [\r\n  'B233', // combine marker (structural, like quotation mark)\r\n];\r\n\r\n/**\r\n * Low-priority exclusions.\r\n * These are skipped as prefixes like regular exclusions, but can only be head\r\n * when alone or together with other low-priority codes (no regular exclusions present).\r\n */\r\nexport const lowPriorityExclusions = [\r\n  'B401', // intensity - when alone or with other B401s, can take indicator\r\n  'B699', // interrogative - when alone or with other B699s, can take indicator\r\n];\r\n\r\n/**\r\n * Conditional exceptions.\r\n * Format: [excludedCode, notExcludedWhenFollowedBy]\r\n * The excludedCode is NOT treated as an exclusion when immediately followed by\r\n * the specified code.\r\n */\r\nexport const conditionalExceptions = [\r\n  ['B10', 'B4'], // B10 (one) is NOT excluded when followed by B4\r\n];\r\n\r\n/**\r\n * Main exclusion list.\r\n * Characters and sequences to skip when finding the head glyph.\r\n * Includes all categories (regular, low-priority, and never-head).\r\n */\r\nexport const blissHeadGlyphExclusions = [\r\n  // Structural markers (absolute never-head)\r\n  'B233', // combine marker\r\n\r\n  // Pragmatic lexical markers (low-priority)\r\n  'B401', // intensity\r\n  'B699', // interrogative when used as a prefix, otherwise a specifier\r\n\r\n  // Scalar degree operators\r\n  'B937', // more (comparative)\r\n  'B968', // most (superlative)\r\n  'B6438', // less (comparative)\r\n  'B6321', // least (superlative)\r\n\r\n  // Identity-affecting operators\r\n  'B449/B401', // not (logical negation)\r\n  'B486', // opposite to (antonymy)\r\n\r\n  // Concept-transforming operators\r\n  'B1060/B578/B608/B292', // rhymes with\r\n  'B1060/B578/B303', // looks similar to\r\n  'B1060/B578/B608', // sounds similar to\r\n  'B1060/B578/B374', // feels similar to\r\n  'B1060/B578/B473', // smells similar to\r\n  'B1060/B578/B642', // tastes similar to\r\n  'B1060/B578', // similar to\r\n  'B578/B303', // looks like\r\n  'B578/B608', // sounds like\r\n  'B578/B374', // feels like\r\n  'B578/B473', // smells like\r\n  'B578/B642', // tastes like\r\n  'B348', // generalization of\r\n  'B444', // metaphor for\r\n\r\n  // Relational operators\r\n  'B449', // without (privative negation)\r\n  'B578', // same as\r\n  'B502/B167', // part of Blissymbol\r\n  'B502', // part of\r\n  'B102', // about\r\n  'B104', // across\r\n  'B109', // after\r\n  'B111', // against\r\n  'B120/B120', // along with\r\n  'B162/B368', // among\r\n  'B134', // around\r\n  'B135', // at\r\n  'B158', // before\r\n  'B162', // between\r\n  'B195', // by\r\n  'B482', // on\r\n  'B492', // out of (downward)\r\n  'B977', // out of (upward)\r\n  'B976', // out of (backward)\r\n  'B1124', // into (downward)\r\n  'B1125', // into (upward)\r\n  'B1123', // into (backward)\r\n  'B490', // outside\r\n  'B398', // inside\r\n  'B493', // over, above\r\n  'B676', // under, below\r\n  'B1102', // under (ground level)\r\n  'B331', // instead of\r\n  'B332', // for the purpose of\r\n  'B337', // from\r\n  'B657', // to, toward\r\n  'B653', // through\r\n  'B677', // until\r\n  'B160', // belongs to\r\n\r\n  // Determiners\r\n  'B100', // a, an (indefinite)\r\n  'B647', // the (definite)\r\n\r\n  // Quantifiers\r\n  'B368/B368/B368', // many/much x3 (city)\r\n  'B368/B368', // many/much x2 (ocean, town)\r\n  'B368', // many/much (lake, village)\r\n  // pending: few (not yet in bliss-glyph-data.js)\r\n  'B117', // all\r\n  'B11/B117', // both\r\n  'B10/B117', // each/every\r\n  'B286', // either\r\n  'B449/B286', // neither\r\n  'B951', // half\r\n  'B962', // quarter\r\n  'B1151', // one third\r\n  'B1152', // two thirds\r\n  'B1153', // three quarters\r\n  'B559/B11', // several\r\n  'B9', // zero\r\n  'B10', // one (note: NOT excluded when followed by B4 - see conditionalExceptions)\r\n  'B11', // two\r\n  'B12', // three\r\n  'B13', // four\r\n  'B14', // five\r\n  'B15', // six\r\n  'B16', // seven\r\n  'B17', // eight\r\n  'B18', // nine\r\n];\r\n\r\n/**\r\n * Codes deliberately left off the exclusion list, so a word starting with one\r\n * of them takes its word-level indicators there. Like the other \"into\" and\r\n * \"out of\" characters, which stay on the list, each has a modifier sense, but\r\n * BCI-AV uses these two mostly in their noun senses (\"entrance\", \"exit\").\r\n * Where one is used as a modifier, mark the word's head with `^`.\r\n */\r\nexport const deliberatelyNotExcluded = [\r\n  'B402', // into, entrance\r\n  'B491', // out of, exit (forward)\r\n];\r\n\r\n/**\r\n * Head-scan code for one glyph: the value fed per-glyph to resolveHeadIndex.\r\n * A character is compared with the skip list only when it is one part. An\r\n * indicator written on a skip-list character overrules the list for it, and a\r\n * character fused from several base parts is not the character on the list,\r\n * so either way a character of more than one part is never skipped, whatever\r\n * code it is named by (returns undefined). A one-part character is matched by\r\n * its own code (a custom glyph's or a single built-in's), else by its part's.\r\n * Shared by the parser's scan, the builder's render and the element snapshot,\r\n * so the three places that pick a word's head cannot drift apart.\r\n *\r\n * @param {string|undefined} identityCode - the glyph's own code (glyphCode / codeName), if any\r\n * @param {number} partCount - number of parts composing the glyph\r\n * @param {string|undefined} firstPartCode - codeName of the first part\r\n * @returns {string|undefined} the head-scan code, or undefined when non-excludable\r\n */\r\n// `||` (not `??`) is deliberate: an identity-less snapshot glyph carries\r\n// codeName === '' (an empty string, not nullish), which must fall through to\r\n// its part's code. `??` would return that bogus '' identity.\r\nexport const headScanCode = (identityCode, partCount, firstPartCode) =>\r\n  partCount > 1 ? undefined : (identityCode || firstPartCode);\r\n\r\n/**\r\n * Resolve which glyph index of a word is the fallback head, given each\r\n * glyph's head-scan code (its base character code, or a custom glyph's own\r\n * identity). Skips leading exclusion patterns (single- and multi-code, plus\r\n * the conditional B10/B4 exception); when every code is an exclusion, picks by\r\n * priority tier (regular > low-priority > absolute-never-head). This is the\r\n * single source of truth for fallback head selection, shared by the parser\r\n * (parse-time crowning) and the builder/element layers (query-time\r\n * resolution), so an explicit `^`/designation stays the only persistent\r\n * override.\r\n *\r\n * @param {string[]} headCodes - one head-scan code per glyph, in word order\r\n * @returns {number} index of the fallback head (0 for an empty list)\r\n */\r\nexport const resolveHeadIndex = (headCodes) => {\r\n  // Conditional exception (e.g. B10/B4): an otherwise-excluded code is not\r\n  // excluded when immediately followed by its paired code.\r\n  const isExcluded = (code, index) => {\r\n    for (const [excl, notWhenFollowedBy] of conditionalExceptions) {\r\n      if (code === excl && index + 1 < headCodes.length && headCodes[index + 1] === notWhenFollowedBy) {\r\n        return false;\r\n      }\r\n    }\r\n    return true;\r\n  };\r\n\r\n  // Skip leading exclusion patterns from the start.\r\n  let startIndex = 0;\r\n  let foundMatch = true;\r\n  while (foundMatch && startIndex < headCodes.length) {\r\n    foundMatch = false;\r\n    for (const pattern of blissHeadGlyphExclusions) {\r\n      const codes = pattern.split('/');\r\n      if (startIndex + codes.length <= headCodes.length) {\r\n        let matches = true;\r\n        for (let i = 0; i < codes.length; i++) {\r\n          const code = headCodes[startIndex + i];\r\n          if (code !== codes[i] || (codes.length === 1 && !isExcluded(code, startIndex + i))) {\r\n            matches = false;\r\n            break;\r\n          }\r\n        }\r\n        if (matches) {\r\n          startIndex += codes.length;\r\n          foundMatch = true;\r\n          break;\r\n        }\r\n      }\r\n    }\r\n  }\r\n\r\n  if (startIndex < headCodes.length) return startIndex;\r\n\r\n  // All exclusions: find best head by priority (regular > low-priority > never-head).\r\n  let best = 0;\r\n  let bestPriority = absoluteNeverHead.includes(headCodes[0]) ? 0 : lowPriorityExclusions.includes(headCodes[0]) ? 1 : 2;\r\n  for (let i = 1; i < headCodes.length; i++) {\r\n    const code = headCodes[i];\r\n    const priority = absoluteNeverHead.includes(code) ? 0 : lowPriorityExclusions.includes(code) ? 1 : 2;\r\n    if (priority > bestPriority || (priority === bestPriority && priority > 0)) {\r\n      best = i;\r\n      bestPriority = priority;\r\n    }\r\n  }\r\n  return best;\r\n};\r\n","/*\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\n */\n\n// A CSS `filter` written inside the picture, drawn as a native SVG <filter>\n// so it looks the same in every browser and PNG converter (GH #34). Pure\n// functions over the escaped text the markup carries (escapeHtml): a quote is\n// `&quot;` or `&#39;` and every `&` begins an escape, so text copied from a\n// value into an attribute is as safe there as the value was. The element tree\n// and the builder call it where they write an element's attributes; it\n// imports neither.\n//\n// A value is translated only when it is exactly what the primitives\n// reproduce: a list of the ten filter functions, in absolute lengths. Any\n// other value is kept as written, silently, as the library never judges a\n// value it carries for CSS.\n\nconst KEPT = Object.freeze({ kind: 'kept' });\n\n// Rounds a number the module writes as the tree and the builder round theirs\n// (4 decimals), which removes the float noise of computed values.\nconst roundForMarkup = (num) => parseFloat(num.toFixed(4));\n\n// A quoted string, read whole to its closing quote (or the end).\nconst QUOTED = String.raw`&quot;[^]*?(?:&quot;|$)|&#39;[^]*?(?:&#39;|$)`;\nconst STRING_OR_COMMENT = new RegExp(String.raw`${QUOTED}|/\\*[^]*?(?:\\*/|$)`, 'g');\n\n// The text as CSS reads it, index for index: each comment outside quotes\n// blanked to as many spaces, and CSS's other spacing (tab, the line breaks)\n// turned into spaces, so a plain space is the only spacing left to read.\n// Other Unicode spaces are not spacing in CSS and stay as written.\nconst readable = (text) => text\n  .replace(STRING_OR_COMMENT, (match) => (match.startsWith('/*') ? ' '.repeat(match.length) : match))\n  .replace(/[\\t\\n\\r\\f]/g, ' ');\n\nconst trimSpace = (text) => text.replace(/^ +| +$/g, '');\n\n// What the style splitter steps over: a quoted string or an escape whole,\n// else one character, so the `;` closing an escape is never a split.\nconst STYLE_TOKEN = new RegExp(String.raw`${QUOTED}|&[^;]*;|[^]`, 'g');\n\n// A style's declarations, in order: each one's text as written, the same text\n// as CSS reads it (`read`), the index of its first colon in it (-1 where it\n// has none), and its property, read in any case with its spacing and comments\n// removed ('' where it has no colon). Split at each `;` outside parentheses,\n// quotes, escapes and comments, so the texts joined by `;` give the style\n// back.\nconst declarationsOf = (style) => {\n  const written = String(style);\n  const reading = readable(written);\n  const cuts = [];\n  let depth = 0;\n  let index = 0;\n  for (const token of reading.match(STYLE_TOKEN) ?? []) {\n    if (token === '(') depth++;\n    else if (token === ')') depth = Math.max(0, depth - 1);\n    else if (token === ';' && depth === 0) cuts.push(index);\n    index += token.length;\n  }\n  return [0, ...cuts.map(cut => cut + 1)].map((start, i) => {\n    const end = cuts[i] ?? written.length;\n    const read = reading.slice(start, end);\n    const colon = read.indexOf(':');\n    const property = colon === -1 ? '' : trimSpace(read.slice(0, colon)).toLowerCase();\n    return { property, text: written.slice(start, end), read, colon };\n  });\n};\n\n/**\n * A style's declarations as `{ property, text }`, in order: the one reading\n * of a style that both the filter translation and an element background's\n * copy of its effects use.\n */\nexport const splitDeclarations = (style) =>\n  declarationsOf(style).map(({ property, text }) => ({ property, text }));\n\n// `!important` closing a declaration's value, in any case and spacing.\nconst IMPORTANT = /! *important *$/i;\n\n// A `filter` declaration's value as readFilterValue reads it, `!important`\n// read past, and whether it had one.\nconst declaredFilter = ({ text, read, colon }) => {\n  const important = IMPORTANT.exec(read.slice(colon + 1));\n  return { filter: readFilterValue(text.slice(colon + 1, important ? colon + 1 + important.index : undefined)), important };\n};\n\n/**\n * The style with each `filter` declaration that translates pointed at its\n * native filter in place: the property as written, then `:url(#id)`, then\n * `!important` where it had one. `allocate(read)` is called once per such\n * declaration, in order, with what readFilterValue read, and returns the id.\n * Every other declaration is left byte for byte.\n */\nexport const rewriteStyle = (style, allocate) => declarationsOf(style).map((declaration) => {\n  if (declaration.property !== 'filter') return declaration.text;\n  const { filter, important } = declaredFilter(declaration);\n  if (filter.kind !== 'translated') return declaration.text;\n  return `${declaration.text.slice(0, declaration.colon + 1)}url(#${allocate(filter)})${important ? '!important' : ''}`;\n}).join(';');\n\n// A CSS number, then a unit (letters) or a percent sign, or nothing.\nconst DIMENSION = /^([+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)(?:e[+-]?\\d+)?)([a-z]+|%)?$/i;\n\n// A token as { number, unit }, the unit lowercased ('' where there is none),\n// or null where it is not one finite number.\nconst readNumber = (token) => {\n  const match = DIMENSION.exec(token);\n  const number = match && Number(match[1]);\n  return Number.isFinite(number) ? { number, unit: (match[2] ?? '').toLowerCase() } : null;\n};\n\n// Grid units per unit, at 96 px per inch (1px is one grid unit).\nconst LENGTH_UNITS = new Map([\n  ['px', 1], ['in', 96], ['cm', 96 / 2.54], ['mm', 96 / 25.4], ['q', 96 / 101.6], ['pt', 4 / 3], ['pc', 16],\n]);\n\n// Degrees per unit.\nconst ANGLE_UNITS = new Map([['deg', 1], ['rad', 180 / Math.PI], ['grad', 0.9], ['turn', 360]]);\n\n// A token in one of `units`, or a unitless 0, as a number of the first unit;\n// null for anything else.\nconst measure = (token, units) => {\n  const read = readNumber(token);\n  if (read === null) return null;\n  if (read.unit === '') return read.number === 0 ? 0 : null;\n  return units.has(read.unit) ? read.number * units.get(read.unit) : null;\n};\n\n// A number, or a percentage as its hundredth; null for anything else.\nconst fractionOf = (token) => {\n  const read = readNumber(token);\n  if (read === null || (read.unit !== '' && read.unit !== '%')) return null;\n  return read.unit === '%' ? read.number / 100 : read.number;\n};\n\n// An amount: a fraction that is not negative; null for anything else.\nconst amountOf = (token) => {\n  const amount = fractionOf(token);\n  return amount === null || amount < 0 ? null : amount;\n};\n\n// A call's arguments, split at spacing outside parentheses, so a color\n// function stays one argument.\nconst argumentsOf = (text) => {\n  const tokens = [];\n  let depth = 0;\n  let token = '';\n  for (const char of text) {\n    if (depth === 0 && char === ' ') {\n      if (token !== '') tokens.push(token);\n      token = '';\n      continue;\n    }\n    if (char === '(') depth++;\n    else if (char === ')') depth--;\n    token += char;\n  }\n  if (token !== '') tokens.push(token);\n  return tokens;\n};\n\n// The one argument of blur(), hue-rotate() and the amounts, read by `read`;\n// `omitted` where there is none, null where there are more.\nconst soleArgument = (tokens, read, omitted) => {\n  if (tokens.length > 1) return null;\n  return tokens.length === 0 ? omitted : read(tokens[0]);\n};\n\nconst transfer = (funcs) => `<feComponentTransfer>${funcs}</feComponentTransfer>`;\nconst rgbTransfer = (attributes) =>\n  transfer(['R', 'G', 'B'].map(channel => `<feFunc${channel} ${attributes}/>`).join(''));\nconst colorMatrix = (values) => `<feColorMatrix type=\"matrix\" values=\"${values.map(roundForMarkup).join(' ')}\"/>`;\n\n// Filter Effects 1's grayscale and sepia matrices, at `rest` = 1 - amount.\nconst grayscaleMatrix = (rest) => colorMatrix([\n  0.2126 + 0.7874 * rest, 0.7152 - 0.7152 * rest, 0.0722 - 0.0722 * rest, 0, 0,\n  0.2126 - 0.2126 * rest, 0.7152 + 0.2848 * rest, 0.0722 - 0.0722 * rest, 0, 0,\n  0.2126 - 0.2126 * rest, 0.7152 - 0.7152 * rest, 0.0722 + 0.9278 * rest, 0, 0,\n  0, 0, 0, 1, 0,\n]);\nconst sepiaMatrix = (rest) => colorMatrix([\n  0.393 + 0.607 * rest, 0.769 - 0.769 * rest, 0.189 - 0.189 * rest, 0, 0,\n  0.349 - 0.349 * rest, 0.686 + 0.314 * rest, 0.168 - 0.168 * rest, 0, 0,\n  0.272 - 0.272 * rest, 0.534 - 0.534 * rest, 0.131 + 0.869 * rest, 0, 0,\n  0, 0, 0, 1, 0,\n]);\n// The matrix Filter Effects 1 gives `type=\"saturate\"`, written out: resvg reads\n// that type's value only from 0 to 1 and draws a larger one as no change.\nconst saturateMatrix = (amount) => colorMatrix([\n  0.213 + 0.787 * amount, 0.715 - 0.715 * amount, 0.072 - 0.072 * amount, 0, 0,\n  0.213 - 0.213 * amount, 0.715 + 0.285 * amount, 0.072 - 0.072 * amount, 0, 0,\n  0.213 - 0.213 * amount, 0.715 - 0.715 * amount, 0.072 + 0.928 * amount, 0, 0,\n  0, 0, 0, 1, 0,\n]);\n\n// A function that only recolors: its amount, clamped to `max` where CSS\n// clamps it and rounded as written, drawn by `primitive`. It reaches nothing\n// past the element.\nconst recolor = (primitive, max = Infinity) => (tokens) => {\n  const amount = soleArgument(tokens, amountOf, 1);\n  return amount === null ? null : { primitive: primitive(roundForMarkup(Math.min(amount, max))), reach: 0 };\n};\n\nconst blur = (tokens) => {\n  const radius = soleArgument(tokens, token => measure(token, LENGTH_UNITS), 0);\n  if (radius === null || radius < 0) return null;\n  const deviation = roundForMarkup(radius);\n  return { primitive: `<feGaussianBlur stdDeviation=\"${deviation}\"/>`, reach: 3 * deviation };\n};\n\nconst hueRotate = (tokens) => {\n  const angle = soleArgument(tokens, token => measure(token, ANGLE_UNITS), 0);\n  return angle === null ? null : { primitive: `<feColorMatrix type=\"hueRotate\" values=\"${roundForMarkup(angle)}\"/>`, reach: 0 };\n};\n\n// Functions only CSS substitutes.\nconst SUBSTITUTION = /(?:var|env)\\(/i;\n\n// An rgb() or hsl() color (or its -a spelling) with no function inside.\nconst RGB_OR_HSL = /^(rgb|hsl)a?\\(([^()]*)\\)$/i;\n\n// An rgb() or hsl() color's components, legacy (`0, 0, 0, 0.3`) or modern\n// (`0 0 0 / 30%`), as { channels, alpha }, alpha undefined where none is\n// written; null where they are not three channels and at most an alpha.\nconst colorParts = (inside) => {\n  if (inside.includes(',')) {\n    const parts = inside.split(',').map(trimSpace);\n    return parts.length === 3 || parts.length === 4 ? { channels: parts.slice(0, 3), alpha: parts[3] } : null;\n  }\n  const [channels, alpha, ...rest] = inside.split('/');\n  const split = trimSpace(channels).split(/ +/);\n  if (split.length !== 3 || rest.length > 0) return null;\n  return { channels: split, alpha: alpha === undefined ? undefined : trimSpace(alpha) };\n};\n\n// A channel of an rgb() or hsl() color: a number, or a percentage, or for the\n// hue an angle.\nconst isChannel = (channel, isHue) => {\n  const read = readNumber(channel);\n  return read !== null && (read.unit === '' || (isHue ? ANGLE_UNITS.has(read.unit) : read.unit === '%'));\n};\n\n// A drop-shadow's color as `flood-color` takes it, or null where only CSS can\n// read it (var() or env() anywhere in it). An rgb() or hsl() of plain channels\n// is written in the comma form with a number alpha, clamped to 0..1 as CSS\n// clamps it: the one form resvg draws translucent. Any other color, a word\n// that is not one included, is copied as written.\nconst floodColor = (color) => {\n  if (SUBSTITUTION.test(color)) return null;\n  const match = RGB_OR_HSL.exec(color);\n  const parts = match && colorParts(match[2]);\n  if (!parts) return color;\n  const name = match[1].toLowerCase();\n  const alpha = parts.alpha === undefined ? undefined : fractionOf(parts.alpha);\n  if (alpha === null || !parts.channels.every((channel, at) => isChannel(channel, name === 'hsl' && at === 0))) return color;\n  return alpha === undefined\n    ? `${name}(${parts.channels.join(',')})`\n    : `${name}a(${parts.channels.join(',')},${roundForMarkup(Math.min(Math.max(alpha, 0), 1))})`;\n};\n\n// A token that begins as a number does, or as a call to one of CSS's math\n// functions: a length (or a number), never a color.\nconst NUMERIC = /^(?:[+-]?\\.?\\d|(?:calc|min|max|clamp|round|mod|rem|sin|cos|tan|asin|acos|atan|atan2|pow|sqrt|hypot|log|exp|abs|sign)\\()/i;\n\n// CSS's `drop-shadow( <color>? && <length>{2,3} )`: the color before or after\n// the lengths, the third length a blur that is not negative. An omitted color\n// is CSS's currentColor, where the flood alone would draw black.\n//\n// Drawn as Filter Effects 1's own equivalent in SVG 1.1 primitives, not as\n// <feDropShadow>: a renderer without that primitive draws nothing at all of\n// the element it filters (librsvg 2.52.8, which node-canvas's Linux build\n// bundles). The shadow's input is named, blurred, offset, flooded with the\n// color inside the offset's alpha, and merged under the input. The names carry\n// the function's `place` in the value, so two shadows in one filter keep their\n// inputs apart. A blur of 0 is left out, as SVG 1.1's first edition draws a\n// zero blur as transparent black, which would lose the shadow.\nconst dropShadow = (tokens, place) => {\n  const colorAt = [0, tokens.length - 1].find(at => at in tokens && !NUMERIC.test(tokens[at]));\n  const lengths = tokens.filter((_, at) => at !== colorAt).map(token => measure(token, LENGTH_UNITS));\n  if (lengths.length < 2 || lengths.length > 3 || lengths.includes(null) || lengths[2] < 0) return null;\n  const flood = colorAt === undefined ? 'currentColor' : floodColor(tokens[colorAt]);\n  if (flood === null) return null;\n  const [dx, dy, deviation = 0] = lengths.map(roundForMarkup);\n  const input = `shadow-input-${place}`;\n  const offset = `shadow-offset-${place}`;\n  return {\n    primitive: `<feOffset result=\"${input}\"/>`\n      + (deviation === 0 ? '' : `<feGaussianBlur stdDeviation=\"${deviation}\"/>`)\n      + `<feOffset dx=\"${dx}\" dy=\"${dy}\" result=\"${offset}\"/>`\n      + `<feFlood flood-color=\"${flood}\"/><feComposite in2=\"${offset}\" operator=\"in\"/>`\n      + `<feMerge><feMergeNode/><feMergeNode in=\"${input}\"/></feMerge>`,\n    reach: Math.max(Math.abs(dx), Math.abs(dy)) + 3 * deviation,\n  };\n};\n\n// What each of the ten functions draws, from its arguments and its place in\n// the value (which only drop-shadow reads): { primitive, reach }, the markup\n// of one or more primitives, or null where CSS would not read the arguments\n// or they cannot be converted. The primitives are Filter Effects 1's (section\n// 13), with stdDeviation the CSS blur radius itself.\nconst FUNCTIONS = new Map([\n  ['blur', blur],\n  ['drop-shadow', dropShadow],\n  ['brightness', recolor(amount => rgbTransfer(`type=\"linear\" slope=\"${amount}\"`))],\n  ['contrast', recolor(amount => rgbTransfer(`type=\"linear\" slope=\"${amount}\" intercept=\"${roundForMarkup(0.5 - amount / 2)}\"`))],\n  ['grayscale', recolor(amount => grayscaleMatrix(1 - amount), 1)],\n  ['hue-rotate', hueRotate],\n  ['invert', recolor(amount => rgbTransfer(`type=\"table\" tableValues=\"${amount} ${roundForMarkup(1 - amount)}\"`), 1)],\n  ['opacity', recolor(amount => transfer(`<feFuncA type=\"table\" tableValues=\"0 ${amount}\"/>`), 1)],\n  ['saturate', recolor(saturateMatrix)],\n  ['sepia', recolor(amount => sepiaMatrix(1 - amount), 1)],\n]);\n\n// A function's name and its opening parenthesis, after any spacing.\nconst CALL_HEAD = /^ *([a-z][a-z-]*)\\(/i;\n\n// The index of the parenthesis closing the one opened just before `from`, or\n// -1 where it is left open.\nconst closingParenthesis = (text, from) => {\n  let depth = 1;\n  for (let at = from; at < text.length; at++) {\n    if (text[at] === '(') depth++;\n    else if (text[at] === ')' && --depth === 0) return at;\n  }\n  return -1;\n};\n\n// A value's top-level function calls in order, as { name, args }, the name\n// lowercased; null where anything else stands between them or a call is\n// left open.\nconst functionCalls = (value) => {\n  const calls = [];\n  for (let at = 0; at < value.length;) {\n    const head = CALL_HEAD.exec(value.slice(at));\n    if (head === null) return null;\n    const open = at + head[0].length;\n    const close = closingParenthesis(value, open);\n    if (close === -1) return null;\n    calls.push({ name: head[1].toLowerCase(), args: value.slice(open, close) });\n    at = close + 1;\n  }\n  return calls;\n};\n\n/**\n * Reads one CSS `filter` value (escaped text). `{ kind: 'translated',\n * primitives, reach }` where it is a list of the ten functions CSS would read,\n * in absolute lengths: `primitives` the markup of each function in written\n * order, `reach` how far the effect can draw past what it filters, in grid\n * units. `{ kind: 'kept' }` for any other value, which is carried as written.\n */\nexport const readFilterValue = (text) => {\n  const calls = functionCalls(trimSpace(readable(String(text))));\n  if (calls === null || calls.length === 0) return KEPT;\n  const primitives = [];\n  let reach = 0;\n  for (const { name, args } of calls) {\n    const effect = FUNCTIONS.get(name)?.(argumentsOf(args), primitives.length) ?? null;\n    if (effect === null) return KEPT;\n    primitives.push(effect.primitive);\n    reach += effect.reach;\n  }\n  return { kind: 'translated', primitives, reach: roundForMarkup(reach) };\n};\n\n/**\n * How far one element's filters can draw past what they filter, in grid\n * units: the largest reach among its `filter` attribute and its style's\n * `filter` declarations ([name, value] pairs, escaped) that translate; 0\n * where none does, as nothing is known of a value kept as written.\n */\nexport const filterReach = (entries) => Math.max(0, ...entries.flatMap(([name, value]) => {\n  if (name === 'filter') return [readFilterValue(value)];\n  if (name !== 'style') return [];\n  return declarationsOf(value).filter(({ property }) => property === 'filter').map(declaration => declaredFilter(declaration).filter);\n}).map(filter => (filter.kind === 'translated' ? filter.reach : 0)));\n\n/**\n * A <filter> holding `primitives`, in user space (the picture's own units)\n * over `region` ({ x, y, width, height }, written as given), interpolating in\n * sRGB as a CSS filter does.\n */\nexport const filterMarkup = (id, primitives, { x, y, width, height }) => `<filter id=\"${id}\" filterUnits=\"userSpaceOnUse\"`\n  + ` x=\"${x}\" y=\"${y}\" width=\"${width}\" height=\"${height}\" color-interpolation-filters=\"sRGB\">${primitives.join('')}</filter>`;\n\n// How far a region grows past the picture and what it covers, at most. The\n// effect is drawn whole inside the picture, but past its edge, which only a\n// host's `overflow: visible` shows, no further than this: a 2-unit shadow\n// blurred by 2 reaches exactly 8, so an ordinary effect is drawn whole there\n// too, while an absurd one (blur(200px) reaches 600) costs about the picture\n// and not gigapixels.\nconst OVERFLOW_LIMIT = 8;\n\n// How far past its drawn box an element may draw where the library cannot\n// see it: a dot's full width, a miter join the page's CSS or a `style` key\n// sets.\nconst REGION_MARGIN = 1;\n\n// The smallest box ({ minX, minY, maxX, maxY }) holding both, either of which\n// may be undefined (nothing there).\nconst joined = (a, b) => (a && b ? {\n  minX: Math.min(a.minX, b.minX),\n  minY: Math.min(a.minY, b.minY),\n  maxX: Math.max(a.maxX, b.maxX),\n  maxY: Math.max(a.maxY, b.maxY),\n} : a ?? b);\n\n/**\n * The region a filter covers, rounded to 4 decimals: the viewBox ({ x, y,\n * width, height }) and the drawn box ({ minX, minY, maxX, maxY }, undefined\n * where nothing is drawn) together, grown on every side by the effect's\n * spread, which is its `reach` plus the `outset` (how far the filters inside\n * the element already carry what it draws past the drawn box), but by no\n * more than OVERFLOW_LIMIT; and along the line (x) reaching no further than\n * the spread and REGION_MARGIN past the drawn box. The viewBox keeps the\n * effect whole wherever the picture shows, and the drawn box keeps ink\n * outside it (a crop, a host's `overflow: visible`) from being cut. The cut\n * keeps one word's region from spanning a whole sentence, which a rasterizer\n * such as resvg pays for pixel by pixel, filter by filter; the picture's\n * height is fixed by the Bliss line, so across the line it stays whole.\n */\nexport const filterRegion = (viewBox, drawn, reach, outset = 0) => {\n  const spread = reach + outset;\n  const growth = Math.min(spread, OVERFLOW_LIMIT);\n  const covered = joined({ minX: viewBox.x, minY: viewBox.y, maxX: viewBox.x + viewBox.width, maxY: viewBox.y + viewBox.height }, drawn);\n  const line = drawn\n    ? { minX: drawn.minX - spread - REGION_MARGIN, maxX: drawn.maxX + spread + REGION_MARGIN }\n    : { minX: -Infinity, maxX: Infinity };\n  const minX = Math.max(covered.minX - growth, line.minX);\n  const minY = covered.minY - growth;\n  const maxX = Math.min(covered.maxX + growth, line.maxX);\n  const maxY = covered.maxY + growth;\n  return {\n    x: roundForMarkup(minX),\n    y: roundForMarkup(minY),\n    width: roundForMarkup(maxX - minX),\n    height: roundForMarkup(maxY - minY),\n  };\n};\n\n// One side of the thin-element shape: 1 unit centred on the drawn extent\n// where that side is thin, else the geometry's own extent.\nconst shapeSide = (thin, drawnMin, drawnMax, min, max) =>\n  (thin ? [(drawnMin + drawnMax) / 2 - 0.5, 1] : [min, max - min]);\n\n/**\n * An invisible rect that keeps a thin element drawn once filtered, as WebKit\n * drops a filtered element whose drawn box ({ minX, minY, maxX, maxY }, its\n * lines included) is under 1 unit wide or tall: 1 unit across, centred on the\n * drawn box, in each thin dimension, and the geometry box's own extent in the\n * other. '' where neither dimension is thin.\n */\nexport const thinShape = (drawn, geometry) => {\n  const thinX = drawn.maxX - drawn.minX < 1;\n  const thinY = drawn.maxY - drawn.minY < 1;\n  if (!thinX && !thinY) return '';\n  const [x, width] = shapeSide(thinX, drawn.minX, drawn.maxX, geometry.minX, geometry.maxX);\n  const [y, height] = shapeSide(thinY, drawn.minY, drawn.maxY, geometry.minY, geometry.maxY);\n  return `<rect x=\"${roundForMarkup(x)}\" y=\"${roundForMarkup(y)}\" width=\"${roundForMarkup(width)}\"`\n    + ` height=\"${roundForMarkup(height)}\" fill=\"none\" stroke=\"none\"/>`;\n};\n\n/**\n * FNV-1a (32 bits) over the text's UTF-16 code units, as 8 lowercase hex\n * digits: the hash a picture's filter ids carry, so two pictures on one page\n * do not share an id.\n */\nexport const pictureHash = (text) => {\n  let hash = 0x811c9dc5;\n  for (let at = 0; at < text.length; at++) {\n    hash = Math.imul(hash ^ text.charCodeAt(at), 0x01000193);\n  }\n  return (hash >>> 0).toString(16).padStart(8, '0');\n};\n\n// Every generated filter id is the prefix, the picture's hash and a number.\n// The hash is known only once the picture is written, so a placeholder stands\n// for it until then: no author's text can hold one, as each reaches the markup\n// escaped and a raw `<` appears only in the library's own tags.\nconst ID_PREFIX = 'bliss-filter-';\nconst PENDING_ID = `${ID_PREFIX}<hash>-`;\n\n/**\n * One element's attributes with each CSS filter among them that translates\n * pointed at a native <filter>: a `filter` attribute, and each `filter`\n * declaration of a `style` (rewriteStyle). `entries` are the attributes as\n * [name, value] pairs, escaped, in the order they are written; `site()`\n * returns what the element draws, `{ drawn, geometry, hit, outset }`, asked\n * only where a filter translates: `drawn` its box with its lines ({ minX,\n * minY, maxX, maxY }, undefined where it draws nothing); `geometry` the box\n * of its geometry alone, given only by an element that can hold the\n * thin-element shape (thinShape); `hit` where its link answers a click, given\n * only by a link, which the region covers as it covers `drawn`, as a browser\n * answers a click on a filtered element only inside the region; `outset` how\n * far the filters inside the element carry what it draws past `drawn`\n * (filterRegion), 0 where not given. `context` is the picture's `{ viewBox,\n * next }`, `next()` numbering the filters. With no context, as for a tree\n * rendered outside a picture, nothing is translated. Returns `{ entries,\n * defs, shape }`: the entries with each translated filter rewritten to\n * `url(#id)`, the <filter> markup for each, in order, and the thin-element\n * shape or '', judged by what the element draws, never by its link.\n */\nexport const translateFilters = (entries, site, context) => {\n  if (!context) return { entries, defs: [], shape: '' };\n  const defs = [];\n  let place;\n  const allocate = ({ primitives, reach }) => {\n    place ??= site();\n    const id = `${PENDING_ID}${context.next()}`;\n    defs.push(filterMarkup(id, primitives, filterRegion(context.viewBox, joined(place.drawn, place.hit), reach, place.outset)));\n    return id;\n  };\n  const translated = entries.map(([name, value]) => {\n    if (name === 'style') return [name, rewriteStyle(value, allocate)];\n    if (name !== 'filter') return [name, value];\n    const filter = readFilterValue(value);\n    return [name, filter.kind === 'translated' ? `url(#${allocate(filter)})` : value];\n  });\n  const shape = place?.drawn && place.geometry ? thinShape(place.drawn, place.geometry) : '';\n  return { entries: translated, defs, shape };\n};\n\n// A generated id still pending, its number captured.\nconst PENDING_NUMBER = new RegExp(`${PENDING_ID}(\\\\d+)`, 'g');\nconst PENDING_FILTER = new RegExp(`<filter id=\"${PENDING_ID}(\\\\d+)\"`, 'g');\n\n/**\n * The markup with its pending filter ids numbered 1, 2, 3, … in the order\n * their <filter>s are written, and how many there are. The element tree\n * writes a group after what it holds, and knows whether a copy of an\n * element's effects holds anything only once that is written, so the numbers\n * it draws as it goes run in no useful order; numbering by position makes\n * them read down the document.\n */\nexport const numberFilters = (markup) => {\n  if (!markup.includes(PENDING_ID)) return { markup, count: 0 };\n  const order = new Map();\n  for (const [, drawn] of markup.matchAll(PENDING_FILTER)) order.set(drawn, order.size + 1);\n  return {\n    markup: markup.replace(PENDING_NUMBER, (_, drawn) => `${PENDING_ID}${order.get(drawn)}`),\n    count: order.size,\n  };\n};\n\n/**\n * The markup with its filter ids completed by the picture's hash\n * (pictureHash, over `picture`, the whole picture's markup with the ids still\n * pending), so two different pictures on one page never share an id, and a\n * part of a picture carries the ids the picture carries. Markup with no\n * generated id is returned as it is, unhashed.\n */\nexport const fillFilterIds = (markup, picture = markup) => (markup.includes(PENDING_ID)\n  ? markup.replaceAll(PENDING_ID, `${ID_PREFIX}${pictureHash(picture)}-`)\n  : markup);\n","/*\r\n * This Source Code Form is subject to the terms of the Mozilla Public\r\n * License, v. 2.0. If a copy of the MPL was not distributed with this\r\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\r\n */\r\n\r\nimport { blissElementDefinitions, builtInCodes, isSpaceGlyph } from \"./bliss-element-definitions.js\";\r\nimport { INTERNAL_OPTIONS, PUBLICATION_MAP, ANCHOR_ATTRIBUTE_NAMES, BAND_HEIGHT, HIT_MARGIN, PART_HIT_MARGIN, INK_AREA_MARGIN, DEFAULT_STROKE_WIDTH, ELEMENT_CLASSES, BACKGROUND_AREA_ELEMENTS, isDocumentDefiningAttribute, isSafeAttributeName, generateKey, MAX_RECURSION_DEPTH, WARNING_CODES, writtenWidth, cssNumber } from \"./bliss-constants.js\";\r\nimport { createTextFallbackGlyph } from \"./bliss-shape-creators.js\";\r\nimport { basePartCount, classifyIndicatorKind } from \"./indicator-utils.js\";\r\nimport { resolveHeadIndex, headScanCode } from \"./bliss-head-glyph-exclusions.js\";\r\nimport { translateFilters, filterReach, splitDeclarations } from \"./bliss-filters.js\";\r\n\r\n// Horizontal gap (in glyph units) between consecutive indicators in a stack.\r\n// Shared by the character-level indicator layout (#positionIndicatorGroup) and\r\n// the nested compound-indicator layout (#handleCompositeElement) so the two\r\n// cannot drift.\r\nconst INDICATOR_GAP = 1;\r\n\r\n// Rounds a number the tree writes into a rect as the builder rounds the\r\n// picture's own (4 decimals), which removes the float noise of summed positions.\r\nconst roundForMarkup = (num) => parseFloat(num.toFixed(4));\r\n\r\n// Attributes as markup, from [name, value] pairs in the order they are written.\r\nconst formatEntries = (entries) => entries.map(([name, value]) => `${name}=\"${value}\"`).join(' ');\r\n\r\n// The smallest box ({ minX, minY, maxX, maxY }) holding every one of `boxes`\r\n// (at least one).\r\nconst unionOf = (boxes) => ({\r\n  minX: Math.min(...boxes.map(box => box.minX)),\r\n  minY: Math.min(...boxes.map(box => box.minY)),\r\n  maxX: Math.max(...boxes.map(box => box.maxX)),\r\n  maxY: Math.max(...boxes.map(box => box.maxY)),\r\n});\r\n\r\n// A box grown by `distance` on every side; undefined stays undefined (nothing drawn).\r\nconst grownBy = (box, distance) => box && {\r\n  minX: box.minX - distance,\r\n  minY: box.minY - distance,\r\n  maxX: box.maxX + distance,\r\n  maxY: box.maxY + distance,\r\n};\r\n\r\n// The attributes of an element's own <g> that reach its background as well as\r\n// its lines: what moves, clips, fades or hides the element as a whole. Paint\r\n// stays with the lines, and so do `class` and `id`, and how the lines blend,\r\n// take clicks or scale (`mix-blend-mode`, `isolation`, `pointer-events`,\r\n// `cursor`, `vector-effect`).\r\nconst EFFECT_ATTRIBUTES = new Set([\r\n  'transform', 'transform-origin', 'transform-box',\r\n  'opacity', 'filter', 'clip-path', 'mask', 'display', 'visibility',\r\n]);\r\n\r\n// The joins and caps that draw no further from a line than half its width,\r\n// as a renderer reads their words, in any case; and the miter limit a\r\n// renderer draws where no `stroke-miterlimit` reads as one.\r\nconst HALF_WIDTH_JOINS = new Set(['round', 'bevel']);\r\nconst HALF_WIDTH_CAPS = new Set(['round', 'butt']);\r\nconst INITIAL_MITER_LIMIT = 4;\r\n\r\n// A written `stroke-miterlimit` read as a renderer reads a number (cssNumber)\r\n// at or above 1, the only limits a renderer reads, else undefined.\r\nconst writtenMiterLimit = (value) => {\r\n  const limit = cssNumber(value);\r\n  return Number.isFinite(limit) && limit >= 1 ? limit : undefined;\r\n};\r\n\r\n// Whether a written join or cap is drawn as one of `words`; a line no key\r\n// reaches is drawn with the library's round ones. The word is trimmed only\r\n// of the whitespace CSS skips: a renderer refuses one padded with any other\r\n// space (a no-break space) and draws the inherited join or cap. CSS ignores\r\n// case only in ASCII letters; JavaScript's lowercasing turns no other letter\r\n// into one of these words' letters, so the two agree on these words.\r\nconst drawnAs = (value, words) => value === undefined\r\n  || words.has(String(value).replace(/^[\\t\\n\\f\\r ]+|[\\t\\n\\f\\r ]+$/g, '').toLowerCase());\r\n\r\nexport class BlissElement {\r\n  //#region Private Properties\r\n  #key\r\n  #level\r\n  #blissObj\r\n  #extraPathOptions\r\n  #isCharacter\r\n  #isShape\r\n  #isBlissGlyph\r\n  #isExternalGlyph\r\n  #leafX\r\n  #leafY\r\n  #leafWidth\r\n  #leafHeight\r\n  #anchorOffsetX\r\n  #anchorOffsetY\r\n  #advanceX\r\n  #children\r\n  #relativeToParentX\r\n  #relativeToParentY\r\n  #codeName\r\n  #char\r\n  #externalGlyphSpacing\r\n  #isSpaceGroup\r\n  #holdsOnlySpaces\r\n  #isEmptyGlyph\r\n  #isEmptyGroup\r\n  //#endregion\r\n  #childStartOffset\r\n  #parentElement;\r\n  #previousElement;\r\n  #classifiedParts; // Cached result of #classifyParts (level 2 only)\r\n  #isFused = false; // Two or more base parts: no spacing data (level 2 only)\r\n  #linkArea; // { left, right, padding } in its own frame, set by the root once the layout is final (levels 1 and 2)\r\n  #paintArea; // the same for its background, the paddings shared between painted neighbours instead\r\n\r\n  /**\r\n   * Stamps a non-inherited `vector-effect` onto bare <path> elements.\r\n   *\r\n   * vector-effect does not inherit and has no rendering effect on a <g>, so a\r\n   * pass-through vector-effect is relocated from the group onto each descendant\r\n   * <path> that does not already declare one. Innermost scope wins, because\r\n   * inner groups are rendered before their enclosing content.\r\n   *\r\n   * @param {string} content - inner SVG string (may contain nested <g>/<path>)\r\n   * @param {string} value - already-escaped vector-effect value\r\n   * @returns {string} content with vector-effect applied to bare <path> elements\r\n   */\r\n  static applyVectorEffectToPaths(content, value) {\r\n    // Skip empty placeholder paths (<path d=\"\"/>): they draw nothing and are\r\n    // stripped later, so stamping them would defeat that cleanup. Skip paths\r\n    // that already declare a vector-effect so an inner scope wins.\r\n    return content.replace(/<path (?!d=\"\")(?![^>]*\\bvector-effect=)/g, () => `<path vector-effect=\"${value}\" `);\r\n  }\r\n\r\n  /**\r\n   * Whether an `href` may build a link: an address with no scheme (a path, a\r\n   * query or a fragment, read relative to the document), or a web, mail or\r\n   * phone address. Any other scheme (`javascript:`, `data:`, `ftp:`) builds\r\n   * none: an allowlist stays safe as browsers learn new schemes. An `href`\r\n   * that holds no address builds none either: none written (the global link\r\n   * asks with `undefined`), a bare key (stored as `true`, which the author\r\n   * never wrote as an address) or a blank value.\r\n   *\r\n   * The scheme is read by the URL grammar a browser uses (a letter, then\r\n   * letters, digits, `+`, `-` or `.`, up to a colon), after removing the ASCII\r\n   * control characters and trimming the ends. That removes more than a browser\r\n   * does, so a scheme the browser would find is never missed (`java\\tscript:`\r\n   * is still `javascript:`); the value written into the link is the one the\r\n   * author gave. It is judged as stored, escaped, and the escaping is what\r\n   * keeps a character reference from spelling a scheme: `&#106;avascript:`\r\n   * reaches the browser as that text, a relative path. Shared by every level's\r\n   * link and the global one the builder draws, so the two cannot disagree.\r\n   *\r\n   * @param {*} value - the href as stored (already escaped), or undefined\r\n   * @returns {boolean}\r\n   */\r\n  static isSafeHref(value) {\r\n    if (value == null || value === true) return false;\r\n    const cleaned = String(value).replace(/[\\x00-\\x1f\\x7f]/g, '').trim();\r\n    if (cleaned === '') return false;\r\n    const scheme = /^([a-z][a-z0-9+.-]*):/i.exec(cleaned)?.[1];\r\n    return scheme === undefined || /^(https?|mailto|tel)$/i.test(scheme);\r\n  }\r\n\r\n  /**\r\n   * Wraps content with <a> and/or <g> tags based on options.\r\n   * Ensures consistent wrapping behavior across all element levels.\r\n   *\r\n   * A link's first child is a transparent rect over the element's area: a\r\n   * link is hit only where something paints, and the rect paints that area\r\n   * without showing (`transparent` is a paint, `none` is not), so the link\r\n   * answers a click anywhere in it and not only on the strokes. Under\r\n   * `link-area=ink` its lines, drawn again in transparent, take the rect's\r\n   * place (#linkHit). Either sits inside the element's own <g>, so a\r\n   * `transform` or `pointer-events` written there governs it too, and before\r\n   * the content, so the element's ink and any nested link paint over it: a\r\n   * part's link wins over its character's, a character's over its word's, and\r\n   * a later part's over an earlier one's.\r\n   *\r\n   * A link that holds another link and has no <g> of its own puts its content\r\n   * in a bare one: Chromium and WebKit draw nothing of an <a> whose parent is\r\n   * an <a> (SVG 1.1 lets an a element hold anything but itself).\r\n   *\r\n   * A CSS filter among the group's attributes is drawn as a native one\r\n   * (`filters`): its <filter> is the group's first child, then the shape that\r\n   * keeps a thin element drawn, then what the group holds, the link's rect\r\n   * included.\r\n   *\r\n   * @param {string} content - The content to wrap (raw path data or HTML string)\r\n   * @param {Object} processed - The library's computed values, of which only the\r\n   *   two in PUBLICATION_MAP reach the markup\r\n   * @param {Object} authored - The author's own keys, emitted as they were typed\r\n   * @param {function(): string} linkHit - the markup that makes a link answer a\r\n   *   click, drawn first inside it; called only for an element that builds a\r\n   *   link, and '' where it covers nothing\r\n   * @param {function(Array, boolean): Object} filters - translateFilters for\r\n   *   this element (#ownFilters), over the group's attribute entries, told\r\n   *   whether the element builds a link\r\n   * @returns {string} The wrapped content\r\n   */\r\n  static #wrapWithAnchorAndGroup(content, processed, authored, linkHit, filters) {\r\n    const { anchorAttrs, groupEntries, hasHref, vectorEffect } = BlissElement.#separateAnchorAndGroupOptions(processed, authored);\r\n    const { entries, defs, shape } = filters(groupEntries, hasHref);\r\n    const groupAttrs = formatEntries(entries);\r\n    const lead = defs.join('') + shape;\r\n\r\n    // Content that starts with '<' is already wrapped in proper tags\r\n    // Raw path data or fragments need wrapping\r\n    const needsPathWrapper = !content.startsWith('<');\r\n\r\n    // vector-effect is non-inherited: relocate it onto the <path>, not the <g>.\r\n    const stamp = (inner) => vectorEffect ? BlissElement.applyVectorEffectToPaths(inner, vectorEffect) : inner;\r\n\r\n    if (hasHref) {\r\n      const hit = linkHit();\r\n      const inner = stamp(needsPathWrapper ? `<path d=\"${content}\"/>` : content);\r\n      if (groupAttrs) {\r\n        return `<a ${anchorAttrs} style=\"cursor: pointer;\"><g ${groupAttrs}>${lead}${hit}${inner}</g></a>`;\r\n      }\r\n      const body = content.includes('<a ') ? `<g>${inner}</g>` : inner;\r\n      return `<a ${anchorAttrs} style=\"cursor: pointer;\">${hit}${body}</a>`;\r\n    }\r\n\r\n    if (groupAttrs) {\r\n      const wrappedContent = stamp(needsPathWrapper ? `<path d=\"${content}\"/>` : content);\r\n      return `<g ${groupAttrs}>${lead}${wrappedContent}</g>`;\r\n    }\r\n\r\n    if (vectorEffect) {\r\n      return stamp(needsPathWrapper ? `<path d=\"${content}\"/>` : content);\r\n    }\r\n\r\n    return content;\r\n  }\r\n\r\n  /** A link's hit rect, its numbers rounded as the picture's own are. */\r\n  static #hitRect({ x, y, width, height }) {\r\n    const round = roundForMarkup;\r\n    return `<rect x=\"${round(x)}\" y=\"${round(y)}\" width=\"${round(width)}\" height=\"${round(height)}\" fill=\"transparent\" stroke=\"none\"/>`;\r\n  }\r\n\r\n  /**\r\n   * A linked or painted part's area: its ink box plus its `padding`\r\n   * (#areaPadding) on every side.\r\n   */\r\n  static #inkHitBox({ minX, minY, width, height }, padding) {\r\n    return {\r\n      x: minX - padding,\r\n      y: minY - padding,\r\n      width: width + 2 * padding,\r\n      height: height + 2 * padding,\r\n    };\r\n  }\r\n\r\n  /**\r\n   * A linked or painted word's or character's area: its link area or its paint\r\n   * area across the band plus the area's padding above and below, placed from\r\n   * its frame's origin. Null without an area, as for a word of no characters. A\r\n   * character overlapped by both neighbours can be left an area of no width,\r\n   * never a negative one.\r\n   */\r\n  static #bandHitBox(originX, originY, area) {\r\n    if (!area) return null;\r\n    return {\r\n      x: originX + area.left,\r\n      y: originY - area.padding,\r\n      width: Math.max(0, area.right - area.left),\r\n      height: BAND_HEIGHT + 2 * area.padding,\r\n    };\r\n  }\r\n\r\n  /**\r\n   * The two kinds of area an element can have, each read from its own two\r\n   * options: its link's, where a click answers, and its background's. `has`\r\n   * says whether an element has an area of the kind; `keep` stores a word's\r\n   * or a character's in its own frame (#assignAreas).\r\n   */\r\n  static #LINK_AREAS = {\r\n    padding: 'linkPadding',\r\n    shape: 'linkArea',\r\n    has: element => element.#buildsLink,\r\n    keep: (element, area) => { element.#linkArea = area; },\r\n  };\r\n  static #PAINT_AREAS = {\r\n    padding: 'backgroundPadding',\r\n    shape: 'backgroundArea',\r\n    has: element => element.#background !== '',\r\n    keep: (element, area) => { element.#paintArea = area; },\r\n  };\r\n\r\n  /**\r\n   * How far this element's area of `kind` reaches past what it surrounds: the\r\n   * padding it inherits, else the default for the area's shape, INK_AREA_MARGIN\r\n   * past an ink area's lines, HIT_MARGIN past a word's or a character's band\r\n   * and base span, PART_HIT_MARGIN past a part's ink box. A word's or a\r\n   * character's may reach less toward a neighbour (#assignAreas).\r\n   */\r\n  #areaPadding(kind) {\r\n    const padding = this.#getInheritedOption(kind.padding);\r\n    if (padding !== undefined) return padding;\r\n    if (this.#getInheritedOption(kind.shape) === 'ink') return INK_AREA_MARGIN;\r\n    return this.#level <= 2 ? HIT_MARGIN : PART_HIT_MARGIN;\r\n  }\r\n\r\n  /**\r\n   * How far this word's or character's area of `kind` reaches past the base\r\n   * span of `glyph` (this character, or one of this word's) toward a\r\n   * neighbour, before any sharing: a box its padding, an ink area half the\r\n   * glyph's line width plus its padding, as its lines run along the span's\r\n   * edge.\r\n   */\r\n  #reach(kind, glyph) {\r\n    const padding = this.#areaPadding(kind);\r\n    if (this.#getInheritedOption(kind.shape) !== 'ink') return padding;\r\n    return (glyph.#getInheritedOption('strokeWidth') ?? DEFAULT_STROKE_WIDTH) / 2 + padding;\r\n  }\r\n\r\n  /**\r\n   * How far an area of `padding` reaches toward a neighbour across `gap`, when\r\n   * the neighbour's own area of its kind reaches `other` toward it, or does\r\n   * not exist (null): min(padding, max(gap / 2, gap - other)). Two that both\r\n   * reach halfway meet there; one that stops short keeps its padding and the\r\n   * other reaches to meet it, as far as its own allows, so neither passes the\r\n   * other's lines. With no area to share, the full padding at any gap.\r\n   */\r\n  static #share(padding, other, gap) {\r\n    if (other === null) return padding;\r\n    return Math.min(padding, Math.max(gap / 2, gap - other));\r\n  }\r\n\r\n  /**\r\n   * Whether this word or character draws a link of its own: judged by the\r\n   * walk its wrap makes, so a refused href counts as no link here too.\r\n   */\r\n  get #buildsLink() {\r\n    return BlissElement.#separateAnchorAndGroupOptions(this.#blissObj.options, this.#blissObj.authoredOptions).hasHref;\r\n  }\r\n\r\n  /**\r\n   * The paint this element's own `background` puts behind it, or '' for none.\r\n   * Never inherited: a word's background is one area, never one per\r\n   * character, or a translucent paint would darken where two overlap. An empty\r\n   * value paints nothing, as at global scope.\r\n   */\r\n  get #background() {\r\n    return this.#blissObj.options?.background ?? '';\r\n  }\r\n\r\n  /**\r\n   * Gives every word and character its link area and its paint area, in its\r\n   * own frame (root only, once the layout is final). The two are built alike,\r\n   * each from its own padding (#areaPadding) and sharing it only with\r\n   * neighbours of its own kind. A character's area runs across its base span,\r\n   * indicators ignored, plus its padding on each side. Toward a neighbour with\r\n   * an area of the same kind (the next character in reading order, across a\r\n   * word space too, by its own area or its word's) it reaches only as far as\r\n   * #share allows, the neighbour reaching the larger of its own area's reach\r\n   * and its word's (#reach); toward any other it keeps its padding at any gap,\r\n   * since no other area is there to share it. A word's area joins its\r\n   * characters' areas, each built again from the word's own padding. A part's\r\n   * link or background, or the global one, does not count for its character.\r\n   * Done here because a character cannot see a neighbour in another word from\r\n   * its own frame. Spaces and characters that draw nothing are not characters\r\n   * here: no area of their own, and no neighbour to anyone.\r\n   */\r\n  #assignAreas() {\r\n    // Base spans in the root's frame, in reading order.\r\n    const characters = this.#children\r\n      .filter(group => !group.#isSpaceGroup)\r\n      .flatMap(group => group.#children\r\n        .filter(glyph => glyph.#children.length > 0)\r\n        .map(glyph => {\r\n          const origin = group.#relativeToParentX + glyph.#relativeToParentX;\r\n          const { left, right } = glyph.#baseSpan;\r\n          return { group, glyph, origin, left: origin + left, right: origin + right };\r\n        }));\r\n\r\n    for (const kind of [BlissElement.#LINK_AREAS, BlissElement.#PAINT_AREAS]) {\r\n      // How far the areas of this kind on each character reach toward a\r\n      // neighbour, its own and its word's, the larger counting; null for none.\r\n      const reaches = characters.map(({ group, glyph }) => {\r\n        const holders = [group, glyph].filter(kind.has);\r\n        return holders.length > 0 ? Math.max(...holders.map(holder => holder.#reach(kind, glyph))) : null;\r\n      });\r\n      const words = new Map(); // group -> its characters' areas at its padding, joined, in the root's frame\r\n      characters.forEach(({ group, glyph, origin, left, right }, i) => {\r\n        const previous = characters[i - 1];\r\n        const next = characters[i + 1];\r\n        const extent = padding => ({\r\n          left: left - (previous ? BlissElement.#share(padding, reaches[i - 1], left - previous.right) : padding),\r\n          right: right + (next ? BlissElement.#share(padding, reaches[i + 1], next.left - right) : padding),\r\n        });\r\n        const padding = glyph.#areaPadding(kind);\r\n        const own = extent(padding);\r\n        kind.keep(glyph, { left: own.left - origin, right: own.right - origin, padding });\r\n        const inWord = extent(group.#areaPadding(kind));\r\n        const word = words.get(group) ?? inWord;\r\n        words.set(group, { left: Math.min(word.left, inWord.left), right: Math.max(word.right, inWord.right) });\r\n      });\r\n\r\n      for (const [group, { left, right }] of words) {\r\n        const origin = group.#relativeToParentX;\r\n        kind.keep(group, { left: left - origin, right: right - origin, padding: group.#areaPadding(kind) });\r\n      }\r\n    }\r\n  }\r\n\r\n  /**\r\n   * What makes this element's link answer a click, drawn first inside the\r\n   * link: a transparent rect over `box()`, its area, or where the `link-area`\r\n   * it inherits is `ink`, its lines drawn again in transparent (#inkArea), so\r\n   * only the lines and its link's padding around them answer. The group sets\r\n   * `fill=\"none\"` for the reason an ink background does (#backgroundMarkup).\r\n   * '' where it covers nothing. `x` and `y` are the origin of the frame this\r\n   * element sits in, as getSvgContent takes them.\r\n   */\r\n  #linkHit(x, y, box) {\r\n    if (this.#getInheritedOption('linkArea') === 'ink') {\r\n      // drawn inside this element's own group, so inside its join and cap\r\n      const paint = 'transparent';\r\n      const ink = this.#inkArea(x, y, paint, this.#areaPadding(BlissElement.#LINK_AREAS), undefined, this.#lineGroups(this.#contentFrame));\r\n      return ink ? `<g fill=\"none\" stroke=\"${paint}\" stroke-width=\"${ink.width}\">${ink.lines}</g>` : '';\r\n    }\r\n    const area = box();\r\n    return area ? BlissElement.#hitRect(area) : '';\r\n  }\r\n\r\n  /**\r\n   * Where this element's link answers a click (#linkHit), as { minX, minY,\r\n   * maxX, maxY }: under `link-area=ink` its lines widened by the link's\r\n   * padding, as the ink area draws them, else `box()`; undefined where it\r\n   * covers nothing.\r\n   */\r\n  #linkBox(x, y, box) {\r\n    if (this.#getInheritedOption('linkArea') === 'ink') {\r\n      return grownBy(this.#drawnBox(x, y), this.#areaPadding(BlissElement.#LINK_AREAS));\r\n    }\r\n    const area = box();\r\n    return area ? { minX: area.x, minY: area.y, maxX: area.x + area.width, maxY: area.y + area.height } : undefined;\r\n  }\r\n\r\n  /**\r\n   * This element's lines as an ink area draws them: rendered again in the\r\n   * halo mode getSvgContent takes, in `paint`, each line widened by twice the\r\n   * area's `padding` and each letter filled in `paint` and outlined by as much.\r\n   * Returns the lines; the width a group strokes them at (the element's\r\n   * computed width, widened alike); and that group as #lineWidth and\r\n   * #lineGroups read it, the lines a copy inside `groups`, the attributes of\r\n   * the groups around them, nearest first (#lineGroups). Its width is the\r\n   * computed one unless an author's key writes one, `written`: that one where\r\n   * it reads as a width (writtenWidth), else the width the group inherits,\r\n   * the content group's (the area is drawn in it), where that is the wider.\r\n   * Null where it draws no line,\r\n   * as ZSA does. Built from the widths the library computes: of the element's\r\n   * own attributes only its effects reach its ink area, on the copy the layer\r\n   * puts around it (#backgroundLayer), and its descendants' effects reach\r\n   * their lines inside it (#haloWrap).\r\n   */\r\n  #inkArea(x, y, paint, padding, written, groups) {\r\n    const outline = 2 * padding;\r\n    const width = (this.#getInheritedOption('strokeWidth') ?? DEFAULT_STROKE_WIDTH) + outline;\r\n    // a tree outside a picture has no content group, and the computed width stands\r\n    const drawn = written === undefined ? width : writtenWidth(written) ?? Math.max(width, this.#contentFrame.width ?? width);\r\n    const frame = { top: this, width: drawn, extra: outline, copy: true, groups };\r\n    const lines = this.getSvgContent(x, y, { paint, outline, element: this, frame });\r\n    if (lines === '') return null;\r\n    return {\r\n      lines: lines.startsWith('<') ? lines : `<path d=\"${lines}\"/>`,\r\n      width: roundForMarkup(width),\r\n      frame,\r\n    };\r\n  }\r\n\r\n  /**\r\n   * This element's content in the halo mode of getSvgContent, where it writes\r\n   * none of its wrappers (no link, no paint, no class or id) but a width of\r\n   * its own, re-stated widened, and its effects (#effectEntries), on one\r\n   * group exactly where its ink has its own, so the area moves, clips and\r\n   * hides with the lines. The painted element's own width goes on its ink\r\n   * area's group instead, and its own effects on the copy around the area\r\n   * (#backgroundLayer). Content with no line stays empty, so an area around\r\n   * no line draws nothing, whatever group its element writes. A filter in\r\n   * the copy is drawn as its own native one, covering the lines at the widths\r\n   * the area draws them (`halo.frame`, #inkArea) and what the copies inside\r\n   * it draw past them. `x` and `y` are the origin of the frame this element\r\n   * sits in, as getSvgContent takes them.\r\n   */\r\n  #haloWrap(content, halo, x, y) {\r\n    if (halo.element === this || content === '') return content;\r\n    const options = this.#blissObj.options ?? {};\r\n    const width = Object.hasOwn(options, 'strokeWidth')\r\n      ? [['stroke-width', roundForMarkup(options.strokeWidth + halo.outline)]]\r\n      : [];\r\n    const { entries, defs } = translateFilters([...width, ...this.#effectEntries],\r\n      () => ({ drawn: this.#drawnBox(x, y, halo.frame), outset: this.#filterOutset(halo.frame) }), this.#sharedOptions.filters);\r\n    if (entries.length === 0) return content;\r\n    const lines = content.startsWith('<') ? content : `<path d=\"${content}\"/>`;\r\n    return `<g ${formatEntries(entries)}>${defs.join('')}${lines}</g>`;\r\n  }\r\n\r\n  /**\r\n   * This element's effects (EFFECT_ATTRIBUTES), as its own <g> writes them\r\n   * and in its order, as [name, value] pairs: each effect attribute, and a\r\n   * `style` cut down to its effect declarations (#effectDeclarations), left\r\n   * out where it has none. Read from the walk that writes the <g>, so an\r\n   * attribute refused there is never copied. Empty where the element has no\r\n   * effect.\r\n   */\r\n  get #effectEntries() {\r\n    const { groupEntries } = BlissElement.#separateAnchorAndGroupOptions(this.#blissObj.options, this.#blissObj.authoredOptions);\r\n    return groupEntries.flatMap(([name, value]) => {\r\n      if (EFFECT_ATTRIBUTES.has(name)) return [[name, value]];\r\n      const effects = name === 'style' ? BlissElement.#effectDeclarations(value) : '';\r\n      return effects ? [['style', effects]] : [];\r\n    });\r\n  }\r\n\r\n  /**\r\n   * The declarations of a `style` value whose property is an effect, as\r\n   * written and in order, joined by `;`; '' where none is. Read as the filter\r\n   * translation reads a style (splitDeclarations), so the copy carries every\r\n   * filter its lines draw: split at each `;` outside parentheses, quotes,\r\n   * escapes and comments, a property read in any case, spacing and comments.\r\n   */\r\n  static #effectDeclarations(style) {\r\n    return splitDeclarations(style)\r\n      .filter(({ property }) => EFFECT_ATTRIBUTES.has(property))\r\n      .map(({ text }) => text)\r\n      .join(';');\r\n  }\r\n\r\n  /**\r\n   * What this element's own background draws, in the content's coordinates,\r\n   * from the origin of the frame it sits in, by the `background-area` it\r\n   * inherits: `{ area: 'box', box }` or `{ area: 'ink', lines, width }`\r\n   * (#inkArea), each with `drawn`, the box it covers ({ minX, minY, maxX,\r\n   * maxY }), at the widths it is drawn with once the keys that reach it\r\n   * (`levels`, #backgroundKeyLevels) are written on it; null where it draws\r\n   * none. A word's or a character's box is its paint area across the band, a\r\n   * part's its ink box plus its padding: the shapes a link's area takes. An\r\n   * ink area draws nothing where there is no line. A word or a character with\r\n   * no paint area draws nothing: a word of no characters, a character that\r\n   * draws nothing, and the root, which is never given one, as its background\r\n   * is the picture's own, drawn by the builder.\r\n   */\r\n  #backgroundDrawing(x, y, levels) {\r\n    if (this.#background === '') return null;\r\n    if (this.#level <= 2 && !this.#paintArea) return null;\r\n    if (this.#getInheritedOption('backgroundArea') === 'ink') {\r\n      const padding = this.#areaPadding(BlissElement.#PAINT_AREAS);\r\n      // drawn in the content group, outside the element's own group\r\n      const authored = this.#authoredBackground('ink', levels);\r\n      const ink = this.#inkArea(x, y, this.#background, padding, authored['stroke-width'], [authored, ...this.#contentFrame.groups]);\r\n      return ink && { area: 'ink', lines: ink.lines, width: ink.width, frame: ink.frame, drawn: this.#drawnBox(x, y, ink.frame) };\r\n    }\r\n    const box = this.#level <= 2\r\n      ? BlissElement.#bandHitBox(this.#relativeToParentX + x, this.#relativeToParentY + y, this.#paintArea)\r\n      : BlissElement.#inkHitBox(this.#calculateBounds(x, y), this.#areaPadding(BlissElement.#PAINT_AREAS));\r\n    // The rect is drawn with no stroke (#backgroundMarkup). One a key writes\r\n    // is drawn at the width a key writes on the rect, else at the content\r\n    // group's: the effect copies around the rect write no width.\r\n    const { stroke, 'stroke-width': width } = this.#authoredBackground('box', levels);\r\n    const outline = stroke !== undefined && stroke !== 'none' ? writtenWidth(width) ?? this.#contentFrame.width : 0;\r\n    return { area: 'box', box, drawn: grownBy({ minX: box.x, minY: box.y, maxX: box.x + box.width, maxY: box.y + box.height }, outline / 2) };\r\n  }\r\n\r\n  /**\r\n   * What the keys that reach this element's background (`levels`,\r\n   * #backgroundKeyLevels) write on the `area` it draws, as { name: value }:\r\n   * the author's attributes and the class every layer carries, none of the\r\n   * values the library computes for the area.\r\n   */\r\n  #authoredBackground(area, levels) {\r\n    const attributesOf = this.#sharedOptions.layerAttributeEntries ?? BlissElement.#ownLayerEntries;\r\n    return Object.fromEntries(attributesOf(ELEMENT_CLASSES[BACKGROUND_AREA_ELEMENTS[area]], {}, levels));\r\n  }\r\n\r\n  /**\r\n   * Visits every element at or below this one that draws a background, with\r\n   * what it draws and the keys that reach it (#backgroundKeyLevels), in the\r\n   * order the backgrounds are drawn: pre-order, so a word comes before its\r\n   * characters, a character before its parts, and an earlier part before a\r\n   * later one. `x` and `y` are the origin of the frame this element sits in,\r\n   * as getSvgContent takes them; `levels` the keys written around it.\r\n   */\r\n  #visitBackgrounds(visit, x = 0, y = 0, levels = []) {\r\n    const keys = this.#backgroundKeyLevels(levels);\r\n    const drawing = this.#backgroundDrawing(x, y, keys);\r\n    if (drawing) visit(this, drawing, keys);\r\n    for (const child of this.#children) {\r\n      child.#visitBackgrounds(visit, this.#relativeToParentX + x, this.#relativeToParentY + y, keys);\r\n    }\r\n  }\r\n\r\n  /**\r\n   * The element backgrounds' keys that reach this element's background and\r\n   * every one inside it: `levels`, those written on the elements around it,\r\n   * outermost first, then its own, which the builder took out of its options.\r\n   * A new array, never the parent's extended in place, since its siblings\r\n   * share that one. The root has none: the global bracket's keys are the\r\n   * builder's own.\r\n   */\r\n  #backgroundKeyLevels(levels) {\r\n    const own = this.#blissObj.backgroundKeys;\r\n    return own ? [...levels, own] : levels;\r\n  }\r\n\r\n  /**\r\n   * Every background at or below this element as the layer draws them: the\r\n   * tree pared down to its effects. This element's own background, then its\r\n   * children's, in the order #visitBackgrounds visits them, inside one copy\r\n   * of this element's effects (#effectEntries) where it has any, so every\r\n   * background under one element shares that copy, as its lines share its\r\n   * <g>. A box ignores its descendants' effects, which reach only their own\r\n   * backgrounds. The root writes no copy: a global effect lands on the\r\n   * content group, which holds the layer. A filter in the copy is drawn as\r\n   * its own native one, covering what the copy holds, since a box reaches\r\n   * past the lines, and how far the filters inside the copy draw past it.\r\n   * Returns `{ markup, drawn, spread }`: markup '', drawn undefined and\r\n   * spread 0 where nothing at or below this element draws a background, else\r\n   * the union of what they cover and how far past it what the layer holds\r\n   * draws. `x` and `y` are the origin of the frame this element sits in, as\r\n   * getSvgContent takes them; `levels` the keys written around it\r\n   * (#backgroundKeyLevels).\r\n   */\r\n  #backgroundLayer(x = 0, y = 0, levels = []) {\r\n    const keys = this.#backgroundKeyLevels(levels);\r\n    const drawing = this.#backgroundDrawing(x, y, keys);\r\n    const layers = [\r\n      ...(drawing ? [{ ...this.#backgroundMarkup(drawing, keys), drawn: drawing.drawn }] : []),\r\n      ...this.#children.map(child => child.#backgroundLayer(this.#relativeToParentX + x, this.#relativeToParentY + y, keys)),\r\n    ].filter(layer => layer.markup !== '');\r\n    if (layers.length === 0) return { markup: '', drawn: undefined, spread: 0 };\r\n    const markup = layers.map(layer => layer.markup).join('');\r\n    const drawn = unionOf(layers.map(layer => layer.drawn));\r\n    const outset = Math.max(...layers.map(layer => layer.spread));\r\n    if (this.#level === 0) return { markup, drawn, spread: outset };\r\n    const effects = this.#effectEntries;\r\n    const { entries, defs } = translateFilters(effects, () => ({ drawn, outset }), this.#sharedOptions.filters);\r\n    return {\r\n      markup: entries.length > 0 ? `<g ${formatEntries(entries)}>${defs.join('')}${markup}</g>` : markup,\r\n      drawn,\r\n      spread: filterReach(effects) + outset,\r\n    };\r\n  }\r\n\r\n  /**\r\n   * This element's background as markup, in its paint: a rect over its box,\r\n   * or a group stroking its lines. The rect sets `stroke=\"none\"` itself, or the\r\n   * content group's stroke would outline it; the group sets `fill=\"none\"`, or a\r\n   * `fill` written for the whole symbol, which lands on the content group,\r\n   * would fill every enclosure it rings. Their classes make them targets of\r\n   * the layer attributes, which the builder resolves through the function it\r\n   * shares with the tree, with the keys that reach this background (`levels`,\r\n   * #backgroundKeyLevels); a tree built without one writes the classes and the\r\n   * computed attributes alone. A filter among them is drawn as a native one,\r\n   * covering what the background covers: first inside the group, or just\r\n   * before the rect, which holds no child. Returns `{ markup, spread }`,\r\n   * `spread` how far past what it covers the background draws: its filter's\r\n   * reach, plus, for an ink area, how far the filters inside the lines it\r\n   * strokes draw past them.\r\n   */\r\n  #backgroundMarkup(drawing, levels) {\r\n    const classes = ELEMENT_CLASSES[BACKGROUND_AREA_ELEMENTS[drawing.area]];\r\n    const attributesOf = this.#sharedOptions.layerAttributeEntries ?? BlissElement.#ownLayerEntries;\r\n    const outset = drawing.area === 'ink' ? this.#filterOutset(drawing.frame) : 0;\r\n    const translated = (computed) => {\r\n      const attributes = attributesOf(classes, computed, levels);\r\n      const { entries, defs } = translateFilters(attributes, () => ({ drawn: drawing.drawn, outset }), this.#sharedOptions.filters);\r\n      return { attributes: formatEntries(entries), defs: defs.join(''), spread: filterReach(attributes) + outset };\r\n    };\r\n    if (drawing.area === 'ink') {\r\n      const { attributes, defs, spread } = translated({ fill: 'none', stroke: this.#background, 'stroke-width': drawing.width });\r\n      return { markup: `<g ${attributes}>${defs}${drawing.lines}</g>`, spread };\r\n    }\r\n    const { box } = drawing;\r\n    const { attributes, defs, spread } = translated({\r\n      x: roundForMarkup(box.x),\r\n      y: roundForMarkup(box.y),\r\n      width: roundForMarkup(box.width),\r\n      height: roundForMarkup(box.height),\r\n      fill: this.#background,\r\n      stroke: 'none',\r\n    });\r\n    return { markup: `${defs}<rect ${attributes}/>`, spread };\r\n  }\r\n\r\n  /** A layer's attribute entries with no author's to add: its classes, then what was computed. */\r\n  static #ownLayerEntries(classes, computed) {\r\n    return Object.entries({ class: classes.join(' '), ...computed });\r\n  }\r\n\r\n  /**\r\n   * Every element background this tree draws, as `{ element, levels }`: its\r\n   * ELEMENT_CLASSES entry and the keys that reach it (#backgroundKeyLevels),\r\n   * found by the walk that draws them (root only), which renders an ink area's\r\n   * lines to learn whether it has any. The builder reads it to report a layer\r\n   * attribute that displaces a written `background`, which it can judge only\r\n   * once the tree is built.\r\n   */\r\n  get drawnBackgrounds() {\r\n    const drawn = [];\r\n    this.#visitBackgrounds((element, drawing, levels) =>\r\n      drawn.push({ element: BACKGROUND_AREA_ELEMENTS[drawing.area], levels }));\r\n    return drawn;\r\n  }\r\n\r\n  /**\r\n   * Everything this tree draws (root only), as { minX, minY, maxX, maxY }: its\r\n   * lines, each widened by half its own width (#drawnBox), and every element\r\n   * background; undefined where it draws nothing. The builder reads it for the\r\n   * region of a filter on the content group, which holds both.\r\n   */\r\n  get drawnArea() {\r\n    const boxes = [];\r\n    const lines = this.#drawnBox(0, 0, this.#contentFrame);\r\n    if (lines) boxes.push(lines);\r\n    this.#visitBackgrounds((element, drawing) => boxes.push(drawing.drawn));\r\n    return boxes.length > 0 ? unionOf(boxes) : undefined;\r\n  }\r\n\r\n  /**\r\n   * How far past its drawn area (drawnArea) this tree draws (root only): the\r\n   * larger of how far the filters inside its lines and those in its\r\n   * background layer carry what they filter. The builder reads it for the\r\n   * region of a filter on the content group, which holds both.\r\n   */\r\n  get filterOutset() {\r\n    return Math.max(this.#filterOutset(this.#contentFrame), this.#backgroundLayer().spread);\r\n  }\r\n\r\n  static #separateAnchorAndGroupOptions(processed, authored) {\r\n    const computed = processed && typeof processed === 'object' ? processed : {};\r\n    const written = authored && typeof authored === 'object' ? authored : {};\r\n\r\n    const anchorAttrs = [];\r\n    const groupAttrs = new Map(); // attrName -> value; deduped, explicit name beats alias\r\n    let hasHref = false;\r\n    let vectorEffect = null;\r\n\r\n    // The two computed values the library publishes first, then everything the\r\n    // author wrote. Two bags have no order between them, so the order is stated\r\n    // rather than inherited from how one bag happened to be built: it reproduces\r\n    // what that bag did, where every curated key was rebuilt ahead of every raw\r\n    // one, so a raw `stroke` landed second and beat a curated `color` whatever\r\n    // order the author wrote the two in.\r\n    //\r\n    // The rename happens HERE, on the published walk alone, and not as a lookup\r\n    // inside the loop. A lookup would reach the author's keys too, and\r\n    // `strokeWidth` is a map KEY as well as an internal name: a bracket can\r\n    // spell it, it is not curated vocabulary, so it lands in the author's bag\r\n    // and a shared lookup renamed it on its way out.\r\n    //\r\n    // Each entry is [name as emitted, value, whether it was RESOLVED from a\r\n    // curated option rather than written]. The last decides the collision rule\r\n    // below, which the pre-resolved name can no longer answer by itself.\r\n    const emitted = [\r\n      // Own-key test, not `in`, which walks the prototype chain.\r\n      ...[...PUBLICATION_MAP].flatMap(([name, attribute]) =>\r\n        Object.hasOwn(computed, name) ? [[attribute, computed[name], true]] : []),\r\n      ...Object.entries(written).map(([key, value]) => [key, value, false]),\r\n    ];\r\n\r\n    // Values are already escaped by #processOptions at the input boundary\r\n    for (const [key, value, isAlias] of emitted) {\r\n      if (INTERNAL_OPTIONS.has(key) || !isSafeAttributeName(key)) continue;\r\n\r\n      if (ANCHOR_ATTRIBUTE_NAMES.includes(key)) {\r\n        if (key === 'href') {\r\n          if (!BlissElement.isSafeHref(value)) continue;\r\n          hasHref = true;\r\n        }\r\n        anchorAttrs.push(`${key}=\"${value}\"`);\r\n      } else {\r\n        // A name that declares what the document IS is refused wherever it is\r\n        // written, not only on the root: a second namespace declaration\r\n        // re-binds the default namespace for this group and everything under\r\n        // it, so those paths stop being SVG and nothing draws them. The\r\n        // builder reports it once per rebuild; here it is only kept out of the\r\n        // markup.\r\n        if (isDocumentDefiningAttribute(key)) continue;\r\n        // vector-effect is non-inherited; capture it for relocation onto paths\r\n        if (key === 'vector-effect') { vectorEffect = value; continue; }\r\n        // Each attribute name is emitted once (issue #28). On a collision the\r\n        // explicitly-named attribute wins over an alias (color -> stroke,\r\n        // strokeWidth -> stroke-width). The walk above already puts the aliases\r\n        // first, so the skip branch is defensive: it keeps explicit-wins an\r\n        // invariant rather than an artifact of that ordering, independent of\r\n        // option order.\r\n        if (!groupAttrs.has(key) || !isAlias) {\r\n          groupAttrs.set(key, value);\r\n        }\r\n      }\r\n    }\r\n\r\n    return {\r\n      anchorAttrs: anchorAttrs.join(' '),\r\n      groupEntries: [...groupAttrs],\r\n      hasHref,\r\n      vectorEffect\r\n    };\r\n  }\r\n\r\n  /**\r\n   * Classifies character parts into glyph parts and indicator parts.\r\n   * Valid pattern: [non-indicators...][indicators...] (no mixing)\r\n   *\r\n   * @param {BlissElement[]} children - Array of child elements to classify\r\n   * @returns {{ glyphParts: BlissElement[], indicatorParts: BlissElement[], isValidPattern: boolean }}\r\n   */\r\n  static #classifyParts(children) {\r\n    if (!children || children.length === 0) {\r\n      return { glyphParts: [], indicatorParts: [], isValidPattern: true };\r\n    }\r\n\r\n    const firstIndicatorIndex = children.findIndex(c => c.isIndicator);\r\n\r\n    // No indicators: all parts are glyph parts\r\n    if (firstIndicatorIndex === -1) {\r\n      return { glyphParts: children, indicatorParts: [], isValidPattern: true };\r\n    }\r\n\r\n    const glyphParts = children.slice(0, firstIndicatorIndex);\r\n    const indicatorParts = children.slice(firstIndicatorIndex);\r\n\r\n    // Validate: no non-indicators after the first indicator\r\n    const isValidPattern = indicatorParts.every(c => c.isIndicator);\r\n\r\n    return { glyphParts, indicatorParts, isValidPattern };\r\n  }\r\n\r\n  #sharedOptions;\r\n\r\n  /**\r\n   * Gets the first character element of the first group (level 2 element).\r\n   * Returns null if the structure doesn't have the expected depth.\r\n   * @returns {BlissElement|null}\r\n   */\r\n  #getFirstCharacterElement() {\r\n    // Content-empty groups are invisible to layout: the reparse of toString()\r\n    // (which omits them) computes indicator overhang from the first\r\n    // content-bearing group, so the live render must skip empties too.\r\n    const firstGroup = this.#children?.find(g => !g.#isEmptyGroup);\r\n    if (!firstGroup) return null;\r\n\r\n    // Empty-parts glyphs are invisible to layout: the reparse of toString()\r\n    // (which omits them) computes indicator overhang from the first\r\n    // content-bearing character, so the live render must too.\r\n    const firstCharacter = firstGroup.#children?.find(c => !c.#isEmptyGlyph);\r\n    if (!firstCharacter || !firstCharacter.#children) return null;\r\n\r\n    return firstCharacter;\r\n  }\r\n\r\n  /**\r\n   * Gets inherited options by walking up the parent chain.\r\n   * Child options take precedence over parent options.\r\n   * @param {string} optionName - The option name to look for\r\n   * @returns {*} The option value, or undefined if not found\r\n   */\r\n  #getInheritedOption(optionName) {\r\n    // Check this element's options first\r\n    if (this.#blissObj.options?.[optionName] !== undefined) {\r\n      return this.#blissObj.options[optionName];\r\n    }\r\n    // Walk up parent chain\r\n    let current = this.#parentElement;\r\n    while (current) {\r\n      if (current.#blissObj.options?.[optionName] !== undefined) {\r\n        return current.#blissObj.options[optionName];\r\n      }\r\n      current = current.#parentElement;\r\n    }\r\n    return undefined;\r\n  }\r\n\r\n  /**\r\n   * True ink start within this element's own frame: 0 for a leaf (path data\r\n   * draws from the origin); for a composite, the leftmost child ink edge.\r\n   * A displaced single-child composite keeps its baked offset, so its\r\n   * ink begins right of x=0 while its reported width still spans from the\r\n   * origin. Indicator centering reads this to skip the leading gap.\r\n   */\r\n  get #inkStartX() {\r\n    if (!this.#children || this.#children.length === 0) return 0;\r\n    return Math.min(...this.#children.map(child => child.#relativeToParentX + child.#inkStartX));\r\n  }\r\n\r\n  /**\r\n   * True ink end within this element's own frame: the width for a leaf; for a\r\n   * composite, the rightmost child ink edge. A negative-min composite reports\r\n   * its width as a span SIZE (max - min), not a right-edge coordinate, so\r\n   * position + width overstates where the ink stops.\r\n   */\r\n  get #inkEndX() {\r\n    if (!this.#children || this.#children.length === 0) return this.width;\r\n    return Math.max(...this.#children.map(child => child.#relativeToParentX + child.#inkEndX));\r\n  }\r\n\r\n  /**\r\n   * Positions indicator parts as a centered group above the glyph.\r\n   * First indicator is positioned so the entire group is centered over the glyph anchor.\r\n   * Subsequent indicators are positioned relative to the previous indicator.\r\n   *\r\n   * @param {BlissElement[]} glyphParts - The non-indicator parts (the base glyph)\r\n   * @param {BlissElement[]} indicatorParts - The indicator parts to position\r\n   */\r\n  #positionIndicatorGroup(glyphParts, indicatorParts) {\r\n    if (indicatorParts.length === 0) return;\r\n\r\n    // Calculate base glyph metrics over the TRUE INK SPAN: both edges\r\n    // add each part's internal ink offsets so a displaced composite base does\r\n    // not count a leading gap (positive baked offset) as ink, and a negative\r\n    // baked offset does not overstate the right edge (its reported width is a\r\n    // span size, not an edge coordinate).\r\n    const glyphMinX = glyphParts.length > 0\r\n      ? Math.min(...glyphParts.map(p => p.#relativeToParentX + p.#inkStartX))\r\n      : 0;\r\n    const glyphMaxX = glyphParts.length > 0\r\n      ? Math.max(...glyphParts.map(p => p.#relativeToParentX + p.#inkEndX))\r\n      : 0;\r\n    const glyphWidth = glyphMaxX - glyphMinX;\r\n    const glyphCenterX = glyphMinX + glyphWidth / 2;\r\n\r\n    // Anchor offset belongs to the base only when there is a single base part.\r\n    // A multi-part / atypical base has no single owner, so it uses the default\r\n    // (0,0) anchor, which keeps the indicator order-independent under base-part\r\n    // reordering (coordinate ownership). A single base part uses its own\r\n    // anchorOffset. The geometric center (glyphCenterX) is already\r\n    // order-independent and is kept above.\r\n    const baseAnchor = glyphParts.length === 1 ? glyphParts[0].anchorOffset : undefined;\r\n    const baseAnchorOffsetX = baseAnchor?.x || 0;\r\n    const baseAnchorOffsetY = baseAnchor?.y || 0;\r\n    const anchorX = glyphCenterX + baseAnchorOffsetX;\r\n\r\n    // Calculate total indicator group width (including gaps)\r\n    const totalIndicatorWidth = indicatorParts.reduce((sum, ind) => sum + ind.width, 0)\r\n      + (indicatorParts.length - 1) * INDICATOR_GAP;\r\n\r\n    // Center the group's CONTENT span over the glyph anchor.\r\n    //\r\n    // An indicator's anchorOffsetX marks the center of its CONTENT (B84: the\r\n    // description arrow with an annotation dot trailing right, a = -0.5; B85\r\n    // mirrored, a = +0.5): the content center sits at width/2 + a, and the\r\n    // dot occupies the remaining 2|a| on the opposite side. Alone over a\r\n    // character, the arrow centers on the anchor and the dot hangs outside\r\n    // the measurement (the single-indicator rule below). In a group, the\r\n    // reader centers the same thing: the row of content from the FIRST\r\n    // member's content-left edge to the LAST member's content-right edge\r\n    // (\"spaced apart and centered as a group\", docs handbook/writing/\r\n    // characters-bcodes). An edge dot facing OUTWARD hangs off the row and\r\n    // is excluded — its member's content edge pulls in by 2|a| — while a dot\r\n    // facing INTO the row and any middle member's dot sit inside it and move\r\n    // nothing:\r\n    //   span   = [P + max(0, 2*a1), P + totalWidth + min(0, 2*aN)]\r\n    //   center = P + totalWidth/2 + max(0, a1) + min(0, aN) = glyphAnchorX\r\n    //   =>  shift = -max(0, a1) - min(0, aN)\r\n    //\r\n    // A single indicator is the n = 1 degenerate case (first == last, one of\r\n    // the two terms is a, the other 0):\r\n    //   x = glyphAnchorX - width/2 - anchorOffsetX\r\n    // sitting its content center exactly on the glyph anchor.\r\n    //\r\n    // (The previous rule centered the MIDPOINT of the first/last\r\n    // anchor points instead. Its (wN - w1)/4 width term sat any group whose\r\n    // edge members differ in CONTENT width (width minus the outer 2|a| dot\r\n    // allowance) off the anchor, order-dependently: B391;B81;B90 vs\r\n    // B391;B90;B81, ±0.875. Where edge content widths are equal — B84/B85\r\n    // beside a w=2 partner (3 - 1 = 2) — the old width term coincidentally\r\n    // equaled this dot exclusion, which is why those pairs render exactly as\r\n    // before. Width never skews the group; only outward edge dots move it,\r\n    // by half their 2|a| allowance.)\r\n    const firstAnchorOffsetX = indicatorParts[0].anchorOffset?.x || 0;\r\n    const lastAnchorOffsetX = indicatorParts[indicatorParts.length - 1].anchorOffset?.x || 0;\r\n    const anchorShift = -Math.max(0, firstAnchorOffsetX) - Math.min(0, lastAnchorOffsetX);\r\n\r\n    // Position indicators. A baseless stack (no base part) has nothing to\r\n    // center over, so it lays its parts out left-to-right from the origin; a\r\n    // based stack centers the group over the base anchor. Either way explicit\r\n    // :x,y overrides below.\r\n    let currentX = glyphParts.length === 0\r\n      ? 0\r\n      : anchorX - totalIndicatorWidth / 2 + anchorShift;\r\n\r\n    for (const indicator of indicatorParts) {\r\n      // X positioning: only override if no explicit x was provided\r\n      // Position by left edge to maintain visual 1-unit gaps between indicators\r\n      // (a member's own anchorOffsetX never repositions it INSIDE the group;\r\n      // outward edge dots act once, via anchorShift above)\r\n      if (indicator.#blissObj.x === undefined) {\r\n        indicator.#relativeToParentX = currentX;\r\n      } else {\r\n        indicator.#relativeToParentX = indicator.#blissObj.x;\r\n      }\r\n\r\n      // Y positioning: use same logic as before, but reference base glyph\r\n      if (indicator.#blissObj.y !== undefined) {\r\n        indicator.#relativeToParentY = indicator.#blissObj.y;\r\n      } else {\r\n        const defaultIndicatorY = 4;\r\n        const baseDefaultAnchorY = 4;\r\n        const baseAnchorY = baseDefaultAnchorY + baseAnchorOffsetY;\r\n        const indicatorAnchorOffsetY = indicator.#blissObj.anchorOffsetY || 0;\r\n        indicator.#relativeToParentY = baseAnchorY - indicatorAnchorOffsetY - defaultIndicatorY;\r\n      }\r\n\r\n      // Move to next indicator position\r\n      currentX += indicator.width + INDICATOR_GAP;\r\n    }\r\n  }\r\n\r\n  constructor(blissObj = {}, { parentElement = null, previousElement = null, level = 0, sharedOptions = null } = {}) {\r\n    this.#blissObj = blissObj;\r\n    this.#parentElement = parentElement;\r\n    this.#previousElement = previousElement;\r\n    this.#level = level;\r\n    this.#sharedOptions = sharedOptions || { charSpace: 2, wordSpace: 8, externalGlyphSpace: 0.8 };\r\n\r\n    // Assign key: user-provided key takes precedence, otherwise auto-generate\r\n    this.#key = this.#blissObj.key || generateKey();\r\n\r\n    // Duplicate key detection (only when builder provides sharedOptions with key tracking).\r\n    // The `this.#blissObj.key` guard limits warnings to user-assigned keys only;\r\n    // auto-generated 8-char random keys have negligible collision probability (~2.8T combinations).\r\n    if (this.#sharedOptions.keys) {\r\n      if (this.#blissObj.key && this.#sharedOptions.keys.has(this.#key)) {\r\n        this.#sharedOptions.warnings.push({\r\n          code: WARNING_CODES.DUPLICATE_KEY,\r\n          message: `Duplicate element key: \"${this.#key}\"`,\r\n          source: this.#key,\r\n        });\r\n      }\r\n      this.#sharedOptions.keys.add(this.#key);\r\n    }\r\n\r\n    this.#codeName = \"\";\r\n    this.#relativeToParentX = 0;\r\n    this.#relativeToParentY = 0;\r\n    this.#children = [];\r\n    this.#externalGlyphSpacing = this.#sharedOptions.externalGlyphSpace - (this.kerningRules?.[previousElement?.char] ?? 0);\r\n    this.#childStartOffset = 0;\r\n\r\n    if (this.#level === 0) {\r\n      // Root level (sequence)\r\n      if (!this.#blissObj.groups) {\r\n        this.#blissObj = { groups: [this.#blissObj] };\r\n      }\r\n\r\n      for (const group of this.#blissObj.groups) {\r\n        const child = new BlissElement(group, { parentElement: this, previousElement: this.#children[this.#children.length - 1], level: this.#level + 1, sharedOptions: this.#sharedOptions });\r\n        this.#children.push(child);\r\n      }\r\n      \r\n      // Calculate indicator overhang for first character\r\n      const firstCharacter = this.#getFirstCharacterElement();\r\n      if (firstCharacter && firstCharacter.#classifiedParts) {\r\n        const { glyphParts, indicatorParts } = firstCharacter.#classifiedParts;\r\n\r\n        // Only calculate overhang if we have both glyph parts and indicator parts\r\n        if (glyphParts.length > 0 && indicatorParts.length > 0 && !firstCharacter.isIndicator) {\r\n          // Find how far the first indicator's ink (the leftmost in the default\r\n          // layout) extends left of x=0, the glyph start. Its ink, not its frame:\r\n          // a compound indicator's parts can start away from its own origin.\r\n          const indicatorLeftX = indicatorParts[0].#relativeToParentX + indicatorParts[0].#inkStartX;\r\n          if (indicatorLeftX < 0) {\r\n            this.#childStartOffset = -indicatorLeftX;\r\n          }\r\n        }\r\n      }\r\n      this.#relativeToParentX = this.#childStartOffset + (this.#blissObj.x ?? 0);\r\n      this.#relativeToParentY = this.#blissObj.y ?? 0;\r\n\r\n      this.#assignAreas();\r\n\r\n      this.getSvgContent = (x = 0, y = 0) => {\r\n        const childContents = this.#children.map(child =>\r\n          child.getSvgContent(this.#relativeToParentX + x, this.#relativeToParentY + y)\r\n        );\r\n\r\n        const hasTaggedContent = childContents.some(c => c.startsWith('<'));\r\n        const hasRawContent = childContents.some(c => !c.startsWith('<'));\r\n\r\n        // Nothing is wrapped here: every global option, the link included,\r\n        // is written by the builder around the content group.\r\n        const ink = hasTaggedContent && hasRawContent\r\n          ? childContents.map(c => c.startsWith('<') ? c : `<path d=\"${c}\"/>`).join('')\r\n          : childContents.join('');\r\n\r\n        // Every word, character and part background comes first, beneath all\r\n        // of the ink: a background drawn inside its own element would hide the\r\n        // ink of every earlier neighbour or part it reaches under. So an\r\n        // element's effects reach its background through a copy of them in\r\n        // the layer (#backgroundLayer). Every link is drawn after them too, so\r\n        // none takes a link's click. The ink follows as svgContent would write\r\n        // it alone: raw path data in a path of its own.\r\n        const backgrounds = this.#backgroundLayer(x, y).markup;\r\n        if (backgrounds === '') return ink;\r\n        return backgrounds + (ink.startsWith('<') ? ink : `<path d=\"${ink}\"/>`);\r\n      };\r\n    } else if (this.#level === 1) {\r\n      // Group level\r\n      if (!this.#blissObj.glyphs) {\r\n        this.#blissObj = { glyphs: [this.#blissObj] };\r\n      }\r\n\r\n      // A fail-flagged group (group.errorCode) can no longer appear here:\r\n      // the builder's #normalizeFailedWordInvariant drops such groups before\r\n      // construction, and BlissElement itself is not exported.\r\n\r\n      // Empty-parts glyphs are skipped in the sibling chain so surviving\r\n      // neighbors pair up for spacing and kerning exactly as they do when\r\n      // the serialized form (which omits empty glyphs) is reparsed.\r\n      let previousLayoutGlyph = null;\r\n      for (const glyph of this.#blissObj.glyphs) {\r\n        const child = new BlissElement(glyph, { parentElement: this, previousElement: previousLayoutGlyph, level: this.#level + 1, sharedOptions: this.#sharedOptions });\r\n        this.#children.push(child);\r\n        if (!child.#isEmptyGlyph) previousLayoutGlyph = child;\r\n      }\r\n\r\n      // Content-empty groups (zero glyphs, or only empty-parts glyphs)\r\n      // render nothing and contribute no document extent, mirroring\r\n      // #isEmptyGlyph one level up.\r\n      this.#isEmptyGroup = this.#children.every(child => child.#isEmptyGlyph);\r\n\r\n\r\n      // Check if this is a space group (all glyphs are space glyphs: TSP or QSP).\r\n      // A group with zero glyphs has no space semantics: content-empty groups\r\n      // stay visible to navigation and are never classified as space groups.\r\n      this.#isSpaceGroup = (this.#blissObj.glyphs?.length > 0) && this.#blissObj.glyphs.every(g => {\r\n        const code = g.parts?.[0]?.codeName;\r\n        return code && isSpaceGlyph(code);\r\n      });\r\n      const isSpaceGroup = this.#isSpaceGroup;\r\n\r\n      // A group of nothing but spaces has no ink for an automatic crop to\r\n      // stop at (#calculateBounds skips it). Every glyph must be a space and\r\n      // nothing else: #isSpaceGroup reads only a glyph's first part, and a\r\n      // glyph that starts with a space but keeps another part (an unknown\r\n      // code drawn as an error placeholder) has that part's ink to keep.\r\n      this.#holdsOnlySpaces = isSpaceGroup && this.#blissObj.glyphs.every(g => g.parts.length === 1);\r\n\r\n      if (this.#previousElement) {\r\n        if (this.#blissObj.x === undefined) {\r\n          // Position based on previous element's advanceX\r\n          this.#relativeToParentX = this.#previousElement.#relativeToParentX + this.#previousElement.#advanceX;\r\n        } else {\r\n          this.#relativeToParentX = this.#previousElement.#relativeToParentX + this.#previousElement.width + this.#blissObj.x;\r\n        }\r\n      } else if (this.#parentElement) {\r\n        this.#relativeToParentX = this.#parentElement.#relativeToParentX + (this.#blissObj.x ?? 0);\r\n      } else {\r\n        this.#relativeToParentX = this.#blissObj.x ?? 0;\r\n      }\r\n\r\n      if (this.#parentElement) {\r\n        this.#relativeToParentY = this.#parentElement.#relativeToParentY + (this.#blissObj.y ?? 0);\r\n      } else {\r\n        this.#relativeToParentY = this.#blissObj.y ?? 0;\r\n      }\r\n\r\n      // Space groups: advanceX is the sum of their dynamically-calculated glyph widths\r\n      // Regular groups: advanceX is baseGroupWidth + charSpace (the charSpace pairs with TSP to make full wordSpace)\r\n      if (isSpaceGroup) {\r\n        // Sum dynamically-calculated widths for all space glyphs\r\n        this.#advanceX = this.#blissObj.glyphs.reduce((sum, g) => {\r\n          const code = g.parts?.[0]?.codeName;\r\n          if (code === 'TSP') {\r\n            return sum + (this.#sharedOptions.wordSpace - this.#sharedOptions.charSpace);\r\n          } else if (code === 'QSP') {\r\n            return sum + (this.#sharedOptions.wordSpace / 2 - this.#sharedOptions.charSpace);\r\n          }\r\n          return sum;\r\n        }, 0);\r\n      } else if (this.#children.every(child => child.#isEmptyGlyph)) {\r\n        // A group whose every glyph is empty has no layout content: it\r\n        // advances nothing, matching its serialized form, which omits it.\r\n        // Deliberately not #isEmptyGroup: this branch also covers\r\n        // fail-flagged groups (vacuously, with error-placeholder off).\r\n        this.#advanceX = 0;\r\n      } else {\r\n        this.#advanceX = this.baseGroupWidth + this.#sharedOptions.charSpace;\r\n      }\r\n\r\n      this.getSvgContent = (x = 0, y = 0, halo = null) => {\r\n        const originX = this.#relativeToParentX + x;\r\n        const originY = this.#relativeToParentY + y;\r\n        const childContents = this.#children.map(child => child.getSvgContent(originX, originY, halo));\r\n\r\n        const hasTaggedContent = childContents.some(c => c.startsWith('<'));\r\n        const hasRawContent = childContents.some(c => !c.startsWith('<'));\r\n\r\n        const content = hasTaggedContent && hasRawContent\r\n          ? childContents.map(c => c.startsWith('<') ? c : `<path d=\"${c}\"/>`).join('')\r\n          : childContents.join('');\r\n\r\n        if (halo) return this.#haloWrap(content, halo, x, y);\r\n        const box = () => BlissElement.#bandHitBox(originX, originY, this.#linkArea);\r\n        return BlissElement.#wrapWithAnchorAndGroup(content, this.#blissObj.options, this.#blissObj.authoredOptions,\r\n          () => this.#linkHit(x, y, box), this.#ownFilters(x, y, box));\r\n      };\r\n\r\n      // A fail-flagged group (group.errorCode) can no longer reach here: the\r\n      // builder's #normalizeFailedWordInvariant drops such groups before\r\n      // construction, so no L1 fail-render override is needed.\r\n    } else {\r\n      if (this.#level === 2) {\r\n        // Character level\r\n\r\n        // codeName at glyph level: the input code that produces this glyph,\r\n        // when the glyph is actually a glyph. Empty string for composites,\r\n        // bare shape primitives, ad-hoc composites, and multi-char text\r\n        // fallback. The presence of glyphCode IS the \"this is a glyph\" signal:\r\n        // the parser only sets it for registered glyphs (B-codes, X-codes,\r\n        // single-char text fallback, define()d 'glyph'-type aliases). The JSON\r\n        // postParse step (bliss-svg-builder.js) normalizes JSON's codeName\r\n        // field back to glyphCode, so glyph-level codeName never reaches\r\n        // construction. For single-char text fallback the parser stores\r\n        // 'XTXT_<char>' as the internal routing key; surface it publicly as\r\n        // 'X<char>'.\r\n        if (typeof this.#blissObj.glyphCode === 'string') {\r\n          const code = this.#blissObj.glyphCode;\r\n          this.#codeName = code.startsWith('XTXT_') ? 'X' + code.slice(5) : code;\r\n        } else {\r\n          this.#codeName = \"\";\r\n        }\r\n\r\n        this.#char = this.#blissObj.char ?? \"\";\r\n        this.#isBlissGlyph = !!this.#blissObj.isBlissGlyph;\r\n        this.#isExternalGlyph = !!this.#blissObj.isExternalGlyph;\r\n\r\n        if (!this.#blissObj.parts) {\r\n          this.#blissObj = { parts: [this.#blissObj] };\r\n        }\r\n\r\n        // A glyph whose parts array is empty (mutation-emptied, or a DSL\r\n        // options-only token like `[color=red]`) is invisible to layout:\r\n        // zero width, zero advance, no output. Serialization omits it, so\r\n        // the live render must not let it occupy a spacing slot.\r\n        this.#isEmptyGlyph = this.#blissObj.parts.length === 0;\r\n\r\n        const warningCountBefore = this.#sharedOptions?.warnings?.length ?? 0;\r\n\r\n        for (const part of this.#blissObj.parts) {\r\n          const child = new BlissElement(part, { parentElement: this, previousElement: this.#children[this.#children.length - 1], level: this.#level + 1, sharedOptions: this.#sharedOptions });\r\n          this.#children.push(child);\r\n        }\r\n\r\n        // A character keeps the spacing data of the code it is made of (the\r\n        // external-letter flag, its letter and its kerning table) only while\r\n        // it draws that one code, moved, styled or carrying indicators. A\r\n        // second base part makes another character, spaced as a Bliss\r\n        // character. Judged on the parts as written, as the word space before\r\n        // a punctuation mark is judged where it is read (pullsInWordSpace), so\r\n        // a part that fails still counts.\r\n        this.#isFused = basePartCount(this.#children) > 1;\r\n        if (this.#isFused) {\r\n          this.#char = \"\";\r\n          this.#isExternalGlyph = false;\r\n        }\r\n\r\n        // If any part failed (unknown code), replace the entire character\r\n        const hasFailedParts = (this.#sharedOptions?.warnings?.length ?? 0) > warningCountBefore;\r\n        if (hasFailedParts) {\r\n          if (this.#sharedOptions?.errorPlaceholder) {\r\n            // Replace all children with a single placeholder character\r\n            this.#children = [];\r\n            const placeholderParts = structuredClone(this.#sharedOptions.errorPlaceholderParts);\r\n            for (const placeholderPart of placeholderParts) {\r\n              const child = new BlissElement(placeholderPart, {\r\n                parentElement: this,\r\n                previousElement: this.#children[this.#children.length - 1],\r\n                level: this.#level + 1,\r\n                sharedOptions: this.#sharedOptions,\r\n              });\r\n              this.#children.push(child);\r\n            }\r\n          } else {\r\n            // Zero-width invisible character\r\n            this.#children = [];\r\n          }\r\n        }\r\n\r\n        // Classify parts into glyph parts and indicator parts (cache for reuse by getters)\r\n        this.#classifiedParts = BlissElement.#classifyParts(this.#children);\r\n        const { glyphParts, indicatorParts, isValidPattern } = this.#classifiedParts;\r\n\r\n        // Position the indicator group. Runs whenever there are indicator parts\r\n        // in a valid pattern, with or without a base: a based stack centers over\r\n        // the base anchor; a baseless stack (every part an indicator) lays out\r\n        // from origin (#positionIndicatorGroup branches on glyphParts.length).\r\n        // Invalid patterns (e.g., B291;B99;H) fall through to default combination.\r\n        // A single-part all-indicator composite (e.g., B98) lays out at origin,\r\n        // unchanged, keeping its baked internal positioning.\r\n        const hasPositionedIndicators = indicatorParts.length > 0 && isValidPattern;\r\n        if (hasPositionedIndicators) {\r\n          this.#positionIndicatorGroup(glyphParts, indicatorParts);\r\n        }\r\n\r\n        // Normalize: shift parts right only if any child extends left of origin (negative x)\r\n        // Skip normalization for characters with indicators above glyph (they have their own positioning)\r\n        if (!hasPositionedIndicators && this.#children.length > 0) {\r\n          const minX = Math.min(...this.#children.map(child => child.#relativeToParentX));\r\n          if (minX < 0) {\r\n            for (const child of this.#children) {\r\n              child.#relativeToParentX -= minX;\r\n            }\r\n          }\r\n        }\r\n\r\n        // A glyph-level `x` is LEADING BLANK owned by this glyph, not a position\r\n        // for it. The glyph still starts where the flow puts it (below); its own\r\n        // content begins `x` further in, and the width getter grows the glyph to\r\n        // match, since at level >= 1 only NEGATIVE child offsets move the left\r\n        // boundary. Deriving the next position from the previous glyph's ink\r\n        // width instead (the rule this replaced) made `x=0` delete the\r\n        // char-space and made `advanceX` disagree with the layout.\r\n        // Applied after the normalization above, so the blank adds to the\r\n        // glyph's own internal layout rather than replacing it.\r\n        const leadingBlank = this.#blissObj.x ?? 0;\r\n        if (leadingBlank !== 0) {\r\n          for (const child of this.#children) {\r\n            child.#relativeToParentX += leadingBlank;\r\n          }\r\n        }\r\n\r\n        if (!this.#previousElement) {\r\n          // The word's first glyph sits at the word's origin. Its leading blank\r\n          // is already inside it (above), so there is nothing to add here.\r\n          this.#relativeToParentX = 0;\r\n        } else {\r\n          // An empty-parts glyph must not re-space its neighbor: its serialized\r\n          // form is absent (or a glyphless options token), so the reparse never\r\n          // applies these identity-based adjustments. The RK/AK option blocks\r\n          // below stay ungated — their serialized markers re-apply on reparse.\r\n          if (this.isExternalGlyph && this.#previousElement.isExternalGlyph && !this.#isEmptyGlyph) {\r\n            this.#previousElement.#advanceX = this.#previousElement.width + this.#externalGlyphSpacing;\r\n          }\r\n\r\n          const kerningKey = this.#kerningKeyAfter(this.#previousElement.kerningRules);\r\n          if (!this.#isEmptyGlyph && !this.isExternalGlyph && !this.#previousElement.isExternalGlyph &&\r\n              this.#previousElement.kerningRules && kerningKey) {\r\n            // Own-key test, not a plain lookup: a kerning table is an object\r\n            // literal, so asking it for an inherited name (constructor,\r\n            // toString) answers with the function, which is not nullish and\r\n            // turns the advance below into NaN for the rest of the layout.\r\n            const rules = this.#previousElement.kerningRules;\r\n            const kerningAdjustment = Object.hasOwn(rules, kerningKey) ? rules[kerningKey] : 0;\r\n            if (kerningAdjustment !== 0) {\r\n              this.#previousElement.#advanceX = this.#previousElement.width + this.#sharedOptions.charSpace + kerningAdjustment;\r\n            }\r\n          }\r\n\r\n          if (typeof this.#blissObj.options?.relativeKerning === \"number\") {\r\n            this.#previousElement.#advanceX += this.#blissObj.options.relativeKerning;\r\n          } else if (typeof this.#blissObj.options?.absoluteKerning === \"number\") {\r\n            this.#previousElement.#advanceX = this.#previousElement.width + this.#blissObj.options.absoluteKerning;\r\n          }\r\n\r\n          // Unconditional: a glyph carrying leading blank still starts where the\r\n          // previous glyph's advance puts it, so `prev.x + prev.advanceX` is the\r\n          // next glyph's origin for every input.\r\n          this.#relativeToParentX = this.#previousElement.#relativeToParentX + this.#previousElement.#advanceX;\r\n        }\r\n\r\n        // `y` is deliberately not symmetric with `x`: `x` runs along the writing\r\n        // direction, where the flow already owns the position, so an authored\r\n        // value has to say something the flow does not. `y` has no flow to\r\n        // negotiate with and stays a plain offset.\r\n        this.#relativeToParentY = this.#blissObj.y ?? 0;\r\n\r\n        if (hasFailedParts && !this.#sharedOptions?.errorPlaceholder) {\r\n          // Invisible failed character takes zero space\r\n          this.#advanceX = 0;\r\n          this.getSvgContent = () => '';\r\n        } else if (this.#isEmptyGlyph) {\r\n          // Empty-parts glyph: no advance (not even charSpace) and no output,\r\n          // so the live render equals the reparse of toString().\r\n          this.#advanceX = 0;\r\n          this.getSvgContent = () => '';\r\n        } else {\r\n          // Dynamic advanceX calculation for space glyphs (TSP, QSP)\r\n          const code = this.#blissObj.parts?.[0]?.codeName;\r\n          if (code && isSpaceGlyph(code)) {\r\n            if (code === 'TSP') {\r\n              this.#advanceX = this.#sharedOptions.wordSpace - this.#sharedOptions.charSpace;\r\n            } else if (code === 'QSP') {\r\n              this.#advanceX = this.#sharedOptions.wordSpace / 2 - this.#sharedOptions.charSpace;\r\n            }\r\n          } else {\r\n            this.#advanceX = this.baseGlyphWidth + this.#sharedOptions.charSpace;\r\n          }\r\n\r\n          this.getSvgContent = (x = 0, y = 0, halo = null) => {\r\n            const originX = this.#relativeToParentX + x;\r\n            const originY = this.#relativeToParentY + y;\r\n            const childContents = this.#children.map(child => child.getSvgContent(originX, originY, halo));\r\n\r\n            const hasTaggedContent = childContents.some(c => c.startsWith('<'));\r\n            const hasRawContent = childContents.some(c => !c.startsWith('<'));\r\n\r\n            const content = hasTaggedContent && hasRawContent\r\n              ? childContents.map(c => c.startsWith('<') ? c : `<path d=\"${c}\"/>`).join('')\r\n              : childContents.join('');\r\n\r\n            if (halo) return this.#haloWrap(content, halo, x, y);\r\n            const box = () => BlissElement.#bandHitBox(originX, originY, this.#linkArea);\r\n            return BlissElement.#wrapWithAnchorAndGroup(content, this.#blissObj.options, this.#blissObj.authoredOptions,\r\n              () => this.#linkHit(x, y, box), this.#ownFilters(x, y, box));\r\n          };\r\n        }\r\n      } else {\r\n        // Part level (level >= 3)\r\n        const elementDefinition = this.#blissObj.codeName?.startsWith('XTXT_')\r\n          ? (() => { const g = createTextFallbackGlyph(this.#blissObj.codeName.slice(5)); g.isShape = true; return g; })()\r\n          : blissElementDefinitions[this.#blissObj.codeName];\r\n        const isPredefinedElement = !!elementDefinition && !!elementDefinition.getPath;\r\n        const isCompositeElement = !!this.#blissObj.parts && this.#blissObj.parts.length > 0;\r\n  \r\n        this.#relativeToParentX = this.#blissObj.x ?? 0;\r\n        this.#relativeToParentY = this.#blissObj.y ?? 0;\r\n\r\n        if (this.#blissObj.errorCode === 'COMPOSITE_AS_PART') {\r\n          // A composed unflagged alias used as a non-leading ;-part (the\r\n          // part-merge operand rule). The part is a composite, so it never\r\n          // reaches the leaf-fail branch below; record the warning and render\r\n          // invisible so the level-2 character fails (placeholder per\r\n          // error-placeholder), mirroring WORD_AS_PART.\r\n          if (!this.#sharedOptions?.warnings) {\r\n            throw new Error(`Unable to create Bliss element: ${this.#blissObj.error || this.#blissObj.codeName || 'unknown'}`);\r\n          }\r\n          this.#sharedOptions.warnings.push({\r\n            code: WARNING_CODES.COMPOSITE_AS_PART,\r\n            message: this.#blissObj.error,\r\n            source: this.#blissObj.codeName || 'unknown',\r\n          });\r\n          this.#leafWidth = 0;\r\n          this.#leafHeight = 0;\r\n          this.getSvgContent = () => '';\r\n        } else if (!isPredefinedElement && !isCompositeElement) {\r\n          // When constructed directly (no builder), throw to preserve existing behaviour\r\n          if (!this.#sharedOptions?.warnings) {\r\n            const failedCode = this.#blissObj.codeName || this.#blissObj.error || 'unknown';\r\n            throw new Error(`Unable to create Bliss element: ${failedCode}`);\r\n          }\r\n\r\n          // What a warning below quotes as its source: the token as the parser\r\n          // read it, or, for a part built another way, its error.\r\n          const written = this.#blissObj.errorSource ?? this.#blissObj.error;\r\n\r\n          if (this.#blissObj.errorCode === WARNING_CODES.WORD_AS_PART) {\r\n            this.#sharedOptions.warnings.push({\r\n              code: WARNING_CODES.WORD_AS_PART,\r\n              message: this.#blissObj.error,\r\n              source: this.#blissObj.codeName || 'unknown',\r\n            });\r\n          } else if (this.#blissObj.errorCode === WARNING_CODES.MALFORMED_COORDINATES) {\r\n            // A valid code with a malformed coordinate suffix: the parser tagged\r\n            // it (parsePartString) so the warning names the coordinate, not the\r\n            // code. The token is still dropped (rendered invisible below).\r\n            this.#sharedOptions.warnings.push({\r\n              code: WARNING_CODES.MALFORMED_COORDINATES,\r\n              message: this.#blissObj.error,\r\n              source: written,\r\n            });\r\n          } else {\r\n            const failedCode = this.#blissObj.codeName || written || 'unknown';\r\n            this.#sharedOptions.warnings.push({\r\n              code: WARNING_CODES.UNKNOWN_CODE,\r\n              message: `Unknown or invalid code: \"${failedCode}\"`,\r\n              source: failedCode,\r\n            });\r\n          }\r\n\r\n          // Render as zero-width invisible. Character level (level 2) handles\r\n          // placeholder display for the entire character when any part fails.\r\n          this.#leafWidth = 0;\r\n          this.#leafHeight = 0;\r\n          this.getSvgContent = () => '';\r\n        } else if (isPredefinedElement) {\r\n          this.#handlePredefinedElement(elementDefinition);\r\n\r\n          // For predefined (leaf) elements with explicit coordinates, use them directly\r\n          if (this.#blissObj.y !== undefined) {\r\n            this.#relativeToParentY = this.#blissObj.y;\r\n          }\r\n        } else if (isCompositeElement) {\r\n          // Surface 'XTXT_<chars>' (internal text-fallback routing key) as\r\n          // 'X<chars>' publicly. Internal lookup uses #blissObj.codeName.\r\n          const raw = this.#blissObj.codeName || \"\";\r\n          this.#codeName = raw.startsWith('XTXT_') ? 'X' + raw.slice(5) : raw;\r\n          this.#handleCompositeElement(this.#blissObj.parts);\r\n        }\r\n      }\r\n    }\r\n  }\r\n\r\n  get parentElement() {\r\n    return this.#parentElement;\r\n  }\r\n\r\n  get previousElement() {\r\n    return this.#previousElement;\r\n  }\r\n\r\n  get advanceX() {\r\n    return this.#advanceX || 0;\r\n  }\r\n\r\n  get children() {\r\n    return this.#children;\r\n  }\r\n\r\n  get codeName() {\r\n    return this.#codeName || \"\";\r\n  }\r\n\r\n  get anchorOffset() {\r\n    return {\r\n      x: this.#anchorOffsetX || 0,\r\n      y: this.#anchorOffsetY || 0\r\n    }\r\n  }\r\n\r\n  get width() {\r\n    if (this.#leafWidth !== undefined) return this.#leafWidth;\r\n    if (!this.#children || this.#children.length === 0) return 0;\r\n\r\n    // Empty-parts glyphs and content-empty groups contribute no extent\r\n    // (they render nothing and serialization omits them).\r\n    const layoutChildren = this.#level === 0\r\n      ? this.#children.filter(child => !child.#isEmptyGroup)\r\n      : this.#level === 1\r\n        ? this.#children.filter(child => !child.#isEmptyGlyph)\r\n        : this.#children;\r\n    if (layoutChildren.length === 0) return 0;\r\n\r\n    // A character spans its parts' ink, not their frames: a compound\r\n    // indicator whose parts start away from its own origin has a frame that\r\n    // reaches past its ink, before it or after it, and the spacing that reads\r\n    // this width (absolute kerning, a kerning rule, the gap between letters)\r\n    // would count that blank.\r\n    const minRelativeX = this.#level === 2\r\n      ? Math.min(...layoutChildren.map(child => child.#relativeToParentX + child.#inkStartX))\r\n      : Math.min(...layoutChildren.map(child => child.#relativeToParentX));\r\n\r\n    let maxRelativeXPlusWidth;\r\n    if (this.#level === 1) {\r\n      maxRelativeXPlusWidth = Math.max(...layoutChildren.map(child =>\r\n        child.#relativeToParentX + child.rightExtendedGlyphWidth));\r\n    } else if (this.#level === 2) {\r\n      maxRelativeXPlusWidth = Math.max(...layoutChildren.map(child =>\r\n        child.#relativeToParentX + child.#inkEndX));\r\n    } else {\r\n      // A composition that ends in nothing but spaces ends where a word after\r\n      // them would start: at the end of their advance, which lies left of\r\n      // their own x when the word space is narrower than the character space.\r\n      // Their own frame does not count, since a space draws nothing. A space\r\n      // that keeps another part (an error placeholder) ends at that part's\r\n      // ink, as every word does. Only the root's words can hold spaces.\r\n      const lastChild = layoutChildren[layoutChildren.length - 1];\r\n      const trailingSpace = lastChild.#holdsOnlySpaces ? lastChild : null;\r\n      maxRelativeXPlusWidth = Math.max(...layoutChildren.map(child =>\r\n        child.#relativeToParentX + (child === trailingSpace ? child.#advanceX : child.width)));\r\n    }\r\n\r\n    let width;\r\n    if (this.#level === 0) {\r\n      // Never below 0: a composition of nothing but spaces whose advance is\r\n      // negative ends before it starts.\r\n      width = Math.max(0, maxRelativeXPlusWidth - minRelativeX + this.#childStartOffset);\r\n    } else {\r\n      // When minRelativeX > 0, the left boundary is still the element's origin (0),\r\n      // not the leftmost child. Only subtract negative offsets (e.g., indicator overhang).\r\n      width = maxRelativeXPlusWidth - Math.min(0, minRelativeX);\r\n    }\r\n\r\n    return width;\r\n  }\r\n\r\n  get rightExtendedGlyphWidth() {\r\n    if (this.#level !== 2) throw new Error('rightExtendedGlyphWidth can only be called on glyph elements (level 2)');\r\n\r\n    const parts = this.#children;\r\n    if (parts.length === 0) return 0;\r\n\r\n    // Use cached classification (computed once in constructor)\r\n    const { glyphParts } = this.#classifiedParts;\r\n\r\n    // If no glyph parts (all indicators), use all parts for spacing\r\n    const spacingParts = glyphParts.length > 0 ? glyphParts : parts;\r\n\r\n    const minRelativeX = Math.min(...spacingParts.map(part => part.#relativeToParentX));\r\n    // The right edge is where the parts' ink stops: a compound indicator whose\r\n    // parts reach left of its own origin reports the span of its parts as its\r\n    // width, which added to its position runs past its ink.\r\n    const maxRelativeXPlusWidth = Math.max(...parts.map(part => part.#relativeToParentX + part.#inkEndX));\r\n    // When minRelativeX > 0, the left boundary is still the element's origin (0).\r\n    // Only subtract negative offsets (e.g., indicator overhang).\r\n    const rightExtendedGlyphWidth = maxRelativeXPlusWidth - Math.min(0, minRelativeX);\r\n\r\n    return rightExtendedGlyphWidth;\r\n  }\r\n\r\n  get baseGlyphWidth() {\r\n    if (this.#level !== 2) throw new Error('baseGlyphWidth can only be called on glyph elements (level 2)');\r\n\r\n    const { left, right } = this.#baseSpan;\r\n    return right - left;\r\n  }\r\n\r\n  /**\r\n   * Where the base glyph sits in this character's own frame (level 2): the\r\n   * span baseGlyphWidth measures and a link's area is built on. Indicators\r\n   * never count, as they never count toward spacing.\r\n   */\r\n  get #baseSpan() {\r\n    const parts = this.#children;\r\n    if (parts.length === 0) return { left: 0, right: 0 };\r\n\r\n    // Use cached classification (computed once in constructor)\r\n    const { glyphParts } = this.#classifiedParts;\r\n\r\n    // If no glyph parts (all indicators), use all parts for width\r\n    const spacingParts = glyphParts.length > 0 ? glyphParts : parts;\r\n\r\n    const minRelativeX = Math.min(...spacingParts.map(part => part.#relativeToParentX));\r\n    const maxRelativeXPlusWidth = Math.max(...spacingParts.map(part => part.#relativeToParentX + part.width));\r\n    // When minRelativeX > 0, the left boundary is still the element's origin (0).\r\n    // Only a negative offset (e.g., indicator overhang) moves it.\r\n    return { left: Math.min(0, minRelativeX), right: maxRelativeXPlusWidth };\r\n  }\r\n\r\n  get baseGroupWidth() {\r\n    if (this.#level !== 1) throw new Error('baseGroupWidth can only be called on group elements (level 1)');\r\n\r\n    const group = this;\r\n    // Empty-parts glyphs contribute no extent (they render nothing and\r\n    // serialization omits them).\r\n    const glyphs = group.#children.filter(glyph => !glyph.#isEmptyGlyph);\r\n    if (glyphs.length === 0) return 0;\r\n\r\n    const firstGlyph = glyphs[0];\r\n    const lastGlyph = glyphs[glyphs.length - 1];\r\n    const lastGlyphBaseWidth = lastGlyph.baseGlyphWidth;\r\n    const baseGroupWidth = lastGlyph.#relativeToParentX + lastGlyphBaseWidth - firstGlyph.#relativeToParentX;\r\n\r\n    return baseGroupWidth;\r\n  }\r\n\r\n  get baseWidth() {\r\n    if (this.#level === 0) {\r\n      // Content-empty groups contribute no extent here either: centering\r\n      // reads baseWidth, so a leaked trailing-empty position term would\r\n      // shift the viewBox and clip ink (mirrors baseGroupWidth's\r\n      // empty-glyph exclusion one level down).\r\n      const groups = this.#children.filter(group => !group.#isEmptyGroup);\r\n      if (groups.length === 0) return 0;\r\n\r\n      const firstGroup = groups[0];\r\n      const lastGroup = groups[groups.length - 1];\r\n      if (lastGroup.#holdsOnlySpaces) {\r\n        // A final space ends the box at the end of its advance, as in `width`,\r\n        // and never below 0.\r\n        return Math.max(0, lastGroup.#relativeToParentX + lastGroup.#advanceX - firstGroup.#relativeToParentX);\r\n      }\r\n      const lastGroupBaseWidth = lastGroup.baseGroupWidth;\r\n      const baseWidth = lastGroup.#relativeToParentX + lastGroupBaseWidth - firstGroup.#relativeToParentX;\r\n      return baseWidth;\r\n    }\r\n\r\n    if (this.#level === 1) return this.baseGroupWidth;\r\n    if (this.#level === 2) return this.baseGlyphWidth;\r\n\r\n    return this.width;\r\n  }\r\n\r\n  get height() {\r\n    if (this.#leafHeight !== undefined) return this.#leafHeight;\r\n    if (this.#level === 2) {\r\n      return BAND_HEIGHT;\r\n    }\r\n    if (this.#children && this.#children.length > 0) {\r\n      return Math.max(...this.#children.map(child => child.#relativeToParentY + child.height));\r\n    }\r\n    return 0;\r\n  }\r\n\r\n  get baseX() {\r\n    if (this.#leafX !== undefined) return this.#leafX;\r\n    if (!this.#children || this.#children.length === 0) return 0;\r\n\r\n    return this.#relativeToParentX;\r\n  }\r\n\r\n  get x() {\r\n    if (this.#leafX !== undefined) return this.#leafX;\r\n    if (!this.#children || this.#children.length === 0) return 0;\r\n\r\n    const x = Math.min(\r\n      this.#relativeToParentX,\r\n      ...this.#children.map(child => this.#relativeToParentX + child.x)\r\n    );\r\n\r\n    return x;\r\n  }\r\n\r\n  get y() {\r\n    if (this.#level <= 1) return 0;\r\n    if (this.#leafY !== undefined) return this.#leafY;\r\n    if (!this.#children || this.#children.length === 0) return 0;\r\n\r\n    return Math.min(\r\n      this.#relativeToParentY,\r\n      ...this.#children.map(child => this.#relativeToParentY + child.y)\r\n    );\r\n  }\r\n\r\n  get isCharacter() {\r\n    return this.#isCharacter;\r\n  }\r\n\r\n  get char() {\r\n    return this.#char ?? \"\";\r\n  }\r\n\r\n  get kerningRules() {\r\n    return this.#isFused ? {} : (this.#blissObj.kerningRules || {});\r\n  }\r\n\r\n  // The code this character is looked up by in the previous character's\r\n  // kerning table: its own code where the table lists it, else the built-in\r\n  // code its base part is made of, read through a custom name that draws one\r\n  // code, so a digit kerns after a digit however it is written or named. A\r\n  // character fused from two base parts, here or inside the name that draws\r\n  // it, is another character and is kerned by nothing.\r\n  #kerningKeyAfter(rules) {\r\n    if (this.#isFused) return \"\";\r\n    if (this.codeName && Object.hasOwn(rules, this.codeName)) return this.codeName;\r\n    let part = this.#children[0];\r\n    while (part && !builtInCodes.has(part.codeName) && part.#children.length > 0) {\r\n      if (basePartCount(part.#children) > 1) return \"\";\r\n      part = part.#children[0];\r\n    }\r\n    return part?.codeName ?? \"\";\r\n  }\r\n\r\n  get isIndicator() {\r\n    return this.#blissObj.isIndicator || false;\r\n  }\r\n\r\n  /**\r\n   * Classifies an indicator part for introspection.\r\n   * `indicatorLevel` separates a word-level overlay indicator (tagged\r\n   * `_indicatorOrigin: 'word'` when merged onto the head at decode) from a\r\n   * character-level one; `indicatorKind` reads the definition's\r\n   * `semanticIndicator` flag via the shared `classifyIndicatorKind` (so the\r\n   * snapshot and the handle classify identically). Both null for a\r\n   * non-indicator and for an indicator whose definition cannot be resolved\r\n   * (never throws): the `code` gate maps a non-indicator to null, and\r\n   * `classifyIndicatorKind(null)` is null, so both fall through one return.\r\n   * A composite indicator's internal sub-parts (level >= 3, `isIndicator`\r\n   * inherited) also classify here, mirroring the `isIndicator` field.\r\n   * @returns {{ indicatorLevel: ('word'|'character'|null), indicatorKind: ('semantic'|'grammatical'|null) }}\r\n   */\r\n  #classifyIndicator() {\r\n    const code = this.isIndicator ? this.#blissObj.codeName : null;\r\n    const indicatorKind = classifyIndicatorKind(code, blissElementDefinitions);\r\n    if (indicatorKind === null) return { indicatorLevel: null, indicatorKind: null };\r\n    return {\r\n      indicatorLevel: this.#blissObj._indicatorOrigin === 'word' ? 'word' : 'character',\r\n      indicatorKind,\r\n    };\r\n  }\r\n\r\n  get isShape() {\r\n    return this.#isShape;\r\n  }\r\n\r\n  get isBlissGlyph() {\r\n    return this.#isBlissGlyph;\r\n  }\r\n\r\n  get isExternalGlyph() {\r\n    return this.#isExternalGlyph;\r\n  }\r\n\r\n  get isRoot() {\r\n    return this.#level === 0;\r\n  }\r\n\r\n  get isGroup() {\r\n    return this.#level === 1;\r\n  }\r\n\r\n  get isGlyph() {\r\n    return this.#level === 2;\r\n  }\r\n\r\n  get isPart() {\r\n    return this.#level >= 3;\r\n  }\r\n\r\n  get key() {\r\n    return this.#key;\r\n  }\r\n\r\n  /**\r\n   * Returns a frozen snapshot of this element's data.\r\n   * Snapshots are plain objects safe to expose publicly — no live references.\r\n   *\r\n   * @param {number} [parentOffsetX=0] - Accumulated x offset from ancestors\r\n   * @param {number} [parentOffsetY=0] - Accumulated y offset from ancestors\r\n   * @param {number} [index=0] - Index within parent's children\r\n   * @returns {Object} Frozen ElementSnapshot\r\n   */\r\n  snapshot(parentOffsetX = 0, parentOffsetY = 0, index = 0) {\r\n    const absX = parentOffsetX + this.#relativeToParentX;\r\n    const absY = parentOffsetY + this.#relativeToParentY;\r\n\r\n    let childSnapshots = (this.#children || []).map((child, i) =>\r\n      child.snapshot(absX, absY, i)\r\n    );\r\n\r\n    // For group elements (level 1): resolve isHeadGlyph so every word has exactly one.\r\n    // The parser stamps only an explicit `^`/designation; an unmarked word's head\r\n    // is resolved here at query time via the shared exclusion scan (headScanCode),\r\n    // so it stays correct after a structural mutation reorders the glyphs. A word\r\n    // drawn with `;;` codes arrives marked: the render marks the character it\r\n    // merged them onto, whose merged parts would read differently here.\r\n    if (this.#level === 1 && childSnapshots.length > 0) {\r\n      const marked = childSnapshots.findIndex(c => c.isHeadGlyph);\r\n      if (marked === -1) {\r\n        // Empty-parts glyphs cannot head a word (serialization omits them and\r\n        // the overlay resolver skips them); resolve among the others. A word\r\n        // of only empty glyphs has no head at all.\r\n        const contentIndexes = this.#children.flatMap((el, i) => (el.#isEmptyGlyph ? [] : [i]));\r\n        if (contentIndexes.length > 0) {\r\n          const headIndex = contentIndexes[resolveHeadIndex(\r\n            contentIndexes.map(i => headScanCode(\r\n              childSnapshots[i].codeName,\r\n              childSnapshots[i].children?.length ?? 0,\r\n              childSnapshots[i].children?.[0]?.codeName\r\n            ))\r\n          )];\r\n          childSnapshots[headIndex] = Object.freeze({ ...childSnapshots[headIndex], isHeadGlyph: true });\r\n        }\r\n      }\r\n    }\r\n\r\n    const children = Object.freeze(childSnapshots);\r\n\r\n    const { indicatorLevel, indicatorKind } = this.#classifyIndicator();\r\n\r\n    return Object.freeze({\r\n      key: this.#key,\r\n      codeName: this.#codeName || '',\r\n      char: this.#char ?? '',\r\n      x: absX,\r\n      y: absY,\r\n      offsetX: this.#relativeToParentX,\r\n      offsetY: this.#relativeToParentY,\r\n      width: this.width,\r\n      height: this.height,\r\n      advanceX: this.#advanceX || 0,\r\n      baseWidth: this.baseWidth,\r\n      level: this.#level,\r\n      isRoot: this.#level === 0,\r\n      isGroup: this.#level === 1,\r\n      isGlyph: this.#level === 2,\r\n      isPart: this.#level >= 3,\r\n      bounds: Object.freeze(this.#calculateBounds(parentOffsetX, parentOffsetY)),\r\n      isIndicator: this.isIndicator,\r\n      indicatorLevel,\r\n      indicatorKind,\r\n      isShape: !!this.#isShape,\r\n      isBlissGlyph: !!this.#isBlissGlyph,\r\n      isExternalGlyph: !!this.#isExternalGlyph,\r\n      isHeadGlyph: !!this.#blissObj.isHeadGlyph,\r\n      isSpaceGroup: !!this.#isSpaceGroup,\r\n      index,\r\n      parentKey: this.#parentElement ? this.#parentElement.#key : null,\r\n      children\r\n    });\r\n  }\r\n\r\n  get effectiveBounds() {\r\n    // Accumulate offsets from all ancestors\r\n    let offsetX = 0;\r\n    let offsetY = 0;\r\n    let current = this.#parentElement;\r\n    while (current) {\r\n      offsetX += current.#relativeToParentX;\r\n      offsetY += current.#relativeToParentY;\r\n      current = current.#parentElement;\r\n    }\r\n    return this.#calculateBounds(offsetX, offsetY);\r\n  }\r\n\r\n  #calculateBounds(offsetX, offsetY) {\r\n    const absX = offsetX + this.#relativeToParentX;\r\n    const absY = offsetY + this.#relativeToParentY;\r\n\r\n    if (this.#leafHeight !== undefined && this.#leafWidth !== undefined) {\r\n      const leafY = this.#leafY || 0;\r\n      const leafX = this.#leafX || 0;\r\n      const minX = absX + leafX;\r\n      const maxX = absX + leafX + this.#leafWidth;\r\n      const minY = absY + leafY;\r\n      const maxY = absY + leafY + this.#leafHeight;\r\n      return {\r\n        minX,\r\n        maxX,\r\n        minY,\r\n        maxY,\r\n        width: maxX - minX,\r\n        height: maxY - minY\r\n      };\r\n    }\r\n\r\n    if (!this.#children || this.#children.length === 0) {\r\n      return {\r\n        minX: absX,\r\n        maxX: absX,\r\n        minY: absY,\r\n        maxY: absY,\r\n        width: 0,\r\n        height: 0\r\n      };\r\n    }\r\n\r\n    // An element left with no layout children collapses to a point at its\r\n    // origin instead of Math.min/max over nothing (Infinity).\r\n    const layoutChildren = this.#layoutChildren;\r\n    if (layoutChildren.length === 0) {\r\n      return {\r\n        minX: absX,\r\n        maxX: absX,\r\n        minY: absY,\r\n        maxY: absY,\r\n        width: 0,\r\n        height: 0\r\n      };\r\n    }\r\n\r\n    const childBounds = layoutChildren.map(child =>\r\n      child.#calculateBounds(absX, absY)\r\n    );\r\n\r\n    const minX = Math.min(...childBounds.map(b => b.minX));\r\n    const maxX = Math.max(...childBounds.map(b => b.maxX));\r\n    const minY = Math.min(...childBounds.map(b => b.minY));\r\n    const maxY = Math.max(...childBounds.map(b => b.maxY));\r\n\r\n    return {\r\n      minX,\r\n      maxX,\r\n      minY,\r\n      maxY,\r\n      width: maxX - minX,\r\n      height: maxY - minY\r\n    };\r\n  }\r\n\r\n  /**\r\n   * The children an element's bounds are made of. Content-empty groups and\r\n   * empty-parts glyphs are excluded like they are from the width getter. A\r\n   * group of nothing but spaces is excluded here too, though the width getter\r\n   * keeps it: it separates words and draws nothing, and the point at its own\r\n   * origin would hold an automatic crop open on whichever edge it sits. A ZSA\r\n   * draws nothing either, but it is content placed to hold a crop open, so it\r\n   * counts.\r\n   */\r\n  get #layoutChildren() {\r\n    if (this.#level === 0) return this.#children.filter(child => !child.#isEmptyGroup && !child.#holdsOnlySpaces);\r\n    if (this.#level === 1) return this.#children.filter(child => !child.#isEmptyGlyph);\r\n    return this.#children;\r\n  }\r\n\r\n  /**\r\n   * What this element draws, as { minX, minY, maxX, maxY }, from the origin of\r\n   * the frame it sits in as #calculateBounds takes it: the same boxes, each\r\n   * leaf's widened by half the width its lines are drawn at inside the group\r\n   * `frame` describes (#lineWidth), so the box holds the lines and not only\r\n   * their geometry. Exact for round caps and joins, every line the library\r\n   * draws; short of a dot's own width, which a filter region covers through\r\n   * the viewBox, and of a corner or an end a key draws sharper, which the\r\n   * filters carry as an outset (#lineOverhang). Undefined where the element\r\n   * has no layout children, as it draws nothing.\r\n   */\r\n  #drawnBox(offsetX, offsetY, frame = {}) {\r\n    if (this.#isLeaf) {\r\n      return grownBy(this.#calculateBounds(offsetX, offsetY), this.#lineWidth(frame) / 2);\r\n    }\r\n    const absX = offsetX + this.#relativeToParentX;\r\n    const absY = offsetY + this.#relativeToParentY;\r\n    const boxes = this.#layoutChildren.map(child => child.#drawnBox(absX, absY, frame)).filter(Boolean);\r\n    return boxes.length > 0 ? unionOf(boxes) : undefined;\r\n  }\r\n\r\n  /**\r\n   * The width this element's lines are drawn at inside a group written with\r\n   * `frame.width`: the nearest width an element states itself, from this one\r\n   * up to `frame.top` (the element the group is drawn for: the group's width\r\n   * holds its own, or a key written on the group replaces it), or the root,\r\n   * whose option the content group writes; widened by\r\n   * `frame.extra`, as an ink area widens every width stated inside it. Else\r\n   * the group's, and where no group is given, the width the options give\r\n   * this element. An element's own width is written on its own group, so it\r\n   * beats whatever the group around it writes, an author's key included.\r\n   */\r\n  #lineWidth({ top, width, extra = 0 }) {\r\n    for (let element = this; element && element !== top && element.#level > 0; element = element.#parentElement) {\r\n      const own = element.#blissObj.options?.strokeWidth;\r\n      if (own !== undefined) return own + extra;\r\n    }\r\n    return width ?? this.#getInheritedOption('strokeWidth') ?? DEFAULT_STROKE_WIDTH;\r\n  }\r\n\r\n  /** Whether this element draws lines of its own, as a shape does, rather than holding elements that do. */\r\n  get #isLeaf() {\r\n    return this.#leafHeight !== undefined && this.#leafWidth !== undefined;\r\n  }\r\n\r\n  /**\r\n   * How far past its drawn box (#drawnBox) this element's lines may draw\r\n   * inside the group `frame` describes, where a key lets a corner or an end\r\n   * reach further than the half width the box holds: a join drawn as neither\r\n   * round nor bevel may be a miter, its tip up to the miter limit's half\r\n   * widths from the corner, and a cap drawn as neither round nor butt is\r\n   * square, its corners √2 half widths from the end. The nearest join and cap\r\n   * written around the lines decide (#lineGroups), as a renderer inherits\r\n   * them; a word it cannot read falls back to the initial miter or to one\r\n   * written further out, so it counts as neither safe word. The limit is the\r\n   * nearest that reads as one (writtenMiterLimit), as a renderer ignores any\r\n   * other, else the initial 4. Carried as an outset, as an effect's reach is,\r\n   * so the box keeps what is surely drawn, the thin-element shape judges\r\n   * that, and a huge limit grows a region past the picture no further than\r\n   * an absurd effect does. 0 for an element whose lines are its children's.\r\n   */\r\n  #lineOverhang(frame) {\r\n    if (!this.#isLeaf) return 0;\r\n    const groups = this.#lineGroups(frame);\r\n    const nearest = (name) => groups.find(group => Object.hasOwn(group, name))?.[name];\r\n    const limit = groups.map(group => writtenMiterLimit(group['stroke-miterlimit'])).find(read => read !== undefined) ?? INITIAL_MITER_LIMIT;\r\n    const join = drawnAs(nearest('stroke-linejoin'), HALF_WIDTH_JOINS) ? 1 : limit;\r\n    const cap = drawnAs(nearest('stroke-linecap'), HALF_WIDTH_CAPS) ? 1 : Math.SQRT2;\r\n    return (Math.max(join, cap) - 1) * this.#lineWidth(frame) / 2;\r\n  }\r\n\r\n  /**\r\n   * The attributes of the groups this element's lines are drawn in, as\r\n   * { name: value }, nearest first: each element's own group, from this one\r\n   * up to its word, as the lines inherit them, except in a copy of the\r\n   * lines (`frame.copy`, an ink area's), whose elements write none of\r\n   * theirs; then the groups the frame holds the lines in (`frame.groups`),\r\n   * the content group's and the root's last.\r\n   */\r\n  #lineGroups({ copy = false, groups = [] }) {\r\n    const own = [];\r\n    for (let element = this; !copy && element && element.#level > 0; element = element.#parentElement) {\r\n      own.push(Object.fromEntries(BlissElement.#separateAnchorAndGroupOptions(element.#blissObj.options, element.#blissObj.authoredOptions).groupEntries));\r\n    }\r\n    return [...own, ...groups];\r\n  }\r\n\r\n  /**\r\n   * The group the lines sit in as #lineWidth and #lineGroups read it: the\r\n   * content group, with the width it is drawn at and the groups its lines\r\n   * inherit a join, a cap and a miter limit from, itself and the root. A tree\r\n   * rendered outside a picture has none, and its lines are sized by the\r\n   * options and drawn round.\r\n   */\r\n  get #contentFrame() {\r\n    return {\r\n      width: this.#sharedOptions.contentStrokeWidth?.(),\r\n      groups: this.#sharedOptions.contentGroups?.() ?? [],\r\n    };\r\n  }\r\n\r\n  /**\r\n   * How far past its drawn box (#drawnBox) what this element holds draws,\r\n   * inside the group `frame` describes: a filter on a child carries the\r\n   * child's ink its reach past the child, past what the filters inside the\r\n   * child already carry it, so the reaches along a chain add up, and a line\r\n   * reaches past the box as far as its corners and ends do (#lineOverhang);\r\n   * 0 where neither reaches further.\r\n   */\r\n  #filterOutset(frame) {\r\n    return Math.max(this.#lineOverhang(frame), ...this.#layoutChildren.map(child => filterReach(\r\n      BlissElement.#separateAnchorAndGroupOptions(child.#blissObj.options, child.#blissObj.authoredOptions).groupEntries,\r\n    ) + child.#filterOutset(frame)));\r\n  }\r\n\r\n  /**\r\n   * translateFilters for this element's own attributes: each <filter> covers\r\n   * the picture, what this element draws and how far the filters inside it\r\n   * carry that (#filterOutset), and where its link answers a click (`box()`\r\n   * as #linkHit takes it, #linkBox), and a thin element gets the shape that\r\n   * keeps it drawn, measured in the frame at (x, y), as getSvgContent takes\r\n   * it. The picture's numbering is the one the builder shares while it\r\n   * renders; outside a render nothing is translated.\r\n   */\r\n  #ownFilters(x, y, box) {\r\n    return (entries, linked) => translateFilters(entries, () => ({\r\n      drawn: this.#drawnBox(x, y, this.#contentFrame),\r\n      geometry: this.#calculateBounds(x, y),\r\n      hit: linked ? this.#linkBox(x, y, box) : undefined,\r\n      outset: this.#filterOutset(this.#contentFrame),\r\n    }), this.#sharedOptions.filters);\r\n  }\r\n\r\n  toString() {\r\n    const obj = this.toJSON();\r\n\r\n    function traverse(obj, level = 1) {\r\n      if (!obj.elements) {\r\n          let str =  obj.codeName;\r\n          if (obj.x !== 0 || obj.y !== 0) {\r\n            str = `${str}:${obj.x},${obj.y}`;\r\n          }\r\n          return str;\r\n      }\r\n      \r\n      const delimiterMap = {\r\n          1: '//',\r\n          2: '/',\r\n          3: ';',\r\n      };\r\n\r\n      const results = obj.elements.map(subObj => traverse(subObj, level + 1)).join(delimiterMap[level]);\r\n  \r\n      return results;\r\n    }\r\n\r\n    return traverse(obj);\r\n  }\r\n\r\n  toJSON() {\r\n    let obj = {};\r\n\r\n    // B-code glyphs with a known code are emitted as leaf nodes (normalized)\r\n    // Shapes, external glyphs, and other named elements are also leaves\r\n    // Only unnamed composites (no codeName) recurse into children\r\n    if (this.#codeName) {\r\n        const element = {};\r\n        element.codeName = this.codeName;\r\n        element.width = this.width;\r\n        element.x = this.#relativeToParentX;\r\n        element.y = this.#relativeToParentY;\r\n        obj = element;\r\n    } else if (this.#children) {\r\n      obj.elements = []\r\n      for (const child of this.#children) {\r\n        obj.elements.push(child.toJSON());\r\n      }\r\n    }\r\n\r\n    return obj;\r\n  }\r\n\r\n\r\n  #handlePredefinedElement(definition) {\r\n    if (typeof definition?.getPath !== 'function') throw new Error('An element is only predefined if has a proper getPath function.');\r\n\r\n    // Surface 'XTXT_<chars>' (internal text-fallback routing key) as\r\n    // 'X<chars>' publicly. Internal lookup uses #blissObj.codeName.\r\n    const raw = this.#blissObj.codeName;\r\n    this.#codeName = (typeof raw === 'string' && raw.startsWith('XTXT_'))\r\n      ? 'X' + raw.slice(5)\r\n      : raw;\r\n    this.#extraPathOptions = definition.extraPathOptions || {}; //default: empty object\r\n    this.#isCharacter = !!definition.isCharacter;               //default: false\r\n    this.#isShape = !!definition.isShape;                      //default: false\r\n    this.#leafWidth = definition.width;\r\n    this.#leafHeight = definition.height;\r\n    this.#leafX = definition.x;\r\n    this.#leafY = definition.y;\r\n    \r\n    this.getSvgContent = (x = 0, y = 0, halo = null) => {\r\n      // Build path options with inheritance: extraPathOptions < inherited < element-level\r\n      // Use #getInheritedOption for options which already handle the inheritance chain\r\n      const inheritedColor = this.#getInheritedOption('color');\r\n      const inheritedStrokeWidth = this.#getInheritedOption('strokeWidth');\r\n      const inheritedDotExtraWidth = this.#getInheritedOption('dotExtraWidth');\r\n      const inheritedSdotExtraWidth = this.#getInheritedOption('sdotExtraWidth');\r\n      const inheritedDotWidth = this.#getInheritedOption('dotWidth');\r\n      const inheritedSdotWidth = this.#getInheritedOption('sdotWidth');\r\n\r\n      // Per-family dot sizing. Absolute (dot-width/sdot-width) beats relative\r\n      // (dot-extra-width/sdot-extra-width). DOT/COMMA take dot-extra-width\r\n      // as-is; SDOT follows as half by default (the bulk knob preserves the\r\n      // DOT:SDOT half-relationship), but its own sdot-* options override that.\r\n      // Non-dot shapes get no dot knob (they ignore it).\r\n      const dotFamily = definition.dotFamily;\r\n      let dotPathOpts = {};\r\n      if (dotFamily === 'dot') {\r\n        if (inheritedDotWidth !== undefined) dotPathOpts = { dotWidth: inheritedDotWidth };\r\n        else if (inheritedDotExtraWidth !== undefined) dotPathOpts = { extraDotWidth: inheritedDotExtraWidth };\r\n      } else if (dotFamily === 'sdot') {\r\n        if (inheritedSdotWidth !== undefined) dotPathOpts = { dotWidth: inheritedSdotWidth };\r\n        else if (inheritedSdotExtraWidth !== undefined) dotPathOpts = { extraDotWidth: inheritedSdotExtraWidth };\r\n        else if (inheritedDotExtraWidth !== undefined) dotPathOpts = { extraDotWidth: inheritedDotExtraWidth / 2 };\r\n      }\r\n\r\n      const pathOptions = {\r\n        ...this.#extraPathOptions,\r\n        ...(inheritedColor !== undefined && { color: inheritedColor }),\r\n        ...(inheritedStrokeWidth !== undefined && { baseStrokeWidth: inheritedStrokeWidth }),\r\n        ...dotPathOpts,\r\n        // An ink area draws the lines in its own paint, the widths a shape\r\n        // states itself widened by the outline (#inkArea).\r\n        ...(halo && { color: halo.paint, outline: halo.outline }),\r\n      };\r\n      const pathData = definition.getPath(\r\n        this.#relativeToParentX + x,\r\n        this.#relativeToParentY + y,\r\n        pathOptions\r\n      );\r\n\r\n      if (halo) return this.#haloWrap(pathData, halo, x, y);\r\n      const box = () => BlissElement.#inkHitBox(this.#calculateBounds(x, y), this.#areaPadding(BlissElement.#LINK_AREAS));\r\n      return BlissElement.#wrapWithAnchorAndGroup(pathData, this.#blissObj.options, this.#blissObj.authoredOptions,\r\n        () => this.#linkHit(x, y, box), this.#ownFilters(x, y, box));\r\n    };\r\n  }\r\n\r\n  #handleCompositeElement(parts) {\r\n    if (this.#level > MAX_RECURSION_DEPTH) throw new Error('Maximum element nesting depth exceeded');\r\n    this.#children = [];\r\n\r\n    for (const part of parts) {\r\n      const child = new BlissElement(part, {\r\n        parentElement: this,\r\n        previousElement: this.#children[this.#children.length - 1],\r\n        level: this.#level + 1,\r\n        sharedOptions: this.#sharedOptions,\r\n      });\r\n      this.#children.push(child);\r\n    }\r\n\r\n    // A compound indicator whose sub-parts carry no baked positions must lay\r\n    // them out as a baseless stack (left-to-right from origin), the same as\r\n    // #positionIndicatorGroup does for a baseless stack at the character level.\r\n    // Without this, an unpositioned all-indicator composite (e.g. a user-defined\r\n    // COMBO_IND = B86;B97) collapses its sub-parts to x=0 when nested as a glyph\r\n    // part, so a sibling stacked indicator overlaps it and the composite's width\r\n    // (derived from its children) under-reports. Built-in compound indicators\r\n    // bake explicit x on their parts (B98 = B97;B99:3,0), so the x === undefined\r\n    // guard leaves them untouched.\r\n    // (#handleCompositeElement is only reached for a non-empty parts list, so\r\n    // children is non-empty here and .every is never vacuous.)\r\n    if (this.#children.every(c => c.isIndicator)) {\r\n      let currentX = 0;\r\n      for (const child of this.#children) {\r\n        if (child.#blissObj.x === undefined) child.#relativeToParentX = currentX;\r\n        currentX = child.#relativeToParentX + child.width + INDICATOR_GAP;\r\n      }\r\n    }\r\n\r\n    // Check if this is an indicator at level 3 that will be positioned by #positionIndicatorGroup\r\n    // If so, skip normalization here - let level 2 handle the positioning\r\n    const isIndicatorAtLevel3 = this.#level === 3 && this.isIndicator;\r\n\r\n    // Normalize: shift the child parts so the leftmost lands at x=0 and the\r\n    // stripped common min moves onto the composite as displacement,\r\n    // either sign. This holds for a SINGLE child too (its own x IS the n=1\r\n    // common min): the offset is not discarded, so a use-site coord still ADDS\r\n    // to it rather than replacing it, while the composite's\r\n    // frame now equals its ink span. Keeping the offset on a lone child instead\r\n    // (the former length > 1 gate) left a nonzero baked offset inside the\r\n    // frame: a negative one made the frame a span wider than the ink (a phantom\r\n    // right gap in the canvas + advance) and let the ink escape level-2's\r\n    // negatives-only normalization, so the render disagreed with its own\r\n    // decomposed toString. The serializer's decompose uniformly ADDS baked and\r\n    // use-site coords; moving the min onto the composite matches that, and\r\n    // level 2's negatives-only normalization then acts on the resulting final\r\n    // absolute position exactly as it does for the decomposed form. Skip for a\r\n    // level-3 indicator the parent #positionIndicatorGroup will place; the y\r\n    // axis is never re-origined.\r\n    if (!isIndicatorAtLevel3 && this.#children.length > 0) {\r\n      const minX = Math.min(...this.#children.map(child => child.#relativeToParentX));\r\n      if (minX !== 0) {\r\n        for (const child of this.#children) {\r\n          child.#relativeToParentX -= minX;\r\n        }\r\n        this.#relativeToParentX += minX;\r\n      }\r\n    }\r\n\r\n    // Note: Indicator positioning (X and Y) is now handled at level 2 by #positionIndicatorGroup\r\n    // This method no longer needs to calculate indicator positions\r\n\r\n    this.#anchorOffsetX = this.#blissObj.anchorOffsetX || 0;\r\n    this.#anchorOffsetY = this.#blissObj.anchorOffsetY || 0;\r\n\r\n    this.getSvgContent = (x = 0, y = 0, halo = null) => {\r\n      const childContents = this.#children.map(child =>\r\n        child.getSvgContent(this.#relativeToParentX + x, this.#relativeToParentY + y, halo)\r\n      );\r\n\r\n      const hasTaggedContent = childContents.some(c => c.startsWith('<'));\r\n      const hasRawContent = childContents.some(c => !c.startsWith('<'));\r\n\r\n      const content = hasTaggedContent && hasRawContent\r\n        ? childContents.map(c => c.startsWith('<') ? c : `<path d=\"${c}\"/>`).join('')\r\n        : childContents.join('');\r\n\r\n      if (halo) return this.#haloWrap(content, halo, x, y);\r\n      const box = () => BlissElement.#inkHitBox(this.#calculateBounds(x, y), this.#areaPadding(BlissElement.#LINK_AREAS));\r\n      return BlissElement.#wrapWithAnchorAndGroup(content, this.#blissObj.options, this.#blissObj.authoredOptions,\r\n        () => this.#linkHit(x, y, box), this.#ownFilters(x, y, box));\r\n    };\r\n  }\r\n}\r\n\r\n","/*\n * This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\n */\n\nimport { blissElementDefinitions, builtInCodes, isSpaceGlyph } from \"./bliss-element-definitions.js\";\nimport { hasPathData, createTextFallbackGlyph } from \"./bliss-shape-creators.js\";\nimport {\n  resolveHeadIndex, headScanCode\n} from \"./bliss-head-glyph-exclusions.js\";\nimport { basePartCount, resolveEffectiveDefinition, resolveWordIndicatorOverlay, SINGLE_CODE_TOKEN } from \"./indicator-utils.js\";\nimport { KERNING_OPTION_KEYS, MAX_RECURSION_DEPTH, NUMBER_TEXT, OPTION_BRACKET_CONTENT, QUOTED_SPAN, WARNING_CODES, WRITTEN_COORDINATE_PATTERN, admitOptions, isScopeRefusal, peelCharacterBrackets, serializeOptionValue, textOfValue, withoutEmptyRegion, writtenNumber } from \"./bliss-constants.js\";\n\n// The coordinate-suffix grammar parsePartString accepts: ':' with EACH axis\n// optional (:2 | :2, | :,2 | :2,3 | :), each axis a number as every number\n// written as text is read (NUMBER_TEXT). Every site that strips a coordinate\n// suffix before a definition lookup must strip this SAME grammar, or\n// equivalent spellings take different semantic paths (a y-only ':,2' used to\n// bypass the misplacement gates while ':0,2' met them).\nexport const COORD_SUFFIX_PATTERN = new RegExp(String.raw`:(?:${NUMBER_TEXT})?(?:,(?:${NUMBER_TEXT})?)?$`);\n\n// The letters an external-character run is written in, by Unicode block:\n// Basic Latin, Latin-1 Supplement and Latin Extended-A, Latin Extended-B, IPA\n// Extensions, Greek, Cyrillic, Latin Extended Additional. A letter with no\n// built-in outline draws as text. Scripts whose text the text glyph cannot\n// measure or lay out (CJK, right-to-left, joining) are left out.\nconst X_RUN_LETTERS = 'a-zA-ZÀ-ſƀ-ɏɐ-ʯͰ-ϿЀ-ӿḀ-ỿ';\n// The body of a written run: letters, with a hyphen-minus allowed only between\n// two of them (`Anna-Karin`). No outline holds a hyphen, so a run with one\n// always draws as one text glyph. Exported so the define() namespace guard\n// tests the SAME grammar the tokenizer below reads: a name of this shape is\n// always read as external text, so it could never be reached as a definition.\nexport const X_RUN_BODY = `[${X_RUN_LETTERS}]+(?:-[${X_RUN_LETTERS}]+)*`;\n// One character of a code name: a run letter, a digit, `-`, `.` or `_`. A\n// code is named in the same letters a run is written in, so a definition\n// named in any of them is reachable.\nconst CODE_NAME_CHARACTER = String.raw`[${X_RUN_LETTERS}0-9\\-._]`;\n// A part as parsePartString reads it: a code, then that suffix with each axis\n// captured (groups: code, x, y).\nconst PART_STRING_PATTERN = new RegExp(String.raw`^(${CODE_NAME_CHARACTER}+)(?::(${NUMBER_TEXT})?(?:,(${NUMBER_TEXT})?)?)?$`);\n// A code name followed by `:`, the marker that says a coordinate follows.\nconst CODE_THEN_COORDINATE_PATTERN = new RegExp(String.raw`^${CODE_NAME_CHARACTER}+:`);\n// A kerning marker, RK or AK, with its value read by the same grammar (groups:\n// type, value).\nconst KERNING_MARKER_PATTERN = new RegExp(String.raw`^(RK|AK)(?::(${NUMBER_TEXT}))?$`);\n\n// A codeString beginning with a part option ([color=red]>B291) must nest-parse\n// like a multi-code string; treated as a plain codeName it becomes one unknown\n// token. Shared by the string parser and the object-rebuild expansion paths so\n// a toJSON() round-trip reconstructs what the string parser accepted.\nconst PART_OPTION_CODESTRING = /^\\[.*?\\]>/;\n\n// A `>`-less bracket is a CHARACTER option by syntax; inside a `;`-part slot\n// only part options ([opts]>) apply, so the bracket is misplaced on an\n// otherwise-valid code: peel + warn + drop, then parse the remainder normally.\n// The quote-aware grammar keeps the match to ONE bracket token — a `.*?` body\n// would backtrack across `]…[` and capture a bracket pair as one blob, and a\n// bare `[^\\]]`-class body would truncate at a quoted `]` in a RAW\n// definition-sourced part string (top-level input is placeholder-tokenized,\n// definition codeStrings are not). Group 1 is the\n// bracket, group 2 the grammar's internal atom, group 3 the remainder. The\n// non-empty remainder (.+) keeps a dangling bracket with no code on the\n// whole-character fail path.\nconst PART_SLOT_CHAR_OPTION_PATTERN = new RegExp(String.raw`^(\\[` + OPTION_BRACKET_CONTENT + String.raw`\\])(?!>)(.+)$`);\n\n// Quote-aware bracket matchers built from the shared grammar (see\n// OPTION_BRACKET_CONTENT in bliss-constants.js for the rationale and the\n// linear-time guarantee).\n// The tokenizer pre-pass and #parseOptions' own extraction must agree, or a\n// quoted `]` truncates at one layer even when the other accepts it.\nconst BRACKET_TOKEN_PATTERN = new RegExp(String.raw`\\{(.*)\\}|\\[(` + OPTION_BRACKET_CONTENT + String.raw`)\\]`, 'g');\nconst BRACKET_EXTRACT_PATTERN = new RegExp(String.raw`\\[(` + OPTION_BRACKET_CONTENT + String.raw`)\\]`);\n// One entry of an option bracket: everything up to the next `;` outside a\n// quoted span, the same spans OPTION_BRACKET_CONTENT steps over to find where\n// the bracket ends. Each step commits through an atomic lookahead, so an\n// unclosed quote cannot make the scan backtrack.\nconst BRACKET_ENTRY_PATTERN = new RegExp(String.raw`(?:(?=(?<atom>` + QUOTED_SPAN + String.raw`|[^;]))\\k<atom>)+`, 'g');\n// Every quoted span of a bracket, stripped before its `[`s are counted.\nconst QUOTED_SPANS_PATTERN = new RegExp(QUOTED_SPAN, 'g');\n// One leading part-scope option bracket on a definition's code string (raw\n// text, so quotes are read by the same grammar).\nconst LEADING_PART_BRACKET_PATTERN = new RegExp(String.raw`^\\[` + OPTION_BRACKET_CONTENT + String.raw`\\]>`);\n// The overlay prefix matchers run on RESTORED strings (the `;;` store keeps\n// codes verbatim), so they need the same quote-aware grammar; group 2 is the\n// grammar's internal atom, group 3 the remainder after the bracket.\nconst OVERLAY_CHAR_OPTION_PATTERN = new RegExp(String.raw`^(\\[` + OPTION_BRACKET_CONTENT + String.raw`\\])(?!>)(.+)$`);\nconst OVERLAY_PART_OPTION_PATTERN = new RegExp(String.raw`^(\\[` + OPTION_BRACKET_CONTENT + String.raw`\\])>(.+)$`);\n\n// Strips one layer of syntactic decoration from a codeString reference (an\n// option prefix, a trailing head marker, a coordinate suffix) so a DECORATED\n// alias hop ('[color=green]WORD', 'WORD^', 'WORD:1,2') still resolves for\n// wordness; define() inlines only undecorated direct references.\nconst stripReferenceDecoration = (s) => s\n  .replace(/^(?:\\[.*?\\]>?)+/, '')\n  .replace(/\\^+$/, '')\n  .replace(COORD_SUFFIX_PATTERN, '');\n\n// The longest input string the parser reads. Exported so the string save\n// knows which of the words it writes a reload can read back at all.\nexport const MAX_INPUT_LENGTH = 10_000;\n\n// Whether a code string writes a `|` outside its option brackets and text\n// blocks, read with the parser's own tokenizer: the separator that ends the\n// options of a word or of the input. The part methods refuse one, since a\n// part has neither.\nexport function writesOptionSeparator(codeString) {\n  return codeString.replace(BRACKET_TOKEN_PATTERN, '').includes('|');\n}\n\n// Whether a code string writes a `;;` outside its option brackets and text\n// blocks: the separator that opens a word's indicator list. The part and\n// character methods refuse one wherever it stands, including first in the\n// code, where the word reader takes it for two empty parts. Read as the\n// tokenizer reads it: a bracket or a block keeps a token in its place, so the\n// `;` on either side of one never meet, and whitespace outside them is\n// dropped, so `; ;` is the separator.\nexport function writesWordIndicatorList(codeString) {\n  return codeString.replace(BRACKET_TOKEN_PATTERN, 'TOKEN').replace(/\\s/g, '').includes(';;');\n}\n\n// A code string without the whitespace an input string drops: all of it\n// outside the option brackets and text blocks, found by the tokenizer's own\n// pattern, so a definition's code string reads as the same text written as\n// input does.\nexport function withoutInputWhitespace(codeString) {\n  let read = '';\n  let at = 0;\n  for (const token of codeString.matchAll(BRACKET_TOKEN_PATTERN)) {\n    read += codeString.slice(at, token.index).replace(/\\s/g, '') + token[0];\n    at = token.index + token[0].length;\n  }\n  return read + codeString.slice(at).replace(/\\s/g, '');\n}\n\n// A written X token runs from a glyph boundary to the next structural\n// character: another glyph boundary (`/`), a part boundary (`;`), a head\n// marker (`^`) or a coordinate suffix (`:`). Taking the token WHOLE is what\n// stops a character outside the run grammar from ending the match early and\n// leaving its tail to glue onto the last expanded letter, which destroyed the\n// letter before it. An option bracket at the boundary is part of the token,\n// not a place for a run to hide from routing. A BARE `>` is an option region\n// carrying nothing, and it belongs to the prefix for the same reason: without\n// it a run written behind one was never expanded and then failed as a whole\n// word, while `||`, `|` and even an empty `[]>` all rendered it.\nconst X_TOKEN_PATTERN = new RegExp(String.raw`(?<=^|\\/)(\\[[^\\[\\]]*\\]>?|>)?X([^/;^:]+)`, 'g');\n// A run of two characters at least: one letter alone is the sequence pass's\n// to read (see processXCodes).\nconst X_RUN_BODY_PATTERN = new RegExp(`^(?=.{2})${X_RUN_BODY}$`);\n// An unexpanded multi-letter run reaching a `;`-part slot: the run is a word,\n// and a word cannot be composed onto a character. Anchored at both ends so a\n// code that merely CONTAINS X+letters (MAXWELL) or ends in a non-letter\n// (Xhello9) is not mis-flagged. Built from the shared ranges for the same\n// reason as the pattern above: three copies of this class had drifted apart.\n// Letters only: a run holding a hyphen is one glyph, never a word.\nconst WORD_AS_PART_PATTERN = new RegExp(`^X[${X_RUN_LETTERS}]{2,}$`);\n// One X letter, optionally behind an option bracket and optionally carrying a\n// trailing decoration, as written in a `/`-separated sequence.\nconst X_LETTER_TOKEN_PATTERN = new RegExp(String.raw`^(\\[[^\\[\\]]*\\]>?)?X([${X_RUN_LETTERS}])([;^:].*)?$`);\n// A bare X code that is nothing but a run body, with no decoration of any kind.\nconst X_BARE_RUN_PATTERN = new RegExp(`^X(${X_RUN_BODY})$`);\nconst X_TEXT_FALLBACK_PREFIX = 'XTXT_';\n\n// What a written X token DENOTES, which is the one question every X site asks:\n//   'word'  - every letter has a built-in outline, so the run is shorthand for\n//             a `/`-separated sequence of glyphs.\n//   'glyph' - some character has no outline (a hyphen never has one), so the\n//             WHOLE run becomes one text-fallback glyph; letters of one run\n//             never split across two rendering mechanisms.\n//   null    - not a multi-letter run: one letter (the sequence pass below\n//             decides those), or something that is not a letter at all (a\n//             digit, punctuation, the internal `XTXT_` routing key). Leave the\n//             token exactly as written and let it resolve, or fail, as the\n//             single code it is. The routing key is the one exception, and it\n//             is applied before this is asked: a key whose payload is letters\n//             that ALL have outlines is read as those letters first (see\n//             readTextFallbackKey), so what reaches here still wearing the key\n//             is a key that is genuinely needed.\n// The one outline test the whole X grammar turns on: if every letter has a\n// built-in outline the token stands for that many outlined letters, and if any\n// letter lacks one the WHOLE token is a single text glyph. Letters of one\n// written token never split across two rendering mechanisms.\nconst allLettersOutlined = (chars) => [...chars].every(hasPathData);\n\nconst classifyXRunBody = (body) =>\n  !X_RUN_BODY_PATTERN.test(body) ? null\n    : allLettersOutlined(body) ? 'word'\n    : 'glyph';\n\n// The routing key `XTXT_<chars>` read as the letters it names, or null when it\n// is not that: a key whose payload some letter of has no outline is what the key\n// is FOR, and a digit or an empty payload is not letters at all. The fallback\n// exists for letters that cannot be drawn from outlines and asks for nothing\n// when they can, and it cannot survive its own serialization there, because the\n// key is never emitted: such a glyph came back as the plain letters and reparsed\n// as outlines, a different picture with no warning.\n//\n// ONE place because two sites ask, and they answered differently until they did\n// not: the written-token pass below, and the `;`-part slot, which the token pass\n// never sees because its pattern is anchored to a glyph boundary.\nconst readTextFallbackKey = (code) => {\n  if (typeof code !== 'string' || !code.startsWith(X_TEXT_FALLBACK_PREFIX)) return null;\n  const asWritten = `X${code.slice(X_TEXT_FALLBACK_PREFIX.length)}`;\n  return classifyXCode(asWritten) === 'letters' ? asWritten : null;\n};\n\n// Where the X pass writes the routing key: where a character starts, which is\n// the start of the text, after a `/`, or after the bracket or the `>` of the\n// option region in front of the character.\nconst ROUTING_KEY_AT_CHARACTER_START = new RegExp(String.raw`(^|[/\\]>])${X_TEXT_FALLBACK_PREFIX}`, 'g');\n\n// Text the parser reports, with each routing key spelled as the X code it\n// stands for (`Xλ:abc`), so a warning quotes a letter drawn as text the way it\n// is written and never names the key, which is internal. A code that merely\n// contains the key's letters is left as it is.\nconst withXCodesAsWritten = (text) => text.replace(ROUTING_KEY_AT_CHARACTER_START, '$1X');\n\n// The code a `;` part slot reads a code as. The glyph-boundary pass never sees\n// a slot, so a letter with no outline is made its text-fallback glyph here,\n// as that pass makes one written alone, and a routing key is read as the\n// letters it names when they all have outlines (readTextFallbackKey). Asked\n// of the code written in a slot, of the code an alias there names and of the\n// one code a definition draws, so each draws what the code written in its\n// place draws. Exported so define() judges a code a definition holds as it\n// is read.\nexport const slotCodeOf = (code) => {\n  const keyAsLetters = readTextFallbackKey(code);\n  if (keyAsLetters !== null) return keyAsLetters;\n  return classifyXCode(code) === 'glyph' ? `${X_TEXT_FALLBACK_PREFIX}${code.slice(1)}` : code;\n};\n\n// The definition a text-fallback glyph is read by in a part slot: one made for\n// its letters, drawn as a shape.\nconst textFallbackDefinitionOf = (code) => {\n  const glyph = createTextFallbackGlyph(code.slice(X_TEXT_FALLBACK_PREFIX.length));\n  glyph.isShape = true;\n  return glyph;\n};\n\n// Rewrites the X shorthand in a code string into the codes the renderer knows:\n// per-character `X<letter>` codes for an outlined run, one `XTXT_<chars>` glyph\n// for a run that needs the text fallback. Shared by the top-level input and the\n// definition-expansion path so a run means the same thing wherever it is\n// written, and exported so define() can ask what a codeString expands to.\nexport function processXCodes(codeString) {\n  let expanded = codeString.replace(X_TOKEN_PATTERN, (match, optionPrefix = '', chars, offset) => {\n    // Read the routing key as the letters it names (see readTextFallbackKey),\n    // then treat it from here on exactly as if they had been written, so it\n    // means the same thing in every position its written twin can take.\n    const asWritten = readTextFallbackKey(`X${chars}`);\n    const body = asWritten !== null ? asWritten.slice(1) : chars;\n    // The token as it would have been written, once the key is read.\n    const written = asWritten !== null ? optionPrefix + asWritten : match;\n\n    const denotes = classifyXRunBody(body);\n    if (!denotes) return written;\n\n    // A real `;`-part composes onto ONE character. A run that is a word must\n    // therefore stay whole and fail as the word it is; expanding it would bind\n    // the part to the last letter instead of to the written token. A run that\n    // collapses to one glyph is a character like any other and takes the part.\n    // The other things a following `;` can mean are not compositions and never\n    // suppress expansion: `;;` attaches a word-level overlay to the WORD the\n    // run expands into (matching the written `Xa/Xb;;B81` twin), a bare\n    // trailing `;` composes nothing, and a `;` immediately before a `/` opens an\n    // empty part slot. That last case only reaches this pass from a definition\n    // codeString, which stores word breaks as written, so without it the same\n    // content expands at top level and fails inside a definition.\n    const rest = codeString.slice(offset + match.length);\n    const composesAPart = rest.startsWith(';')\n      && !rest.startsWith(';;')\n      && rest.length > 1\n      && !rest.startsWith(';/');\n    if (composesAPart && denotes === 'word') return written;\n\n    // For an outlined run the option prefix rides the FIRST expanded glyph,\n    // matching the written /-expansion exactly ([opts]Xab === [opts]Xa/Xb).\n    // A run that collapses to one glyph keeps the prefix on that glyph, so the\n    // option scopes the whole run; that deliberately differs from the written\n    // sequence form, where a prefix binds one member and the member stands\n    // alone.\n    return denotes === 'word'\n      ? optionPrefix + [...body].map(char => `X${char}`).join('/')\n      : `${optionPrefix}XTXT_${body}`;\n  });\n\n  // A written sequence of single-letter X codes merges by the same rule, so\n  // `Xa/Xλ` and `Xaλ` both mean one text glyph. A decoration on the LAST member\n  // belongs to whatever the merge produces: without that, the decorated letter\n  // stayed outside the merge and failed as an unknown code.\n  const parts = expanded.split('/');\n  const result = [];\n  let currentXSequence = [];\n\n  const flushXSequence = (decoration = '') => {\n    if (currentXSequence.length === 0) return;\n\n    const letters = currentXSequence;\n    if (letters.every(hasPathData)) {\n      letters.forEach((char, i) => {\n        result.push(`X${char}${i === letters.length - 1 ? decoration : ''}`);\n      });\n    } else {\n      result.push(`XTXT_${letters.join('')}${decoration}`);\n    }\n    currentXSequence = [];\n  };\n\n  for (const part of parts) {\n    const token = part.match(X_LETTER_TOKEN_PATTERN);\n\n    if (token && !token[1]) {\n      currentXSequence.push(token[2]);\n      if (token[3]) flushXSequence(token[3]);\n      continue;\n    }\n\n    flushXSequence();\n    // An option-prefixed single-char X-code stands alone: the option scopes to\n    // that one character, so it never merges into a whole-run fallback. An\n    // outlined letter passes through unchanged (it resolves via its definition\n    // downstream); only a fallback letter is rewritten so the XTXT_ route can\n    // see it.\n    if (token && !hasPathData(token[2])) {\n      result.push(`${token[1]}XTXT_${token[2]}${token[3] ?? ''}`);\n    } else {\n      result.push(part);\n    }\n  }\n  flushXSequence();\n\n  return result.join('/');\n}\n\n// The kerning values an options object carries, in the order they were written,\n// each tagged with the numeric key it resolves to and how to name it in a\n// warning.\nexport function kerningOptionEntries(options) {\n  return Object.entries(options ?? {})\n    .filter(([key]) => Object.hasOwn(KERNING_OPTION_KEYS, key))\n    .map(([key, value]) => ({\n      key: KERNING_OPTION_KEYS[key],\n      writtenKey: key,\n      value,\n      source: value === true ? key : `${key}=${textOfValue(value)}`,\n    }));\n}\n\n// What an element is called in a positioning warning, by tree level. A part is\n// the only level with a second spelling (`CODE:x,y`), so it is the only one\n// whose message can talk about a coordinate.\nconst POSITION_SCOPE_NAMES = ['composition', 'word', 'character', 'part'];\n\n// One reading of \"can this be a coordinate?\", shared by the two channels a\n// position arrives on so that the two cannot drift, and with the kerning reader\n// below. The type decides before Number() is asked: see writtenNumber.\nconst coordinateNumber = writtenNumber;\n\n// Reads the promoted `x`/`y` FIELD. That field is the one route to a position\n// object input has and the DSL does not: a DSL coordinate is grammar-gated to\n// the number grammar, so the field is a number by construction there, or the\n// text as written for an axis no position can be (B291:1e400), refused here.\n// An object literal can put anything in it, while `x?: number` is what the\n// published declaration states at every scope, so this is that declaration\n// enforced at run time.\n//\n// Reading the value matters more than refusing it, because that half repairs a\n// corruption: the layout adds the parent offset with `+`, so a STRING axis was\n// concatenated rather than added and `{ codeName: 'ZSA', x: '3' }` drew at 30.\n// Going through the predicate the options channel already uses means every\n// route to a position agrees on what \"3\" means.\n//\n// Must run BEFORE extractPositionFromOptions, so a refused field is already\n// gone when an option at the same scope is compared against it: a value that\n// was never going to be used must not also be reported as one the option\n// displaced.\nexport function normalizePositionFields(obj, parseWarnings) {\n  for (const axis of ['x', 'y']) {\n    const written = obj[axis];\n    if (written === undefined) continue;\n    const value = coordinateNumber(written);\n    if (Number.isFinite(value)) {\n      obj[axis] = value;\n      continue;\n    }\n    // Deleting is also what makes a rebuild idempotent: the next pass finds no\n    // field and cannot report the same value twice.\n    delete obj[axis];\n    // A field always carries a written value, so it is always quoted as\n    // `axis=value`. The options channel has a second spelling to account for (a\n    // bare `[x]`, stored as `true`) and reports that one as the axis alone.\n    const source = `${axis}=${textOfValue(written)}`;\n    // Not optional, unlike its neighbour: every call site has somewhere to\n    // report to. A guard here would be a branch no test can reach.\n    parseWarnings.push({\n      code: WARNING_CODES.MALFORMED_COORDINATES,\n      message: `Malformed position \"${source}\"; the position is ignored.`,\n      source,\n    });\n  }\n}\n\n// Promotes `[x=N]` / `[y=N]` to the numeric x/y the layout reads. An option\n// OVERRIDES the positional shorthand it duplicates: on a part, `[x=N]>CODE`\n// and `CODE:x,y` address the same level, so they are two spellings of one\n// value and the option is the one that counts. The overridden value is\n// reported rather than dropped in silence. A part is where the DSL can raise\n// that conflict; object input can author both channels at any level, so the\n// message names the level it happened at. A value that is not a number is\n// dropped with MALFORMED_COORDINATES and the element still renders, since a\n// broken decoration must not destroy valid content.\nexport function extractPositionFromOptions(obj, parseWarnings, level = 3) {\n  if (!obj.options) return;\n  const inline = { x: obj.x, y: obj.y };\n  const overridden = [];\n  let promoted = false;\n  for (const axis of ['x', 'y']) {\n    if (obj.options[axis] === undefined) continue;\n    const written = obj.options[axis];\n    const value = coordinateNumber(written);\n    if (!Number.isFinite(value)) {\n      delete obj.options[axis];\n      // A bare key is stored as `true`, so name it the way it was written.\n      const source = written === true ? axis : `${axis}=${textOfValue(written)}`;\n      parseWarnings?.push({\n        code: WARNING_CODES.MALFORMED_COORDINATES,\n        message: `Malformed position \"${source}\"; the option is ignored.`,\n        source,\n      });\n      continue;\n    }\n    if (inline[axis] !== undefined && inline[axis] !== value) overridden.push(axis);\n    obj[axis] = value;\n    // The promoted field is the position, and a copy left behind in the bag is\n    // a residual: it makes the exported composition differ by the spelling that\n    // entered it, it hides the position from removal by name at part scope, and\n    // it gets a space's one written decoration reported twice. Cleared here,\n    // where the promotion happens, so every call site inherits it.\n    delete obj.options[axis];\n    promoted = true;\n  }\n  // Leave the bag looking the way this level's bags look when nobody wrote an\n  // option, so the export cannot be read backwards into how the position was\n  // written. Measured on both input channels: a word, a character and a part\n  // carry no bag at all until something is in one, while a COMPOSITION always\n  // carries one, empty or not. So an emptied bag is removed at the three inner\n  // levels and kept at the outermost, where removing it is what would make the\n  // export depend on the spelling.\n  //\n  // Only a bag this function emptied, and only on the path that MOVED a key: a\n  // refused axis above is dropped the way every other bad option is dropped,\n  // and those leave the bag as they found it.\n  if (promoted && level > 0 && Object.keys(obj.options).length === 0) delete obj.options;\n  if (overridden.length === 0 || !parseWarnings) return;\n  const scope = POSITION_SCOPE_NAMES[Math.min(level, 3)];\n  const ignored = level >= 3\n    ? `:${overridden.includes('x') ? inline.x : ''}${overridden.includes('y') ? `,${inline.y}` : ''}`\n    : overridden.map(axis => `${axis}=${inline[axis]}`).join(';');\n  const how = level >= 3 ? 'as an option or as a coordinate' : 'as an option or beside it';\n  parseWarnings.push({\n    code: WARNING_CODES.MULTIPLE_POSITION_VALUES,\n    message: `A ${scope} takes one position: the option wins, so \"${ignored}\" is ignored. Write the position ${how}, not both.`,\n    source: ignored,\n  });\n}\n\n// Kerning is ONE value per character, however it is written: the `RK:`/`AK:`\n// markers and the long-form options are four spellings of the same thing. An\n// OPTION beats a MARKER (options override the DSL shorthand), and among equals\n// the one written LATER wins. Every value the winner displaced is reported.\n// Resolving here leaves the layout one numeric key to read and the serializer\n// one spelling to emit.\n//\n// Every value here was written on this character. A definition cannot bring\n// one: `define()` refuses kerning in `defaultOptions`, because the gap before a\n// character belongs to one use of it, not to what it is.\nexport function resolveKerning(glyphObj, marker, bracketEntries, parseWarnings) {\n  const options = glyphObj.options;\n  if (!options) return;\n\n  const numeric = (entry) => {\n    const value = writtenNumber(entry.value);\n    if (!Number.isFinite(value)) {\n      parseWarnings.push({\n        code: WARNING_CODES.MALFORMED_KERNING_VALUE,\n        message: `Malformed kerning value \"${entry.source}\"; the option is ignored.`,\n        source: entry.source,\n      });\n      return null;\n    }\n    return { ...entry, value };\n  };\n\n  // The marker first, so the last bracket option outranks it and the losers\n  // fall out as \"everything before the winner\".\n  const written = [...(marker ? [marker] : []), ...bracketEntries.map(numeric).filter(Boolean)];\n\n  // Clear what this character wrote, in the exact spelling it wrote it, so the\n  // winner is the only kerning its options keep.\n  for (const entry of bracketEntries) delete options[entry.writtenKey];\n  if (marker) delete options[marker.key];\n  if (written.length === 0) return;\n\n  for (const displaced of written.slice(0, -1)) {\n    parseWarnings.push({\n      code: WARNING_CODES.MULTIPLE_KERNING_VALUES,\n      message: `A character takes one kerning value, so \"${displaced.source}\" is ignored. An option beats an RK:/AK: marker, and the last value written wins.`,\n      source: displaced.source,\n    });\n  }\n  const winner = written[written.length - 1];\n  options[winner.key] = winner.value;\n}\n\n// What a bare X code denotes, for the sites that meet one already stripped of\n// its options and decoration (a `;`-part slot, object input). The same question\n// processXCodes asks of a written token, asked of a finished code:\n//   'glyph'   - some character has no built-in outline (a hyphen never has\n//               one), so the whole code is ONE text-fallback glyph.\n//   'letters' - every letter has an outline, so the code stands for that many\n//               outlined letters: one character if there is one letter, a word\n//               if there are more.\n//   null      - not an X run at all (`Xab9`, `X-`, `XTXT_hi`, `B291`), so it\n//               denotes nothing here and has to resolve, or fail, as the\n//               single code it is.\nexport function classifyXCode(code) {\n  const match = typeof code === 'string' ? code.match(X_BARE_RUN_PATTERN) : null;\n  if (!match) return null;\n  return allLettersOutlined(match[1]) ? 'letters' : 'glyph';\n}\n\n// A head marker in a code string: a `^` ending a character, at the end or\n// before a `;` part. An option bracket is matched whole and kept, by the\n// grammar every bracket reader shares, so a caret inside a value\n// (`[title=a^;color=red]`, quoted or not) is never taken for one.\nconst HEAD_MARKER_PATTERN = new RegExp(String.raw`(\\[` + OPTION_BRACKET_CONTENT + String.raw`\\])|\\^(?=;|$)`, 'g');\n\n// A definition's code string without its head marker. The marker designates\n// the definition as its word's head, which the expansion reads where a word\n// is read (through #readDefinition), and draws nothing: where the code string\n// is read as a part, or for the parts it draws, it is left out.\nconst withoutHeadMarker = (codeString) => codeString.replace(HEAD_MARKER_PATTERN, (match, bracket) => bracket ?? '');\n\n// A code string as a part slot reads it: behind its option brackets (a leading\n// character bracket is a definition's own options, see ownBracketOf) and\n// without its head marker.\nfunction slotBodyOf(codeString) {\n  let rest = withoutHeadMarker(peelCharacterBrackets(codeString).body);\n  let bracket;\n  while ((bracket = rest.match(LEADING_PART_BRACKET_PATTERN)) !== null) rest = rest.slice(bracket[0].length);\n  return rest;\n}\n\n// The code the first character of a code string is made from, read as a part\n// slot reads it: behind its option brackets, before any `;` part, and without\n// its coordinate.\nfunction firstBaseCode(codeString) {\n  const [first] = slotBodyOf(codeString).split(';');\n  const coordinate = first.match(COORD_SUFFIX_PATTERN);\n  return coordinate && coordinate.index > 0 ? first.slice(0, coordinate.index) : first;\n}\n\n// The `;` parts of a code string, read as a part slot reads it: behind its\n// option brackets, an empty segment (as after a trailing `;`) adding no part.\nfunction partSegmentsOf(codeString) {\n  return slotBodyOf(codeString).split(';').filter((segment) => segment !== '');\n}\n\n// The code a code string of one part is made of, read as firstBaseCode reads\n// it; null when it holds several parts.\nfunction onlyCodeOf(codeString) {\n  const segments = partSegmentsOf(codeString);\n  return segments.length === 1 ? firstBaseCode(segments[0]) : null;\n}\n\n// How many base parts a code string draws: its `;` parts read as a part slot\n// reads them, each an indicator when its definition is one, counted as the\n// layout counts a character's parts (basePartCount).\nfunction basePartCountOf(codeString, definitions) {\n  return basePartCount(partSegmentsOf(codeString).map((segment) => {\n    const code = firstBaseCode(segment);\n    const definition = Object.hasOwn(definitions, code) ? definitions[code] : undefined;\n    return { isIndicator: resolveEffectiveDefinition(definition, definitions)?.isIndicator === true };\n  }));\n}\n\n// Whether a character pulls in the word space before it: a punctuation mark,\n// however it is decorated, while it draws one base part. A second base part\n// makes another character, which leaves the ordinary space. Read where the\n// space is decided and where the builder judges a stored one, so both agree.\nexport function pullsInWordSpace(glyph) {\n  return glyph.shrinksPrecedingWordSpace === true && basePartCount(glyph.parts ?? []) <= 1;\n}\n\n// The layout data a code draws with, as its bare spelling gets it. Layout data\n// is what places a character among its neighbours: the external-letter\n// spacing, the letter it is (which pair kerning reads), its kerning table, and\n// whether it pulls in the word space before it. A decoration does not change\n// them; only a code of its own is lost. A coordinate, an indicator or an\n// option bracket leaves a character the one it is. A second base part makes\n// another character, yet the data stay with it: the layout, which sees the\n// parts, turns them off (basePartCount), and they apply again once that part\n// is removed. A built-in carries its own; a code without an outline draws as\n// its text-fallback glyph; a defined name that stands for one character takes\n// what it does not set itself from the character its code string is made of,\n// as its expansion does, reading that character's code as a part slot reads\n// it (slotCodeOf), so a letter without an outline lends what its text-fallback\n// glyph carries. A name whose code string fuses two base parts is drawn inside\n// one part, where the layout cannot see them, so it lends only what it sets\n// itself. Exported so a glyph read from a composition object takes the data\n// its string spelling takes.\nexport function layoutDefinitionOf(code, definitions, depth = 0) {\n  if (code.startsWith('XTXT_')) return createTextFallbackGlyph(code.slice(5));\n  const definition = Object.hasOwn(definitions, code) ? definitions[code] : undefined;\n  if (typeof definition?.codeString !== 'string' || builtInCodes.has(code) || depth >= MAX_RECURSION_DEPTH) {\n    return definition;\n  }\n  if (definition.codeString.includes('/')) return definition;\n  if (basePartCountOf(definition.codeString, definitions) > 1) return definition;\n  const inner = layoutDefinitionOf(slotCodeOf(firstBaseCode(definition.codeString)), definitions, depth + 1);\n  if (!inner) return definition;\n  return {\n    isExternalGlyph: definition.isExternalGlyph ?? inner.isExternalGlyph,\n    char: definition.char ?? inner.char,\n    kerningRules: definition.kerningRules ?? inner.kerningRules,\n    shrinksPrecedingWordSpace: definition.shrinksPrecedingWordSpace ?? inner.shrinksPrecedingWordSpace,\n  };\n}\n\n// The code string an alias chain starting at `code` ends in, or null when\n// `code` names no definition with a code string. A hop that is not itself a\n// registry key may still be a DECORATED reference ('[color=green]WORD',\n// 'WORD^', 'WORD:1,2'): the decoration is stripped and the chain followed, or\n// a decorated word alias would not be recognized as a word.\nfunction finalCodeStringOf(code, definitions, visited = new Set()) {\n  if (visited.has(code)) return null;\n  visited.add(code);\n  const def = definitions[code];\n  if (!def?.codeString) return null;\n  if (!definitions[def.codeString]) {\n    const core = stripReferenceDecoration(def.codeString);\n    if (core !== def.codeString && definitions[core]) {\n      return finalCodeStringOf(core, definitions, visited) ?? def.codeString;\n    }\n    return def.codeString;\n  }\n  return finalCodeStringOf(def.codeString, definitions, visited);\n}\n\n// Whether a code string draws one character: no word break written, and none\n// made by a letter run or by an alias its first code stands for.\nfunction drawsOneCharacter(codeString, definitions) {\n  if (processXCodes(codeString).includes('/')) return false;\n  const base = firstBaseCode(codeString);\n  return !processXCodes(finalCodeStringOf(base, definitions) ?? base).includes('/');\n}\n\n// A definition's code string read as what the definition is. A character\n// bracket leading a code string that draws one character is the definition's\n// own options, as its defaultOptions are: the definition is the one part it\n// draws, so the bracket styles that part wherever the code is used. Returns\n// the bracket, any further bracket at the same place (one bracket per scope,\n// so a use reports and drops those), and the code string behind them; null\n// when no bracket leads it, nothing follows the brackets, or it draws a word,\n// where the bracket stays its first character's, as written.\nfunction ownBracketOf(codeString, definitions) {\n  const { brackets, body } = peelCharacterBrackets(codeString);\n  if (brackets.length === 0 || body === '' || !drawsOneCharacter(codeString, definitions)) return null;\n  return { bracket: brackets[0], extras: brackets.slice(1), body };\n}\n\nexport class BlissParser {\n  static parse(codeStr, options) {\n      const result = this.fromString(codeStr);\n\n      if (options) {\n        result.options = {...result.options, ...options};\n      }\n\n      return result;\n  }\n\n  // Only one option bracket is allowed per level ([a][b]|| is invalid; the\n  // canonical multi-option form is [a;b]||). A duplicate is detected only when\n  // BOTH forms agree: the tokenized (placeholder) form shows more than one\n  // bracket — braces are opaque placeholders there, so a '[' inside {…} never\n  // counts — AND the restored form still shows more than one top-level '['\n  // once quoted values are stripped with #parseOptions's own quote grammar.\n  // The second condition was added to veto the then-quote-unaware pre-pass\n  // (a quoted ']' split ONE user bracket into two tokenized ones); the\n  // pre-pass is quote-aware now, so both arms agree on\n  // [k=\"][\"]-class inputs and the veto is belt-and-suspenders (kept; mutation\n  // testing decides whether it is still reachable).\n  static #hasMultipleOptionBrackets(tokenized, restored) {\n    return (tokenized.match(/\\[/g) || []).length > 1\n      && (restored.replace(QUOTED_SPANS_PATTERN, '').match(/\\[/g) || []).length > 1;\n  }\n\n  // Where a word's `|` and `||` stand, read from the word with its option\n  // brackets tokenized (a `|` inside one is never seen). A single `|` first in\n  // the word closes the word's options: `options` is the text before it,\n  // undefined when there is none. Any other `|` or `||` must follow option\n  // brackets that start a character, which are then a misplaced word option\n  // (`|`) or global option (`||`), left out of `content` and listed in\n  // `misplaced`. Anywhere else it is a syntax error that fails the word:\n  // null.\n  static #readWordSeparators(word) {\n    let options;\n    let content = '';\n    const misplaced = [];\n    let from = 0;\n    for (const [index, run] of [...word.matchAll(/\\|+/g)].entries()) {\n      const before = word.slice(from, run.index);\n      from = run.index + run[0].length;\n      if (index === 0 && run[0] === '|') {\n        options = before;\n        continue;\n      }\n      const characterStart = before.lastIndexOf('/') + 1;\n      const brackets = before.slice(characterStart);\n      if (run[0].length > 2 || !/^(?:\\[[^[\\]]*\\])+$/.test(brackets)) return null;\n      misplaced.push({ spelling: brackets + run[0], isGlobal: run[0].length === 2 });\n      content += before.slice(0, characterStart);\n    }\n    return { options, content: content + word.slice(from), misplaced };\n  }\n\n  // `warn` is optional because the entry points are not uniform: `parse` keeps\n  // a warnings array, and `parsePartString` is a public static that returns a\n  // part object and has no warnings route of its own. The silent default\n  // matches that entry point rather than hiding a hole. `scope` is the level\n  // the bracket was written at, given by every site that has one.\n  static #parseOptions(optionsString, warn, scope) {\n    if (!optionsString) return;\n\n    const written = BlissParser.#writtenEntries(optionsString);\n    if (!written) return;\n\n    // Admitted HERE, where a bracket first becomes an options bag, so every\n    // gate, emitter and serializer downstream sees one spelling of a name the\n    // library or a standard owns and none of them learns a rule. The stage\n    // resolves each name before it judges the key's scope, which is what\n    // satisfies \"canonicalize before the gates\" by construction rather than by\n    // ordering discipline.\n    //\n    // The same stage every other entry point runs, scope included, so a key\n    // misplaced in a bracket is reported exactly as the same key misplaced in\n    // an object is, next to the same neighbours. A bracket can only ever\n    // produce a string or the `true` of a bare key, so the value arm never\n    // refuses anything here. It runs anyway, because that is what makes the\n    // routes unable to drift apart rather than merely agreeing today.\n    //\n    // The bag has no prototype: a bracket key can be any name, `__proto__`\n    // included, and on a plain object that assignment would be swallowed\n    // instead of stored.\n    const parsedObject = Object.create(null);\n    for (const [key, value] of admitOptions(written, warn, scope)) parsedObject[key] = value;\n\n    return parsedObject;\n  }\n\n  // The [key, value] pairs one option bracket writes, in order and as written,\n  // before any spelling is resolved: the option grammar's one tokenizer, which\n  // `define()` also reads a definition's own bracket with. Null for an empty\n  // bracket.\n  static #writtenEntries(optionsString) {\n    const bracketMatch = optionsString.match(BRACKET_EXTRACT_PATTERN);\n    // Stryker disable next-line all: internal invariant, unreachable from public API\n    if (!bracketMatch) {\n      throw new Error(`#parseOptions: expected bracketed input, got: ${optionsString}`);\n    }\n    const extractedContent = bracketMatch[1];\n    if (!extractedContent) return null;\n\n    const written = [];\n    // A key is everything before its entry's first `=` and is never split: a\n    // character the name gate refuses is reported under the name the author\n    // wrote, as the same key in an object is, instead of silently starting a\n    // second key with whatever followed it.\n    for (const [entry] of extractedContent.matchAll(BRACKET_ENTRY_PATTERN)) {\n      if (entry.trim() === '') continue;\n      const equals = entry.indexOf('=');\n      if (equals === -1) {\n        // Bare key (e.g., [grid]) — treat as boolean true\n        written.push([entry.trim(), true]);\n        continue;\n      }\n      let value = entry.slice(equals + 1).trim();\n\n      // Unquoted only when the value is wrapped in a pair of one quote and\n      // every quote of that kind inside it is escaped, the form a save writes,\n      // so a saved value reads back as itself. A value that merely starts with\n      // a quote, as `\"x\"y` and `\"x\" \"y\"` do, is read as written.\n      if (value.startsWith('\"') && value.endsWith('\"') && !/(?<!\\\\)\"/.test(value.slice(1, -1))) {\n        value = value.slice(1, -1).replace(/\\\\\"/g, '\"');\n      } else if (value.startsWith(\"'\") && value.endsWith(\"'\") && !/(?<!\\\\)'/.test(value.slice(1, -1))) {\n        value = value.slice(1, -1).replace(/\\\\'/g, \"'\");\n      }\n\n      written.push([entry.slice(0, equals).trim(), value]);\n    }\n    return written;\n  }\n\n  /**\n   * The options a definition's code string writes in its own bracket (see\n   * ownBracketOf), as written, so `define()` and `patchDefinition()` can judge\n   * them as they judge `defaultOptions`. Null when the code string has no own\n   * bracket, or when that bracket is empty.\n   *\n   * @param {string} codeString\n   * @returns {Array<[string, string|true]>|null}\n   */\n  static ownBracketEntries(codeString) {\n    const own = ownBracketOf(codeString, blissElementDefinitions);\n    return own ? BlissParser.#writtenEntries(own.bracket) : null;\n  }\n\n  // What a definition is, read from its code string: the code string it draws\n  // (behind its own bracket) and its own options (its defaultOptions, with\n  // that bracket over them: the bracket wins, as it does where the definition\n  // stands alone). Read at part scope, since the definition is the part it\n  // draws. A further bracket at the same place is reported to `warn` and\n  // dropped; `code` names the definition in that report. A `>` leading the\n  // code string with nothing before it is an empty option region, so the code\n  // behind it is what the definition draws (`>B291` draws `B291`) wherever the\n  // definition is read, as the DSL reads one.\n  static #readDefinition(code, definition, warn) {\n    const { codeString, defaultOptions } = definition;\n    const own = typeof codeString === 'string' ? ownBracketOf(codeString, blissElementDefinitions) : null;\n    if (!own) {\n      return { codeString: typeof codeString === 'string' ? withoutEmptyRegion(codeString) : codeString, options: defaultOptions };\n    }\n    for (const extra of own.extras) {\n      warn?.({\n        code: WARNING_CODES.MULTIPLE_OPTION_BRACKETS,\n        message: `Multiple option brackets lead the code string of \"${code}\": \"${extra}\" is ignored. Only the first is applied; combine options in one bracket, e.g. [a;b].`,\n        source: extra,\n      });\n    }\n    const options = { ...defaultOptions, ...BlissParser.#parseOptions(own.bracket, warn, { level: 'part', notation: 'bracket' }) };\n    return { codeString: own.body, options: Object.keys(options).length > 0 ? options : undefined };\n  }\n\n  // A definition read where its code string is a part's: as #readDefinition\n  // reads it, without the head marker, which designates the head of a word\n  // and draws nothing in a part (see withoutHeadMarker).\n  static #readPartDefinition(code, definition, warn) {\n    const { codeString, options } = BlissParser.#readDefinition(code, definition, warn);\n    return { codeString: typeof codeString === 'string' ? withoutHeadMarker(codeString) : codeString, options };\n  }\n\n  // Both callers read a bracket that sits on a part, and both pass that scope\n  // and the channel a refused key is reported to: the DSL's part site, and the\n  // expansion of a definition's code string for a composition object. So a key\n  // misplaced inside a definition is reported the same way whichever of the two\n  // named the definition.\n  static parsePartString(str, restoreFunction = (s) => s, warn, scope) {\n    const part = {};\n\n    let optionsString, codeString;\n    const match = str.match(/^(\\[.*?\\])>(.*)$/);\n    if (match) {\n      optionsString = match[1];\n      codeString = match[2];\n      part.options = this.#parseOptions(restoreFunction(optionsString), warn, scope);\n    } else {\n      codeString = str;\n    }\n\n    if (codeString) {\n      const matched = codeString.match(PART_STRING_PATTERN);\n\n      if (matched) {\n        let [, code, x, y] = matched;\n        part.codeName = code;\n        // An axis the grammar reads but no position can be (B291:1e400) is\n        // handed over as written, so the position gate refuses it quoting what\n        // the author wrote, as it quotes [x=1e400], not the Infinity it reads as.\n        const axisValue = (text) => (Number.isFinite(Number(text)) ? Number(text) : text);\n        x !== undefined && (part.x = axisValue(x));\n        y !== undefined && (part.y = axisValue(y));\n      } else {\n        // Restore placeholders in what is reported (a tokenized bracket\n        // otherwise leaks as a literal [PLACEHOLDER_n]); the format checks\n        // below stay on the tokenized string.\n        const written = restoreFunction(codeString);\n        part.error = `Invalid format: ${written}`;\n        // A warning's source is the token as written, so it can be found where\n        // it was written; the error stays the description of what went wrong.\n        part.errorSource = written;\n        // A recognizable code followed by a malformed coordinate suffix\n        // (B291:abc, B291:., B291:5,6,7) is a coordinate FORMAT error, not an\n        // unknown code: the code lexes fine, only the `:x,y` failed to parse.\n        // Tag it so the renderer surfaces MALFORMED_COORDINATES instead of the\n        // misleading UNKNOWN_CODE. The token is still dropped (invalid syntax is\n        // not carried forward); only the warning code differs. The syntax error\n        // is reported before semantics, so an unknown code with a bad suffix\n        // (ZZ:abc) is MALFORMED_COORDINATES too. The `:` (not `,`) is the\n        // trigger: it is the marker that says \"a coordinate follows\".\n        if (CODE_THEN_COORDINATE_PATTERN.test(codeString)) {\n          part.errorCode = WARNING_CODES.MALFORMED_COORDINATES;\n        }\n      }\n    }\n\n    return part;\n  }\n  static fromString(inputString) {\n    if (typeof inputString === 'string' && inputString.length > MAX_INPUT_LENGTH) {\n      throw new Error('Input string exceeds maximum length of 10,000 characters');\n    }\n    inputString = inputString.trim();\n    const result = {};\n    const parseWarnings = [];\n    // The warnings route every option bracket in this parse reports through.\n    const warn = (warning) => parseWarnings.push(warning);\n\n    // Parse a Blissymbolics string and convert it to an internal representation (BlissComposition)\n    //Ex. \n    //inputString = \"[stroke-width=0.4;stroke-width=0.3]||[stroke-width=0.2]|H:3,4;E:2,4{hej}/C8:0,8;[color=green]E:0,11{hopp}/AA8N:0,2\"\n    //inputString = \"[stroke-width=0.4;stroke-width=0.3]||[stroke-width=0.2]|H:3,4;E:2,4/C8:0,8;[color=green]E:0,11/AA8N:0,2{hej hopp}\"\n\n    let placeholderMap = {};\n    let placeholderCount = 0;\n\n    // Preserve content in both {...} and [...] to protect spaces.\n    // {...} uses greedy match because text content must be able to contain any\n    // characters, including literal `{` and `}`. The downside is that multiple\n    // `{...}` blocks in one input collapse into a single match, which silently\n    // merges the glyphs between them. We emit UNSUPPORTED_TEXT_BLOCKS below to\n    // make that visible. Proper multi-block support requires a stateful\n    // tokenizer and ships with the {text} rendering feature.\n    // [...] uses non-greedy match since it can appear multiple times.\n    const originalInput = inputString;\n    inputString = inputString.replace(BRACKET_TOKEN_PATTERN, (match, textContent, optionContent) => {\n      let placeholder = `PLACEHOLDER_${placeholderCount++}`;\n      if (textContent !== undefined) {\n        placeholderMap[placeholder] = { content: textContent, openBracket: '{', closeBracket: '}' };\n        return '{' + placeholder + '}';\n      } else {\n        placeholderMap[placeholder] = { content: optionContent, openBracket: '[', closeBracket: ']' };\n        return '[' + placeholder + ']';\n      }\n    });\n\n    // {text} blocks parse onto group.text but do not render yet and are\n    // dropped from toString(), so EVERY block warns — a silent single block\n    // violated visible-not-silent. Counting `{` AFTER tokenization means a\n    // quoted `{` inside an option value never counts, a whole block counts\n    // once regardless of nested braces in its content, and a stray unmatched\n    // `{` still counts as a failed block attempt.\n    if ((inputString.match(/\\{/g) || []).length > 0) {\n      parseWarnings.push({\n        code: WARNING_CODES.UNSUPPORTED_TEXT_BLOCKS,\n        message: 'Text blocks ({...}) are not supported yet: the text does not render and is dropped from toString() output. Multiple {...} blocks in one input have undefined parse behavior until text-block tokenization ships. Use a single trailing {text} per group.',\n        source: originalInput,\n      });\n    }\n\n    // Remove all spaces in input string (but not in preserved content)\n    inputString = inputString.replace(/\\s/g, '');\n\n    // The text as written, as a warning quotes it and the `;;` overlay keeps\n    // it: each bracket the tokenizer set aside put back, and each letter drawn\n    // as text spelled as its X code rather than the routing key the X pass\n    // reads it under. The keys go first, while every bracket is still a\n    // placeholder, so the text of an option is never touched.\n    const restorePlaceholders = (str) => {\n      if (!str) return str; // Handle undefined/null/empty (matches #parseOptions behavior)\n      return withXCodesAsWritten(str).replace(/(\\{|\\[)PLACEHOLDER_(\\d+)(\\}|\\])/g, (match, open, num, close) => {\n        const placeholder = placeholderMap[`PLACEHOLDER_${num}`];\n        if (placeholder) {\n          const { content, openBracket, closeBracket } = placeholder;\n          return openBracket + content + closeBracket;\n        }\n        return match;\n      });\n    };\n\n    // An options bag with nothing left in it is stored as no options at all, so\n    // a bracket the stage emptied (every key misplaced at its scope) or one\n    // written empty leaves no `{}` artifact: its toJSON matches the bare form's.\n    const nonEmpty = (options) => (options && Object.keys(options).length > 0 ? options : undefined);\n\n    // Extract global options\n    let [_, globalOptionsString, globalCodeString] = inputString.match(/^\\s*(?:([^|]*)\\s*\\|\\|)?(.*)$/);\n    if (globalOptionsString && globalOptionsString.match(/^\\[.*\\]$/)) {\n      const restoredGlobal = restorePlaceholders(globalOptionsString);\n      // #parseOptions keeps the first bracket, so a duplicate warns and drops.\n      if (BlissParser.#hasMultipleOptionBrackets(globalOptionsString, restoredGlobal)) {\n        parseWarnings.push({\n          code: WARNING_CODES.MULTIPLE_OPTION_BRACKETS,\n          message: `Multiple option brackets before ||: \"${restoredGlobal}\". Only the first is applied; combine options in one bracket, e.g. [a;b]||.`,\n          source: restoredGlobal,\n        });\n      }\n      // Gated like every other scope: a global-only key is at HOME here, but a\n      // key bound to a lower scope (kerning) is as misplaced here as a global\n      // key is down there.\n      result.options = nonEmpty(this.#parseOptions(restoredGlobal, warn, { level: 'global', notation: 'bracket' })) || {};\n    } else {\n      if (globalOptionsString && globalOptionsString.length > 0) {\n        const restored = restorePlaceholders(globalOptionsString);\n        parseWarnings.push({\n          code: WARNING_CODES.MALFORMED_GLOBAL_OPTIONS,\n          message: `Invalid global options syntax: \"${restored}||\" - expected [options]|| format. Ignoring.`,\n          source: restored,\n        });\n      }\n      result.options = {};\n    }\n\n    // Step 1: Replace // patterns with /SP/ (space placeholder)\n    // Each // adds one SP, /// adds two SPs, etc.\n    const normalized = globalCodeString.replace(/\\/{2,}/g, match =>\n      '/' + 'SP/'.repeat(match.length - 1)\n    );\n\n    // Step 2: Split on / and group consecutive items by type (space vs non-space)\n    const glyphCodes = normalized.split('/').filter(s => s !== '');\n    const isSpaceCode = code => code === 'SP' || code === 'TSP' || code === 'QSP';\n\n    const groupedCodes = []; // Array of { codes: [...], isSpace: boolean }\n    for (const code of glyphCodes) {\n      const isSpace = isSpaceCode(code);\n      const lastGroup = groupedCodes[groupedCodes.length - 1];\n      if (lastGroup && lastGroup.isSpace === isSpace) {\n        lastGroup.codes.push(code);\n      } else {\n        groupedCodes.push({ codes: [code], isSpace });\n      }\n    }\n\n    // Step 3: Build parsed groups, staging spaces for TSP/QSP resolution\n    const parsedGroups = [];\n    for (let gi = 0; gi < groupedCodes.length; gi++) {\n      const { codes, isSpace } = groupedCodes[gi];\n\n      if (isSpace) {\n        // Keep explicit spaces and mark implicit SP for the later TSP/QSP pass.\n        // See Step 4 below for SP -> TSP/QSP resolution.\n        const spaceGlyphs = codes.map(code => {\n          const fromSP = code === 'SP';\n          return { parts: [{ codeName: fromSP ? 'TSP' : code, _fromSP: fromSP }] };\n        });\n        parsedGroups.push({ glyphs: spaceGlyphs, _isSpaceGroup: true, _spaceIndex: gi });\n        continue;\n      }\n\n      // Non-space group: parse normally\n      const tpgs = codes.join('/');\n\n      let group = { glyphs: [] };\n\n      let [_, twoPartGroupString, textKey] = tpgs.match(/(.*?)(?:\\{(.*?(?<!\\\\))\\})?$/);\n\n      if (textKey) {\n        group.text = placeholderMap[textKey]?.content ?? textKey;\n      }\n\n      // The separators are read before anything else in the word, so a word\n      // that fails on one reports once, never its brackets or its codes. The\n      // builder drops a failed word from the drawing and both saves, and\n      // reports it then (as it does a malformed `;;`).\n      const separators = BlissParser.#readWordSeparators(twoPartGroupString);\n      if (separators === null) {\n        const word = restorePlaceholders(twoPartGroupString);\n        group.errorCode = WARNING_CODES.MALFORMED_GROUP_OPTIONS;\n        group.error = `Invalid separator in the word \"${word}\": | goes only after a word's options at its start, as [options]|, and || only after the global options at the start of the input, as [options]||. The word was dropped.`;\n        group.errorSource = word;\n        parsedGroups.push(group);\n        continue;\n      }\n      const { options: beforePipe, content: groupCodeString, misplaced } = separators;\n      if (beforePipe !== undefined) {\n        if (beforePipe.match(/^\\[.*\\]$/)) {\n          const restoredBeforePipe = restorePlaceholders(beforePipe);\n          // #parseOptions keeps the first bracket, so a duplicate warns and drops.\n          if (BlissParser.#hasMultipleOptionBrackets(beforePipe, restoredBeforePipe)) {\n            parseWarnings.push({\n              code: WARNING_CODES.MULTIPLE_OPTION_BRACKETS,\n              message: `Multiple option brackets before |: \"${restoredBeforePipe}\". Only the first is applied; combine options in one bracket, e.g. [a;b]|.`,\n              source: restoredBeforePipe,\n            });\n          }\n          group.options = nonEmpty(this.#parseOptions(restoredBeforePipe, warn, { level: 'group', notation: 'bracket' }));\n        } else if (beforePipe.length > 0) {\n          const restoredBeforePipe = restorePlaceholders(beforePipe);\n          parseWarnings.push({\n            code: WARNING_CODES.MALFORMED_GROUP_OPTIONS,\n            message: `Invalid group options syntax: \"${restoredBeforePipe}|\" - expected [options]| format. Ignoring.`,\n            source: restoredBeforePipe\n          });\n        }\n      }\n      // An option bracket written inside the word stands in the wrong place:\n      // it is reported and left out unread, and the word renders.\n      for (const { spelling, isGlobal } of misplaced) {\n        const dropped = restorePlaceholders(spelling);\n        const word = restorePlaceholders(twoPartGroupString);\n        parseWarnings.push(isGlobal\n          ? {\n            code: WARNING_CODES.MISPLACED_GLOBAL_OPTION,\n            message: `Global options \"${dropped}\" ignored in the word \"${word}\": global options go only at the start of the input, as [options]||.`,\n            source: dropped,\n          }\n          : {\n            code: WARNING_CODES.MISPLACED_GROUP_OPTION,\n            message: `Group options \"${dropped}\" ignored in the word \"${word}\": word options go only at the start of a word, as [options]|.`,\n            source: dropped,\n          });\n      }\n\n      function replaceWithDefinition(str, definitions) {\n        const wordCode = str;\n\n        // Rule-3 automatic scan: skip exclusions from the start, stop at the\n        // first non-excluded character, or pick by priority tier when the\n        // whole word is exclusions. Each character is read by headScanCode, as\n        // the render reads it: a token of several `;` parts is never skipped,\n        // whatever code it names. A token of one part is matched by its own\n        // code first (glyphCode: a custom glyph wrapping an exclusion is its\n        // own character, not that exclusion); without one, _scanCode (the\n        // character code stashed at part creation) keeps exclusion matching\n        // immune to decorations written onto part strings by outer expansion\n        // levels.\n        const findFallbackHeadIndex = (parts) => resolveHeadIndex(parts.map((p) =>\n          headScanCode(p.glyphCode, partSegmentsOf(p.part).length, p._scanCode ?? p.part.split(';')[0])));\n\n        // A space carries neither a designation nor a word indicator: TSP/\n        // QSP/ZSA groups serialize as bare word breaks ('//'), so a `^` or\n        // `;;` stored on one is eaten by toString and lost on reparse.\n        // A DECORATED space token skips the\n        // step-2 space branch (the token is not exactly SP/TSP/QSP) and lands\n        // here; classify by the expanded part's resolved code.\n        const isSpacePart = (p) => {\n          const partCode = p._scanCode ?? (p.part ? p.part.split(';')[0].split(':')[0] : '');\n          return partCode === 'TSP' || partCode === 'QSP' || partCode === 'ZSA';\n        };\n\n        // Per-word-string head resolution (head-marker contract):\n        // rule 2 -- the leftmost written marker (_marker) in this word-string\n        // wins; later ones warn and drop. With no written marker, rule 3\n        // scans for the head position and rule 4 redirects the crown to the\n        // designated head (_designation) of the fragment the scan stopped in.\n        const resolveWordStringHead = (parts, label) => {\n          const markerIndexes = parts.flatMap((p, i) => (p._marker ? [i] : []));\n          for (const laterIndex of markerIndexes.slice(1)) {\n            delete parts[laterIndex]._marker;\n            parseWarnings.push({ code: WARNING_CODES.MULTIPLE_HEAD_MARKERS, message: `Multiple head markers (^) found in word: ${label}. Using first marked glyph.`, source: label });\n          }\n          if (markerIndexes.length > 0) {\n            delete parts[markerIndexes[0]]._marker;\n            return { index: markerIndexes[0], isDesignated: true };\n          }\n          const stop = findFallbackHeadIndex(parts);\n          // Designated parts always carry _frag, so a fragment-less stop\n          // (frag === undefined) can never match one.\n          const frag = parts[stop]._frag;\n          const designated = parts.findIndex(p => p._frag === frag && p._designation);\n          if (designated !== -1) return { index: designated, isDesignated: true };\n          return { index: stop, isDesignated: false };\n        };\n\n        // Consume a fragment's resolution into a single upward-facing\n        // designation: an embedded alias contributes its characters plus at\n        // most one designated head (rule 4); deeper bookkeeping is cleared.\n        let fragCounter = 0;\n        // Seal a span into upward-facing designations. A span containing\n        // _wordBreak markers (a nested multi-word alias) is chunked at the\n        // breaks and each word-string is sealed on its own fragment, so a\n        // marker in a non-first word keeps its designation (rule 2: each\n        // // word-string resolves independently). Returns the first word's\n        // resolution in full-span coordinates, for callers that target the\n        // first word's head (WORD;INDICATORS). A break-free span seals as a\n        // single fragment, exactly as before.\n        const sealFragment = (parts, label) => {\n          let firstResolved = null;\n          const sealChunk = (start, end) => {\n            const chunk = parts.slice(start, end);\n            // Skip empty chunks (adjacent/leading/trailing breaks, or an empty\n            // span) so resolveWordStringHead is never handed []. Also the empty\n            // -span guard: a break-free empty span produces one empty chunk and\n            // returns null.\n            if (chunk.length === 0) return;\n            const resolved = resolveWordStringHead(chunk, label);\n            const fragId = ++fragCounter;\n            for (const p of chunk) {\n              delete p._designation;\n              p._frag = fragId;\n            }\n            if (resolved.isDesignated) chunk[resolved.index]._designation = true;\n            if (firstResolved === null) {\n              firstResolved = { index: start + resolved.index, isDesignated: resolved.isDesignated };\n            }\n          };\n          let chunkStart = 0;\n          for (let i = 0; i < parts.length; i++) {\n            if (parts[i]._wordBreak) {\n              sealChunk(chunkStart, i);\n              chunkStart = i + 1;\n            }\n          }\n          sealChunk(chunkStart, parts.length);\n          return firstResolved;\n        };\n\n        // Resolve and crown one final word: only an explicit `^`/designation\n        // is stamped. Fallback heads stay unstamped and are resolved at query\n        // time (render/serialize/snapshot) via resolveHeadIndex, so the stamp\n        // can never go stale after a structural mutation reorders the word.\n        const crownWordChunk = (parts, label) => {\n          if (parts.length === 0) return;\n          const resolved = resolveWordStringHead(parts, label);\n          if (resolved.isDesignated) {\n            parts[resolved.index].isHeadGlyph = true;\n          }\n        };\n\n        // Split expanded parts at word-break markers and crown each word\n        // independently (rule 2: words split by // each have their own head).\n        const crownWordChunks = (parts, label) => {\n          let chunk = [];\n          for (const p of parts) {\n            if (p._wordBreak) {\n              crownWordChunk(chunk, label);\n              chunk = [];\n            } else {\n              chunk.push(p);\n            }\n          }\n          crownWordChunk(chunk, label);\n        };\n\n        // A bare alias is shorthand: it draws the parts it expands to, so its\n        // own options are theirs, on every part of every character it draws,\n        // never on a character, where they would style a part added beside\n        // them. Each expanded token carries them for the glyph loop, merged\n        // over what an inner link of the chain brought: the outer link wins a\n        // key both set. A space draws nothing and takes no option.\n        const giveAliasOptions = (parts, options) => {\n          for (const p of parts) {\n            if (!isSpaceGlyph(p._scanCode)) p.partOptions = { ...p.partOptions, ...options };\n          }\n        };\n\n        // Helper: resolve codeString through aliases to check if it's a word.\n        const resolveToFinalCodeString = (code) => finalCodeStringOf(code, definitions);\n\n        // An indicator (char-level `;` or word-level `;;`) binds to exactly one\n        // word. When it is bound to a single ALIAS token that expands to MORE\n        // THAN ONE word (a `_wordBreak` survives expansion), there is no single\n        // head to carry it, so the binding is invalid. Fail the whole unit:\n        // collapse the word-break expansion into one group (filter the breaks so\n        // no `//` split survives) and flag it with `_wordError`, exactly like the\n        // malformed-`;;` path. The assembly loop lifts the flag onto\n        // group.errorCode and the L1 fail-render mechanism collapses it to ONE\n        // placeholder (error-placeholder on) or nothing (off). This replaces the\n        // legacy silent drop (direct `//` alias) and first-word-head attach\n        // (nested alias / `;;` overlay). errorSource is the whole group string\n        // (`wordCode`) so toString re-emits it and parse(toString(x)) re-flags;\n        // the flag is static + sticky and the splitAt/mergeWithNext guards key\n        // off group.errorCode. The rule applies uniformly to direct and nested\n        // aliases.\n        const failMultiWordIndicator = (parts) => {\n          // Filtering the `_wordBreak` markers collapses the multi-word\n          // expansion into one group; any head markers the words carried are\n          // already sealed to per-word designations by sealFragment during\n          // expansion (so the collapse cannot re-trigger MULTIPLE_HEAD_MARKERS)\n          // and are inert anyway, since a placeholder renders for the unit.\n          const collapsed = parts.filter(p => !p._wordBreak);\n          if (collapsed.length > 0) {\n            // Restore placeholders: errorSource re-emits from toString, so a\n            // stored placeholder token would replace the user's option text.\n            collapsed[0]._wordError = {\n              code: WARNING_CODES.MALFORMED_WORD_INDICATOR,\n              message: `Indicator bound to the multi-word unit \"${restorePlaceholders(wordCode)}\": an indicator targets a single word, but this expands to multiple words.`,\n              source: restorePlaceholders(wordCode),\n            };\n          }\n          return collapsed;\n        };\n\n        // Detect ;; for word-level indicators on inline multi-character expressions.\n        // Pattern: baseCode;;indicators. Instead of baking the indicators\n        // onto the head glyph, store them as a reversible overlay on the group.\n        // The base glyphs expand and crown as usual; the overlay is resolved onto\n        // the head at decode time (render + serialize) via\n        // mergeWordIndicatorsOntoHead, so `;;` round-trips and clears non-\n        // destructively. Single ;; on a pre-defined word also becomes an overlay\n        // (scope-fenced: single ; on a word still bakes via replaceWithDefinition).\n        const wordLevelMatch = str.match(/^(.+);;(.*)$/);\n        if (wordLevelMatch) {\n          const [_, baseCode, rawIndicators] = wordLevelMatch;\n\n          // A word-level indicator list must be the trailing part of the word:\n          // exactly one `;;`, and no `/`-separated glyph after the indicators\n          // (greedy match means rawIndicators holds everything after the last\n          // `;;`). Otherwise the whole WORD is invalid: a word-level indicator\n          // is a word property (it sets part-of-speech), so a malformed one\n          // invalidates the word, not one character. Stash a word-error on the\n          // first part; the assembly loop lifts it onto group.errorCode, where\n          // the element collapses the word to a single error placeholder (the\n          // L1 analogue of the L2 character placeholder) and records ONE warning.\n          // str is inside the wordLevelMatch guard, so it always contains `;;`\n          // (match is non-null). The base still expands to real (non-space)\n          // glyphs so the failed group advances like a normal word; those glyphs\n          // are not rendered (the placeholder stands in), and toString re-emits\n          // the original `str` so parse(toString(x)) re-flags (round-trip).\n          const isMalformed = str.match(/;;/g).length > 1 || rawIndicators.includes('/');\n          if (isMalformed) {\n            // Expand the fallback NOT at top level: this malformed `;;` already\n            // fail-renders with MALFORMED_WORD_INDICATOR, so the re-expansion must\n            // not also emit a spurious char-level MISPLACED_CHARACTER_INDICATOR\n            // when the base is a bare alias or word. (Strict Indicator Separation.)\n            const fallbackParts = str.replace(/;;/g, ';').split('/').flatMap(strPart => expand(strPart, definitions, false));\n            // A malformed `;;` whose base expands past a word break (a multi-word\n            // `//` alias) yields several word-groups; rendering them all makes\n            // toString re-emit the full expansion, so the round-trip grows without\n            // bound on every pass. Collapse to one fail-placeholder (verbatim\n            // round-trip via errorSource = wordCode), mirroring the well-formed\n            // multi-word `;;` fail below. (Strict Indicator Separation.)\n            if (fallbackParts.some(p => p._wordBreak)) {\n              return failMultiWordIndicator(fallbackParts);\n            }\n            crownWordChunks(fallbackParts, wordCode);\n            if (fallbackParts.length > 0) {\n              // Restore placeholders: errorSource re-emits from toString, so a\n              // stored placeholder token would replace the user's option text.\n              fallbackParts[0]._wordError = {\n                code: WARNING_CODES.MALFORMED_WORD_INDICATOR,\n                message: `Malformed word-level indicator in \"${restorePlaceholders(str)}\": ;; must be the trailing part of a word.`,\n                source: restorePlaceholders(str),\n              };\n            }\n            return fallbackParts;\n          }\n\n          const stripSemantic = rawIndicators.startsWith('!');\n          const indicators = stripSemantic ? rawIndicators.slice(1) : rawIndicators;\n\n          // Process baseCode using the normal flow (splits on / and expands each\n          // part): definitions, ^ markers, options, etc.\n          const expandedParts = baseCode.split('/').flatMap(strPart => expand(strPart, definitions));\n\n          // A ;; overlay binds to ONE word. Bound to a multi-word alias (the base\n          // expands past a word break), it has no single head: fail the whole\n          // unit instead of overlaying only the first word (uniform\n          // with the char-level multi-word-alias fail in expandSegment).\n          if (expandedParts.some(part => part._wordBreak)) {\n            return failMultiWordIndicator(expandedParts);\n          }\n\n          // A space carries no word indicator: the overlay\n          // would be stored, then eaten by the '//' serialization. Warn ONCE\n          // for the whole overlay (strip included) and keep the plain space —\n          // a misplaced decoration on valid content is dropped, not\n          // fail-rendered.\n          if (expandedParts.length > 0 && expandedParts.every(isSpacePart)) {\n            parseWarnings.push({\n              code: WARNING_CODES.MISPLACED_WORD_INDICATOR,\n              message: `Word-level indicator (;;${rawIndicators}) ignored on \"${restorePlaceholders(str)}\": a space cannot carry a word indicator.`,\n              source: restorePlaceholders(str),\n            });\n            crownWordChunks(expandedParts, wordCode);\n            return expandedParts;\n          }\n\n          // Resolve and crown the word so the head is identifiable at decode.\n          crownWordChunks(expandedParts, wordCode);\n\n          // Stash the overlay on the first part; the assembly loop lifts it onto\n          // the group. Codes are merged/indicator-filtered at decode, not here;\n          // filter(Boolean) drops empties so a bare `;;` yields an empty list.\n          // With char-level promotion gone, no leading glyph can pre-claim the\n          // word-level slot, so this explicit `;;` overlay always wins here. (A\n          // `/`-composition of two explicit `;;` overlays is still resolved\n          // first-wins by the assembly loop below.) (Strict Indicator Separation.)\n          // Restore each code's placeholders AFTER splitting: a part-level\n          // option (`[color=red]>B81`) is placeholder-substituted early, so its\n          // internal `;` is safe to split on here; restoring before the split\n          // would re-expose that `;` and break a multi-key option.\n          const rawCodes = indicators.split(';').filter(Boolean).map((c) => restorePlaceholders(c));\n\n          // An overlay code may carry a part option ([opts]>B81). Its\n          // bracket meets the same global-only key gate as any part bracket,\n          // but the overlay stores code STRINGS verbatim (parsed only at\n          // render-merge), so a gated key must be stripped from the stored\n          // string itself or toString would re-serialize the warned no-op\n          // forever. Clean codes pass through untouched; a\n          // stripped prefix is rebuilt with the shared quote-aware key=value\n          // emission (serializeOptionValue), so a kept quoted value survives\n          // the rebuild.\n          const gatedCodes = rawCodes.map((code) => {\n            // A CHARACTER-form prefix ([opts]CODE, no >) is inert in overlay\n            // position for EVERY key -- the render-merge extracts parts only,\n            // so the bracket styles nothing, yet it used to re-serialize\n            // forever with no warning anywhere.\n            // The whole bracket is misplaced (a word-indicator code has\n            // no character to bind to); [opts]> is the styled form. EVERY\n            // leading char-form bracket strips in this ONE pass (one warning\n            // each) BEFORE the part-form gate runs: the part-form regex would\n            // otherwise backtrack across stacked brackets ([a][b]>CODE read\n            // as one prefix whose #parseOptions sees only bracket one),\n            // leaving later keys unreached or losing a valid later bracket\n            // with the misplaced first one.\n            let current = code;\n            let charPrefix;\n            while ((charPrefix = current.match(OVERLAY_CHAR_OPTION_PATTERN)) !== null) {\n              parseWarnings.push({\n                code: WARNING_CODES.MISPLACED_CHARACTER_OPTION,\n                message: `Character option (${charPrefix[1]}) ignored on the word indicator \"${charPrefix[3]}\": a ;; code has no character to style. Use ${charPrefix[1]}>${charPrefix[3]} to style the indicator part.`,\n                source: current,\n              });\n              current = charPrefix[3];\n            }\n            const optionPrefix = current.match(OVERLAY_PART_OPTION_PATTERN);\n            if (!optionPrefix) return current;\n            // This pass INSPECTS the bracket rather than ingesting it: when\n            // no key is misplaced, the written text is returned untouched and\n            // parsed again for real downstream. So the stage's reports are\n            // buffered and released only when a key was dropped for its scope,\n            // which is the branch that REWRITES the text and so the last place\n            // the written spellings are visible. Passing them straight through\n            // would report a collapse twice.\n            const reports = [];\n            const kept = BlissParser.#parseOptions(optionPrefix[1], (w) => reports.push(w), { level: 'part', notation: 'bracket' }) ?? {};\n            if (!reports.some(isScopeRefusal)) return current;\n            parseWarnings.push(...reports);\n            const keptEntries = Object.entries(kept);\n            if (keptEntries.length === 0) return optionPrefix[3];\n            return `[${keptEntries.map(([k, v]) => v === true ? k : `${k}=${serializeOptionValue(v)}`).join(';')}]>${optionPrefix[3]}`;\n          });\n\n          // A `;;` word-level indicator must BE an indicator. Validate + drop here\n          // (not silently at render): a recognized non-indicator (a real base)\n          // warns NON_INDICATOR_AS_WORD_INDICATOR, an unrecognized code warns\n          // UNKNOWN_CODE, and either way the offender is DROPPED so it does not\n          // re-serialize. The base still renders as written -- a bad decoration on\n          // valid content is dropped, not fail-rendered.\n          // resolveWordIndicatorOverlay is the shared classify + store rule (the\n          // DSL, API, and object surfaces all use it, so they agree); it returns\n          // null when the codes were all dropped and there is no strip. (Strict\n          // Indicator Separation.) Its 'word-structure' reject reason cannot\n          // fire on this path: any `/` in the `;;` tail already failed the\n          // whole word at the isMalformed gate above, so this callback maps\n          // only 'non-indicator' and 'unknown'.\n          const overlay = resolveWordIndicatorOverlay(gatedCodes, stripSemantic, definitions, ({ code: badCode, reason }) => {\n            parseWarnings.push(reason === 'non-indicator'\n              ? {\n                  code: WARNING_CODES.NON_INDICATOR_AS_WORD_INDICATOR,\n                  message: `Word-level indicator \"${badCode}\" after ;; is not an indicator; it is ignored. A ;; code must be an indicator (e.g. B81).`,\n                  source: badCode,\n                }\n              : {\n                  code: WARNING_CODES.UNKNOWN_CODE,\n                  message: `Word-level indicator \"${badCode}\" after ;; is not a known code; it is ignored.`,\n                  source: badCode,\n                });\n          });\n\n          if (overlay && expandedParts.length > 0) {\n            expandedParts[0]._wordIndicators = overlay;\n          }\n\n          return expandedParts;\n        }\n\n        // isTopLevel: true for user input, false for internal codeString expansion\n        // Indicator replacement only applies at top level (user input)\n        function expand(str, definitions, isTopLevel = true, depth = 0) {\n          let hasMarker = false;\n          if (str.endsWith('^')) {\n            hasMarker = true;\n            str = str.slice(0, -1);\n          }\n          // A head marker attaches to the END of a character, after its\n          // indicators (`B291;B81^`). A character includes its indicators, so a\n          // `^` written on the base before the indicator separator (`B291^;B81`)\n          // is MISPLACED -- not a synonym for the trailing form. Strip it so the\n          // base is not lost as an unknown code (`B291^`), but DROP it with a\n          // warning rather than honoring it (parallel to a `^` on a multi-\n          // character alias below); the user must write it at the character's end.\n          const caretBeforeIndicator = str.match(/^(.*?)\\^(;.*)$/);\n          if (caretBeforeIndicator) {\n            const cleaned = caretBeforeIndicator[1] + caretBeforeIndicator[2];\n            parseWarnings.push({\n              code: WARNING_CODES.MISPLACED_HEAD_MARKER,\n              message: `Head marker (^) ignored on \"${restorePlaceholders(str)}\": it must mark the end of a character, after its indicators (e.g. \"${restorePlaceholders(cleaned)}^\"), not the base before them.`,\n              source: restorePlaceholders(str),\n            });\n            str = cleaned;\n          }\n          const parts = expandSegment(str, definitions, isTopLevel, depth);\n          if (hasMarker) {\n            if (parts.length === 1) {\n              if (isSpacePart(parts[0])) {\n                // A space cannot be a word's head: warn +\n                // drop, never store a designation the space serialization\n                // ('//') cannot re-emit.\n                parseWarnings.push({\n                  code: WARNING_CODES.MISPLACED_HEAD_MARKER,\n                  message: `Head marker (^) ignored on \"${restorePlaceholders(str)}\": a space cannot be a word's head.`,\n                  source: restorePlaceholders(str),\n                });\n              } else {\n                // Rule 1: ^ attaches to a character (one expanded glyph),\n                // including an alias that resolves to a single character.\n                parts[0]._marker = true;\n              }\n            } else {\n              parseWarnings.push({\n                code: WARNING_CODES.MISPLACED_HEAD_MARKER,\n                message: `Head marker (^) ignored on \"${restorePlaceholders(str)}\": it expands to multiple characters. Mark a single character instead.`,\n                source: restorePlaceholders(str),\n              });\n            }\n          }\n          return parts;\n        }\n\n        function expandSegment(str, definitions, isTopLevel, depth) {\n          if (depth > MAX_RECURSION_DEPTH) throw new Error('Maximum recursion depth exceeded');\n\n          // A `>` with no bracket in front of it is an option region carrying\n          // nothing, exactly like a bare `||` or `|`, and the documented rule\n          // for those is that the code \"stays plain content\". Consume it here,\n          // before any bracket matching, so the code keeps the identity it\n          // would have had written bare -- `>B291` IS `B291`, not the empty\n          // part region `[]>B291`, which leaves the glyph anonymous. Exactly\n          // one is consumed: two empty regions spell nothing, and the global\n          // scope does not tolerate a doubled separator either.\n          str = str.replace(/^>/, '');\n\n          // Handle part-level options with > (like [x=2]>B291 or [color=red]>XW)\n          const partLevelMatch = str.match(/^(\\[.*?\\])>(.+)$/);\n          if (partLevelMatch) {\n            const optionBracket = partLevelMatch[1];\n            let partContent = partLevelMatch[2];\n            // A SECOND part bracket is invalid syntax that parseParts warns\n            // about and drops, so strip the extras here as well: the gate below\n            // and the metadata lift both need to see the real code behind them.\n            // `str` is left intact, so parseParts still reports each extra\n            // exactly once. Without this a word alias behind two part brackets\n            // was never recognized as a word and failed as a part.\n            const extraPartBrackets = [];\n            let extraPartBracket;\n            while ((extraPartBracket = partContent.match(/^(\\[[^\\[\\]]*\\])>(.+)$/)) !== null) {\n              extraPartBrackets.push(extraPartBracket[1]);\n              partContent = extraPartBracket[2];\n            }\n            // When the code turns out to be a WORD the branch below recurses on\n            // the stripped content, so parseParts never sees those extras and\n            // cannot report them. Report them here in that case only, or they\n            // would vanish with nothing said (the character scope does the same\n            // for the same reason, a few lines down).\n            const warnDroppedPartBrackets = () => {\n              for (const dropped of extraPartBrackets) {\n                const restored = restorePlaceholders(dropped);\n                parseWarnings.push({\n                  code: WARNING_CODES.MULTIPLE_OPTION_BRACKETS,\n                  message: `Multiple option brackets on one part: \"${restored}\" is ignored. Only the first is applied; combine options in one bracket, e.g. [a;b]>.`,\n                  source: restored,\n                });\n              }\n            };\n            // Option-placement scope gate (mirrors the char-level `;` MISPLACED\n            // gate below). A part option binds to a single part, so `[opts]>` on\n            // an alias that expands to a WORD is MISPLACED: warn, drop the\n            // option, and expand the rest as if written bare (a trailing\n            // `;`-part then meets the normal gate). The word check runs at ANY\n            // level -- a definition baking `[opts]>WORDALIAS` behaves like the\n            // written form (the old WORD_AS_PART fail serialized to a form that\n            // re-parsed differently). A `;`-part behind a validly placed\n            // `[opts]>` on a bare alias meets the same MISPLACED rule this\n            // early return used to bypass: warn, drop the parts, keep the\n            // option on the base; scoped to top level in parity with the `;`\n            // gate below.\n            const [gateBaseRaw, ...gateParts] = partContent.split(';');\n            const gateCoordMatch = gateBaseRaw.match(COORD_SUFFIX_PATTERN);\n            const gateBase = gateCoordMatch && gateCoordMatch.index > 0\n              ? gateBaseRaw.slice(0, gateCoordMatch.index)\n              : gateBaseRaw;\n            if (resolveToFinalCodeString(gateBase)?.includes('/')) {\n              warnDroppedPartBrackets();\n              parseWarnings.push({\n                code: WARNING_CODES.MISPLACED_PART_OPTION,\n                message: `Part option (${restorePlaceholders(optionBracket)}>) ignored on \"${restorePlaceholders(gateBase)}\": > applies an option to a single part, but this is a word. Use ${restorePlaceholders(optionBracket)}|| to apply it to the whole content.`,\n                source: restorePlaceholders(gateBase),\n              });\n              return expandSegment(partContent, definitions, isTopLevel, depth);\n            }\n            if (isTopLevel) {\n              const gateDef = definitions[gateBase];\n              const gateBaseIsBareAlias = !!gateDef && gateDef.codeString !== undefined\n                && !gateDef.isBlissGlyph && !gateDef.isShape\n                && !gateDef.isExternalGlyph && !gateDef.glyphCode;\n              const droppedParts = gateParts.filter(p => p !== '');\n              if (gateBaseIsBareAlias && droppedParts.length > 0) {\n                parseWarnings.push({\n                  code: WARNING_CODES.MISPLACED_CHARACTER_INDICATOR,\n                  message: `Character indicator (;${droppedParts.join(';')}) ignored on \"${restorePlaceholders(gateBase)}\": ; composes onto a single character, but this is a word. Use ;; for a word-level indicator.`,\n                  source: restorePlaceholders(gateBase),\n                });\n                partContent = gateBaseRaw;\n                str = `${optionBracket}>${gateBaseRaw}`;\n              }\n            }\n            // The code behind the bracket is read as the gate above reads it,\n            // without its `;` parts or coordinate: `[color=red]>Xa;B86` is the\n            // letter a. Reading everything up to the first `:` left the parts\n            // attached, so the lookup named nothing and the letter was spaced\n            // as a Bliss character. A text-fallback code is never in the\n            // registry, and is derived the way the other XTXT_ sites derive it.\n            const definition = layoutDefinitionOf(gateBase, definitions) ?? {};\n            // The identity code stays on the PART here: `[opts]>` binds the\n            // option to a part, so the glyph is an anonymous wrapper around a\n            // named part. Only the layout data is lifted, so the glyph spaces,\n            // kerns and pulls in the word space before it as the bare spelling\n            // does. See the toJSON metadata gate in bliss-svg-builder.js, which\n            // must keep that data for a glyph with no code of its own.\n            return [{\n              part: str,\n              _scanCode: partContent.split(';')[0].split(':')[0],\n              ...(definition.shrinksPrecedingWordSpace === true && { shrinksPrecedingWordSpace: true }),\n              ...(definition.isExternalGlyph && { isExternalGlyph: definition.isExternalGlyph }),\n              ...(definition.char && { char: definition.char }),\n              ...(definition.kerningRules && { kerningRules: definition.kerningRules }),\n            }];\n          }\n\n          // Strip leading glyph-level bracket options. EVERY one of them, not\n          // just the first: a second bracket at one scope is invalid syntax\n          // that the glyph-level peel warns about and drops, so the code behind\n          // it must still resolve. Stripping only the first left a word alias\n          // unresolvable (`[a][b]MYWORD` looked up `[b]MYWORD`), so the\n          // character failed with WORD_AS_PART although the single-bracket\n          // spelling renders it. The prefix that APPLIES is still the first.\n          const optionsMatch = str.match(/^(\\[.*?\\])(?!>)/);\n          const optionsPrefix = optionsMatch ? optionsMatch[1] : '';\n          let codeForLookup = str;\n          const strippedBrackets = [];\n          let strippedBracket;\n          while ((strippedBracket = codeForLookup.match(/^(\\[.*?\\])(?!>)/)) !== null) {\n            strippedBrackets.push(strippedBracket[1]);\n            codeForLookup = codeForLookup.slice(strippedBracket[1].length);\n          }\n          // Where a definition's expansion is written back, ALL the brackets go\n          // in front of it, so the glyph-level peel applies the first and\n          // reports the rest. Where the option is dropped as misplaced instead,\n          // the text reaches no peel, so the rest are reported here.\n          const writtenBrackets = strippedBrackets.join('');\n          const reportExtraBrackets = () => {\n            for (const dropped of strippedBrackets.slice(1)) {\n              const restored = restorePlaceholders(dropped);\n              parseWarnings.push({\n                code: WARNING_CODES.MULTIPLE_OPTION_BRACKETS,\n                message: `Multiple option brackets on one character: \"${restored}\" is ignored. Only the first is applied; combine options in one bracket, e.g. [a;b].`,\n                source: restored,\n              });\n            }\n          };\n\n          const [potentialBaseCodeRaw, ...rawIndicators] = codeForLookup.split(';');\n          // Strict Indicator Separation: `;` is dumb part-composition, so the\n          // `!` strip-semantic shortcut no longer has a special parse. A `!`\n          // after a single `;` is just part of an (invalid) appended code.\n          const filteredIndicators = rawIndicators.filter(ind => ind !== '');\n\n          // Strip position modifier (e.g. \":2,0\", \":,2\", \":-1.5,3\") from base\n          // code so definition lookup works for codes like \"WORD:2,0\"; the\n          // shared pattern matches the full grammar parsePartString accepts,\n          // so a y-only \":,2\" resolves the same definition as \":0,2\".\n          const posMatch = potentialBaseCodeRaw.match(COORD_SUFFIX_PATTERN);\n          const hasPosSuffix = posMatch && posMatch.index > 0;\n          const potentialBaseCode = hasPosSuffix\n            ? potentialBaseCodeRaw.slice(0, posMatch.index)\n            : potentialBaseCodeRaw;\n          const positionSuffix = hasPosSuffix ? posMatch[0] : '';\n\n          const resolvedCodeString = resolveToFinalCodeString(potentialBaseCode);\n          const isWordDefinition = resolvedCodeString?.includes('/') ?? false;\n\n          // A bare alias (a `{codeString}`-only definition, no glyph flag) is a\n          // WORD unit, not a single character; a multi-glyph word is many\n          // characters. In both cases a char-level `;`-part has no single\n          // character to attach to, so it is MISPLACED: warn once, drop it, and\n          // render the base as defined (the head keeps any baked indicator). A\n          // glyph / literal / unknown code is a single character and dumb-appends\n          // the part (base case / built-in path below). Use `;;` for a word-level\n          // indicator.\n          const baseCodeDef = definitions[potentialBaseCode];\n          const baseIsBareAlias = !!baseCodeDef && baseCodeDef.codeString !== undefined\n            && !baseCodeDef.isBlissGlyph && !baseCodeDef.isShape\n            && !baseCodeDef.isExternalGlyph && !baseCodeDef.glyphCode;\n          const misplacedCharIndicator = isTopLevel\n            && (baseIsBareAlias || isWordDefinition)\n            && filteredIndicators.length > 0;\n          if (misplacedCharIndicator) {\n            parseWarnings.push({\n              code: WARNING_CODES.MISPLACED_CHARACTER_INDICATOR,\n              message: `Character indicator (;${filteredIndicators.join(';')}) ignored on \"${restorePlaceholders(potentialBaseCode)}\": ; composes onto a single character, but this is a word. Use ;; for a word-level indicator.`,\n              source: restorePlaceholders(potentialBaseCode),\n            });\n          }\n\n          // A trailing/empty `;` (no real part: `B291;`, `WORD;`) is inert. It\n          // must resolve the BASE definition so the code keeps its identity and\n          // metadata (the `;` is normalized away in toString); it is neither a\n          // dumb append nor misplaced.\n          const isEmptyStrip = rawIndicators.length > 0 && filteredIndicators.length === 0;\n\n          // Use base code lookup for words, a misplaced char indicator (both\n          // render the base definition; the misplaced part is dropped), and an\n          // inert empty `;` (preserve the base definition's metadata).\n          const useBaseCodeLookup = isWordDefinition || misplacedCharIndicator || isEmptyStrip;\n          const definition = useBaseCodeLookup\n            ? (definitions[potentialBaseCode] || {})\n            : codeForLookup.startsWith('XTXT_')\n              ? textFallbackDefinitionOf(codeForLookup)\n              : (definitions[codeForLookup] || {});\n\n          // If we have a codeString, recursively expand it\n          if (definition.codeString) {\n            // Strict Indicator Separation: `;` no longer rewrites a definition's\n            // baked indicators, so the codeString expands verbatim.\n            //\n            // X-runs are string-level sugar, so they have to be resolved before\n            // the string is read as a sequence of codes. The top-level input is\n            // processed on entry; a definition's codeString is a code string in\n            // its own right and gets the same treatment here, which is the one\n            // point every definition passes through at every nesting depth.\n            // The pass is identity for any string without an X-run, and no\n            // built-in definition contains one.\n            //\n            // What is expanded is the code the definition draws: a bracket\n            // leading its code string is the definition's own options, which\n            // travel with its defaultOptions below. What the read reports is\n            // held until the definition is known not to become one named part\n            // (below), whose own read in parseParts reports it instead. A code\n            // string has a bracket of its own only where it draws one\n            // character, and no built-in's does, so the branches returning\n            // before that point have nothing held.\n            const heldReports = [];\n            const { codeString: drawnCodeString, options: ownOptions } = BlissParser.#readDefinition(potentialBaseCode, definition, (report) => heldReports.push(report));\n            const codeStringToExpand = processXCodes(drawnCodeString);\n            const isBareAlias = BlissParser.#isBareAlias(definition);\n\n            // Built-in single-character codes: skip expansion, let parseParts handle it.\n            // This eliminates the flatten-then-unflatten pattern where expand() substitutes\n            // a B-code's codeString (e.g. B291 → \"S8:0,8\") only for a later wrapping patch\n            // to reconstruct the nesting. Word codes (codeString with /) must still be\n            // expanded here because word decomposition produces multiple glyphs.\n            //\n            // The definition's own options are not carried to the character:\n            // parseParts gives them to the part the code names, so they style\n            // what the code draws and never a part added beside it (`REFSQUARE`'s\n            // dotted line stays off an indicator, however the indicator is added).\n            if (builtInCodes.has(potentialBaseCode)\n                && !codeStringToExpand.includes('/')) {\n              return [{\n                part: str.replace(/;$/, ''),\n                _scanCode: potentialBaseCode,\n                ...(definition.shrinksPrecedingWordSpace === true && { shrinksPrecedingWordSpace: true }),\n                ...(definition.isIndicator === true && { isIndicator: true }),\n                ...(definition.isExternalGlyph && { isExternalGlyph: definition.isExternalGlyph }),\n                ...(definition.char && { char: definition.char }),\n                ...(definition.kerningRules && { kerningRules: definition.kerningRules }),\n                ...(definition.glyphCode && { glyphCode: definition.glyphCode }),\n                ...(definition.isBlissGlyph && { isBlissGlyph: definition.isBlissGlyph }),\n              }];\n            }\n\n            // Handle // in codeString: split into word segments with break markers\n            if (codeStringToExpand.includes('//')) {\n              const wordSegments = codeStringToExpand.split('//');\n              const allParts = [];\n              for (let i = 0; i < wordSegments.length; i++) {\n                if (i > 0) allParts.push({ part: '', _wordBreak: true });\n                const segmentParts = wordSegments[i].split('/')\n                  .flatMap(s => expand(s, definitions, false, depth + 1));\n                // Rule 2: each //-segment of the codeString is its own\n                // word-string; seal its markers into a fragment designation.\n                sealFragment(segmentParts, potentialBaseCode);\n                allParts.push(...segmentParts);\n              }\n              // Apply position suffix to first non-break part\n              if (positionSuffix && allParts.length > 0) {\n                const firstReal = allParts.find(p => !p._wordBreak);\n                if (firstReal) {\n                  const semiParts = firstReal.part.split(';');\n                  if (!WRITTEN_COORDINATE_PATTERN.test(semiParts[0])) {\n                    semiParts[0] += positionSuffix;\n                  }\n                  firstReal.part = semiParts.join(';');\n                }\n              }\n              // Only a bare alias can spell words (`define()` refuses a typed\n              // one), so its options go to the parts of every word.\n              if (ownOptions) giveAliasOptions(allParts, ownOptions);\n              // A char-level option on a multi-word (//) alias is MISPLACED\n              // (B4): a character option applies to a single character. Warn +\n              // drop at top level; nested expansion keeps its prepend behavior.\n              if (optionsPrefix && allParts.length > 0) {\n                if (isTopLevel) {\n                  reportExtraBrackets();\n                  parseWarnings.push({\n                    code: WARNING_CODES.MISPLACED_CHARACTER_OPTION,\n                    message: `Character option (${restorePlaceholders(optionsPrefix)}) ignored on \"${restorePlaceholders(potentialBaseCode)}\": it applies to a single character, but this expands to multiple words. Use ${restorePlaceholders(optionsPrefix)}|| to apply it to the whole content.`,\n                    source: restorePlaceholders(potentialBaseCode),\n                  });\n                } else {\n                  allParts[0].part = writtenBrackets + allParts[0].part;\n                }\n              }\n              // A char-level `;`-part on a multi-word (//) alias is MISPLACED\n              // (warned up front): render every word and drop the part.\n              return allParts;\n            }\n\n            // First expand to get all parts (including nested expansions)\n            const rawExpandedParts = codeStringToExpand.split('/')\n              .flatMap(subStr => expand(subStr, definitions, false, depth + 1));\n\n            // Check if final expansion has multiple glyphs (word vs single-character composite)\n            // This covers nested aliases like TestAlias → TestWord1 → H/C\n            const isMultiGlyphWord = rawExpandedParts.length > 1;\n\n            const expandedParts = rawExpandedParts.map(expandedSubPart => {\n                // Word-break markers carry no glyph identity; pass them through\n                // untouched so definition props don't attach and the break\n                // survives into final word-chunk crowning.\n                if (expandedSubPart._wordBreak) return expandedSubPart;\n                // Apply properties from the definition, falling back to existing values\n                const isIndicator = definition.isIndicator ?? expandedSubPart.isIndicator;\n                const isExternalGlyph = expandedSubPart.isExternalGlyph;\n                const kerningRules = definition.kerningRules ?? expandedSubPart.kerningRules;\n                const char = expandedSubPart.char;\n                // A name of a punctuation mark is that mark, so it pulls in\n                // the word space before it as the mark does, unless the\n                // definition says otherwise; its save writes the mark itself.\n                const shrinksPrecedingWordSpace = definition.shrinksPrecedingWordSpace\n                  ?? expandedSubPart.shrinksPrecedingWordSpace;\n                // For multi-glyph words, each part keeps its own glyphCode.\n                // For single-character composites: outer definition's glyphCode wins\n                // (preserves custom glyph identity, e.g., LOVE wrapping B431).\n                const glyphCode = isMultiGlyphWord\n                  ? expandedSubPart.glyphCode\n                  : (definition.glyphCode ?? expandedSubPart.glyphCode);\n                const isBlissGlyph = expandedSubPart.isBlissGlyph ?? definition.isBlissGlyph;\n                return {\n                  part: expandedSubPart.part,\n                  ...(shrinksPrecedingWordSpace === true && { shrinksPrecedingWordSpace }),\n                  ...(isIndicator === true && { isIndicator }),\n                  ...(isExternalGlyph && { isExternalGlyph }),\n                  ...(char && { char }),\n                  ...(kerningRules && { kerningRules }),\n                  ...(glyphCode && { glyphCode }),\n                  ...(isBlissGlyph && { isBlissGlyph }),\n                  ...(expandedSubPart._marker && { _marker: true }),\n                  ...(expandedSubPart._designation && { _designation: true }),\n                  ...(expandedSubPart._frag !== undefined && { _frag: expandedSubPart._frag }),\n                  ...(expandedSubPart._scanCode !== undefined && { _scanCode: expandedSubPart._scanCode }),\n                  ...(expandedSubPart._aliasCodeName !== undefined && { _aliasCodeName: expandedSubPart._aliasCodeName }),\n                  ...(expandedSubPart._aliasPosition !== undefined && { _aliasPosition: expandedSubPart._aliasPosition }),\n                  ...(expandedSubPart.partOptions && { partOptions: expandedSubPart.partOptions })\n                };\n              });\n\n            // A char-level `;`-part on a nested alias that expands past a word\n            // break is MISPLACED (warned up front): render the words, drop the\n            // part.\n\n            // Rule 2: a definition's codeString is its own word-string.\n            // Resolve its written markers now (head resolution rule 4); the\n            // call mutates expandedParts in place, so its return is not needed.\n            sealFragment(expandedParts, potentialBaseCode);\n\n            // A typed glyph or shape that draws one character is one part\n            // named after it, as a built-in is (the branch above): the\n            // character holds that part, the part holds what the definition\n            // draws and carries the definition's own options, so they style\n            // what it draws and never a part added beside it. The token is the\n            // code as written here, its character brackets and coordinate\n            // included, with the character data the expansion gave it\n            // (identity, indicator flag, layout, head designation); parseParts\n            // reads the definition again where it builds the part, so nothing\n            // the expansion carried for the parts inside rides along. A shape\n            // has no glyphCode, so the name it was written as is recorded\n            // instead, the identity a lone shape is saved by.\n            if (!isBareAlias && !builtInCodes.has(potentialBaseCode) && expandedParts.length === 1) {\n              const { partOptions, _aliasCodeName, _aliasPosition, ...character } = expandedParts[0];\n              // Drawn inside that one part, a code string fusing two base\n              // parts is out of the layout's sight: the name lends only the\n              // layout data it sets itself (layoutDefinitionOf).\n              if (basePartCountOf(drawnCodeString, definitions) > 1) {\n                delete character.isExternalGlyph;\n                delete character.char;\n                delete character.kerningRules;\n                delete character.shrinksPrecedingWordSpace;\n                if (definition.kerningRules) character.kerningRules = definition.kerningRules;\n                if (definition.shrinksPrecedingWordSpace === true) character.shrinksPrecedingWordSpace = true;\n              }\n              return [{\n                ...character,\n                part: str.replace(/;$/, ''),\n                ...(definition.isShape && { _aliasCodeName: potentialBaseCode }),\n              }];\n            }\n            for (const report of heldReports) warn?.(report);\n\n            // Strict Indicator Separation: a char-level `;`-part on a multi-glyph\n            // word is handled up front -- a real part is MISPLACED and dropped\n            // (warned above), a trailing `;` is inert. Either way the head is NOT\n            // modified here: the word renders as defined, keeping any baked head\n            // indicator. Use `;;` for a word-level indicator.\n\n            // Apply position suffix from outer code (e.g. WORD:2,0) to first glyph's first part\n            if (positionSuffix && expandedParts.length > 0) {\n              const firstPart = expandedParts[0].part;\n              const semiParts = firstPart.split(';');\n              // Only add position if the first sub-part doesn't already have coordinates\n              if (!WRITTEN_COORDINATE_PATTERN.test(semiParts[0])) {\n                semiParts[0] += positionSuffix;\n              }\n              expandedParts[0].part = semiParts.join(';');\n            }\n\n            // The definition's own options (its defaultOptions and the bracket\n            // leading its code string) ride to every part it draws, never to a\n            // character. Only a bare alias reaches here, or a typed definition\n            // a forward reference turned into several characters (define()\n            // refuses a typed word).\n            if (ownOptions) giveAliasOptions(expandedParts, ownOptions);\n\n            // Prepend options to the first expanded part. A char-level option\n            // is valid on a single character only: on an alias expanding to a\n            // multi-character word it is MISPLACED (it used to\n            // land silently on the FIRST character). Warn + drop at\n            // top level; nested expansion keeps its prepend behavior.\n            if (optionsPrefix && expandedParts.length > 0) {\n              if (isTopLevel && isMultiGlyphWord) {\n                // A word expands into several glyph tokens, so the bracket text\n                // never reaches the glyph-level peel that reports duplicates.\n                // Report them here instead, or a second bracket on a word alias\n                // would vanish with nothing said about it.\n                reportExtraBrackets();\n                parseWarnings.push({\n                  code: WARNING_CODES.MISPLACED_CHARACTER_OPTION,\n                  message: `Character option (${restorePlaceholders(optionsPrefix)}) ignored on \"${restorePlaceholders(potentialBaseCode)}\": it applies to a single character, but this expands to a word. Use ${restorePlaceholders(optionsPrefix)}|| to apply it to the whole content.`,\n                  source: restorePlaceholders(potentialBaseCode),\n                });\n              } else {\n                expandedParts[0].part = writtenBrackets + expandedParts[0].part;\n              }\n            }\n\n            // A pure single-code rename (a bare alias whose chain bottoms out\n            // at a definition with identity: a glyph, an indicator, a shape,\n            // an external glyph, or a getPath primitive) dissolves its written\n            // name into this expansion, which `preserve` could then never\n            // restore. Record it in the rename-recording side channel, extended to\n            // character level here. The outermost written name wins (this\n            // overwrites an inner frame's recording); a chain ending on a bare\n            // alias (multi-code shorthand or an unresolved forward ref)\n            // records nothing, so shorthand keeps serializing expanded. The\n            // length guard keeps the recording off multi-glyph expansions,\n            // where it would mislabel the first glyph.\n            if (expandedParts.length === 1 && baseIsBareAlias) {\n              const effective = resolveEffectiveDefinition(definition, definitions);\n              if (effective && (effective.isIndicator === true\n                  || effective.isBlissGlyph || effective.isShape\n                  || effective.isExternalGlyph || effective.glyphCode\n                  || typeof effective.getPath === 'function')) {\n                expandedParts[0]._aliasCodeName = potentialBaseCode;\n              } else {\n                // Any other chain is read as a part slot reads it, through a\n                // link that writes a position for the code it names\n                // (`RED:1,0`, `RED:`) or names a letter drawn as text: where it\n                // reaches a code with an identity, the name is recorded, with\n                // the position its links add, which the saves take off the\n                // part's own, so the name is written with what was written\n                // where it was used.\n                const read = { codeName: potentialBaseCode };\n                const { position } = BlissParser.#readThroughRenames(read, definition);\n                if (read._aliasCodeName !== undefined) {\n                  expandedParts[0]._aliasCodeName = potentialBaseCode;\n                  if (position !== undefined) expandedParts[0]._aliasPosition = position;\n                }\n              }\n            }\n\n            return expandedParts;\n          }\n\n          // Base case - create object with properties from definition. A\n          // character written with a coordinate or `;` parts (`Xa:1`, `Xa;B86`)\n          // names no definition as written, so its layout data is read from\n          // its base code. Without it a letter was spaced as a Bliss\n          // character, a digit lost its kerning and a punctuation mark stopped\n          // pulling in the word space, while the builder keeps all three when\n          // it gives a character a part or a position, and every save writes\n          // this form. A second base part makes another character: the\n          // layout, which sees the parts, turns the data off then\n          // (basePartCount). Its identity stays with the bare code.\n          const layout = Object.hasOwn(definitions, codeForLookup)\n            ? definition\n            : (layoutDefinitionOf(potentialBaseCode, definitions) ?? definition);\n          const isIndicator = definition.isIndicator;\n          const isExternalGlyph = layout.isExternalGlyph;\n          const kerningRules = layout.kerningRules;\n          const char = layout.char;\n          const glyphCode = definition.glyphCode;\n          const isBlissGlyph = definition.isBlissGlyph;\n          const shrinksPrecedingWordSpace = layout.shrinksPrecedingWordSpace;\n          // Strict Indicator Separation: `;` dumb-appends, so `str` is kept\n          // verbatim (a trailing `;` is normalized away; an invalid appended\n          // part such as `!B81` falls through to UNKNOWN_CODE in parseParts).\n          return [{\n            part: str.replace(/;$/, ''),\n            _scanCode: potentialBaseCode,\n            ...(shrinksPrecedingWordSpace === true && { shrinksPrecedingWordSpace }),\n            ...(isIndicator === true && { isIndicator }),\n            ...(isExternalGlyph && { isExternalGlyph }),\n            ...(char && { char }),\n            ...(kerningRules && { kerningRules }),\n            ...(glyphCode && { glyphCode }),\n            ...(isBlissGlyph && { isBlissGlyph })\n          }];\n        }\n\n        const expandedParts = str.split('/').flatMap(strPart => expand(strPart, definitions));\n\n        // Resolve and crown the head of each final word (head-marker contract)\n        crownWordChunks(expandedParts, wordCode);\n\n        return expandedParts;\n      }\n\n      const processedGroupCodeString = processXCodes(groupCodeString);\n      const expandedGlyphParts = replaceWithDefinition(processedGroupCodeString, blissElementDefinitions);\n\n      // A group option binds to ONE word-group. Bound to an alias whose\n      // expansion crosses a word break (a multi-word // alias), there is no\n      // single group to carry it -- it used to style only the FIRST word,\n      // silently. Warn + drop the bracket + render every word. The written\n      // [opts]|a//b form never reaches this gate: a top-level // splits\n      // groups BEFORE option parsing, so that bracket binds to group 1 by\n      // syntax (the same alias-vs-written split as the character-level gate).\n      // The malformed-;; fail path collapses its word breaks, so a\n      // fail-rendered unit keeps its bracket (errorSource round-trips it).\n      // Two separator kinds span words: a // word break AND an explicit space\n      // code between glyphs (an in-alias TSP is\n      // not a _wordBreak, but its serialized /TSP/ splits groups on reparse,\n      // silently rebinding the bracket to the first word). A separator with\n      // inked content on ONE side only (a trailing space or //) does NOT span\n      // words: the bracket still binds the only inked word and round-trips\n      // stably, so it keeps its option.\n      const expansionSpansWords = (parts) => {\n        let sawWord = false;\n        let sawSeparatorAfterWord = false;\n        for (const p of parts) {\n          // A part re-splits into its own group on reparse ONLY as a bare\n          // space token (the top-level split matches the exact token), so a\n          // composed (TSP;B81) or decorated space stays in-group and\n          // separates nothing; kerning markers are neither ink nor a\n          // separator (they decorate the next glyph). (Matching\n          // _scanCode over-classified both.)\n          const partCode = p._scanCode ?? (p.part ? p.part.split(';')[0].split(':')[0] : '');\n          if (partCode === 'RK' || partCode === 'AK') continue;\n          if (p._wordBreak || isSpaceCode(p.part)) {\n            if (sawWord) sawSeparatorAfterWord = true;\n          } else if (p.part !== '') {\n            if (sawSeparatorAfterWord) return true;\n            sawWord = true;\n          }\n        }\n        return false;\n      };\n      if (group.options && expansionSpansWords(expandedGlyphParts)) {\n        const written = Object.entries(group.options)\n          .map(([k, v]) => v === true ? k : `${k}=${v}`).join(';');\n        const aliasSource = restorePlaceholders(groupCodeString);\n        parseWarnings.push({\n          code: WARNING_CODES.MISPLACED_GROUP_OPTION,\n          message: `Group option ([${written}]) ignored on \"${aliasSource}\": | applies options to a single word, but this expands to multiple words. Use [${written}]|| to apply them to the whole content.`,\n          source: aliasSource,\n        });\n        delete group.options;\n      }\n\n      // The kerning marker that currently wins for the next glyph, as\n      // { key, value, source }. One value survives per character, so a later\n      // marker displaces an earlier one rather than both riding along to a\n      // silent tie-break at layout time.\n      let pendingKerning;\n      // Kerning is the gap before a character, so a marker whose next element\n      // is a space has nothing to set. It is reported as the space's\n      // decoration, the code every other decoration on a space reports.\n      const dropKerningBeforeSpace = (marker) => parseWarnings.push({\n        code: WARNING_CODES.MISPLACED_SPACE_DECORATION,\n        message: `Kerning is the gap before a character, and a space is not one, so \"${marker.source}\" was dropped.`,\n        source: marker.source,\n      });\n\n      for (let { part, shrinksPrecedingWordSpace, isIndicator, isExternalGlyph, char, kerningRules, glyphCode, isBlissGlyph, isHeadGlyph, partOptions, _aliasCodeName, _aliasPosition, _wordBreak, _wordIndicators, _wordError } of expandedGlyphParts) {\n        // Lift a word-level fail-render flag onto its enclosing group (mirrors\n        // the _wordIndicators lift below). A malformed `;;` makes the whole word\n        // invalid; the element reads group.errorCode and collapses it to one\n        // placeholder. The flag is static (no `;;` structure survives to\n        // re-derive from), so it persists across rebuild; errorSource carries the\n        // original string for the toString round-trip.\n        if (_wordError) {\n          group.errorCode = _wordError.code;\n          group.error = _wordError.message;\n          group.errorSource = _wordError.source;\n        }\n        // Lift a word-level indicator overlay onto its enclosing group.\n        // The word-level ;; slot is a WORD property owned by the FIRST glyph:\n        // the first glyph (group.glyphs still empty) claims it; a later glyph's\n        // promoted overlay is dropped + DROPPED_WORD_INDICATOR (first-wins, so\n        // `/`-composition matches mergeWithNext). An empty first slot still wins.\n        if (_wordIndicators) {\n          if (group.glyphs.length === 0) {\n            group.wordIndicators = _wordIndicators;\n          } else {\n            const { codes = [], stripSemantic } = _wordIndicators;\n            const dropped = ';;' + (stripSemantic ? '!' : '') + codes.join(';');\n            parseWarnings.push({\n              code: WARNING_CODES.DROPPED_WORD_INDICATOR,\n              message: `Composing glyphs into one word dropped a later glyph's word-level indicator overlay (${dropped}). The word keeps only the first glyph's overlay.`,\n              source: dropped,\n            });\n          }\n        }\n        // Word break marker from // in bare alias codeString:\n        // push current group, add a default space group, start a new group\n        if (_wordBreak) {\n          if (group.glyphs.length > 0) {\n            extractPositionFromOptions(group, parseWarnings, 1);\n            parsedGroups.push(group);\n          }\n          if (pendingKerning) {\n            dropKerningBeforeSpace(pendingKerning);\n            pendingKerning = undefined;\n          }\n          parsedGroups.push({ glyphs: [{ parts: [{ codeName: 'SP', _fromSP: true }] }], _isSpaceGroup: true, _spaceIndex: parsedGroups.length });\n          group = { glyphs: [] };\n          continue;\n        }\n        if (part === \"\") continue;\n\n        const glyphObj = {\n          parts: [],\n          ...(shrinksPrecedingWordSpace === true && { shrinksPrecedingWordSpace }),\n          ...(typeof isIndicator === \"boolean\" && { isIndicator }),\n          ...(typeof isExternalGlyph === \"boolean\" && { isExternalGlyph }),\n          ...(typeof char === \"string\" && { char }),\n          ...((kerningRules !== null && kerningRules?.constructor === Object) && { kerningRules }),\n          ...(typeof glyphCode === \"string\" && { glyphCode }),\n          ...(isBlissGlyph === true && { isBlissGlyph }),\n          ...(isHeadGlyph === true && { isHeadGlyph })\n        };\n\n        const kerningMatch = part.match(KERNING_MARKER_PATTERN);\n        // A value the grammar reads but no gap can be (RK:1e400, RK:Infinity) is\n        // as malformed as one it cannot read, and falls through to that report.\n        if (kerningMatch && (kerningMatch[2] === undefined || Number.isFinite(Number(kerningMatch[2])))) {\n          const [_, kerningType, kerningValue] = kerningMatch;\n          // A bare marker (RK/AK with no `:value`) is absent: it applies no\n          // kerning and is not persisted, so it never materializes a default\n          // (RK:0/AK:0 on serialization) or collapses the pair gap (a bare AK).\n          // Only an explicit value (including :0, the deliberate zero-gap\n          // spelling) is kept. Still `continue` so a bare marker is consumed,\n          // not misread as an UNKNOWN_CODE.\n          if (kerningValue !== undefined) {\n            if (pendingKerning) {\n              parseWarnings.push({\n                code: WARNING_CODES.MULTIPLE_KERNING_VALUES,\n                message: `A character takes one kerning value, so \"${pendingKerning.source}\" is ignored. An option beats an RK:/AK: marker, and the last value written wins.`,\n                source: pendingKerning.source,\n              });\n            }\n            pendingKerning = {\n              key: kerningType === \"RK\" ? 'relativeKerning' : 'absoluteKerning',\n              value: Number(kerningValue),\n              source: part,\n            };\n          }\n          continue;\n        }\n\n        // A kerning marker (RK:/AK:) whose value failed the grammar above is a\n        // malformed kerning value (RK:abc, RK:., RK:.5.5, RK:1e400, RK:). Warn and\n        // drop it — apply no kerning, leaving the next glyph unshifted — rather\n        // than letting it fall through as a misleading UNKNOWN_CODE. The ^ anchor\n        // keeps a real code that merely contains RK:/AK: (e.g. B86RK:abc) from\n        // being mis-read as kerning.\n        if (/^(RK|AK):/.test(part)) {\n          parseWarnings.push({\n            code: WARNING_CODES.MALFORMED_KERNING_VALUE,\n            message: `Malformed kerning value \"${part}\"; the marker is ignored.`,\n            source: part,\n          });\n          continue;\n        }\n\n        const markerKerning = pendingKerning;\n        pendingKerning = undefined;\n\n        let glyphCodeString = part;\n        // The [^\\[\\]] class keeps the char-option match to ONE bracket token.\n        // The old `.*?` class backtracked across `]>…;[` when the lookahead\n        // failed, capturing `[a]>CODE;[b]` as one character-option blob —\n        // every part before the second bracket was silently eaten.\n        //\n        // One bracket per scope, so peel them one at a time: the first applies\n        // and every later one is invalid syntax that warns and drops, matching\n        // what the global and word scopes have always done. Character scope\n        // used to report UNKNOWN_CODE and destroy the whole symbol instead,\n        // although a valid code sat right after the brackets. The loop stops at\n        // a bracket wearing a `>`: that one belongs to the PART scope and is a\n        // legal neighbour, which is what tells `[a][b]` from `[a][b]>`.\n        let charBracketsSeen = 0;\n        let charMatch;\n        // Kerning written in the character bracket, in the order and spelling\n        // it was written: only what the bracket itself carries outranks a\n        // marker.\n        let bracketKerning = [];\n        while ((charMatch = glyphCodeString.match(/^(\\[[^\\[\\]]*\\])(?!>)(.*)/)) !== null) {\n          charBracketsSeen++;\n          if (charBracketsSeen === 1) {\n            const parsedOptions = nonEmpty(\n              this.#parseOptions(restorePlaceholders(charMatch[1]), warn, { level: 'character', notation: 'bracket' }));\n            bracketKerning = kerningOptionEntries(parsedOptions);\n            // Kept only when something remains: a bracket fully emptied by the\n            // gate (or written empty) must not leave an options: {} artifact on\n            // the glyph -- the gated form's toJSON matches the bare form's.\n            if (parsedOptions) glyphObj.options = { ...parsedOptions };\n          } else {\n            const dropped = restorePlaceholders(charMatch[1]);\n            parseWarnings.push({\n              code: WARNING_CODES.MULTIPLE_OPTION_BRACKETS,\n              message: `Multiple option brackets on one character: \"${dropped}\" is ignored. Only the first is applied; combine options in one bracket, e.g. [a;b].`,\n              source: dropped,\n            });\n          }\n          glyphCodeString = charMatch[2];\n        }\n\n        // Whether this character is a space is known only once its parts are\n        // read, and its kerning is settled before the parts report anything,\n        // so the reports keep the order they were written in: the parts are\n        // read here and their warnings held back until the kerning is done.\n        const partWarnings = [];\n        glyphObj.parts = BlissParser.#parseParts(glyphCodeString, {\n          warn: (warning) => partWarnings.push(warning), restore: restorePlaceholders, partOptions });\n        const isSpace = glyphObj.parts.length === 1 && isSpaceGlyph(glyphObj.parts[0].codeName);\n        if (isSpace) {\n          // A space takes no kerning. The marker is reported on its own, and\n          // kerning in the bracket is left as written: the space rule drops\n          // the bracket whole and quotes it once, as it does any option on a\n          // space, without judging its values.\n          if (markerKerning) dropKerningBeforeSpace(markerKerning);\n        } else {\n          // A bracket option on this character can still displace the marker;\n          // resolveKerning settles that.\n          if (markerKerning) (glyphObj.options ??= {})[markerKerning.key] = markerKerning.value;\n          resolveKerning(glyphObj, markerKerning, bracketKerning, parseWarnings);\n        }\n        partWarnings.forEach(warn);\n\n        // Land a character-level rename recording on the parsed sole part,\n        // where the preserve restore already operates; a space\n        // stays canonical (spaces take no custom identity). The recording\n        // also rides the glyph itself: a multi-part anatomy or a custom\n        // typed-glyph identity (glyphCode) has no part-level carrier, and\n        // the serializer's written-name consult restores the\n        // written name only for a clean instance of the definition. A letter\n        // drawn as text has a glyph code too, but it names the one part\n        // itself, so that part carries the recording.\n        if (_aliasCodeName && !isSpace) {\n          if (glyphObj.parts.length === 1\n              && (!glyphObj.glyphCode || builtInCodes.has(glyphObj.glyphCode)\n                || glyphObj.glyphCode.startsWith(X_TEXT_FALLBACK_PREFIX))) {\n            glyphObj.parts[0]._aliasCodeName = _aliasCodeName;\n            if (_aliasPosition !== undefined) glyphObj.parts[0]._aliasPosition = _aliasPosition;\n          }\n          glyphObj._aliasCodeName = _aliasCodeName;\n        }\n\n        extractPositionFromOptions(glyphObj, parseWarnings, 2);\n        group.glyphs.push(glyphObj);\n      }\n\n      extractPositionFromOptions(group, parseWarnings, 1);\n      // A marker still waiting when its word ends stands before a space when\n      // anything follows at all (word groups and space groups alternate), and\n      // before nothing at the end of the input, where no character takes it.\n      if (pendingKerning) {\n        if (gi < groupedCodes.length - 1) {\n          dropKerningBeforeSpace(pendingKerning);\n        } else {\n          parseWarnings.push({\n            code: WARNING_CODES.MISPLACED_KERNING_OPTION,\n            message: `Kerning is the gap before a character, and no character follows \"${pendingKerning.source}\", so it was dropped.`,\n            source: pendingKerning.source,\n          });\n        }\n      }\n      parsedGroups.push(group);\n    }\n\n    // Step 4: Resolve SP→QSP for space groups before punctuation\n    // For implicit spaces (_fromSP): change code to QSP\n    // For explicit spaces: compare against default and flag _differsFromDefault\n    for (let i = 0; i < parsedGroups.length; i++) {\n      const group = parsedGroups[i];\n      if (group._isSpaceGroup) {\n        // Determine default space code for this position\n        const nextGroup = parsedGroups[i + 1];\n        const isPunctuation = nextGroup && !nextGroup._isSpaceGroup &&\n          (nextGroup.glyphs?.length > 0) &&\n          nextGroup.glyphs.every(pullsInWordSpace);\n        const defaultCode = isPunctuation ? 'QSP' : 'TSP';\n\n        for (const glyph of group.glyphs) {\n          const part = glyph.parts[0];\n          if (part._fromSP) {\n            // Implicit space: resolve to default\n            part.codeName = defaultCode;\n          } else {\n            // Explicit space: flag if it differs from default\n            if (part.codeName !== defaultCode) {\n              part._differsFromDefault = true;\n            }\n          }\n          delete part._fromSP;\n        }\n      }\n      // Clean up internal markers\n      delete group._isSpaceGroup;\n      delete group._spaceIndex;\n    }\n\n    result.groups = parsedGroups;\n\n    extractPositionFromOptions(result, parseWarnings, 0);\n    if (parseWarnings.length) result._parseWarnings = parseWarnings;\n    return result;\n  }\n\n  /**\n   * Walk a blissObj structure and expand any PARTs that have a codeName\n   * but no sub-parts, reading again a name the DSL reads through wherever\n   * parts are kept (see #expandPartRecursive). This supports toJSON\n   * round-trips where nested parts were stripped, and deep saves, which keep\n   * them.\n   *\n   * A definition's code string is DSL text, so its brackets are read here as\n   * the DSL reads them when a string names the definition: at part scope, with\n   * a key that cannot act there reported to `warn` and dropped. A saved\n   * composition then reports what the string it was saved from reported.\n   *\n   * @param {Object} blissObj - Raw parsed structure with groups/glyphs/parts\n   * @param {(warning: object) => void} [warn] - where a misplaced key is reported\n   * @returns {Object} The same object, mutated with expanded parts\n   */\n  static expandParts(blissObj, warn) {\n    if (!blissObj?.groups) return blissObj;\n    for (const group of blissObj.groups) {\n      if (!group.glyphs) continue;\n      for (const glyph of group.glyphs) {\n        if (!glyph.parts) continue;\n        for (const [partIndex, part] of glyph.parts.entries()) {\n          BlissParser.#expandPartRecursive(part, warn);\n          BlissParser.#flagCompositePart(part, partIndex);\n        }\n      }\n    }\n    return blissObj;\n  }\n\n  /**\n   * Re-derive the COMPOSITE_AS_PART flag on every (already-expanded) part of a\n   * structure, in place. The flag is position-dependent (a composed alias is a\n   * violation only when non-leading), so it must be recomputed whenever the\n   * mutation API reassembles a glyph: insertPart parses a new part through an\n   * `H;<code>` scaffold (index 1) and may then place it at index 0, and\n   * removePart can shift a non-leading part to the leading slot. Unlike\n   * expandParts this does not expand, so it is safe to run on every rebuild.\n   */\n  static reflagCompositeParts(blissObj) {\n    if (!blissObj?.groups) return blissObj;\n    for (const group of blissObj.groups) {\n      if (!group.glyphs) continue;\n      for (const glyph of group.glyphs) {\n        if (!glyph.parts) continue;\n        for (const [partIndex, part] of glyph.parts.entries()) {\n          BlissParser.#flagCompositePart(part, partIndex);\n        }\n      }\n    }\n    return blissObj;\n  }\n\n  /**\n   * Flag a non-leading ;-part whose operand is a composed, unflagged alias.\n   * `;` is part-merge, so its operands must be PARTS: a primitive, or a flagged\n   * reusable definition (an indicator, a type:'glyph', or a type:'shape'). A\n   * character/word alias that expands to multiple parts is a higher-level unit;\n   * superimposing it as a part would bury its internal structure (e.g. a baked\n   * indicator), so it is rejected. The predicate:\n   * - index > 0: a leading operand is the base (and the promotion path), not a part;\n   * - the part draws several parts (#isComposition).\n   * Must run AFTER #applyDefinitionMetadata stamps part.isIndicator. The element\n   * layer then fails the whole character to render with a COMPOSITE_AS_PART\n   * warning. Run by #parseParts on every part it reads, and by expandParts\n   * on a composition object's own parts.\n   */\n  static #flagCompositePart(part, index) {\n    if (index > 0 && BlissParser.#isComposition(part)) {\n      part.error = `\"${part.codeName}\" is a composition and cannot be a part; a ; part must be a primitive or a flagged glyph`;\n      part.errorCode = 'COMPOSITE_AS_PART';\n    } else if (part.errorCode === 'COMPOSITE_AS_PART') {\n      // The flag is position-dependent, so it is authoritative at the CURRENT\n      // index: clear a stale one stamped elsewhere. The mutation API parses a\n      // new part through an `H;<code>` scaffold (index 1) and may then insert it\n      // at index 0; re-evaluation here on rebuild must un-bury it.\n      delete part.errorCode;\n      delete part.error;\n    }\n  }\n\n  /**\n   * Whether a part draws several parts that nothing with an identity holds:\n   * - more than one part of its own: a composition (a primitive or single-code\n   *   rename alias holds at most one and stays legal);\n   * - a flagged indicator is a part whatever it holds (a built-in compound\n   *   indicator such as B85 = B270;B86 or B98 = B97;B99);\n   * - so is a flagged glyph or shape: isBlissGlyph / isShape are carried by the\n   *   DEFINITION, not stamped onto the part, so they are read from the registry\n   *   (this exempts the ~1000 built-in composite characters and custom\n   *   type:'glyph'/'shape' definitions);\n   * - a part holding exactly one part (a link that places or restyles the code\n   *   it names, `MULTI:1,0` or `[color=red]>MULTI`) draws what that part draws,\n   *   so it is read through to it.\n   */\n  static #isComposition(part) {\n    let held = part;\n    while (held.isIndicator !== true) {\n      const def = blissElementDefinitions[held.codeName];\n      if (def?.isBlissGlyph === true || def?.isShape === true) return false;\n      if (held.parts?.length !== 1) return held.parts?.length > 1;\n      [held] = held.parts;\n    }\n    return false;\n  }\n\n  /**\n   * Apply the EFFECTIVE definition's metadata after the immediate one: a\n   * pure-rename bare alias (single-code codeString, no identity of its own)\n   * is transparent, so the resolved target's indicator-ness and anchor\n   * metadata must reach the part (GH #35 — indicator-ness carries through an\n   * alias). Runs second so explicit part options and the alias's own\n   * options keep precedence over the target's. A no-op whenever no\n   * rename chain applies (effective === immediate).\n   */\n  static #applyEffectiveMetadata(part, definition) {\n    const effective = resolveEffectiveDefinition(definition, blissElementDefinitions);\n    if (effective !== definition) {\n      // Read without reporting: the code string that was read for this part\n      // has reported already.\n      BlissParser.#applyDefinitionMetadata(part, effective, BlissParser.#readDefinition(undefined, effective).options);\n    }\n  }\n\n  /**\n   * Rename a part to the one code its definition draws, when that code has no\n   * code string to hold as a part of its own (a primitive, a letter, or a\n   * shape drawn by its own function), read as a part slot reads a code\n   * (slotCodeOf), so a letter without an outline draws as its text-fallback\n   * glyph. The written name is recorded so a `preserve` save can restore it;\n   * default output keeps the code drawn.\n   *\n   * A typed glyph or shape holds what it draws, so the drawn code's own\n   * options are this part's too, and win over the definition's own where both\n   * set a key, as a held code's options win over its holder's. A bare alias is\n   * the code it names instead, and #applyEffectiveMetadata gives it that\n   * code's options under the alias's own.\n   */\n  static #renameToDrawnCode(part, code, definition) {\n    const drawnCode = slotCodeOf(code);\n    // A name recorded further out (a bare alias read through to this\n    // definition) is the one written, and stays.\n    part._aliasCodeName ??= part.codeName;\n    part.codeName = drawnCode;\n    if (BlissParser.#isBareAlias(definition)) return;\n    const drawn = blissElementDefinitions[drawnCode];\n    const drawnOptions = drawn && BlissParser.#readDefinition(drawnCode, drawn).options;\n    if (drawnOptions) part.options = { ...drawnOptions, ...part.options };\n  }\n\n  /**\n   * Read a part named by a bare alias as the alias written alone expands:\n   * through every link of a chain that names one code, each link's options\n   * under the ones further out and the part's own bracket over them all, so\n   * the outer link wins a key two links set, and a part bracket where the\n   * alias is used restyles what it draws. A link may place the code it names\n   * (`RED:1,0`). Where the chain reaches a code with an identity of its own\n   * (a built-in, a typed definition, a shape drawn by its own function, a\n   * letter), the part is that code, placed where the links place it beside\n   * the position written where the alias is used, recording the name written\n   * and the position the links add for the saves that keep the name, as the\n   * alias written alone does. Where it ends at an alias of several codes, the\n   * name written is shorthand for the same, so the part keeps it and holds\n   * what that alias draws; a link that places its code is then not read\n   * through, so the code stays placed where the link holds it. A word is no\n   * part, so a rename of one is left as written, to fail as the word does.\n   * Returns the definition the part is then read by, and the position the\n   * links add, which the caller adds once the part's own position is read.\n   */\n  static #readThroughRenames(part, definition, warn) {\n    const written = part.codeName;\n    if (!BlissParser.#isShorthand(definition)\n        || processXCodes(finalCodeStringOf(written, blissElementDefinitions) ?? '').includes('/')) {\n      return { definition };\n    }\n    // Walked before any link is read, since where the chain ends decides how\n    // far it is read. A link is looked at without a report: it reports where\n    // it is read, here or, where the chain stops at it, where the part is\n    // read by it.\n    const links = [];\n    const seen = new Set([written]);\n    let code = written;\n    let current = definition;\n    while (BlissParser.#isShorthand(current)) {\n      const link = BlissParser.#linkOf(BlissParser.#readDefinition(code, current).codeString);\n      const next = BlissParser.#oneCodeDefinitionOf(link.code);\n      if (next === undefined || seen.has(link.code)) break;\n      seen.add(link.code);\n      links.push({ name: code, definition: current, x: link.x, y: link.y });\n      code = link.code;\n      current = next;\n    }\n    if (BlissParser.#isShorthand(current)) {\n      const placing = links.findIndex(({ x, y }) => x !== undefined || y !== undefined);\n      if (placing !== -1) {\n        ({ name: code, definition: current } = links[placing]);\n        links.length = placing;\n      }\n    }\n    const position = {};\n    for (const { name, definition: link, x, y } of links) {\n      const { options } = BlissParser.#readDefinition(name, link, warn);\n      if (options) part.options = { ...options, ...part.options };\n      // An anchor a link sets itself stays where the code it names sets none,\n      // as #applyEffectiveMetadata leaves one.\n      for (const axis of ['anchorOffsetX', 'anchorOffsetY']) {\n        if (link[axis] !== undefined) part[axis] ??= link[axis];\n      }\n      // Read as a part's own position is read: an axis no position can be is\n      // refused and reported here, where the link is read, and the rest of the\n      // link still places the code.\n      const at = { x, y };\n      const reports = [];\n      normalizePositionFields(at, reports);\n      for (const report of reports) warn?.(report);\n      if (at.x !== undefined) position.x = (position.x ?? 0) + at.x;\n      if (at.y !== undefined) position.y = (position.y ?? 0) + at.y;\n    }\n    if (BlissParser.#isShorthand(current)) return { definition: current };\n    part.codeName = code;\n    part._aliasCodeName = written;\n    if (Object.keys(position).length === 0) return { definition: current };\n    part._aliasPosition = position;\n    return { definition: current, position };\n  }\n\n  // Whether a part named `name` is read through to a code with an identity of\n  // its own, as #readThroughRenames reads one: asked of a scratch part, so the\n  // links are looked at without a report and nothing is changed.\n  static #readsThrough(name) {\n    const definition = blissElementDefinitions[name];\n    if (!definition) return false;\n    const scratch = { codeName: name };\n    BlissParser.#readThroughRenames(scratch, definition);\n    return scratch._aliasCodeName !== undefined;\n  }\n\n  // A link's code string read as one code and the position it places that\n  // code at, each axis as written: the link is read where the chain is read\n  // through it, which refuses an axis no position can be (`:1e400`) quoting\n  // what was written, as parsePartString hands such an axis over. Whether the\n  // code is one code is #oneCodeDefinitionOf's to say.\n  static #linkOf(codeString) {\n    const coordinate = codeString.match(COORD_SUFFIX_PATTERN);\n    if (coordinate === null || coordinate.index === 0) return { code: slotCodeOf(codeString) };\n    const [x, y] = coordinate[0].slice(1).split(',').map((axis) => (axis === '' ? undefined : axis));\n    return { code: slotCodeOf(codeString.slice(0, coordinate.index)), x, y };\n  }\n\n  // Place a part read through links that place its code where they place it,\n  // beside the position written where the alias is used, axis by axis: an axis\n  // neither writes stays unset, so an indicator is still placed for you on it.\n  // The part's own position is read first, from both its channels as every\n  // route reads them (a bracket's `x` is the position written there, not one\n  // displacing the links'); a value no position can be is left for that read\n  // to refuse.\n  static #placeByLinks(part, position, warn) {\n    if (position === undefined) return;\n    const reports = [];\n    normalizePositionFields(part, reports);\n    extractPositionFromOptions(part, reports);\n    for (const report of reports) warn?.(report);\n    for (const axis of ['x', 'y']) {\n      if (position[axis] !== undefined) part[axis] = (part[axis] ?? 0) + position[axis];\n    }\n  }\n\n  // The definition one code is read by in a part slot, or undefined when the\n  // code is not one (it holds a character the DSL reads as structure, which\n  // the parser splits on before it looks a name up) or names nothing. A\n  // text-fallback glyph has one made for its letters.\n  static #oneCodeDefinitionOf(code) {\n    if (!SINGLE_CODE_TOKEN.test(code)) return undefined;\n    if (code.startsWith(X_TEXT_FALLBACK_PREFIX)) return textFallbackDefinitionOf(code);\n    return Object.hasOwn(blissElementDefinitions, code) ? blissElementDefinitions[code] : undefined;\n  }\n\n  // A bare alias with a code string: shorthand a part naming it is read\n  // through.\n  static #isShorthand(definition) {\n    return typeof definition.codeString === 'string' && BlissParser.#isBareAlias(definition);\n  }\n\n  // A definition with a code string and no identity of its own (no glyph,\n  // shape or external-glyph flag, no glyph code): shorthand for what it names.\n  static #isBareAlias(definition) {\n    return !definition.isBlissGlyph && !definition.isShape\n      && !definition.isExternalGlyph && !definition.glyphCode;\n  }\n\n  /**\n   * Copy definition metadata (its own options, indicator, anchor offsets)\n   * onto a part object. Shared by #parseParts and #expandPartRecursive to\n   * keep the logic in one place. `options` are the\n   * definition's own, as #readDefinition reads them where its code string is\n   * read.\n   */\n  static #applyDefinitionMetadata(part, definition, options) {\n    if (options) {\n      part.options = { ...options, ...(part.options || {}) };\n    }\n    const anchor = BlissParser.#anchorOf(definition);\n    if (definition.isIndicator) {\n      part.isIndicator = true;\n      part.width = definition.width ?? 2;\n    } else if (anchor.anchorOffsetY !== undefined) {\n      part.anchorOffsetY = anchor.anchorOffsetY;\n    }\n    if (anchor.anchorOffsetX !== undefined) {\n      part.anchorOffsetX = anchor.anchorOffsetX;\n    }\n  }\n\n  /**\n   * The anchor a definition places what is added beside it by. A definition\n   * that draws one code takes what it does not set itself from that code,\n   * axis by axis, so it stands in for the code (as layoutDefinitionOf gives it\n   * the code's layout data) and draws as its spelled-out form reloads. A code\n   * string of several codes has no single base and keeps the default anchor,\n   * as written out it would.\n   */\n  static #anchorOf(definition, depth = 0) {\n    const own = { anchorOffsetX: definition.anchorOffsetX, anchorOffsetY: definition.anchorOffsetY };\n    if (typeof definition.codeString !== 'string' || depth >= MAX_RECURSION_DEPTH) return own;\n    const code = onlyCodeOf(definition.codeString);\n    const held = code !== null && Object.hasOwn(blissElementDefinitions, code) ? blissElementDefinitions[code] : undefined;\n    if (!held) return own;\n    const inherited = BlissParser.#anchorOf(held, depth + 1);\n    return {\n      anchorOffsetX: own.anchorOffsetX ?? inherited.anchorOffsetX,\n      anchorOffsetY: own.anchorOffsetY ?? inherited.anchorOffsetY,\n    };\n  }\n\n  /**\n   * Recursively expand a single part from its definition's codeString, and\n   * give it the definition's metadata as parseParts does, when the part has a\n   * codeName and a matching definition. Parts already below a part are taken\n   * as they stand, except below a name the DSL reads through to a code with\n   * an identity of its own: that name is read again, as a string naming it\n   * is, and what sits below it is left aside. A deep save writes there what\n   * the name drew, which 1.0.0 wrote as one part per link of its chain. Such\n   * a name is read again at any depth among parts taken as they stand, since\n   * an alias of several codes can hold one. A definition drawn by its own\n   * function (`getPath`) has no codeString to expand, but its defaults still\n   * land on the part, where the DSL puts them.\n   */\n  static #expandPartRecursive(part, warn) {\n    if (part.parts?.length > 0) {\n      if (!BlissParser.#readsThrough(part.codeName)) {\n        for (const held of part.parts) {\n          if (held.parts?.length > 0) BlissParser.#expandPartRecursive(held, warn);\n        }\n        return;\n      }\n      delete part.parts;\n    }\n    if (!part.codeName || !blissElementDefinitions[part.codeName]) return;\n    const { definition, position } = BlissParser.#readThroughRenames(part, blissElementDefinitions[part.codeName], warn);\n\n    // Read as parseParts reads it: behind the definition's own bracket.\n    const { codeString, options } = BlissParser.#readPartDefinition(part.codeName, definition, warn);\n    if (codeString) {\n      // Skip word-level codeStrings (contain /) — handled by word-as-part decomposition\n      if (codeString.includes('/')) return;\n\n      if (codeString.includes(';') || codeString.includes(':')\n          || PART_OPTION_CODESTRING.test(codeString)\n          || blissElementDefinitions[codeString]?.codeString) {\n        part.parts = BlissParser.#parseParts(codeString, { warn });\n      } else {\n        BlissParser.#renameToDrawnCode(part, codeString, definition);\n      }\n    }\n\n    BlissParser.#applyDefinitionMetadata(part, definition, options);\n    BlissParser.#applyEffectiveMetadata(part, definition);\n    BlissParser.#placeByLinks(part, position, warn);\n  }\n\n  /**\n   * Read a code string's `;` part slots into parts: the one part reader. The\n   * DSL reads a character's code string through it, and a composition object\n   * the code string of each definition it names, so both read a code string\n   * alike. A definition named in a slot has its code string read here again,\n   * a level deeper. `warn` takes what a slot reports; `restore` puts back\n   * the brackets the DSL tokenized (a definition's code string carries its\n   * brackets as written); `partOptions` are the options of the bare alias\n   * the DSL expanded the character from, which each of its parts takes.\n   */\n  static #parseParts(partsString, { warn, restore = (text) => text, partOptions }, depth = 0) {\n    if (depth > MAX_RECURSION_DEPTH) throw new Error('Maximum recursion depth exceeded');\n    const parts = [];\n\n    // Split on ; (top-level input is placeholder-tokenized here;\n    // definition-sourced strings carry RAW brackets). An empty segment\n    // is inert (a leading ';' yields an indicator-only glyph, a\n    // trailing ';' is normalized away) but still counts as a SEPARATOR:\n    // the peel gate uses the raw index, so a bracket after ANY ';' sits\n    // in a part slot even when the base is empty (';[opts]B86').\n    // #flagCompositePart keeps the filtered index\n    // (position among real parts). Word-level ';;' is resolved upstream\n    // and never reaches here.\n    const segments = partsString.split(';');\n    let partIndex = 0;\n    for (const [rawIndex, rawPartString] of segments.entries()) {\n      if (rawPartString === '') continue;\n      let twoPartPartString = rawPartString;\n      // Slot 0 is the character's own option position (its bracket was\n      // already read, at the glyph level or as a definition's own); a\n      // `>`-less bracket in a LATER slot is a misplaced character option:\n      // peel one warning per bracket, drop it, and parse the remaining code\n      // normally.\n      if (rawIndex > 0) {\n        // The same empty-option-region tolerance expandSegment applies to\n        // slot 0. Without it a bare `>` in a LATER slot failed the whole\n        // character, taking the other parts down with it. Slot 0 is not\n        // stripped again here: it already was, so `>>B291` still fails.\n        // An empty region over an empty slot (`S8;>`) is still an empty\n        // slot, and an empty slot is inert, exactly like `S8;`.\n        twoPartPartString = twoPartPartString.replace(/^>/, '');\n        if (twoPartPartString === '') continue;\n        let peeled;\n        while ((peeled = twoPartPartString.match(PART_SLOT_CHAR_OPTION_PATTERN)) !== null) {\n          warn({\n            code: WARNING_CODES.MISPLACED_CHARACTER_OPTION,\n            message: `Character option (${restore(peeled[1])}) ignored on \"${restore(peeled[3])}\": a ; part slot takes part options. Use ${restore(peeled[1])}>${restore(peeled[3])} to style the part.`,\n            source: restore(rawPartString),\n          });\n          twoPartPartString = peeled[3];\n        }\n      }\n      // One PART bracket per slot, same rule and same handling as the\n      // character scope above and the two option-region scopes: the first\n      // applies, every later one warns and drops. Every slot, slot 0\n      // included, since a part bracket is legal there too\n      // (`[color=red]>B291`). Without this a doubled part bracket was\n      // reported as an unknown code and destroyed the whole character.\n      let partBracketsSeen = 0;\n      let head = '';\n      let partMatch;\n      while ((partMatch = twoPartPartString.match(/^(\\[[^\\[\\]]*\\])>(.*)$/)) !== null) {\n        partBracketsSeen++;\n        if (partBracketsSeen === 1) {\n          head = `${partMatch[1]}>`;\n        } else {\n          const dropped = restore(partMatch[1]);\n          warn({\n            code: WARNING_CODES.MULTIPLE_OPTION_BRACKETS,\n            message: `Multiple option brackets on one part: \"${dropped}\" is ignored. Only the first is applied; combine options in one bracket, e.g. [a;b]>.`,\n            source: dropped,\n          });\n        }\n        twoPartPartString = partMatch[2];\n      }\n      twoPartPartString = head + twoPartPartString;\n      const part = BlissParser.parsePartString(twoPartPartString, restore, warn, { level: 'part', notation: 'bracket' });\n      if (part.options && Object.keys(part.options).length === 0) delete part.options;\n      // The options of the bare alias this character was expanded from,\n      // on each of its parts: under a part bracket the alias's code\n      // string writes there, and over what the part's own code brings\n      // (merged in below), as a link of the chain further in.\n      if (depth === 0 && partOptions) part.options = { ...partOptions, ...part.options };\n\n      // A `;`-part slot sits inside a glyph, so the glyph-boundary\n      // anchored expansion pass (processXCodes) never sees it: without this, a\n      // fallback letter written as a part failed as an unknown code\n      // although the same glyph is reachable as `XTXT_λ`, and a run that\n      // collapses to one glyph was refused as a word although it is one\n      // character. Ask the shared grammar for the one-glyph answer only;\n      // a real word still fails here, which is what keeps a run from\n      // splitting one glyph across many.\n      // The written-token pass reads a routing key as the letters it names\n      // (see readTextFallbackKey); this slot has to read it the same way or\n      // the two disagree about what one code means. A multi-letter one is\n      // then a word here and fails below exactly as `B291;Xhello` does,\n      // instead of rendering silently and reloading as that failure.\n      if (part.codeName !== undefined) part.codeName = slotCodeOf(part.codeName);\n\n      const { definition, position } = part.codeName?.startsWith('XTXT_')\n        ? { definition: textFallbackDefinitionOf(part.codeName) }\n        : BlissParser.#readThroughRenames(part, blissElementDefinitions[part.codeName] || {}, warn);\n      // The code the definition draws, behind the bracket that leads its\n      // code string, which is the definition's own options and so this\n      // part's.\n      const { codeString, options: ownOptions } = BlissParser.#readPartDefinition(part.codeName, definition, warn);\n\n      if (codeString) {\n        if (codeString.includes('/')) {\n          // Word codeString at part level: cannot be expanded here.\n          // Keep original codeName; post-parse decomposition resolves it.\n        } else if (codeString.includes(';') || codeString.includes(':')\n            || PART_OPTION_CODESTRING.test(codeString)\n            || blissElementDefinitions[codeString]?.codeString ) {\n          part.parts = BlissParser.#parseParts(codeString, { warn, restore }, depth + 1);\n          // Keep part.codeName to preserve identifier alongside expansion\n        } else {\n          BlissParser.#renameToDrawnCode(part, codeString, definition);\n        }\n      }\n\n      // Detect unexpanded multi-char X-codes (word text used as ; part)\n      if (WORD_AS_PART_PATTERN.test(part.codeName)) {\n        part.error = `Multi-character text \"${part.codeName.slice(1)}\" is a word and cannot be composed with ;`;\n        part.errorCode = 'WORD_AS_PART';\n      }\n\n      BlissParser.#applyDefinitionMetadata(part, definition, ownOptions);\n      BlissParser.#applyEffectiveMetadata(part, definition);\n      BlissParser.#flagCompositePart(part, partIndex);\n      partIndex++;\n\n      const reports = [];\n      extractPositionFromOptions(part, reports);\n      for (const report of reports) warn(report);\n      BlissParser.#placeByLinks(part, position, warn);\n      parts.push(part);\n    }\n    return parts;\n  }\n\n}\n","/**\r\n * This Source Code Form is subject to the terms of the Mozilla Public\r\n * License, v. 2.0. If a copy of the MPL was not distributed with this\r\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\r\n */\r\n\r\nimport { deleteOptionByName, removeElementOption, WARNING_CODES } from \"./bliss-constants.js\";\r\nimport { builtInCodes, blissElementDefinitions } from \"./bliss-element-definitions.js\";\r\nimport { writesOptionSeparator, writesWordIndicatorList } from \"./bliss-parser.js\";\r\nimport { resolveIndicatorCodes, classifyIndicatorKind, filterToIndicators, partitionWordIndicators, resolveWordIndicatorOverlay, splitTopLevelSemicolons } from \"./indicator-utils.js\";\r\n\r\n// Shared arg guard for the mutation families: a code arg is a string or omitted.\r\nexport function assertCodeArg(method, code) {\r\n  if (code !== undefined && typeof code !== 'string') {\r\n    throw new TypeError(`${method}() requires a DSL code string`);\r\n  }\r\n}\r\n\r\n// Shared arg guard for the mutation families: an opts arg is a plain options\r\n// object or omitted. Nullish (undefined/null) means \"no options\"; a string,\r\n// number, boolean, or array is a designed error. Thrown beside assertCodeArg,\r\n// before any parse or warning-forward, so a rejected opts never leaks the\r\n// code's parse-time warnings and never leaves the builder half-mutated.\r\nexport function assertOptsArg(method, opts) {\r\n  if (opts == null) return;\r\n  if (typeof opts !== 'object' || Array.isArray(opts)) {\r\n    throw new TypeError(`${method}() options must be an object`);\r\n  }\r\n}\r\n\r\n// Shared arg guard for the removal family: a key is a name. Naming nothing is\r\n// not an error (`removeOptions()` asks for nothing and gets it), but a key that\r\n// is not a name is, and nullish is included rather than waved through the way\r\n// an opts arg waves it through: there is no \"no key\" to mean, and a silent\r\n// no-op would hide the caller's bug instead of showing it.\r\n//\r\n// Checks EVERY key before any is applied. The removal sites read the names one\r\n// at a time, so a guard inside that loop would refuse the second key after the\r\n// first had already been deleted, leaving the composition half-mutated by a\r\n// call that threw.\r\nexport function assertKeyArgs(method, keys) {\r\n  for (const key of keys) {\r\n    if (typeof key !== 'string') {\r\n      throw new TypeError(`${method}() option names must be strings`);\r\n    }\r\n  }\r\n}\r\n\r\n// The indices leading from `parts` down to `node`, a part at any depth inside\r\n// them, or null when it is not there.\r\nconst pathTo = (parts, node) => {\r\n  for (const [index, part] of (parts ?? []).entries()) {\r\n    if (part === node) return [index];\r\n    const below = pathTo(part.parts, node);\r\n    if (below) return [index, ...below];\r\n  }\r\n  return null;\r\n};\r\n\r\n// A word-level overlay as the string writes it, for a warning that drops it.\r\nconst writtenOverlay = ({ codes = [], stripSemantic }) => ';;' + (stripSemantic ? '!' : '') + codes.join(';');\r\n\r\n/**\r\n * A lightweight handle that references a node in `#rawBlissObj` by identity.\r\n * Survives `#rebuild()` because it holds a direct reference to the raw node,\r\n * and resolves its current index dynamically when needed.\r\n *\r\n * Handles survive mutations to other parts of the tree. A handle only\r\n * becomes invalid when its own node is removed from the tree. Relocated\r\n * nodes (e.g. glyphs absorbed by mergeWithNext) are found via a full\r\n * tree scan and the handle's parent reference is updated automatically.\r\n *\r\n * A part handle finds its part at any depth below its character, so a handle\r\n * to a part inside a part (`part(0).part(0)`) survives and reads as one to a\r\n * character's own part does. Its level is its depth: 4 for a part of a part.\r\n */\r\nexport class ElementHandle {\r\n  #ctx;\r\n  #level;\r\n  #nodeRef;\r\n  #parentRef;\r\n  #generation;\r\n\r\n  constructor(ctx, level, nodeRef, parentRef) {\r\n    this.#ctx = ctx;\r\n    this.#level = level;\r\n    this.#nodeRef = nodeRef;\r\n    this.#parentRef = parentRef;\r\n    this.#generation = ctx.getGeneration();\r\n  }\r\n\r\n  #assertReachable() {\r\n    // Fast path: no mutations since last check\r\n    if (this.#generation === this.#ctx.getGeneration()) return;\r\n\r\n    // Parent-based lookup (fast)\r\n    const idx = this.#resolveIndex();\r\n    if (idx !== null && idx !== -1) {\r\n      this.#generation = this.#ctx.getGeneration();\r\n      return;\r\n    }\r\n\r\n    // Full tree scan (node may have moved to a different parent)\r\n    if (this.#relocate()) {\r\n      this.#generation = this.#ctx.getGeneration();\r\n      return;\r\n    }\r\n\r\n    throw new Error(\r\n      'ElementHandle references an element that has been removed.'\r\n    );\r\n  }\r\n\r\n  // Full tree scan: find this node anywhere in the raw tree.\r\n  // Updates #parentRef if the node moved to a different parent.\r\n  // Returns true if found, false if the node is gone.\r\n  #relocate() {\r\n    const raw = this.#ctx.getRaw();\r\n    const groups = raw.groups || [];\r\n\r\n    if (this.#level === 1) {\r\n      return groups.indexOf(this.#nodeRef) >= 0;\r\n    }\r\n\r\n    if (this.#level === 2) {\r\n      for (const group of groups) {\r\n        const gi = (group.glyphs || []).indexOf(this.#nodeRef);\r\n        if (gi >= 0) {\r\n          this.#parentRef = group;\r\n          return true;\r\n        }\r\n      }\r\n      return false;\r\n    }\r\n\r\n    if (this.#level >= 3) {\r\n      for (const group of groups) {\r\n        for (const glyph of (group.glyphs || [])) {\r\n          if (pathTo(glyph.parts, this.#nodeRef)) {\r\n            this.#parentRef = { group, glyph };\r\n            return true;\r\n          }\r\n        }\r\n      }\r\n      return false;\r\n    }\r\n\r\n    return false;\r\n  }\r\n\r\n  // Update this handle's generation after a mutation it initiated,\r\n  // so chaining (e.g. handle.setOptions(...).addPart(...)) keeps working.\r\n  #syncGeneration() {\r\n    this.#generation = this.#ctx.getGeneration();\r\n  }\r\n\r\n  get level() {\r\n    return this.#level;\r\n  }\r\n\r\n  // This handle's level in the words an options report prints, the same words\r\n  // the parser uses for where a bracket was written. A part inside a part is\r\n  // still a part.\r\n  get #scopeLevel() {\r\n    return this.#level === 1 ? 'group' : this.#level === 2 ? 'character' : 'part';\r\n  }\r\n\r\n  // This handle's level as the options helpers number an element: 1 a word, 2\r\n  // a character, 3 a part, a part inside a part included.\r\n  get #optionLevel() {\r\n    return Math.min(this.#level, 3);\r\n  }\r\n\r\n  get isGroup() {\r\n    return this.#level === 1;\r\n  }\r\n\r\n  get isGlyph() {\r\n    return this.#level === 2;\r\n  }\r\n\r\n  get isPart() {\r\n    return this.#level >= 3;\r\n  }\r\n\r\n  get codeName() {\r\n    this.#assertReachable();\r\n    const node = this.#nodeRef;\r\n    if (!node) return '';\r\n\r\n    // Glyph level: the input code that produces this glyph, when it is\r\n    // actually a glyph. Empty string for composites, bare shape primitives,\r\n    // and multi-char text fallback. The presence of glyphCode IS the\r\n    // \"this is a glyph\" signal (set by the parser for B-codes, X-codes,\r\n    // single-char text fallback, and define()d 'glyph'-type aliases).\r\n    // For single-char text fallback the internal routing key 'XTXT_<char>'\r\n    // is surfaced publicly as 'X<char>'. Mirrors the rule in BlissElement.\r\n    if (this.#level === 2) {\r\n      if (typeof node.glyphCode === 'string') {\r\n        return node.glyphCode.startsWith('XTXT_')\r\n          ? 'X' + node.glyphCode.slice(5)\r\n          : node.glyphCode;\r\n      }\r\n      return '';\r\n    }\r\n\r\n    // Part level: structural lookup key. Group level: groups have no\r\n    // codeName field on their data object, so this returns ''.\r\n    // For text-fallback parts the internal routing key 'XTXT_<chars>' is\r\n    // surfaced publicly as 'X<chars>'.\r\n    const code = node.codeName ?? '';\r\n    return code.startsWith('XTXT_') ? 'X' + code.slice(5) : code;\r\n  }\r\n\r\n  get char() {\r\n    this.#assertReachable();\r\n    return this.#findSnapshot().char;\r\n  }\r\n\r\n  get isIndicator() {\r\n    this.#assertReachable();\r\n    if (this.#level < 3) return false;\r\n    return this.#nodeRef?.isIndicator === true;\r\n  }\r\n\r\n  /**\r\n   * Indicator origin level for a part handle: 'character' for an indicator\r\n   * part, or null for a non-indicator or non-part handle. Read off the raw\r\n   * node (like isIndicator), NOT via the snapshot: a handle references a raw\r\n   * node, and a word-level overlay (`;;`) has no raw node (OQ1), so a handle\r\n   * can only ever surface 'character' here — 'word' is introspected on\r\n   * `snapshot()`. Reading the node also avoids the snapshot's positional\r\n   * lookup, which an overlay-merged head reorders and which cannot resolve a\r\n   * nested sub-part (so this never throws and always describes THIS node).\r\n   * @returns {'character'|null}\r\n   */\r\n  get indicatorLevel() {\r\n    this.#assertReachable();\r\n    if (this.#level < 3 || this.#nodeRef?.isIndicator !== true) return null;\r\n    return 'character';\r\n  }\r\n\r\n  /**\r\n   * Indicator kind for a part handle: 'semantic' (the definition carries a\r\n   * semanticIndicator) or 'grammatical', null for a non-indicator part, a\r\n   * non-part handle, or a part whose definition cannot be resolved. Read off\r\n   * the raw node via the shared classifier (same logic as the snapshot).\r\n   * @returns {'semantic'|'grammatical'|null}\r\n   */\r\n  get indicatorKind() {\r\n    this.#assertReachable();\r\n    if (this.#level < 3 || this.#nodeRef?.isIndicator !== true) return null;\r\n    return classifyIndicatorKind(this.#nodeRef.codeName, blissElementDefinitions);\r\n  }\r\n\r\n  // --- Dimensions (read-only, from snapshot) ---\r\n\r\n  #findSnapshot() {\r\n    this.#assertReachable();\r\n    const idx = this.#resolveIndex();\r\n    if (idx === null || idx === -1) {\r\n      throw new Error('Snapshot not found: handle index could not be resolved.');\r\n    }\r\n    const snap = this.#ctx.getSnapshot();\r\n\r\n    if (this.#level === 1) {\r\n      const groupSnap = snap.children[idx];\r\n      if (!groupSnap) throw new Error('Snapshot not found for group handle.');\r\n      return groupSnap;\r\n    }\r\n\r\n    if (this.#level === 2) {\r\n      const groupSnap = snap.children[idx.groupIndex];\r\n      if (!groupSnap) throw new Error('Snapshot not found for group in glyph handle.');\r\n      const glyphs = groupSnap.children.filter(c => c.isGlyph);\r\n      const glyphSnap = glyphs[idx.glyphIndex];\r\n      if (!glyphSnap) throw new Error('Snapshot not found for glyph handle.');\r\n      return glyphSnap;\r\n    }\r\n\r\n    if (this.#level >= 3) {\r\n      const groupSnap = snap.children[idx.groupIndex];\r\n      if (!groupSnap) throw new Error('Snapshot not found for group in part handle.');\r\n      const glyphs = groupSnap.children.filter(c => c.isGlyph);\r\n      const glyphSnap = glyphs[idx.glyphIndex];\r\n      if (!glyphSnap) throw new Error('Snapshot not found for glyph in part handle.');\r\n      // One step down the path at a time, from the character's own part to\r\n      // this one.\r\n      let node = this.#parentRef.glyph.parts[idx.path[0]];\r\n      let found = this.#partSnapshotIn(glyphSnap.children, node, idx.path[0]);\r\n      for (const index of idx.path.slice(1)) {\r\n        node = node.parts[index];\r\n        found = found && this.#partSnapshotIn(found.children, node, index);\r\n      }\r\n      if (!found) throw new Error('Snapshot not found for part handle.');\r\n      return found;\r\n    }\r\n\r\n    throw new Error(`Unsupported handle level: ${this.#level}`);\r\n  }\r\n\r\n  // The snapshot of the raw part `node`, the `index`th of its parent, among\r\n  // `parts`. Matched by the key the part is drawn with, not by raw position: a\r\n  // `;;` word overlay on a head injects and reorders the resolved indicator\r\n  // parts (semantic-root preservation), so a character's raw part index no\r\n  // longer aligns with the snapshot array. A base part and a reordered\r\n  // character-level `;` indicator keep their key through the merge, a key set\r\n  // on a part is the one the snapshot shows, and every part at every depth has\r\n  // one. Position is the fallback: nothing reorders the parts inside a part.\r\n  #partSnapshotIn(parts, node, index) {\r\n    const key = this.#ctx.drawnKey(node);\r\n    return parts.find(c => c.key === key) ?? parts[index];\r\n  }\r\n\r\n  get x() { return this.#findSnapshot().x; }\r\n  get y() { return this.#findSnapshot().y; }\r\n  get offsetX() { return this.#findSnapshot().offsetX; }\r\n  get offsetY() { return this.#findSnapshot().offsetY; }\r\n  get width() { return this.#findSnapshot().width; }\r\n  get height() { return this.#findSnapshot().height; }\r\n  get bounds() { return this.#findSnapshot().bounds; }\r\n  get advanceX() { return this.#findSnapshot().advanceX; }\r\n  get baseWidth() { return this.#findSnapshot().baseWidth; }\r\n\r\n  // --- Identity (read-only, from snapshot) ---\r\n\r\n  get key() { return this.#findSnapshot().key; }\r\n\r\n  // --- Content flags (read-only, from snapshot) ---\r\n\r\n  get isShape() { return this.#findSnapshot().isShape; }\r\n  get isBlissGlyph() { return this.#findSnapshot().isBlissGlyph; }\r\n  get isExternalGlyph() { return this.#findSnapshot().isExternalGlyph; }\r\n  get isHeadGlyph() { return this.#findSnapshot().isHeadGlyph; }\r\n  get isSpaceGroup() { return this.#findSnapshot().isSpaceGroup; }\r\n\r\n  measure() {\r\n    const snap = this.#findSnapshot();\r\n    return Object.freeze({\r\n      x: snap.x,\r\n      y: snap.y,\r\n      offsetX: snap.offsetX,\r\n      offsetY: snap.offsetY,\r\n      width: snap.width,\r\n      height: snap.height,\r\n      bounds: snap.bounds,\r\n      advanceX: snap.advanceX,\r\n      baseWidth: snap.baseWidth,\r\n    });\r\n  }\r\n\r\n  // Resolve the current index of this node within its parent array; for a part,\r\n  // the path from its character's own parts down to it, `partIndex` its first\r\n  // step.\r\n  #resolveIndex() {\r\n    if (this.#level === 1) {\r\n      const groups = this.#ctx.getRaw().groups;\r\n      return groups.indexOf(this.#nodeRef);\r\n    }\r\n    if (this.#level === 2) {\r\n      const groupIndex = this.#ctx.getRaw().groups.indexOf(this.#parentRef);\r\n      if (groupIndex < 0) return null;\r\n      const glyphIndex = this.#parentRef.glyphs?.indexOf(this.#nodeRef) ?? -1;\r\n      if (glyphIndex < 0) return null;\r\n      return { groupIndex, glyphIndex };\r\n    }\r\n    if (this.#level >= 3) {\r\n      const raw = this.#ctx.getRaw();\r\n      const groupIndex = raw.groups.indexOf(this.#parentRef.group);\r\n      if (groupIndex < 0) return null;\r\n      const glyphIndex = this.#parentRef.group.glyphs?.indexOf(this.#parentRef.glyph) ?? -1;\r\n      if (glyphIndex < 0) return null;\r\n      const path = pathTo(this.#parentRef.glyph.parts, this.#nodeRef);\r\n      if (!path) return null;\r\n      return { groupIndex, glyphIndex, partIndex: path[0], path };\r\n    }\r\n    return null;\r\n  }\r\n\r\n  // Surface a mutation parse's warnings on the builder's persistent mutation\r\n  // channel. The parse result is otherwise discarded, which would make a\r\n  // parser-side drop (e.g. the global-only option key gate) silent when the\r\n  // string arrives through the API instead of the constructor.\r\n  #forwardParseWarnings(parsed) {\r\n    for (const warning of parsed?._parseWarnings ?? []) {\r\n      this.#ctx.addMutationWarning(warning);\r\n    }\r\n  }\r\n\r\n  // Parse a mutation arg in glyph context: exactly one glyph, no document or\r\n  // word-level artifacts (document options, a fail flag, word options, or a\r\n  // word indicator list belong above the glyph). Empty/omitted means a\r\n  // deliberate empty glyph ({parts: []}). Warnings forward only when the arg\r\n  // is accepted.\r\n  #parseGlyphArg(code) {\r\n    if (code === undefined || code.trim() === '') return { parts: [] };\r\n    const parsed = this.#ctx.parse(code);\r\n    const groupCount = parsed.groups?.length ?? 0;\r\n    if (groupCount !== 1) {\r\n      throw new Error(`Expected a single group, but code \"${code}\" produced ${groupCount} groups`);\r\n    }\r\n    // An empty \"||\" prefix sets no options and stays plain content.\r\n    if (Object.keys(parsed.options ?? {}).length > 0) {\r\n      throw new Error(`Code \"${code}\" carries document-level options (\"[opts]||\"). Set document options on the builder input, or style the glyph itself (\"[opts]CODE\" or the opts parameter)`);\r\n    }\r\n    const group = parsed.groups[0];\r\n    if (group.errorCode !== undefined) {\r\n      throw new Error(`Code \"${code}\" is not a single valid glyph (it fails as a word: ${group.errorCode}). Fix the code, or use addGroup() to work with whole words`);\r\n    }\r\n    if (group.options) {\r\n      throw new Error(`Code \"${code}\" carries word-level options (\"[opts]|\"). Style the glyph itself (\"[opts]CODE\" or the opts parameter), or use addGroup() for word content`);\r\n    }\r\n    // Read from the text, not the parse: the word reader takes a `;;` written\r\n    // first for two empty parts, and a definition can never hold one.\r\n    if (writesWordIndicatorList(code)) {\r\n      throw new Error(`Code \"${code}\" carries a word-level indicator list (\";;\"). Use applyIndicators() on the word, or addGroup() for word content`);\r\n    }\r\n    const glyphs = group.glyphs ?? [];\r\n    if (glyphs.length !== 1) {\r\n      throw new Error(`Expected a single glyph, but code \"${code}\" produced ${glyphs.length} glyphs`);\r\n    }\r\n    this.#forwardParseWarnings(parsed);\r\n    return glyphs[0];\r\n  }\r\n\r\n  // Parse a mutation arg in part context: exactly one part. A word\r\n  // (multi-glyph code) keeps the existing WORD_AS_PART error-part contract.\r\n  // Empty/omitted throws: a part references a shape and has no empty form\r\n  // (unlike group/glyph containers). Warnings forward only when the arg is\r\n  // accepted.\r\n  #parsePartArg(code) {\r\n    if (code === undefined || code.trim() === '') {\r\n      throw new Error('Expected a single part, but code \"\" produced none. '\r\n        + 'A part is a reference to a shape and cannot be empty; '\r\n        + 'to reserve an empty slot, use addGlyph(\"\") for an empty glyph.');\r\n    }\r\n    const rawParsed = this.#ctx.parse(code);\r\n    const groupCount = rawParsed.groups?.length ?? 0;\r\n    if (groupCount !== 1) {\r\n      throw new Error(`Expected parts within a single group, but code \"${code}\" produced ${groupCount} groups`);\r\n    }\r\n    const rawGroup = rawParsed.groups[0];\r\n    if (rawGroup.glyphs?.length > 1) {\r\n      // Multi-glyph code is a word: words cannot be composed with ;\r\n      return { codeName: code, error: `\"${code}\" is a word and cannot be composed with ;`, errorCode: 'WORD_AS_PART' };\r\n    }\r\n    // An arg of one glyph or none must not smuggle artifacts from above the\r\n    // part level: the helper embedding below would silently launder them away\r\n    // (document/word options, a word indicator list, a fail flag, or a head\r\n    // marker all describe something a part cannot carry). Words take the\r\n    // WORD_AS_PART route above instead, artifacts and all. Any `|` the option\r\n    // checks leave (an empty or malformed options slot, or one that fails the\r\n    // word) is refused before the glyph count, so the message names it.\r\n    if (Object.keys(rawParsed.options ?? {}).length > 0) {\r\n      throw new Error(`Code \"${code}\" carries document-level options (\"[opts]||\"). Set document options on the builder input, or style the part itself (\"[opts]>CODE\" or the opts parameter)`);\r\n    }\r\n    if (rawGroup.options) {\r\n      throw new Error(`Code \"${code}\" carries word-level options (\"[opts]|\"). Style the part itself (\"[opts]>CODE\" or the opts parameter), or use addGroup() for word content`);\r\n    }\r\n    if (writesOptionSeparator(code)) {\r\n      throw new Error(`Code \"${code}\" holds a \"|\" outside an option bracket: \"|\" and \"||\" end word and document options, which a part cannot carry. Pass the part alone (\"CODE\" or \"[opts]>CODE\"), or use addGroup() for word content`);\r\n    }\r\n    if (!rawGroup.glyphs || rawGroup.glyphs.length === 0) {\r\n      throw new Error(`Expected a single part, but code \"${code}\" produced no glyphs`);\r\n    }\r\n    if (rawGroup.errorCode !== undefined) {\r\n      throw new Error(`Code \"${code}\" is not a single valid part (it fails as a word: ${rawGroup.errorCode}). Fix the code, or use addGroup() to work with whole words`);\r\n    }\r\n    // Read from the text, as in the glyph methods; after the fail-flag check,\r\n    // so a malformed list keeps its own message.\r\n    if (writesWordIndicatorList(code)) {\r\n      throw new Error(`Code \"${code}\" carries a word-level indicator list (\";;\"). Use applyIndicators() on the word, or addGroup() for word content`);\r\n    }\r\n    if (rawGroup.glyphs[0].isHeadGlyph) {\r\n      throw new Error(`Code \"${code}\" carries a head marker (\"^\"). A head marker belongs on a character: pass it to the glyph methods (\"CODE^\"), or use addGroup() for word content`);\r\n    }\r\n    // Single glyph: helper-glyph embedding for proper part-level expansion.\r\n    // Forward only THIS parse's warnings (the raw parse above ran the same\r\n    // gates; forwarding both would double-warn), except a text block's: its\r\n    // source is the whole input, which here holds the helper, so that one\r\n    // comes from the raw parse, which read the code as written.\r\n    const parsed = this.#ctx.parse(`H;${code}`);\r\n    const glyph = parsed.groups?.[0]?.glyphs?.[0];\r\n    const parts = glyph?.parts?.length >= 2\r\n      ? glyph.parts.slice(1)\r\n      : (rawGroup.glyphs[0].parts || []);\r\n    if (parts.length !== 1) {\r\n      throw new Error(`Expected a single part, but code \"${code}\" produced ${parts.length} parts`);\r\n    }\r\n    const isTextBlockWarning = (warning) => warning.code === WARNING_CODES.UNSUPPORTED_TEXT_BLOCKS;\r\n    this.#forwardParseWarnings({\r\n      _parseWarnings: [\r\n        ...(rawParsed._parseWarnings ?? []).filter(isTextBlockWarning),\r\n        ...(parsed._parseWarnings ?? []).filter((warning) => !isTextBlockWarning(warning)),\r\n      ],\r\n    });\r\n    return parts[0];\r\n  }\r\n\r\n  // Layers `opts` ({ defaults, overrides }, or flat options as the overrides)\r\n  // onto a node's options through the builder's one merge, the one its own\r\n  // options argument and group methods use. `level` is the node's, which is\r\n  // not always this handle's: a word handle's addGlyph writes a character's\r\n  // options.\r\n  #applyDefaultsOverrides(node, opts, level) {\r\n    this.#ctx.layerOptions(node, opts, { level, notation: 'setter' });\r\n  }\r\n\r\n  // --- Navigation ---\r\n\r\n  /**\r\n   * Returns the head glyph handle within this group.\r\n   * Uses the composition snapshot to determine which glyph is the head.\r\n   * @returns {ElementHandle|null}\r\n   */\r\n  headGlyph() {\r\n    this.#assertReachable();\r\n    if (this.#level !== 1) return null;\r\n    const group = this.#nodeRef;\r\n    if (!group?.glyphs?.length) return null;\r\n\r\n    const groupIndex = this.#ctx.getRaw().groups.indexOf(this.#nodeRef);\r\n    if (groupIndex < 0) return null;\r\n\r\n    // Find the head glyph via the snapshot tree\r\n    const snap = this.#ctx.getSnapshot();\r\n    const groupSnap = snap.children[groupIndex];\r\n    if (!groupSnap) return null;\r\n\r\n    const glyphs = groupSnap.children.filter(c => c.isGlyph);\r\n    const headIndex = glyphs.findIndex(g => g.isHeadGlyph);\r\n    const index = headIndex >= 0 ? headIndex : 0;\r\n\r\n    if (index >= group.glyphs.length) return null;\r\n    return new ElementHandle(this.#ctx, 2, group.glyphs[index], group);\r\n  }\r\n\r\n  glyph(index) {\r\n    this.#assertReachable();\r\n    if (this.#level !== 1) return null;\r\n    const group = this.#nodeRef;\r\n    if (!group?.glyphs?.length) return null;\r\n    if (index < 0) index = group.glyphs.length + index;\r\n    if (!Number.isInteger(index) || index < 0 || index >= group.glyphs.length) return null;\r\n    return new ElementHandle(this.#ctx, 2, group.glyphs[index], group);\r\n  }\r\n\r\n  part(index) {\r\n    this.#assertReachable();\r\n    if (this.#level === 2) {\r\n      const glyph = this.#nodeRef;\r\n      if (!glyph?.parts?.length) return null;\r\n      if (index < 0) index = glyph.parts.length + index;\r\n      if (!Number.isInteger(index) || index < 0 || index >= glyph.parts.length) return null;\r\n      return new ElementHandle(this.#ctx, 3, glyph.parts[index], {\r\n        group: this.#parentRef,\r\n        glyph\r\n      });\r\n    }\r\n    if (this.#level >= 3) {\r\n      const part = this.#nodeRef;\r\n      if (!part?.parts?.length) return null;\r\n      if (index < 0) index = part.parts.length + index;\r\n      if (!Number.isInteger(index) || index < 0 || index >= part.parts.length) return null;\r\n      return new ElementHandle(this.#ctx, this.#level + 1, part.parts[index], this.#parentRef);\r\n    }\r\n    return null;\r\n  }\r\n\r\n  // --- Mutation: add/insert ---\r\n\r\n  // A fail-flagged word (malformed `;;` sets group.errorCode) is TERMINAL: it\r\n  // renders as a single placeholder and toString replays its stored\r\n  // errorSource verbatim, so a content mutation inside it would change the\r\n  // live tree while the serialized form stays frozen (toJSON/toString\r\n  // divergence). Every content mutator no-ops on\r\n  // it — SILENTLY, matching the shipped splitAt/mergeWithNext terminal arms —\r\n  // whether it targets the group handle or a child glyph/part handle inside.\r\n  // Recovery: replaceGroup, or removing the whole word (group detach/remove).\r\n  // Group-level setOptions/removeOptions are exempt: group options serialize\r\n  // OUTSIDE the error source (`[opts]|errorSource`) and round-trip.\r\n  #inFailFlaggedGroup() {\r\n    if (this.#level === 1) return this.#nodeRef?.errorCode !== undefined;\r\n    if (this.#level === 2) return this.#parentRef?.errorCode !== undefined;\r\n    if (this.#level >= 3) return this.#parentRef?.group?.errorCode !== undefined;\r\n    return false;\r\n  }\r\n\r\n  // The character a part handle's part belongs to, at any depth; undefined\r\n  // for any other handle.\r\n  #owningCharacter() {\r\n    return this.#level >= 3 ? this.#parentRef?.glyph : undefined;\r\n  }\r\n\r\n  addGlyph(code, opts) {\r\n    this.#assertReachable();\r\n    if (this.#level !== 1) return this;\r\n    const group = this.#nodeRef;\r\n    if (!group) return this;\r\n    // Terminal fail-flagged word: see #inFailFlaggedGroup. Gated here too\r\n    // (not only in the insertGlyph delegate) so the silent no-op wins over\r\n    // the argument guard below, per the validation ordering rule.\r\n    if (group.errorCode) return this;\r\n    assertCodeArg('addGlyph', code);\r\n    assertOptsArg('addGlyph', opts);\r\n    return this.insertGlyph(group.glyphs?.length ?? 0, code, opts);\r\n  }\r\n\r\n  insertGlyph(index, code, opts) {\r\n    this.#assertReachable();\r\n    if (this.#level !== 1) return this;\r\n    const group = this.#nodeRef;\r\n    if (!group) return this;\r\n    // Terminal fail-flagged word: see #inFailFlaggedGroup.\r\n    if (group.errorCode) return this;\r\n    assertCodeArg('insertGlyph', code);\r\n    assertOptsArg('insertGlyph', opts);\r\n    if (!Number.isInteger(index)) return this;\r\n    const newGlyph = this.#parseGlyphArg(code);\r\n    this.#applyDefaultsOverrides(newGlyph, opts, 'character');\r\n    if (!group.glyphs) group.glyphs = [];\r\n    group.glyphs.splice(index, 0, newGlyph);\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n\r\n  // A glyph recomposed by part mutation is no longer the single code it was\r\n  // parsed from, so drop its glyph-level identity and let toString() serialize\r\n  // the individual parts instead of the stale code. No-op on a glyph that never\r\n  // had identity (an inline composite carries no glyphCode to begin with).\r\n  #clearGlyphIdentity(glyph) {\r\n    delete glyph.isBlissGlyph;\r\n    delete glyph.codeName;\r\n    delete glyph.glyphCode;\r\n  }\r\n\r\n  // Level-1 addPart/insertPart on a group with zero glyphs: create a carrier\r\n  // glyph so the part is not silently dropped (mirrors the empty-builder\r\n  // routing one level down). Parses BEFORE any state change so a rejected\r\n  // arg leaves the group untouched.\r\n  #fillEmptyGroupWithPart(group, method, code, opts) {\r\n    assertCodeArg(method, code);\r\n    assertOptsArg(method, opts);\r\n    const newPart = this.#parsePartArg(code);\r\n    this.#applyDefaultsOverrides(newPart, opts, 'part');\r\n    group.glyphs = [{ parts: [newPart] }];\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n\r\n  addPart(code, opts) {\r\n    this.#assertReachable();\r\n    // Group level: delegate to last glyph\r\n    if (this.#level === 1) {\r\n      const group = this.#nodeRef;\r\n      if (!group) return this;\r\n      // Terminal fail-flagged word: see #inFailFlaggedGroup.\r\n      if (group.errorCode) return this;\r\n      if (!group.glyphs?.length) {\r\n        return this.#fillEmptyGroupWithPart(group, 'addPart', code, opts);\r\n      }\r\n      const lastGlyph = group.glyphs[group.glyphs.length - 1];\r\n      const glyphHandle = new ElementHandle(this.#ctx, 2, lastGlyph, group);\r\n      glyphHandle.addPart(code, opts);\r\n      this.#syncGeneration();\r\n      return this;\r\n    }\r\n    if (this.#level !== 2) return this;\r\n    const glyph = this.#nodeRef;\r\n    if (!glyph) return this;\r\n    // Terminal fail-flagged word: gated here too (not only in the insertPart\r\n    // delegate) so the silent no-op wins over the argument guard below, per\r\n    // the validation ordering rule.\r\n    if (this.#inFailFlaggedGroup()) return this;\r\n    assertCodeArg('addPart', code);\r\n    assertOptsArg('addPart', opts);\r\n    return this.insertPart(glyph.parts?.length ?? 0, code, opts);\r\n  }\r\n\r\n  insertPart(index, code, opts) {\r\n    this.#assertReachable();\r\n    // Group level: delegate to last glyph\r\n    if (this.#level === 1) {\r\n      const group = this.#nodeRef;\r\n      if (!group) return this;\r\n      // Terminal fail-flagged word: see #inFailFlaggedGroup.\r\n      if (group.errorCode) return this;\r\n      if (!group.glyphs?.length) {\r\n        // The index is irrelevant for a first part.\r\n        return this.#fillEmptyGroupWithPart(group, 'insertPart', code, opts);\r\n      }\r\n      const lastGlyph = group.glyphs[group.glyphs.length - 1];\r\n      const glyphHandle = new ElementHandle(this.#ctx, 2, lastGlyph, group);\r\n      glyphHandle.insertPart(index, code, opts);\r\n      this.#syncGeneration();\r\n      return this;\r\n    }\r\n    if (this.#level !== 2) return this;\r\n    const glyph = this.#nodeRef;\r\n    if (!glyph) return this;\r\n    // Terminal fail-flagged word: see #inFailFlaggedGroup. Defense-in-depth\r\n    // for the group-handle delegation forms, which gate at level 1 already.\r\n    if (this.#inFailFlaggedGroup()) return this;\r\n    assertCodeArg('insertPart', code);\r\n    assertOptsArg('insertPart', opts);\r\n    if (!Number.isInteger(index)) return this;\r\n    const newPart = this.#parsePartArg(code);\r\n    this.#applyDefaultsOverrides(newPart, opts, 'part');\r\n    if (!glyph.parts) glyph.parts = [];\r\n    glyph.parts.splice(index, 0, newPart);\r\n    this.#clearGlyphIdentity(glyph);\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n\r\n  // --- Mutation: detach (plain splice, no cascade) ---\r\n\r\n  /**\r\n   * Removes this node from the tree without cascading deletions to its parent.\r\n   * Terminal mutation: returns undefined (not chainable), since the handle's\r\n   * node is no longer reachable after detach.\r\n   * @returns {undefined}\r\n   */\r\n  detach() {\r\n    this.#assertReachable();\r\n    // Terminal fail-flagged word: child content cannot be detached (see\r\n    // #inFailFlaggedGroup); detaching the WHOLE word (level 1) stays allowed —\r\n    // removal of the unit is consistent with its frozen serialization.\r\n    if (this.#level !== 1 && this.#inFailFlaggedGroup()) return undefined;\r\n\r\n    // A character's own part only: what a save would write for a part removed\r\n    // or replaced inside another is undecided, so a deeper handle does nothing.\r\n    if (this.#level === 3) {\r\n      const glyph = this.#parentRef.glyph;\r\n      if (!glyph?.parts) return undefined;\r\n      const partIndex = glyph.parts.indexOf(this.#nodeRef);\r\n      if (partIndex < 0) return undefined;\r\n      glyph.parts.splice(partIndex, 1);\r\n      // A glyph recomposed by part removal is no longer the single code it was\r\n      // parsed from; drop its cached identity so an emptied glyph does not\r\n      // re-emit a phantom codeName from toString (mirrors insertPart).\r\n      this.#clearGlyphIdentity(glyph);\r\n      // An EMPTIED glyph serializes to nothing, so a head designation on it\r\n      // would live only in toJSON while toString dropped it: the designation\r\n      // dies visibly with its glyph's content.\r\n      // detach is the only mutation that leaves an empty glyph in the tree\r\n      // (remove/removePart cascade the whole glyph away).\r\n      if (glyph.parts.length === 0) delete glyph.isHeadGlyph;\r\n      this.#ctx.rebuild();\r\n      return undefined;\r\n    }\r\n\r\n    if (this.#level === 2) {\r\n      const group = this.#parentRef;\r\n      if (!group?.glyphs) return undefined;\r\n      const glyphIndex = group.glyphs.indexOf(this.#nodeRef);\r\n      if (glyphIndex < 0) return undefined;\r\n      group.glyphs.splice(glyphIndex, 1);\r\n      this.#ctx.rebuild();\r\n      return undefined;\r\n    }\r\n\r\n    if (this.#level === 1) {\r\n      const groups = this.#ctx.getRaw().groups;\r\n      const groupIndex = groups.indexOf(this.#nodeRef);\r\n      if (groupIndex < 0) return undefined;\r\n      groups.splice(groupIndex, 1);\r\n      this.#ctx.rebuild();\r\n      return undefined;\r\n    }\r\n\r\n    return undefined;\r\n  }\r\n\r\n  // --- Mutation: remove ---\r\n\r\n  /**\r\n   * Removes this node and cascades cleanup upward (e.g. removing the last\r\n   * part also removes its glyph; removing the last glyph also removes its\r\n   * group and surrounding spaces). Terminal mutation: returns undefined\r\n   * (not chainable), since the handle's node is no longer reachable.\r\n   * @returns {undefined}\r\n   */\r\n  remove() {\r\n    this.#assertReachable();\r\n    // Terminal fail-flagged word: mirrors detach — child removal no-ops,\r\n    // whole-word removal (level 1) stays allowed.\r\n    if (this.#level !== 1 && this.#inFailFlaggedGroup()) return undefined;\r\n    const raw = this.#ctx.getRaw();\r\n    const groups = raw.groups;\r\n\r\n    // A character's own part only: what a save would write for a part removed\r\n    // or replaced inside another is undecided, so a deeper handle does nothing.\r\n    if (this.#level === 3) {\r\n      const idx = this.#resolveIndex();\r\n      if (!idx) return undefined;\r\n      const glyph = this.#parentRef.glyph;\r\n      if (!glyph?.parts) return undefined;\r\n      const partIndex = glyph.parts.indexOf(this.#nodeRef);\r\n      if (partIndex < 0) return undefined;\r\n      glyph.parts.splice(partIndex, 1);\r\n      // Cascade: last part → remove glyph\r\n      if (glyph.parts.length === 0) {\r\n        return this.#removeGlyphFromGroup(groups, this.#parentRef.group, glyph);\r\n      }\r\n      this.#ctx.rebuild();\r\n      return undefined;\r\n    }\r\n\r\n    if (this.#level === 2) {\r\n      const group = this.#parentRef;\r\n      return this.#removeGlyphFromGroup(groups, group, this.#nodeRef);\r\n    }\r\n\r\n    if (this.#level === 1) {\r\n      const groupIndex = groups.indexOf(this.#nodeRef);\r\n      if (groupIndex < 0) return undefined;\r\n      this.#ctx.removeGlyphGroup(raw, groupIndex);\r\n      this.#ctx.rebuild();\r\n      return undefined;\r\n    }\r\n\r\n    return undefined;\r\n  }\r\n\r\n  removeGlyph(index) {\r\n    this.#assertReachable();\r\n    if (this.#level !== 1) return this;\r\n    const group = this.#nodeRef;\r\n    if (!group?.glyphs?.length) return this;\r\n    // Terminal fail-flagged word: see #inFailFlaggedGroup.\r\n    if (group.errorCode) return this;\r\n    if (index < 0) index = group.glyphs.length + index;\r\n    if (!Number.isInteger(index) || index < 0 || index >= group.glyphs.length) return this;\r\n    group.glyphs.splice(index, 1);\r\n    if (group.glyphs.length === 0) {\r\n      const raw = this.#ctx.getRaw();\r\n      const groupIndex = raw.groups.indexOf(group);\r\n      if (groupIndex >= 0) {\r\n        this.#ctx.removeGlyphGroup(raw, groupIndex);\r\n      }\r\n    }\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n\r\n  removePart(index) {\r\n    this.#assertReachable();\r\n    if (this.#level !== 2) return this;\r\n    const glyph = this.#nodeRef;\r\n    if (!glyph?.parts?.length) return this;\r\n    // Terminal fail-flagged word: see #inFailFlaggedGroup.\r\n    if (this.#inFailFlaggedGroup()) return this;\r\n    if (index < 0) index = glyph.parts.length + index;\r\n    if (!Number.isInteger(index) || index < 0 || index >= glyph.parts.length) return this;\r\n    glyph.parts.splice(index, 1);\r\n    if (glyph.parts.length === 0) {\r\n      this.#removeGlyphFromGroup(\r\n        this.#ctx.getRaw().groups, this.#parentRef, glyph\r\n      );\r\n      this.#syncGeneration();\r\n      return this;\r\n    }\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n\r\n  #removeGlyphFromGroup(groups, group, glyph) {\r\n    const raw = this.#ctx.getRaw();\r\n    if (!group?.glyphs) return undefined;\r\n    const glyphIndex = group.glyphs.indexOf(glyph);\r\n    if (glyphIndex < 0) return undefined;\r\n    group.glyphs.splice(glyphIndex, 1);\r\n    // Cascade: last glyph → remove group + space\r\n    if (group.glyphs.length === 0) {\r\n      const groupIndex = groups.indexOf(group);\r\n      if (groupIndex >= 0) {\r\n        this.#ctx.removeGlyphGroup(raw, groupIndex);\r\n      }\r\n    }\r\n    this.#ctx.rebuild();\r\n    return undefined;\r\n  }\r\n\r\n  // --- Mutation: parent-centric replace ---\r\n\r\n  replaceGlyph(index, code, opts) {\r\n    this.#assertReachable();\r\n    if (this.#level !== 1) return this;\r\n    const group = this.#nodeRef;\r\n    if (!group) return this;\r\n    // Terminal fail-flagged word: see #inFailFlaggedGroup.\r\n    if (group.errorCode) return this;\r\n    assertCodeArg('replaceGlyph', code);\r\n    assertOptsArg('replaceGlyph', opts);\r\n    if (!group.glyphs?.length) return this;\r\n    if (index < 0) index = group.glyphs.length + index;\r\n    if (!Number.isInteger(index) || index < 0 || index >= group.glyphs.length) return this;\r\n    const newGlyph = this.#parseGlyphArg(code);\r\n    this.#applyDefaultsOverrides(newGlyph, opts, 'character');\r\n    group.glyphs[index] = newGlyph;\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n\r\n  replacePart(index, code, opts) {\r\n    this.#assertReachable();\r\n    if (this.#level !== 2) return this;\r\n    const glyph = this.#nodeRef;\r\n    if (!glyph) return this;\r\n    // Terminal fail-flagged word: see #inFailFlaggedGroup.\r\n    if (this.#inFailFlaggedGroup()) return this;\r\n    assertCodeArg('replacePart', code);\r\n    assertOptsArg('replacePart', opts);\r\n    if (!glyph.parts?.length) return this;\r\n    if (index < 0) index = glyph.parts.length + index;\r\n    if (!Number.isInteger(index) || index < 0 || index >= glyph.parts.length) return this;\r\n    const newPart = this.#parsePartArg(code);\r\n    this.#applyDefaultsOverrides(newPart, opts, 'part');\r\n    glyph.parts[index] = newPart;\r\n    this.#clearGlyphIdentity(glyph);\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n\r\n  // --- Mutation: self-centric replace ---\r\n\r\n  replace(code, opts) {\r\n    this.#assertReachable();\r\n    // Terminal fail-flagged word: see #inFailFlaggedGroup (levels 2/3 only;\r\n    // there is no level-1 replace arm — replaceGroup is the recovery).\r\n    if (this.#inFailFlaggedGroup()) return this;\r\n    if (this.#level === 2) {\r\n      assertCodeArg('replace', code);\r\n      assertOptsArg('replace', opts);\r\n      const group = this.#parentRef;\r\n      if (!group?.glyphs) return this;\r\n      const glyphIndex = group.glyphs.indexOf(this.#nodeRef);\r\n      if (glyphIndex < 0) return this;\r\n      const newGlyph = this.#parseGlyphArg(code);\r\n      this.#applyDefaultsOverrides(newGlyph, opts, 'character');\r\n      group.glyphs[glyphIndex] = newGlyph;\r\n      this.#nodeRef = newGlyph;\r\n      this.#ctx.rebuild();\r\n      this.#syncGeneration();\r\n      return this;\r\n    }\r\n\r\n    // A character's own part only: what a save would write for a part removed\r\n    // or replaced inside another is undecided, so a deeper handle does nothing.\r\n    if (this.#level === 3) {\r\n      assertCodeArg('replace', code);\r\n      assertOptsArg('replace', opts);\r\n      const glyph = this.#parentRef.glyph;\r\n      if (!glyph?.parts) return this;\r\n      const partIndex = glyph.parts.indexOf(this.#nodeRef);\r\n      if (partIndex < 0) return this;\r\n      const newPart = this.#parsePartArg(code);\r\n      this.#applyDefaultsOverrides(newPart, opts, 'part');\r\n      glyph.parts[partIndex] = newPart;\r\n      this.#clearGlyphIdentity(glyph);\r\n      this.#nodeRef = newPart;\r\n      this.#ctx.rebuild();\r\n      this.#syncGeneration();\r\n      return this;\r\n    }\r\n\r\n    return this;\r\n  }\r\n\r\n  // --- Mutation: indicators ---\r\n\r\n  applyIndicators(code, opts) {\r\n    this.#assertReachable();\r\n    // A non-string, non-nullish code is a type error, not DSL content. Without\r\n    // this guard it would tokenize to zero codes and silently store the\r\n    // render-significant empty overlay.\r\n    if (code !== undefined && code !== null && typeof code !== 'string') {\r\n      throw new TypeError('applyIndicators() code must be a string (or omitted for the empty indicator set).');\r\n    }\r\n    // An empty request (no argument, '', or whitespace-only) is the deliberate\r\n    // spelling of the EMPTY indicator set, not an error: a group handle stores\r\n    // the empty `;;` overlay (hides the head's character-level indicators,\r\n    // adds none); a glyph handle gets the same state effect as\r\n    // clearIndicators() (a bare base stays a harmless no-op, like a trailing\r\n    // `;` in the DSL). stripSemantic lives on apply only, so\r\n    // applyIndicators('', { stripSemantic: true }) is the strip spelling\r\n    // (formerly clearIndicators({ stripSemantic: true })).\r\n    const normalized = (code === undefined || code === null || code.trim() === '') ? '' : code;\r\n    // Group handle (level 1): word-level overlay channel. Glyph handle\r\n    // (level 2): character-level parts. Other levels: no-op via the level-2 path.\r\n    if (this.#level === 1) return this.#applyOrClearWordIndicators(normalized, opts);\r\n    return this.#applyOrClearIndicators(normalized, opts);\r\n  }\r\n\r\n  clearIndicators(opts) {\r\n    this.#assertReachable();\r\n    // Clear is the PURE UNDO: it only removes (the `;;` overlay on a group\r\n    // handle, baked grammatical indicators on a glyph handle) and takes no\r\n    // stripSemantic (both #applyOrClear* paths force it off for a clear).\r\n    if (this.#level === 1) return this.#applyOrClearWordIndicators(null, opts);\r\n    return this.#applyOrClearIndicators(null, opts);\r\n  }\r\n\r\n  // `suppressNoop` is set by the flatten-clear delegation when it has already\r\n  // removed a `;;` overlay: that removal is the real effect, so a char-level\r\n  // no-op here is not an overall no-op and must not be reported. It is a private\r\n  // positional argument (not an opts key) so it is unreachable from the public\r\n  // applyIndicators/clearIndicators surface.\r\n  #applyOrClearIndicators(code, opts, suppressNoop = false) {\r\n    if (this.#level !== 2) return this;\r\n    const glyph = this.#nodeRef;\r\n    if (!glyph) return this;\r\n    // Terminal fail-flagged word: see #inFailFlaggedGroup. (The flatten\r\n    // delegation cannot reach here for a flagged group — the word-level path\r\n    // gates first.)\r\n    if (this.#inFailFlaggedGroup()) return this;\r\n    if (!glyph.parts) glyph.parts = [];\r\n\r\n    const definitions = this.#ctx.getDefinitions();\r\n    // stripSemantic is an apply-only option: a clear (code === null) is the\r\n    // pure undo and never strips the semantic root.\r\n    const stripSemantic = code !== null && opts?.stripSemantic === true;\r\n    const targetCode = glyph.codeName || glyph.parts[0]?.codeName || 'unknown';\r\n\r\n    // A space glyph is not a base for indicators. Under the i>0 rule its single\r\n    // part would otherwise classify as a base, so carve it out and keep the\r\n    // no-op + warning.\r\n    if (this.#ctx.isRawSpaceGroup(this.#parentRef)) {\r\n      if (!suppressNoop) {\r\n        const verb = code === null ? 'clearIndicators()' : `applyIndicators('${code}')`;\r\n        // `||` deliberately (not `??`): the empty apply's '' must fall back to\r\n        // the target code, never become an empty source.\r\n        this.#warnIndicatorNoop(\r\n          `${verb} had no effect: the target glyph '${targetCode}' is a space.`,\r\n          code || targetCode,\r\n        );\r\n      }\r\n      return this;\r\n    }\r\n\r\n    // Classify parts: the first part is always the base (even when it is itself\r\n    // an indicator), so scan for the first TRAILING indicator from index 1.\r\n    // Mirrors mergeWordIndicatorsOntoHead, so a lone indicator or an empty glyph\r\n    // carries a further indicator rather than no-opping (the atypical-base\r\n    // contract).\r\n    const firstIndicatorIndex = glyph.parts.findIndex((p, i) => i > 0 && p.isIndicator === true);\r\n\r\n    let baseParts, indicatorParts;\r\n    if (firstIndicatorIndex === -1) {\r\n      baseParts = glyph.parts;\r\n      indicatorParts = [];\r\n    } else {\r\n      baseParts = glyph.parts.slice(0, firstIndicatorIndex);\r\n      indicatorParts = glyph.parts.slice(firstIndicatorIndex);\r\n    }\r\n\r\n    // Validate pattern: no non-indicators after the first indicator\r\n    const isValidPattern = indicatorParts.every(p => p.isIndicator === true);\r\n    if (!isValidPattern) {\r\n      if (!suppressNoop) {\r\n        const verb = code === null ? 'clearIndicators()' : `applyIndicators('${code}')`;\r\n        // `||` deliberately (not `??`): see the space-glyph arm above.\r\n        this.#warnIndicatorNoop(\r\n          `${verb} had no effect: the target glyph '${targetCode}' has a non-indicator part after an indicator part (an invalid indicator pattern).`,\r\n          code || targetCode,\r\n        );\r\n      }\r\n      return this;\r\n    }\r\n\r\n    // Extract existing indicator codes for semantic analysis\r\n    const existingIndCodes = indicatorParts.map(p => p.codeName);\r\n\r\n    // Determine the final indicator code list (replace-all with semantic\r\n    // preservation; clearIndicators passes no new codes), then parse each\r\n    // into a proper part node with metadata.\r\n    const requestedCodes = code !== null ? splitTopLevelSemicolons(code) : [];\r\n\r\n    // A character-level indicator slot takes indicators only (the same rule,\r\n    // one level down, as the group `;;` overlay path — shared classifier for\r\n    // parity). Each rejected code warns individually on the persistent\r\n    // mutation channel; this REPLACES the old single \"applied no indicator\"\r\n    // no-op arm (strictly more informative: it names each offending code even\r\n    // when the valid subset makes the call a real mutation). A code carrying\r\n    // word structure (a top-level `/`, hidden from the bare-code classifier\r\n    // behind a coordinate suffix) can never be a single indicator part, so it\r\n    // is rejected too. The surviving codes are then PARSED BEFORE the glyph is\r\n    // touched: a code whose decoration fails to parse (e.g. `B81:bad`) yields\r\n    // only a codeName-less error part, so it is excluded — the forwarded parse\r\n    // warnings (MALFORMED_COORDINATES etc.) are its visibility channel. An\r\n    // apply left with NOTHING attachable REFUSES: explicit failed content is\r\n    // not deliberate emptiness (that spelling is applyIndicators('')), so the\r\n    // existing indicators stay untouched and nothing strips as a side effect\r\n    // (parity with the group overlay's null-resolver refuse arm).\r\n    let attachableEntries = [];\r\n    if (code !== null && requestedCodes.length > 0) {\r\n      const { valid, rejected } = partitionWordIndicators(requestedCodes, definitions);\r\n      for (const { code: badCode, reason } of rejected) {\r\n        this.#ctx.addMutationWarning(reason === 'word-structure'\r\n          ? {\r\n              code: WARNING_CODES.MISPLACED_CHARACTER_INDICATOR,\r\n              message: `applyIndicators('${code}'): \"${badCode}\" spans multiple characters (it contains a top-level /); a character-level indicator code must be a single indicator. It cannot be applied.`,\r\n              source: badCode,\r\n            }\r\n          : reason === 'non-indicator'\r\n            ? {\r\n                code: WARNING_CODES.NON_INDICATOR_AS_CHARACTER_INDICATOR,\r\n                message: `applyIndicators('${code}'): \"${badCode}\" is not an indicator; it cannot be applied. A character-level indicator code must be an indicator (e.g. B81).`,\r\n                source: badCode,\r\n              }\r\n            : {\r\n                code: WARNING_CODES.UNKNOWN_CODE,\r\n                message: `applyIndicators('${code}'): unknown indicator code \"${badCode}\"; it cannot be applied.`,\r\n                source: badCode,\r\n              });\r\n      }\r\n      for (const validCode of valid) {\r\n        const parsed = this.#ctx.parse(validCode);\r\n        this.#forwardParseWarnings(parsed);\r\n        const glyphs = parsed.groups?.length === 1 ? parsed.groups[0].glyphs : null;\r\n        const parts = glyphs?.length === 1 ? glyphs[0].parts : null;\r\n        if (parts?.length > 0 && parts.every(p => p.isIndicator === true)) {\r\n          attachableEntries.push({ code: validCode, parts });\r\n        } else {\r\n          // An error part's warning used to surface at render, AFTER it was\r\n          // already inserted; the part is now never inserted, so its parse\r\n          // error (e.g. MALFORMED_COORDINATES) is re-emitted on the mutation\r\n          // channel as the excluded code's visibility.\r\n          const errorPart = parts?.find(p => p.errorCode);\r\n          const detail = errorPart?.error ? ` (${errorPart.error})` : '';\r\n          this.#ctx.addMutationWarning({\r\n            code: errorPart?.errorCode ?? WARNING_CODES.UNKNOWN_CODE,\r\n            message: `applyIndicators('${code}'): \"${validCode}\" cannot be applied as an indicator part${detail}.`,\r\n            source: validCode,\r\n          });\r\n        }\r\n      }\r\n      if (attachableEntries.length === 0) return this;\r\n    }\r\n\r\n    const finalCodes = resolveIndicatorCodes(existingIndCodes, attachableEntries.map(e => e.code), { stripSemantic }, definitions);\r\n\r\n    // A clear with no indicator parts had nothing to remove. (A clear that\r\n    // preserves a semantic root is a documented no-op and is intentionally not\r\n    // warned. The apply-side \"applied no indicator\" arm is gone: the per-code\r\n    // validation warnings above cover every rejected apply code.)\r\n    if (!suppressNoop) {\r\n      if (code === null && indicatorParts.length === 0) {\r\n        this.#warnIndicatorNoop(\r\n          `clearIndicators() had no effect: the target glyph '${targetCode}' has no indicators to clear.`,\r\n          targetCode,\r\n        );\r\n      }\r\n    }\r\n\r\n    // Assemble the new indicator parts. A requested code reuses the part\r\n    // nodes from its validation parse above (parsing again would forward its\r\n    // warnings twice); a code the resolver added back (the preserved semantic\r\n    // root) parses fresh. Entries are consumed in order so a duplicated\r\n    // requested code yields distinct part nodes.\r\n    const newIndicatorParts = [];\r\n    for (const indCode of finalCodes) {\r\n      const entryIndex = attachableEntries.findIndex(e => e.code === indCode);\r\n      if (entryIndex !== -1) {\r\n        newIndicatorParts.push(...attachableEntries.splice(entryIndex, 1)[0].parts);\r\n        continue;\r\n      }\r\n      const parsed = this.#ctx.parse(indCode);\r\n      this.#forwardParseWarnings(parsed);\r\n      const partNode = parsed.groups?.[0]?.glyphs?.[0]?.parts?.[0];\r\n      if (partNode) newIndicatorParts.push(partNode);\r\n    }\r\n\r\n    // Reassemble glyph parts\r\n    glyph.parts = [...baseParts, ...newIndicatorParts];\r\n\r\n    // Update glyph identity\r\n    this.#updateGlyphIdentityAfterIndicatorChange(glyph, definitions);\r\n\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n\r\n  // Emit a mutation warning (one per no-op call) when an indicator\r\n  // apply/clear had no effect. Uses the persistent mutation-warning channel\r\n  // (survives #rebuild), not the parse `#warnings` (which resets each rebuild).\r\n  #warnIndicatorNoop(message, source) {\r\n    this.#ctx.addMutationWarning({\r\n      code: WARNING_CODES.NOOP_INDICATOR_MUTATION,\r\n      message,\r\n      source,\r\n    });\r\n  }\r\n\r\n  #updateGlyphIdentityAfterIndicatorChange(glyph, definitions) {\r\n    // A custom (non-built-in) Bliss glyph keeps its identity through indicator\r\n    // changes: written alone it is one part named after it, which the\r\n    // indicators are appended beside, so { preserve: true } writes that name\r\n    // and the indicators after it, as the DSL `;` spelling reads (DSL/API\r\n    // parity). Built-in glyphs decompose, so they fall through to the reset\r\n    // logic below.\r\n    if (glyph.isBlissGlyph === true\r\n        && typeof glyph.glyphCode === 'string'\r\n        && !builtInCodes.has(glyph.glyphCode)) {\r\n      return;\r\n    }\r\n    const hasIndicators = glyph.parts.some(p => p.isIndicator === true);\r\n    if (!hasIndicators && glyph.parts.length === 1) {\r\n      const baseCode = glyph.parts[0].codeName;\r\n      const def = definitions[baseCode];\r\n      if (def?.isBlissGlyph) {\r\n        glyph.isBlissGlyph = true;\r\n        glyph.codeName = baseCode;\r\n        if (def.glyphCode) glyph.glyphCode = def.glyphCode;\r\n      } else {\r\n        delete glyph.isBlissGlyph;\r\n        delete glyph.codeName;\r\n        delete glyph.glyphCode;\r\n      }\r\n    } else {\r\n      delete glyph.isBlissGlyph;\r\n      delete glyph.codeName;\r\n      delete glyph.glyphCode;\r\n    }\r\n  }\r\n\r\n  // Word-level indicator channel for a group handle. Sets/clears the reversible\r\n  // `group.wordIndicators` overlay (the DSL `;;` form), leaving the base glyphs\r\n  // intact so a later clear restores them. `flatten` opts out of the\r\n  // overlay and bakes onto the head as character-level parts instead (the\r\n  // pre-overlay, character-level shape). `code` is null for clear, '' for the\r\n  // deliberate empty apply (== the DSL's bare `;;`). Mirrors the parser overlay\r\n  // store -- including `;;` non-indicator validation -- so the API and the `;;`\r\n  // DSL marker produce byte-identical state (DSL/API parity).\r\n  #applyOrClearWordIndicators(code, opts) {\r\n    const group = this.#nodeRef;\r\n    // Overlay clear/apply are pure state ops on the group node, so they must\r\n    // keep working when every glyph was detached — a stale overlay on an\r\n    // emptied word would otherwise be unreachable and resurrect on the next\r\n    // addGlyph. Only flatten needs glyphs (below).\r\n    if (!group) return this;\r\n    // Terminal fail-flagged word: see #inFailFlaggedGroup.\r\n    if (group.errorCode) return this;\r\n    // A space group carries no word indicator: refuse + warn (parity with the\r\n    // glyph-level space arm), never store an overlay the space's '//'\r\n    // serialization would eat.\r\n    if (this.#ctx.isRawSpaceGroup(group)) {\r\n      const verb = code === null ? 'clearIndicators()' : `applyIndicators('${code}')`;\r\n      const targetCode = group.glyphs[0]?.parts?.[0]?.codeName || 'unknown';\r\n      // `||` deliberately (not `??`): the empty apply's '' falls back to the\r\n      // target code, never an empty source (parity with the glyph arm).\r\n      this.#warnIndicatorNoop(\r\n        `${verb} had no effect: the target word is a space; a space cannot carry a word indicator.`,\r\n        code || targetCode,\r\n      );\r\n      return this;\r\n    }\r\n    // stripSemantic is an apply-only option: a clear is the pure undo.\r\n    const stripSemantic = code !== null && opts?.stripSemantic === true;\r\n\r\n    if (opts?.flatten === true) {\r\n      // Flatten bakes onto a head, so it still requires glyphs (an empty word\r\n      // has nothing to bake onto; the overlay stays for a non-flatten op).\r\n      if (!group.glyphs?.length) return this;\r\n      // Bake onto the head; drop any overlay so the indicator is not applied\r\n      // twice (once baked, once re-merged at render). Only drop the overlay\r\n      // when the bake actually lands. A clear always bakes (removal is the\r\n      // effect), and so does the empty apply (same clear state effect, strip\r\n      // honored); a code-carrying apply bakes only if it carries a recognized\r\n      // indicator, else the overlay is kept rather than silently destroyed.\r\n      const head = this.headGlyph();\r\n      const hadOverlay = group.wordIndicators !== undefined;\r\n      const requestedCodes = code === null || code === '' ? [] : splitTopLevelSemicolons(code);\r\n      const bakeApplies = code === null || code === ''\r\n        || filterToIndicators(requestedCodes, this.#ctx.getDefinitions()).length > 0;\r\n      if (bakeApplies) delete group.wordIndicators;\r\n      if (head) {\r\n        // When an overlay was removed, that removal IS the effect, so the\r\n        // delegated char-level clear-nothing must not warn as a no-op. The\r\n        // suppress signal is passed as a private positional arg (not an opts\r\n        // key), so it goes through the private method, not public clearIndicators.\r\n        // An apply is left unsuppressed so an unrecognized code still warns; but\r\n        // stripSemantic is forwarded only when the bake applies, so a refused\r\n        // non-indicator apply stays a pure no-op (it must not strip the head as\r\n        // a side effect while keeping the overlay). The strip spelling is\r\n        // applyIndicators('', { flatten: true, stripSemantic: true }).\r\n        if (code === null) head.#applyOrClearIndicators(null, {}, hadOverlay);\r\n        else head.applyIndicators(code, { stripSemantic: bakeApplies && stripSemantic });\r\n      } else if (hadOverlay && bakeApplies) {\r\n        this.#ctx.rebuild();\r\n      }\r\n      this.#syncGeneration();\r\n      return this;\r\n    }\r\n\r\n    if (code === null) {\r\n      // Clear: the pure undo. Removing the overlay fully restores the base --\r\n      // the head's own character-level indicators, replaced at render while\r\n      // the overlay existed, become visible again. A clear that finds no\r\n      // overlay warns (parity with the glyph-level clear-nothing arm).\r\n      const hadOverlay = group.wordIndicators !== undefined;\r\n      delete group.wordIndicators;\r\n      if (!hadOverlay) {\r\n        const headNode = this.headGlyph()?.#nodeRef ?? group.glyphs?.[0];\r\n        const targetCode = headNode?.codeName || headNode?.parts?.[0]?.codeName || 'unknown';\r\n        this.#warnIndicatorNoop(\r\n          `clearIndicators() had no effect: the word has no word-level (;;) indicator overlay to clear.`,\r\n          targetCode,\r\n        );\r\n      }\r\n    } else {\r\n      // A `;;` overlay code must BE an indicator (same rule as the DSL `;;`\r\n      // parser path). Tokenize bracket-aware so a multi-key option block's inner\r\n      // `;` is not split (DSL/API parity), then validate + drop non-indicators\r\n      // via the shared resolver, warning on the persistent mutation channel so\r\n      // the warning survives the rebuild below.\r\n      const requestedCodes = splitTopLevelSemicolons(code);\r\n      const overlay = resolveWordIndicatorOverlay(requestedCodes, stripSemantic, this.#ctx.getDefinitions(), ({ code: badCode, reason }) => {\r\n        this.#ctx.addMutationWarning(reason === 'word-structure'\r\n          ? {\r\n              // A `/` hidden behind a coordinate\r\n              // suffix escaped the bare-code classifier, so the stored code\r\n              // serialized to a string the DSL re-parses as word structure.\r\n              code: WARNING_CODES.MALFORMED_WORD_INDICATOR,\r\n              message: `applyIndicators('${code}'): \"${badCode}\" contains a character separator (a top-level /), which a word-level indicator cannot hold; it is ignored.`,\r\n              source: badCode,\r\n            }\r\n          : reason === 'non-indicator'\r\n            ? {\r\n                code: WARNING_CODES.NON_INDICATOR_AS_WORD_INDICATOR,\r\n                message: `applyIndicators('${code}'): \"${badCode}\" is not an indicator; it is ignored. A word-level indicator code must be an indicator (e.g. B81).`,\r\n                source: badCode,\r\n              }\r\n            : {\r\n                code: WARNING_CODES.UNKNOWN_CODE,\r\n                message: `applyIndicators('${code}'): unknown indicator code \"${badCode}\"; it is ignored.`,\r\n                source: badCode,\r\n              });\r\n      }, ({ bracket, code: keptCode, source }) => {\r\n        this.#ctx.addMutationWarning({\r\n          code: WARNING_CODES.MISPLACED_CHARACTER_OPTION,\r\n          message: `applyIndicators('${code}'): character option (${bracket}) ignored on the word indicator \"${keptCode}\": a ;; code has no character to style. Use ${bracket}>${keptCode} to style the indicator part.`,\r\n          source,\r\n        });\r\n      });\r\n      // Store every overlay the shared resolver returns: surviving indicators,\r\n      // an explicit strip, or the deliberately-empty set (the resolver's\r\n      // bare-`;;` arm — an empty apply IS the empty overlay, DSL parity). An\r\n      // apply whose codes are all non-indicators (resolver null) asked for\r\n      // nothing valid: warn and leave any existing overlay untouched rather\r\n      // than silently destroying it. Mirrors the same rule in the flatten arm.\r\n      if (overlay) {\r\n        group.wordIndicators = overlay;\r\n      }\r\n    }\r\n\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n\r\n  // --- Mutation: word structure ---\r\n\r\n  /**\r\n   * Splits this word group into two at the glyph boundary, inserting\r\n   * a space group between. Only valid on group-level handles.\r\n   * @param {number} glyphIndex - Split point (1 to glyphs.length - 1)\r\n   * @returns {this}\r\n   */\r\n  splitAt(glyphIndex) {\r\n    this.#assertReachable();\r\n    if (this.#level !== 1) return this;\r\n    const group = this.#nodeRef;\r\n    if (!group?.glyphs) return this;\r\n    // A fail-flagged word (malformed `;;`) is terminal: it renders as a single\r\n    // placeholder, and its hidden base glyphs must not escape across a group\r\n    // boundary and render as valid. No-op; only replaceGroup recovers it.\r\n    if (group.errorCode) return this;\r\n    const len = group.glyphs.length;\r\n    if (!Number.isInteger(glyphIndex) || glyphIndex <= 0 || glyphIndex >= len) {\r\n      throw new Error(`splitAt(${glyphIndex}) is out of range: must be between 1 and ${len - 1} (inclusive) for a group with ${len} glyphs`);\r\n    }\r\n\r\n    // Resolve raw index before any destructive mutation\r\n    const groups = this.#ctx.getRaw().groups;\r\n    const rawIndex = groups.indexOf(this.#nodeRef);\r\n    if (rawIndex < 0) return this;\r\n\r\n    // The word-level overlay stays with the first part only while the\r\n    // character it is drawn on does. A split at or before that character\r\n    // drops it, loudly, rather than drawing it on another character. An\r\n    // overlay with no character to sit on (-1) has none to lose, and stays.\r\n    const overlayHead = group.wordIndicators ? this.#ctx.overlayHeadIndex(group.glyphs) : -1;\r\n\r\n    // Splice trailing glyphs from the original group (mutate in-place)\r\n    const rightGlyphs = group.glyphs.splice(glyphIndex);\r\n\r\n    if (overlayHead >= glyphIndex) {\r\n      const dropped = writtenOverlay(group.wordIndicators);\r\n      delete group.wordIndicators;\r\n      this.#ctx.addMutationWarning({\r\n        code: WARNING_CODES.DROPPED_WORD_INDICATOR,\r\n        message: `splitAt(${glyphIndex}) dropped the word's word-level indicator overlay (${dropped}). The character it was drawn on went to the second word.`,\r\n        source: dropped,\r\n      });\r\n    }\r\n\r\n    // The `^` head marker obeys first-wins on a structural split: a marked\r\n    // glyph that lands in the second part loses its marker (that part\r\n    // re-derives its head), as mergeWithNext drops the absorbed word's, while\r\n    // a marker that stays in the first part is kept.\r\n    for (const g of rightGlyphs) delete g.isHeadGlyph;\r\n\r\n    // Build right-half group with copied options\r\n    const rightGroup = { glyphs: rightGlyphs };\r\n    if (group.options) {\r\n      rightGroup.options = { ...group.options };\r\n    }\r\n\r\n    const spaceGroup = this.#ctx.makeSpaceGroup();\r\n\r\n    // Insert [space, rightGroup] after the original group\r\n    groups.splice(rawIndex + 1, 0, spaceGroup, rightGroup);\r\n\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Merges this word group with the next non-space group, removing any\r\n   * space groups between them. Only valid on group-level handles.\r\n   * No-op if no next word group exists or if this is a space group.\r\n   * The absorbed group's options are discarded; only this group's\r\n   * options apply to the merged result. Its word-level (`;;`) overlay is\r\n   * dropped with a `DROPPED_WORD_INDICATOR` warning, and its `^` head marker\r\n   * is dropped silently (the merged word resolves a single head).\r\n   * @returns {this}\r\n   */\r\n  mergeWithNext() {\r\n    this.#assertReachable();\r\n    if (this.#level !== 1) return this;\r\n    const group = this.#nodeRef;\r\n    if (!group?.glyphs) return this;\r\n\r\n    const groups = this.#ctx.getRaw().groups;\r\n    const rawIndex = groups.indexOf(this.#nodeRef);\r\n    if (rawIndex < 0) return this;\r\n\r\n    // No-op for space groups\r\n    if (this.#ctx.isRawSpaceGroup(group)) return this;\r\n    // No-op when this word is fail-flagged (malformed `;;`): it is terminal and\r\n    // cannot absorb a neighbor (the merged glyphs would render through the\r\n    // re-emitted error source, silently dropping the absorbed word).\r\n    if (group.errorCode) return this;\r\n\r\n    // Scan right to find the next non-space group\r\n    let nextWordIndex = -1;\r\n    for (let i = rawIndex + 1; i < groups.length; i++) {\r\n      if (!this.#ctx.isRawSpaceGroup(groups[i])) {\r\n        nextWordIndex = i;\r\n        break;\r\n      }\r\n    }\r\n    if (nextWordIndex < 0) return this;\r\n\r\n    // No-op if the next group has no glyphs to absorb\r\n    const nextGroup = groups[nextWordIndex];\r\n    if (!nextGroup.glyphs?.length) return this;\r\n    // No-op when the neighbor is fail-flagged (malformed `;;`): absorbing its\r\n    // hidden base glyphs would let the failed word's content render as valid\r\n    // (a silent un-fail). The failed word stays separate until replaced.\r\n    if (nextGroup.errorCode) return this;\r\n\r\n    // Absorb the next word group's glyphs\r\n    group.glyphs.push(...nextGroup.glyphs);\r\n\r\n    // `^` is word-scoped and first-wins, so the absorbed word's head\r\n    // marker is dropped silently (a re-derived head is not data loss). Clear it\r\n    // on the absorbed glyphs so the merged word keeps at most the first word's\r\n    // `^`; mirrors splitAt's right-side clear and keeps merge ≡ `/`-compose.\r\n    for (const g of nextGroup.glyphs) delete g.isHeadGlyph;\r\n\r\n    // The merged word keeps THIS group's word-level overlay; the absorbed\r\n    // group's overlay is dropped (one head governs the merged word, and it is\r\n    // this group's). Data loss must be loud, so warn rather than drop silently.\r\n    if (nextGroup.wordIndicators) {\r\n      const dropped = writtenOverlay(nextGroup.wordIndicators);\r\n      this.#ctx.addMutationWarning({\r\n        code: WARNING_CODES.DROPPED_WORD_INDICATOR,\r\n        message: `mergeWithNext() dropped the absorbed word's word-level indicator overlay (${dropped}). The merged word keeps only the first word's overlay.`,\r\n        source: dropped,\r\n      });\r\n    }\r\n\r\n    // Remove everything from rawIndex+1 through nextWordIndex (spaces + absorbed word)\r\n    groups.splice(rawIndex + 1, nextWordIndex - rawIndex);\r\n\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n\r\n  // --- Mutation: options ---\r\n\r\n  setOptions(opts) {\r\n    this.#assertReachable();\r\n    // Terminal fail-flagged word: CHILD options live inside the frozen error\r\n    // source and no-op; GROUP options are the documented exemption (they\r\n    // serialize outside it, `[opts]|errorSource`, and round-trip).\r\n    if (this.#level !== 1 && this.#inFailFlaggedGroup()) return this;\r\n    const node = this.#nodeRef;\r\n    if (!node) return this;\r\n    assertOptsArg('setOptions', opts);\r\n    this.#applyDefaultsOverrides(node, opts, this.#scopeLevel);\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n\r\n  removeOptions(...keys) {\r\n    this.#assertReachable();\r\n    // Terminal fail-flagged word: mirrors setOptions (group-level exempt).\r\n    if (this.#level !== 1 && this.#inFailFlaggedGroup()) return this;\r\n    const node = this.#nodeRef;\r\n    if (!node) return this;\r\n    assertKeyArgs('removeOptions', keys);\r\n    // Naming an axis takes the position off whichever spelling wrote it (see\r\n    // removeElementOption). This mirrors the clear that SETTING a position\r\n    // already does without consulting the bag, so the two directions agree.\r\n    // Gating on the bag instead made removal work only until the composition\r\n    // had been saved through the string serializer and reloaded, which spells\r\n    // a part position as a coordinate.\r\n    //\r\n    // Scope is a separate question and is unchanged: the node is this handle's\r\n    // own, so clearing a character's x never reaches a coordinate on a part\r\n    // beneath it.\r\n    for (const key of keys) removeElementOption(node, key);\r\n    // The options a definition gives the part its code names (a built-in's\r\n    // dotted line, a custom definition's own options) are part of what the\r\n    // code is, so removing one of their keys from that part returns it to the\r\n    // definition's value instead of taking it off. Clearing does the same, so\r\n    // the two agree, and no look is made that no save could write back. The\r\n    // names are matched the way the deletion above matched them, on a copy of\r\n    // the look.\r\n    const ownLook = this.#ctx.ownLookAt(node, this.#optionLevel, this.#owningCharacter());\r\n    if (ownLook) {\r\n      const unnamed = { ...ownLook };\r\n      for (const key of keys) deleteOptionByName(unnamed, key);\r\n      if (Object.keys(unnamed).length < Object.keys(ownLook).length) {\r\n        // Each value goes back where it sat: a definition's options lead the\r\n        // bag, as the parser puts them under what is written over them, so\r\n        // the element saves as it did.\r\n        const bag = node.options ?? {};\r\n        const lead = Object.entries(ownLook).filter(([key]) => !Object.hasOwn(unnamed, key) || Object.hasOwn(bag, key));\r\n        node.options = { ...Object.fromEntries(lead), ...bag };\r\n      }\r\n    }\r\n    // Clean up empty options object\r\n    if (node.options && Object.keys(node.options).length === 0) {\r\n      delete node.options;\r\n    }\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n\r\n  // Everything the canonical string writes in brackets for this element and no\r\n  // more: its options, a word's or a character's position, and the options\r\n  // inside a word's `;;` codes. A part keeps its coordinates and a character its\r\n  // kerning (both written outside a bracket), which is where this differs from\r\n  // removing `x` by name. `key`, transient options and the options the element's\r\n  // code brings by its definition stay; what sits below it is its own element's\r\n  // to clear. The same function saves a composition without options, so what\r\n  // that save leaves out and what this takes away are one set.\r\n  clearOptions() {\r\n    this.#assertReachable();\r\n    // Terminal fail-flagged word: mirrors setOptions (group-level exempt).\r\n    if (this.#level !== 1 && this.#inFailFlaggedGroup()) return this;\r\n    const node = this.#nodeRef;\r\n    if (!node) return this;\r\n    this.#ctx.clearOwnOptions(node, this.#optionLevel, this.#owningCharacter());\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n\r\n  // --- Mutation: transient options ---\r\n\r\n  // Deliberately NOT routed through #applyDefaultsOverrides. That merge clears\r\n  // the element's NORMAL position and kerning channels whenever an override\r\n  // names one of those keys, which is correct when the caller is writing that\r\n  // channel and destructive here, where those keys are refused anyway. A\r\n  // transient call must never be able to damage the document on its way to\r\n  // being rejected.\r\n  //\r\n  // The refusal itself lives in one place on the authoring structure\r\n  // (#normalizeTransientInvariant), so object input and these setters cannot\r\n  // drift apart, and an offending key is reported once rather than re-judged\r\n  // on every rebuild.\r\n  setTransientOptions(opts) {\r\n    this.#assertReachable();\r\n    // Terminal fail-flagged word: mirrors setOptions (group-level exempt).\r\n    if (this.#level !== 1 && this.#inFailFlaggedGroup()) return this;\r\n    const node = this.#nodeRef;\r\n    if (!node) return this;\r\n    assertOptsArg('setTransientOptions', opts);\r\n    const raw = this.#ctx.toRaw(opts ?? {}, { level: this.#scopeLevel, notation: 'setter', transient: true });\r\n    node.transientOptions = { ...(node.transientOptions ?? {}), ...raw };\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n\r\n  // A name is read the same way `removeOptions` reads it, so an owned name goes\r\n  // under either spelling and a name nobody owns goes under the one written.\r\n  removeTransientOptions(...keys) {\r\n    this.#assertReachable();\r\n    // Terminal fail-flagged word: mirrors setOptions (group-level exempt).\r\n    if (this.#level !== 1 && this.#inFailFlaggedGroup()) return this;\r\n    const node = this.#nodeRef;\r\n    if (!node) return this;\r\n    // Ahead of the empty-bag return, so what the call is refused for does not\r\n    // depend on whether there happened to be anything to remove.\r\n    assertKeyArgs('removeTransientOptions', keys);\r\n    if (!node.transientOptions) return this;\r\n    for (const key of keys) {\r\n      deleteOptionByName(node.transientOptions, key);\r\n    }\r\n    // Housekeeping, and deliberately unpinned: a transient bag never\r\n    // serializes, so an empty one is indistinguishable from an absent one on\r\n    // every public surface. Measured, not assumed. It stays so the authoring\r\n    // structure does not accumulate empty bags, not because anything reads it.\r\n    if (Object.keys(node.transientOptions).length === 0) {\r\n      delete node.transientOptions;\r\n    }\r\n    this.#ctx.rebuild();\r\n    this.#syncGeneration();\r\n    return this;\r\n  }\r\n}\r\n","/** \r\n * This Source Code Form is subject to the terms of the Mozilla Public\r\n * License, v. 2.0. If a copy of the MPL was not distributed with this\r\n * file, You can obtain one at https://mozilla.org/MPL/2.0/.\r\n */\r\n\r\nimport { blissElementDefinitions, builtInCodes, isSpaceGlyph, protectedCodes } from \"./bliss-element-definitions.js\";\r\nimport { BlissElement } from \"./bliss-element.js\";\r\nimport { BlissParser, COORD_SUFFIX_PATTERN, X_RUN_BODY, MAX_INPUT_LENGTH, classifyXCode, layoutDefinitionOf, processXCodes, slotCodeOf, extractPositionFromOptions, normalizePositionFields, pullsInWordSpace, resolveKerning, kerningOptionEntries, withoutInputWhitespace } from \"./bliss-parser.js\";\r\nimport { BOOLEAN_OPTION_KEYS, INTERNAL_OPTIONS, KERNING_OPTION_KEYS, PUBLICATION_MAP, KNOWN_OPTION_KEYS, GLOBAL_ONLY_OPTION_KEYS, TRANSIENT_REFUSED_OPTION_KEYS, transientRefusalMessage, isDocumentDefiningAttribute, isLibraryOwnedRootAttribute, isImageAttribute, ANCHOR_ATTRIBUTE_NAMES, BAND_HEIGHT, DEFAULT_STROKE_WIDTH, admitOptions, canonicalOptionKey, optionNameIsAlreadyRefused, layerKeyNameRefusal, reservedAttributeMessage, unsafeAttributeNameMessage, programmaticOptionKey, deleteOptionByName, removeElementOption, GEOMETRY_OPTION_KEYS, SIZE_OPTION_KEYS, COMPUTED_GEOMETRY_INPUTS, ELEMENT_CLASSES, BACKGROUND_AREA_ELEMENTS, CURATED_ATTRIBUTE_SOURCES, CONTAINER_SHADOWED_ATTRIBUTES, targetOfClass, judgeNumericOptionValue, judgeTextOptionValue, judgeKeywordOptionValue, bareElementKeyRefusal, KEYWORD_OPTION_VALUES, textOfValue, escapeHtml, isSafeAttributeName, camelToKebab, isNamedOptionKey, INTERNAL_ONLY_SPELLINGS, isLayerAttributeKey, isElementLayerKey, parseLayerAttributeKey, generateKey, LIB_VERSION, WARNING_CODES, serializeOptionValue, peelCharacterBrackets, WRITTEN_COORDINATE_PATTERN, writtenWidth } from \"./bliss-constants.js\";\r\nimport { ElementHandle, assertCodeArg, assertKeyArgs, assertOptsArg } from \"./element-handle.js\";\r\nimport { filterToIndicators, getBareCode, lookupEffectiveDefinition, mergeWordIndicatorsOntoHead, resolveEffectiveDefinition, resolveWordIndicatorOverlay, SINGLE_CODE_TOKEN, wordIndicatorNode } from \"./indicator-utils.js\";\r\nimport { resolveHeadIndex, headScanCode } from \"./bliss-head-glyph-exclusions.js\";\r\nimport { translateFilters, filterReach, numberFilters, fillFilterIds } from \"./bliss-filters.js\";\r\n\r\n// Pre-parsed error placeholder (REFSQUARE + question mark). Parsed once at module\r\n// load so BlissElement can clone it without importing BlissParser itself.\r\nconst ERROR_PLACEHOLDER_PARTS = BlissParser.parse('REFSQUARE;B699:3').groups[0].glyphs[0].parts;\r\n\r\n// Head-scan code for a raw blissObj glyph: a glyph of several parts is never\r\n// skipped, whatever code it names; a glyph of one part is matched by its own\r\n// identity, else by its part's codeName. headScanCode is the single source\r\n// shared with the element snapshot and the parser's scan, so the three places\r\n// that pick a word's head stay in lockstep.\r\nconst getHeadCode = (glyph) =>\r\n  headScanCode(glyph.glyphCode, glyph.parts?.length ?? 0, glyph.parts?.[0]?.codeName);\r\n\r\n// Whether the string writes `value` under the option `key`: every value but a\r\n// switch's `false`. A switch is on only when it is exactly `true`, so leaving\r\n// its `false` out is what off already means. Anywhere else a `false` is drawn\r\n// as the text it spells (`stroke=\"false\"`, `aria-hidden=\"false\"`), so a string\r\n// that left it out would reload another picture.\r\nconst writesOptionValue = (key, value) => value !== false || !BOOLEAN_OPTION_KEYS.has(key);\r\n\r\n// Kerning a glyph holds, which toString() writes as RK:/AK: markers ahead of\r\n// the glyph's own token.\r\nconst glyphHoldsKerning = (glyph) =>\r\n  glyph.options?.relativeKerning !== undefined || glyph.options?.absoluteKerning !== undefined;\r\n\r\n// Mirrors toString()'s emission for a glyph with no parts and no code, which\r\n// is written as a token only where something of it survives serialization: a\r\n// bracket where it has a position (`[x=3]`) or an option serializeOptions\r\n// writes (`key` is stripped by toJSON, and the kerning keys are written as\r\n// markers), else `[]` after its kerning markers (`RK:3/[]`), the slot a\r\n// reload hands the kerning back to. A head marker is written on that token.\r\nconst GLYPH_OPTION_KEYS_WITHOUT_TOKEN = new Set(['key', 'relativeKerning', 'absoluteKerning']);\r\nconst emptyGlyphWritesToken = (glyph) =>\r\n  glyph.x !== undefined || glyph.y !== undefined || glyphHoldsKerning(glyph)\r\n    || Object.entries(glyph.options ?? {}).some(([k, v]) =>\r\n      writesOptionValue(k, v) && !GLYPH_OPTION_KEYS_WITHOUT_TOKEN.has(k));\r\n\r\n// A glyph the serializer writes nothing for, so no reload reads it back.\r\nconst glyphIsUnwritten = (glyph) =>\r\n  !glyph.parts?.length && !glyph.glyphCode && !glyph.codeName && !emptyGlyphWritesToken(glyph);\r\n\r\n// A head designation on a glyph the serializer writes nothing for has no\r\n// written form. The rebuild drops such a designation, and so does the view\r\n// without options, which empties glyphs on its own working copy and has to\r\n// lose exactly what the rebuild of a builder cleared in place loses.\r\nconst designationIsUnwritten = (glyph) => glyph.isHeadGlyph === true && glyphIsUnwritten(glyph);\r\n\r\n// The written `Xword` shorthand expands to one glyph per letter at parse time\r\n// (`Xab` -> `Xa/Xb`), so serializing each glyph faithfully spells a word out\r\n// letter by letter. This folds such a run back into the shorthand it came from.\r\n// Re-expanding what it emits must reproduce the very segments it was given, and\r\n// that requirement is what fixes the membership test: only a BARE code the\r\n// shared grammar reads as outlined LETTERS may join,\r\n// because those are precisely the codes the expander re-derives one-for-one. A\r\n// code carrying any decoration (a coordinate, an option bracket, a head marker)\r\n// fails the anchored grammar and ends the run, and so does a text fallback,\r\n// which is one whole glyph already and would swallow its neighbour's letter.\r\nconst collapseExternalLetterRuns = (segments) => {\r\n  const collapsed = [];\r\n  let run = [];\r\n  const flushRun = () => {\r\n    if (run.length) collapsed.push('X' + run.join(''));\r\n    run = [];\r\n  };\r\n  for (const segment of segments) {\r\n    if (classifyXCode(segment) === 'letters') {\r\n      run.push(segment.slice(1));\r\n      continue;\r\n    }\r\n    flushRun();\r\n    collapsed.push(segment);\r\n  }\r\n  flushRun();\r\n  return collapsed;\r\n};\r\n\r\n// Serialize an options object to [key=val;key2=val2] DSL format.\r\nfunction serializeOptions(opts, skipKeys) {\r\n  if (!opts) return '';\r\n  const entries = Object.entries(opts);\r\n  const filtered = entries.filter(([k, v]) =>\r\n    writesOptionValue(k, v) && !(skipKeys?.has(k))\r\n  );\r\n  if (filtered.length === 0) return '';\r\n  const parts = filtered.map(([k, v]) => v === true ? k : `${k}=${serializeOptionValue(v)}`);\r\n  return `[${parts.join(';')}]`;\r\n}\r\n\r\n// The bracket a word, a character or the composition itself serializes to,\r\n// position included. Those three levels have no coordinate spelling, so the\r\n// `[x=N]` option is the only way a position can be written there, while the\r\n// value itself lives on the promoted numeric field: a position handed in as a\r\n// field on the composition object has no bag entry to emit from, and used to\r\n// render and then vanish the moment the composition was written out.\r\n//\r\n// The position takes a fixed leading slot rather than the one it was typed in,\r\n// which is the same canonicalization a part's coordinate suffix already does:\r\n// the bracket then reads the same however the position arrived, which is the\r\n// whole point, and a field-entered position has no typed slot to inherit.\r\nfunction serializeOptionsWithPosition(node, skipKeys) {\r\n  const position = {};\r\n  if (node?.x !== undefined) position.x = node.x;\r\n  if (node?.y !== undefined) position.y = node.y;\r\n  if (Object.keys(position).length === 0) return serializeOptions(node?.options, skipKeys);\r\n  return serializeOptions({ ...position, ...node.options }, skipKeys);\r\n}\r\n\r\n// Renders one layer's attributes as markup, from [name, value] pairs or a\r\n// map. None yields an empty string, so a tag built from it closes without a\r\n// stray space.\r\nconst formatEntries = (entries) => entries.map(([name, value]) => `${name}=\"${value}\"`).join(' ');\r\nconst formatAttributes = (attrs) => formatEntries(Object.entries(attrs));\r\n\r\n// The smallest box ({ minX, minY, maxX, maxY }) holding every one of `boxes`;\r\n// of none, the empty box, which holds nothing.\r\nconst unionOf = (boxes) => ({\r\n  minX: Math.min(...boxes.map(box => box.minX)),\r\n  minY: Math.min(...boxes.map(box => box.minY)),\r\n  maxX: Math.max(...boxes.map(box => box.maxX)),\r\n  maxY: Math.max(...boxes.map(box => box.maxY)),\r\n});\r\n\r\n// A written viewBox as four numbers, or undefined when it does not read as\r\n// one: four values separated by whitespace or commas, each finite, and a size\r\n// that is not negative (a negative one voids the attribute in SVG). Nothing\r\n// written (undefined) reads as no viewBox, like any other non-number. Lenient\r\n// beyond that on purpose. Reading a value a renderer then refuses costs\r\n// nothing, since the renderer ignores the viewBox and the placement with it;\r\n// refusing one a renderer reads leaves the paper short of the picture.\r\nconst parseViewBox = (written) => {\r\n  const numbers = String(written).trim().split(/[\\s,]+/).map(Number);\r\n  if (numbers.length !== 4 || !numbers.every(Number.isFinite)) return undefined;\r\n  const [x, y, width, height] = numbers;\r\n  return width >= 0 && height >= 0 ? { x, y, width, height } : undefined;\r\n};\r\n\r\n// A layer's structural classes are the library's identifier for that element,\r\n// so an authored class is APPENDED to them and never replaces them: replacing\r\n// would break the embedded <style> block, every consumer selector, and the layer\r\n// lookups downstream apps do by class. Bounded to `class` deliberately, since it\r\n// is the only identity-bearing attribute an element carries; every other\r\n// authored value is free to replace what the library computed.\r\nconst mergeStructuralClass = (structural, authored) =>\r\n  authored ? `${structural} ${authored}` : structural;\r\n\r\n// One element's emitted attributes: its structural classes, then what the\r\n// library computed for it, then the author's raw values, which may replace a\r\n// computed one. The class is put back afterwards so the spread cannot drop the\r\n// structural names.\r\nconst layerAttributes = (structuralClasses, computed, authored = {}) => {\r\n  const structural = [structuralClasses].flat().join(' ');\r\n  return {\r\n    ...{ class: structural, ...computed, ...authored },\r\n    class: mergeStructuralClass(structural, authored['class']),\r\n  };\r\n};\r\n\r\n// The join and cap the content group writes where no key writes its own. The\r\n// lines inherit them, so a join or cap written on the root never reaches them.\r\nconst CONTENT_LINE_DEFAULTS = Object.freeze({ 'stroke-linejoin': 'round', 'stroke-linecap': 'round' });\r\n\r\n// CSS's initial `stroke-width`: what a line draws at where nothing it inherits\r\n// writes a width a renderer reads.\r\nconst INITIAL_STROKE_WIDTH = 1;\r\n\r\n// The width a group's lines draw at where a key on the group writes one a\r\n// renderer cannot read: the width the group inherits, from the nearest of\r\n// `layers` (what keys write on the groups around it, nearest first) whose\r\n// width reads as one (writtenWidth), else the initial one.\r\nconst inheritedWidth = (...layers) =>\r\n  layers.map(attributes => writtenWidth(attributes['stroke-width'])).find(width => width !== undefined) ?? INITIAL_STROKE_WIDTH;\r\n\r\n// Resolves which glyph carries a word-level (`;;`) overlay. A stored\r\n// designation wins; the fallback resolves among content-bearing glyphs only,\r\n// because serialization omits a bare empty-parts glyph, so a reparse of\r\n// toString() resolves the head without it. Returns -1 when no glyph can\r\n// carry the overlay (every glyph is empty).\r\nconst resolveOverlayHeadIndex = (glyphs) => {\r\n  const marked = glyphs.findIndex(g => g.isHeadGlyph === true);\r\n  if (marked !== -1) return marked;\r\n  const contentIndexes = glyphs.flatMap((g, i) => (g.parts?.length ? [i] : []));\r\n  if (!contentIndexes.length) return -1;\r\n  return contentIndexes[resolveHeadIndex(contentIndexes.map(i => getHeadCode(glyphs[i])))];\r\n};\r\n\r\n// The places on an element a judge reads: its options bags (the admission\r\n// stage), a position (the position gate) and the key written beside it (the\r\n// key's judge). A value with no text form held there reaches that judge, which\r\n// reports it in its own words and stores nothing of it.\r\nconst JUDGED_BAGS = new Set(['options', 'transientOptions']);\r\nconst JUDGED_FIELDS = new Set(['x', 'y', 'key']);\r\nconst LEFT_OUT = Symbol('left out');\r\n\r\n// The one shape `toJSON()` writes: each level's list of children and the level\r\n// they sit at. A part may hold parts of its own. A list written at another\r\n// level is a field of your own, so nothing that walks the tree reads it.\r\nconst ELEMENT_LIST = Object.freeze({\r\n  global: ['groups', 'group'],\r\n  group: ['glyphs', 'character'],\r\n  character: ['parts', 'part'],\r\n  part: ['parts', 'part'],\r\n});\r\n\r\n// How a wrong shape is reported: what an entry of a level's list should be,\r\n// and what goes with a list that is not one. A wrong part takes its whole\r\n// character, as a malformed part does in the DSL, since the parts left could\r\n// form another character.\r\nconst ELEMENT_NOUN = Object.freeze({\r\n  group: 'a word (an object with a \"glyphs\" list)',\r\n  character: 'a character (an object with a \"parts\" list)',\r\n  part: 'a part (an object with a \"codeName\")',\r\n});\r\nconst LEFT_OUT_WITH_LIST = Object.freeze({\r\n  global: 'the composition is read with no words',\r\n  group: 'the word is left out',\r\n  character: 'the character is left out',\r\n  part: 'its character is left out',\r\n});\r\n\r\n// An own property whatever its key spells: assigning `__proto__` on an object\r\n// literal sets its prototype instead of storing the key.\r\nconst putOwn = (target, key, value) =>\r\n  Object.defineProperty(target, key, { value, writable: true, enumerable: true, configurable: true });\r\n\r\n// A plain object, a class instance or an object behind a Proxy, read key by\r\n// key; a Date, a Map and the like are not.\r\nconst isRecord = (value) => Object.prototype.toString.call(value) === '[object Object]';\r\n\r\n// The first failed part among `parts` and the parts they hold, at any depth.\r\nconst heldFailure = (parts = []) => {\r\n  for (const part of parts) {\r\n    const failure = part.errorCode ? part : heldFailure(part.parts);\r\n    if (failure) return failure;\r\n  }\r\n  return undefined;\r\n};\r\n\r\n/**\r\n * The copy the constructor makes of a composition object, so nothing it does\r\n * reaches the caller's object. `structuredClone` made it until it met a value\r\n * no clone can carry (a function, a symbol, an object behind a Proxy) and threw\r\n * the platform's `DataCloneError`, which names no call and no key, before\r\n * anything had been judged. This reads the object as data instead:\r\n * - a plain object or a list is copied, read through a getter or a Proxy as\r\n *   JSON reads it: one met twice is two copies, as JSON writes it twice, so\r\n *   no element fills two places, and one inside itself is left out, since no\r\n *   save could write it;\r\n * - a function or a symbol is handed on where a judge reads it, to be refused\r\n *   there, and anywhere else is left out as JSON leaves it out: gone from an\r\n *   object, `null` in a list;\r\n * - a bigint is read as the text it spells, since no JSON save can hold one;\r\n * - any other object is `structuredClone`'s copy of it, or left out when it\r\n *   holds a value no clone can carry.\r\n *\r\n * The elements are read in the one shape `toJSON()` writes (`ELEMENT_LIST`). A\r\n * list that is `null` or `undefined` is read as missing, and a missing list of\r\n * words or characters as empty. A wrong shape is left out and handed to `warn`\r\n * by its path in the object: an entry that is not an element object, or is\r\n * inside itself, goes, a part taking its character with it, and so does the\r\n * unit holding a list that is not a list, except the composition, which is\r\n * read with no words.\r\n */\r\nconst readComposition = (input, warn) => {\r\n  // The objects being read, from the composition down to the value in hand:\r\n  // one met again among them is inside itself.\r\n  const reading = new Set();\r\n  const readData = (value) => {\r\n    if (typeof value === 'bigint') return String(value);\r\n    if (typeof value === 'function' || typeof value === 'symbol') return LEFT_OUT;\r\n    if (value === null || typeof value !== 'object') return value;\r\n    if (reading.has(value)) return LEFT_OUT;\r\n    if (Array.isArray(value)) {\r\n      const copy = [];\r\n      reading.add(value);\r\n      for (const item of value) {\r\n        const read = readData(item);\r\n        copy.push(read === LEFT_OUT ? null : read);\r\n      }\r\n      reading.delete(value);\r\n      return copy;\r\n    }\r\n    if (isRecord(value)) {\r\n      const copy = {};\r\n      reading.add(value);\r\n      for (const key of Object.keys(value)) {\r\n        const read = readData(value[key]);\r\n        if (read !== LEFT_OUT) putOwn(copy, key, read);\r\n      }\r\n      reading.delete(value);\r\n      return copy;\r\n    }\r\n    try {\r\n      return structuredClone(value);\r\n    } catch {\r\n      return LEFT_OUT;\r\n    }\r\n  };\r\n  // Handed to its judge as written, a bigint as its text there too. Nothing is\r\n  // copied: a judge stores only a value with a text form.\r\n  const readJudged = (value) => (typeof value === 'bigint' ? String(value) : value);\r\n  const refuse = (source, problem) =>\r\n    warn({ code: WARNING_CODES.MALFORMED_ELEMENT, message: `${source} ${problem}.`, source });\r\n  // A level's own list, each entry read as an element of the level below. A\r\n  // wrong entry is left out; a part left out takes the element holding it,\r\n  // which then gets LEFT_OUT for the list.\r\n  const readEntries = (items, level, path) => {\r\n    const read = [];\r\n    const leftOut = level === 'part' ? 'its character is left out' : 'it is left out';\r\n    let whole = true;\r\n    for (const [index, item] of items.entries()) {\r\n      const itemPath = `${path}[${index}]`;\r\n      let element = LEFT_OUT;\r\n      if (!isRecord(item)) refuse(itemPath, `is not ${ELEMENT_NOUN[level]}, so ${leftOut}`);\r\n      else if (reading.has(item)) refuse(itemPath, `is inside itself (a circular reference), so ${leftOut}`);\r\n      else element = readElement(item, level, itemPath);\r\n      if (element !== LEFT_OUT) read.push(element);\r\n      else if (level === 'part') whole = false;\r\n    }\r\n    return whole ? read : LEFT_OUT;\r\n  };\r\n  // An element read at its level: its own list as elements, every other field\r\n  // as the data it holds. LEFT_OUT when a wrong shape takes it.\r\n  const readElement = (element, level, path) => {\r\n    const copy = {};\r\n    reading.add(element);\r\n    const [list, childLevel] = ELEMENT_LIST[level];\r\n    const listPath = path ? `${path}.${list}` : list;\r\n    let whole = true;\r\n    for (const key of Object.keys(element)) {\r\n      const value = element[key];\r\n      let read;\r\n      if (key === list) {\r\n        if (value === null || value === undefined) continue;\r\n        if (Array.isArray(value)) {\r\n          read = readEntries(value, childLevel, listPath);\r\n        } else {\r\n          refuse(listPath, `is not a list, so ${LEFT_OUT_WITH_LIST[level]}`);\r\n          read = LEFT_OUT;\r\n        }\r\n        if (read === LEFT_OUT && level !== 'global') whole = false;\r\n      } else if (JUDGED_BAGS.has(key) && isRecord(value)) {\r\n        read = {};\r\n        for (const name of Object.keys(value)) putOwn(read, name, readJudged(value[name]));\r\n      } else if (JUDGED_FIELDS.has(key)) {\r\n        read = readJudged(value);\r\n      } else {\r\n        read = readData(value);\r\n      }\r\n      if (read !== LEFT_OUT) putOwn(copy, key, read);\r\n    }\r\n    reading.delete(element);\r\n    if (!whole) return LEFT_OUT;\r\n    // A missing list is an empty one, except where what it means waits on the\r\n    // element's code: a part with none is drawn from its code, and a character\r\n    // with none is read once its code is (#normalizePartlessGlyphs).\r\n    if (level === 'global' || level === 'group') copy[list] ??= [];\r\n    return copy;\r\n  };\r\n  return readElement(input, 'global', '');\r\n};\r\n\r\n// Note: BlissSVGBuilder.LIB_VERSION is attached at the public entry point\r\n// (src/index.js), not declared here. Code that imports the class directly\r\n// from this file (e.g. internal tests) will see LIB_VERSION as undefined.\r\n// External consumers always go through src/index.js, where the static is set.\r\nclass BlissSVGBuilder {\r\n  #processedOptions;\r\n  // Where the global walk puts each global key, rebuilt together on every pass:\r\n  // the root <svg>'s attributes, the content group's, the `<target>--<attribute>`\r\n  // values for every other target (grouped by target and applied at that\r\n  // target's emission point), a bare vector-effect for the content's paths,\r\n  // and the link attributes for the <a> around the content group.\r\n  #rootAttributes = {};\r\n  #contentAttributes = {};\r\n  #layerAttributes = {};\r\n  #globalVectorEffect;\r\n  #globalAnchorAttributes = {};\r\n  #sharedOptions;\r\n  #mutationCtx;\r\n  #warnings = [];\r\n  // Warnings raised by mutation operations (e.g. mergeWithNext dropping an\r\n  // absorbed word-level overlay). Unlike #warnings, these are NOT reset by\r\n  // #rebuild — they record one-time data-loss events for the builder's\r\n  // lifetime, since the lost data leaves no trace in the rebuilt tree.\r\n  #mutationWarnings = [];\r\n  #generation = 0;\r\n\r\n  // One options bag with every refused text value reported and removed. The bag\r\n  // is copied rather than edited, and only when something was actually refused,\r\n  // so the caller's own tree is never reshaped by a pass that only judges.\r\n  // The copy is defensive rather than load-bearing, and measured so: the one\r\n  // caller replaces the bag it passed in on the next line, so editing in place\r\n  // diverges on nothing constructible today. It stays because a second caller\r\n  // would not know that.\r\n  //\r\n  // Two kinds of value reach it. One is a library option written as a bare key\r\n  // (`[background]`): readable text, so ingest keeps it for the author to\r\n  // correct, and it is refused here, where the option is dispatched, on every\r\n  // load, as a bare number option is by its own judge. The other is a value\r\n  // with no text form, which the admission stage refuses where the composition\r\n  // is built, on every entry point, so it can only arrive in a bag that never\r\n  // passed ingest: the library's own module data, the built-in definitions'\r\n  // `defaultOptions` (a `define()` call is admitted, the built-in table is\r\n  // written straight into the registry) and the error-placeholder parts. Both\r\n  // reach an author's composition, so the backstop is kept and the two gates\r\n  // are held to one rule by sharing the predicate and the name test below. The\r\n  // name test is told whether the bag is the root's, the one place the\r\n  // library's stamp is a refused name.\r\n  #withoutRefusedTextValues(rawOptions, isRoot) {\r\n    let kept = rawOptions;\r\n    for (const [key, value] of Object.entries(rawOptions)) {\r\n      if (optionNameIsAlreadyRefused(key, isRoot ? 'global' : undefined)) continue;\r\n      const refusal = judgeTextOptionValue(key, value);\r\n      if (!refusal) continue;\r\n      this.#warnings.push(refusal);\r\n      if (kept === rawOptions) kept = { ...rawOptions };\r\n      delete kept[key];\r\n    }\r\n    return kept;\r\n  }\r\n\r\n  // Processes raw options (kebab-case) into two bags that cannot collide.\r\n  //\r\n  // `processed` holds what the library computed, under internal camelCase names;\r\n  // `authored` holds every key we do not curate, spelled exactly as the author\r\n  // wrote it and escaped. One bag held both before, so an author writing a\r\n  // curated option in its internal spelling (`[strokeWidth=1]`, `[marginTop=3]`)\r\n  // landed on the value the library had computed under that same name: the\r\n  // string won, and the arithmetic downstream either concatenated it into the\r\n  // viewBox or threw. Two bags make that impossible by construction rather than\r\n  // by a skip list somebody has to maintain.\r\n  //\r\n  // Bulk options expanded here (not in output): 'margin', 'crop', 'grid-color', 'grid-stroke-width'.\r\n  // @param {boolean} addBuilderDefaults - If true, adds defaults for builder-level options (grid, etc.)\r\n  // @returns {{processed: Object, authored: Object}}\r\n  #processOptions(rawOptions = {}, addBuilderDefaults = false) {\r\n    const processed = {};\r\n    const authored = {};\r\n\r\n    // The string half of the value gate, run before the dispatch below so a\r\n    // refused value is simply not there when its own branch looks for it: the\r\n    // option falls back exactly as if it had never been written, which is the\r\n    // same shape the numeric half already has. One sweep rather than one call\r\n    // per branch, because the names it covers are DERIVED (every curated option\r\n    // that is neither a number nor a switch, plus every name the library does\r\n    // not curate at all) and a per-branch edit is a list somebody has to keep.\r\n    //\r\n    // It runs HERE, where the option is dispatched, and not at ingest, because\r\n    // whether a value is legal depends on which option it is: `true` is right\r\n    // for `grid` and wrong for `color`. Ingest resolves names and knows none of\r\n    // that, and it sits upstream of the numeric half, so refusing there would\r\n    // replace that half's well-worded refusals with one generic one.\r\n    rawOptions = this.#withoutRefusedTextValues(rawOptions, addBuilderDefaults);\r\n\r\n    // stroke-width: honoured exactly as written, or refused and reported. The\r\n    // old 0.1-1.5 clamp was what made the raw value unreachable: a name the\r\n    // library curates was also the only spelling of it, so an author who\r\n    // wanted a heavier stroke had no second channel to ask through.\r\n    //\r\n    // A negative width is refused rather than floored to 0. Flooring was the\r\n    // same silent substitution the ceiling made, one step further down, and it\r\n    // mattered here because the value feeds path geometry as well as the\r\n    // attribute: a dot's radius is derived from it, so a negative one reaches\r\n    // the path data as a negative arc radius and conformant renderers drop the\r\n    // whole glyph. A refusal falls back to the width the element would have had\r\n    // anyway, which is the library default at the root and whatever is\r\n    // inherited below it.\r\n    if ('stroke-width' in rawOptions) {\r\n      const refusal = judgeNumericOptionValue('stroke-width', rawOptions['stroke-width']);\r\n      if (refusal) this.#warnings.push(refusal);\r\n      else processed.strokeWidth = Number(rawOptions['stroke-width']);\r\n    }\r\n\r\n    // The dot and spacing family: honoured exactly as written, or refused and\r\n    // reported. Both bounds are gone. The ceilings rewrote a written value in\r\n    // silence, and the floor at 0 did the same thing to a negative one; a\r\n    // refusal falls back to the value the option would have had without it,\r\n    // which the consumer's own default supplies. `judgeNumericOptionValue`\r\n    // also answers the \"is this a number at all\" question the old `!isNaN`\r\n    // guard answered silently.\r\n    if ('dot-extra-width' in rawOptions) {\r\n      const refusal = judgeNumericOptionValue('dot-extra-width', rawOptions['dot-extra-width']);\r\n      if (refusal) this.#warnings.push(refusal);\r\n      else processed.dotExtraWidth = Number(rawOptions['dot-extra-width']);\r\n    }\r\n\r\n    // sdot-extra-width: the small-dot override of the dot-extra-width half-default\r\n    if ('sdot-extra-width' in rawOptions) {\r\n      const refusal = judgeNumericOptionValue('sdot-extra-width', rawOptions['sdot-extra-width']);\r\n      if (refusal) this.#warnings.push(refusal);\r\n      else processed.sdotExtraWidth = Number(rawOptions['sdot-extra-width']);\r\n    }\r\n\r\n    // dot-width / sdot-width: absolute rendered dot diameter\r\n    if ('dot-width' in rawOptions) {\r\n      const refusal = judgeNumericOptionValue('dot-width', rawOptions['dot-width']);\r\n      if (refusal) this.#warnings.push(refusal);\r\n      else processed.dotWidth = Number(rawOptions['dot-width']);\r\n    }\r\n\r\n    if ('sdot-width' in rawOptions) {\r\n      const refusal = judgeNumericOptionValue('sdot-width', rawOptions['sdot-width']);\r\n      if (refusal) this.#warnings.push(refusal);\r\n      else processed.sdotWidth = Number(rawOptions['sdot-width']);\r\n    }\r\n\r\n    if ('char-space' in rawOptions) {\r\n      const refusal = judgeNumericOptionValue('char-space', rawOptions['char-space']);\r\n      if (refusal) this.#warnings.push(refusal);\r\n      else processed.charSpace = Number(rawOptions['char-space']);\r\n    }\r\n\r\n    if ('word-space' in rawOptions) {\r\n      const refusal = judgeNumericOptionValue('word-space', rawOptions['word-space']);\r\n      if (refusal) this.#warnings.push(refusal);\r\n      else processed.wordSpace = Number(rawOptions['word-space']);\r\n    }\r\n\r\n    if ('external-glyph-space' in rawOptions) {\r\n      const refusal = judgeNumericOptionValue('external-glyph-space', rawOptions['external-glyph-space']);\r\n      if (refusal) this.#warnings.push(refusal);\r\n      else processed.externalGlyphSpace = Number(rawOptions['external-glyph-space']);\r\n    }\r\n\r\n    // The margin family. A margin is an OFFSET in the policy table, so a\r\n    // negative one is honoured and pushes the viewBox outwards; only a\r\n    // non-finite value or something that is not a number at all is refused.\r\n    // margin: Sets ALL 4 margins\r\n    if ('margin' in rawOptions) {\r\n      const refusal = judgeNumericOptionValue('margin', rawOptions['margin']);\r\n      if (refusal) this.#warnings.push(refusal);\r\n      else {\r\n        const m = Number(rawOptions['margin']);\r\n        processed.marginTop = m;\r\n        processed.marginBottom = m;\r\n        processed.marginLeft = m;\r\n        processed.marginRight = m;\r\n      }\r\n    }\r\n\r\n    // Individual margins (override the above if present). A refusal assigns\r\n    // NOTHING rather than a fallback, which is what lets an accepted bulk\r\n    // `margin` still stand underneath it: writing `undefined` here would read\r\n    // as \"no margin\" downstream and quietly undo a value the author did write.\r\n    for (const side of ['top', 'bottom', 'left', 'right']) {\r\n      const key = `margin-${side}`;\r\n      if (!(key in rawOptions)) continue;\r\n      const refusal = judgeNumericOptionValue(key, rawOptions[key]);\r\n      if (refusal) this.#warnings.push(refusal);\r\n      else processed[`margin${side[0].toUpperCase()}${side.slice(1)}`] = Number(rawOptions[key]);\r\n    }\r\n\r\n    // min-width: a LENGTH, so a negative one is refused rather than floored to\r\n    // 0. The floor made no visible difference, because a refused min-width\r\n    // falls back to 0 anyway, but it was still a value the library substituted\r\n    // without saying so.\r\n    if ('min-width' in rawOptions) {\r\n      const refusal = judgeNumericOptionValue('min-width', rawOptions['min-width']);\r\n      if (refusal) this.#warnings.push(refusal);\r\n      else processed.minWidth = Number(rawOptions['min-width']);\r\n    }\r\n\r\n    // Boolean options: [option] = true, absence = false\r\n    if (rawOptions.center === true) {\r\n      processed.center = true;\r\n    }\r\n    if (rawOptions.grid === true) {\r\n      processed.grid = true;\r\n    }\r\n    if (rawOptions['error-placeholder'] === true) {\r\n      processed.errorPlaceholder = true;\r\n    }\r\n\r\n    // Grid colors - hierarchy: bulk → category → specific\r\n    // Only process if builder defaults requested or if grid options present\r\n    if (addBuilderDefaults || Object.keys(rawOptions).some(k => k.startsWith('grid-'))) {\r\n      // Start with defaults\r\n      let skyColor = \"#858585\";\r\n      let earthColor = \"#858585\";\r\n      let majorColor = \"#c7c7c7\";  // major grid (non-semantic)\r\n      let mediumColor = \"#ebebeb\";\r\n      let minorColor = \"#ebebeb\";\r\n\r\n      // Apply bulk option (sets all grid colors)\r\n      if ('grid-color' in rawOptions) {\r\n        const gc = rawOptions['grid-color'];\r\n        skyColor = earthColor = majorColor = mediumColor = minorColor = gc;\r\n      }\r\n\r\n      // Apply category option for major grids (overrides bulk for major lines)\r\n      if ('grid-major-color' in rawOptions) {\r\n        const gmc = rawOptions['grid-major-color'];\r\n        skyColor = earthColor = majorColor = gmc;\r\n      }\r\n\r\n      // Apply category option for medium grid (overrides bulk)\r\n      if ('grid-medium-color' in rawOptions) {\r\n        mediumColor = rawOptions['grid-medium-color'];\r\n      }\r\n\r\n      // Apply category option for minor grid (overrides bulk)\r\n      if ('grid-minor-color' in rawOptions) {\r\n        minorColor = rawOptions['grid-minor-color'];\r\n      }\r\n\r\n      // Apply specific options (most specific, override everything)\r\n      if ('grid-sky-color' in rawOptions) {\r\n        skyColor = rawOptions['grid-sky-color'];\r\n      }\r\n\r\n      if ('grid-earth-color' in rawOptions) {\r\n        earthColor = rawOptions['grid-earth-color'];\r\n      }\r\n\r\n      // Assign to processed object (escaped for safe SVG output)\r\n      processed.gridSkyColor = escapeHtml(skyColor);\r\n      processed.gridEarthColor = escapeHtml(earthColor);\r\n      processed.gridMajorColor = escapeHtml(majorColor);\r\n      processed.gridMediumColor = escapeHtml(mediumColor);\r\n      processed.gridMinorColor = escapeHtml(minorColor);\r\n    }\r\n\r\n    // Grid stroke widths - same hierarchy pattern\r\n    // Only process if builder defaults requested or if grid options present\r\n    if (addBuilderDefaults || Object.keys(rawOptions).some(k => k.startsWith('grid-'))) {\r\n      // Start with defaults\r\n      let skyWidth = 0.166;\r\n      let earthWidth = 0.166;\r\n      let majorWidth = 0.166;  // major grid (non-semantic)\r\n      let mediumWidth = 0.166;\r\n      let minorWidth = 0.166;\r\n\r\n      // Every width is judged before it is allowed to move an accumulator, so\r\n      // a refused value leaves whatever the level below it put there standing:\r\n      // a bad `grid-sky-stroke-width` falls back to the bulk width if one was\r\n      // accepted, and to the default otherwise, exactly as if it had never been\r\n      // written. Returns undefined for both \"not written\" and \"refused\",\r\n      // because the caller does the same thing in either case.\r\n      //\r\n      // These six had no check at all before. A written value went straight\r\n      // through `Number()`, so `[grid;grid-stroke-width=abc]` stamped\r\n      // stroke-width=\"NaN\" on every line the option named, in silence.\r\n      const gridStrokeWidth = (key) => {\r\n        if (!(key in rawOptions)) return undefined;\r\n        const refusal = judgeNumericOptionValue(key, rawOptions[key]);\r\n        if (refusal) {\r\n          this.#warnings.push(refusal);\r\n          return undefined;\r\n        }\r\n        return Number(rawOptions[key]);\r\n      };\r\n\r\n      // Apply bulk option (sets all grid widths)\r\n      const bulkWidth = gridStrokeWidth('grid-stroke-width');\r\n      if (bulkWidth !== undefined) {\r\n        skyWidth = earthWidth = majorWidth = mediumWidth = minorWidth = bulkWidth;\r\n      }\r\n\r\n      // Apply category option for major grids (overrides bulk for major lines)\r\n      const categoryMajorWidth = gridStrokeWidth('grid-major-stroke-width');\r\n      if (categoryMajorWidth !== undefined) {\r\n        skyWidth = earthWidth = majorWidth = categoryMajorWidth;\r\n      }\r\n\r\n      // Apply category option for medium grid (overrides bulk)\r\n      const categoryMediumWidth = gridStrokeWidth('grid-medium-stroke-width');\r\n      if (categoryMediumWidth !== undefined) {\r\n        mediumWidth = categoryMediumWidth;\r\n      }\r\n\r\n      // Apply category option for minor grid (overrides bulk)\r\n      const categoryMinorWidth = gridStrokeWidth('grid-minor-stroke-width');\r\n      if (categoryMinorWidth !== undefined) {\r\n        minorWidth = categoryMinorWidth;\r\n      }\r\n\r\n      // Apply specific options (most specific, override everything)\r\n      const specificSkyWidth = gridStrokeWidth('grid-sky-stroke-width');\r\n      if (specificSkyWidth !== undefined) {\r\n        skyWidth = specificSkyWidth;\r\n      }\r\n\r\n      const specificEarthWidth = gridStrokeWidth('grid-earth-stroke-width');\r\n      if (specificEarthWidth !== undefined) {\r\n        earthWidth = specificEarthWidth;\r\n      }\r\n\r\n      // Assign to processed object\r\n      processed.gridSkyStrokeWidth = skyWidth;\r\n      processed.gridEarthStrokeWidth = earthWidth;\r\n      processed.gridMajorStrokeWidth = majorWidth;\r\n      processed.gridMediumStrokeWidth = mediumWidth;\r\n      processed.gridMinorStrokeWidth = minorWidth;\r\n    }\r\n\r\n    // grid-shift: an OFFSET in grid units, so a negative one moves the grid\r\n    // left and up; only a non-finite value or something that is not a number\r\n    // at all is refused, and a refused one leaves the grid where it was.\r\n    if ('grid-shift' in rawOptions) {\r\n      const refusal = judgeNumericOptionValue('grid-shift', rawOptions['grid-shift']);\r\n      if (refusal) this.#warnings.push(refusal);\r\n      else processed.gridShift = Number(rawOptions['grid-shift']);\r\n    }\r\n\r\n    // crop: Sets ALL 4 crop values (number or 'auto')\r\n    if ('crop' in rawOptions) {\r\n      const c = rawOptions['crop'];\r\n      if (c === 'auto') {\r\n        processed.cropTop = 'auto';\r\n        processed.cropBottom = 'auto';\r\n        processed.cropLeft = 'auto';\r\n        processed.cropRight = 'auto';\r\n      } else if (c === 'auto-vertical') {\r\n        processed.autoVertical = true;\r\n      } else if (c === 'compact') {\r\n        processed.cropCompact = true;\r\n      } else {\r\n        // Those three are the whole of crop's non-numeric vocabulary, so\r\n        // anything else is judged as a number. The gate runs BEHIND the string\r\n        // arms rather than in front of them, or it would refuse all three.\r\n        // The old `!isNaN(c)` tail dropped `[crop=nonsense]` without a word.\r\n        const refusal = judgeNumericOptionValue('crop', c);\r\n        if (refusal) this.#warnings.push(refusal);\r\n        else {\r\n          const n = Number(c);\r\n          processed.cropTop = n;\r\n          processed.cropBottom = n;\r\n          processed.cropLeft = n;\r\n          processed.cropRight = n;\r\n        }\r\n      }\r\n    }\r\n\r\n    // Individual crop values (override the above if present).\r\n    // 'auto' is a legal value here and the only string one; everything else is\r\n    // judged as a number, which is what the old unconditional `Number(val)`\r\n    // skipped: `[crop-top=aut0]` reached the viewBox as NaN, in silence.\r\n    //\r\n    // A refusal returns undefined and the caller assigns NOTHING, which is what\r\n    // lets an accepted bulk `crop` still stand underneath: assigning undefined\r\n    // would overwrite the value `crop=2` had already put there.\r\n    const resolveCropValue = (key, val) => {\r\n      if (val === 'auto') return 'auto';\r\n      const refusal = judgeNumericOptionValue(key, val);\r\n      if (refusal) {\r\n        this.#warnings.push(refusal);\r\n        return undefined;\r\n      }\r\n      return Number(val);\r\n    };\r\n    for (const side of ['top', 'bottom', 'left', 'right']) {\r\n      const key = `crop-${side}`;\r\n      if (!(key in rawOptions)) continue;\r\n      const value = resolveCropValue(key, rawOptions[key]);\r\n      if (value !== undefined) {\r\n        processed[`crop${side[0].toUpperCase()}${side.slice(1)}`] = value;\r\n      }\r\n    }\r\n\r\n    // Other string options\r\n    if ('color' in rawOptions) {\r\n      processed.color = escapeHtml(rawOptions.color);\r\n    }\r\n    if ('background' in rawOptions) {\r\n      processed.background = escapeHtml(rawOptions.background); // empty string => transparent background\r\n    }\r\n    if ('background-top' in rawOptions) {\r\n      processed.backgroundTop = escapeHtml(rawOptions['background-top']);\r\n    }\r\n    if ('background-mid' in rawOptions) {\r\n      processed.backgroundMid = escapeHtml(rawOptions['background-mid']);\r\n    }\r\n    if ('background-bottom' in rawOptions) {\r\n      processed.backgroundBottom = escapeHtml(rawOptions['background-bottom']);\r\n    }\r\n    if ('text' in rawOptions) {\r\n      processed.text = escapeHtml(rawOptions.text);\r\n    }\r\n    if ('svg-desc' in rawOptions) {\r\n      processed.svgDesc = escapeHtml(rawOptions['svg-desc']);\r\n    }\r\n    if ('svg-title' in rawOptions) {\r\n      processed.svgTitle = escapeHtml(rawOptions['svg-title']);\r\n    }\r\n\r\n    // The keyword options, `background-area` and `link-area`, processed under\r\n    // their programmatic names (`backgroundArea`, `linkArea`). A value that is\r\n    // not one of the option's words is refused and reported, and the option\r\n    // keeps the value it would have had without it. Read from the registry, so\r\n    // an option added there is judged the day it lands rather than ignored in\r\n    // silence; never escaped, since an honoured value is one of its words.\r\n    for (const key of KEYWORD_OPTION_VALUES.keys()) {\r\n      if (!(key in rawOptions)) continue;\r\n      const refusal = judgeKeywordOptionValue(key, rawOptions[key]);\r\n      if (refusal) this.#warnings.push(refusal);\r\n      else processed[programmaticOptionKey(key)] = rawOptions[key];\r\n    }\r\n\r\n    // The paddings, how far a word's, character's or part's background or link\r\n    // area reaches past what it surrounds, processed under their programmatic\r\n    // names (`backgroundPadding`, `linkPadding`). LENGTHS: a negative one is\r\n    // refused, and 0 is honoured, an area hugging what it surrounds. A refusal\r\n    // assigns nothing, so the area takes the padding it would have had anyway.\r\n    for (const key of ['background-padding', 'link-padding']) {\r\n      if (!(key in rawOptions)) continue;\r\n      const refusal = judgeNumericOptionValue(key, rawOptions[key]);\r\n      if (refusal) this.#warnings.push(refusal);\r\n      else processed[programmaticOptionKey(key)] = Number(rawOptions[key]);\r\n    }\r\n\r\n    // SVG element height (presentation size, not viewBox). A LENGTH: the root\r\n    // width is derived from it, so a negative one emitted a negative width and\r\n    // height on the <svg> itself. Zero is legal and draws an empty picture.\r\n    if ('svg-height' in rawOptions) {\r\n      const refusal = judgeNumericOptionValue('svg-height', rawOptions['svg-height']);\r\n      if (refusal) this.#warnings.push(refusal);\r\n      else processed.svgHeight = Number(rawOptions['svg-height']);\r\n    }\r\n\r\n    // Promoted by the parser, not written by the author: these two are\r\n    // library-resolved numbers and belong with the computed values. The curated\r\n    // set does not list them, because it lists what this method dispatches on\r\n    // and kerning is resolved earlier, so without this they fall through the\r\n    // loop below into the author's bag, ship as `<g relativeKerning=\"3\">` and\r\n    // move nothing.\r\n    for (const key of ['relativeKerning', 'absoluteKerning']) {\r\n      // Own-key test, not `in`, which walks the prototype chain.\r\n      if (Object.hasOwn(rawOptions, key)) processed[key] = rawOptions[key];\r\n    }\r\n\r\n    // Everything the library does not curate keeps the author's exact spelling\r\n    // (fill, opacity, stroke-dasharray, a data attribute, a camelCase SVG name).\r\n    // String values are escaped here at the input boundary so downstream code can use them safely.\r\n    // Numeric values pass through as-is — they're used for calculations, not SVG markup.\r\n    //\r\n    // ONE kind of key reaches here meaning a curated option and not setting one:\r\n    // a name the computed bag uses for a crop value (`autoVertical` for\r\n    // `crop=auto-vertical`), written as an option. It is not a spelling of a\r\n    // NAME, so ingest has nothing to resolve, and no route reads it as the crop:\r\n    // it reached the renderer only while the author's options and the computed\r\n    // ones shared a bag, which was an accident rather than a design. Reported\r\n    // HERE rather than at an emitter: this pass runs once per rebuild and\r\n    // reaches every scope, where the emitters run per render and are spread\r\n    // across two files. The key is left in the bag, so it still\r\n    // round-trips, re-warns on reparse and is emitted as written; a usable\r\n    // attribute name reaches the markup as typed, which is the pass-through rule\r\n    // and not an exception to it.\r\n    //\r\n    // A curated option written in its PROGRAMMATIC spelling was reported here\r\n    // too, for as long as one channel could still deliver such a key. Object\r\n    // input was that channel and now resolves the name on the way in like the\r\n    // rest, so nothing can reach this loop under a curated camelCase name and\r\n    // the arm that said so is retired.\r\n    for (const [key, value] of Object.entries(rawOptions)) {\r\n      if (KNOWN_OPTION_KEYS.has(key)) continue;\r\n      const internalOnly = INTERNAL_ONLY_SPELLINGS.get(key);\r\n      if (internalOnly) {\r\n        this.#warnings.push({\r\n          code: WARNING_CODES.MISPLACED_OPTION_SPELLING,\r\n          message: `\"${key}\" is the library's internal name for \"${internalOnly}\", not an option, so it was emitted as written and sets nothing. Write \"${internalOnly}\" instead.`,\r\n          source: key,\r\n        });\r\n      }\r\n      authored[key] = typeof value === 'string' ? escapeHtml(value) : value;\r\n    }\r\n\r\n    return { processed, authored };\r\n  }\r\n\r\n  // Recursively process options at all levels (groups, glyphs, parts), down\r\n  // each level's own list only: one written at another level is a field of\r\n  // your own, which nothing judges.\r\n  #processAllOptions(obj, level) {\r\n    const isTopLevel = level === 'global';\r\n    // A transient option is an ordinary option that never serializes, so it\r\n    // joins the node's options HERE, on the render clone, and is processed,\r\n    // escaped and normalized by everything downstream exactly like one. The\r\n    // authoring tree keeps the two bags apart, which is what keeps the\r\n    // serializers from ever seeing a transient value.\r\n    //\r\n    // Transient wins at the key level, because an overlay that lost to what it\r\n    // overlays could not do its job. Above the key the existing precedence is\r\n    // unchanged and channel-blind: an explicitly-named attribute still beats an\r\n    // alias of it, and a specific option still beats the bulk one it refines.\r\n    //\r\n    // A node may carry a transient bag and no options at all, so this runs\r\n    // before the `if (obj.options)` guard and creates the object.\r\n    if (obj.transientOptions) {\r\n      obj.options = { ...(obj.options ?? {}), ...obj.transientOptions };\r\n    }\r\n    if (obj.options) {\r\n      // Extract key from options (key is element identity, not an SVG option).\r\n      // It names the element by its text: a composition object stores the\r\n      // type it was written in, and `5` and `'5'` are one name. An empty text\r\n      // names nothing, so the element keeps its own key, which survives a\r\n      // rebuild where a key generated here would not. A key written bare\r\n      // names nothing either, and is reported: it stays in the composition,\r\n      // as a bare `[background]` does, so it is reported on every rebuild\r\n      // until a key is set over it or it is removed.\r\n      if (obj.options.key !== undefined) {\r\n        if (obj.options.key === true) this.#warnings.push(bareElementKeyRefusal());\r\n        obj.key = BlissSVGBuilder.#drawnKey(obj);\r\n        delete obj.options.key;\r\n      }\r\n      // Two guards judge a NAME, and an emitter that honours either one simply\r\n      // never writes the attribute. Reporting them HERE is what makes that\r\n      // visible: this pass runs once per rebuild and reaches every scope,\r\n      // where the emitters run per render and are spread across two files.\r\n      // The key is left in place, so it still round-trips and re-warns on\r\n      // reparse rather than vanishing from a stored composition. The transient\r\n      // channel is already reported by #normalizeTransientInvariant, which runs\r\n      // earlier and has removed its own offenders by now, so nothing is\r\n      // reported twice.\r\n      for (const [key, value] of Object.entries(obj.options)) {\r\n        // A target key is judged on the half after the LAST `--`, since the\r\n        // prefix is routing rather than markup: `grid-line--sky--onclick` must\r\n        // be judged on `onclick`. When the prefix names no target, the whole key\r\n        // is not an attribute name either, so judging it here would report the\r\n        // wrong defect on top of the UNKNOWN_LAYER the split loop raises. The\r\n        // split loop reads the global bracket alone; below it, the one layer key\r\n        // the scope judge keeps is an element background's, so an unresolved one\r\n        // (`element-background--`, no attribute) is reported here, in its words.\r\n        const target = isLayerAttributeKey(key) ? parseLayerAttributeKey(key) : null;\r\n        if (isLayerAttributeKey(key) && !target) {\r\n          if (!isTopLevel) this.#warnings.push(layerKeyNameRefusal(key));\r\n          continue;\r\n        }\r\n        const name = target ? target.attribute : key;\r\n        if (!isSafeAttributeName(name)) {\r\n          this.#warnings.push({\r\n            code: WARNING_CODES.UNSAFE_ATTRIBUTE_NAME,\r\n            message: unsafeAttributeNameMessage(key),\r\n            source: key,\r\n          });\r\n          continue;\r\n        }\r\n        // A name that declares what the document IS breaks the file wherever\r\n        // it lands, so the guard reaches every scope rather than the root\r\n        // alone. Global scope is judged in the split loop below instead, on\r\n        // the name actually emitted, since an alias there can rename the key.\r\n        if (!isTopLevel && isDocumentDefiningAttribute(name)) {\r\n          this.#warnings.push({\r\n            code: WARNING_CODES.RESERVED_ATTRIBUTE_NAME,\r\n            message: reservedAttributeMessage(name),\r\n            source: key,\r\n          });\r\n        }\r\n      }\r\n      const { processed, authored } = this.#processOptions(obj.options, isTopLevel);\r\n      obj.options = processed;\r\n      // Below the global bracket, where the split loop does not reach, an\r\n      // element background's keys leave the element's own attributes for the\r\n      // backgrounds inside it (#takeBackgroundKeys).\r\n      const backgroundKeys = isTopLevel ? null : BlissSVGBuilder.#takeBackgroundKeys(authored);\r\n      if (backgroundKeys) obj.backgroundKeys = backgroundKeys;\r\n      // Assigned unconditionally on every node that carries options, so the\r\n      // field is present or the node had no options at all. Every reader still\r\n      // guards with `?? {}`, because the second case is ordinary.\r\n      obj.authoredOptions = authored;\r\n    }\r\n    const [children, childLevel] = ELEMENT_LIST[level];\r\n    for (const child of obj[children] ?? []) this.#processAllOptions(child, childLevel);\r\n  }\r\n\r\n  // Takes an element background's keys out of one element's authored options,\r\n  // where its <g> would emit each as an unknown attribute, and returns the\r\n  // usable ones shaped as the layer attributes are (`{ target: { attribute:\r\n  // value } }`), for every background inside the element; null when it wrote\r\n  // none. A key whose name is refused goes nowhere: the name loop has reported\r\n  // it, and the authoring tree still holds it, so it is saved and reported\r\n  // again on reload, as the same key after `||` is.\r\n  static #takeBackgroundKeys(authored) {\r\n    let keys = null;\r\n    for (const [key, value] of Object.entries(authored)) {\r\n      if (!isElementLayerKey(key)) continue;\r\n      delete authored[key];\r\n      if (layerKeyNameRefusal(key)) continue;\r\n      const { layer, attribute } = parseLayerAttributeKey(key);\r\n      ((keys ??= {})[layer] ??= {})[attribute] = value;\r\n    }\r\n    return keys;\r\n  }\r\n\r\n  #rawBlissObj; // Stored for toJSON() round-trip\r\n\r\n  constructor(input, options = {}) {\r\n    assertOptsArg('BlissSVGBuilder', options);\r\n\r\n    // Allow empty constructor for building from scratch\r\n    if (input === undefined || input === '') {\r\n      input = '';\r\n    } else if (typeof input !== 'string' && !isRecord(input)) {\r\n      throw new Error('Input must be a DSL string or a plain object from toJSON()');\r\n    }\r\n\r\n    // Accept both string (DSL) and object (from toJSON()) input. A wrong shape\r\n    // the reader leaves out is reported down `_parseWarnings`, the channel\r\n    // that survives a rebuild, since the rebuilt tree keeps no trace of it.\r\n    const shapeWarnings = [];\r\n    const blissObj = (typeof input === 'string')\r\n      ? BlissParser.parse(input)\r\n      : readComposition(input, (warning) => shapeWarnings.push(warning));\r\n    if (shapeWarnings.length > 0) (blissObj._parseWarnings ??= []).push(...shapeWarnings);\r\n\r\n    // A composition object stores an options bag exactly as it was given, so\r\n    // this is where it meets the admission stage. Done HERE, on the copy and\r\n    // before anything else reads the tree, so every gate, emitter and\r\n    // serializer downstream sees the one spelling a bracket and the options\r\n    // argument already store, and holds only values that can be saved again.\r\n    //\r\n    // The reports ride `_parseWarnings`, the channel that survives a rebuild.\r\n    // That is not cosmetic here: a refused value is DROPPED, so it leaves no\r\n    // trace in the rebuilt tree, and a report regenerated from the tree would\r\n    // vanish on the first mutation. It is also the honest channel for this\r\n    // route, since the bag arrived with the composition rather than through a\r\n    // later call.\r\n    //\r\n    // Before `expandParts`, so only the bags the CALLER wrote are touched: a\r\n    // definition's own defaults are admitted where they are declared, and\r\n    // walking them again would put this task's blame on a bag it never read.\r\n    if (typeof input !== 'string') {\r\n      BlissSVGBuilder.#admitAuthoredBags(\r\n        blissObj,\r\n        'global',\r\n        (warning) => (blissObj._parseWarnings ??= []).push(warning),\r\n      );\r\n    }\r\n\r\n    // For object input (from toJSON), re-expand any parts that were stripped.\r\n    // A definition's code string is read as the DSL reads it, so a key misplaced\r\n    // in one of its brackets is reported down the same channel, for the same\r\n    // reason: it is dropped, and the rebuilt tree keeps no trace of it. The\r\n    // part codes the caller wrote are read first (#normalizeAuthoredPartCodes).\r\n    if (typeof input !== 'string') {\r\n      BlissSVGBuilder.#normalizeAuthoredPartCodes(blissObj.groups);\r\n      BlissParser.expandParts(blissObj, (warning) => (blissObj._parseWarnings ??= []).push(warning));\r\n    }\r\n\r\n    // Reverse toJSON() normalization: codeName → internal field names\r\n    if (typeof input !== 'string' && blissObj.groups) {\r\n      BlissSVGBuilder.#normalizeGlyphCodes(blissObj.groups);\r\n      BlissSVGBuilder.#normalizePartlessGlyphs(blissObj.groups);\r\n    }\r\n\r\n    // A `wordIndicators` overlay from object input (persisted toJSON, or hand-\r\n    // authored) must pass the same \"a `;;` code must BE an indicator\" rule as the\r\n    // DSL and API, so all three input surfaces agree. Older/hand-authored data can\r\n    // carry a non-indicator overlay code; validate + drop it here via the shared\r\n    // resolver, routing warnings through `_parseWarnings` like the parser (they\r\n    // surface in `warnings` and are stripped from `toJSON()`).\r\n    if (typeof input !== 'string' && blissObj.groups) {\r\n      for (const group of blissObj.groups) {\r\n        if (!group.wordIndicators) continue;\r\n        const { codes = [], stripSemantic = false } = group.wordIndicators;\r\n        const overlay = resolveWordIndicatorOverlay(codes, stripSemantic, blissElementDefinitions, ({ code: badCode, reason }) => {\r\n          (blissObj._parseWarnings ??= []).push(reason === 'word-structure'\r\n            ? {\r\n                // A `/` hidden behind a coordinate\r\n                // suffix serialized to a string the DSL re-parses as word\r\n                // structure; the DSL/API surfaces reject it, so object input must too.\r\n                code: WARNING_CODES.MALFORMED_WORD_INDICATOR,\r\n                message: `Word-level indicator \"${badCode}\" contains a character separator (a top-level /), which a word-level indicator cannot hold; it is ignored.`,\r\n                source: badCode,\r\n              }\r\n            : reason === 'non-indicator'\r\n              ? {\r\n                  code: WARNING_CODES.NON_INDICATOR_AS_WORD_INDICATOR,\r\n                  message: `Word-level indicator \"${badCode}\" is not an indicator; it is ignored. A ;; code must be an indicator (e.g. B81).`,\r\n                  source: badCode,\r\n                }\r\n              : {\r\n                  code: WARNING_CODES.UNKNOWN_CODE,\r\n                  message: `Word-level indicator \"${badCode}\" is not a known code; it is ignored.`,\r\n                  source: badCode,\r\n                });\r\n        }, ({ bracket, code: keptCode, source }) => {\r\n          (blissObj._parseWarnings ??= []).push({\r\n            code: WARNING_CODES.MISPLACED_CHARACTER_OPTION,\r\n            message: `Character option (${bracket}) ignored on the word indicator \"${keptCode}\": a ;; code has no character to style. Use ${bracket}>${keptCode} to style the indicator part.`,\r\n            source,\r\n          });\r\n        });\r\n        if (overlay) group.wordIndicators = overlay;\r\n        else delete group.wordIndicators;\r\n      }\r\n    }\r\n\r\n    // A composition always carries an options bag, empty or not, where the\r\n    // three inner levels carry one only once something is in it, so the root's\r\n    // is written here whatever the layers below add: a plain copy, which is\r\n    // what every reader downstream has always been handed.\r\n    blissObj.options = { ...(blissObj.options ?? {}) };\r\n\r\n    // Two bags with a defined precedence between them, so each is watched on\r\n    // its own: one option written once in `defaults` and once in `overrides`\r\n    // is a layering, not a collision. Their reports ride `_parseWarnings`, as\r\n    // the composition's own do.\r\n    BlissSVGBuilder.#layerOptions(\r\n      blissObj,\r\n      options,\r\n      { level: 'global', notation: 'setter' },\r\n      (warning) => (blissObj._parseWarnings ??= []).push(warning),\r\n    );\r\n\r\n    // Flag word-as-part references (e.g. H;TW where TW = B291/B291) with\r\n    // error so BlissElement emits a WORD_AS_PART warning instead of rendering.\r\n    BlissSVGBuilder.#flagWordParts(blissObj);\r\n\r\n    // Stored as it stands: it is the builder's own already (a parse, or the copy\r\n    // made of a composition object), and nothing processes it after this, since\r\n    // every rebuild renders from a clone of its own. A second clone here would\r\n    // meet a function the copy kept for its judge before the judge runs: a\r\n    // position is judged at the first rebuild.\r\n    this.#rawBlissObj = blissObj;\r\n\r\n    this.#rebuild();\r\n\r\n    this.#mutationCtx = {\r\n      getRaw: () => this.#rawBlissObj,\r\n      rebuild: () => this.#rebuild(),\r\n      parse: (code) => {\r\n        const parsed = BlissParser.parse(code);\r\n        BlissSVGBuilder.#flagWordParts(parsed);\r\n        return parsed;\r\n      },\r\n      toRaw: (obj, scope) => BlissSVGBuilder.#toRaw(obj, (warning) => this.#mutationWarnings.push(warning), scope),\r\n      layerOptions: (node, opts, scope) =>\r\n        BlissSVGBuilder.#layerOptions(node, opts, scope, (warning) => this.#mutationWarnings.push(warning)),\r\n      isRawSpaceGroup: (g) => BlissSVGBuilder.#isRawSpaceGroup(g),\r\n      makeSpaceGroup: () => BlissSVGBuilder.#makeSpaceGroup(),\r\n      removeGlyphGroup: (obj, gi) => this.#removeGlyphGroup(obj, gi),\r\n      getSnapshot: () => this.snapshot(),\r\n      getGeneration: () => this.#generation,\r\n      getDefinitions: () => blissElementDefinitions,\r\n      addMutationWarning: (warning) => this.#mutationWarnings.push(warning),\r\n      clearOwnOptions: (node, level, character) => BlissSVGBuilder.#clearOwnOptions(node, level, character),\r\n      ownLookAt: (node, level, character) => BlissSVGBuilder.#ownLookAt(node, level, character),\r\n      drawnKey: (node) => BlissSVGBuilder.#drawnKey(node),\r\n      overlayHeadIndex: (glyphs) => resolveOverlayHeadIndex(glyphs),\r\n    };\r\n  }\r\n\r\n  // Resolve opts: accepts { defaults, overrides } or flat options (treated as overrides).\r\n  static #resolveOpts(opts) {\r\n    if (!opts) return { defaults: undefined, overrides: undefined };\r\n    if ('defaults' in opts || 'overrides' in opts) {\r\n      return { defaults: opts.defaults, overrides: opts.overrides };\r\n    }\r\n    return { defaults: undefined, overrides: opts };\r\n  }\r\n\r\n  // The one merge for every JavaScript options layer: the constructor's\r\n  // options argument, the opts of the builder's group methods, and an\r\n  // element's `setOptions` and the opts of its adding and replacing methods.\r\n  // Defaults (lowest) < the element's own options < overrides (highest). An\r\n  // `opts` that resolves to no keys writes nothing, so no empty bag is stamped\r\n  // where none was, which would be toJSON noise.\r\n  //\r\n  // A position and a kerning value need more than the spread, because the\r\n  // element keeps them where the spread cannot see: a written `[x=5]` or\r\n  // `C8:2,3` is promoted onto the node's own `x`/`y` field, and a kerned\r\n  // character holds its value under the camelCase key while this channel\r\n  // writes the kebab one. So each is read as a whole channel:\r\n  //\r\n  // - An override REPLACES the element's own value, so the channel it fills is\r\n  //   cleared first. Otherwise the promotion pass reads the leftover as a\r\n  //   second authored value, and re-setting `{x: 7}` would report the 5 it\r\n  //   replaced as a competing coordinate that was never written.\r\n  // - A default fills only a channel the element leaves empty, and is dropped\r\n  //   in silence otherwise, the layering a default colour gets from the spread:\r\n  //   a position axis by axis, and kerning as one channel whichever key holds\r\n  //   it, since a character takes one kerning value. An override in the same\r\n  //   call fills the channel too.\r\n  //\r\n  // Two values written in ONE layer still compete, and still warn, because both\r\n  // arrive in the same object. Every key has been through the admission stage\r\n  // before this reads it, so a refused key never reaches a channel.\r\n  static #layerOptions(node, opts, scope, warn) {\r\n    const { defaults, overrides } = BlissSVGBuilder.#resolveOpts(opts);\r\n    if (!defaults && !overrides) return;\r\n    const rawDefaults = defaults ? BlissSVGBuilder.#toRaw(defaults, warn, scope) : {};\r\n    const rawOverrides = overrides ? BlissSVGBuilder.#toRaw(overrides, warn, scope) : {};\r\n    // The bag's half of a position needs nothing here: it is stored under the\r\n    // same `x`/`y` key as both layers, so the spread already orders it.\r\n    for (const axis of ['x', 'y']) {\r\n      if (node[axis] !== undefined) delete rawDefaults[axis];\r\n      if (Object.hasOwn(rawOverrides, axis)) delete node[axis];\r\n    }\r\n    const isKerning = (key) => Object.hasOwn(KERNING_OPTION_KEYS, key);\r\n    const overrideKerns = Object.keys(rawOverrides).some(isKerning);\r\n    if (overrideKerns || Object.keys(node.options ?? {}).some(isKerning)) {\r\n      for (const key of Object.keys(rawDefaults).filter(isKerning)) delete rawDefaults[key];\r\n    }\r\n    if (overrideKerns && node.options) {\r\n      for (const key of Object.keys(node.options).filter(isKerning)) delete node.options[key];\r\n    }\r\n    const merged = { ...rawDefaults, ...(node.options ?? {}), ...rawOverrides };\r\n    if (Object.keys(merged).length > 0) node.options = merged;\r\n  }\r\n\r\n  // Every options bag inside a composition object, admitted in place. The whole\r\n  // tree is walked rather than the root alone because a bag can sit at any of\r\n  // five levels and each one is a bag the caller wrote: a document-level row\r\n  // passes with the other four still verbatim.\r\n  //\r\n  // A hand-authored transient bag is walked too. `setTransientOptions` admits\r\n  // its own bag, so a composition object is the only way an unadmitted key\r\n  // reaches that channel, and it merges into the node's options before the\r\n  // options pass runs.\r\n  //\r\n  // The level each bag is judged at comes from the array its node was found\r\n  // in, the way a bracket's comes from where it was written. A part's own\r\n  // `parts` are parts too, at any depth. A list written at another level is a\r\n  // field of your own, which nothing judges, so only the level's own is walked.\r\n  //\r\n  // A key written beside an element is the same name as the key in its\r\n  // options (that field is where an element's identity is kept), so it is\r\n  // judged the same way and kept as its text; refused, it is removed, and the\r\n  // element gets a key of its own. Written bare (`true`), it names nothing, as\r\n  // in the options, and is refused here, once: this field is the element's\r\n  // key itself, where a bare key could not wait in a bag to be refused later.\r\n  static #admitAuthoredBags(node, level, warn) {\r\n    for (const [bag, transient] of [['options', false], ['transientOptions', true]]) {\r\n      if (node[bag]) {\r\n        node[bag] = BlissSVGBuilder.#admitAuthoredBag(node[bag], warn, { level, notation: 'object', transient });\r\n      }\r\n    }\r\n    if (Object.hasOwn(node, 'key')) {\r\n      const admitted = BlissSVGBuilder.#admitAuthoredBag({ key: node.key }, warn, { level, notation: 'object' });\r\n      if (admitted.key === true) {\r\n        warn(bareElementKeyRefusal());\r\n        delete admitted.key;\r\n      }\r\n      if (Object.hasOwn(admitted, 'key')) node.key = textOfValue(admitted.key);\r\n      else delete node.key;\r\n    }\r\n    const [children, childLevel] = ELEMENT_LIST[level];\r\n    for (const child of node[children] ?? []) BlissSVGBuilder.#admitAuthoredBags(child, childLevel, warn);\r\n  }\r\n\r\n  // One bag, admitted on its own so two bags each holding one spelling stay a\r\n  // layering rather than a collision.\r\n  //\r\n  // The admitted value keeps the TYPE the caller authored, which is what this\r\n  // channel does differently from `#toRaw`: a number stays a number here and\r\n  // becomes text there, so a composition object round-trips through `toJSON()`\r\n  // deep-equal. What the two channels no longer differ on is which values get\r\n  // in at all; that moved into the shared stage.\r\n  //\r\n  // The two kerning names are resolved here like any other curated option, even\r\n  // though this is the one channel where such a key may be the PARSER's rather\r\n  // than the author's: `toJSON()` stores a kerned character as `relativeKerning`.\r\n  // Measured, resolving it costs nothing, because the kerning resolver reads\r\n  // either spelling and the name is promoted back on the way out, so a round\r\n  // trip is byte-identical and `toJSON()` deep-equal either way.\r\n  //\r\n  // The bag has no prototype, as a bracket's has none: a key can spell\r\n  // `__proto__` (`JSON.parse` writes one as readily as any other), and on a\r\n  // plain object that assignment is swallowed instead of stored, so the key\r\n  // would vanish without the report its name earns everywhere else.\r\n  static #admitAuthoredBag(bag, warn, scope) {\r\n    const admitted = Object.create(null);\r\n    for (const [key, value] of admitOptions(Object.entries(bag), warn, scope)) admitted[key] = value;\r\n    return admitted;\r\n  }\r\n\r\n  // The JavaScript channels: the constructor's options argument, the handle\r\n  // setters and `setTransientOptions`. Each value becomes the TEXT a bracket\r\n  // would have carried, which is what this channel does differently from a\r\n  // composition object; which values get in at all is the shared stage's call\r\n  // and no longer this one's.\r\n  //\r\n  // `warn` is optional, and every caller that has a warnings route passes one:\r\n  // the constructor sends its reports down `_parseWarnings`, so they survive a\r\n  // rebuild exactly as a bracket's do, and the mutation surfaces send theirs to\r\n  // the mutation log, which is where a one-time loss belongs. Both channels\r\n  // survive a rebuild, which a refused value's report has to: it is dropped, so\r\n  // nothing in the rebuilt composition records it.\r\n  //\r\n  // Every value the stage admits has a text form, since it refuses or drops\r\n  // every other, so what is left for this channel to decide is only what the\r\n  // bag stores: a boolean stays a boolean, which a switch reads by identity, and\r\n  // any other value becomes its text.\r\n  //\r\n  // `scope` is where the caller is writing, which only the caller knows: the\r\n  // document for the options argument, the new or the addressed element for\r\n  // the setters, and the transient channel for `setTransientOptions`.\r\n  //\r\n  // No prototype, for the reason `#admitAuthoredBag` gives.\r\n  static #toRaw(obj, warn, scope) {\r\n    const raw = Object.create(null);\r\n    for (const [key, value] of admitOptions(Object.entries(obj), warn, scope)) {\r\n      raw[key] = typeof value === 'boolean' ? value : textOfValue(value);\r\n    }\r\n    return raw;\r\n  }\r\n\r\n  // Assigns stable keys in #rawBlissObj: to groups (//), glyphs (/), and parts\r\n  // (;) at every depth, a definition's own parts inside a part included, since\r\n  // a handle reaches those too (`part(0).part(0)`) and its key has to survive\r\n  // a rebuild like any other.\r\n  // Called before structuredClone so keys persist across rebuilds.\r\n  static #assignKeys(rawObj) {\r\n    const keyParts = (parts) => {\r\n      for (const part of parts ?? []) {\r\n        if (!part.key) part.key = generateKey();\r\n        keyParts(part.parts);\r\n      }\r\n    };\r\n    if (!rawObj.key) rawObj.key = generateKey();\r\n    if (rawObj.groups) {\r\n      for (const group of rawObj.groups) {\r\n        if (!group.key) group.key = generateKey();\r\n        if (group.glyphs) {\r\n          for (const glyph of group.glyphs) {\r\n            if (!glyph.key) glyph.key = generateKey();\r\n            keyParts(glyph.parts);\r\n          }\r\n        }\r\n      }\r\n    }\r\n  }\r\n\r\n  // Space-invariant normalization: a\r\n  // structural mutation (replaceGlyph/removeGlyph/replacePart/detach/\r\n  // addGlyph-on-empty/insertGlyph), an alias expanding an in-word space, or\r\n  // hand-authored object input can leave space state the DSL cannot express —\r\n  // an overlay/designation on a space that '//' serialization eats, or a bare\r\n  // space glyph INSIDE a word whose serialized token the parser re-splits\r\n  // into separate groups (so toString diverges from toJSON and the reparse\r\n  // renders differently, silently). Enforced HERE, the one chokepoint every\r\n  // mutation route and input surface passes through (parse and the indicator\r\n  // API already gate their own ingestion):\r\n  //  1. A non-head marker (a space glyph or the ZSA anchor) never carries a\r\n  //     designation (deleted silently, matching the structural `^` drops in\r\n  //     splitAt/mergeWithNext). Likewise a glyph serialization omits entirely\r\n  //     (empty parts, no codeName, no options that would re-emit it as an\r\n  //     options-only token): its designation has no serialized form, so it\r\n  //     dies with the glyph's content (the rule detach follows, enforced here\r\n  //     for hand-authored object input).\r\n  //  2. An all-non-head-marker word never carries a `;;` overlay (dropped\r\n  //     LOUDLY, matching mergeWithNext's DROPPED_WORD_INDICATOR, since data\r\n  //     loss must be visible). The deletion makes the sweep warn once, not per\r\n  //     rebuild. An EMPTY group keeps its overlay (the pure-state-op\r\n  //     contract; isNonHeadMarkerGroup is false).\r\n  //  3. A bare space glyph never lives inside a word: the word is split at\r\n  //     its space runs into real space groups, a canonicalization (glyph\r\n  //     nodes move; the first word run keeps the group node and options;\r\n  //     later word runs get an options copy, splitAt parity, and keep their\r\n  //     own designations, which round-trip per word). The overlay follows\r\n  //     splitAt's rule: kept on the first word run while the character it is\r\n  //     drawn on is there, else dropped LOUDLY (DROPPED_WORD_INDICATOR); every\r\n  //     other case is silent. A fail-flagged group is exempt (terminal;\r\n  //     splitting it would duplicate its errorSource replay). A multi-part\r\n  //     glyph merely LED by a space-code part (`ZSA;B291`) is not a space\r\n  //     glyph and is never touched.\r\n  //  4. Adjacent space groups merge (a reparse groups consecutive space\r\n  //     tokens into ONE group, so separate neighbors could not round-trip).\r\n  #normalizeSpaceInvariant() {\r\n    const groups = this.#rawBlissObj.groups ?? [];\r\n    for (const group of groups) {\r\n      for (const glyph of group.glyphs ?? []) {\r\n        if (glyph.isHeadGlyph === true && BlissSVGBuilder.#isNonHeadMarkerNode(glyph)) {\r\n          delete glyph.isHeadGlyph;\r\n        }\r\n        if (designationIsUnwritten(glyph)) delete glyph.isHeadGlyph;\r\n      }\r\n      if (group.wordIndicators && !group.errorCode && BlissSVGBuilder.#isNonHeadMarkerGroup(group)) {\r\n        const { codes = [], stripSemantic } = group.wordIndicators;\r\n        const dropped = ';;' + (stripSemantic ? '!' : '') + codes.join(';');\r\n        delete group.wordIndicators;\r\n        this.#mutationWarnings.push({\r\n          code: WARNING_CODES.DROPPED_WORD_INDICATOR,\r\n          message: `A space or anchor cannot carry a word indicator, so the word-level indicator overlay (${dropped}) was dropped.`,\r\n          source: dropped,\r\n        });\r\n      }\r\n    }\r\n    const createdSpaceGroups = [];\r\n    const movedSpaceGlyphs = [];\r\n    // A TSP/QSP space is a pure word-separator: a coordinate (`:x,y`) or an\r\n    // option (`[opts]` at any scope) on one cannot position or style whitespace,\r\n    // so it is dropped with a MISPLACED_SPACE_DECORATION warning and the space\r\n    // keeps its identity. ZSA is content (a positionable inkless shape) and is\r\n    // exempt: the strip targets only #isSpaceGlyphNode (= {TSP, QSP}). A stripped\r\n    // glyph joins movedSpaceGlyphs so the _differsFromDefault re-flag below keeps\r\n    // a bared QSP serializing as `QSP`, not the default `//`. Kerning written as\r\n    // an option is dropped here like any other (a marker never reaches a space:\r\n    // the parser reports it); only the runtime key is spared.\r\n    const warnSpaceDrop = (kind, source) => this.#mutationWarnings.push({\r\n      code: WARNING_CODES.MISPLACED_SPACE_DECORATION,\r\n      message: `A space cannot carry ${kind === 'coordinate' ? 'a coordinate' : 'an option'}, so \"${source}\" was dropped.`,\r\n      source,\r\n    });\r\n    for (const group of groups) {\r\n      if (group.errorCode || !group.glyphs?.length) continue;\r\n      const pureSpace = BlissSVGBuilder.#isRawSpaceGroup(group);\r\n      let groupStripped = false;\r\n      if (pureSpace) {\r\n        const repr = BlissSVGBuilder.#dropSpaceDecorations(group);\r\n        if (repr) {\r\n          warnSpaceDrop('option', repr);\r\n          groupStripped = true;\r\n        }\r\n      }\r\n      for (const glyph of group.glyphs) {\r\n        if (!BlissSVGBuilder.#isSpaceGlyphNode(glyph)) continue;\r\n        let touched = groupStripped;\r\n        const glyphRepr = BlissSVGBuilder.#dropSpaceDecorations(glyph);\r\n        if (glyphRepr) {\r\n          warnSpaceDrop('option', glyphRepr);\r\n          touched = true;\r\n        }\r\n        const part = glyph.parts[0];\r\n        const partEntries = BlissSVGBuilder.#dropSpaceOptionEntries(part.options);\r\n        if (partEntries.length) {\r\n          if (Object.keys(part.options).length === 0) delete part.options;\r\n          warnSpaceDrop('option', `[${partEntries.join(';')}]`);\r\n          touched = true;\r\n        }\r\n        if (part.x !== undefined || part.y !== undefined) {\r\n          // Presence, not value: a written `0` is a position the author stated,\r\n          // so it is dropped here like any other and is reported like any\r\n          // other. Asking whether the value was non-zero instead let `QSP:0,0`\r\n          // lose a written position in silence. A form that writes neither axis\r\n          // (`QSP:,`) never reaches here, so there is nothing to report.\r\n          const source = BlissSVGBuilder.#positionSuffix(part.x, part.y);\r\n          delete part.x;\r\n          delete part.y;\r\n          warnSpaceDrop('coordinate', source);\r\n          touched = true;\r\n        }\r\n        // Re-flag for identity even when nothing survived to strip: a space that\r\n        // arrived carrying a global-only option key (`[grid]|QSP`) is stripped by\r\n        // the parser first (as MISPLACED_GLOBAL_OPTION), which leaves the QSP bared\r\n        // but UNflagged, so it would serialize to the default `//` and lose its\r\n        // quarter-space identity. Re-flag only a currently-UNflagged pure-space\r\n        // glyph (set-only via the loop below): an already-flagged space is left\r\n        // untouched, so a correctly parsed space never gets its flag cleared.\r\n        if (touched || (pureSpace && !part._differsFromDefault)) movedSpaceGlyphs.push(glyph);\r\n      }\r\n    }\r\n    // Pass 3: split mixed words at their space runs.\r\n    for (let i = 0; i < groups.length; i++) {\r\n      const group = groups[i];\r\n      if (group.errorCode || !group.glyphs?.length) continue;\r\n      if (!group.glyphs.some(g => BlissSVGBuilder.#isSpaceGlyphNode(g))) continue;\r\n      if (BlissSVGBuilder.#isRawSpaceGroup(group)) continue;\r\n      const runs = [];\r\n      for (const glyph of group.glyphs) {\r\n        const isSpace = BlissSVGBuilder.#isSpaceGlyphNode(glyph);\r\n        const last = runs[runs.length - 1];\r\n        if (last && last.isSpace === isSpace) last.glyphs.push(glyph);\r\n        else runs.push({ isSpace, glyphs: [glyph] });\r\n      }\r\n      // The word-level overlay stays with the first word run only while the\r\n      // character it is drawn on does, as a word's splitAt() keeps it: a\r\n      // space before that character drops it, loudly, rather than drawing it\r\n      // on another character. The character is found among the word's own\r\n      // characters, the spaces aside, so it is the one the word drew the\r\n      // overlay on before the space came in. An overlay with no character to\r\n      // sit on (-1) has none to lose, and stays.\r\n      if (group.wordIndicators) {\r\n        const characters = group.glyphs.filter(g => !BlissSVGBuilder.#isSpaceGlyphNode(g));\r\n        const headIndex = resolveOverlayHeadIndex(characters);\r\n        const keeperRun = runs.find(run => !run.isSpace);\r\n        if (headIndex !== -1 && !keeperRun.glyphs.includes(characters[headIndex])) {\r\n          const { codes = [], stripSemantic } = group.wordIndicators;\r\n          const dropped = ';;' + (stripSemantic ? '!' : '') + codes.join(';');\r\n          delete group.wordIndicators;\r\n          this.#mutationWarnings.push({\r\n            code: WARNING_CODES.DROPPED_WORD_INDICATOR,\r\n            message: `A space inside the word split it, which dropped the word's word-level indicator overlay (${dropped}). The character it was drawn on went to a later word.`,\r\n            source: dropped,\r\n          });\r\n        }\r\n      }\r\n      let keeperAssigned = false;\r\n      const replacement = runs.map((run) => {\r\n        if (run.isSpace) {\r\n          const spaceGroup = { glyphs: run.glyphs };\r\n          createdSpaceGroups.push(spaceGroup);\r\n          movedSpaceGlyphs.push(...run.glyphs);\r\n          return spaceGroup;\r\n        }\r\n        if (!keeperAssigned) {\r\n          keeperAssigned = true;\r\n          group.glyphs = run.glyphs;\r\n          return group;\r\n        }\r\n        const wordGroup = { glyphs: run.glyphs };\r\n        if (group.options) wordGroup.options = { ...group.options };\r\n        // A transient option follows its word here for the same reason its\r\n        // serializing twin does: the split produces several words where the\r\n        // author wrote one, and both channels describe that same word.\r\n        if (group.transientOptions) wordGroup.transientOptions = { ...group.transientOptions };\r\n        return wordGroup;\r\n      });\r\n      groups.splice(i, 1, ...replacement);\r\n      i += replacement.length - 1;\r\n    }\r\n    // Merge a CREATED space group into an adjacent space group (the native\r\n    // node survives, keeping its key): '//' serialization counts N spaces as\r\n    // N+1 slashes, so two separate neighbors would concatenate into a slash\r\n    // run the reparse reads as one bigger group. Only normalization-created\r\n    // groups merge — space groups the raw element API placed deliberately are\r\n    // its documented \"no automatic space management\" business (GH #19 owns\r\n    // reparse-side re-collapse).\r\n    if (createdSpaceGroups.length > 0) {\r\n      const created = new Set(createdSpaceGroups);\r\n      for (let i = groups.length - 1; i > 0; i--) {\r\n        const right = groups[i];\r\n        const left = groups[i - 1];\r\n        if (!created.has(right) && !created.has(left)) continue;\r\n        if (right.errorCode || left.errorCode) continue;\r\n        if (!BlissSVGBuilder.#isRawSpaceGroup(right) || !BlissSVGBuilder.#isRawSpaceGroup(left)) continue;\r\n        if (created.has(left) && !created.has(right)) {\r\n          right.glyphs.unshift(...left.glyphs);\r\n          groups.splice(i - 1, 1);\r\n        } else {\r\n          left.glyphs.push(...right.glyphs);\r\n          groups.splice(i, 1);\r\n        }\r\n      }\r\n    }\r\n    // Flag the moved space parts against their position's default space code\r\n    // (mirrors the parser's step-4 SP/QSP resolution): the serializer emits\r\n    // '//' only for the default, so an explicit QSP must carry\r\n    // _differsFromDefault or its identity (and width) would be lost. Both a\r\n    // Pass-3 split and the decoration strip above feed movedSpaceGlyphs; a bared\r\n    // QSP whose coordinate suppressed its parse-time flag is re-flagged here.\r\n    // A space an API edit inserted (#makeSpaceGroup) is set to the default\r\n    // first, as the parser sets a `//` to it.\r\n    // ZSA is content and never a moved space glyph, so it never reaches this path.\r\n    if (movedSpaceGlyphs.length > 0) {\r\n      const moved = new Set(movedSpaceGlyphs);\r\n      for (let i = 0; i < groups.length; i++) {\r\n        const group = groups[i];\r\n        if (!group.glyphs?.some(g => moved.has(g))) continue;\r\n        const defaultCode = BlissSVGBuilder.#defaultSpaceAt(groups, i);\r\n        for (const glyph of group.glyphs) {\r\n          if (!moved.has(glyph)) continue;\r\n          const part = glyph.parts[0];\r\n          if (part._fromSP) part.codeName = defaultCode;\r\n          delete part._fromSP;\r\n          if (part.codeName !== defaultCode) part._differsFromDefault = true;\r\n          else delete part._differsFromDefault;\r\n        }\r\n      }\r\n    }\r\n  }\r\n\r\n  // The space a `//` at groups[index] reads back as: the default before the\r\n  // word a reload reads after it, every group up to the next space group\r\n  // (the string writes groups with no space between them as one word), less\r\n  // the glyphs it writes as nothing.\r\n  static #defaultSpaceAt(groups, index) {\r\n    const word = [];\r\n    for (let i = index + 1; i < groups.length && !BlissSVGBuilder.#isRawSpaceGroup(groups[i]); i++) {\r\n      word.push(...(groups[i].glyphs ?? []).filter((glyph) => !glyphIsUnwritten(glyph)));\r\n    }\r\n    return BlissSVGBuilder.#defaultSpaceBefore(word);\r\n  }\r\n\r\n  // The default word space before a word as a string writes it: the word read\r\n  // back through the parser, judged as the parser judges the word after a\r\n  // `//`.\r\n  static #defaultSpaceBeforeWritten(text) {\r\n    return BlissSVGBuilder.#defaultSpaceBefore(BlissParser.parse(text).groups[0].glyphs);\r\n  }\r\n\r\n  // The default word space before a word, as the parser resolves `//`: the\r\n  // tighter QSP where every character of it pulls in the word space (a\r\n  // punctuation mark), else TSP.\r\n  static #defaultSpaceBefore(word) {\r\n    return word.length > 0 && word.every(pullsInWordSpace) ? 'QSP' : 'TSP';\r\n  }\r\n\r\n  // Space-as-part invariant: a space (TSP/QSP, and\r\n  // the transient default-space SP that `//` expands to) is a word-level\r\n  // separator, never a `;`-part — a space cannot stay a character inside a\r\n  // word (#normalizeSpaceInvariant Pass 3 splits it out) and cannot carry a\r\n  // decoration, so a space in a part slot is the same misplacement one level\r\n  // down. The space part is dropped LOUDLY (MISPLACED_SPACE) from render\r\n  // and serialization while the character still renders; a coordinate or\r\n  // option on it dies with the part (a positionable inkless blank is ZSA's\r\n  // job — ZSA is content and is exempt). SP is barred via a LOCAL check only:\r\n  // it is never added to the {TSP,QSP} classifier (isSpaceGlyph), which drives\r\n  // space-run coalescing, navigation, and counting.\r\n  // A single-part REAL-space glyph (TSP/QSP) IS the space itself and is\r\n  // untouched; a lone transient SP (not a real space glyph, so a mutation can\r\n  // strand it as a lone character part) instead drops to an empty glyph rather\r\n  // than re-emitting bare and reparsing as a word separator. A\r\n  // fail-flagged word re-emits verbatim (replay fidelity) and an atomic\r\n  // compound-indicator glyph's anatomy is definition-owned, so both are\r\n  // skipped, mirroring #normalizeIndicatorInvariant. define() already rejects\r\n  // a glyph definition referencing a space, so the isIndicator skip only\r\n  // matters for hand-authored object input. Uncertainty exemption (the\r\n  // indicator invariant's exemption 2, one rule over): when the non-space\r\n  // remainder holds no definition-known part (only an unknown code like `ZZ9`,\r\n  // whose nature is uncertain), the drop is skipped, applied uniformly to\r\n  // TSP/QSP/SP; the character already fail-renders and the unknown-code warning\r\n  // is the visibility. An all-space list still drops (the empty glyph is inert\r\n  // pure state). Runs FIRST among the\r\n  // rebuild normalizers: before #normalizeSpaceInvariant so an emptied glyph\r\n  // gets its head-designation cleanup, and before\r\n  // #normalizeIndicatorInvariant so a space is never a content witness that\r\n  // convicts a trailing indicator (`B86;QSP` keeps B86).\r\n  #normalizeSpacePartInvariant() {\r\n    for (const group of this.#rawBlissObj.groups ?? []) {\r\n      if (group.errorCode) continue;\r\n      for (const glyph of group.glyphs ?? []) {\r\n        if (glyph.isIndicator === true) continue;\r\n        const parts = glyph.parts;\r\n        if (!Array.isArray(parts) || parts.length === 0) continue;\r\n        // A lone REAL-space glyph (TSP/QSP) IS the space itself and is\r\n        // untouched; a lone transient SP is processed (it drops to an empty\r\n        // glyph below) instead of surviving to re-emit bare. A lone non-space\r\n        // part has no misplaced space and falls through the loop as a no-op.\r\n        if (parts.length === 1 && isSpaceGlyph(parts[0]?.codeName)) continue;\r\n        const misplaced = [];\r\n        let remainderCount = 0;\r\n        let knownRemainder = false;\r\n        for (let i = 0; i < parts.length; i++) {\r\n          const p = parts[i];\r\n          // SP is barred here via a local check but never added to isSpaceGlyph:\r\n          // that classifier holds exactly the two space glyphs, TSP and QSP.\r\n          if (p.codeName === 'SP' || isSpaceGlyph(p.codeName)) {\r\n            misplaced.push(i);\r\n            continue;\r\n          }\r\n          remainderCount++;\r\n          if (!p.error && ((p.codeName && blissElementDefinitions[p.codeName]) || p.parts?.length > 0)) {\r\n            knownRemainder = true;\r\n          }\r\n        }\r\n        if (misplaced.length === 0) continue;\r\n        if (remainderCount > 0 && !knownRemainder) continue;\r\n        for (const i of misplaced) {\r\n          const p = parts[i];\r\n          const source = BlissSVGBuilder.#writtenTextOf(p);\r\n          this.#mutationWarnings.push({\r\n            code: WARNING_CODES.MISPLACED_SPACE,\r\n            message: `A space is a word separator, not a character part, so \"${source}\" was dropped.`,\r\n            source,\r\n          });\r\n        }\r\n        for (let k = misplaced.length - 1; k >= 0; k--) {\r\n          parts.splice(misplaced[k], 1);\r\n        }\r\n      }\r\n    }\r\n  }\r\n\r\n  // Indicator-sequence invariant: an indicator part is only\r\n  // meaningful inside the maximal trailing indicator run of its glyph's part\r\n  // list (the character's indicator row: BASE;INDICATOR). An indicator that\r\n  // precedes default-positioned known content is a misplaced decoration:\r\n  // dropped LOUDLY (MISPLACED_INDICATOR_PART) from render and serialization,\r\n  // the warn+drop model of MISPLACED_HEAD_MARKER and\r\n  // MISPLACED_SPACE_DECORATION, while the character still renders. Three\r\n  // deliberate exemptions:\r\n  //  1. Content the author explicitly positioned does not convict a preceding\r\n  //     indicator: a compound indicator's decomposed serialization\r\n  //     (`B86;SDOT:3,4`) is hand-placed anatomy and must round-trip\r\n  //     (composition portability). \"Explicitly positioned\" asks whether an\r\n  //     axis was WRITTEN, not whether its value is non-zero, so `:0,0`, `:0,`,\r\n  //     `:,0` and `:0` carry the exemption too: serialization keeps a written\r\n  //     axis whatever its value, so the exemption survives a round-trip. A\r\n  //     part that wrote no axis at all (`C8`, `C8:,`) is still a witness.\r\n  //  2. A part whose nature is uncertain (unknown code awaiting a definition,\r\n  //     or a malformed error node) is no witness: the character already\r\n  //     fail-renders, and dropping on uncertainty would destroy input the\r\n  //     unknown-code retention contract keeps.\r\n  //  3. A compound-indicator glyph (glyph-level isIndicator) is an atomic\r\n  //     unit whose internal anatomy is definition-owned.\r\n  // Enforced here, the chokepoint every input surface and mutation route\r\n  // passes through (see #normalizeSpaceInvariant above for the rationale).\r\n  #normalizeIndicatorInvariant() {\r\n    for (const group of this.#rawBlissObj.groups ?? []) {\r\n      if (group.errorCode) continue;\r\n      for (const glyph of group.glyphs ?? []) {\r\n        if (glyph.isIndicator === true) continue;\r\n        const parts = glyph.parts;\r\n        if (!Array.isArray(parts) || parts.length < 2) continue;\r\n        let lastWitness = -1;\r\n        for (let i = parts.length - 1; i >= 1 && lastWitness === -1; i--) {\r\n          const p = parts[i];\r\n          if (p.isIndicator === true || p.error) continue;\r\n          if (p.x !== undefined || p.y !== undefined) continue;\r\n          if ((p.codeName && blissElementDefinitions[p.codeName]) || p.parts?.length > 0) {\r\n            lastWitness = i;\r\n          }\r\n        }\r\n        if (lastWitness === -1) continue;\r\n        const misplaced = [];\r\n        for (let i = 0; i < lastWitness; i++) {\r\n          if (parts[i].isIndicator === true) misplaced.push(i);\r\n        }\r\n        for (const i of misplaced) {\r\n          const p = parts[i];\r\n          const source = BlissSVGBuilder.#writtenTextOf(p);\r\n          this.#mutationWarnings.push({\r\n            code: WARNING_CODES.MISPLACED_INDICATOR_PART,\r\n            message: `An indicator can only follow its base parts at the end of a character (BASE;INDICATOR), so \"${source}\" was dropped.`,\r\n            source,\r\n          });\r\n        }\r\n        for (let k = misplaced.length - 1; k >= 0; k--) {\r\n          parts.splice(misplaced[k], 1);\r\n        }\r\n      }\r\n    }\r\n  }\r\n\r\n  // Gates the transient channel on the AUTHORING structure, so both surfaces\r\n  // that can fill it (the setters and constructor object input) meet one rule\r\n  // at one site, and so an offending key is dropped once rather than re-judged\r\n  // on every rebuild. Three refusals, each of a plausible-looking key that\r\n  // would otherwise sit in the bag and change nothing:\r\n  //\r\n  //   - a key the library consumes before the render copy is taken, which a\r\n  //     transient spelling could never reach (TRANSIENT_REFUSED_OPTION_KEYS);\r\n  //   - a bare name that is not a legal attribute name, including `on*`\r\n  //     handlers. The render path refuses one too, on every rebuild; this\r\n  //     check reports it once and drops it. A target-prefixed key is left to\r\n  //     the options pass and the root split, which judge its target before\r\n  //     its attribute, so `--x` reports UNKNOWN_LAYER here as it does in a\r\n  //     bracket. That report is re-derived on every rebuild, like any other\r\n  //     kept name refusal, and the key stays in a bag no save reads;\r\n  //   - anything at all on a TSP/QSP space, which has no ink to decorate. That\r\n  //     mirrors the space rule for ordinary options exactly, including its code.\r\n  //\r\n  // Warnings go to the one-time channel, like the space rule's own, because the\r\n  // offending key is deleted here: a per-rebuild channel would report it once\r\n  // and then forget it ever happened.\r\n  #normalizeTransientInvariant() {\r\n    const drop = (bag, keys, code, message) => {\r\n      for (const key of keys) delete bag[key];\r\n      this.#mutationWarnings.push({ code, message: message(keys), source: keys[0] });\r\n    };\r\n    const visit = (node, onSpace, level) => {\r\n      const bag = node.transientOptions;\r\n      if (bag && typeof bag === 'object') {\r\n        const keys = Object.keys(bag);\r\n        if (onSpace) {\r\n          if (keys.length > 0) {\r\n            drop(bag, keys, WARNING_CODES.MISPLACED_SPACE_DECORATION,\r\n              (k) => `A space cannot carry an option, so the transient \"${k.join('\", \"')}\" was dropped.`);\r\n          }\r\n        } else {\r\n          const refused = keys.filter(k => TRANSIENT_REFUSED_OPTION_KEYS.has(k));\r\n          if (refused.length > 0) {\r\n            drop(bag, refused, WARNING_CODES.MISPLACED_TRANSIENT_OPTION, transientRefusalMessage);\r\n          }\r\n          const unsafe = Object.keys(bag).filter(k => !isLayerAttributeKey(k) && !isSafeAttributeName(k));\r\n          // One sentence per name, so a hint the refusal gives names its own key.\r\n          if (unsafe.length > 0) {\r\n            drop(bag, unsafe, WARNING_CODES.UNSAFE_ATTRIBUTE_NAME,\r\n              (k) => k.map(unsafeAttributeNameMessage).join(' '));\r\n          }\r\n        }\r\n        if (Object.keys(bag).length === 0) delete node.transientOptions;\r\n      }\r\n      // Only the level's own list is walked: one written at another level is a\r\n      // field of your own. What sits inside a space is on a space too. The\r\n      // glyph-level space test is defensive: the space invariant runs just\r\n      // before this pass and splits a mixed word into pure-space groups, so\r\n      // today every space is caught one level up. Keeping it makes \"a space\r\n      // carries no transient decoration\" an invariant rather than an artifact\r\n      // of that ordering.\r\n      const [children, childLevel] = ELEMENT_LIST[level];\r\n      for (const child of node[children] ?? []) {\r\n        const isSpace = childLevel === 'group'\r\n          ? BlissSVGBuilder.#isRawSpaceGroup(child)\r\n          : childLevel === 'character' && BlissSVGBuilder.#isSpaceGlyphNode(child);\r\n        visit(child, onSpace || isSpace, childLevel);\r\n      }\r\n    };\r\n    visit(this.#rawBlissObj, false, 'global');\r\n  }\r\n\r\n  // Positioning family (GH #18): `x`, `y` and the two kerning values are the\r\n  // options a LAYOUT reads rather than an attribute the renderer copies, so\r\n  // they need the same promotion an options object gets when it arrives as\r\n  // DSL text: `x`/`y` onto the node as numbers, and any kerning spelling onto\r\n  // the single numeric key. The DSL surface gets that inside the parser; every\r\n  // other surface (constructor object input, `setOptions`, and the opts\r\n  // argument of the add/insert/replace family) arrives here, where an option\r\n  // set after construction lands on the authoring structure and never sees a\r\n  // parse. Without this the option was accepted, serialized, round-tripped,\r\n  // and changed nothing, with no warning.\r\n  //\r\n  // Runs on `#rawBlissObj` rather than the render clone, so the promotion also\r\n  // reaches what `toString()`/`toJSON()` emit: an option set through the API\r\n  // serializes exactly like the DSL spelling of the same value. It is\r\n  // idempotent, so a later rebuild re-normalizes nothing; the warnings ride\r\n  // `_parseWarnings`, the channel that survives a rebuild, so a conflict\r\n  // reported once is still reported after an unrelated mutation.\r\n  #normalizePositioningInvariant() {\r\n    const raw = this.#rawBlissObj;\r\n    const warnings = [];\r\n    // A position arrives on two channels, the promoted field and the options\r\n    // bag, and every scope reads both. Field first, and the order is\r\n    // load-bearing: see normalizePositionFields.\r\n    const normalize = (node, level) => {\r\n      normalizePositionFields(node, warnings);\r\n      extractPositionFromOptions(node, warnings, level);\r\n    };\r\n    // Parts nest (a composite part carries its own), and the parser promotes at\r\n    // every depth, so this does too: a nested part is reachable through the API\r\n    // (`glyph(0).part(0).part(1)`), where any other option already works.\r\n    const walkParts = (parts) => {\r\n      for (const part of parts ?? []) {\r\n        normalize(part, 3);\r\n        walkParts(part.parts);\r\n      }\r\n    };\r\n    normalize(raw, 0);\r\n    for (const group of raw.groups ?? []) {\r\n      normalize(group, 1);\r\n      for (const glyph of group.glyphs ?? []) {\r\n        normalize(glyph, 2);\r\n        // Kerning attaches to a character: it is the gap before THIS glyph, and\r\n        // no other level has a spelling for it. There are no markers on this\r\n        // path, so every kerning value present was written as an option.\r\n        const kerning = kerningOptionEntries(glyph.options);\r\n        if (kerning.length > 0) resolveKerning(glyph, undefined, kerning, warnings);\r\n        walkParts(glyph.parts);\r\n      }\r\n    }\r\n    if (warnings.length) (raw._parseWarnings ??= []).push(...warnings);\r\n  }\r\n\r\n  // Retention family: malformed SYNTAX is a parse-time warning, never\r\n  // persisted. A malformed part token is a pure error node (an `{error}` node\r\n  // with no codeName and no nested parts): `!` (Invalid format) or a code with\r\n  // an unparseable `:x,y` suffix (MALFORMED_COORDINATES). Dropping only the bad\r\n  // part would let a valid sibling collapse into a DIFFERENT valid character\r\n  // (the E->F hazard: `B291;!;B97` -> `B291;B97`), so the WHOLE character is\r\n  // dropped from render and BOTH serializations, keeping the parse-time warning\r\n  // as the only trace (no persisted `{error}` node). Exempt: an UNKNOWN code\r\n  // (`ZZ9`, a codeName that cannot yet resolve) is CONTENT, kept + warned\r\n  // (define it later and it renders); a word/composite misused as a part\r\n  // (WORD_AS_PART / COMPOSITE_AS_PART) carries a codeName or nested parts and\r\n  // re-emits visibly; a compound-indicator glyph (glyph-level isIndicator) is\r\n  // atomic. A fail-flagged word (group.errorCode) is dropped whole by\r\n  // #normalizeFailedWordInvariant, so its glyphs are skipped. Runs FIRST among\r\n  // the rebuild normalizers so a doomed glyph raises exactly one drop warning,\r\n  // not also a space-part or indicator warning.\r\n  //\r\n  // The token counts at any depth: a definition the character names reads its\r\n  // code string into nested parts (a typed glyph written alone is one part\r\n  // named after it), and a malformed token there fails the character exactly\r\n  // as one written in its place does.\r\n  static #malformedPartsOf(parts) {\r\n    return parts.flatMap((part) => (part.error && !part.codeName && !(part.parts?.length > 0)\r\n      ? [part]\r\n      : Array.isArray(part.parts) ? BlissSVGBuilder.#malformedPartsOf(part.parts) : []));\r\n  }\r\n\r\n  #normalizeMalformedPartInvariant() {\r\n    for (const group of this.#rawBlissObj.groups ?? []) {\r\n      if (group.errorCode) continue;\r\n      const glyphs = group.glyphs;\r\n      if (!Array.isArray(glyphs)) continue;\r\n      const doomed = [];\r\n      for (let gi = 0; gi < glyphs.length; gi++) {\r\n        const glyph = glyphs[gi];\r\n        if (glyph.isIndicator === true) continue;\r\n        const parts = glyph.parts;\r\n        if (!Array.isArray(parts)) continue;\r\n        const errorParts = BlissSVGBuilder.#malformedPartsOf(parts);\r\n        if (errorParts.length === 0) continue;\r\n        for (const p of errorParts) {\r\n          // Mirror BlissElement's leaf-fail warning so the visibility survives\r\n          // the drop: a code with a bad `:x,y` suffix names the coordinate\r\n          // error, any other malformed token is UNKNOWN_CODE. The source is the\r\n          // token as the parser read it; a failed part handed over in a\r\n          // composition object carries only its error, which stands in.\r\n          const source = p.errorSource ?? p.error;\r\n          if (p.errorCode === WARNING_CODES.MALFORMED_COORDINATES) {\r\n            this.#mutationWarnings.push({ code: WARNING_CODES.MALFORMED_COORDINATES, message: p.error, source });\r\n          } else {\r\n            this.#mutationWarnings.push({ code: WARNING_CODES.UNKNOWN_CODE, message: `Unknown or invalid code: \"${source}\"`, source });\r\n          }\r\n        }\r\n        doomed.push(gi);\r\n      }\r\n      for (let k = doomed.length - 1; k >= 0; k--) glyphs.splice(doomed[k], 1);\r\n    }\r\n  }\r\n\r\n  // Retention family: a malformed word-level indicator (a doubled `;;`,\r\n  // or a `;;` bound to a multi-word alias) fails the WHOLE word at parse\r\n  // (group.errorCode = MALFORMED_WORD_INDICATOR, group.errorSource = the raw\r\n  // text). The failed word is not content: it is dropped from render and BOTH\r\n  // serializations, reserving no extent, and neither errorCode nor errorSource\r\n  // is persisted. The parse-time warning (formerly surfaced by the element's L1\r\n  // fail-render, gone with the group) is re-emitted here before the drop so it\r\n  // survives; the drop makes the sweep warn once, not per rebuild. Runs before\r\n  // #normalizeSpaceInvariant so its adjacent-space merge sees the post-drop\r\n  // layout (a dropped middle word can leave two neighbor spaces).\r\n  #normalizeFailedWordInvariant() {\r\n    const groups = this.#rawBlissObj.groups;\r\n    if (!Array.isArray(groups)) return;\r\n    const survivors = [];\r\n    for (const group of groups) {\r\n      if (group.errorCode) {\r\n        this.#mutationWarnings.push({\r\n          code: group.errorCode,\r\n          message: group.error,\r\n          source: group.errorSource,\r\n        });\r\n        continue;\r\n      }\r\n      survivors.push(group);\r\n    }\r\n    if (survivors.length !== groups.length) this.#rawBlissObj.groups = survivors;\r\n  }\r\n\r\n  #rebuild() {\r\n    this.#generation++;\r\n    this.#elementsCache = undefined;\r\n    this.#groupsCache = undefined;\r\n    this.#warnings = [];\r\n\r\n    this.#normalizeMalformedPartInvariant();\r\n    this.#normalizeFailedWordInvariant();\r\n    this.#normalizeSpacePartInvariant();\r\n    this.#normalizeSpaceInvariant();\r\n    this.#normalizeTransientInvariant();\r\n    // Before the indicator invariant, which reads a part's `x` to decide\r\n    // whether it is explicitly positioned (a positioned part does not convict a\r\n    // preceding indicator), and after the space one, which strips a space's\r\n    // option and its coordinate separately and would otherwise report one\r\n    // written decoration twice.\r\n    this.#normalizePositioningInvariant();\r\n    this.#normalizeIndicatorInvariant();\r\n    BlissSVGBuilder.#assignKeys(this.#rawBlissObj);\r\n\r\n    // Re-derive position-dependent composite-as-part flags on the AUTHORING\r\n    // structure (#rawBlissObj), before the render clone: a mutation (insertPart\r\n    // via its `H;<code>` scaffold, removePart) can move a part to/from the\r\n    // leading slot, staling the parse-time flag. Serialization reads\r\n    // #rawBlissObj, so the flag must be accurate there, not only on the clone:\r\n    // a genuinely-failed part re-emits by its written name while a\r\n    // legal leading alias re-flattens. reflag only touches error/errorCode (no\r\n    // expansion), so it is safe on the base-only structure; the clone inherits.\r\n    BlissParser.reflagCompositeParts(this.#rawBlissObj);\r\n    const blissObj = structuredClone(this.#rawBlissObj);\r\n\r\n    // At render time, merge each group's word-level indicator\r\n    // overlay onto its head glyph, on the clone only so #rawBlissObj (and the\r\n    // handles that reference it) stay base-only. The head is the explicitly\r\n    // marked glyph (isHeadGlyph), else the query-time fallback so a\r\n    // structural mutation re-derives it instead of floating onto a stale stamp.\r\n    for (const group of blissObj.groups ?? []) {\r\n      if (group.wordIndicators && group.glyphs?.length) {\r\n        const headIndex = resolveOverlayHeadIndex(group.glyphs);\r\n        // Every glyph is empty: nothing can carry the rendered overlay. The\r\n        // stored overlay persists (pure-state contract) but renders\r\n        // nothing, exactly like the reparse of the serialized form.\r\n        if (headIndex === -1) continue;\r\n        const head = group.glyphs[headIndex];\r\n        // Marked so the snapshot crowns the character the codes are drawn on.\r\n        // Re-resolved from the merged parts it could move: the head gains\r\n        // parts, so a skip-list character picked by priority would no longer\r\n        // be skipped (`B1060/B578;;B99` would crown B1060, B99 drawn on B578).\r\n        head.isHeadGlyph = true;\r\n        // The overlay stores code STRINGS; this render-merge parse is\r\n        // where a definition-baked misplacement (e.g. a global-only option\r\n        // key inside an indicator definition) first becomes observable, so\r\n        // its parse warnings must reach builder.warnings. #warnings was reset\r\n        // above, so they re-derive per rebuild instead of accumulating.\r\n        const trace = {};\r\n        head.parts = mergeWordIndicatorsOntoHead(\r\n          head, group.wordIndicators, blissElementDefinitions, (code) => {\r\n            const parsed = BlissParser.parse(code);\r\n            this.#warnings.push(...(parsed._parseWarnings ?? []));\r\n            return parsed;\r\n          }, trace\r\n        );\r\n        // A head with a part after one of its indicators, past its first part\r\n        // (an indicator kept before a part positioned by hand, or before an\r\n        // unknown code), has no indicator run at its end, so the merge leaves\r\n        // it as it is. The overlay stays stored and saved, so it is reported\r\n        // on every rebuild, as the reload of a save reports it, until a\r\n        // mutation gives the head a shape it can merge onto.\r\n        if (!trace.applied) {\r\n          const { codes = [], stripSemantic } = group.wordIndicators;\r\n          const overlay = ';;' + (stripSemantic ? '!' : '') + codes.join(';');\r\n          this.#warnings.push({\r\n            code: WARNING_CODES.MISPLACED_WORD_INDICATOR,\r\n            message: `Word-level indicator (${overlay}) not applied: the word's head glyph has a non-indicator part after an indicator part, so the word-level indicator has nowhere to attach.`,\r\n            source: overlay,\r\n          });\r\n        }\r\n      }\r\n    }\r\n\r\n    // Captured BEFORE the options pass, which expands the bulk spellings\r\n    // (`margin` becomes four keys, `grid-color` becomes five) and so can no\r\n    // longer name what was written.\r\n    const writtenKeys = Object.keys({\r\n      ...(blissObj.options ?? {}), ...(blissObj.transientOptions ?? {}),\r\n    });\r\n    // All three sets below match the spelling AS WRITTEN, with no camelCase\r\n    // canonicalization, because each answers \"did this key produce that value\"\r\n    // and the options pass dispatches on the curated spelling alone.\r\n    //\r\n    // Every channel that can deliver an options bag resolves a curated name on\r\n    // the way in: a bracket through `#parseOptions`, the options argument and\r\n    // the mutation setters through `#toRaw`, a definition's defaults through\r\n    // `#toCuratedSpelling`, and a composition object through the ingest walk.\r\n    // So a key still spelled in camelCase by the time it reaches here is a name\r\n    // nobody owns: it lands in the second bag, is emitted as typed and shapes\r\n    // nothing. Canonicalizing here would name such a key as displaced, or as a\r\n    // value to reduce, on the strength of work it never did.\r\n    const writtenGeometryOptions = writtenKeys.filter(key => GEOMETRY_OPTION_KEYS.has(key));\r\n    // The wider set, for the overflow report below: `svg-height` and the three\r\n    // spacings never shape the viewBox, so they are absent above, but each can\r\n    // put a number in the root that the format cannot carry.\r\n    const writtenSizeOptions = writtenKeys.filter(key => SIZE_OPTION_KEYS.has(key));\r\n    // Same rule, asked of the attribute channel: `[grid;gridColor=blue]` paints\r\n    // nothing, so naming it as displaced would report a collision that never\r\n    // happened.\r\n    const writtenOptions = new Set(writtenKeys);\r\n\r\n    this.#processAllOptions(blissObj, 'global');\r\n\r\n    const { charSpace, wordSpace, externalGlyphSpace, errorPlaceholder, ...remainingOptions } = blissObj.options ?? {};\r\n    this.#sharedOptions = {\r\n      charSpace: charSpace ?? 2,\r\n      wordSpace: wordSpace ?? 8,\r\n      externalGlyphSpace: externalGlyphSpace ?? 0.8,\r\n      warnings: this.#warnings,\r\n      errorPlaceholder: errorPlaceholder === true,\r\n      // Parsed once at module load and injected into the tree at RENDER time,\r\n      // which is after the options pass has run over everything else, so it\r\n      // needs its own. REFSQUARE carries a definition default (the dashes that\r\n      // say \"this is a placeholder\"), and an option that never met the pass sits\r\n      // in the computed bag under the author's spelling, where no emitter reads\r\n      // it: the placeholder would draw as a solid square. Processed on a clone,\r\n      // because the constant is shared by every builder and every rebuild.\r\n      errorPlaceholderParts: (() => {\r\n        const parts = structuredClone(ERROR_PLACEHOLDER_PARTS);\r\n        for (const part of parts) this.#processAllOptions(part, 'part');\r\n        return parts;\r\n      })(),\r\n      keys: new Set(),\r\n      // The attributes of an element the tree paints itself (a word's, a\r\n      // character's or a part's background), as [name, value] pairs, so a key\r\n      // naming its class reaches it as one naming any other layer does, and\r\n      // so do the keys written on the elements around it (`levels`,\r\n      // #layerKeys). Read at render time, after the walk below has filled the\r\n      // layer attributes. The tree translates their filters itself.\r\n      layerAttributeEntries: (classes, computed, levels) =>\r\n        Object.entries(layerAttributes(classes, computed, this.#authoredFor(classes, levels))),\r\n      // The width the content group is drawn at, which every line and element\r\n      // background that states no width of its own is drawn at: an author's\r\n      // key where it reads as a width (writtenWidth); where a renderer cannot\r\n      // read it, the width the group inherits from the root (inheritedWidth),\r\n      // or the option's where that is wider, so a width only the renderer\r\n      // reads (`5px`) sizes no box smaller than the option does; with no key,\r\n      // the option's. Read at render time, after the walk below has filled the\r\n      // layer attributes, for the boxes the tree sizes around what it draws.\r\n      contentStrokeWidth: () => {\r\n        const option = this.#processedOptions.strokeWidth ?? DEFAULT_STROKE_WIDTH;\r\n        const written = this.#contentAttributes['stroke-width'];\r\n        return written === undefined ? option : writtenWidth(written) ?? Math.max(option, inheritedWidth(this.#rootAttributes));\r\n      },\r\n      // The groups the content's lines inherit a join, a cap and a miter\r\n      // limit from, each as { name: value }, nearest first: what an author's\r\n      // keys write on the content group; the round join and cap it writes\r\n      // where no key does; and what keys write on the root, which reaches the\r\n      // lines only where the content group writes nothing (the miter limit) or\r\n      // a value a renderer cannot read. Read at render time, as above, for how\r\n      // far past those boxes a corner or an end draws.\r\n      contentGroups: () => [{ ...this.#contentAttributes }, CONTENT_LINE_DEFAULTS, { ...this.#rootAttributes }],\r\n    };\r\n    if (blissObj._parseWarnings) {\r\n      this.#warnings.push(...blissObj._parseWarnings);\r\n      delete blissObj._parseWarnings;\r\n    }\r\n    blissObj.options = remainingOptions;\r\n    this.#processedOptions = blissObj.options;\r\n\r\n    // Global options split three ways: the named vocabulary was consumed above,\r\n    // a `<layer>--<attribute>` key goes to the target it names, and a bare key\r\n    // goes where it applies: the root <svg> for an attribute that describes the\r\n    // image, the content group for everything else, which styles the symbol.\r\n    // The grid and the background are never restyled by a bare key; they have\r\n    // options of their own.\r\n    // The two computed values that also reach the markup, resolved to the names\r\n    // they reach it under. Everything else the library computes is consumed by\r\n    // the emitters, and everything the author wrote is emitted exactly as typed.\r\n    //\r\n    // The rename happens HERE, while the published walk is being built, and not\r\n    // inside the loop below. A lookup in the loop would reach the author's keys\r\n    // too, and `strokeWidth` is a map KEY as well as an internal name: a bracket\r\n    // can spell it, it is not curated vocabulary (the curated set holds kebab),\r\n    // so it lands in the author's bag and a shared lookup renamed it to\r\n    // `stroke-width` on its way out. That left one spelling half-working after\r\n    // the split, setting the attribute while computing nothing, which is exactly\r\n    // what the separation exists to end.\r\n    //\r\n    // Each entry is [the spelling a bracket carries, the attribute name, value].\r\n    // The first is what a warning names: kebab-casing exactly these two gives\r\n    // `stroke-width` and `color`, the options an author actually writes.\r\n    //\r\n    // At global scope this walk does not decide the markup, which surprises\r\n    // everyone who reads it: `#svgCode` builds the content group from its own\r\n    // paint defaults, where `stroke` is the computed colour and `stroke-width`\r\n    // the computed width, and the value this walk writes lands on top of an\r\n    // identical one. What it decides is the REPORT. Registering the two names\r\n    // here is what lets a `content--stroke` collide with a curated `color` and\r\n    // say so; delete the walk and the markup is byte-identical while the\r\n    // collision goes silent. Element scope is the opposite: there the walk is\r\n    // the only thing that emits them.\r\n    const publishedPairs = [...PUBLICATION_MAP].flatMap(([name, attribute]) =>\r\n      // Own-key test, not `in`, which walks the prototype chain.\r\n      Object.hasOwn(this.#processedOptions, name)\r\n        ? [[camelToKebab(name), attribute, this.#processedOptions[name]]]\r\n        : []);\r\n    this.#rootAttributes = {};\r\n    this.#contentAttributes = {};\r\n    this.#layerAttributes = {};\r\n    this.#globalVectorEffect = undefined;\r\n    this.#globalAnchorAttributes = {};\r\n    // One setter per element a key can land on, so a collision is judged where\r\n    // two values would meet and nowhere else: `root--stroke` beside `color`\r\n    // reaches two elements and collides with nothing, while `content--stroke`\r\n    // beside `color` is two values for one attribute of one element.\r\n    const attributeSetter = (attributes, element) => {\r\n      // Which key wrote each attribute, and whether it named the element\r\n      // explicitly. Explicit beats resolved in EITHER order, so this is an\r\n      // invariant rather than an artifact of the iteration order, the same way\r\n      // the element emitter resolves an explicit `stroke` against a `color`.\r\n      const sources = new Map();\r\n      return (name, key, explicit, value) => {\r\n        const prior = sources.get(name);\r\n        // Two bare keys are one channel and keep the silence they have always\r\n        // had. NOT last-wins, though it reads that way: the walk below visits\r\n        // the published pair before the author's keys, so a raw `stroke` lands\r\n        // second and beats a curated `color` whatever order they were written\r\n        // in. The report exists for the collision a target prefix creates,\r\n        // between a bare key and the prefixed spelling of the same attribute.\r\n        if (prior && (explicit || prior.explicit)) {\r\n          const winner = explicit ? key : prior.key;\r\n          const loser = explicit ? prior.key : key;\r\n          this.#warnings.push({\r\n            code: WARNING_CODES.MULTIPLE_ATTRIBUTE_VALUES,\r\n            message: `\"${winner}\" and \"${loser}\" both set \"${name}\" on ${element}, and only one value can be written there, so \"${winner}\" was used: a key that names its target beats one that has to be resolved to it. Remove whichever you did not mean.`,\r\n            source: loser,\r\n          });\r\n          if (!explicit) return;\r\n        }\r\n        sources.set(name, { key, explicit });\r\n        attributes[name] = value;\r\n      };\r\n    };\r\n    const setRootAttribute = attributeSetter(this.#rootAttributes, 'the root');\r\n    const setContentAttribute = attributeSetter(this.#contentAttributes, 'the content group');\r\n\r\n    // Whether the element a target names is painted at all, decided from the\r\n    // processed options exactly as the emitters decide it. A report about what an\r\n    // attribute DOES is silent where nothing draws; UNKNOWN_LAYER, which reports\r\n    // whether a target EXISTS, is deliberately not gated this way.\r\n    //\r\n    // Per element for the background, where the paper rect and the three zones\r\n    // are mutually exclusive and that choice is already settled here: naming a\r\n    // zone the author never asked for would name an element their output does\r\n    // not contain. Per LAYER for the grid, because which lines survive a crop is\r\n    // known only at render, where a warning would double on every repeated\r\n    // svgCode read. Anything else counts as drawn, so a painted element added\r\n    // later reports rather than falling silent.\r\n    const { grid, background, backgroundTop, backgroundMid, backgroundBottom } = this.#processedOptions;\r\n    const hasZones = Boolean(backgroundTop || backgroundMid || backgroundBottom);\r\n    const backgroundDraws = new Map([\r\n      ['backgroundZone', !hasZones && Boolean(background)],\r\n      ['zoneTop', hasZones && Boolean(backgroundTop || background)],\r\n      ['zoneMid', hasZones && Boolean(backgroundMid || background)],\r\n      ['zoneBottom', hasZones && Boolean(backgroundBottom || background)],\r\n    ]);\r\n    const elementIsDrawn = (element) => {\r\n      if (element.startsWith('grid')) return Boolean(grid);\r\n      if (backgroundDraws.has(element)) return backgroundDraws.get(element);\r\n      return true;\r\n    };\r\n    // A container is drawn when any child it wraps is. Deliberately not\r\n    // elementIsDrawn, whose true-by-default answer is meant for a painted\r\n    // element it has not been taught about: `background` is a wrapper rather\r\n    // than one of the rects it knows, so that answer would be true with nothing\r\n    // drawn at all. Each container is named, and one added later without an arm\r\n    // here reports whether or not it drew, which is loudly wrong rather than\r\n    // silently inheriting the background's answer.\r\n    const containerIsDrawn = (layer) => {\r\n      // The root and the content group it wraps are written for every picture.\r\n      if (layer === 'root') return true;\r\n      if (layer === 'grid') return Boolean(grid);\r\n      if (layer === 'background') return [...backgroundDraws.values()].some(Boolean);\r\n      return true;\r\n    };\r\n\r\n    // Published pair first, then the author's keys. Two bags have no order\r\n    // between them, so the order is stated here rather than inherited from how\r\n    // one bag happened to be built. It reproduces exactly what that bag did: the\r\n    // options pass rebuilt it with every curated key ahead of every raw one, so\r\n    // a raw `stroke` landed second and beat a curated `color` whatever order the\r\n    // author wrote the two in.\r\n    for (const [key, attrName, value] of [\r\n      ...publishedPairs,\r\n      // An author's key IS its own attribute name. Nothing renames it.\r\n      ...Object.entries(blissObj.authoredOptions ?? {}).map(([k, v]) => [k, k, v]),\r\n    ]) {\r\n      if (INTERNAL_OPTIONS.has(key)) continue;\r\n      if (isLayerAttributeKey(key)) {\r\n        // The prefixed channel is RAW: the name after `--` is emitted verbatim,\r\n        // with no alias remapping and no kebab-casing. That is what makes an\r\n        // attribute reachable whose name a named option has taken (`color`),\r\n        // and what makes a camelCase SVG attribute expressible.\r\n        //\r\n        // RAW means we do not rename or reinterpret the attribute. It does not\r\n        // mean we will help write a file that cannot be parsed, so the NAME is\r\n        // judged first.\r\n        // The judge is the one a key written below global scope is reported\r\n        // by, so the same key says the same thing wherever it is written. A\r\n        // name that declares the document breaks it wherever it lands, so that\r\n        // refusal reaches further than the root; the library's own stamp\r\n        // collides with nothing below the root, so it is refused behind the\r\n        // root prefix alone. An unknown target is kept in the options bag so it\r\n        // round-trips, on the UNKNOWN_ family's logic: `foo` may become a layer\r\n        // later, exactly as an unknown code may be define()d afterwards. An\r\n        // unsafe name has already been reported by the options pass, which\r\n        // judges every key at every scope, so it is only skipped here.\r\n        const nameRefusal = layerKeyNameRefusal(key);\r\n        if (nameRefusal) {\r\n          if (nameRefusal.code !== WARNING_CODES.UNSAFE_ATTRIBUTE_NAME) this.#warnings.push(nameRefusal);\r\n          continue;\r\n        }\r\n        // No exception for the link attributes: `root--href` names an element\r\n        // as `root--role` does, and only a bare global `href` builds a link.\r\n        const target = parseLayerAttributeKey(key);\r\n        // Judged after the refusal above, so a name we drop is never also\r\n        // described as landing somewhere. No `continue` below it: the value IS\r\n        // emitted where it was asked for, and only the silence about it goes.\r\n        const container = CONTAINER_SHADOWED_ATTRIBUTES.get(target.layer);\r\n        if (container?.names.includes(target.attribute) && containerIsDrawn(target.layer)) {\r\n          const fix = `${container.childTarget}--${target.attribute}`;\r\n          this.#warnings.push({\r\n            code: WARNING_CODES.MISPLACED_CONTAINER_ATTRIBUTE,\r\n            // What an author can observe, and nothing about the mechanism: the\r\n            // paint names are inherited and the child's own value beats them,\r\n            // while `x`, `y`, `width`, `height` and `d` are geometry a group\r\n            // never carries, so naming inheritance would be false for half the\r\n            // list. The root has one child that matters, so it is named.\r\n            message: target.layer === 'root'\r\n              ? `\"${key}\" was emitted on the root <svg>, but the content group carries its own \"${target.attribute}\", and that is the value that takes effect, so the one written on the root never shows. Write \"${fix}\" to reach the content group.`\r\n              : `\"${key}\" was emitted on the ${target.layer} group, but each of its children carries its own \"${target.attribute}\", and the child's value is the one that takes effect, so the one written on the group never shows. Write \"${fix}\" to reach the children themselves.`,\r\n            source: key,\r\n          });\r\n        }\r\n        // The prefix suspends name RESOLUTION, never name GUARDS, so a prefixed\r\n        // root or content key has faced every guard the bare branch faces (the\r\n        // stamp's among them, in the judge above). It goes into the same map\r\n        // the bare keys build, which is what lets the collision report, the\r\n        // geometry displacement report and the element's attribute merge see it\r\n        // without knowing it arrived prefixed.\r\n        if (target.layer === 'root') {\r\n          setRootAttribute(target.attribute, key, true, value);\r\n          continue;\r\n        }\r\n        if (target.layer === 'content') {\r\n          setContentAttribute(target.attribute, key, true, value);\r\n          continue;\r\n        }\r\n        (this.#layerAttributes[target.layer] ??= {})[target.attribute] = value;\r\n        continue;\r\n      }\r\n      if (!isSafeAttributeName(key)) continue;\r\n      if (isDocumentDefiningAttribute(attrName) || isLibraryOwnedRootAttribute(attrName)) {\r\n        this.#warnings.push({\r\n          code: WARNING_CODES.RESERVED_ATTRIBUTE_NAME,\r\n          message: reservedAttributeMessage(attrName),\r\n          source: key,\r\n        });\r\n        continue;\r\n      }\r\n      // The link attributes go on the <a> the emitter draws around the content\r\n      // group, and only when the href is one a link may carry; no element here\r\n      // carries them.\r\n      if (ANCHOR_ATTRIBUTE_NAMES.includes(attrName)) {\r\n        this.#globalAnchorAttributes[attrName] = value;\r\n        continue;\r\n      }\r\n      // vector-effect is not inherited, so on a group it would be a dead\r\n      // attribute; it is relocated onto the content's paths, where it takes\r\n      // effect. That repairs the library's OWN default destination, so it\r\n      // belongs to the bare key alone: `content--vector-effect` and\r\n      // `root--vector-effect` name an element deliberately and stay there as\r\n      // written, dead, and neither collides with this one.\r\n      if (attrName === 'vector-effect') {\r\n        this.#globalVectorEffect = value;\r\n        continue;\r\n      }\r\n      (isImageAttribute(attrName) ? setRootAttribute : setContentAttribute)(attrName, key, false, value);\r\n    }\r\n\r\n    // A raw target displaces a written curated option when both reach the same\r\n    // attribute on the same painted element. Judged on the two WRITTEN keys:\r\n    // MULTIPLE_ reports that the input said a thing twice, which is why two\r\n    // equal values still raise it. A raw key that displaces only a library\r\n    // DEFAULT is silent, since one statement from the author is not two.\r\n    // Collected before it is reported, because one raw key reaching five line\r\n    // families is ONE statement about the input, and the reader still needs to\r\n    // know which elements it reached.\r\n    //\r\n    // Read from #layerAttributes and the element backgrounds' keys and never\r\n    // from the options bags: a refused raw key (an unsafe or a reserved name)\r\n    // is still in its bag and reaches no markup, so the bag would report a\r\n    // displacement that never happened. The maps are what the emitters\r\n    // actually consume.\r\n    //\r\n    // Run twice, over the elements each moment can judge: here for the ones\r\n    // the builder draws, and once the element tree is built for the element\r\n    // backgrounds, which only the tree knows it draws. `instancesOf(element)`\r\n    // lists, for each drawn instance of that element, the keys written on the\r\n    // elements around it (#layerKeys' `levels`): `[[]]` for an element the\r\n    // builder draws, which only the global bracket reaches, and none for one\r\n    // not drawn.\r\n    const reportDisplacedOptions = (instancesOf, isWritten) => {\r\n      const displaced = new Map();\r\n      for (const [element, attributes] of Object.entries(CURATED_ATTRIBUTE_SOURCES)) {\r\n        const classes = ELEMENT_CLASSES[element];\r\n        for (const levels of instancesOf(element)) {\r\n          const keys = this.#layerKeys(classes, levels);\r\n          for (const [attribute, chain] of Object.entries(attributes)) {\r\n            // The key in force wins: the nearest, then the most specific\r\n            // target, the same rule the emitter applies.\r\n            const rawKey = keys.filter(([name]) => name === attribute).at(-1)?.[2];\r\n            const curatedKey = chain.find(isWritten);\r\n            if (!rawKey || !curatedKey) continue;\r\n            // One report per key, however many instances it reaches.\r\n            const id = `${rawKey} ${curatedKey}`;\r\n            if (!displaced.has(id)) displaced.set(id, { rawKey, curatedKey, attribute, elements: new Set() });\r\n            displaced.get(id).elements.add(targetOfClass(classes.at(-1)));\r\n          }\r\n        }\r\n      }\r\n      for (const { rawKey, curatedKey, attribute, elements } of displaced.values()) {\r\n        this.#warnings.push({\r\n          code: WARNING_CODES.MULTIPLE_ATTRIBUTE_VALUES,\r\n          message: `\"${rawKey}\" and \"${curatedKey}\" both set \"${attribute}\" on ${[...elements].join(', ')}, so \"${rawKey}\" was used: a key that names its target beats one that has to be resolved to it. Remove whichever you did not mean.`,\r\n          source: curatedKey,\r\n        });\r\n      }\r\n    };\r\n    const drawnByTree = new Set(Object.values(BACKGROUND_AREA_ELEMENTS));\r\n    reportDisplacedOptions((element) => (!drawnByTree.has(element) && elementIsDrawn(element) ? [[]] : []),\r\n      (key) => writtenOptions.has(key));\r\n\r\n    // A written viewBox states the value the geometry options exist to compute,\r\n    // so it wins and they are named rather than left looking effective.\r\n    if (this.#rootAttributes['viewBox'] && writtenGeometryOptions.length > 0) {\r\n      this.#warnings.push({\r\n        code: WARNING_CODES.MULTIPLE_GEOMETRY_VALUES,\r\n        message: `The viewBox was written directly, so \"${writtenGeometryOptions.join('\", \"')}\" no longer shapes it. Remove the viewBox to size the picture with the options, or remove the options to size it by hand.`,\r\n        source: writtenGeometryOptions.join(', '),\r\n      });\r\n    }\r\n\r\n    this.composition = new BlissElement(blissObj, { sharedOptions: this.#sharedOptions });\r\n\r\n    // The element backgrounds' displacements, now that the tree says which it\r\n    // draws and which keys reach each. One is drawn only where a `background`\r\n    // was written on its element, so every key in their chains counts as\r\n    // written.\r\n    const drawnBackgrounds = this.composition.drawnBackgrounds;\r\n    reportDisplacedOptions((element) => drawnBackgrounds\r\n      .filter(drawn => drawn.element === element).map(drawn => drawn.levels), () => true);\r\n\r\n    // The output side. Every value that got here passed its own gate, so what\r\n    // is judged is the arithmetic: two terms can sum past the largest double,\r\n    // and the six-times presentation multiplier can run off the end of one that\r\n    // survived on its own. No input gate can see either.\r\n    //\r\n    // It runs here rather than in the `#svgCode` getter so the warning is\r\n    // raised by construction like every other one. From the getter, this single\r\n    // code would be absent until somebody read the markup, and would need its\r\n    // own guard against piling up on a second read.\r\n    const carriedNumbers = (geometry) => [\r\n      geometry.viewBoxX, geometry.viewBoxY, geometry.viewBoxWidth, geometry.viewBoxHeight,\r\n      geometry.svgWidth, geometry.svgHeight,\r\n    ];\r\n    if (!carriedNumbers(this.#computeGeometry()).every((value) => Number.isFinite(value))) {\r\n      // Removing them IS the fallback: the getter's own `?? 0.75` and `?? 0`\r\n      // then supply the defaults, so the picture comes out sized exactly as it\r\n      // would have been had none of them been written, and `#computeGeometry`\r\n      // needs no second mode. A spacing is the one cause this cannot answer,\r\n      // because it is baked into the composition long before the geometry can\r\n      // be judged; the report is the whole remedy there.\r\n      for (const key of COMPUTED_GEOMETRY_INPUTS) delete this.#processedOptions[key];\r\n      // Whether the drop WORKED is a different question from whether a size\r\n      // option was written, and only the first is any use to the author: a\r\n      // spacing is in `writtenSizeOptions` because it is a value to reduce,\r\n      // yet absent from the list just deleted, for the reason above. Asking\r\n      // the arithmetic is the only honest test. It costs one pure pass on a\r\n      // path that has already failed, and it stays right if the set of causes\r\n      // the fallback cannot answer ever changes.\r\n      const repaired = carriedNumbers(this.#computeGeometry()).every((value) => Number.isFinite(value));\r\n      // Three outcomes, and the one that names nothing leads. A glyph position or a\r\n      // kerning value written as an OPTION (`[x=1e308]>B291`) gates on finite\r\n      // alone, so it widens the composition from ELEMENT scope, where this\r\n      // builder-scope set cannot see it. Naming the options anyway printed an\r\n      // empty pair of quotes and told the author to reduce nothing.\r\n      // Only the repaired arm may accuse the options it names. There, dropping\r\n      // them put the size back, so they demonstrably produced it. In the\r\n      // surviving arm they demonstrably did not, and one of them can be\r\n      // entirely innocent: `[char-space=2]||[x=1e308]>B291` names `char-space`\r\n      // at its own default, because the position that really caused it sits at\r\n      // element scope where this builder-scope set cannot see it. So that arm\r\n      // states the outcome, offers the names as somewhere to look, and names\r\n      // the other cause as well, which is the remedy the empty arm gives and\r\n      // which is otherwise unreachable the moment any size option is written.\r\n      const names = `\"${writtenSizeOptions.join('\", \"')}\"`;\r\n      this.#warnings.push({\r\n        code: WARNING_CODES.OUT_OF_RANGE_COMPUTED_GEOMETRY,\r\n        message: writtenSizeOptions.length === 0\r\n          ? `The content works out to a picture size the SVG format cannot carry, and no option that sizes the picture was written to drop. Reduce the positions or kerning that spread it until the width, height and viewBox come out finite.`\r\n          : repaired\r\n            ? `${names} works out to a picture size the SVG format cannot carry, so every option that sizes the picture was dropped. Reduce the values until the width, height and viewBox come out finite.`\r\n            : `The picture works out to a size the SVG format cannot carry, and dropping the options that size it did not undo that, so the picture still carries that size. Reduce ${names}, or the positions and kerning that spread the composition, until the width, height and viewBox come out finite.`,\r\n        source: writtenSizeOptions.join(', '),\r\n      });\r\n    }\r\n  }\r\n\r\n  /**\r\n   * Returns warnings generated during parsing/rendering, followed by any\r\n   * one-time mutation warnings (e.g. an overlay dropped by mergeWithNext).\r\n   * Each warning has { code, message, source } describing the issue.\r\n   * @returns {Array<{ code: string, message: string, source: string }>}\r\n   */\r\n  get warnings() {\r\n    return [...this.#warnings, ...this.#mutationWarnings];\r\n  }\r\n\r\n  #elementsCache;\r\n\r\n  /**\r\n   * Returns the root element snapshot — a frozen tree of all element data.\r\n   * Cached on first access (builder instances are immutable).\r\n   *\r\n   * @returns {ElementSnapshot} Frozen root snapshot with nested children\r\n   */\r\n  get elements() {\r\n    if (!this.#elementsCache) {\r\n      this.#elementsCache = this.composition.snapshot();\r\n    }\r\n    return this.#elementsCache;\r\n  }\r\n\r\n  /**\r\n   * Depth-first traversal of all element snapshots.\r\n   * Return false from the callback to stop traversal early.\r\n   *\r\n   * @param {function(ElementSnapshot): boolean|void} callback\r\n   */\r\n  traverse(callback) {\r\n    function walk(el) {\r\n      if (callback(el) === false) return false;\r\n      for (const child of el.children) {\r\n        if (walk(child) === false) return false;\r\n      }\r\n    }\r\n    walk(this.elements);\r\n  }\r\n\r\n  /**\r\n   * Find all element snapshots matching a predicate.\r\n   *\r\n   * @param {function(ElementSnapshot): boolean} predicate\r\n   * @returns {ElementSnapshot[]}\r\n   */\r\n  query(predicate) {\r\n    const results = [];\r\n    this.traverse(el => { if (predicate(el)) results.push(el); });\r\n    return results;\r\n  }\r\n\r\n  /**\r\n   * Look up an element by its snapshot key, returning a live ElementHandle.\r\n   *\r\n   * @param {string} key\r\n   * @returns {ElementHandle|null}\r\n   */\r\n  getElementByKey(key) {\r\n    // The authoring tree is searched, each element by the key it is drawn\r\n    // with (`#drawnKey`, the rule that names its snapshot), so a part is found\r\n    // by a key set on it, which the authoring part holds in its options, and at\r\n    // any depth. An indicator a `;;` word overlay adds lives only in the\r\n    // resolved tree, so it has no node to hand out and is not found.\r\n    for (const group of this.#rawBlissObj.groups ?? []) {\r\n      if (BlissSVGBuilder.#drawnKey(group) === key) return new ElementHandle(this.#mutationCtx, 1, group);\r\n      for (const glyph of group.glyphs ?? []) {\r\n        if (BlissSVGBuilder.#drawnKey(glyph) === key) return new ElementHandle(this.#mutationCtx, 2, glyph, group);\r\n        const part = this.#partWithKey(glyph.parts, key, 3, { group, glyph });\r\n        if (part) return part;\r\n      }\r\n    }\r\n    return null;\r\n  }\r\n\r\n  // A handle to the part drawn with `key` among `parts` or inside them, at\r\n  // `level`, their depth; null when there is none.\r\n  #partWithKey(parts, key, level, parentRef) {\r\n    for (const part of parts ?? []) {\r\n      if (BlissSVGBuilder.#drawnKey(part) === key) return new ElementHandle(this.#mutationCtx, level, part, parentRef);\r\n      const inner = this.#partWithKey(part.parts, key, level + 1, parentRef);\r\n      if (inner) return inner;\r\n    }\r\n    return null;\r\n  }\r\n\r\n  // The key an element is drawn with: the one written in its options, as its\r\n  // text, unless that text is empty or the key was written bare (stored as\r\n  // `true`), neither of which names anything; otherwise its own. The options\r\n  // pass names the element's snapshot by this rule, and a handle finds its\r\n  // snapshot by it.\r\n  static #drawnKey(node) {\r\n    const written = node.options?.key;\r\n    if (written === undefined || written === true) return node.key;\r\n    const name = textOfValue(written);\r\n    return name === '' ? node.key : name;\r\n  }\r\n\r\n  // --- Live Navigation ---\r\n\r\n  #getNonSpaceGroupIndices() {\r\n    const indices = [];\r\n    const groups = this.#rawBlissObj.groups || [];\r\n    for (let i = 0; i < groups.length; i++) {\r\n      if (!BlissSVGBuilder.#isRawSpaceGroup(groups[i])) {\r\n        indices.push(i);\r\n      }\r\n    }\r\n    return indices;\r\n  }\r\n\r\n  /**\r\n   * Returns a live ElementHandle for the non-space group at the given index.\r\n   * @param {number} index\r\n   * @returns {ElementHandle|null}\r\n   */\r\n  group(index) {\r\n    const indices = this.#getNonSpaceGroupIndices();\r\n    if (index < 0) index = indices.length + index;\r\n    if (!Number.isInteger(index) || index < 0 || index >= indices.length) return null;\r\n    const rawGroup = this.#rawBlissObj.groups[indices[index]];\r\n    return new ElementHandle(this.#mutationCtx, 1, rawGroup);\r\n  }\r\n\r\n  /**\r\n   * Returns a live ElementHandle for any group (including spaces) at the given raw index.\r\n   * @param {number} index - Raw index (supports negative: -1 = last)\r\n   * @returns {ElementHandle|null}\r\n   */\r\n  element(index) {\r\n    const groups = this.#rawBlissObj.groups;\r\n    if (index < 0) index = groups.length + index;\r\n    if (!Number.isInteger(index) || index < 0 || index >= groups.length) return null;\r\n    return new ElementHandle(this.#mutationCtx, 1, groups[index]);\r\n  }\r\n\r\n  /**\r\n   * Total number of raw groups (including space groups).\r\n   * @returns {number}\r\n   */\r\n  get elementCount() {\r\n    return this.#rawBlissObj.groups.length;\r\n  }\r\n\r\n  /**\r\n   * Returns a live ElementHandle for the glyph at the given flat index across all groups.\r\n   * @param {number} flatIndex\r\n   * @returns {ElementHandle|null}\r\n   */\r\n  glyph(flatIndex) {\r\n    const indices = this.#getNonSpaceGroupIndices();\r\n    if (flatIndex < 0) {\r\n      let total = 0;\r\n      for (const gi of indices) {\r\n        total += (this.#rawBlissObj.groups[gi].glyphs || []).length;\r\n      }\r\n      flatIndex = total + flatIndex;\r\n    }\r\n    if (!Number.isInteger(flatIndex) || flatIndex < 0) return null;\r\n    let count = 0;\r\n    for (const gi of indices) {\r\n      const group = this.#rawBlissObj.groups[gi];\r\n      const glyphs = group.glyphs || [];\r\n      if (flatIndex < count + glyphs.length) {\r\n        return new ElementHandle(this.#mutationCtx, 2, glyphs[flatIndex - count], group);\r\n      }\r\n      count += glyphs.length;\r\n    }\r\n    return null;\r\n  }\r\n\r\n  /**\r\n   * Returns a live ElementHandle for the part at the given flat index across all glyphs.\r\n   * @param {number} flatIndex\r\n   * @returns {ElementHandle|null}\r\n   */\r\n  part(flatIndex) {\r\n    const indices = this.#getNonSpaceGroupIndices();\r\n    if (flatIndex < 0) {\r\n      let total = 0;\r\n      for (const gi of indices) {\r\n        for (const glyph of (this.#rawBlissObj.groups[gi].glyphs || [])) {\r\n          total += (glyph.parts || []).length;\r\n        }\r\n      }\r\n      flatIndex = total + flatIndex;\r\n    }\r\n    if (!Number.isInteger(flatIndex) || flatIndex < 0) return null;\r\n    let count = 0;\r\n    for (const gi of indices) {\r\n      const group = this.#rawBlissObj.groups[gi];\r\n      const glyphs = group.glyphs || [];\r\n      for (const glyph of glyphs) {\r\n        const parts = glyph.parts || [];\r\n        if (flatIndex < count + parts.length) {\r\n          return new ElementHandle(this.#mutationCtx, 3, parts[flatIndex - count], { group, glyph });\r\n        }\r\n        count += parts.length;\r\n      }\r\n    }\r\n    return null;\r\n  }\r\n\r\n  /**\r\n   * Returns a frozen snapshot of the element tree.\r\n   * @returns {ElementSnapshot}\r\n   */\r\n  snapshot() {\r\n    return this.elements;\r\n  }\r\n\r\n  // --- Builder Convenience Methods ---\r\n\r\n  /**\r\n   * Appends a new glyph group with automatic space management.\r\n   * @param {string} [code] - DSL code string; empty, whitespace-only, or omitted appends an empty group\r\n   * @param {Object | { defaults?: Object, overrides?: Object }} [opts]\r\n   * @returns {this}\r\n   */\r\n  addGroup(code, opts) {\r\n    assertCodeArg('addGroup', code);\r\n    assertOptsArg('addGroup', opts);\r\n    const nonSpaceCount = this.#getNonSpaceGroupIndices().length;\r\n    return this.insertGroup(nonSpaceCount, code, opts);\r\n  }\r\n\r\n  /**\r\n   * Inserts a new glyph group at the given semantic (non-space) index\r\n   * with automatic space management.\r\n   * @param {number} index - Semantic non-space group index (supports negative: -1 = before last)\r\n   * @param {string} [code] - DSL code string; empty, whitespace-only, or omitted inserts an empty group\r\n   * @param {Object | { defaults?: Object, overrides?: Object }} [opts]\r\n   * @returns {this}\r\n   */\r\n  insertGroup(index, code, opts) {\r\n    assertCodeArg('insertGroup', code);\r\n    assertOptsArg('insertGroup', opts);\r\n    if (!Number.isInteger(index)) return this;\r\n    const newGroup = this.#parseGroupWithOpts(code, opts);\r\n    const groups = this.#rawBlissObj.groups;\r\n    const indices = this.#getNonSpaceGroupIndices();\r\n    if (index < 0) index = indices.length + index;\r\n\r\n    if (groups.length === 0 || indices.length === 0) {\r\n      // Empty — just push, no spaces needed\r\n      groups.push(newGroup);\r\n    } else if (index <= 0) {\r\n      // Insert at start: [newGroup, space, ...existing]\r\n      groups.splice(0, 0, newGroup, BlissSVGBuilder.#makeSpaceGroup());\r\n    } else if (index >= indices.length) {\r\n      // Insert at end: [...existing, space, newGroup]\r\n      groups.push(BlissSVGBuilder.#makeSpaceGroup());\r\n      groups.push(newGroup);\r\n    } else {\r\n      // Insert in middle: [space, newGroup] right after the previous word, so\r\n      // every space already there keeps the word after it, the one its width\r\n      // was decided against. removeGroup takes the new word back out with the\r\n      // space before it.\r\n      const rawIndex = indices[index - 1] + 1;\r\n      groups.splice(rawIndex, 0, BlissSVGBuilder.#makeSpaceGroup(), newGroup);\r\n    }\r\n\r\n    this.#rebuild();\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Appends a glyph to the last non-space group (creates one if empty).\r\n   * An omitted, empty, or whitespace-only code appends an empty glyph.\r\n   * @param {string} [code] - DSL code string\r\n   * @param {Object | { defaults?: Object, overrides?: Object }} [opts]\r\n   * @returns {this}\r\n   */\r\n  addGlyph(code, opts) {\r\n    assertCodeArg('addGlyph', code);\r\n    assertOptsArg('addGlyph', opts);\r\n    const indices = this.#getNonSpaceGroupIndices();\r\n    if (indices.length === 0) {\r\n      // Empty builder: validate at glyph level FIRST. The scaffold group is\r\n      // attached only after the handle call succeeds, so a rejected arg\r\n      // leaves the builder untouched, and opts land at glyph level exactly\r\n      // as they do on a non-empty builder.\r\n      const newGroup = { glyphs: [] };\r\n      new ElementHandle(this.#mutationCtx, 1, newGroup).addGlyph(code, opts);\r\n      this.#rawBlissObj.groups.push(newGroup);\r\n      this.#rebuild();\r\n      return this;\r\n    }\r\n    const lastGi = indices[indices.length - 1];\r\n    const rawGroup = this.#rawBlissObj.groups[lastGi];\r\n    const handle = new ElementHandle(this.#mutationCtx, 1, rawGroup);\r\n    handle.addGlyph(code, opts);\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Appends a part to the last non-space group's last glyph (on an empty\r\n   * document, creates the group and a glyph around the part).\r\n   * A part references a shape, so an omitted or empty code throws;\r\n   * use addGlyph('') to reserve an empty slot instead.\r\n   * @param {string} code - DSL code string resolving to exactly one part\r\n   * @param {Object | { defaults?: Object, overrides?: Object }} [opts]\r\n   * @returns {this}\r\n   */\r\n  addPart(code, opts) {\r\n    assertCodeArg('addPart', code);\r\n    assertOptsArg('addPart', opts);\r\n    const indices = this.#getNonSpaceGroupIndices();\r\n    if (indices.length === 0) {\r\n      // Empty builder: validate at part level FIRST. The scaffold group is\r\n      // attached only after the handle call succeeds, so a rejected arg\r\n      // leaves the builder untouched, and opts land at part level exactly\r\n      // as they do on a non-empty builder.\r\n      const newGroup = { glyphs: [] };\r\n      new ElementHandle(this.#mutationCtx, 1, newGroup).addPart(code, opts);\r\n      this.#rawBlissObj.groups.push(newGroup);\r\n      this.#rebuild();\r\n      return this;\r\n    }\r\n    const lastGi = indices[indices.length - 1];\r\n    const rawGroup = this.#rawBlissObj.groups[lastGi];\r\n    const handle = new ElementHandle(this.#mutationCtx, 1, rawGroup);\r\n    handle.addPart(code, opts);\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Removes the non-space group at the given semantic index.\r\n   * @param {number} index - Semantic index (supports negative)\r\n   * @returns {this}\r\n   */\r\n  removeGroup(index) {\r\n    const indices = this.#getNonSpaceGroupIndices();\r\n    if (index < 0) index = indices.length + index;\r\n    if (!Number.isInteger(index) || index < 0 || index >= indices.length) return this;\r\n    const rawIndex = indices[index];\r\n    this.#removeGlyphGroup(this.#rawBlissObj, rawIndex);\r\n    this.#rebuild();\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Replaces the non-space group at the given semantic index.\r\n   * @param {number} index - Semantic index (supports negative)\r\n   * @param {string} [code] - DSL code string; empty, whitespace-only, or omitted swaps in an empty group\r\n   * @param {Object | { defaults?: Object, overrides?: Object }} [opts]\r\n   * @returns {this}\r\n   */\r\n  replaceGroup(index, code, opts) {\r\n    assertCodeArg('replaceGroup', code);\r\n    assertOptsArg('replaceGroup', opts);\r\n    const indices = this.#getNonSpaceGroupIndices();\r\n    if (index < 0) index = indices.length + index;\r\n    if (!Number.isInteger(index) || index < 0 || index >= indices.length) return this;\r\n    const newGroup = this.#parseGroupWithOpts(code, opts);\r\n    const rawIndex = indices[index];\r\n    this.#rawBlissObj.groups[rawIndex] = newGroup;\r\n    this.#rebuild();\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Merges another builder's content into this one. Appends the other\r\n   * builder's word groups (with a space group between) and discards\r\n   * its global options. The other builder is not modified.\r\n   *\r\n   * @param {BlissSVGBuilder} other\r\n   * @returns {this}\r\n   */\r\n  merge(other) {\r\n    if (!other || typeof other.toJSON !== 'function') {\r\n      throw new Error('merge() requires a BlissSVGBuilder instance');\r\n    }\r\n\r\n    const otherRaw = other.toJSON({ deep: true });\r\n    const otherGroups = otherRaw.groups;\r\n    if (!otherGroups || otherGroups.length === 0) return this;\r\n\r\n    // Filter out groups that are only spaces (no real content)\r\n    const hasContent = otherGroups.some(\r\n      g => !BlissSVGBuilder.#isRawSpaceGroup(g)\r\n    );\r\n    if (!hasContent) return this;\r\n\r\n    // Re-ingest toJSON output into internal format (same order as constructor).\r\n    // What arrives is saved composition data, so it meets the admission stage\r\n    // as a composition object does. `other` is whatever answers toJSON(), a\r\n    // builder from another copy of the library included, and a key such a\r\n    // builder kept would otherwise be merged in unjudged and saved.\r\n    const warn = (warning) => this.#mutationWarnings.push(warning);\r\n    for (const group of otherGroups) BlissSVGBuilder.#admitAuthoredBags(group, 'group', warn);\r\n    // A deep toJSON arrives expanded, so what is left to expand here is a part\r\n    // whose code was unknown when `other` was built and has been defined\r\n    // since. A key misplaced in that definition's code string is reported like\r\n    // any other this merge causes.\r\n    BlissSVGBuilder.#normalizeAuthoredPartCodes(otherGroups);\r\n    BlissParser.expandParts({ groups: otherGroups }, warn);\r\n    BlissSVGBuilder.#normalizeGlyphCodes(otherGroups);\r\n    // Parity with the constructor's object-ingest: a partless glyph node\r\n    // normalizes to the first-class empty glyph. A no-op today (a builder's\r\n    // toJSON never emits a bare partless node, it emits `{ parts: [] }`), so\r\n    // this only guards a future toJSON shape or re-ingest path from re-opening\r\n    // the phantom-advance defect the constructor pass already closes.\r\n    BlissSVGBuilder.#normalizePartlessGlyphs(otherGroups);\r\n    BlissSVGBuilder.#flagWordParts({ groups: otherGroups });\r\n\r\n    const groups = this.#rawBlissObj.groups;\r\n\r\n    // Insert space before appended content if this builder has content\r\n    const hasExisting = groups.some(\r\n      g => !BlissSVGBuilder.#isRawSpaceGroup(g)\r\n    );\r\n    if (hasExisting) {\r\n      groups.push(BlissSVGBuilder.#makeSpaceGroup());\r\n    }\r\n\r\n    groups.push(...otherGroups);\r\n    this.#rebuild();\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Splits this builder into two at the given non-space group boundary.\r\n   * This builder keeps groups 0 through groupIndex-1. A new builder is\r\n   * returned with groups from groupIndex onward. Both builders share the\r\n   * same global options. Space groups at the split boundary are consumed.\r\n   *\r\n   * @param {number} groupIndex - Non-space group index (1 to groupCount-1)\r\n   * @returns {BlissSVGBuilder} New builder with the right-half groups\r\n   */\r\n  splitAt(groupIndex) {\r\n    const indices = this.#getNonSpaceGroupIndices();\r\n    if (indices.length < 2) {\r\n      throw new Error('splitAt() requires at least 2 groups');\r\n    }\r\n    if (!Number.isInteger(groupIndex) || groupIndex <= 0 || groupIndex >= indices.length) {\r\n      throw new Error(\r\n        `splitAt(${groupIndex}) is out of range: must be between 1 and ${indices.length - 1} (inclusive) for a builder with ${indices.length} groups`\r\n      );\r\n    }\r\n\r\n    // Find the raw index of the split point\r\n    const rawSplitIndex = indices[groupIndex];\r\n\r\n    // Extract right-half groups (from rawSplitIndex onward)\r\n    const rightGroups = this.#rawBlissObj.groups.splice(rawSplitIndex);\r\n\r\n    // Clean up: remove trailing space groups from the left half\r\n    while (\r\n      this.#rawBlissObj.groups.length > 0 &&\r\n      BlissSVGBuilder.#isRawSpaceGroup(\r\n        this.#rawBlissObj.groups[this.#rawBlissObj.groups.length - 1]\r\n      )\r\n    ) {\r\n      this.#rawBlissObj.groups.pop();\r\n    }\r\n\r\n    // Clean up: remove leading space groups from the right half\r\n    while (\r\n      rightGroups.length > 0 &&\r\n      BlissSVGBuilder.#isRawSpaceGroup(rightGroups[0])\r\n    ) {\r\n      rightGroups.shift();\r\n    }\r\n\r\n    // Rebuild the left half (this builder)\r\n    this.#rebuild();\r\n\r\n    // Build the right half as a new builder with the same global options. The\r\n    // composition's position is one of them, and it is held on the root's own\r\n    // `x`/`y` field (where every rebuild puts a `[x=5]||`), not in the bag, so\r\n    // it is copied beside the bag.\r\n    const rightObj = {\r\n      groups: rightGroups,\r\n    };\r\n    if (this.#rawBlissObj.options) {\r\n      rightObj.options = { ...this.#rawBlissObj.options };\r\n    }\r\n    for (const axis of ['x', 'y']) {\r\n      if (this.#rawBlissObj[axis] !== undefined) rightObj[axis] = this.#rawBlissObj[axis];\r\n    }\r\n\r\n    return new BlissSVGBuilder(rightObj);\r\n  }\r\n\r\n  /**\r\n   * Parses a code string into exactly one group and applies option layers.\r\n   * An omitted, empty, or whitespace-only code yields an empty group.\r\n   *\r\n   * An accepted arg's parse-time warnings (a misplaced option, head marker, or\r\n   * word indicator) forward to the persistent mutation channel: they live on\r\n   * no node, so unlike a kept UNKNOWN_CODE they never re-derive at rebuild and\r\n   * would otherwise vanish. Forwarded last (after the opts resolve), so a\r\n   * rejected code or bad opts leaks nothing, matching the handle family's\r\n   * #forwardParseWarnings accept-only rule.\r\n   * @param {string} [code]\r\n   * @param {Object | { defaults?: Object, overrides?: Object }} [opts]\r\n   * @returns {object} parsed group\r\n   */\r\n  #parseGroupWithOpts(code, opts) {\r\n    let newGroup;\r\n    let parseWarnings;\r\n    if (code === undefined || code.trim() === '') {\r\n      // \"Add a group with nothing in it\" is meaningful: '' is the DSL\r\n      // counterpart of the already-valid {glyphs: []} object state.\r\n      newGroup = { glyphs: [] };\r\n    } else {\r\n      const parsed = BlissParser.parse(code);\r\n      const groupCount = parsed.groups?.length ?? 0;\r\n      if (groupCount !== 1) {\r\n        throw new Error(`Expected a single group, but code \"${code}\" produced ${groupCount} groups`);\r\n      }\r\n      // Document-level options have no home on a single group: the same\r\n      // string given to the constructor would style the whole document, so\r\n      // stripping them here would be silent loss. An empty \"||\" prefix sets\r\n      // no options and stays plain content.\r\n      if (Object.keys(parsed.options ?? {}).length > 0) {\r\n        throw new Error(`Code \"${code}\" carries document-level options (\"[opts]||\"). Set document options on the builder input, or style the group itself (\"[opts]|\" in the code or the opts parameter)`);\r\n      }\r\n      newGroup = parsed.groups[0];\r\n      parseWarnings = parsed._parseWarnings;\r\n    }\r\n    BlissSVGBuilder.#layerOptions(\r\n      newGroup,\r\n      opts,\r\n      { level: 'group', notation: 'setter' },\r\n      (warning) => this.#mutationWarnings.push(warning),\r\n    );\r\n    if (parseWarnings?.length) this.#mutationWarnings.push(...parseWarnings);\r\n    return newGroup;\r\n  }\r\n\r\n  // --- Raw Element CRUD (no automatic space management) ---\r\n\r\n  /**\r\n   * Appends a raw group with no automatic space management.\r\n   * @param {string} [code] - DSL code string; empty, whitespace-only, or omitted appends an empty group\r\n   * @param {Object | { defaults?: Object, overrides?: Object }} [opts]\r\n   * @returns {this}\r\n   */\r\n  addElement(code, opts) {\r\n    assertCodeArg('addElement', code);\r\n    assertOptsArg('addElement', opts);\r\n    const newGroup = this.#parseGroupWithOpts(code, opts);\r\n    this.#rawBlissObj.groups.push(newGroup);\r\n    this.#rebuild();\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Inserts a raw group at the given index with no automatic space management.\r\n   * @param {number} index - Raw index (supports negative: -1 = before last)\r\n   * @param {string} [code] - DSL code string; empty, whitespace-only, or omitted inserts an empty group\r\n   * @param {Object | { defaults?: Object, overrides?: Object }} [opts]\r\n   * @returns {this}\r\n   */\r\n  insertElement(index, code, opts) {\r\n    assertCodeArg('insertElement', code);\r\n    assertOptsArg('insertElement', opts);\r\n    if (!Number.isInteger(index)) return this;\r\n    const newGroup = this.#parseGroupWithOpts(code, opts);\r\n    const groups = this.#rawBlissObj.groups;\r\n    if (index < 0) index = groups.length + index;\r\n    if (index < 0) index = 0;\r\n    if (index >= groups.length) {\r\n      groups.push(newGroup);\r\n    } else {\r\n      groups.splice(index, 0, newGroup);\r\n    }\r\n    this.#rebuild();\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Removes the raw group at the given index (plain splice, no space cleanup).\r\n   * @param {number} index - Raw index (supports negative: -1 = last)\r\n   * @returns {this}\r\n   */\r\n  removeElement(index) {\r\n    const groups = this.#rawBlissObj.groups;\r\n    if (index < 0) index = groups.length + index;\r\n    if (!Number.isInteger(index) || index < 0 || index >= groups.length) return this;\r\n    groups.splice(index, 1);\r\n    this.#rebuild();\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Replaces the raw group at the given index with new content.\r\n   * @param {number} index - Raw index (supports negative: -1 = last)\r\n   * @param {string} [code] - DSL code string; empty, whitespace-only, or omitted swaps in an empty group\r\n   * @param {Object | { defaults?: Object, overrides?: Object }} [opts]\r\n   * @returns {this}\r\n   */\r\n  replaceElement(index, code, opts) {\r\n    assertCodeArg('replaceElement', code);\r\n    assertOptsArg('replaceElement', opts);\r\n    const groups = this.#rawBlissObj.groups;\r\n    if (index < 0) index = groups.length + index;\r\n    if (!Number.isInteger(index) || index < 0 || index >= groups.length) return this;\r\n    const newGroup = this.#parseGroupWithOpts(code, opts);\r\n    groups[index] = newGroup;\r\n    this.#rebuild();\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Removes all content from the builder.\r\n   * @returns {this}\r\n   */\r\n  clear() {\r\n    this.#rawBlissObj.groups = [];\r\n    this.#rebuild();\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Sets or merges the global options, the ones `toString()` writes in the\r\n   * `[...]||` bracket. Accepts flat options (treated as overrides) or\r\n   * `{ defaults, overrides }`, and judges each key as the constructor's options\r\n   * argument does, so a call stores what passing the same keys to the\r\n   * constructor would have stored.\r\n   *\r\n   * @param {Object} opts - Option keys and values, or `{ defaults, overrides }`\r\n   * @returns {this}\r\n   */\r\n  setOptions(opts) {\r\n    assertOptsArg('setOptions', opts);\r\n    BlissSVGBuilder.#layerOptions(\r\n      this.#rawBlissObj,\r\n      opts,\r\n      { level: 'global', notation: 'setter' },\r\n      (warning) => this.#mutationWarnings.push(warning),\r\n    );\r\n    this.#rebuild();\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Removes global option keys. A name the library or a standard owns is\r\n   * removed under either spelling; a name of your own is removed under exactly\r\n   * the spelling you set it with. `x` and `y` take the composition's position\r\n   * off, however it was written.\r\n   *\r\n   * @param {...string} keys - Option keys to remove\r\n   * @returns {this}\r\n   */\r\n  removeOptions(...keys) {\r\n    assertKeyArgs('removeOptions', keys);\r\n    // The removal an element's `removeOptions` makes, on the root, whose\r\n    // position a bracket's `[x=5]||` and every rebuild hold on its own field.\r\n    // The bag stays when it empties, unlike an element's: a composition always\r\n    // exports one.\r\n    for (const key of keys) removeElementOption(this.#rawBlissObj, key);\r\n    this.#rebuild();\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Sets transient options on the whole SVG: values that reach the rendered\r\n   * output and never reach `toString()` or `toJSON()`.\r\n   *\r\n   * Repeated calls MERGE, like `setOptions`. Use it for anything that\r\n   * describes this view rather than the composition: a display width, a\r\n   * highlight, an annotation the app re-applies on each render.\r\n   *\r\n   * `setOptions` is the saved counterpart: it changes the global options the\r\n   * composition keeps. A transient value wins over a saved one of the same\r\n   * key, and neither call changes what the other set.\r\n   *\r\n   * @param {Object} opts - Option keys and values\r\n   * @returns {this}\r\n   */\r\n  setTransientOptions(opts) {\r\n    assertOptsArg('setTransientOptions', opts);\r\n    // #toRaw kebab-cases the keys and stringifies the values, matching how an\r\n    // option written in a bracket arrives, and dropping object values that\r\n    // structuredClone could not carry across a rebuild.\r\n    const raw = BlissSVGBuilder.#toRaw(\r\n      opts ?? {},\r\n      (warning) => this.#mutationWarnings.push(warning),\r\n      { level: 'global', notation: 'setter', transient: true },\r\n    );\r\n    this.#rawBlissObj.transientOptions = { ...(this.#rawBlissObj.transientOptions ?? {}), ...raw };\r\n    this.#rebuild();\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Removes transient option keys from the whole SVG. A name the library or a\r\n   * standard owns is removed under either spelling; a name of your own is\r\n   * removed under exactly the spelling you set it with.\r\n   *\r\n   * @param {...string} keys - Option keys to remove\r\n   * @returns {this}\r\n   */\r\n  removeTransientOptions(...keys) {\r\n    // Ahead of the empty-bag return, so what the call is refused for does not\r\n    // depend on whether there happened to be anything to remove.\r\n    assertKeyArgs('removeTransientOptions', keys);\r\n    const bag = this.#rawBlissObj.transientOptions;\r\n    if (!bag) return this;\r\n    for (const key of keys) {\r\n      deleteOptionByName(bag, key);\r\n    }\r\n    // Housekeeping, and deliberately unpinned for the reason the element-level\r\n    // twin records: an empty transient bag is indistinguishable from an absent\r\n    // one on every public surface, because transient options never serialize.\r\n    if (Object.keys(bag).length === 0) delete this.#rawBlissObj.transientOptions;\r\n    this.#rebuild();\r\n    return this;\r\n  }\r\n\r\n  /**\r\n   * Removes every option at every scope, the global bracket included: exactly\r\n   * what `toString()` writes inside `[...]` brackets, so the builder afterwards\r\n   * saves what `toString({ omitOptions: true })` saved before. A character,\r\n   * word or composition position goes with the rest; a part's coordinates and\r\n   * a character's kerning stay, since the string writes those outside a\r\n   * bracket. `key`s and transient options are untouched, and a part named by a\r\n   * definition keeps the options its definition gives it, inside the part\r\n   * included.\r\n   *\r\n   * @returns {this}\r\n   */\r\n  clearAllOptions() {\r\n    // The function the flagged view runs on its working copy, run here on the\r\n    // authoring structure, so the two cannot disagree about what an option is.\r\n    // The rebuild then applies the rule the view applies after it: a head\r\n    // designation on a character left with nothing to write goes with it.\r\n    BlissSVGBuilder.#clearOptionsFrom(this.#rawBlissObj, 0);\r\n    this.#rebuild();\r\n    return this;\r\n  }\r\n\r\n  #groupsCache;\r\n\r\n  /**\r\n   * Returns non-space group snapshots.\r\n   * Cached and frozen.\r\n   *\r\n   * @returns {ElementSnapshot[]}\r\n   */\r\n  get groups() {\r\n    if (!this.#groupsCache) {\r\n      const groups = this.elements.children.filter(g =>\r\n        g.isGroup && !g.isSpaceGroup\r\n      );\r\n      this.#groupsCache = Object.freeze(groups);\r\n    }\r\n    return this.#groupsCache;\r\n  }\r\n\r\n  /**\r\n   * Returns group and glyph counts.\r\n   *\r\n   * @returns {{ groupCount: number, glyphCount: number }}\r\n   */\r\n  get stats() {\r\n    const indices = this.#getNonSpaceGroupIndices();\r\n    let glyphCount = 0;\r\n    for (const gi of indices) {\r\n      glyphCount += (this.#rawBlissObj.groups[gi].glyphs || []).length;\r\n    }\r\n    return { groupCount: indices.length, glyphCount };\r\n  }\r\n\r\n  // --- Manipulation helpers ---\r\n\r\n  // --- Word-as-part detection ---\r\n  // When a word definition (codeString with /) appears at the part level,\r\n  // the parser keeps it as a single codeName. This post-parse step marks\r\n  // those references with an error so BlissElement can emit a warning.\r\n\r\n  /**\r\n   * Reverse toJSON() normalization for object input:\r\n   *  - Glyph level: codeName → glyphCode rename, after a custom glyph that\r\n   *    deep output names by another code gets its own name back.\r\n   *  - Glyphs: surface text-fallback form 'X<chars>' → internal routing key\r\n   *    'XTXT_<chars>' so BlissElement / parser routing works (parts are read\r\n   *    before the expansion, see #normalizeAuthoredPartCodes).\r\n   * @param {Object[]} groups - Array of raw group objects\r\n   */\r\n  static #normalizeGlyphCodes(groups) {\r\n    // A name reads the same way throughout one ingest, so it is parsed once.\r\n    const readings = new Map();\r\n    for (const group of groups) {\r\n      if (!group.glyphs) continue;\r\n      for (const glyph of group.glyphs) {\r\n        const recorded = BlissSVGBuilder.#recordedGlyphCode(glyph);\r\n        if (recorded) glyph.codeName = recorded;\r\n        if (glyph.codeName && !glyph.glyphCode) {\r\n          glyph.glyphCode = BlissSVGBuilder.#textFallbackInternalForm(glyph.codeName);\r\n          delete glyph.codeName;\r\n        }\r\n        // Re-derive glyph-classification metadata that toJSON() omits (it is\r\n        // fully derived from the code, not authored). The element reads these\r\n        // directly and they round-trip external-glyph navigation/spacing, so\r\n        // restore them from the resolved code the same way the parser does.\r\n        BlissSVGBuilder.#reapplyGlyphMetadata(glyph);\r\n        BlissSVGBuilder.#buildNamedDefinition(glyph, readings);\r\n      }\r\n    }\r\n  }\r\n\r\n  // The part codes a composition object was given, surface text-fallback form\r\n  // 'X<chars>' → internal routing key 'XTXT_<chars>'. Read before the\r\n  // expansion, which reads a definition's code string into parts as the DSL\r\n  // does, already in the internal form: read again, a run of outlined letters\r\n  // the code string holds (a word, which fails as a part) became a text glyph\r\n  // that draws.\r\n  static #normalizeAuthoredPartCodes(groups) {\r\n    if (!groups) return;\r\n    for (const group of groups) {\r\n      if (!group.glyphs) continue;\r\n      for (const glyph of group.glyphs) {\r\n        if (glyph.parts) BlissSVGBuilder.#normalizePartCodes(glyph.parts);\r\n      }\r\n    }\r\n  }\r\n\r\n  // The custom glyph a deep JSON names by another code, read back from the name\r\n  // recorded beside it. Deep output writes such a glyph by the code it draws, or\r\n  // by none where no one code draws it, and a word's head is chosen by that\r\n  // code, so read back under it the glyph could stop heading the word it headed\r\n  // (merge() re-ingests deep output). The record is a name kept through edits,\r\n  // so it is believed only while it still describes the character: published\r\n  // whole (an edit that recomposes a character clears that with its code) and\r\n  // holding, first, the one part the named glyph is.\r\n  static #recordedGlyphCode(glyph) {\r\n    if (glyph.isBlissGlyph !== true) return undefined;\r\n    const code = lookupEffectiveDefinition(glyph._aliasCodeName, blissElementDefinitions)?.glyphCode;\r\n    return BlissSVGBuilder.#isPartNamed(glyph.parts?.[0], code) ? code : undefined;\r\n  }\r\n\r\n  // Whether `part` is the one part a glyph named `code` is: named by it, or\r\n  // holding the code it resolved to with the name recorded beside it.\r\n  static #isPartNamed(part, code) {\r\n    return part?.codeName === code || part?._aliasCodeName === code;\r\n  }\r\n\r\n  // A character an object names by a custom definition, built as the DSL\r\n  // builds the name written alone, so the two routes hold the same tree. A\r\n  // typed glyph or shape is one part named after it, holding what it draws and\r\n  // carrying its options: where the object's parts begin with exactly what the\r\n  // definition draws, those parts are that one part, and the parts after them\r\n  // stay, appended. A shape has no code of its own, so its character keeps the\r\n  // name only as the record the DSL keeps. A bare alias is shorthand for the\r\n  // parts it draws, so where the object's parts begin with those, each gets the\r\n  // alias's options under its own. Parts that are not what the definition\r\n  // draws are left as written: the name brings nothing to parts it does not\r\n  // describe, and a `preserve` save spells them out. An object already holding\r\n  // the named part needs nothing, since the expansion of its parts gave that\r\n  // part what the definition brings.\r\n  //\r\n  // It is the reading a `preserve` save judges a kept name by, so a save keeps\r\n  // a name only while its reload would bring back nothing the element lacks.\r\n  // Only a defined name is read: a code the registry does not hold is not a\r\n  // name, and reading it as DSL would turn a codeName holding bracket text into\r\n  // options. Object ingest only; a rebuild doing it again would bring back what\r\n  // an edit removed.\r\n  static #buildNamedDefinition(glyph, readings) {\r\n    const code = glyph.glyphCode;\r\n    if (!code || builtInCodes.has(code) || !Object.hasOwn(blissElementDefinitions, code)) return;\r\n    const definition = blissElementDefinitions[code];\r\n    const reading = typeof definition.codeString === 'string'\r\n      ? BlissSVGBuilder.#readingOf(code, 'glyph', readings) : null;\r\n    if (!reading) return;\r\n    const parts = glyph.parts ?? [];\r\n    if (BlissSVGBuilder.#isBareAliasDefinition(definition)) {\r\n      const drawn = reading.parts.every((part, i) => parts[i] !== undefined\r\n        && BlissSVGBuilder.#drawnCode(parts[i].codeName) === BlissSVGBuilder.#drawnCode(part.codeName)\r\n        && parts[i].x === part.x && parts[i].y === part.y);\r\n      if (!drawn) return;\r\n      reading.parts.forEach((part, i) => {\r\n        if (part.options) parts[i].options = { ...part.options, ...parts[i].options };\r\n      });\r\n      return;\r\n    }\r\n    // The part the definition is, and what it draws: the parts it holds, or\r\n    // the one code a rename resolved it to. The parts it takes the place of\r\n    // become that part, so it answers to the key the first of them was given.\r\n    // Each key goes where it was written, beside the part or in its options,\r\n    // so the part is named exactly as that first part would have been: by the\r\n    // rule every element is named by, which reads a key in the options as its\r\n    // text, over the one beside it, and refuses it written bare.\r\n    const [own] = reading.parts;\r\n    const contents = own.parts ?? [{ codeName: own.codeName }];\r\n    const named = BlissSVGBuilder.#isPartNamed(parts[0], code);\r\n    if (!named && !BlissSVGBuilder.#startsWithParts(parts, contents)) return;\r\n    if (!named) {\r\n      const part = structuredClone(own);\r\n      const keyed = parts.slice(0, contents.length).find((p) => (p.key ?? p.options?.key) !== undefined);\r\n      if (keyed?.key !== undefined) part.key = keyed.key;\r\n      if (keyed?.options?.key !== undefined) part.options = { ...part.options, key: keyed.options.key };\r\n      glyph.parts = [part, ...parts.slice(contents.length)];\r\n    }\r\n    if (definition.isShape) {\r\n      delete glyph.glyphCode;\r\n      glyph._aliasCodeName = code;\r\n    }\r\n  }\r\n\r\n  static #normalizePartCodes(parts) {\r\n    for (const part of parts) {\r\n      if (part.codeName) {\r\n        part.codeName = BlissSVGBuilder.#textFallbackInternalForm(part.codeName);\r\n      }\r\n      if (part.parts) BlissSVGBuilder.#normalizePartCodes(part.parts);\r\n    }\r\n  }\r\n\r\n  /**\r\n   * Normalize a degenerate partless glyph node from object input to the\r\n   * first-class empty glyph. A glyph with no `parts` array and no code identity\r\n   * has no renderable content, but the element layer treats a partless glyph as\r\n   * a glyph-that-IS-one-part shorthand and wraps it, so `{}` became a failed\r\n   * part that warned UNKNOWN_CODE and reserved a phantom advance while\r\n   * `toString()` omitted it (svg round-trip false). Setting `parts: []` makes it\r\n   * render invisibly and match its omitting serialization, exactly like a\r\n   * `{ parts: [] }` node. Options and key survive (an `{ options: {...} }` node\r\n   * becomes an options-carrying empty glyph). Object input only; the DSL never\r\n   * produces a partless glyph node. Must run AFTER `#normalizeGlyphCodes`, which\r\n   * renames the code identity to `glyphCode`, so a `{ codeName: 'B291' }`\r\n   * shorthand keeps its identity and still renders (its `glyphCode` is set here).\r\n   */\r\n  static #normalizePartlessGlyphs(groups) {\r\n    for (const group of groups) {\r\n      if (!group.glyphs) continue;\r\n      for (const glyph of group.glyphs) {\r\n        if (!glyph.parts && !glyph.glyphCode) {\r\n          glyph.parts = [];\r\n        }\r\n      }\r\n    }\r\n  }\r\n\r\n  // 'X<chars>' (public text-fallback form) → 'XTXT_<chars>' (internal\r\n  // routing key). Built-in / registered codes (Xa, XL8, B431, …) and\r\n  // already-internal forms pass through unchanged.\r\n  static #textFallbackInternalForm(code) {\r\n    if (code.startsWith('XTXT_')) return code;\r\n    if (code.length < 2 || code[0] !== 'X') return code;\r\n    if (blissElementDefinitions[code]) return code;\r\n    // Route only what the shared X grammar recognizes. Converting anything that\r\n    // merely starts with X laundered a REJECTED code into accepted content and\r\n    // dropped its warning: `Xhello.world` warns UNKNOWN_CODE and renders nothing\r\n    // when parsed, but came back through JSON as rendered text with no warning\r\n    // at all. A code the grammar does not recognize now fails here exactly as it\r\n    // fails on the DSL path.\r\n    //\r\n    // The 'letters' answer keeps its current text routing rather than expanding\r\n    // to a letter sequence: whether authored object data should accept DSL\r\n    // shorthand at all is an open question of its own (object-input\r\n    // validation), and settling it here would settle it by accident.\r\n    return classifyXCode(code) === null ? code : 'XTXT_' + code.slice(1);\r\n  }\r\n\r\n  // Re-derive glyph-classification metadata (isBlissGlyph / isExternalGlyph /\r\n  // char / kerningRules / shrinksPrecedingWordSpace) from a glyph's resolved\r\n  // glyphCode. toJSON() omits these (they are pure derived data, not authored\r\n  // composition), so object input must restore them like the parser does on\r\n  // string input: a registered code takes its identity from its definition\r\n  // and its layout data as the parser reads them (layoutDefinitionOf), so a\r\n  // name drawing one character is spaced as that character; a text-fallback\r\n  // 'XTXT_<chars>' derives them (a single char is that rendered glyph,\r\n  // multi-char is '' since it is text, not one glyph). A composite (no\r\n  // glyphCode) carries no glyph-level identity.\r\n  static #reapplyGlyphMetadata(glyph) {\r\n    const code = glyph.glyphCode;\r\n    if (!code) return;\r\n    const def = Object.hasOwn(blissElementDefinitions, code) ? blissElementDefinitions[code] : undefined;\r\n    if (def) {\r\n      if (def.isBlissGlyph) glyph.isBlissGlyph = true;\r\n      const layout = layoutDefinitionOf(code, blissElementDefinitions);\r\n      if (layout.isExternalGlyph) glyph.isExternalGlyph = true;\r\n      if (typeof layout.char === 'string') glyph.char = layout.char;\r\n      if (layout.kerningRules) glyph.kerningRules = layout.kerningRules;\r\n      if (layout.shrinksPrecedingWordSpace === true) glyph.shrinksPrecedingWordSpace = true;\r\n    } else if (code.startsWith('XTXT_')) {\r\n      const chars = code.slice(5);\r\n      glyph.isExternalGlyph = true;\r\n      glyph.char = chars.length === 1 ? chars : '';\r\n      glyph.kerningRules = {};\r\n    }\r\n  }\r\n\r\n  /**\r\n   * Walk a raw parsed structure and flag any word-as-part references.\r\n   * @param {Object} rawObj - Raw parsed blissObj with groups/glyphs/parts\r\n   */\r\n  static #flagWordParts(rawObj) {\r\n    if (!rawObj.groups) return;\r\n    for (const group of rawObj.groups) {\r\n      if (!group.glyphs) continue;\r\n      for (const glyph of group.glyphs) {\r\n        if (!glyph.parts) continue;\r\n        glyph.parts = BlissSVGBuilder.#flagWordPartsInArray(glyph.parts);\r\n      }\r\n    }\r\n  }\r\n\r\n  /**\r\n   * Flag word-definition parts with an error. Recurses into nested parts.\r\n   */\r\n  static #flagWordPartsInArray(parts) {\r\n    const result = [];\r\n    for (const part of parts) {\r\n      const def = blissElementDefinitions[part.codeName];\r\n      if (def?.codeString?.includes('/')) {\r\n        part.error = `\"${part.codeName}\" is a word and cannot be composed with ;`;\r\n        part.errorCode = 'WORD_AS_PART';\r\n        result.push(part);\r\n      } else {\r\n        if (part.parts) {\r\n          part.parts = BlissSVGBuilder.#flagWordPartsInArray(part.parts);\r\n        }\r\n        result.push(part);\r\n      }\r\n    }\r\n    return result;\r\n  }\r\n\r\n  // Content-vs-whitespace classification: only TSP/QSP are spaces (the canonical\r\n  // set, shared with the element snapshot and toString via isSpaceGlyph). ZSA is\r\n  // an inkless positionable shape that counts, navigates, and serializes as\r\n  // content; SP is a parser-internal placeholder that never reaches a real tree.\r\n  // Drives group counting, navigation, word-splitting, and adjacent-space merges.\r\n  /** Returns true if a raw glyph node is a space glyph (one space-code part) */\r\n  static #isSpaceGlyphNode(glyph) {\r\n    return glyph.parts?.length === 1 && isSpaceGlyph(glyph.parts[0].codeName);\r\n  }\r\n\r\n  /** Returns true if a raw group is a space group */\r\n  static #isRawSpaceGroup(group) {\r\n    if (!group.glyphs || group.glyphs.length === 0) return false;\r\n    return group.glyphs.every(g => BlissSVGBuilder.#isSpaceGlyphNode(g));\r\n  }\r\n\r\n  // Head / word-indicator eligibility is BROADER than space classification: a\r\n  // ZSA counts as content but, like a space, can never be a word's head or carry\r\n  // a ;; overlay (the frozen parser's isSpacePart = {TSP,QSP,ZSA} rejects both).\r\n  // The rebuild normalizer strips a head/overlay a mutation or object input left\r\n  // on one so the tree stays reparse-valid.\r\n  static #NON_HEAD_MARKER_CODES = new Set(['TSP', 'QSP', 'ZSA']);\r\n\r\n  /** Returns true if a raw glyph node cannot be a word head (space or anchor). */\r\n  static #isNonHeadMarkerNode(glyph) {\r\n    return glyph.parts?.length === 1 && BlissSVGBuilder.#NON_HEAD_MARKER_CODES.has(glyph.parts[0].codeName);\r\n  }\r\n\r\n  /** Returns true if every glyph in a group is a non-head marker. */\r\n  static #isNonHeadMarkerGroup(group) {\r\n    return group.glyphs?.length > 0 && group.glyphs.every(g => BlissSVGBuilder.#isNonHeadMarkerNode(g));\r\n  }\r\n\r\n  /**\r\n   * Removes every option from a space's options object and returns the `k=v`\r\n   * entries that were dropped, as the author wrote them. Only the runtime key\r\n   * is spared: it is identity, re-assigned each rebuild, not a decoration.\r\n   * Kerning goes too, since it is the gap before a character; a value held\r\n   * under the numeric key the layout reads is quoted in the spelling a bracket\r\n   * carries. Mutates `options` in place; taking an emptied bag away is the\r\n   * caller's, since only the caller knows whether anything else is still to\r\n   * come out of it.\r\n   */\r\n  static #dropSpaceOptionEntries(options) {\r\n    if (!options) return [];\r\n    const keys = Object.keys(options).filter(k => k !== 'key');\r\n    const entries = keys.map((k) => {\r\n      const name = Object.hasOwn(KERNING_OPTION_KEYS, k) ? camelToKebab(k) : k;\r\n      return options[k] === true ? name : `${name}=${options[k]}`;\r\n    });\r\n    for (const k of keys) delete options[k];\r\n    return entries;\r\n  }\r\n\r\n  /**\r\n   * Everything a space at word or character scope was decorated with, in one\r\n   * `[k=v;…]` text, taken off both spellings a decoration can arrive in: the\r\n   * options bag and the promoted position field. Returns null when there was\r\n   * nothing to drop. Mutates `node` in place.\r\n   *\r\n   * One written decoration is one report, so the two channels share a\r\n   * representation instead of each raising its own: `[x=5;color=red]TSP` is one\r\n   * bracket the author typed, and splitting it in half because the position\r\n   * travels on a different channel would describe our storage rather than their\r\n   * input. The position leads, the slot the serializer gives it, so the text\r\n   * quoted back is the text the serializer would have written.\r\n   *\r\n   * A word and a character have no `:x,y` suffix, which is why this reports the\r\n   * option spelling while the part arm reports a coordinate: each level is\r\n   * quoted back in a spelling that level actually has.\r\n   */\r\n  static #dropSpaceDecorations(node) {\r\n    const entries = [];\r\n    for (const axis of ['x', 'y']) {\r\n      if (node[axis] === undefined) continue;\r\n      entries.push(`${axis}=${node[axis]}`);\r\n      delete node[axis];\r\n    }\r\n    entries.push(...BlissSVGBuilder.#dropSpaceOptionEntries(node.options));\r\n    if (node.options && Object.keys(node.options).length === 0) delete node.options;\r\n    return entries.length ? `[${entries.join(';')}]` : null;\r\n  }\r\n\r\n  /**\r\n   * Spells a part position the way the model holds it: one slot per axis the\r\n   * author wrote, and no suffix at all when neither was. `:x,y`, `:x` (the\r\n   * shorter spelling of `:x,`), `:,y`, or ''.\r\n   *\r\n   * Every place in this class that names a position in text shares this,\r\n   * because they are all read back as DSL: the serializer's output is\r\n   * reparsed, the canonical token is compared against a codeString a human\r\n   * wrote, and a warning's `source` is the author's own text quoted back.\r\n   * Filling an unwritten axis with a `0` states a position nobody asked for,\r\n   * which on an indicator is a different picture and in a warning is a\r\n   * different input than the one that failed.\r\n   *\r\n   * `BlissElement.toString()` is a second, older serializer that still spells\r\n   * the padded pair. It is deliberately not counted above: it is internal, on\r\n   * no exported path, so nothing it writes reaches a saved composition.\r\n   */\r\n  static #positionSuffix(x, y) {\r\n    if (x !== undefined && y !== undefined) return `:${x},${y}`;\r\n    if (x !== undefined) return `:${x}`;\r\n    if (y !== undefined) return `:,${y}`;\r\n    return '';\r\n  }\r\n\r\n  // A part as it was written, for the source of a report about it: a part\r\n  // read through a name is written as that name, with the position written\r\n  // where it was used rather than the one its links add (#positionAtUse).\r\n  // Where an edit took off an axis the name places, no use of the name draws\r\n  // the part, so it is written as the code drawn, where it is drawn, as the\r\n  // save writes it.\r\n  static #writtenTextOf(part) {\r\n    const used = BlissSVGBuilder.#positionAtUse(part);\r\n    if (used === null) return `${part.codeName}${BlissSVGBuilder.#positionSuffix(part.x, part.y)}`;\r\n    return `${part._aliasCodeName ?? part.codeName}${BlissSVGBuilder.#positionSuffix(used.x, used.y)}`;\r\n  }\r\n\r\n  /**\r\n   * Creates the space an API edit puts between words. It is marked to take\r\n   * its position's default, the space a `//` there reads as, which the rebuild\r\n   * settles against the word after it (#normalizeSpaceInvariant), so it saves\r\n   * as `//`.\r\n   */\r\n  static #makeSpaceGroup() {\r\n    return { glyphs: [{ parts: [{ codeName: 'TSP', _fromSP: true }] }] };\r\n  }\r\n\r\n  /** Internal: removes a glyph group and its adjacent space from groups array */\r\n  #removeGlyphGroup(obj, groupIndex) {\r\n    const groups = obj.groups;\r\n    // Determine which space group to also remove\r\n    const prevIsSpace = groupIndex > 0 && BlissSVGBuilder.#isRawSpaceGroup(groups[groupIndex - 1]);\r\n    const nextIsSpace = groupIndex < groups.length - 1 && BlissSVGBuilder.#isRawSpaceGroup(groups[groupIndex + 1]);\r\n\r\n    if (prevIsSpace) {\r\n      // Remove space before + the word\r\n      groups.splice(groupIndex - 1, 2);\r\n    } else if (nextIsSpace) {\r\n      // Remove the word + space after\r\n      groups.splice(groupIndex, 2);\r\n    } else {\r\n      // No adjacent space, just remove the word\r\n      groups.splice(groupIndex, 1);\r\n    }\r\n    return obj;\r\n  }\r\n\r\n  /**\r\n   * Returns a portable DSL string. Custom codes are decomposed to built-in\r\n   * codes by default. `preserve` keeps a custom name that stands for a\r\n   * single glyph, indicator, or shape: every typed definition (whatever its\r\n   * anatomy) and every bare alias of one existing code, with or without a\r\n   * position; multi-code shorthand always serializes expanded.\r\n   *\r\n   * @param {Object} [options]\r\n   * @param {boolean} [options.preserve=false] - Keep custom glyph/shape code names\r\n   * @param {boolean} [options.flattenIndicators=false] - Collapse word-level (`;;`) indicators onto the head as character-level `;`\r\n   * @param {boolean} [options.omitOptions=false] - Leave out every option bracket, at every scope; part coordinates and kerning stay\r\n   * @returns {string}\r\n   */\r\n  toString(options = {}) {\r\n    // toString always needs nested parts so serializeParts can decompose\r\n    // custom codes. The string output itself stays flat (;-delimited).\r\n    const obj = this.#composition({\r\n      preserve: options.preserve,\r\n      deep: true,\r\n      flattenIndicators: options.flattenIndicators,\r\n      omitOptions: options.omitOptions,\r\n    }, true);\r\n\r\n    const GLYPH_INTERNAL_KEYS = new Set(['relativeKerning', 'absoluteKerning']);\r\n    // A code reads the same way throughout one save, so it is parsed once.\r\n    const readings = new Map();\r\n\r\n    // Where the save writes a custom part by its name rather than spelling it\r\n    // out. Only `preserve` keeps a name, and only one the reload reads back as\r\n    // the same part. A BASE-slot bare alias with `;`-siblings is spelled out:\r\n    // a bare-alias base drops its appended parts on reparse (strict\r\n    // separation), so writing the name would shed the siblings, while a typed\r\n    // base dumb-appends and keeps its name. A name that no longer carries what\r\n    // it supplies is spelled out too. A name the save restored was judged where\r\n    // it was restored, against the reading its spelling reloads as.\r\n    const keepsName = (part, partIndex, parts) => {\r\n      if (!options.preserve) return false;\r\n      const isBareAliasBase = partIndex === 0 && parts.length > 1\r\n        && BlissSVGBuilder.#isBareAliasDefinition(blissElementDefinitions[part.codeName]);\r\n      return !isBareAliasBase && (part._aliasCodeName === part.codeName\r\n        || BlissSVGBuilder.#keepsNamedOptions(part, part.codeName, 'part', readings));\r\n    };\r\n\r\n    // What a part's code brings by its definition, which the string does not\r\n    // repeat. A character's one part written by the name it records brings\r\n    // what the name gives the part of a character written alone: read back\r\n    // alone, the name brings it to the part directly; behind a part bracket,\r\n    // read in a slot, the same, through every link it renames. Any other part\r\n    // is read in a `;` slot.\r\n    const lookOf = (part, parts) => (parts.length === 1 && part.codeName === part._aliasCodeName\r\n      ? BlissSVGBuilder.#loneLookOf(part.codeName, readings)\r\n      : BlissSVGBuilder.#ownLookOf(part.codeName, readings));\r\n\r\n    // A part drawn as an indicator by its flag alone, its code's definition\r\n    // being none: a typed indicator renaming one plain shape is stored as that\r\n    // shape. The string has no spelling for the flag, so a reload reads the\r\n    // part as plain ink, which the save writes where it was drawn wherever a\r\n    // position can draw it there. The JSON keeps the flag, and its reload lays\r\n    // the part out as an indicator.\r\n    const losesIndicator = (part) => part.isIndicator === true\r\n      && blissElementDefinitions[part.codeName]?.isIndicator !== true;\r\n\r\n    // The `;;` codes of the word being written, where they are written\r\n    // otherwise than stored: spelled out, or moved by placing its head's parts\r\n    // (#writtenParts). Set while the head is serialized.\r\n    let placedWordCodes = null;\r\n\r\n    // Serialize parts with ; delimiter and :x,y positions, each custom part\r\n    // spelled out unless the save keeps its name, and each written part placed\r\n    // where it was drawn. A spelled-out part's option is written before EACH\r\n    // part it spells out into (`[opts]>B291;[opts]>C8`), since `[opts]>` binds\r\n    // to one code: render applied it to the whole `;`-character, and per-part\r\n    // emission computes to the same ink. `overlay` is the word's `;;` overlay\r\n    // where these are its head's parts.\r\n    function serializeParts(parts, overlay = null) {\r\n      const written = BlissSVGBuilder.#writtenParts(parts, keepsName, readings, overlay, !options.preserve, losesIndicator);\r\n      if (written.codes) placedWordCodes = written.codes;\r\n      return written.parts.map((part) => {\r\n        // An invalid part (no codeName, e.g. the `!B81` in `B291;[x=2]>!B81`)\r\n        // must not let a coordinate suffix or `[opts]>` prefix decorate it into\r\n        // a truthy literal-`undefined` string; drop it before decoration. It\r\n        // already warned UNKNOWN_CODE at parse.\r\n        if (!part.codeName) return '';\r\n        // Surface text-fallback routing key 'XTXT_<chars>' as 'X<chars>'.\r\n        let str = part.codeName.startsWith('XTXT_')\r\n          ? 'X' + part.codeName.slice(5)\r\n          : part.codeName;\r\n        // A part's position has two spellings that address the same level, the\r\n        // `[x=N;y=M]>` option and the `:x,y` suffix, so the output settles on\r\n        // one: the coordinate, which a part written without an option already\r\n        // uses. The option bracket below keeps every other key, and needs\r\n        // nothing to hold an axis back, because the promotion that gives the\r\n        // coordinate its value takes the axis out of the bag in the same step.\r\n        // (Canonicalize within a level, preserve across levels: a glyph, a word\r\n        // and the composition have no coordinate spelling of their own, so a\r\n        // position at those levels stays a bracket.)\r\n        str += BlissSVGBuilder.#positionSuffix(part.x, part.y);\r\n        // Prefix part-level options with [opts]> syntax, less the look a code\r\n        // the string can only name draws with by its own name\r\n        const optPrefix = serializeOptions(\r\n          BlissSVGBuilder.#withoutLook(part.options, part.options && lookOf(part, parts)));\r\n        if (optPrefix) str = `${optPrefix}>${str}`;\r\n        return str;\r\n      })\r\n        // Drop empty entries (invalid parts dropped by the codeName guard above,\r\n        // or an inner decomposition that emitted nothing) so no dangling `;`\r\n        // appears and toString round-trips. (Strict Indicator Separation\r\n        // surfaced this; the empty-separator artifact predates it.)\r\n        .filter(Boolean)\r\n        .join(';');\r\n    }\r\n\r\n    // Under preserve, a custom glyph is written by its parts, so its name is\r\n    // kept exactly where the part named by it is kept. A typed definition\r\n    // written alone is one part named after it, written by its name while it\r\n    // carries what the name supplies (`NAME`), with a change made to it beside\r\n    // the name (`[color=red]>NAME`, `NAME:3,4`), and with any part added\r\n    // beside it as that part stands (`NAME;B81`, `NAME;B86:0,0`), flattened\r\n    // indicators included. Each of those reloads to the drawing the builder\r\n    // shows, and a part the glyph lost never comes back with a name. A name\r\n    // whose definition holds no code string is written as it stands.\r\n    function serializeCustomGlyph(glyph, overlay) {\r\n      const def = blissElementDefinitions[glyph.codeName];\r\n      return def?.codeString && glyph.parts ? serializeParts(glyph.parts, overlay) : glyph.codeName;\r\n    }\r\n\r\n    // Serialize a glyph: B-codes emit their code, compositions emit parts.\r\n    // Custom glyphs are decomposed to their codeString unless preserve is set.\r\n    // Returns an array (kerning codes are emitted as separate entries).\r\n    // `overlay` is the word's `;;` overlay where the glyph is its head.\r\n    function serializeGlyph(glyph, overlay = null) {\r\n      const result = [];\r\n\r\n      // Emit kerning as separate RK/AK codes before the glyph\r\n      if (glyph.options?.relativeKerning !== undefined) {\r\n        result.push(`RK:${glyph.options.relativeKerning}`);\r\n      }\r\n      if (glyph.options?.absoluteKerning !== undefined) {\r\n        result.push(`AK:${glyph.options.absoluteKerning}`);\r\n      }\r\n\r\n      // Build the glyph code string\r\n      let code;\r\n      if (glyph.isBlissGlyph && glyph.codeName) {\r\n        // Decompose custom glyphs (non-built-in) to portable output, from the\r\n        // glyph's parts, which have the correct positions. A partless one has\r\n        // nothing to decompose: toJSON names a custom glyph whose definition\r\n        // has a code string by the built-in that code string resolves to, or\r\n        // leaves it unnamed, so no definition text is ever copied from here.\r\n        if (!options.preserve && !builtInCodes.has(glyph.codeName)) {\r\n          if (glyph.parts) code = serializeParts(glyph.parts, overlay);\r\n        } else if (options.preserve && !builtInCodes.has(glyph.codeName)) {\r\n          code = serializeCustomGlyph(glyph, overlay);\r\n        }\r\n        if (!code) {\r\n          // A built-in glyph can re-acquire identity while its parts still hold\r\n          // detail the bare code would drop: a sole part with a relocation\r\n          // offset and/or a part-level option (e.g. clearIndicators on\r\n          // `[color=red]>B291:2,3;B86` restores codeName 'B291' but parts[0]\r\n          // keeps x/y + options), or an applied indicator part beyond the bare\r\n          // identity (a base-only custom glyph whose codeName collapsed to its\r\n          // built-in base after `applyIndicators`). Route any non-empty parts\r\n          // through serializeParts so all of them round-trip. No UNMODIFIED\r\n          // built-in reaches here multi-part (its snapshot part is a single\r\n          // self-reference), so this never over-decomposes a plain composite.\r\n          code = glyph.parts?.length\r\n            ? serializeParts(glyph.parts, overlay)\r\n            : glyph.codeName;\r\n        }\r\n      } else if (glyph.parts) {\r\n        code = serializeParts(glyph.parts, overlay);\r\n      } else {\r\n        code = glyph.codeName || '';\r\n      }\r\n\r\n      // Written-name consult: whatever route\r\n      // computed `code`, a glyph that is a clean instance of a recorded\r\n      // definition emits the written name. The recording rides the glyph\r\n      // (parser stamp, kept in deep output); object input may carry the\r\n      // name as a glyph-level codeName instead. A diverged glyph never\r\n      // matches the anatomy, so the route's own output stands ('MYGL1;B81'\r\n      // stays a typed delta: a `;`-part on a bare-alias base drops on\r\n      // reparse).\r\n      if (options.preserve) {\r\n        const name = glyph._aliasCodeName\r\n          ?? (!glyph.isBlissGlyph && glyph.codeName && !builtInCodes.has(glyph.codeName)\r\n              ? glyph.codeName : null);\r\n        const written = name\r\n          ? BlissSVGBuilder.#preservedWrittenName(name, glyph, readings)\r\n          : null;\r\n        if (written) code = written;\r\n      }\r\n\r\n      // A character whose one part is a name read in a `;` slot, written as\r\n      // that name and nothing more, reads back as the name standing alone.\r\n      // Where the name is shorthand for several codes, the character's parts\r\n      // where it stands alone but one part holding them in a slot, the two\r\n      // can draw differently, so the empty base keeps the part in its slot.\r\n      if (options.preserve && glyph.parts?.length === 1) {\r\n        const [part] = glyph.parts;\r\n        const inSlot = part._aliasCodeName === undefined || part._aliasCodeName !== glyph._aliasCodeName;\r\n        if (inSlot && code === part.codeName && !builtInCodes.has(code) && !part.errorCode\r\n            && !BlissSVGBuilder.#readsAloneAsInSlot(code, readings)) {\r\n          code = `;${code}`;\r\n        }\r\n      }\r\n\r\n      // Prefix glyph-level options (skip internal kerning keys), as they stand:\r\n      // the look a code the string can only name draws with sits on its part,\r\n      // never on the character, so there is none here to leave out.\r\n      const optPrefix = serializeOptionsWithPosition(glyph, GLYPH_INTERNAL_KEYS);\r\n      // A character with no token of its own (an empty one) is written `[]`\r\n      // after its kerning markers, so a reload hands the kerning back to the\r\n      // slot rather than to the character after it.\r\n      result.push(optPrefix + code || (glyphHoldsKerning(glyph) ? '[]' : ''));\r\n      return result;\r\n    }\r\n\r\n    // Check if a group is a space (TSP or QSP). ZSA is content: it serializes as\r\n    // its own code, not a slash, so a standalone ZSA round-trips faithfully.\r\n    function isSpaceGroup(group) {\r\n      if (!group.glyphs || group.glyphs.length === 0) return false;\r\n      return group.glyphs.every(g =>\r\n        g.parts?.length === 1 && isSpaceGlyph(g.parts[0].codeName)\r\n      );\r\n    }\r\n\r\n    const segments = [];\r\n    // Space groups and bare content-empty groups coalesce into maximal runs so\r\n    // serialized spacing always matches rendered spacing; bare empty groups\r\n    // contribute no units and never split a run.\r\n    let spaceRun = null;\r\n    // A reload reads a run against the word written after it, so the run is\r\n    // spelled against that word as the reload reads it, read back as written.\r\n    // The written word can read otherwise than the stored one: a definition\r\n    // that pulls in the word space on a drawing whose own code does not is\r\n    // written as that code, and a character the builder does not count as\r\n    // punctuation can be written as a code that is. A word longer than a\r\n    // reload reads is never read back, so it is judged as the builder stores\r\n    // its `characters`, less those written as nothing. Each written word is\r\n    // read back once per save.\r\n    const writtenDefaults = new Map();\r\n    const defaultSpaceBefore = (text, characters) => {\r\n      if (text.length > MAX_INPUT_LENGTH) return BlissSVGBuilder.#defaultSpaceBefore(characters);\r\n      if (!writtenDefaults.has(text)) writtenDefaults.set(text, BlissSVGBuilder.#defaultSpaceBeforeWritten(text));\r\n      return writtenDefaults.get(text);\r\n    };\r\n    const spellRun = (run, defaultCode) => {\r\n      // Each space is spelled on its own: a bare separator where it matches\r\n      // the word's default, its explicit code where it diverges. N default\r\n      // spaces are therefore still N+1 slashes and an all-divergent run is\r\n      // still the full code list, while a MIXED run keeps its default members\r\n      // compact instead of writing the whole run out. The result is\r\n      // self-delimiting (`//`, `/QSP/`, `//QSP/`), which is what lets the join\r\n      // below place it without doubling a separator.\r\n      return '/' + run.map((code) => (code === defaultCode ? '/' : `${code}/`)).join('');\r\n    };\r\n    // The character the builder draws a word's `;;` codes on, read as the\r\n    // render reads it, from the stored word: this save's copy has given a\r\n    // custom character's code up for the code it draws, which can rank\r\n    // otherwise as a head. The designation is this save's, which leaves out\r\n    // one it has no way to write.\r\n    const drawnHead = (group, stored) => resolveOverlayHeadIndex(stored.glyphs.map((glyph, index) =>\r\n      ({ ...glyph, isHeadGlyph: group.glyphs[index].isHeadGlyph })));\r\n\r\n    // What one word writes, from this save's copy of it and the stored word:\r\n    // each character's segments (its own token last), the `;;` overlay it\r\n    // writes, the character that overlay is drawn on and the one its stored\r\n    // designation marks. A word that writes nothing (a bare empty one) is\r\n    // null: it makes no seam and leaves a space run open.\r\n    const writtenWord = (group, stored) => {\r\n      const overlay = group.wordIndicators ?? null;\r\n      // The word's `;;` codes are merged onto its head, so they are placed\r\n      // with the head's parts. Only a custom code is spelled out, in a part or\r\n      // among the `;;` codes, and only it or a part the string reads back as\r\n      // plain ink is placed, so a word holding neither has nothing to place\r\n      // and its head is not looked for.\r\n      const overlayHead = overlay\r\n        && (BlissSVGBuilder.#namesCustomWordCode(overlay.codes ?? [])\r\n          || group.glyphs.some((glyph) => BlissSVGBuilder.#namesCustomCode(glyph.parts ?? [])\r\n            || (glyph.parts ?? []).some(losesIndicator)))\r\n        ? drawnHead(group, stored)\r\n        : -1;\r\n      placedWordCodes = null;\r\n      const glyphArrays = group.glyphs.map((glyph, glyphIndex) =>\r\n        serializeGlyph(glyph, glyphIndex === overlayHead ? overlay : null));\r\n      const content = glyphArrays.flat().some(Boolean);\r\n      if (!content && !serializeOptionsWithPosition(group)) return null;\r\n      // A word-level indicator overlay is written as trailing `;;` (kept\r\n      // by default; `flatten` collapses it onto the head as `;` instead), and\r\n      // only where the word writes a character for it to sit on.\r\n      const { codes = [], stripSemantic } = overlay ?? {};\r\n      return {\r\n        group,\r\n        stored,\r\n        glyphArrays,\r\n        overlay: content ? overlay : null,\r\n        overlayText: ';;' + (stripSemantic ? '!' : '') + (placedWordCodes ?? codes).join(';'),\r\n        overlayHead,\r\n        designation: group.glyphs.findIndex((glyph) => glyph.isHeadGlyph === true),\r\n        // A character's own token is its last, after any kerning markers; one\r\n        // written as nothing is no character to a reload.\r\n        characters: stored.glyphs.filter((_, glyphIndex) => glyphArrays[glyphIndex].at(-1)),\r\n      };\r\n    };\r\n    // Assembled after any head marker is stamped on, so a marked letter fails\r\n    // the collapse grammar and keeps its run explicit.\r\n    const assemble = (glyphArrays) => collapseExternalLetterRuns(glyphArrays.flat().filter(Boolean)).join('/');\r\n    const markHead = (glyphArrays, head) => {\r\n      const segments = glyphArrays[head];\r\n      if (segments.at(-1)) segments[segments.length - 1] += '^';\r\n    };\r\n    const withOptions = (node, text) => {\r\n      const prefix = serializeOptionsWithPosition(node);\r\n      return prefix ? `${prefix}|${text}` : text;\r\n    };\r\n    const loneWordText = ({ group, glyphArrays, overlay, overlayText, overlayHead, designation }) => {\r\n      let text = assemble(glyphArrays);\r\n      // Head-marker fidelity: a stored designation ALWAYS re-emits as\r\n      // `^` on the marked glyph's last segment, matching toJSON's isHeadGlyph,\r\n      // so a string round-trip never loses the designation — even when the\r\n      // automatic head pick would re-derive the same glyph. Words without a\r\n      // stored designation stay unmarked (the automatic pick is derived at\r\n      // query time, never stored), unless the pick a reload makes from what is\r\n      // written would carry the word's `;;` codes onto another character than\r\n      // the builder drew them on: there the builder's head is marked. A word\r\n      // holding no custom code is written as stored, so its head stays.\r\n      let headIndex = designation;\r\n      if (headIndex === -1 && overlay\r\n        && group.glyphs.some((glyph) => BlissSVGBuilder.#namesCustomCode(glyph.parts ?? []))) {\r\n        headIndex = BlissSVGBuilder.#movedHead(overlayHead, glyphArrays, text);\r\n      }\r\n      if (headIndex !== -1 && text) {\r\n        markHead(glyphArrays, headIndex);\r\n        text = assemble(glyphArrays);\r\n      }\r\n      return withOptions(group, overlay ? text + overlayText : text);\r\n    };\r\n    // Words with no space between them are one word to a reload, so they are\r\n    // written as one, as mergeWithNext() leaves them: the first word's\r\n    // options, `;;` overlay and head mark over every word's characters. A\r\n    // later word's are left out, so the overlay is drawn on the joined word's\r\n    // head. A word that writes nothing is no word of it.\r\n    const joinedWord = ([first, ...later]) => writtenWord(\r\n      { ...first.group, glyphs: [...first.group.glyphs, ...later.flatMap(({ group }) =>\r\n        group.glyphs.map((glyph) => ({ ...glyph, isHeadGlyph: undefined })))] },\r\n      { glyphs: [first, ...later].flatMap(({ stored }) => stored.glyphs) },\r\n    );\r\n    // The words written since the last space group.\r\n    let joined = [];\r\n    const writeJoined = () => {\r\n      if (joined.length === 0) return;\r\n      const word = joined.length === 1 ? joined[0] : joinedWord(joined);\r\n      const text = loneWordText(word);\r\n      if (spaceRun) segments.push(spellRun(spaceRun, defaultSpaceBefore(text, word.characters)));\r\n      spaceRun = null;\r\n      segments.push(text);\r\n      joined = [];\r\n    };\r\n\r\n    for (const [groupIndex, group] of (obj.groups || []).entries()) {\r\n      if (!group.glyphs) continue;\r\n      // A malformed word (parser group.errorCode) never reaches serialization:\r\n      // #normalizeFailedWordInvariant drops it from #rawBlissObj at rebuild\r\n      // (retention family), so no errorSource replay survives here.\r\n      if (isSpaceGroup(group)) {\r\n        writeJoined();\r\n        spaceRun ??= [];\r\n        spaceRun.push(...group.glyphs.map(g => g.parts[0].codeName));\r\n        continue;\r\n      }\r\n      const word = writtenWord(group, this.#rawBlissObj.groups[groupIndex]);\r\n      if (word) joined.push(word);\r\n    }\r\n    writeJoined();\r\n    // A run with no word after it reads back as ordinary spaces.\r\n    if (spaceRun) segments.push(spellRun(spaceRun, 'TSP'));\r\n    // Each space run is written self-delimiting, and the words between two\r\n    // runs are one segment, so the segments join as they stand.\r\n    let result = segments.join('');\r\n\r\n    // A space run is emitted self-delimiting, so at the very start or end of\r\n    // the string its outer separator can have nothing left to separate. Next to\r\n    // ANOTHER slash that separator is half of the `//` that spells the space\r\n    // itself and must stay; next to an explicit space code it is noise.\r\n    if (result.startsWith('/') && !result.startsWith('//')) result = result.slice(1);\r\n    if (result.endsWith('/') && !result.endsWith('//')) result = result.slice(0, -1);\r\n\r\n    // Prefix global options with [opts]|| syntax\r\n    const globalOptPrefix = serializeOptionsWithPosition(obj);\r\n    if (globalOptPrefix) result = `${globalOptPrefix}||${result}`;\r\n\r\n    return result;\r\n  }\r\n\r\n  /**\r\n   * Returns the normalized parsed structure. Custom codes are decomposed to\r\n   * built-in codes by default; { preserve: true } keeps custom names under\r\n   * the same rule as toString() (typed definitions and bare aliases to one\r\n   * existing code; multi-code shorthand always expands).\r\n   *\r\n   * @param {Object} [options]\r\n   * @param {boolean} [options.preserve=false] - Keep custom glyph/shape code names\r\n   * @param {boolean} [options.flattenIndicators=false] - Bake word-level (`;;`) indicators onto the head and omit the wordIndicators field\r\n   * @param {boolean} [options.omitOptions=false] - Leave out every option the string form writes in brackets; part coordinates and kerning stay\r\n   * @returns {Object} Plain object with groups/glyphs/options structure\r\n   */\r\n  toJSON(options = {}) {\r\n    return this.#composition(options, false);\r\n  }\r\n\r\n  // The composition toJSON() returns, or with `forString` the deep copy\r\n  // toString() writes from, in which a word is flattened where the default\r\n  // saves leave no code in its `;;` list, as in the public JSON. Other deep\r\n  // output, which merge() re-ingests, keeps the word as stored.\r\n  #composition(options, forString) {\r\n    const obj = structuredClone(this.#rawBlissObj);\r\n    // A custom name reads the same way throughout one save, so it is parsed once.\r\n    const readings = new Map();\r\n    // How far down a character's name is read back. Deep output feeds the\r\n    // string, which writes the name alone; the public JSON writes the parts\r\n    // out beside it, so there the name restores the character's own options.\r\n    const nameLevels = options.deep ? Infinity : 0;\r\n\r\n    // The view without options is the in-place clear run on this working copy,\r\n    // then the one rebuild rule that reads options: a head designation on a\r\n    // glyph the clear left with nothing to write goes with it. Both run before\r\n    // the flatten and before any `preserve` decision reads the tree. A flatten\r\n    // ahead of them bakes the overlay onto a glyph the clear then empties, and\r\n    // a name judged ahead of them is judged on options that are about to go.\r\n    if (options.omitOptions) {\r\n      BlissSVGBuilder.#clearOptionsFrom(obj, 0, undefined, readings);\r\n      for (const group of obj.groups ?? []) {\r\n        for (const glyph of group.glyphs ?? []) {\r\n          if (designationIsUnwritten(glyph)) delete glyph.isHeadGlyph;\r\n        }\r\n      }\r\n    }\r\n\r\n    // Internal parse-warning record: consumed by #rebuild to repopulate\r\n    // `warnings`, never part of the public composition data (absent from the\r\n    // BlissJSON type). Strip it so toJSON() is clean authoring data and a JSON\r\n    // round-trip does not re-emit a warning for an offender already dropped.\r\n    delete obj._parseWarnings;\r\n\r\n    // Publish the library's own vocabulary under the spelling JavaScript writes.\r\n    // Default output is the authoring shape a caller reads, edits and hands\r\n    // back, so it is JavaScript's view of the composition. `deep` output is\r\n    // consumed by toString() and merge(), which are the DSL's view and the\r\n    // internal one, and both keep the stored spelling: publishing there would\r\n    // move the DSL serializer with it.\r\n    const publishOptionSpellings = (node) => {\r\n      if (options.deep || !node.options) return;\r\n      node.options = Object.fromEntries(\r\n        Object.entries(node.options).map(([key, value]) => [programmaticOptionKey(key), value])\r\n      );\r\n    };\r\n\r\n    // Strip keys from all levels (keys are runtime identity, not composition data)\r\n    delete obj.key;\r\n    if (obj.options) delete obj.options.key;\r\n    publishOptionSpellings(obj);\r\n    // Transient options render and never serialize: that is the whole contract\r\n    // of the channel, so the strip happens at every level it can appear on,\r\n    // ungated by `deep` (merge() re-ingests deep output, which would otherwise\r\n    // resurrect a nested bag).\r\n    delete obj.transientOptions;\r\n\r\n    if (obj.groups) {\r\n      // Strip keys from parts. Unless deep: true, also strip nested sub-parts\r\n      // (internal expansion detail). The constructor re-expands from codeName\r\n      // via BlissParser.expandParts(). `glyph` is the character holding `parts`\r\n      // when they are its own, and absent for a part's inner parts.\r\n      const stripParts = (parts, glyph) => {\r\n        for (const [partIndex, part] of parts.entries()) {\r\n          delete part.key;\r\n          delete part.transientOptions;\r\n          // Internal origin tag from the word-indicator merge (flatten path):\r\n          // not composition data, never surfaced in serialized output.\r\n          delete part._indicatorOrigin;\r\n          // Single-code rename resolution records the user-written name\r\n          // (also at character level): preserve\r\n          // restores it, so `B291;MYIND` keeps MYIND and a standalone alias\r\n          // keeps its name instead of leaking the resolved target. A BASE\r\n          // slot with `;`-siblings restores only a name that survives\r\n          // reparse: a `;`-part on a bare-alias base drops (strict\r\n          // separation), so a bare-alias name stays decomposed there, while\r\n          // a typed name dumb-appends and round-trips. Deep output keeps the\r\n          // field for the toString()/merge() pipelines; public output drops it.\r\n          // Where the name places the code it renames, the position written\r\n          // where it was used is what the name is written with.\r\n          const used = options.preserve && part._aliasCodeName\r\n            ? BlissSVGBuilder.#positionAtUse(part) : null;\r\n          if (used) {\r\n            const namedDef = blissElementDefinitions[part._aliasCodeName];\r\n            // A decorated part (coordinates or options) restores only a PURE\r\n            // rename chain: a decorated custom anatomy dissolved its own\r\n            // state into this part, and the written name would re-emit it as\r\n            // instance decoration (the glyph-\r\n            // level consult keeps such a name at the clean-glyph level).\r\n            const decorated = (used.x ?? 0) !== 0 || (used.y ?? 0) !== 0 || part.options;\r\n            // The name also has to leave nothing to bring back. A sole part\r\n            // carrying the character's own recording, with no options of its\r\n            // own to write, is written as the whole character, so the\r\n            // character is what the name is judged against. The string does\r\n            // not write what the name gives the one part of a character\r\n            // written alone (every definition's own options sit there); the\r\n            // public JSON writes every part in a slot, options and all.\r\n            // Anywhere else the name is\r\n            // written in a part slot (`[opts]>NAME` included) and puts its\r\n            // options on the part.\r\n            const soleRecord = parts.length === 1 && glyph?._aliasCodeName === part._aliasCodeName;\r\n            const ownOptions = soleRecord && options.deep\r\n              ? BlissSVGBuilder.#withoutLook(part.options, BlissSVGBuilder.#loneLookOf(part._aliasCodeName, readings))\r\n              : part.options;\r\n            const writesOwnOptions = Object.entries(ownOptions ?? {})\r\n              .some(([key, value]) => key !== 'key' && writesOptionValue(key, value));\r\n            const writtenAsCharacter = soleRecord && !writesOwnOptions;\r\n            const keepsOptions = writtenAsCharacter\r\n              ? BlissSVGBuilder.#keepsNamedOptions(glyph, part._aliasCodeName, 'glyph', readings)\r\n              : BlissSVGBuilder.#keepsNamedOptions(part, part._aliasCodeName, 'part', readings);\r\n            if ((partIndex > 0 || parts.length === 1\r\n                || (namedDef && !BlissSVGBuilder.#isBareAliasDefinition(namedDef)))\r\n                && (!decorated || BlissSVGBuilder.#renameChainIsPure(part._aliasCodeName))\r\n                && keepsOptions) {\r\n              part.codeName = part._aliasCodeName;\r\n              for (const axis of ['x', 'y']) {\r\n                if (used[axis] === undefined) delete part[axis];\r\n                else part[axis] = used[axis];\r\n              }\r\n              delete part._aliasPosition;\r\n            } else if (!keepsOptions && part.codeName === part._aliasCodeName) {\r\n              // A part that already carries the name (a typed shape written\r\n              // alone, which nothing renamed) would read to the string as one\r\n              // whose name was kept here, so the recording goes with the\r\n              // verdict and the string asks for itself.\r\n              delete part._aliasCodeName;\r\n            }\r\n          }\r\n          if (!options.deep) {\r\n            delete part._aliasCodeName;\r\n            delete part._aliasPosition;\r\n          }\r\n          if (part.options) delete part.options.key;\r\n          publishOptionSpellings(part);\r\n          // Surface text-fallback routing key 'XTXT_<chars>' as 'X<chars>'.\r\n          if (part.codeName?.startsWith('XTXT_')) {\r\n            part.codeName = 'X' + part.codeName.slice(5);\r\n          }\r\n          // Default output drops definition-derived anchor metadata the renderer\r\n          // recomputes from the code; isIndicator/width stay (a documented part of\r\n          // the default shape). deep output keeps everything for toString()/merge().\r\n          if (!options.deep) {\r\n            delete part.anchorOffsetX;\r\n            delete part.anchorOffsetY;\r\n          }\r\n          if (options.deep && part.parts) {\r\n            stripParts(part.parts);\r\n          } else {\r\n            // Written without the parts it holds, a part carries their\r\n            // failure: an alias of a word, kept by its name in a preserve\r\n            // save, holds the word, which fails, and the default save writes\r\n            // that failure where it spells the alias out.\r\n            const failure = part.errorCode ? undefined : heldFailure(part.parts);\r\n            if (failure) Object.assign(part, { error: failure.error, errorCode: failure.errorCode });\r\n            delete part.parts;\r\n          }\r\n        }\r\n      };\r\n\r\n      for (const group of obj.groups) {\r\n        delete group.key;\r\n        delete group.transientOptions;\r\n        if (group.options) delete group.options.key;\r\n        publishOptionSpellings(group);\r\n\r\n        // flattenIndicators bakes the word-level overlay onto the head as\r\n        // character-level parts and drops the field, reproducing the pre-overlay\r\n        // (primitive) serialization. Default keeps the overlay (resolved at\r\n        // render, re-emitted as `;;`), except where the default saves would\r\n        // leave none of its codes in the list (#spellsOutOntoHeadAlone).\r\n        // (An all-empty word keeps its unflattenable overlay: headIndex -1.)\r\n        const flattens = options.flattenIndicators\r\n          || (!options.preserve && (!options.deep || forString) && !!group.wordIndicators\r\n            && BlissSVGBuilder.#spellsOutOntoHeadAlone(group.wordIndicators.codes ?? [], readings));\r\n        const overlayHeadIndex = flattens && group.wordIndicators && group.glyphs?.length\r\n          ? resolveOverlayHeadIndex(group.glyphs)\r\n          : -1;\r\n        if (overlayHeadIndex !== -1) {\r\n          const head = group.glyphs[overlayHeadIndex];\r\n          head.parts = mergeWordIndicatorsOntoHead(\r\n            head, group.wordIndicators, blissElementDefinitions, (code) => BlissParser.parse(code)\r\n          );\r\n          // A head with baked indicator parts is no longer a bare single code,\r\n          // so clear its single-code identity to force part-based serialization\r\n          // (`B291;B81`); otherwise serializeGlyph emits the bare codeName and\r\n          // drops the baked parts. The one exception is a custom glyph under\r\n          // `preserve` that still carries what its name supplies: it keeps its\r\n          // name and re-emits the overlay as a delta (`_LOVE;B81`), so leave\r\n          // its identity intact.\r\n          if (head.glyphCode && head.parts.some(p => p.isIndicator)\r\n              && !(options.preserve && !builtInCodes.has(head.glyphCode)\r\n                && BlissSVGBuilder.#keepsNamedOptions(head, head.glyphCode, 'glyph', readings, nameLevels))) {\r\n            delete head.glyphCode;\r\n            delete head.isBlissGlyph;\r\n          }\r\n          delete group.wordIndicators;\r\n        }\r\n\r\n        // The word's `;;` codes are merged onto its head, so they are placed\r\n        // with the head's parts. Only a custom code is spelled out, in a part\r\n        // or among the `;;` codes, so a word naming none has nothing to place\r\n        // and its head is not looked for. Deep output places nothing: it feeds\r\n        // the string, which places what it writes itself.\r\n        const glyphsNameCustomCode = group.glyphs?.some((glyph) => BlissSVGBuilder.#namesCustomCode(glyph.parts ?? []));\r\n        const overlayHead = !options.deep && group.wordIndicators && group.glyphs\r\n          && (glyphsNameCustomCode || BlissSVGBuilder.#namesCustomWordCode(group.wordIndicators.codes ?? []))\r\n          ? resolveOverlayHeadIndex(group.glyphs)\r\n          : -1;\r\n\r\n        if (group.glyphs) {\r\n          for (const [glyphIndex, glyph] of group.glyphs.entries()) {\r\n            delete glyph.key;\r\n            delete glyph.transientOptions;\r\n            if (glyph.options) delete glyph.options.key;\r\n            publishOptionSpellings(glyph);\r\n            if (glyph.parts) {\r\n              // The public JSON spells a custom code out as the string does,\r\n              // so another instance can read it without the definition: a\r\n              // part named by one is published as the parts it draws, each\r\n              // where it was drawn, and each drawn for a custom indicator\r\n              // marked as one, which the string cannot write. `preserve`\r\n              // keeps the names, and `deep` output feeds the string, which\r\n              // spells them out itself.\r\n              if (!options.preserve && !options.deep) {\r\n                const overlay = glyphIndex === overlayHead ? group.wordIndicators : null;\r\n                const written = BlissSVGBuilder.#writtenParts(glyph.parts, () => false, readings, overlay, true, () => false, true);\r\n                glyph.parts = written.parts;\r\n                if (written.codes) group.wordIndicators = { ...overlay, codes: written.codes };\r\n              }\r\n              stripParts(glyph.parts, glyph);\r\n            }\r\n\r\n            // Did this glyph ever have an identity code? Read it BEFORE the\r\n            // rename below, which drops the code for a custom glyph decomposed\r\n            // to portable parts. That glyph is anonymous on purpose, so its\r\n            // identity goes; its layout data stays unless a published code\r\n            // brings it back. A glyph that never had a code has nothing to\r\n            // re-derive anything from. See the metadata gate further down.\r\n            const hadIdentityCode = !!glyph.glyphCode;\r\n\r\n            // Normalize glyphCode → codeName for public API\r\n            if (glyph.glyphCode) {\r\n              // Surface text-fallback routing key 'XTXT_<chars>' as 'X<chars>'.\r\n              const publicCode = glyph.glyphCode.startsWith('XTXT_')\r\n                ? 'X' + glyph.glyphCode.slice(5)\r\n                : glyph.glyphCode;\r\n              // Decompose custom glyphs to portable codes by default, and under\r\n              // `preserve` a custom glyph that no longer carries what its name\r\n              // supplies, which reading the name back would restore.\r\n              if (!builtInCodes.has(glyph.glyphCode) && (!options.preserve\r\n                  || !BlissSVGBuilder.#keepsNamedOptions(glyph, glyph.glyphCode, 'glyph', readings, nameLevels))) {\r\n                const def = blissElementDefinitions[glyph.glyphCode];\r\n                if (def?.codeString) {\r\n                  // Resolve to the underlying built-in code (null for complex compositions)\r\n                  const resolved = BlissSVGBuilder.#resolveToBuiltInCode(glyph.glyphCode);\r\n                  if (resolved) glyph.codeName = resolved;\r\n                  // This resolution is the one place a typed glyph's identity\r\n                  // drops from deep output, which feeds re-ingest pipelines\r\n                  // (merge): record the written name so preserve can restore\r\n                  // a clean instance downstream. An existing recording (a\r\n                  // bare alias written OVER this glyph) outranks its own name.\r\n                  // The deep gate pairs with the `!options.deep` strip below;\r\n                  // either alone keeps public output clean, so keep both.\r\n                  if (options.deep) glyph._aliasCodeName ??= publicCode;\r\n                } else {\r\n                  glyph.codeName = publicCode;\r\n                }\r\n              } else {\r\n                glyph.codeName = publicCode;\r\n              }\r\n              delete glyph.glyphCode;\r\n            }\r\n            // Parts already use codeName internally, no rename needed\r\n\r\n            // Glyph-level rename recording:\r\n            // public preserve output restores the written name only for a\r\n            // clean instance of the definition's anatomy. Deep output stays\r\n            // raw (codeName = the typed target), the definition the string's\r\n            // preserve writer reads the glyph against; toString restores via\r\n            // its own consult instead.\r\n            // The recording never reaches public output in either mode.\r\n            if (options.preserve && !options.deep) {\r\n              const name = glyph._aliasCodeName\r\n                ?? (glyph.codeName && !builtInCodes.has(glyph.codeName) ? glyph.codeName : null);\r\n              if (name) {\r\n                const written = BlissSVGBuilder.#preservedWrittenName(name, glyph, readings);\r\n                if (written) glyph.codeName = written;\r\n              }\r\n            }\r\n            if (!options.deep) delete glyph._aliasCodeName;\r\n\r\n            // Default output omits glyph-classification metadata, layout data\r\n            // included (the letter, the kerning table, a punctuation mark's\r\n            // word space): it is fully derived from the code and re-derived on\r\n            // reconstruction (see #reapplyGlyphMetadata), so it is not\r\n            // user-authored composition data. deep output keeps it for\r\n            // toString()/merge(). (issue #28 toJSON audit)\r\n            //\r\n            // \"Derived from the code\" only holds where there IS a code. Two\r\n            // glyphs have none: one wearing a part-scope option (`[opts]>Xm`,\r\n            // where the option binds the code to the PART) and a multi-character\r\n            // text fallback (`Xhαllo`, which is one <text> glyph with no code of\r\n            // its own). Dropping their metadata made a rebuild forget they were\r\n            // external, so every following glyph shifted by 1.2 units -- the\r\n            // difference between external-glyph-space and char-space (GH #38).\r\n            // Keep the metadata exactly where nothing can re-derive it.\r\n            //\r\n            // A custom glyph spelled out to anonymous parts is the third: a\r\n            // rebuild re-derives layout data from a glyph's code alone, never\r\n            // from its parts, so a typed glyph drawn from a decorated digit\r\n            // (`B9:1`) or punctuation mark keeps its kerning or word space\r\n            // only if its layout data is written out. Its identity is not.\r\n            if (!options.deep && hadIdentityCode) {\r\n              delete glyph.isBlissGlyph;\r\n              delete glyph.isIndicator;\r\n              if (glyph.codeName !== undefined) {\r\n                delete glyph.char;\r\n                delete glyph.isExternalGlyph;\r\n                delete glyph.kerningRules;\r\n                delete glyph.shrinksPrecedingWordSpace;\r\n              }\r\n            }\r\n          }\r\n\r\n          // A reload picks the head of a word with no designation by the codes\r\n          // published, its characters' codes named as its identity, and a\r\n          // custom code is published as the code it draws, which can rank\r\n          // otherwise (#movedHead). Where that pick is another character than\r\n          // the one the builder drew the `;;` codes on, the builder's head is\r\n          // marked. Deep output has no head here: the string marks what it\r\n          // writes itself.\r\n          if (glyphsNameCustomCode && overlayHead !== -1) {\r\n            const reloadHead = resolveOverlayHeadIndex(group.glyphs.map((glyph) =>\r\n              ({ glyphCode: glyph.codeName, parts: glyph.parts, isHeadGlyph: glyph.isHeadGlyph })));\r\n            if (reloadHead !== overlayHead) group.glyphs[overlayHead].isHeadGlyph = true;\r\n          }\r\n        }\r\n      }\r\n    }\r\n    return obj;\r\n  }\r\n\r\n\r\n\r\n  /**\r\n   * Returns the SVG content (path elements and groups) as a string.\r\n   * This is useful when you need only the primary graphical content of the SVG for manipulation or for use in complex SVG compositions.\r\n   *\r\n   * @returns {string} SVG content string\r\n   */\r\n  get svgContent() {\r\n    const render = this.#contentRender();\r\n    // Its filter ids carry the whole picture's hash, as svgCode's do, so the\r\n    // whole picture is written only where the content holds one.\r\n    return render.filterCount === 0 ? render.content : fillFilterIds(render.content, this.#pictureMarkup(render));\r\n  }\r\n\r\n  /**\r\n   * Returns the SVG as a DOM Element.\r\n   * This property is useful when you need to directly manipulate the SVG using the native DOM API.\r\n   * \r\n   * @returns {SVGSVGElement} SVG DOM element\r\n   */\r\n  get svgElement() {\r\n    const parser = new DOMParser();\r\n    const doc = parser.parseFromString(this.#svgCode, 'image/svg+xml');\r\n    return doc.documentElement;\r\n  }\r\n  \r\n  /**\r\n   * Returns the SVG code as a string, without the XML declaration.\r\n   * This is suitable for embedding the SVG within HTML documents or using it with virtual DOM libraries like React and Preact.\r\n   * \r\n   * @returns {string} SVG string without XML declaration\r\n   */\r\n  get svgCode() {\r\n    return this.#svgCode;\r\n  }\r\n\r\n  /**\r\n   * Returns the SVG code as a string, including the XML declaration.\r\n   * This is suitable for creating standalone SVG files.\r\n   * \r\n   * @returns {string} SVG string with XML declaration\r\n   */\r\n  get standaloneSvg() {\r\n    return `<?xml version=\"1.0\" encoding=\"utf-8\"?>\\n${this.#svgCode}`;\r\n  }\r\n\r\n\r\n  // The external-character namespace: X followed by a run body as the parser\r\n  // reads one (letters, a hyphen allowed between two of them). Built from the\r\n  // parser's own grammar so the two cannot drift: written input of this shape\r\n  // is always read as external text, never as a definition name, so such a\r\n  // definition would be unreachable and define() refuses the name. A name that\r\n  // leaves the grammar (XRAY1, XRAY-1) reaches its definition.\r\n  static #X_NAMESPACE_PATTERN = new RegExp(`^X${X_RUN_BODY}$`);\r\n\r\n  // A multi-letter external-letter run is a word WITHOUT a `/` in it: XOH is\r\n  // shorthand for XO/XH. Asking the parser's own expansion keeps a typed\r\n  // definition and its use site from disagreeing about how many characters a\r\n  // codeString is; a run holding a letter with no built-in outline collapses to\r\n  // ONE text-fallback glyph and stays a legal single character. Returns the\r\n  // expanded word form, or null when the codeString is one character.\r\n  //\r\n  // The BASE is classified separately because a `;`-part suppresses expansion:\r\n  // `Xab;C8` keeps its run whole and so carries no `/`, yet the base is still a\r\n  // word and the definition would fail WORD_AS_PART at every use. Composing a\r\n  // part onto a run does not turn the run into one character.\r\n  static #expandedRunWord(codeString) {\r\n    const expanded = processXCodes(codeString);\r\n    if (expanded.includes('/')) return expanded;\r\n    const base = codeString.split(';')[0];\r\n    const expandedBase = base === codeString ? expanded : processXCodes(base);\r\n    return expandedBase.includes('/') ? expandedBase : null;\r\n  }\r\n\r\n  // Parser-transient tokens that are DSL syntax, not registry codes: defining\r\n  // one would change what the bare token means at the use site (a definition\r\n  // named RK shadows the kerning marker).\r\n  static #RESERVED_SYNTAX_NAMES = new Set(['RK', 'AK', 'SP']);\r\n\r\n  // Validates a definition code string\r\n  static #validateCode(code) {\r\n    if (typeof code !== 'string' || code.trim().length === 0) {\r\n      throw new Error('Definition code must be a non-empty, non-whitespace string.');\r\n    }\r\n    // Control (Cc) and format (Cf) characters — and any whitespace other\r\n    // than a plain space (no-break space, line/paragraph separators) — make\r\n    // a key that LOOKS like a normal code but can never be typed at a use\r\n    // site: the definition registers unreachable, silently. Reject with the\r\n    // code point named. A plain interior space stays allowed (the full code\r\n    // grammar is a separate decision).\r\n    const invisible = code.match(/[\\p{Cc}\\p{Cf}]|[^\\S ]/u);\r\n    if (invisible) {\r\n      const hex = invisible[0].codePointAt(0).toString(16).toUpperCase().padStart(4, '0');\r\n      throw new Error(`Definition code contains an invisible character (U+${hex}). Use visible characters only.`);\r\n    }\r\n    if (BlissSVGBuilder.#X_NAMESPACE_PATTERN.test(code)) {\r\n      throw new Error(`\"${code}\" collides with the external-character namespace (X followed by letters): the parser reads such tokens as external text, so this definition would be unreachable. Choose a name that is not X followed by letters.`);\r\n    }\r\n    if (BlissSVGBuilder.#RESERVED_SYNTAX_NAMES.has(code)) {\r\n      throw new Error(`\"${code}\" is reserved DSL syntax (the kerning and space markers RK, AK, SP) and cannot be defined.`);\r\n    }\r\n  }\r\n\r\n  // Existence/overwrite gate shared by all four define paths. A built-in\r\n  // definition is part of the universal primitive set every portable\r\n  // composition relies on: replacing one would change what existing strings\r\n  // render in this instance only, so overwrite:true refuses it (mirroring\r\n  // removeDefinition/patchDefinition). Without overwrite, an existing code\r\n  // (built-in or custom) keeps landing in skipped[] via the already-exists\r\n  // throw.\r\n  static #assertReplaceable(code, options) {\r\n    if (!blissElementDefinitions[code]) return;\r\n    if (options.overwrite && protectedCodes.has(code)) {\r\n      throw new Error(`define(\"${code}\"): cannot overwrite built-in definitions.`);\r\n    }\r\n    if (!options.overwrite) {\r\n      // Typed so define()'s catch classifies by code, not by message text: a\r\n      // definition NAMED \"already exists\" must land in errors, not skipped.\r\n      const error = new Error(`define(\"${code}\"): code already exists. Use { overwrite: true } to replace.`);\r\n      error.code = 'ALREADY_EXISTS';\r\n      throw error;\r\n    }\r\n  }\r\n\r\n  // ── Define validation helpers ───────────────────────────────────\r\n\r\n  // Extract referenced codes from a codeString (strips positions, options, etc.)\r\n  static #extractReferencedCodes(codeString) {\r\n    if (!codeString) return [];\r\n    return codeString\r\n      .split(/[;/]+/)\r\n      .map(part => part.replace(/\\[.*?\\]>?/g, '').split(':')[0].replace(/\\^$/, ''))\r\n      .filter(code => code.length > 0);\r\n  }\r\n\r\n  // Resolve a custom glyph code to its underlying built-in code (for toJSON).\r\n  // Follows the chain until a built-in code is found.\r\n  static #resolveToBuiltInCode(code, visited = new Set()) {\r\n    if (visited.has(code)) return code;\r\n    visited.add(code);\r\n    const def = blissElementDefinitions[code];\r\n    if (!def?.codeString) return code;\r\n    // Only a code string that is one code reference resolves further. A\r\n    // separator, a coordinate, a part bracket or its part-scope marker makes\r\n    // it a composition no single code draws, and its text would otherwise be\r\n    // published as a code name (`[color=red]>B291`). A character bracket\r\n    // leading it is the definition's own options, not part of what it draws,\r\n    // so it is read off first; any other bracket comes with a `>`, `;` or `/`,\r\n    // and the `[` stays only so that no bracket text can ever be published.\r\n    const renamed = BlissSVGBuilder.#renamedCode(def.codeString);\r\n    if (!/[;/:[>]/.test(renamed)) {\r\n      if (builtInCodes.has(renamed)) return renamed;\r\n      return BlissSVGBuilder.#resolveToBuiltInCode(renamed, visited);\r\n    }\r\n    return null; // Complex codeString — parts already expanded, no single code\r\n  }\r\n\r\n  // The options a defined code gives the part it names, or undefined: what the\r\n  // parser gives that part in a `;` slot, so every way a definition brings\r\n  // options counts alike (its defaultOptions, the character bracket leading\r\n  // its code string, what an alias's target brings). Built-in or custom, a\r\n  // definition's options are part of what its code is, like its strokes: a\r\n  // clear on a part named by one returns it to them instead of stripping them,\r\n  // and a save that writes the name does not repeat them. A code the registry\r\n  // does not hold names nothing.\r\n  static #ownLookOf(code, readings = new Map()) {\r\n    if (!code || !Object.hasOwn(blissElementDefinitions, code)) return undefined;\r\n    return BlissSVGBuilder.#readingOf(code, 'part', readings)?.options;\r\n  }\r\n\r\n  // The options the parser gives the part of a character written as `code`\r\n  // alone, or undefined: #ownLookOf's question asked where the name stands\r\n  // alone rather than in a `;` slot. A slot reads a name as it reads standing\r\n  // alone, through every link it renames, so the answers differ only for a\r\n  // name standing for several codes: alone they are the character's parts,\r\n  // in a slot one part holds them. Every definition's own options sit on that\r\n  // part, never on the character. Only a name that reads as one part records\r\n  // itself on that part, so the first is the one.\r\n  static #loneLookOf(code, readings = new Map()) {\r\n    if (!code || !Object.hasOwn(blissElementDefinitions, code)) return undefined;\r\n    return BlissSVGBuilder.#readingOf(code, 'glyph', readings)?.parts?.[0]?.options;\r\n  }\r\n\r\n  // The own look of the element `node` at `level` (3 a part), read from the\r\n  // code the part was written as; undefined at every other level. A character\r\n  // named by a code holds that code as its one part, and the look belongs to\r\n  // that part, so a clear at character level leaves it off the character,\r\n  // where it would style every part added beside the code. Shared by the clear\r\n  // and by the removal of a named option, so both return an element to the\r\n  // same look.\r\n  //\r\n  // A part a single-code rename resolved (a shape whose code string is `C8`\r\n  // is stored as `C8`) records the name it was written as, and the parser gave\r\n  // it that name's options. The same recording on the one part of a character\r\n  // written alone came down from the character, so that part holds what the\r\n  // name gives the one part of a character written alone. `character` is the\r\n  // character the part belongs to.\r\n  static #ownLookAt(node, level, character, readings) {\r\n    if (level !== 3) return undefined;\r\n    const name = node._aliasCodeName;\r\n    if (name !== undefined && name === character?._aliasCodeName) return BlissSVGBuilder.#loneLookOf(name, readings);\r\n    return BlissSVGBuilder.#ownLookOf(name ?? node.codeName, readings);\r\n  }\r\n\r\n  // A part's `bag` without the values `look`, what its code brings by its\r\n  // definition, holds the same of: they are part of what the code is, so the\r\n  // canonical string does not repeat them (`REFSQUARE`, not\r\n  // `[stroke-dasharray=0 0.999]>REFSQUARE`, and likewise a custom name\r\n  // `preserve` keeps). A different value is an override and is written. Both\r\n  // bags hold the stored spelling of every key, so the keys compare as they\r\n  // stand.\r\n  static #withoutLook(bag, look) {\r\n    if (!bag || !look) return bag;\r\n    return Object.fromEntries(Object.entries(bag).filter(([key, value]) =>\r\n      !Object.hasOwn(look, key) || serializeOptionValue(look[key]) !== serializeOptionValue(value)));\r\n  }\r\n\r\n  // One element's options emptied of everything the canonical string writes in\r\n  // brackets, in place. `level` is 0 for the composition, 1 a word, 2 a\r\n  // character and 3 a part. Shared by the view without options, which runs it\r\n  // on toJSON's working copy, and by the in-place clears, so the two cannot\r\n  // disagree about what an option is.\r\n  //\r\n  // What stays is what the string writes outside a bracket, or never writes:\r\n  // a part's coordinates, a character's kerning (the JSON keeps it in the bag,\r\n  // the string writes it as an `RK:`/`AK:` marker), the runtime `key`, and the\r\n  // options a part's own code brings by its definition. A character, word or\r\n  // composition position has no spelling outside a bracket, so it goes with\r\n  // the rest. Transient options sit in a bag of their own and are never\r\n  // touched. `character` is the character a part belongs to.\r\n  //\r\n  // A bag with nothing to take off is left exactly as it was, so a composition\r\n  // with no options saves the same with the view as without it.\r\n  static #clearOwnOptions(node, level, character, readings) {\r\n    if (level === 3) BlissSVGBuilder.#expandLateShape(node);\r\n    const bag = node.options ?? {};\r\n    const kept = {};\r\n    for (const [key, value] of Object.entries(bag)) {\r\n      if (key === 'key' || (level === 2 && Object.hasOwn(KERNING_OPTION_KEYS, key))) kept[key] = value;\r\n    }\r\n    Object.assign(kept, BlissSVGBuilder.#ownLookAt(node, level, character, readings));\r\n    const keptKeys = Object.keys(kept);\r\n    const changed = keptKeys.length !== Object.keys(bag).length || keptKeys.some((key) => bag[key] !== kept[key]);\r\n    if (changed) {\r\n      // The composition keeps an empty bag, the shape its JSON always has.\r\n      if (keptKeys.length > 0 || level === 0) node.options = kept;\r\n      else delete node.options;\r\n    }\r\n    if (level < 3) {\r\n      delete node.x;\r\n      delete node.y;\r\n    }\r\n    const overlay = level === 1 ? node.wordIndicators : undefined;\r\n    if (overlay?.codes?.length) {\r\n      const codes = overlay.codes.map((code) => BlissSVGBuilder.#wordIndicatorCodeWithoutOptions(code));\r\n      if (codes.some((code, i) => code !== overlay.codes[i])) node.wordIndicators = { ...overlay, codes };\r\n    }\r\n  }\r\n\r\n  // A part named by a shape defined after the composition was built still holds\r\n  // the bare name, so the options that definition brings sit in no bag: only in\r\n  // what the parser reads the name as in a part's slot. This puts that reading\r\n  // in place of the bare name, with the part's own options over it: the node\r\n  // the part would hold had the definition existed when it was built. The slot\r\n  // is read with no coordinate written, so the reading has no position of its\r\n  // own and the part keeps the one it has. Every save writes the part that way,\r\n  // and a clear makes the same expansion first, since it can take off only what\r\n  // is in the tree. Returns whether the node was expanded.\r\n  static #expandLateShape(node, readings = new Map()) {\r\n    if (node.parts || node.errorCode || builtInCodes.has(node.codeName)) return false;\r\n    const def = blissElementDefinitions[node.codeName];\r\n    if (!def?.isShape || !def.codeString) return false;\r\n    const reading = BlissSVGBuilder.#readingOf(node.codeName, 'part', readings);\r\n    if (!reading) return false;\r\n    const { options } = node;\r\n    Object.assign(node, structuredClone(reading));\r\n    if (options) node.options = { ...node.options, ...options };\r\n    return true;\r\n  }\r\n\r\n  // The same clear on `node` and on everything below it: a composition's words,\r\n  // a word's characters, and the parts of a character or of a part at any\r\n  // depth, down to a part named by a definition with a code string. What sits\r\n  // inside that part is the definition's (part brackets in its code string\r\n  // included), so the clear returns the part to the definition's options and\r\n  // leaves its insides as they are. A part holding parts under no such name\r\n  // (object input) is cleared through. `character` is the character the parts\r\n  // below belong to.\r\n  static #clearOptionsFrom(node, level, character, readings = new Map()) {\r\n    BlissSVGBuilder.#clearOwnOptions(node, level, character, readings);\r\n    const named = level === 3 && Object.hasOwn(blissElementDefinitions, node.codeName ?? '');\r\n    if (named && typeof blissElementDefinitions[node.codeName].codeString === 'string') return;\r\n    const children = level === 0 ? node.groups : level === 1 ? node.glyphs : node.parts;\r\n    for (const child of children ?? []) {\r\n      BlissSVGBuilder.#clearOptionsFrom(child, Math.min(level + 1, 3), level === 2 ? node : character, readings);\r\n    }\r\n  }\r\n\r\n  // The parts a save writes for `parts`: a part named by a custom definition\r\n  // with a code string gives way to the parts it holds, recursively, so no\r\n  // instance needs the definition to read the save. One step for both saves,\r\n  // so the string and the public JSON spell a custom code out alike; the\r\n  // string then formats the parts, the JSON publishes them. `keepsName(part,\r\n  // index, parts)` says where the save writes the name instead.\r\n  //\r\n  // A built-in is never spelled out, nor a part that failed: it re-reads by\r\n  // the name it was written with, and spelling out a composite alias\r\n  // (`_X` -> `B291;B81`) would change what the warned text reloads to. A code\r\n  // drawn by its own function has nothing to spell out into. A shape defined\r\n  // after the composition was built still holds the bare name, so it is first\r\n  // given the node it would hold had the definition existed then, and spelled\r\n  // out from there. A part with no code is left as it stands: the string drops\r\n  // it, the JSON publishes it.\r\n  //\r\n  // A spelled-out part's options go under each inner part's own, and its\r\n  // position is added to theirs. Presence, not value: an axis nobody wrote is\r\n  // unset, not zero. An unset axis leaves the part wherever it sits on its\r\n  // own, which is the origin for an ordinary shape but a computed placement\r\n  // for an indicator, so filling in a `0` the author never wrote reloads as a\r\n  // different picture. The two questions are asked separately from here.\r\n  //\r\n  // A non-zero offset forces a value either way: an unset axis would have to\r\n  // be written as that part's own default plus the offset, and only the\r\n  // layout knows the default. Approximated as 0, which is exact for every\r\n  // ordinary part and off by the anchor placement for an indicator.\r\n  //\r\n  // An axis written on the spelled-out part, a zero included, is written on\r\n  // each ordinary part it spells out into. Such a part sits at the composite's\r\n  // origin unless it wrote its own place, so the written axis says exactly\r\n  // where it is, and the part stays a position the leading-indicator rule\r\n  // reads: dropping the zero made the reload drop an indicator the builder had\r\n  // kept. An indicator's place is the indicator layout's, so under a zero\r\n  // offset it is left to the reload.\r\n  //\r\n  // The addition is arithmetic only because the positioning invariant\r\n  // guarantees it: an axis on the authoring structure is a finite number or\r\n  // absent, whichever channel wrote it. Without that guarantee `+`\r\n  // concatenates, and a string `'3'` under a zero offset becomes `30`. Any new\r\n  // route that writes an axis belongs behind normalizePositionFields, not\r\n  // behind a second coercion here.\r\n  //\r\n  // Given `sources`, it records where each part it returns came from: the\r\n  // indexes leading from `parts` down to the stored node the part is written\r\n  // from, `[i]` for a part written as it is stored and `[i, j, ...]` for one\r\n  // inside a spelled-out part. A shape defined after the composition was built\r\n  // adds a `null` step, since its parts were never stored and nothing below it\r\n  // can be found. #placedAsDrawn reads the paths to find where the builder drew\r\n  // each written part.\r\n  static #spelledOutParts(parts, keepsName, readings, sources = null, path = [], offsetX = 0, offsetY = 0, writtenX = false, writtenY = false) {\r\n    const placesThrough = offsetX !== 0 || offsetY !== 0 || writtenX || writtenY;\r\n    return parts.flatMap((part, partIndex) => {\r\n      const source = sources && [...path, partIndex];\r\n      if (!part.codeName) {\r\n        sources?.push(source);\r\n        return [part];\r\n      }\r\n      const takesWrittenAxis = part.isIndicator !== true;\r\n      const hasX = part.x !== undefined || offsetX !== 0 || (writtenX && takesWrittenAxis);\r\n      const hasY = part.y !== undefined || offsetY !== 0 || (writtenY && takesWrittenAxis);\r\n      const x = (part.x ?? 0) + offsetX;\r\n      const y = (part.y ?? 0) + offsetY;\r\n      if (!builtInCodes.has(part.codeName) && !part.errorCode && !keepsName(part, partIndex, parts)) {\r\n        if (part.parts) {\r\n          return BlissSVGBuilder.#spelledOutParts(BlissSVGBuilder.#underOuterOptions(part.parts, part.options),\r\n            keepsName, readings, sources, source, x, y, hasX, hasY);\r\n        }\r\n        const node = structuredClone(part);\r\n        if (BlissSVGBuilder.#expandLateShape(node, readings)) {\r\n          return BlissSVGBuilder.#spelledOutParts([node], keepsName, readings, sources, source && [...source, null],\r\n            offsetX, offsetY, writtenX, writtenY);\r\n        }\r\n      }\r\n      sources?.push(source);\r\n      if (!placesThrough) return [part];\r\n      const placed = { ...part };\r\n      if (hasX) placed.x = x;\r\n      if (hasY) placed.y = y;\r\n      return [placed];\r\n    });\r\n  }\r\n\r\n  // `parts`, each with `outer` under its own options: a part's own value wins,\r\n  // the order nested <g> attribute inheritance resolves to. Keys meet by the\r\n  // attribute they write, not by name: `color` writes `stroke` (and camel\r\n  // `strokeWidth` its kebab form), and the renderer lets the explicit key beat\r\n  // its alias, so an outer `stroke` beside a part's own `color` would flip the\r\n  // part's paint on reload unless it yields here. A part `outer` adds nothing\r\n  // to is left as it stands.\r\n  static #underOuterOptions(parts, outer) {\r\n    if (!outer) return parts;\r\n    const channel = (key) => (key === 'color' ? 'stroke' : key === 'strokeWidth' ? 'stroke-width' : key);\r\n    return parts.map((part) => {\r\n      const own = new Set(Object.keys(part.options ?? {}).map(channel));\r\n      const inherited = Object.entries(outer).filter(([key]) => !own.has(channel(key)));\r\n      return inherited.length > 0 ? { ...part, options: { ...Object.fromEntries(inherited), ...part.options } } : part;\r\n    });\r\n  }\r\n\r\n  // The parts a save writes for a character: spelled out, then each placed\r\n  // where the builder drew it. With `overlay`, the word's `;;` overlay on this\r\n  // character, the overlay's codes are placed along with them, and where\r\n  // `spellsOutCodes` (every save but `preserve`), a code named by a custom\r\n  // definition is written as the built-in codes it draws, as a part named by\r\n  // one is (#spelledOutWordCodes). `losesIndicator(part)` names a part the\r\n  // save's reload reads as plain ink though the builder drew it as an\r\n  // indicator; a character holding one is placed even where nothing in it is\r\n  // spelled out. Where `keepsIndicators` (the JSON, which can write the flag),\r\n  // each part spelled out of a custom indicator is marked as one\r\n  // (#flaggedAsIndicators) before it is placed, so the placement lays it out\r\n  // as the save's reload will. Returns `{ parts, codes }`, `codes` the\r\n  // overlay's codes as the save writes them where they are not the stored\r\n  // ones, else null.\r\n  static #writtenParts(parts, keepsName, readings, overlay = null, spellsOutCodes = false, losesIndicator = () => false, keepsIndicators = false) {\r\n    const spellsOutWordCodes = spellsOutCodes && !!overlay && BlissSVGBuilder.#namesCustomWordCode(overlay.codes ?? []);\r\n    const holdsLostIndicator = parts.some((part) => losesIndicator(part));\r\n    const sources = spellsOutWordCodes || holdsLostIndicator || BlissSVGBuilder.#mayDrawElsewhere(parts, overlay) ? [] : null;\r\n    const spelledOut = BlissSVGBuilder.#spelledOutParts(parts, keepsName, readings, sources);\r\n    const spelled = keepsIndicators && sources ? BlissSVGBuilder.#flaggedAsIndicators(parts, spelledOut, sources) : spelledOut;\r\n    if (!spellsOutWordCodes && !holdsLostIndicator && !sources?.some((path) => path.length > 1)) {\r\n      return { parts: spelled, codes: null };\r\n    }\r\n    return BlissSVGBuilder.#placedAsDrawn(parts, spelled, sources, overlay, readings, losesIndicator, spellsOutWordCodes);\r\n  }\r\n\r\n  // `spelled`, the parts #spelledOutParts writes for the stored `parts`, with\r\n  // each part spelled out of a custom indicator marked as one: a part takes\r\n  // the flag, and the `width` where one is stored, of the nearest flagged node\r\n  // on its way down in `sources`, which ends at the node it is written from,\r\n  // so a part that is an indicator itself keeps its own. A reload lays a\r\n  // flagged part out as an indicator, and its handles and `clearIndicators()`\r\n  // treat it as one, as the builder treated the code it came from. A `null`\r\n  // step leads into a shape defined after the build, which stored nothing\r\n  // below it, so the way down ends there; a shape holds no indicator. Sources\r\n  // are recorded wherever a custom indicator is among `parts`\r\n  // (#mayDrawElsewhere).\r\n  static #flaggedAsIndicators(parts, spelled, sources) {\r\n    return spelled.map((part, index) => {\r\n      let node = { parts };\r\n      let indicator = null;\r\n      for (const step of sources[index]) {\r\n        if (step === null) break;\r\n        node = node.parts[step];\r\n        if (node.isIndicator === true) indicator = node;\r\n      }\r\n      return indicator ? { ...part, isIndicator: true, ...(indicator.width !== undefined && { width: indicator.width }) } : part;\r\n    });\r\n  }\r\n\r\n  // Whether the parts a save writes for a character could draw anywhere but\r\n  // where the builder drew them, when the save can write what each part is.\r\n  // Only a custom code is spelled out, and a part written as stored keeps its\r\n  // own position; only the indicator layout (the character's own indicators,\r\n  // or the word's `;;` indicators on its head) places a part by what it is\r\n  // written next to. Asked before anything is recorded, so a composition of\r\n  // built-in codes saves as it always did.\r\n  static #mayDrawElsewhere(parts, overlay) {\r\n    return BlissSVGBuilder.#namesCustomCode(parts) && (!!overlay || BlissSVGBuilder.#holdsIndicator(parts));\r\n  }\r\n\r\n  // Whether any of `parts` is named by a custom code, the only kind a save\r\n  // spells out.\r\n  static #namesCustomCode(parts) {\r\n    return parts.some((part) => part.codeName && !builtInCodes.has(part.codeName));\r\n  }\r\n\r\n  // Whether any of a word's stored `;;` codes is named by a custom code.\r\n  static #namesCustomWordCode(codes) {\r\n    return codes.some((code) => !builtInCodes.has(getBareCode(code)));\r\n  }\r\n\r\n  static #holdsIndicator(parts) {\r\n    return parts.some((part) => part.isIndicator === true\r\n      || (Array.isArray(part.parts) && BlissSVGBuilder.#holdsIndicator(part.parts)));\r\n  }\r\n\r\n  // `spelled`, the parts a save writes for the stored character `original`,\r\n  // each at a position a reload draws it where the builder drew it: the\r\n  // written parts are read back as a reload reads them, and any part (or, with\r\n  // `overlay`, any of the word's `;;` codes) drawn elsewhere is given its drawn\r\n  // position on the axis that differs. A spelled-out part can be drawn\r\n  // elsewhere because the indicator layout places an indicator by what it is\r\n  // written next to: the base's own anchor, the span of the base it centres\r\n  // over, the row of indicators it sits in, and a custom part's anchor or a\r\n  // compound's own frame is gone once it is spelled out. A coordinate written\r\n  // on an indicator places it in the character whatever the layout would, so\r\n  // the save reloads as drawn in any instance, with or without the definitions.\r\n  // `sources` maps each written part to the stored node it came from (see\r\n  // #spelledOutParts).\r\n  //\r\n  // Returns `{ parts, codes }`: the parts as written, `codes` the overlay's\r\n  // codes where they are written otherwise than stored, else null. Where\r\n  // `spellsOutCodes`, the overlay's custom codes are spelled out\r\n  // (#spelledOutWordCodes): the indicators they draw stay `;;` codes, and any\r\n  // plain part among them, which a `;;` list cannot hold, is written on the\r\n  // character after its base parts, so the codes left in the list still meet\r\n  // the character's own indicators as they did. One placement serves every\r\n  // character of the same structure in one save, which `readings` memoizes as\r\n  // it does the save's other readings: nothing that places a part can change\r\n  // during a save, and each save brings its own `readings` with its own\r\n  // `losesIndicator` and `spellsOutCodes`. The parts handed back are the\r\n  // caller's own, never the memo's.\r\n  static #placedAsDrawn(original, spelled, sources, overlay, readings, losesIndicator, spellsOutCodes) {\r\n    const memoKey = 'placement:' + JSON.stringify([original, overlay], (name, value) => (name === 'key' ? undefined : value));\r\n    if (!readings.has(memoKey)) {\r\n      const storedCodes = overlay?.codes ?? [];\r\n      const wordCodes = spellsOutCodes ? BlissSVGBuilder.#spelledOutWordCodes(storedCodes, readings) : null;\r\n      const startCodes = wordCodes?.codes ?? storedCodes;\r\n      const origins = wordCodes?.origins ?? storedCodes.map((_, stored) => ({ stored, path: [0] }));\r\n      const toHead = wordCodes?.toHead ?? [];\r\n      const at = toHead.length > 0 ? BlissSVGBuilder.#indicatorsStartIn(spelled) : spelled.length;\r\n      const written = [\r\n        ...spelled.slice(0, at).map((part, index) => ({ part, source: sources[index] })),\r\n        ...toHead.map(({ part, stored, path }) => ({ part, origin: { stored, path } })),\r\n        ...spelled.slice(at).map((part, index) => ({ part, source: sources[at + index] })),\r\n      ];\r\n      const placed = BlissSVGBuilder.#placementOf(original, written, overlay, losesIndicator, startCodes, origins);\r\n      const parts = placed?.parts ?? written.map(({ part }) => part);\r\n      const codes = placed?.codes ?? startCodes;\r\n      readings.set(memoKey, {\r\n        moves: spelled.map((part, index) => {\r\n          const placedPart = parts[index < at ? index : index + toHead.length];\r\n          const move = {};\r\n          if (placedPart.x !== part.x) move.x = placedPart.x;\r\n          if (placedPart.y !== part.y) move.y = placedPart.y;\r\n          return Object.keys(move).length > 0 ? move : null;\r\n        }),\r\n        inserted: { at, parts: parts.slice(at, at + toHead.length) },\r\n        codes: codes.length !== storedCodes.length || codes.some((code, index) => code !== storedCodes[index]) ? codes : null,\r\n      });\r\n    }\r\n    const { moves, inserted, codes } = readings.get(memoKey);\r\n    const movedParts = spelled.map((part, index) => (moves[index] ? { ...part, ...moves[index] } : part));\r\n    return {\r\n      parts: [...movedParts.slice(0, inserted.at), ...inserted.parts.map((part) => structuredClone(part)),\r\n        ...movedParts.slice(inserted.at)],\r\n      codes,\r\n    };\r\n  }\r\n\r\n  // Where a character's spelled-out parts start its indicators: the first\r\n  // part after the first (the base, whatever it is) stored as an indicator,\r\n  // or the end. A custom indicator spelled out into a plain shape keeps that\r\n  // flag in the JSON, whose reload reads a part written before a base part as\r\n  // an ordinary one; the string writes it as plain ink, where the order of\r\n  // plain parts changes nothing.\r\n  static #indicatorsStartIn(parts) {\r\n    const start = parts.findIndex((part, index) => index > 0 && part.isIndicator === true);\r\n    return start === -1 ? parts.length : start;\r\n  }\r\n\r\n  // Where a save writes a character's parts and its word's `;;` codes so a\r\n  // reload draws them as the builder did. The builder's character is laid\r\n  // out once; the written parts are read back and compared in rounds,\r\n  // because a position written on a base part moves the centring of every\r\n  // indicator over it, so one write can move another part. A placement is\r\n  // kept only from a round in which every part and code it can match to the\r\n  // builder's drawing is drawn where the builder drew it. One still moving\r\n  // after the last round is no placement at all: the last guess is\r\n  // unverified, and where the rounds chase each other (a part left of the\r\n  // character's start re-origins every part) it has moved the base off its\r\n  // own position.\r\n  //\r\n  // `written` lists the parts in the order the save writes them, each with\r\n  // what it stands for in the builder's character: `source`, the path to the\r\n  // stored node it was spelled out of (see #spelledOutParts), or `origin`, the\r\n  // place inside one of the word's `;;` codes of a plain part taken off it\r\n  // (see #spelledOutWordCodes). `startCodes` are the overlay's codes as the\r\n  // save writes them, `origins[k]` the stored code written code k comes from\r\n  // and the path to it inside that code's node. A written part or code is\r\n  // compared with what it stands for, or with the semantic root the merge\r\n  // keeps, at their first leaf, the ink: a composite's frame moves as it\r\n  // re-origins its parts, its ink does not. A part the word's `;;` codes\r\n  // replaced is not drawn, so it is placed where the character draws it\r\n  // without them, as it shows once they are cleared.\r\n  //\r\n  // The comparison is made in the character's own frame, so it cannot see a\r\n  // written part move the frame itself. A part `losesIndicator` names is read\r\n  // back as plain ink, which the layout counts as base, so a placement is kept\r\n  // only where each such part the builder drew lies inside the base it drew\r\n  // (#leavesBaseSpan); else the character keeps the spelling it always had.\r\n  // One the codes replaced is not judged: the builder did not draw it, and a\r\n  // reload does wherever it is written. Nor is a part taken off a code, which\r\n  // has no other spelling: where the builder drew it is the nearest a reload\r\n  // can come.\r\n  //\r\n  // The codes are placed as written, whether or not a reload's merge meets\r\n  // the character's own parts with them as the builder's did (a code spelled\r\n  // out can reuse a part a name replaced, or move the semantic root): the\r\n  // default saves never write a custom name. Returns `{ parts, codes }`, or\r\n  // null where no placement is found, and the caller writes the parts and\r\n  // codes as spelled.\r\n  static #placementOf(original, written, overlay, losesIndicator, startCodes, origins) {\r\n    if (written.some(({ part }) => !part.codeName || part.errorCode)) return null;\r\n    const drawnHead = BlissSVGBuilder.#headMergedWith(original, overlay, overlay?.codes ?? []);\r\n    const drawn = BlissSVGBuilder.#characterLayout(drawnHead.parts);\r\n    if (!drawn) return null;\r\n    const drawnParts = new Map();\r\n    const drawnCodes = new Map();\r\n    let drawnRoot;\r\n    drawnHead.roles.forEach((role, index) => {\r\n      const child = drawn.children[index];\r\n      if (role.part !== undefined) drawnParts.set(role.part, child);\r\n      if (role.reused !== undefined) drawnParts.set(role.reused, child);\r\n      if (role.code !== undefined) drawnCodes.set(role.code, child);\r\n      if (role.root) drawnRoot = child;\r\n    });\r\n    const replaced = new Set(drawnHead.replaced);\r\n    const undrawn = replaced.size > 0 ? BlissSVGBuilder.#characterLayout(original) : null;\r\n    // The drawn node `steps` down from `node`. A `null` step leads into a\r\n    // part that was never stored, where nothing can be found.\r\n    const drawnBelow = (node, steps) => {\r\n      if (steps.includes(null)) return undefined;\r\n      let found = node;\r\n      for (const step of steps) found = found?.children[step];\r\n      return found;\r\n    };\r\n    const drawnOfCode = ({ stored, path }) => drawnBelow(drawnCodes.get(stored), path.slice(1));\r\n    const replacedAt = (index) => written[index].source !== undefined && replaced.has(written[index].source[0]);\r\n    const drawnOfPart = (index) => {\r\n      const { source, origin } = written[index];\r\n      if (origin) return drawnOfCode(origin);\r\n      return drawnBelow(replacedAt(index) ? undrawn?.children[source[0]] : drawnParts.get(source[0]), source.slice(1));\r\n    };\r\n    const differs = (value) => Math.abs(value) > 1e-9;\r\n    let parts = written.map(({ part }) => part);\r\n    let codes = startCodes;\r\n    for (let round = 0; round < 5; round++) {\r\n      const read = BlissSVGBuilder.#writtenPartsReadBack(parts, losesIndicator);\r\n      if (!read) return null;\r\n      const reloadHead = BlissSVGBuilder.#headMergedWith(read, overlay, codes);\r\n      const reload = BlissSVGBuilder.#characterLayout(reloadHead.parts);\r\n      if (!reload) return null;\r\n      const layoutPlacesIndicators = BlissSVGBuilder.#layoutPlacesIndicators(reload.children);\r\n      const nextParts = [...parts];\r\n      const nextCodes = [...codes];\r\n      let moved = false;\r\n      reloadHead.roles.forEach((role, index) => {\r\n        const child = reload.children[index];\r\n        const target = role.part !== undefined ? drawnOfPart(role.part)\r\n          : role.code !== undefined ? drawnOfCode(origins[role.code])\r\n            : drawnRoot;\r\n        if (!target) return;\r\n        const want = BlissSVGBuilder.#firstLeafOf(target);\r\n        const have = BlissSVGBuilder.#firstLeafOf(child);\r\n        const delta = { x: want.x - have.x, y: want.y - have.y };\r\n        if (!differs(delta.x) && !differs(delta.y)) return;\r\n        // A coordinate on an indicator the layout places is absolute in the\r\n        // character, so the drawn position is where the layout put its frame\r\n        // plus the difference; any other part sits at its written position.\r\n        const partIndex = role.part ?? role.reused;\r\n        const writtenAt = partIndex !== undefined ? parts[partIndex]\r\n          : role.code !== undefined ? BlissSVGBuilder.#wordCodeReading(codes[role.code]) : undefined;\r\n        if (!writtenAt) return;\r\n        const move = {};\r\n        for (const [axis, offset] of [['x', child.offsetX], ['y', child.offsetY]]) {\r\n          if (differs(delta[axis])) {\r\n            move[axis] = (child.isIndicator && layoutPlacesIndicators ? offset : (writtenAt[axis] ?? 0)) + delta[axis];\r\n          }\r\n        }\r\n        if (partIndex !== undefined) {\r\n          nextParts[partIndex] = { ...parts[partIndex], ...move };\r\n        } else {\r\n          nextCodes[role.code] = BlissSVGBuilder.#wordCodeAt(codes[role.code], { x: writtenAt.x, y: writtenAt.y, ...move });\r\n        }\r\n        moved = true;\r\n      });\r\n      if (!moved) {\r\n        const plainInk = written.flatMap(({ part }, index) =>\r\n          (losesIndicator(part) && !replacedAt(index) ? [drawnOfPart(index)] : []));\r\n        return BlissSVGBuilder.#leavesBaseSpan(drawn, plainInk.filter(Boolean)) ? null : { parts, codes };\r\n      }\r\n      parts = nextParts;\r\n      codes = nextCodes;\r\n    }\r\n    return null;\r\n  }\r\n\r\n  // Whether any of `nodes`, drawn in the character `drawn`, lies outside the\r\n  // ink span of that character's base: its parts drawn as no indicator, and\r\n  // always its first part, which the layout reads as the base whatever it is.\r\n  // A part drawn there as an indicator but read back as plain ink counts as\r\n  // base on reload, so outside that span it moves the character's start (left\r\n  // of it, the character re-origins its parts) or widens the character (right\r\n  // of it, every character after it moves), which no position written on it\r\n  // can undo.\r\n  static #leavesBaseSpan(drawn, nodes) {\r\n    const base = drawn.children.filter((child, index) => index === 0 || !child.isIndicator);\r\n    const minX = Math.min(...base.map((child) => child.bounds.minX));\r\n    const maxX = Math.max(...base.map((child) => child.bounds.maxX));\r\n    return nodes.some((node) => node.bounds.minX < minX - 1e-9 || node.bounds.maxX > maxX + 1e-9);\r\n  }\r\n\r\n  // A character's parts with the word's `;;` codes merged on, by the render's\r\n  // own merge, and what each merged part stands for: `{ part: i }`, the\r\n  // character's part i kept in front; `{ code: k }`, `codes[k]`; `{ root:\r\n  // true }`, the semantic root the merge keeps; and on either of the last two,\r\n  // `reused: i` where the merge reused the character's part i for it.\r\n  // `replaced` lists the character's parts the codes replaced. Without an\r\n  // overlay, or where the merge leaves the character as it is, every part\r\n  // stands for itself.\r\n  static #headMergedWith(parts, overlay, codes) {\r\n    const ownParts = (merged) => ({ parts: merged, roles: merged.map((_, index) => ({ part: index })), replaced: [] });\r\n    if (!overlay) return ownParts(parts);\r\n    const trace = {};\r\n    const merged = mergeWordIndicatorsOntoHead({ parts }, { ...overlay, codes }, blissElementDefinitions,\r\n      (text) => BlissParser.parse(text), trace);\r\n    if (!trace.applied) return ownParts(merged);\r\n    // The merge keeps the codes that are indicators, in order, with the\r\n    // semantic root first or last; the root is never one of those codes.\r\n    const indicatorCodes = codes.flatMap((code, index) => (filterToIndicators([code], blissElementDefinitions).length > 0 ? [index] : []));\r\n    let next = 0;\r\n    const finalRoles = trace.finalCodes.map((code) => (codes[indicatorCodes[next]] === code ? { code: indicatorCodes[next++] } : { root: true }));\r\n    const roles = merged.slice(0, trace.baseCount).map((_, index) => ({ part: index }));\r\n    for (const { finalIndex, reusedFrom } of trace.indicators) {\r\n      roles.push(reusedFrom === -1 ? finalRoles[finalIndex] : { ...finalRoles[finalIndex], reused: reusedFrom });\r\n    }\r\n    const reused = new Set(trace.indicators.map(({ reusedFrom }) => reusedFrom));\r\n    const replaced = parts.flatMap((_, index) => (index >= trace.baseCount && !reused.has(index) ? [index] : []));\r\n    return { parts: merged, roles, replaced };\r\n  }\r\n\r\n  // A character of `parts` laid out as the renderer lays one out: its\r\n  // snapshot, or null where a part cannot be drawn. The spacing between\r\n  // characters cannot reach inside one, so its values do not matter here.\r\n  static #characterLayout(parts) {\r\n    const warnings = [];\r\n    const character = new BlissElement({ parts }, {\r\n      level: 2,\r\n      sharedOptions: { charSpace: 2, wordSpace: 8, externalGlyphSpace: 0.8, warnings },\r\n    });\r\n    return warnings.length === 0 ? character.snapshot() : null;\r\n  }\r\n\r\n  // Written parts read back as a reload reads them: their codes and positions,\r\n  // as the string writes them, through the parser, and the indicator flag on\r\n  // each written part the save keeps it on (all but the ones `losesIndicator`\r\n  // names). The parser reads a flag from a code alone, so a plain shape the\r\n  // JSON writes flagged would read back as plain ink, where the JSON's reload\r\n  // lays it out as an indicator. Options are left out, since inside a\r\n  // character only positions move ink. Null where the text does not read back\r\n  // as one character of as many parts.\r\n  static #writtenPartsReadBack(parts, losesIndicator) {\r\n    const text = parts.map((part) => (part.codeName.startsWith('XTXT_') ? 'X' + part.codeName.slice(5) : part.codeName)\r\n      + BlissSVGBuilder.#positionSuffix(part.x, part.y)).join(';');\r\n    const { groups } = BlissParser.parse(text);\r\n    const glyphs = groups?.length === 1 ? groups[0].glyphs : undefined;\r\n    if (glyphs?.length !== 1 || glyphs[0].parts?.length !== parts.length) return null;\r\n    return glyphs[0].parts.map((read, index) => (parts[index].isIndicator === true && !losesIndicator(parts[index])\r\n      ? { ...read, isIndicator: true } : read));\r\n  }\r\n\r\n  // The layout's own test (BlissElement's part classification): it places a\r\n  // character's indicators only where its parts are base parts and then\r\n  // indicators alone. Otherwise every part sits where its position says.\r\n  static #layoutPlacesIndicators(children) {\r\n    const first = children.findIndex((child) => child.isIndicator);\r\n    return first !== -1 && children.slice(first).every((child) => child.isIndicator);\r\n  }\r\n\r\n  static #firstLeafOf(node) {\r\n    let leaf = node;\r\n    while (leaf.children.length > 0) leaf = leaf.children[0];\r\n    return leaf;\r\n  }\r\n\r\n  // The part one stored `;;` code reads as, its position included.\r\n  static #wordCodeReading(code) {\r\n    return wordIndicatorNode(code, blissElementDefinitions, (text) => BlissParser.parse(text));\r\n  }\r\n\r\n  // A word's stored `;;` codes as the default saves write them: a code named\r\n  // by a custom definition is spelled out (#wordCodeSpelling), each indicator\r\n  // it draws written as a `;;` code with that part's options (less what its\r\n  // own code brings) and its position. A plain part among them is taken off\r\n  // the list, which holds indicators only, to be written on the word's head\r\n  // as a plain part, its indicator flag and width dropped (in the JSON too:\r\n  // there an indicator flag would let the codes left in the list replace\r\n  // it). A code with no built-in spelling keeps its name: no built-in code\r\n  // draws what its own function draws, and a definition removed since the\r\n  // build has nothing left to spell.\r\n  //\r\n  // Returns `{ codes, origins, toHead }`, `origins[k]` naming where written\r\n  // code k comes from: `stored`, the stored code's index, and `path`, the way\r\n  // to it inside the part that code draws (`[0]` for that part itself; see\r\n  // #spelledOutParts); `toHead` the parts taken off, each with its `stored`\r\n  // and `path`. Null where no code is spelled out.\r\n  static #spelledOutWordCodes(codes, readings) {\r\n    const written = [];\r\n    const origins = [];\r\n    const toHead = [];\r\n    let spelledOut = false;\r\n    codes.forEach((code, stored) => {\r\n      const spelling = BlissSVGBuilder.#wordCodeSpelling(code, readings);\r\n      if (!spelling) {\r\n        written.push(code);\r\n        origins.push({ stored, path: [0] });\r\n        return;\r\n      }\r\n      spelling.parts.forEach((part, index) => {\r\n        const path = spelling.sources[index];\r\n        if (blissElementDefinitions[part.codeName].isIndicator === true) {\r\n          written.push(BlissSVGBuilder.#wordCodeText(part, readings));\r\n          origins.push({ stored, path });\r\n        } else {\r\n          const plain = { ...part };\r\n          delete plain.isIndicator;\r\n          delete plain.width;\r\n          toHead.push({ part: plain, stored, path });\r\n        }\r\n      });\r\n      spelledOut = true;\r\n    });\r\n    return spelledOut ? { codes: written, origins, toHead } : null;\r\n  }\r\n\r\n  // A stored `;;` code named by a custom definition, spelled out as a part\r\n  // named by one is (#spelledOutParts), from the part the overlay draws for\r\n  // it: `{ parts, sources }`, `sources[i]` the way to part i inside that part.\r\n  // Null for a built-in code, which is written as stored, and for a code that\r\n  // spells out into anything but built-in codes.\r\n  static #wordCodeSpelling(code, readings) {\r\n    if (builtInCodes.has(getBareCode(code))) return null;\r\n    const node = BlissSVGBuilder.#wordCodeReading(code);\r\n    if (!node) return null;\r\n    const sources = [];\r\n    const parts = BlissSVGBuilder.#spelledOutParts([node], () => false, readings, sources);\r\n    return parts.length > 0 && parts.every((part) => builtInCodes.has(part.codeName)) ? { parts, sources } : null;\r\n  }\r\n\r\n  // Whether the default saves take every one of a word's `;;` codes off its\r\n  // list, each spelling out into plain parts alone (#spelledOutWordCodes).\r\n  // Such a word is written as the flattened save writes it: with no code left\r\n  // in the list, nothing would replace the head's own indicators or drop its\r\n  // semantic root on reload as the codes did.\r\n  static #spellsOutOntoHeadAlone(codes, readings) {\r\n    return codes.length > 0 && codes.every((code) => {\r\n      const spelling = BlissSVGBuilder.#wordCodeSpelling(code, readings);\r\n      return spelling !== null\r\n        && spelling.parts.every((part) => blissElementDefinitions[part.codeName].isIndicator !== true);\r\n    });\r\n  }\r\n\r\n  // One spelled-out part written as a `;;` code: its options as a part\r\n  // bracket, less the look its own code brings, then the code and position.\r\n  static #wordCodeText(part, readings) {\r\n    const bracket = serializeOptions(\r\n      BlissSVGBuilder.#withoutLook(part.options, part.options && BlissSVGBuilder.#ownLookOf(part.codeName, readings)));\r\n    const code = part.codeName + BlissSVGBuilder.#positionSuffix(part.x, part.y);\r\n    return bracket ? `${bracket}>${code}` : code;\r\n  }\r\n\r\n  // `head`, the character of a word with no designation written that its\r\n  // `;;` codes are drawn on, where a reload of the word as written would\r\n  // carry them onto another one; else -1. `groupStr` is the word as written,\r\n  // its `;;` codes left off, and `glyphArrays[i]` what character i is written\r\n  // as, its code last. The head is picked by code, and a custom code is\r\n  // written as the code it draws, which can rank otherwise: a glyph defined\r\n  // as `B937` (\"more\") is a head, `B937` itself is skipped as one.\r\n  static #movedHead(head, glyphArrays, groupStr) {\r\n    const { groups } = BlissParser.parse(groupStr);\r\n    if (groups?.length !== 1) return -1;\r\n    const writtenBefore = glyphArrays.slice(0, head).filter((segments) => segments.at(-1)).length;\r\n    return resolveOverlayHeadIndex(groups[0].glyphs) === writtenBefore ? -1 : head;\r\n  }\r\n\r\n  // A stored `;;` code at `position`: its option bracket and code as written,\r\n  // the position in the `:x,y` spelling. The code is the last occurrence of\r\n  // its own name, since a position holds no letters and a bracket can.\r\n  static #wordCodeAt(code, { x, y }) {\r\n    const bare = getBareCode(code);\r\n    return code.slice(0, code.lastIndexOf(bare)) + bare + BlissSVGBuilder.#positionSuffix(x, y);\r\n  }\r\n\r\n  // One word-level (`;;`) code without its options: the code and its position\r\n  // stay, the position in the `:x,y` spelling. The overlay stores each code as\r\n  // the text it was written as, brackets included, so its options live in the\r\n  // text rather than in a bag. A code named by a definition keeps its name, and\r\n  // with it the options the definition brings, which are part of what the code\r\n  // is, as they are on a part named by one.\r\n  static #wordIndicatorCodeWithoutOptions(code) {\r\n    if (!code.startsWith('[')) return code;\r\n    const node = wordIndicatorNode(code, blissElementDefinitions, (text) => BlissParser.parse(text));\r\n    if (!node) return code;\r\n    return getBareCode(code) + BlissSVGBuilder.#positionSuffix(node.x, node.y);\r\n  }\r\n\r\n  // Determine the type of a definition entry.\r\n  // Single source of truth used by getDefinition, listDefinitions,\r\n  // patchDefinition, and #validateReferences.\r\n  static #detectType(def) {\r\n    if (def.isShape) return 'shape';\r\n    if (def.isExternalGlyph) return 'externalGlyph';\r\n    if (def.isBlissGlyph || def.glyphCode) return 'glyph';\r\n    if (def.codeString !== undefined) return 'bare';\r\n    return 'space';\r\n  }\r\n\r\n  // The bare-alias discriminator for the preserve-mode base-slot guards: a\r\n  // name whose definition is a pure rename ({codeString} only, no identity)\r\n  // sheds its `;`-siblings on reparse (strict separation), so such a name\r\n  // never heads a multi-part emission; typed names dumb-append and round-trip.\r\n  static #isBareAliasDefinition(def) {\r\n    return !!def && BlissSVGBuilder.#detectType(def) === 'bare';\r\n  }\r\n\r\n  // Written-name consult for the glyph-level\r\n  // recording. Walks single-code links from `name`; the name is emittable\r\n  // only when the chain passes a CUSTOM definition with identity (typed\r\n  // shape/glyph/indicator; bare shorthand never qualifies) AND the glyph is a\r\n  // clean instance: it has exactly the parts the name reloads to, and still\r\n  // carries every option key the name supplies. The part match already asks\r\n  // more of the parts than the key check does, so reading every level costs\r\n  // the public JSON nothing it keeps, where the parts below them are gone.\r\n  static #preservedWrittenName(name, glyph, readings) {\r\n    const { parts } = glyph;\r\n    let code = name;\r\n    let identityDef = null;\r\n    const seen = new Set();\r\n    while (!seen.has(code)) {\r\n      seen.add(code);\r\n      if (builtInCodes.has(code)) break;\r\n      const def = Object.prototype.hasOwnProperty.call(blissElementDefinitions, code)\r\n        ? blissElementDefinitions[code] : undefined;\r\n      if (!def || typeof def.codeString !== 'string') break;\r\n      if (def.isBlissGlyph || def.isShape || def.isExternalGlyph\r\n          || def.glyphCode || def.isIndicator === true\r\n          || typeof def.getPath === 'function') {\r\n        identityDef = def;\r\n      }\r\n      const renamed = BlissSVGBuilder.#renamedCode(def.codeString);\r\n      if (!SINGLE_CODE_TOKEN.test(renamed)) break;\r\n      code = renamed;\r\n    }\r\n    if (!identityDef || !Array.isArray(parts)) return null;\r\n    const named = BlissSVGBuilder.#partsNamedBy(name, readings);\r\n    return named && parts.length === named.length\r\n      && BlissSVGBuilder.#startsWithParts(parts, named)\r\n      && BlissSVGBuilder.#keepsNamedOptions(glyph, name, 'glyph', readings) ? name : null;\r\n  }\r\n\r\n  // The parser's own reading of `code` alone, so the definition's spelling\r\n  // cannot matter (`[x=2]>S8`, `S8:2` and `S8:2,` are one part). At 'glyph'\r\n  // level it is the one character the code reads as; at 'part' level the part\r\n  // it reads as in a `;` slot, through the scaffold the part methods parse a\r\n  // new part with. The two differ where a name stands for several codes,\r\n  // which alone are several parts of the character and in a slot one part\r\n  // holding them.\r\n  // Null when the code does not read as one character or one part, which a\r\n  // name holding a separator can do: define() accepts one, and the parser\r\n  // splits on the separator before it looks the name up. `readings` memoizes\r\n  // it for one save, during which no definition can change.\r\n  static #readingOf(code, level, readings) {\r\n    const memoKey = `${level}:${code}`;\r\n    if (readings.has(memoKey)) return readings.get(memoKey);\r\n    const { groups } = BlissParser.parse(level === 'part' ? `H;${code}` : code);\r\n    const glyphs = groups?.length === 1 ? groups[0].glyphs : undefined;\r\n    const glyph = glyphs?.length === 1 ? glyphs[0] : undefined;\r\n    let reading = null;\r\n    if (level === 'glyph') {\r\n      if (Array.isArray(glyph?.parts)) reading = glyph;\r\n    } else if (glyph?.parts?.length === 2) {\r\n      reading = glyph.parts[1];\r\n    }\r\n    readings.set(memoKey, reading);\r\n    return reading;\r\n  }\r\n\r\n  // Whether `name` written alone draws what it draws as the one part of a\r\n  // character, read in a `;` slot. A typed definition and an alias of one\r\n  // code read alike, a slot reading an alias through every link it renames as\r\n  // the name standing alone does; an alias of several codes is the\r\n  // character's parts alone but one part holding them in a slot, which can\r\n  // group them differently. Drawn, not derived, so no rule about which names\r\n  // read alike can drift from the renderer.\r\n  static #readsAloneAsInSlot(name, readings) {\r\n    const memoKey = `alone:${name}`;\r\n    if (!readings.has(memoKey)) {\r\n      readings.set(memoKey, new BlissSVGBuilder(name).svgCode === new BlissSVGBuilder(`;${name}`).svgCode);\r\n    }\r\n    return readings.get(memoKey);\r\n  }\r\n\r\n  // The parts a custom name reloads to as a character, or null.\r\n  static #partsNamedBy(name, readings) {\r\n    return BlissSVGBuilder.#readingOf(name, 'glyph', readings)?.parts ?? null;\r\n  }\r\n\r\n  // Whether an element written by its custom name still carries every option\r\n  // key that reading the name back supplies, each level against the same\r\n  // level of the element: a key the name puts on a part is not carried by the\r\n  // character holding it. A name that fails would bring the key back on\r\n  // reload, so the element is spelled out instead. Presence, not value: an\r\n  // override keeps the name, and the name reloads the override. A name that\r\n  // does not read as one element cannot vouch for anything, so it fails.\r\n  //\r\n  // `levels` is how far down the save's route reads the name back. The string\r\n  // writes the name alone, so reading it back restores every level it reaches\r\n  // (Infinity). The public JSON writes a character's parts out beside its\r\n  // name, so the name restores only the character's own options there (0),\r\n  // and each part is judged by its own name.\r\n  //\r\n  // Only custom names are asked about. A built-in is never spelled out, and a\r\n  // shape drawn by its own function has nothing to spell out into.\r\n  static #keepsNamedOptions(node, name, level, readings, levels = Infinity) {\r\n    const reading = BlissSVGBuilder.#readingOf(name, level, readings);\r\n    return !!reading && BlissSVGBuilder.#carriesKeysOf(node, reading, levels);\r\n  }\r\n\r\n  // Whether `node` holds a value for every key `reading` holds, at its own\r\n  // level and then, `levels` deep, part by part below it. A part the element\r\n  // no longer has carries nothing. A part with no parts array is written by\r\n  // its name, which brings its inner parts back whatever this answers.\r\n  //\r\n  // At the element's own level a value is held when the string writes it,\r\n  // beside the name, so a `false` there is held like any override. Below it the\r\n  // string writes the name alone, so a key set to `false` there is a default\r\n  // left out that the name would bring back, and is not held.\r\n  static #carriesKeysOf(node, reading, levels, below = false) {\r\n    const writtenKeys = (bag) => Object.entries(bag ?? {})\r\n      .filter(([key, value]) => (below ? value !== false : writesOptionValue(key, value)))\r\n      .map(([key]) => programmaticOptionKey(key));\r\n    const held = new Set(writtenKeys(node?.options));\r\n    if (!writtenKeys(reading.options).every((key) => held.has(key))) return false;\r\n    const parts = node ? node.parts : [];\r\n    if (levels === 0 || !Array.isArray(parts)) return true;\r\n    return (reading.parts ?? []).every((part, i) => BlissSVGBuilder.#carriesKeysOf(parts[i], part, levels - 1, true));\r\n  }\r\n\r\n  // Whether `parts` begins with `named`, part for part, judged on the written\r\n  // anatomy rather than on text: comparing a glyph with the text of its\r\n  // definition read every spelling the save does not reproduce as a change\r\n  // (`[x=2]>S8` against `S8:2`, `stroke-width` against the published\r\n  // `strokeWidth`), and silently dropped the name.\r\n  //\r\n  // Axis PRESENCE counts: an axis the definition never wrote is a change even\r\n  // at 0, because only the layout knows whether it is inert, and a kept name is\r\n  // the one direction that can move ink. Nested parts are not compared, since\r\n  // a part's own name writes them back on every save whatever this answers.\r\n  static #startsWithParts(parts, named) {\r\n    if (parts.length < named.length) return false;\r\n    return named.every((part, i) => {\r\n      const candidate = parts[i];\r\n      return BlissSVGBuilder.#drawnCode(candidate.codeName) === BlissSVGBuilder.#drawnCode(part.codeName)\r\n        && candidate.x === part.x && candidate.y === part.y\r\n        && BlissSVGBuilder.#optionsKey(candidate.options) === BlissSVGBuilder.#optionsKey(part.options);\r\n    });\r\n  }\r\n\r\n  // The code a part draws, following single-code links to their end, which is\r\n  // how the parser reads a single-code rename. The preserve strip renames a\r\n  // part back to the alias it was written as, and only where the part's\r\n  // context allows it, while a part rebuilt from a save may carry no record of\r\n  // the alias at all, so the names as they stand would read one part as two.\r\n  static #drawnCode(code) {\r\n    const seen = new Set();\r\n    while (!seen.has(code)) {\r\n      seen.add(code);\r\n      const written = Object.prototype.hasOwnProperty.call(blissElementDefinitions, code)\r\n        ? blissElementDefinitions[code].codeString : undefined;\r\n      const next = typeof written === 'string' ? BlissSVGBuilder.#renamedCode(written) : undefined;\r\n      if (typeof next !== 'string' || !Object.prototype.hasOwnProperty.call(blissElementDefinitions, next)) break;\r\n      code = next;\r\n    }\r\n    return code;\r\n  }\r\n\r\n  // An options bag in a form two bags can be compared in: each name under the\r\n  // spelling toJSON publishes it with, so a bag toJSON has already published\r\n  // (`strokeWidth`) meets one still stored (`stroke-width`), and in no\r\n  // particular order, since a bag has none. Publication rather than name\r\n  // resolution: both bags were admitted already, so nothing here is ingest.\r\n  // The runtime `key` names an element and draws nothing, so it is left out:\r\n  // every save strips it, and an object can carry one on any part.\r\n  static #optionsKey(options) {\r\n    return Object.entries(options ?? {})\r\n      .filter(([key]) => key !== 'key')\r\n      .map(([key, value]) => `${programmaticOptionKey(key)}=${serializeOptionValue(value)}`)\r\n      .sort()\r\n      .join(';');\r\n  }\r\n\r\n  // A rename chain is pure when every link is a single bare token down to a\r\n  // built-in, primitive, or unknown end, or to a definition with an identity\r\n  // of its own (a typed glyph, shape or indicator), which holds its anatomy\r\n  // as the part's parts, however many codes it has. A decorated custom\r\n  // anatomy (coordinates, options, or several parts) dissolves its state INTO\r\n  // the parsed part, so restoring the written name onto a decorated part\r\n  // would re-emit that state as instance decoration and shift the reparse.\r\n  // A link that places the code it renames (`RED:1,0`) is pure too: the part\r\n  // records the position such links add (#positionAtUse).\r\n  static #renameChainIsPure(name) {\r\n    let code = name;\r\n    const seen = new Set();\r\n    while (!builtInCodes.has(code)) {\r\n      if (seen.has(code)) return false;\r\n      seen.add(code);\r\n      const def = Object.prototype.hasOwnProperty.call(blissElementDefinitions, code)\r\n        ? blissElementDefinitions[code] : undefined;\r\n      if (!def || typeof def.codeString !== 'string') return true;\r\n      if (!BlissSVGBuilder.#isBareAliasDefinition(def)) return true;\r\n      const renamed = BlissSVGBuilder.#renamedCode(def.codeString).replace(COORD_SUFFIX_PATTERN, '');\r\n      if (!SINGLE_CODE_TOKEN.test(renamed)) return false;\r\n      code = renamed;\r\n    }\r\n    return true;\r\n  }\r\n\r\n  // The position written where a name was used, for a part the name places\r\n  // (`_aliasPosition`, the position its links add): the part's own, less\r\n  // theirs, an axis they place left unset where nothing is left on it, as the\r\n  // name sets that axis wherever it is used. Null where the part has lost an\r\n  // axis the name places, since no use of the name leaves it unset.\r\n  static #positionAtUse(part) {\r\n    const placed = part._aliasPosition ?? {};\r\n    const used = { x: part.x, y: part.y };\r\n    for (const axis of ['x', 'y']) {\r\n      if (placed[axis] === undefined) continue;\r\n      if (part[axis] === undefined) return null;\r\n      const rest = BlissSVGBuilder.#addendOf(part[axis], placed[axis]);\r\n      used[axis] = rest === 0 ? undefined : rest;\r\n    }\r\n    return used;\r\n  }\r\n\r\n  // The shortest number that, added to `placed`, gives `total` again: the\r\n  // position written beside one a name's links add, without the binary\r\n  // rounding their sum carries (0.2 written beside a link's 0.1 is placed at\r\n  // 0.30000000000000004, and that less 0.1 is 0.20000000000000004). Seventeen\r\n  // significant digits give back any double, so the search ends there.\r\n  static #addendOf(total, placed) {\r\n    const rest = total - placed;\r\n    for (let digits = 1; digits <= 17; digits++) {\r\n      const candidate = Number(rest.toPrecision(digits));\r\n      if (candidate + placed === total) return candidate;\r\n    }\r\n    return rest;\r\n  }\r\n\r\n  // The code a definition's code string renames, read behind the character\r\n  // brackets leading it: such a bracket is the definition's own options, as its\r\n  // defaultOptions are, so it does not turn a rename into a composition. The\r\n  // same reading the alias resolution and the parser make.\r\n  static #renamedCode(codeString) {\r\n    return peelCharacterBrackets(codeString).body;\r\n  }\r\n\r\n  // Check if a codeString references only allowed types. Each code is judged\r\n  // as a part slot reads it (slotCodeOf): a letter without an outline, in any\r\n  // spelling, draws as a text-fallback glyph and is an external glyph, as an\r\n  // outlined letter is, though no definition is registered under it.\r\n  static #validateReferences(code, codeString, allowedTypes) {\r\n    const refs = BlissSVGBuilder.#extractReferencedCodes(codeString);\r\n    for (const ref of refs) {\r\n      if (ref === code) {\r\n        return `\"${code}\": circular reference (references itself)`;\r\n      }\r\n      const read = slotCodeOf(ref);\r\n      const def = blissElementDefinitions[read];\r\n      const type = read.startsWith('XTXT_') ? 'externalGlyph' : def && BlissSVGBuilder.#detectType(def);\r\n      if (!type) continue; // Unknown codes will fail at parse time\r\n      if (!allowedTypes.includes(type)) {\r\n        return `\"${code}\": cannot reference ${type} \"${ref}\". Allowed types: ${allowedTypes.join(', ')}`;\r\n      }\r\n    }\r\n    return null;\r\n  }\r\n\r\n  // Detect circular references via depth-first traversal\r\n  static #hasCircularReference(code, codeString) {\r\n    const visited = new Set();\r\n    const walk = (refs) => {\r\n      for (const ref of refs) {\r\n        if (ref === code) return true;\r\n        if (visited.has(ref)) continue;\r\n        visited.add(ref);\r\n        const def = blissElementDefinitions[ref];\r\n        if (def?.codeString) {\r\n          const subRefs = BlissSVGBuilder.#extractReferencedCodes(def.codeString);\r\n          if (walk(subRefs)) return true;\r\n        }\r\n      }\r\n      return false;\r\n    };\r\n    return walk(BlissSVGBuilder.#extractReferencedCodes(codeString));\r\n  }\r\n\r\n  // Deferred validation of forward references: define() accepts\r\n  // a codeString that references a not-yet-defined code, so the\r\n  // indicator-bake guard can be bypassed by definition ORDER — the\r\n  // glyph registers while its reference is unknown, and a later define/patch\r\n  // makes that reference an indicator. This scan runs at that later moment,\r\n  // the completing call: with `code` about to become `newEntry`, every\r\n  // custom glyph definition (not itself a compound indicator) is re-checked\r\n  // for a reference that would now resolve to an indicator (through\r\n  // pure-rename aliases too, so a bare-alias completion cannot slip\r\n  // through). A conflict rejects the COMPLETING call and changes nothing:\r\n  // either definition order ends in the same refusal.\r\n  static #assertNoIndicatorBakeDependents(callName, code, newEntry) {\r\n    const view = { ...blissElementDefinitions, [code]: newEntry };\r\n    const dependents = [];\r\n    for (const [depCode, depDef] of Object.entries(blissElementDefinitions)) {\r\n      if (depCode === code) continue;\r\n      if (depDef.isBlissGlyph !== true || depDef.isIndicator === true || typeof depDef.codeString !== 'string') continue;\r\n      const refs = BlissSVGBuilder.#extractReferencedCodes(depDef.codeString);\r\n      const bakes = refs.some(ref => {\r\n        const refDef = Object.prototype.hasOwnProperty.call(view, ref) ? view[ref] : undefined;\r\n        return refDef !== undefined && resolveEffectiveDefinition(refDef, view)?.isIndicator === true;\r\n      });\r\n      if (bakes) dependents.push(depCode);\r\n    }\r\n    if (dependents.length > 0) {\r\n      const plural = dependents.length > 1 ? 's' : '';\r\n      const list = dependents.map(d => `\"${d}\"`).join(', ');\r\n      throw new Error(`${callName}(\"${code}\"): making \"${code}\" an indicator would make the glyph definition${plural} ${list} bake an indicator, a state define() rejects. Remove or redefine the dependent definition${plural} first, then define \"${code}\".`);\r\n    }\r\n  }\r\n\r\n  // Word-internal coordinate guard shared by #defineBare and patchDefinition\r\n  // (coordinate ownership: coordinates belong at the usage site, never baked\r\n  // into a portable word alias). Kerning markers (RK:/AK:) are spacing, not\r\n  // coordinates, so their `:` values are exempt (GH #36 false-positive fix).\r\n  static #assertNoWordInternalCoordinates(callName, code, codeString) {\r\n    if (!codeString.includes('/')) return;\r\n    const segments = codeString.split(/[/;]/).filter(Boolean);\r\n    const hasCoords = segments.some(seg => !/^(?:RK|AK)(?::|$)/.test(seg) && WRITTEN_COORDINATE_PATTERN.test(seg));\r\n    if (hasCoords) {\r\n      throw new Error(`${callName}(\"${code}\"): word definitions (containing /) cannot have internal coordinates. Move coordinates to the usage site.`);\r\n    }\r\n  }\r\n\r\n  // An SP segment in a stored codeString can never resolve: SP has meaning\r\n  // only at the top level, where punctuation context turns it into TSP/QSP.\r\n  // `/SP/` is written sugar for `//`, so a definition using it normalizes to\r\n  // the `//` form silently. Quote-bearing\r\n  // codeStrings are left untouched: definition ingestion is quote-unaware\r\n  // today (post-1.0.0 family), and a naive split could cut inside a quoted\r\n  // option value.\r\n  static #normalizeSpaceSegments(codeString) {\r\n    if (!codeString.includes('/') || /[\"']/.test(codeString)) return codeString;\r\n    const segments = codeString.split('/');\r\n    const normalized = [];\r\n    for (let i = 0; i < segments.length; i++) {\r\n      if (segments[i] === 'SP') {\r\n        normalized.push('');\r\n        // An interior SP sits between two real slashes, so one empty segment\r\n        // reproduces `//`; an edge SP has only one neighboring slash, so it\r\n        // needs a second empty segment or the space silently vanishes\r\n        // (`SP/B291` must store `//B291`, not `/B291`).\r\n        if (i === 0 || i === segments.length - 1) normalized.push('');\r\n      } else {\r\n        normalized.push(segments[i]);\r\n      }\r\n    }\r\n    return normalized.join('/');\r\n  }\r\n\r\n  // ── Private define helpers ──────────────────────────────────────\r\n\r\n  static #defineShape(code, definition, codeString, options = {}, warnings) {\r\n    BlissSVGBuilder.#validateCode(code);\r\n\r\n    const hasGetPath = typeof definition?.getPath === 'function';\r\n    const hasCodeString = typeof codeString === 'string' && codeString.trim().length > 0;\r\n\r\n    if (!hasGetPath && !hasCodeString) {\r\n      throw new Error(`define(\"${code}\"): shape requires either \"getPath\" (function) or \"codeString\" (non-empty, non-whitespace string).`);\r\n    }\r\n\r\n    if (hasGetPath) {\r\n      if (typeof definition.width !== 'number' || !isFinite(definition.width)) {\r\n        throw new Error(`define(\"${code}\"): \"width\" must be a finite number.`);\r\n      }\r\n      if (typeof definition.height !== 'number' || !isFinite(definition.height)) {\r\n        throw new Error(`define(\"${code}\"): \"height\" must be a finite number.`);\r\n      }\r\n    }\r\n\r\n    // Shapes can only reference other shapes\r\n    if (hasCodeString) {\r\n      const refError = BlissSVGBuilder.#validateReferences(code, codeString, ['shape']);\r\n      if (refError) throw new Error(`define(${refError})`);\r\n      if (BlissSVGBuilder.#hasCircularReference(code, codeString)) {\r\n        throw new Error(`define(\"${code}\"): circular reference detected`);\r\n      }\r\n      // A shape is a single character; `/` and `//` are word separators, so a\r\n      // `/`-bearing codeString is a word, not a shape. Define a word as a bare\r\n      // alias (omit type:\"shape\"). (Strict Indicator Separation.)\r\n      if (codeString.includes('/')) {\r\n        throw new Error(`define(\"${code}\"): a shape definition cannot be a multi-character word (its codeString contains \"/\"). Define a word as a bare alias (omit type:\"shape\").`);\r\n      }\r\n\r\n      // `;;` is a word-level indicator (a word property); a shape is a single\r\n      // character, so it cannot carry one. (Strict Indicator Separation.)\r\n      if (codeString.includes(';;')) {\r\n        throw new Error(`define(\"${code}\"): a shape definition cannot contain a word-level indicator (\";;\"); a shape is a single character.`);\r\n      }\r\n\r\n      const shapeRunWord = BlissSVGBuilder.#expandedRunWord(codeString);\r\n      if (shapeRunWord) {\r\n        throw new Error(`define(\"${code}\"): a shape definition cannot be a multi-character word (\"${codeString}\" is shorthand for \"${shapeRunWord}\"). Define a word as a bare alias (omit type:\"shape\").`);\r\n      }\r\n    }\r\n\r\n    BlissSVGBuilder.#assertReplaceable(code, options);\r\n\r\n    const entry = { isShape: true };\r\n\r\n    if (hasGetPath) {\r\n      entry.getPath = definition.getPath;\r\n      entry.width = definition.width;\r\n      entry.height = definition.height;\r\n      if (definition.x !== undefined) entry.x = definition.x;\r\n      if (definition.y !== undefined) entry.y = definition.y;\r\n      if (definition.extraPathOptions) entry.extraPathOptions = definition.extraPathOptions;\r\n    } else {\r\n      entry.codeString = codeString;\r\n    }\r\n\r\n    if (definition.defaultOptions && typeof definition.defaultOptions === 'object') {\r\n      // Snapshot ONCE, validate the snapshot, store the SAME snapshot: the\r\n      // guard must judge exactly what the registry keeps, or an accessor /\r\n      // Proxy could show one set of keys to validation and another to storage.\r\n      const defaultOptionsSnapshot = { ...definition.defaultOptions };\r\n      if (Object.keys(defaultOptionsSnapshot).length > 0) {\r\n        BlissSVGBuilder.#assertDefaultOptionsDescribeTheCharacter('define', code, defaultOptionsSnapshot);\r\n        entry.defaultOptions = BlissSVGBuilder.#toCuratedSpelling(defaultOptionsSnapshot, code, warnings);\r\n      }\r\n    }\r\n\r\n    if (!hasGetPath) {\r\n      BlissSVGBuilder.#assertOwnBracketDescribesTheCharacter('define', code, entry.codeString);\r\n      BlissSVGBuilder.#assertCodeStringReadable('define', code, 'shape', entry);\r\n    }\r\n\r\n    blissElementDefinitions[code] = entry;\r\n  }\r\n\r\n  // `define()` and `patchDefinition()` are JavaScript entry points, so camelCase\r\n  // is their spelling of the curated vocabulary, exactly as it is the\r\n  // constructor's, `addGlyph`'s and the handle setters'. They translate it the\r\n  // same way and by the same gate: only names the library owns in BOTH spellings\r\n  // are touched, because hyphenating an arbitrary name is a guess that would\r\n  // destroy `preserveAspectRatio` and every camelCase data attribute.\r\n  //\r\n  // Runs AFTER the defaultOptions guard, on the object that guard judged, for two\r\n  // reasons. The guard's error must name the spelling the caller typed, or it\r\n  // tells them to fix a key they never wrote; and translating first could not\r\n  // smuggle anything past it anyway, since it already tests both spellings.\r\n  //\r\n  // A loss is reported here for the same reason it is reported at every other\r\n  // ingest site: a definition's defaults reach a composition as authored\r\n  // options, so a value refused there must be refused here too, and a value\r\n  // displaced by a second spelling of its name is gone just as quietly. This\r\n  // bag had no route out until the spelling report needed one, so `define()`\r\n  // and `patchDefinition()` grew one rather than folding the report into\r\n  // `errors`, which would claim the definition was refused when it is\r\n  // registered and usable. Both reports name the code because one `define()`\r\n  // call can carry many, and the caller otherwise cannot tell which definition\r\n  // the lost value came from.\r\n  static #toCuratedSpelling(defaultOptions, code, warnings) {\r\n    const translated = {};\r\n    const warn = warnings\r\n      ? (w) => warnings.push({ ...w, message: `\"${code}\": ${w.message}` })\r\n      : undefined;\r\n    for (const [key, value] of admitOptions(Object.entries(defaultOptions), warn)) {\r\n      translated[key] = value;\r\n    }\r\n    return translated;\r\n  }\r\n\r\n  // A definition says what a character IS, and its defaultOptions attach to\r\n  // every use of it, at character or part level depending on how the use is\r\n  // written. So a key can be a default only if it means the same thing at every\r\n  // use, and five kinds cannot:\r\n  // - A builder-canvas (global-only) key and a layer key (but an element\r\n  //   background's) act on the whole SVG, so they are inert at every use, and\r\n  //   a ;; overlay stores the definition NAME, so no parse boundary would ever\r\n  //   report them.\r\n  // - A position or kerning key says where ONE use sits: in its parent, or\r\n  //   after its neighbour. As a default neither had one meaning. Kerning\r\n  //   applied where the definition stood as a character and was saved as a\r\n  //   misplaced bracket where it stood as a part, and a position beat the\r\n  //   coordinate the author wrote at the use site.\r\n  // - `key` identifies one element, so as a default every use claims the same.\r\n  // Refused at the source, like the codeString guards, in the spelling the\r\n  // caller typed. The translation to the stored spelling runs after this guard,\r\n  // so a canvas key is checked in both spellings and a use-site key by the name\r\n  // it will be stored under.\r\n  //\r\n  // `subject` names where the options were written: `defaultOptions`, or the\r\n  // character bracket leading a code string, which is the definition's own\r\n  // options too and so is judged by this same guard.\r\n  static #assertDefaultOptionsDescribeTheCharacter(callName, code, defaultOptions, subject = 'defaultOptions') {\r\n    for (const key of Object.keys(defaultOptions)) {\r\n      // Trim before matching: the serializer emits a padded key as\r\n      // '[ margin=2]' and #parseOptions reads that as plain 'margin', so a\r\n      // whitespace-padded spelling IS the global-only key at the next\r\n      // boundary.\r\n      const normalized = key.trim();\r\n      // A key must be a well-formed option name at all (camelCase names pass\r\n      // the same test): anything else — '=', ';', brackets, inner spaces —\r\n      // would smuggle arbitrary option text into the serialized bracket,\r\n      // where the parser can read a key this guard never saw\r\n      // ('margin=2;color' emits as '[margin=2;color=red]').\r\n      if (!isSafeAttributeName(normalized)) {\r\n        throw new Error(`${callName}(\"${code}\"): ${subject} cannot include \"${key}\": it is not a valid option name.`);\r\n      }\r\n      // The two internal names have no curated kebab twin, so neither spelling\r\n      // test below can see that they mean `crop`, which IS global-only:\r\n      // `camelToKebab` gives `auto-vertical`, which is not an option at all.\r\n      // Resolved through the same lookup the options pass uses, or the guard\r\n      // refuses `crop` while accepting two spellings of it — and an accepted one\r\n      // is stored, is inert here exactly as `crop` would be, and then reports\r\n      // MISPLACED_OPTION_SPELLING at render naming a remedy this guard refuses.\r\n      const internalOnly = INTERNAL_ONLY_SPELLINGS.get(normalized);\r\n      const meant = internalOnly ? internalOnly.split('=')[0] : normalized;\r\n      if (GLOBAL_ONLY_OPTION_KEYS.has(meant) || GLOBAL_ONLY_OPTION_KEYS.has(camelToKebab(meant))) {\r\n        const named = internalOnly\r\n          ? `\"${key}\", the library's internal name for the global-only option \"${internalOnly}\"`\r\n          : `the global-only option \"${key}\"`;\r\n        throw new Error(`${callName}(\"${code}\"): ${subject} cannot include ${named}; it configures the whole SVG and would be inert on a definition. Set it in the global bracket ([...]||) or the builder options instead.`);\r\n      }\r\n      // Same reasoning one step along: a layer key targets a layer of the whole\r\n      // SVG, so it is inert wherever a definition's defaults attach. An element\r\n      // background's is not: it styles the backgrounds inside the element it\r\n      // is written on, so as a default it means the same thing at every use.\r\n      if (isLayerAttributeKey(normalized) && !isElementLayerKey(normalized)) {\r\n        throw new Error(`${callName}(\"${code}\"): ${subject} cannot include the layer option \"${key}\"; it targets a layer of the whole SVG and would be inert on a definition. Set it in the global bracket ([...]||) or the builder options instead.`);\r\n      }\r\n      // The stored name is the one that acts where the definition is used, and\r\n      // it is not always the typed one: `X` is stored as `x`.\r\n      const stored = canonicalOptionKey(normalized);\r\n      if (stored === 'x' || stored === 'y') {\r\n        throw new Error(`${callName}(\"${code}\"): ${subject} cannot include the position option \"${key}\"; a position says where one use of a character sits, not what the character is. Set it where the code is used instead, as a coordinate (${code}:x,y) or the ${stored} option on that element.`);\r\n      }\r\n      if (Object.hasOwn(KERNING_OPTION_KEYS, stored)) {\r\n        throw new Error(`${callName}(\"${code}\"): ${subject} cannot include the kerning option \"${key}\"; kerning is the gap before one use of a character, not part of what the character is. Set it where the code is used instead, with an RK:/AK: marker before it or in that character's options, or in the kerningRules of the character before it when the gap depends on the pair.`);\r\n      }\r\n      if (stored === 'key') {\r\n        throw new Error(`${callName}(\"${code}\"): ${subject} cannot include \"${key}\"; a key identifies one element, so every use of the definition would share it. Set it on the element where the code is used instead.`);\r\n      }\r\n    }\r\n  }\r\n\r\n  // A character bracket leading a code string that draws one character is the\r\n  // definition's own options, as its defaultOptions are, so the same guard\r\n  // judges its keys, in the spelling the author wrote them. The parser says\r\n  // which bracket that is, so define() and every use agree: over a word the\r\n  // bracket stays its first character's, decoration the use reports.\r\n  static #assertOwnBracketDescribesTheCharacter(callName, code, codeString) {\r\n    const written = BlissParser.ownBracketEntries(codeString);\r\n    if (!written) return;\r\n    BlissSVGBuilder.#assertDefaultOptionsDescribeTheCharacter(\r\n      callName, code, Object.fromEntries(written), 'the character bracket leading its codeString');\r\n  }\r\n\r\n  static #defineGlyph(code, definition, codeString, options = {}, warnings) {\r\n    BlissSVGBuilder.#validateCode(code);\r\n\r\n    if (typeof codeString !== 'string' || codeString.trim().length === 0) {\r\n      throw new Error(`define(\"${code}\"): \"codeString\" must be a non-empty, non-whitespace string.`);\r\n    }\r\n\r\n    // A glyph is a single character; `/` and `//` are word separators, so a\r\n    // `/`-bearing codeString is a word, not a glyph. Define a word as a bare\r\n    // alias (omit type:\"glyph\"). (Strict Indicator Separation.)\r\n    if (codeString.includes('/')) {\r\n      throw new Error(`define(\"${code}\"): a glyph definition cannot be a multi-character word (its codeString contains \"/\"). Define a word as a bare alias (omit type:\"glyph\").`);\r\n    }\r\n\r\n    // `;;` is a word-level indicator (a word property); a glyph is a single\r\n    // character, so it cannot carry one. (Strict Indicator Separation.)\r\n    if (codeString.includes(';;')) {\r\n      throw new Error(`define(\"${code}\"): a glyph definition cannot contain a word-level indicator (\";;\"); a glyph is a single character. Apply a word indicator at the use site (WORD;;INDICATOR).`);\r\n    }\r\n\r\n    const glyphRunWord = BlissSVGBuilder.#expandedRunWord(codeString);\r\n    if (glyphRunWord) {\r\n      throw new Error(`define(\"${code}\"): a glyph definition cannot be a multi-character word (\"${codeString}\" is shorthand for \"${glyphRunWord}\"). Define a word as a bare alias (omit type:\"glyph\").`);\r\n    }\r\n\r\n    // Glyphs can reference other glyphs, shapes and letters (external glyphs),\r\n    // but not bare aliases\r\n    const refError = BlissSVGBuilder.#validateReferences(code, codeString, ['glyph', 'shape', 'externalGlyph']);\r\n    if (refError) throw new Error(`define(${refError})`);\r\n    if (BlissSVGBuilder.#hasCircularReference(code, codeString)) {\r\n      throw new Error(`define(\"${code}\"): circular reference detected`);\r\n    }\r\n\r\n    // A glyph is a base character or a compound indicator, never a\r\n    // base+indicator combo. Reject a glyph def (not flagged isIndicator) that\r\n    // bakes in an indicator part; define such combos as bare aliases instead.\r\n    if (definition.isIndicator !== true) {\r\n      const refs = BlissSVGBuilder.#extractReferencedCodes(codeString);\r\n      if (refs.some(ref => blissElementDefinitions[ref]?.isIndicator === true)) {\r\n        throw new Error(`define(\"${code}\"): a glyph definition cannot bake in an indicator. Define a base+indicator combination as a bare alias (omit type:\"glyph\"), attach the indicator at the use site (BASE;INDICATOR), or flag a compound indicator with isIndicator:true.`);\r\n      }\r\n    }\r\n\r\n    BlissSVGBuilder.#assertReplaceable(code, options);\r\n\r\n    const entry = {\r\n      codeString,\r\n      glyphCode: code,\r\n      isBlissGlyph: true\r\n    };\r\n    if (definition.isIndicator === true) entry.isIndicator = true;\r\n    if (typeof definition.anchorOffsetX === 'number' && isFinite(definition.anchorOffsetX)) {\r\n      entry.anchorOffsetX = definition.anchorOffsetX;\r\n    }\r\n    if (typeof definition.anchorOffsetY === 'number' && isFinite(definition.anchorOffsetY)) {\r\n      entry.anchorOffsetY = definition.anchorOffsetY;\r\n    }\r\n    if (typeof definition.width === 'number' && isFinite(definition.width)) {\r\n      entry.width = definition.width;\r\n    }\r\n    if (definition.kerningRules && typeof definition.kerningRules === 'object') {\r\n      entry.kerningRules = { ...definition.kerningRules };\r\n    }\r\n    if (definition.shrinksPrecedingWordSpace === true) {\r\n      entry.shrinksPrecedingWordSpace = true;\r\n    }\r\n    if (definition.defaultOptions && typeof definition.defaultOptions === 'object') {\r\n      // Snapshot ONCE, validate the snapshot, store the SAME snapshot: the\r\n      // guard must judge exactly what the registry keeps, or an accessor /\r\n      // Proxy could show one set of keys to validation and another to storage.\r\n      const defaultOptionsSnapshot = { ...definition.defaultOptions };\r\n      if (Object.keys(defaultOptionsSnapshot).length > 0) {\r\n        BlissSVGBuilder.#assertDefaultOptionsDescribeTheCharacter('define', code, defaultOptionsSnapshot);\r\n        entry.defaultOptions = BlissSVGBuilder.#toCuratedSpelling(defaultOptionsSnapshot, code, warnings);\r\n      }\r\n    }\r\n\r\n    BlissSVGBuilder.#assertOwnBracketDescribesTheCharacter('define', code, entry.codeString);\r\n\r\n    if (entry.isIndicator === true) {\r\n      BlissSVGBuilder.#assertNoIndicatorBakeDependents('define', code, entry);\r\n    }\r\n\r\n    BlissSVGBuilder.#assertCodeStringReadable('define', code, 'glyph', entry);\r\n\r\n    blissElementDefinitions[code] = entry;\r\n  }\r\n\r\n  static #defineExternalGlyph(code, definition, options = {}, warnings) {\r\n    BlissSVGBuilder.#validateCode(code);\r\n\r\n    if (typeof definition?.getPath !== 'function') {\r\n      throw new Error(`define(\"${code}\"): \"getPath\" must be a function.`);\r\n    }\r\n    if (typeof definition.width !== 'number' || !isFinite(definition.width)) {\r\n      throw new Error(`define(\"${code}\"): \"width\" must be a finite number.`);\r\n    }\r\n    if (typeof definition.char !== 'string' || definition.char.length === 0) {\r\n      throw new Error(`define(\"${code}\"): \"char\" must be a non-empty string.`);\r\n    }\r\n\r\n    BlissSVGBuilder.#assertReplaceable(code, options);\r\n\r\n    const entry = {\r\n      getPath: definition.getPath,\r\n      width: definition.width,\r\n      char: definition.char,\r\n      isExternalGlyph: true\r\n    };\r\n    if (typeof definition.y === 'number') entry.y = definition.y;\r\n    if (typeof definition.height === 'number') entry.height = definition.height;\r\n    if (definition.kerningRules && typeof definition.kerningRules === 'object') {\r\n      entry.kerningRules = { ...definition.kerningRules };\r\n    }\r\n    if (definition.defaultOptions && typeof definition.defaultOptions === 'object') {\r\n      // Snapshot ONCE, validate the snapshot, store the SAME snapshot: the\r\n      // guard must judge exactly what the registry keeps, or an accessor /\r\n      // Proxy could show one set of keys to validation and another to storage.\r\n      const defaultOptionsSnapshot = { ...definition.defaultOptions };\r\n      if (Object.keys(defaultOptionsSnapshot).length > 0) {\r\n        BlissSVGBuilder.#assertDefaultOptionsDescribeTheCharacter('define', code, defaultOptionsSnapshot);\r\n        entry.defaultOptions = BlissSVGBuilder.#toCuratedSpelling(defaultOptionsSnapshot, code, warnings);\r\n      }\r\n    }\r\n\r\n    blissElementDefinitions[code] = entry;\r\n  }\r\n\r\n  // Resolution VIEW of a codeString, for validation only — never stored\r\n  // (store-as-written: definition content keeps\r\n  // bare-alias references verbatim and the parser resolves them late).\r\n  // Replaces bare alias tokens with their resolved codeString, repeating\r\n  // until no more aliases remain (up to depth 50), so a guard can judge\r\n  // what a reference chain would deliver (the word-internal-coordinate\r\n  // guard in #defineBare and patchDefinition).\r\n  // Head-marker contract: marked invocations (ALIAS^) and aliases whose\r\n  // codeString carries a ^ designation stay as references, so the parser\r\n  // resolves the marker in its own word-string scope (rules 2 and 4).\r\n  // Inlining them would silently rebind the marker to a different scope.\r\n  static #resolveBareAliases(codeString) {\r\n    let resolved = codeString;\r\n    for (let depth = 0; depth < 50; depth++) {\r\n      let changed = false;\r\n      // \\w+ (not letter-first): define() accepts digit-leading names (the\r\n      // Blissary-ID pattern, e.g. '1219'), so aliases to them must resolve\r\n      // like any other single-code rename. The lookbehind/\r\n      // lookahead boundaries keep coordinate and kerning values (after ':')\r\n      // out of reach.\r\n      resolved = resolved.replace(\r\n        /(?<=^|[/;])(\\w+)(?=$|[/;:])/g,\r\n        (match, token) => {\r\n          const def = blissElementDefinitions[token];\r\n          if (def && def.codeString && !def.codeString.includes('^')\r\n              && !def.isBlissGlyph && !def.isShape && !def.isExternalGlyph && !def.glyphCode) {\r\n            changed = true;\r\n            return def.codeString;\r\n          }\r\n          return match;\r\n        }\r\n      );\r\n      if (!changed) break;\r\n    }\r\n    return resolved;\r\n  }\r\n\r\n  /**\r\n   * Part-merge operand check (reuses the runtime predicate via the parser):\r\n   * true if the codeString uses a composed unflagged alias as a non-leading\r\n   * ;-part, which the parser flags COMPOSITE_AS_PART. Run on the written\r\n   * codeString — the form that gets stored (store-as-written).\r\n   * Parse failures (e.g. a circular reference) are not this check's concern.\r\n   */\r\n  static #hasCompositePartViolation(codeString) {\r\n    let parsed;\r\n    try {\r\n      parsed = BlissParser.parse(codeString);\r\n    } catch {\r\n      return false;\r\n    }\r\n    for (const group of parsed.groups ?? []) {\r\n      for (const glyph of group.glyphs ?? []) {\r\n        for (const part of glyph.parts ?? []) {\r\n          if (part.errorCode === 'COMPOSITE_AS_PART') return true;\r\n        }\r\n      }\r\n    }\r\n    return false;\r\n  }\r\n\r\n  // The name a definition is read under while it is judged. Not the\r\n  // definition's own name: define() accepts names the DSL cannot spell\r\n  // (`C8:.`, `A/B`), and reading one of those would judge the name instead of\r\n  // the code string.\r\n  static #READING_STAND_IN = '_definition-being-read_';\r\n\r\n  // Refuses a code string whose content no use of the definition could draw,\r\n  // judged by the one reader every use runs: the entry about to be stored is\r\n  // read the way written input reads a code, at every depth its references\r\n  // reach. Content is what fails:\r\n  // - a code whose `:x,y` suffix the reader cannot read (MALFORMED_COORDINATES),\r\n  //   which fails its whole character at every use;\r\n  // - a kerning marker read as a part: RK and AK are syntax no definition may\r\n  //   take, so such a part can never draw, and it fails its character too;\r\n  // - a glyph or shape that reads as no character at all, a lone marker or one\r\n  //   whose unreadable value swallows the rest included. A bare alias may read\r\n  //   as a lone marker: between characters it spaces them like the marker it\r\n  //   names.\r\n  //\r\n  // Decoration is left to the use site, which reports it, drops it and still\r\n  // draws: a bracket's keys and values (`[margin=2]`, `[x=.]`) and a marker's\r\n  // value (`B291/RK:x/B313` draws both characters at the default gap). An\r\n  // unknown code is a forward reference, which define() allows by design. A part\r\n  // the reader cannot take for a code at all (`B291;!`) is left to the use site\r\n  // too, which reports it as UNKNOWN_CODE: some of those fail only because a\r\n  // definition is read without the spaces and quoted brackets top-level input\r\n  // allows, and those want reading, not refusing.\r\n  static #assertCodeStringReadable(callName, code, kind, entry) {\r\n    const reading = BlissSVGBuilder.#readAsUsed(entry);\r\n    if (!reading) return;\r\n    const written = `${callName}(\"${code}\"): the codeString \"${entry.codeString}\"`;\r\n    const whereUsed = `where \"${code}\" is used instead, e.g. RK:2/${code}.`;\r\n    const unreadablePart = BlissSVGBuilder.#findInReading(reading, (node) =>\r\n      node.errorCode === WARNING_CODES.MALFORMED_COORDINATES);\r\n    if (unreadablePart) {\r\n      throw new Error(`${written} cannot be read (${WARNING_CODES.MALFORMED_COORDINATES}), so every use of \"${code}\" would warn and drop it. Write a position as :x,y with plain numbers, e.g. C8:1,2.`);\r\n    }\r\n    const marker = BlissSVGBuilder.#findInReading(reading, (node) => node.codeName === 'RK' || node.codeName === 'AK')?.codeName;\r\n    if (marker) {\r\n      throw new Error(`${written} uses a kerning marker (${marker}) as a part, which can never be drawn: a kerning marker sets the gap before a character. Write it ${whereUsed}`);\r\n    }\r\n    if ((kind === 'glyph' || kind === 'shape') && !reading.groups?.some((group) => group.glyphs?.length > 0)) {\r\n      const markerAdvice = /\\b(?:RK|AK)\\b/.test(entry.codeString)\r\n        ? `; a kerning marker alone is only a gap, so write it ${whereUsed}`\r\n        : '.';\r\n      throw new Error(`${written} reads as no character, so every use of \"${code}\" would draw nothing. A ${kind} must draw one character${markerAdvice}`);\r\n    }\r\n  }\r\n\r\n  // The parser's reading of `entry`'s code string as written input that names\r\n  // it, with the code string in the registry under the stand-in for exactly as\r\n  // long as the read takes. The stand-in is a bare alias of the code string\r\n  // alone, which every use expands as written, so what is judged is the code\r\n  // string whatever kind of definition holds it and however a use of that kind\r\n  // is stored. Null when the read throws, which only a runaway reference chain\r\n  // can make it do, and that is not what #assertCodeStringReadable judges.\r\n  static #readAsUsed(entry) {\r\n    const standIn = BlissSVGBuilder.#READING_STAND_IN;\r\n    const hadStandIn = Object.hasOwn(blissElementDefinitions, standIn);\r\n    const displaced = blissElementDefinitions[standIn];\r\n    blissElementDefinitions[standIn] = { codeString: entry.codeString };\r\n    try {\r\n      return BlissParser.parse(standIn);\r\n    } catch {\r\n      return null;\r\n    } finally {\r\n      if (hadStandIn) blissElementDefinitions[standIn] = displaced;\r\n      else delete blissElementDefinitions[standIn];\r\n    }\r\n  }\r\n\r\n  // The first node of a parsed reading, at any depth, that `matches`.\r\n  static #findInReading(node, matches) {\r\n    if (matches(node)) return node;\r\n    for (const child of [...(node.groups ?? []), ...(node.glyphs ?? []), ...(node.parts ?? [])]) {\r\n      const found = BlissSVGBuilder.#findInReading(child, matches);\r\n      if (found) return found;\r\n    }\r\n    return undefined;\r\n  }\r\n\r\n  static #defineBare(code, definition, codeString, options = {}, warnings) {\r\n    BlissSVGBuilder.#validateCode(code);\r\n\r\n    if (typeof codeString !== 'string' || codeString.trim().length === 0) {\r\n      throw new Error(`define(\"${code}\"): \"codeString\" must be a non-empty, non-whitespace string.`);\r\n    }\r\n\r\n    // `;;` is a word-level indicator applied at the USE SITE (WORD;;INDICATOR),\r\n    // never baked into a stored definition -- the same rule #defineGlyph and\r\n    // #defineShape enforce, extended to bare aliases. Baking it in is nonsensical:\r\n    // a further use-site `;;` on such a definition would nest word-indicators, yet\r\n    // a word carries only one. Reject ANY `;;`, whether or not the code after it\r\n    // is itself an indicator. (Strict Indicator Separation.)\r\n    if (codeString.includes(';;')) {\r\n      throw new Error(`define(\"${code}\"): a definition cannot contain a word-level indicator (\";;\"); apply a word indicator at the use site (WORD;;INDICATOR).`);\r\n    }\r\n\r\n    // Reject a definition cycle at define time. Bare aliases can reference any\r\n    // type (glyph/shape/bare), so unlike #defineGlyph/#defineShape this path had\r\n    // no cycle guard: a cycle (CA -> CB -> CA, or a direct self-reference) was\r\n    // stored and then crashed at render with \"Maximum recursion depth\". Rejecting\r\n    // one side here leaves the chain terminating at an unregistered code instead.\r\n    if (BlissSVGBuilder.#hasCircularReference(code, codeString)) {\r\n      throw new Error(`define(\"${code}\"): circular reference detected`);\r\n    }\r\n\r\n    // Part-merge operand rule: a ; part must be a part (a primitive or a flagged\r\n    // glyph/indicator), never a composition. Reject a codeString that uses a\r\n    // composed unflagged alias as a ;-part (checked on the written codeString,\r\n    // which is also what gets stored), so define() is consistent with the\r\n    // use-site failure.\r\n    if (BlissSVGBuilder.#hasCompositePartViolation(codeString)) {\r\n      throw new Error(`define(\"${code}\"): a ; part cannot be a composition (\"${codeString}\"). A ; part must be a primitive or a flagged glyph; attach indicators at the use site (BASE;INDICATOR) or compose words with /.`);\r\n    }\r\n\r\n    BlissSVGBuilder.#assertReplaceable(code, options);\r\n\r\n    // Store-as-written: bare-alias references in the\r\n    // codeString stay verbatim, so definition content is late-bound like a\r\n    // native code (a redefine of a referenced code flows through to every\r\n    // composition using it). Only /SP/ space segments normalize.\r\n    const stored = BlissSVGBuilder.#normalizeSpaceSegments(codeString);\r\n\r\n    // Word definitions (containing /) must not have internal position\r\n    // modifiers, not even through a referenced alias: the guard judges the\r\n    // RESOLVED VIEW so a stored 'POSX/B313' cannot bake coordinates via\r\n    // POSX = 'B291:2,3'. Position belongs at the usage site, e.g. WORD:2,0.\r\n    BlissSVGBuilder.#assertNoWordInternalCoordinates(\r\n      'define', code, BlissSVGBuilder.#resolveBareAliases(stored)\r\n    );\r\n\r\n    const entry = { codeString: stored };\r\n\r\n    if (definition.defaultOptions && typeof definition.defaultOptions === 'object') {\r\n      // Snapshot ONCE, validate the snapshot, store the SAME snapshot: the\r\n      // guard must judge exactly what the registry keeps, or an accessor /\r\n      // Proxy could show one set of keys to validation and another to storage.\r\n      const defaultOptionsSnapshot = { ...definition.defaultOptions };\r\n      if (Object.keys(defaultOptionsSnapshot).length > 0) {\r\n        BlissSVGBuilder.#assertDefaultOptionsDescribeTheCharacter('define', code, defaultOptionsSnapshot);\r\n        entry.defaultOptions = BlissSVGBuilder.#toCuratedSpelling(defaultOptionsSnapshot, code, warnings);\r\n      }\r\n    }\r\n\r\n    BlissSVGBuilder.#assertOwnBracketDescribesTheCharacter('define', code, entry.codeString);\r\n\r\n    if (resolveEffectiveDefinition(entry, blissElementDefinitions)?.isIndicator === true) {\r\n      BlissSVGBuilder.#assertNoIndicatorBakeDependents('define', code, entry);\r\n    }\r\n\r\n    BlissSVGBuilder.#assertCodeStringReadable('define', code, 'bare', entry);\r\n\r\n    blissElementDefinitions[code] = entry;\r\n  }\r\n\r\n  /**\r\n   * Define one or more codes. The single public entry point for all definitions.\r\n   *\r\n   * Use the optional `type` field to specify the definition type:\r\n   * - `type: 'glyph'` — Bliss character (sets isBlissGlyph, glyphCode)\r\n   * - `type: 'shape'` — shape (primitive with getPath, or composite with codeString)\r\n   * - `type: 'externalGlyph'` — external glyph (getPath + glyph)\r\n   * - No type — bare definition (word, alias, or any codeString-based code)\r\n   *\r\n   * When no `type` is specified, auto-detection applies for getPath-based definitions:\r\n   * - Has getPath + glyph → externalGlyph\r\n   * - Has getPath (no glyph) → shape\r\n   * - Has codeString (no type) → bare definition\r\n   *\r\n   * @param {Object.<string, Object>} definitions - Map of code → definition\r\n   * @param {Object} [options]\r\n   * @param {boolean} [options.overwrite=false]\r\n   * @returns {{ defined: string[], skipped: string[], errors: string[] }}\r\n   */\r\n  static define(definitions, options = {}) {\r\n    const result = { defined: [], skipped: [], errors: [], warnings: [] };\r\n\r\n    if (!definitions || typeof definitions !== 'object') {\r\n      return result;\r\n    }\r\n\r\n    for (const [code, definition] of Object.entries(definitions)) {\r\n      try {\r\n        // A code string is read as an input string is: the whitespace outside\r\n        // its brackets is dropped before it is judged and stored. Kept, it\r\n        // reached every code lookup, so each use failed as an unknown code.\r\n        // Read once, here, and handed on beside the definition, which is read\r\n        // as given: a copy ran the caller's accessors on an object their class\r\n        // never made, so one reading a private field threw.\r\n        const written = definition?.codeString;\r\n        const codeString = typeof written === 'string' ? withoutInputWhitespace(written) : written;\r\n        const type = definition?.type;\r\n\r\n        if (type && type !== 'glyph' && type !== 'shape' && type !== 'externalGlyph') {\r\n          result.errors.push(`\"${code}\": unknown type \"${type}\". Use 'glyph', 'shape', or 'externalGlyph'.`);\r\n          continue;\r\n        }\r\n\r\n        // isIndicator declares a compound indicator glyph and is honored only\r\n        // on a type:'glyph' definition. On a bare alias, shape, or external\r\n        // glyph the flag was silently dropped, so the `;`-slot render and the\r\n        // `;;` gate disagreed with the stated intent.\r\n        // Reject it and point to the documented form. Indicator-ness still\r\n        // rides through an unflagged bare alias whose target is a real\r\n        // indicator (e.g. { codeString: 'B81' }); only the flag on a non-glyph\r\n        // definition is rejected.\r\n        if (definition?.isIndicator === true && type !== 'glyph') {\r\n          result.errors.push(`\"${code}\": isIndicator is only valid on a type:'glyph' definition (a compound indicator glyph). To declare a custom indicator, use type:'glyph' with isIndicator:true.`);\r\n          continue;\r\n        }\r\n\r\n        if (type === 'glyph') {\r\n          BlissSVGBuilder.#defineGlyph(code, definition, codeString, options, result.warnings);\r\n        } else if (type === 'shape') {\r\n          BlissSVGBuilder.#defineShape(code, definition, codeString, options, result.warnings);\r\n        } else if (type === 'externalGlyph') {\r\n          BlissSVGBuilder.#defineExternalGlyph(code, definition, options, result.warnings);\r\n        } else if (typeof definition?.getPath === 'function' && typeof definition?.char === 'string') {\r\n          BlissSVGBuilder.#defineExternalGlyph(code, definition, options, result.warnings);\r\n        } else if (typeof definition?.getPath === 'function') {\r\n          BlissSVGBuilder.#defineShape(code, definition, codeString, options, result.warnings);\r\n        } else if (typeof codeString === 'string') {\r\n          BlissSVGBuilder.#defineBare(code, definition, codeString, options, result.warnings);\r\n        } else {\r\n          result.errors.push(`\"${code}\": unable to detect definition type. Provide codeString, type+getPath+width+height (shape), or type+getPath+char (externalGlyph).`);\r\n          continue;\r\n        }\r\n        result.defined.push(code);\r\n      } catch (err) {\r\n        if (err.code === 'ALREADY_EXISTS') {\r\n          result.skipped.push(code);\r\n        } else {\r\n          result.errors.push(`\"${code}\": ${err.message}`);\r\n        }\r\n      }\r\n    }\r\n\r\n    return result;\r\n  }\r\n\r\n  // Registry membership is OWN-property membership: the definitions object\r\n  // inherits from Object.prototype, so a plain `in` or truthy lookup reports\r\n  // inherited names (toString, constructor, __proto__, ...) as defined codes\r\n  // and hands back JS built-ins as definitions. define()'s existence gate\r\n  // (#assertReplaceable) intentionally keeps its truthy check: it classifies\r\n  // inherited names as already-exists in the DEFAULT path. That accident does\r\n  // NOT hold under overwrite:true, where a non-literal \"__proto__\" key (e.g.\r\n  // JSON.parse output) still reaches the registry assignment and reassigns\r\n  // the registry's prototype through the inherited setter; closing that\r\n  // vector belongs to a define-side name policy, not to this check.\r\n  static #ownsDefinition(code) {\r\n    return Object.prototype.hasOwnProperty.call(blissElementDefinitions, code);\r\n  }\r\n\r\n  /**\r\n   * Check if a code is defined.\r\n   * @param {string} code\r\n   * @returns {boolean}\r\n   */\r\n  static isDefined(code) {\r\n    return BlissSVGBuilder.#ownsDefinition(code);\r\n  }\r\n\r\n  /**\r\n   * Get definition metadata for a code (frozen copy, not the live object).\r\n   *\r\n   * @param {string} code\r\n   * @returns {Object|null} Frozen metadata object, or null if not found\r\n   */\r\n  static getDefinition(code) {\r\n    if (!BlissSVGBuilder.#ownsDefinition(code)) return null;\r\n    const def = blissElementDefinitions[code];\r\n\r\n    const copy = {};\r\n    for (const [key, value] of Object.entries(def)) {\r\n      if (typeof value === 'object' && value !== null) {\r\n        copy[key] = Object.freeze({ ...value });\r\n      } else {\r\n        copy[key] = value;\r\n      }\r\n    }\r\n\r\n    copy.type = BlissSVGBuilder.#detectType(def);\r\n\r\n    copy.isBuiltIn = protectedCodes.has(code);\r\n\r\n    return Object.freeze(copy);\r\n  }\r\n\r\n  /**\r\n   * List all defined codes, optionally filtered by type.\r\n   *\r\n   * @param {Object} [filter]\r\n   * @param {'shape'|'glyph'|'externalGlyph'|'bare'|'space'} [filter.type]\r\n   * @returns {string[]}\r\n   */\r\n  static listDefinitions(filter = {}) {\r\n    const codes = Object.keys(blissElementDefinitions);\r\n\r\n    if (!filter.type) return codes;\r\n\r\n    return codes.filter(code => {\r\n      return BlissSVGBuilder.#detectType(blissElementDefinitions[code]) === filter.type;\r\n    });\r\n  }\r\n\r\n  /**\r\n   * Remove a custom definition. Built-in definitions cannot be removed.\r\n   *\r\n   * @param {string} code\r\n   * @returns {boolean} true if removed\r\n   * @throws {Error} If attempting to remove a built-in definition\r\n   */\r\n  static removeDefinition(code) {\r\n    if (protectedCodes.has(code)) {\r\n      throw new Error(`removeDefinition(\"${code}\"): cannot remove built-in definitions.`);\r\n    }\r\n    if (!BlissSVGBuilder.#ownsDefinition(code)) {\r\n      return false;\r\n    }\r\n    delete blissElementDefinitions[code];\r\n    return true;\r\n  }\r\n\r\n  /**\r\n   * Patch one or more properties on an existing custom definition.\r\n   * Only allowed keys for the definition's type are accepted.\r\n   * Built-in definitions cannot be patched.\r\n   *\r\n   * @param {string} code - The code to patch\r\n   * @param {Object} changes - Properties to update\r\n   * @returns {{ patched: true }}\r\n   * @throws {Error} If code is not defined, is built-in, or changes are invalid\r\n   */\r\n  static patchDefinition(code, changes) {\r\n    // Same channel as define()'s, for the same reason: a patched\r\n    // defaultOptions bag can collapse two spellings of one name, and the\r\n    // displaced value must not vanish in silence here either.\r\n    const warnings = [];\r\n    if (!BlissSVGBuilder.#ownsDefinition(code)) {\r\n      throw new Error(`patchDefinition(\"${code}\"): code is not defined.`);\r\n    }\r\n    if (protectedCodes.has(code)) {\r\n      throw new Error(`patchDefinition(\"${code}\"): cannot patch built-in definitions.`);\r\n    }\r\n    if (!changes || typeof changes !== 'object') {\r\n      throw new Error(`patchDefinition(\"${code}\"): changes must be an object.`);\r\n    }\r\n    // Read as define() reads one (see there): once, here, with `changes`\r\n    // itself read as given. Every later use of the patch's code string reads\r\n    // this one, and so does the definition it is stored on.\r\n    let newCodeString = typeof changes.codeString === 'string'\r\n      ? withoutInputWhitespace(changes.codeString) : changes.codeString;\r\n\r\n    const def = blissElementDefinitions[code];\r\n\r\n    const type = BlissSVGBuilder.#detectType(def);\r\n\r\n    // Reject type changes and internal flags\r\n    const internalKeys = new Set(['type', 'isShape', 'isExternalGlyph', 'isBlissGlyph', 'glyphCode', 'isBuiltIn']);\r\n    for (const key of Object.keys(changes)) {\r\n      if (internalKeys.has(key)) {\r\n        throw new Error(`patchDefinition(\"${code}\"): cannot change \"${key}\" via patch.`);\r\n      }\r\n    }\r\n\r\n    // Allowed keys per type\r\n    const allowedByType = {\r\n      glyph: ['codeString', 'anchorOffsetX', 'anchorOffsetY', 'width', 'isIndicator', 'shrinksPrecedingWordSpace', 'kerningRules', 'defaultOptions'],\r\n      shape: ['getPath', 'codeString', 'width', 'height', 'x', 'y', 'extraPathOptions', 'defaultOptions'],\r\n      externalGlyph: ['getPath', 'width', 'char', 'y', 'height', 'kerningRules', 'defaultOptions'],\r\n      bare: ['codeString', 'defaultOptions'],\r\n      space: ['defaultOptions']\r\n    };\r\n\r\n    const allowed = new Set(allowedByType[type] || []);\r\n    for (const key of Object.keys(changes)) {\r\n      if (!allowed.has(key)) {\r\n        throw new Error(`patchDefinition(\"${code}\"): \"${key}\" is not a valid property for type \"${type}\".`);\r\n      }\r\n    }\r\n\r\n    // Validate getPath is a function if provided\r\n    if ('getPath' in changes && typeof changes.getPath !== 'function') {\r\n      throw new Error(`patchDefinition(\"${code}\"): \"getPath\" must be a function.`);\r\n    }\r\n\r\n    // If codeString is being patched, validate references and circular refs\r\n    if ('codeString' in changes) {\r\n      if (typeof newCodeString !== 'string' || newCodeString.trim().length === 0) {\r\n        throw new Error(`patchDefinition(\"${code}\"): \"codeString\" must be a non-empty, non-whitespace string.`);\r\n      }\r\n      // A `;;` word-level indicator is a use-site construct (WORD;;INDICATOR);\r\n      // NO definition of any type may bake one in, so this guard is universal.\r\n      // A `/` word separator is glyph/shape-only (a bare alias may itself be a\r\n      // word). Mirror the #defineGlyph/#defineShape/#defineBare guards so\r\n      // patchDefinition cannot construct a state define() forbids. (Strict\r\n      // Indicator Separation.)\r\n      if (newCodeString.includes(';;')) {\r\n        throw new Error(`patchDefinition(\"${code}\"): a definition cannot contain a word-level indicator (\";;\"); apply a word indicator at the use site (WORD;;INDICATOR).`);\r\n      }\r\n      if ((type === 'glyph' || type === 'shape') && newCodeString.includes('/')) {\r\n        throw new Error(`patchDefinition(\"${code}\"): a ${type} definition cannot be a multi-character word (its codeString contains \"/\"). Define a word as a bare alias (omit type:\"${type}\").`);\r\n      }\r\n      const patchRunWord = (type === 'glyph' || type === 'shape')\r\n        && BlissSVGBuilder.#expandedRunWord(newCodeString);\r\n      if (patchRunWord) {\r\n        throw new Error(`patchDefinition(\"${code}\"): a ${type} definition cannot be a multi-character word (\"${newCodeString}\" is shorthand for \"${patchRunWord}\"). Define a word as a bare alias (omit type:\"${type}\").`);\r\n      }\r\n      const allowedRefTypes = type === 'glyph' ? ['glyph', 'shape', 'externalGlyph']\r\n        : type === 'shape' ? ['shape']\r\n        : ['glyph', 'shape', 'bare', 'externalGlyph'];\r\n      const refError = BlissSVGBuilder.#validateReferences(code, newCodeString, allowedRefTypes);\r\n      if (refError) throw new Error(`patchDefinition(${refError})`);\r\n      if (BlissSVGBuilder.#hasCircularReference(code, newCodeString)) {\r\n        throw new Error(`patchDefinition(\"${code}\"): circular reference detected`);\r\n      }\r\n      // Part-merge operand rule, mirroring #defineBare so both definition\r\n      // surfaces agree: a bare codeString cannot use a composed unflagged alias\r\n      // as a ;-part (checked on the written codeString, the form that gets stored).\r\n      if (type === 'bare' && BlissSVGBuilder.#hasCompositePartViolation(newCodeString)) {\r\n        throw new Error(`patchDefinition(\"${code}\"): a ; part cannot be a composition (\"${newCodeString}\"). A ; part must be a primitive or a flagged glyph; attach indicators at the use site (BASE;INDICATOR) or compose words with /.`);\r\n      }\r\n    }\r\n\r\n    // A shape is drawn by its getPath function or by its codeString, never by\r\n    // both: define() keeps one, and a shape holding both drew one while every\r\n    // save wrote the other. A patch that names either one means it, so the\r\n    // patch is refused rather than trimmed.\r\n    if (type === 'shape'\r\n        && ('getPath' in changes || typeof def.getPath === 'function')\r\n        && ('codeString' in changes || typeof def.codeString === 'string')) {\r\n      throw new Error(`patchDefinition(\"${code}\"): a shape is drawn either by its getPath function or by its codeString, and this patch would leave it with both. To change how \"${code}\" is drawn, remove it and define it again.`);\r\n    }\r\n\r\n    // On the patch surface, a glyph (not flagged isIndicator) cannot\r\n    // bake an indicator, whichever property the patch changes — a codeString\r\n    // gaining indicator anatomy, or an isIndicator un-flag on a compound\r\n    // indicator that keeps its anatomy. The POST-patch state is judged, so\r\n    // codeString + isIndicator:true in one patch stays legal.\r\n    if (type === 'glyph' && ('codeString' in changes || 'isIndicator' in changes)) {\r\n      const nextCodeString = 'codeString' in changes ? newCodeString : def.codeString;\r\n      const nextIsIndicator = 'isIndicator' in changes ? changes.isIndicator === true : def.isIndicator === true;\r\n      if (!nextIsIndicator && typeof nextCodeString === 'string') {\r\n        const refs = BlissSVGBuilder.#extractReferencedCodes(nextCodeString);\r\n        if (refs.some(ref => blissElementDefinitions[ref]?.isIndicator === true)) {\r\n          throw new Error(`patchDefinition(\"${code}\"): a glyph definition cannot bake in an indicator. Define a base+indicator combination as a bare alias (omit type:\"glyph\"), attach the indicator at the use site (BASE;INDICATOR), or flag a compound indicator with isIndicator:true.`);\r\n        }\r\n      }\r\n    }\r\n\r\n    // For bare definitions, store the codeString as written (bare-alias\r\n    // references stay verbatim and resolve at parse time); SP segments\r\n    // normalize to word breaks and the word-internal-coordinate guard\r\n    // judges the resolved view, mirroring #defineBare (patch cannot\r\n    // construct a state define() forbids).\r\n    if ('codeString' in changes && type === 'bare') {\r\n      newCodeString = BlissSVGBuilder.#normalizeSpaceSegments(newCodeString);\r\n      BlissSVGBuilder.#assertNoWordInternalCoordinates(\r\n        'patchDefinition', code, BlissSVGBuilder.#resolveBareAliases(newCodeString)\r\n      );\r\n      changes = { ...changes, codeString: newCodeString };\r\n    }\r\n\r\n    // Deferred validation at the completing patch: a patch that\r\n    // makes this definition an indicator — a glyph isIndicator flip, or a\r\n    // bare codeString now resolving to an indicator — re-checks every custom\r\n    // glyph referencing it, exactly like the completing define.\r\n    const becomesIndicator =\r\n      (type === 'glyph' && changes.isIndicator === true && def.isIndicator !== true) ||\r\n      (type === 'bare' && 'codeString' in changes &&\r\n        resolveEffectiveDefinition({ codeString: changes.codeString }, blissElementDefinitions)?.isIndicator === true);\r\n    if (becomesIndicator) {\r\n      BlissSVGBuilder.#assertNoIndicatorBakeDependents('patchDefinition', code, { ...def, ...changes });\r\n    }\r\n\r\n    // Validate BEFORE the apply loop, like every other patch guard: a\r\n    // rejected patch must leave the definition fully unchanged, not partially\r\n    // mutated depending on property order. The snapshot\r\n    // taken here REPLACES the caller's object in `changes`, so the apply loop\r\n    // stores exactly what was validated — an accessor / Proxy cannot show\r\n    // different keys to the two reads.\r\n    if (changes.defaultOptions && typeof changes.defaultOptions === 'object') {\r\n      const defaultOptionsSnapshot = { ...changes.defaultOptions };\r\n      if (Object.keys(defaultOptionsSnapshot).length > 0) {\r\n        BlissSVGBuilder.#assertDefaultOptionsDescribeTheCharacter('patchDefinition', code, defaultOptionsSnapshot);\r\n      }\r\n      changes = { ...changes, defaultOptions: BlissSVGBuilder.#toCuratedSpelling(defaultOptionsSnapshot, code, warnings) };\r\n    }\r\n\r\n    if ('codeString' in changes) {\r\n      BlissSVGBuilder.#assertOwnBracketDescribesTheCharacter('patchDefinition', code, newCodeString);\r\n      BlissSVGBuilder.#assertCodeStringReadable('patchDefinition', code, type, { ...def, ...changes, codeString: newCodeString });\r\n    }\r\n\r\n    // Apply changes\r\n    for (const [key, value] of Object.entries(changes)) {\r\n      if (key === 'defaultOptions') {\r\n        if (value && typeof value === 'object' && Object.keys(value).length > 0) {\r\n          def.defaultOptions = { ...value };\r\n        } else {\r\n          delete def.defaultOptions;\r\n        }\r\n      } else if (key === 'kerningRules') {\r\n        if (value && typeof value === 'object') {\r\n          def.kerningRules = { ...value };\r\n        } else {\r\n          delete def.kerningRules;\r\n        }\r\n      } else if (key === 'codeString') {\r\n        def.codeString = newCodeString;\r\n      } else {\r\n        def[key] = value;\r\n      }\r\n    }\r\n\r\n    return { patched: true, warnings };\r\n  }\r\n\r\n  /**\r\n   * Every number the picture is made of: the content box, the margins and crops\r\n   * applied to it, and the two root dimensions derived from the result.\r\n   *\r\n   * It sits outside the `#svgCode` getter so `#rebuild` can judge the same\r\n   * numbers the markup will carry without rendering anything. Pure arithmetic\r\n   * over `#processedOptions` and the composition's own bounds, so calling it a\r\n   * second time per render costs nothing and changes nothing.\r\n   *\r\n   * Returns exactly what its callers read. `color` and `strokeWidth` stayed\r\n   * behind in the getter: they are paint, not geometry, and no size depends on\r\n   * them.\r\n   */\r\n  #computeGeometry() {\r\n    // Computed rendering dimensions\r\n    const width = Math.max(this.composition.width, this.#processedOptions.minWidth ?? 0);\r\n    const height = BAND_HEIGHT;\r\n\r\n    // User-provided options with defaults\r\n    const marginTop = this.#processedOptions.marginTop ?? 0.75;\r\n    const marginBottom = this.#processedOptions.marginBottom ?? 0.75;\r\n    const marginLeft = this.#processedOptions.marginLeft ?? 0.75;\r\n    const marginRight = this.#processedOptions.marginRight ?? 0.75;\r\n\r\n    // Compute crop values - can be numeric or 'auto' (computed from effectiveBounds)\r\n    const bounds = this.composition.effectiveBounds;\r\n    const rawCropLeft = this.#processedOptions.cropLeft ?? 0;\r\n    const rawCropRight = this.#processedOptions.cropRight ?? 0;\r\n\r\n    // Compact mode: crop up to 4 units total, preferring top then bottom,\r\n    // limited by actual empty space (never crop into ink).\r\n    // Explicit crop-top/crop-bottom override (not add to) the compact defaults.\r\n    let rawCropTop, rawCropBottom;\r\n    if (this.#processedOptions.cropCompact) {\r\n      const topRoom = bounds.minY;\r\n      const bottomRoom = height - bounds.maxY;\r\n      const compactTop = Math.min(4, topRoom);\r\n      const compactBottom = Math.min(4 - compactTop, bottomRoom);\r\n      rawCropTop = this.#processedOptions.cropTop ?? compactTop;\r\n      rawCropBottom = this.#processedOptions.cropBottom ?? compactBottom;\r\n    } else if (this.#processedOptions.autoVertical) {\r\n      rawCropTop = this.#processedOptions.cropTop ?? 'auto';\r\n      rawCropBottom = this.#processedOptions.cropBottom ?? 'auto';\r\n    } else {\r\n      rawCropTop = this.#processedOptions.cropTop ?? 0;\r\n      rawCropBottom = this.#processedOptions.cropBottom ?? 0;\r\n    }\r\n\r\n    const cropTop = rawCropTop === 'auto' ? bounds.minY : rawCropTop;\r\n    const cropBottom = rawCropBottom === 'auto' ? (height - bounds.maxY) : rawCropBottom;\r\n    let cropLeft = rawCropLeft === 'auto' ? bounds.minX : rawCropLeft;\r\n    let cropRight = rawCropRight === 'auto' ? (width - bounds.maxX) : rawCropRight;\r\n\r\n    // Ensure min-width is respected after auto horizontal cropping.\r\n    // Numeric crops are deliberate, so only limit auto-computed crops.\r\n    const minW = this.#processedOptions.minWidth ?? 0;\r\n    if (minW > 0 && (rawCropLeft === 'auto' || rawCropRight === 'auto')) {\r\n      const croppedWidth = width - cropLeft - cropRight;\r\n      if (croppedWidth < minW) {\r\n        const deficit = minW - croppedWidth;\r\n        const autoLeft = rawCropLeft === 'auto' ? cropLeft : 0;\r\n        const autoRight = rawCropRight === 'auto' ? cropRight : 0;\r\n        const autoTotal = autoLeft + autoRight;\r\n        if (autoTotal > 0) {\r\n          const reduce = Math.min(deficit, autoTotal);\r\n          if (rawCropLeft === 'auto') cropLeft -= reduce * (autoLeft / autoTotal);\r\n          if (rawCropRight === 'auto') cropRight -= reduce * (autoRight / autoTotal);\r\n        }\r\n      }\r\n    }\r\n\r\n    let viewBoxX = -marginLeft + cropLeft;\r\n    const viewBoxY = -marginTop + cropTop;\r\n    let gridOffsetX = 0;\r\n\r\n    if (this.#processedOptions.center === true && width > this.composition.width) {\r\n      const leftOverhang = -this.composition.x;\r\n      const rightOverhang = (this.composition.x + this.composition.width) - this.composition.baseWidth;\r\n      const maxOverhang = Math.max(leftOverhang, rightOverhang);\r\n      const symmetricWidth = this.composition.baseWidth + 2 * maxOverhang;\r\n      const extraSpace = width - symmetricWidth;\r\n      const offset = extraSpace / 2;\r\n      viewBoxX -= offset;\r\n      gridOffsetX = viewBoxX + marginLeft;\r\n    }\r\n    // Clamp to >= 0: when crop insets past the available box (an empty\r\n    // document, or a crop larger than the content), the raw difference goes\r\n    // negative, which is invalid SVG. Flooring at 0 keeps the crop monotonic\r\n    // (a wider crop shrinks the box toward 0 and stays there) and valid.\r\n    const viewBoxWidth = Math.max(0, width + marginLeft + marginRight - cropLeft - cropRight);\r\n    const viewBoxHeight = Math.max(0, height + marginTop + marginBottom - cropTop - cropBottom);\r\n    const svgAttributeMultiplier = 6;\r\n\r\n    // Calculate SVG element dimensions (maintaining aspect ratio)\r\n    let svgWidth, svgHeight;\r\n    if (this.#processedOptions.svgHeight !== undefined) {\r\n      // Height specified: calculate width to maintain aspect ratio.\r\n      // Guard the clamped viewBoxHeight === 0 case so it never divides to NaN.\r\n      svgHeight = this.#processedOptions.svgHeight;\r\n      svgWidth = viewBoxHeight > 0 ? (viewBoxWidth / viewBoxHeight) * svgHeight : 0;\r\n    } else {\r\n      // Auto-calculate both dimensions\r\n      svgWidth = svgAttributeMultiplier * viewBoxWidth;\r\n      svgHeight = svgAttributeMultiplier * viewBoxHeight;\r\n    }\r\n\r\n    return {\r\n      width, height, cropTop, cropBottom, cropLeft, cropRight, gridOffsetX,\r\n      viewBoxX, viewBoxY, viewBoxWidth, viewBoxHeight, svgWidth, svgHeight,\r\n    };\r\n  }\r\n\r\n  // Every layer key that reaches one element, as [attribute, value, key],\r\n  // farthest first: the global bracket's, then `levels`, the keys an element\r\n  // background's word, character and part wrote (#takeBackgroundKeys),\r\n  // outermost first; within each, every class the element carries, general to\r\n  // specific. So the last entry for an attribute is the one in force: the\r\n  // nearest key, and within one element the more specific class. That is the\r\n  // order the classes are written in, which is what makes the precedence\r\n  // readable in the markup rather than a rule to look up. Every target looked\r\n  // up here comes from ELEMENT_CLASSES and never from input, so an inherited\r\n  // name cannot reach it.\r\n  #layerKeys(classes, levels = []) {\r\n    return [this.#layerAttributes, ...levels].flatMap(keys => classes.flatMap((c) => {\r\n      const target = targetOfClass(c);\r\n      return Object.entries(keys[target] ?? {}).map(([attribute, value]) => [attribute, value, `${target}--${attribute}`]);\r\n    }));\r\n  }\r\n\r\n  // The authored attributes for one element, each from the key in force.\r\n  #authoredFor(classes, levels = []) {\r\n    return Object.fromEntries(this.#layerKeys(classes, levels).map(([attribute, value]) => [attribute, value]));\r\n  }\r\n\r\n  // The finished picture: only the finished markup can be hashed, so the\r\n  // filter ids are completed last.\r\n  get #svgCode() {\r\n    return fillFilterIds(this.#pictureMarkup(this.#contentRender()));\r\n  }\r\n\r\n  // The first half of a render: the geometry, the viewBox the root carries,\r\n  // the picture's filter numbering, and the composition's markup as\r\n  // svgContent gives it. The tree translates its filters while it renders,\r\n  // reading the numbering from the shared options, which hold it for that\r\n  // render alone; its filters are then numbered in the order they are\r\n  // written, so the content's numbers come first and are the same however\r\n  // the content is read. Its ids wait for the picture's hash.\r\n  #contentRender() {\r\n    const geometry = this.#computeGeometry();\r\n    // The viewBox the root carries: the author's when it reads as one, else\r\n    // the computed one. What covers the whole picture (the paper, the zones,\r\n    // the global link's rect) is placed from it, so a written viewBox leaves\r\n    // no strip of the picture uncovered.\r\n    const viewBox = parseViewBox(this.#rootAttributes.viewBox)\r\n      ?? { x: geometry.viewBoxX, y: geometry.viewBoxY, width: geometry.viewBoxWidth, height: geometry.viewBoxHeight };\r\n    let count = 0;\r\n    const filters = { viewBox, next: () => ++count };\r\n    this.#sharedOptions.filters = filters;\r\n    const rendered = this.composition.getSvgContent();\r\n    this.#sharedOptions.filters = undefined;\r\n    // Raw path data is wrapped in a <path> of its own.\r\n    const content = numberFilters(rendered.startsWith('<') ? rendered : `<path d=\"${rendered}\"/>`);\r\n    return { geometry, viewBox, filters, content: content.markup, filterCount: content.count };\r\n  }\r\n\r\n  // The picture around a content render (#contentRender), its filter ids\r\n  // still pending.\r\n  #pictureMarkup({ geometry, viewBox, filters, content }) {\r\n    const {\r\n      width, height, cropTop, cropBottom, cropLeft, cropRight, gridOffsetX,\r\n      viewBoxX, viewBoxY, viewBoxWidth, viewBoxHeight, svgWidth, svgHeight,\r\n    } = geometry;\r\n\r\n    // User-provided options with defaults\r\n    const color = this.#processedOptions.color ?? \"#000000\";\r\n    const strokeWidth = this.#processedOptions.strokeWidth ?? DEFAULT_STROKE_WIDTH;\r\n\r\n    const round = (num) => parseFloat(num.toFixed(4));\r\n\r\n    // A CSS filter on one of the picture's layers is drawn as a native\r\n    // <filter> (bliss-filters.js), numbered after the content's, in the order\r\n    // the markup is written, and written on its own line: the first child of\r\n    // the group it serves, or the line before the single shape. Its region\r\n    // covers the viewBox and what the element draws (`site()`, as\r\n    // translateFilters asks it, only where a filter translates). Every layer\r\n    // passes through here except the root, whose filter stays page CSS.\r\n    const layerMarkup = (attrs, site) => {\r\n      const { entries, defs, shape } = translateFilters(Object.entries(attrs), site, filters);\r\n      return { attributes: formatEntries(entries), filterLines: [...defs, shape].filter(Boolean).map(line => `    ${line}`) };\r\n    };\r\n    // How far a group's shapes draw past their own boxes: the largest reach\r\n    // among their filters, which the group's own filter spreads further.\r\n    const outsetOf = (shapes) => Math.max(0, ...shapes.map(({ attrs }) => filterReach(Object.entries(attrs))));\r\n\r\n    const svgTitle = this.#processedOptions.svgTitle ?? \"\";\r\n    const svgDesc = this.#processedOptions.svgDesc ?? \"\";\r\n    const background = this.#processedOptions.background ?? \"\";\r\n    const backgroundTop = this.#processedOptions.backgroundTop;\r\n    const backgroundMid = this.#processedOptions.backgroundMid;\r\n    const backgroundBottom = this.#processedOptions.backgroundBottom;\r\n    const hasZones = backgroundTop || backgroundMid || backgroundBottom;\r\n\r\n    let title = svgTitle ? `  <title>${svgTitle}</title>` : \"\";\r\n    let desc = svgDesc ? `  <desc>${svgDesc}</desc>` : \"\";\r\n    let gridPath = \"\";\r\n    // Never assigned yet, and deliberately kept: two coming features emit a\r\n    // <text> layer here (a caption for the whole SVG, and a gloss under one\r\n    // word). This layer sits outside the content group, so it inherits none of\r\n    // the paint defaults, and it WOULD inherit a paint written as `root--fill`\r\n    // or `root--stroke`, which the root's entry in CONTAINER_SHADOWED_ATTRIBUTES\r\n    // reports as never showing. Whichever lands first must set every paint name\r\n    // in that entry itself.\r\n    let svgText = \"\";\r\n\r\n    // The rects that paint the background, each with the box it covers: the\r\n    // zones, or one paper over the whole viewBox.\r\n    let backgroundRects = [];\r\n    if (hasZones) {\r\n      const bulkBg = background;\r\n      const topColor = backgroundTop || bulkBg;\r\n      const midColor = backgroundMid || bulkBg;\r\n      const bottomColor = backgroundBottom || bulkBg;\r\n      const zoneX = round(viewBox.x);\r\n      const zoneWidth = round(viewBox.width);\r\n      const topY = round(viewBox.y);\r\n      // Zone heights floor at 0 like the outer viewBox dimensions: an ordinary\r\n      // vertical crop can push the viewBox past the sky (y=8) or earth (y=16)\r\n      // boundary, and a negative height is invalid SVG on <rect>.\r\n      const topHeight = round(Math.max(0, 8 - viewBox.y));\r\n      const bottomHeight = round(Math.max(0, viewBox.y + viewBox.height - 16));\r\n\r\n      const zone = (classes, y, height, fill) => ({\r\n        classes,\r\n        computed: { x: zoneX, y, width: zoneWidth, height, stroke: 'none', fill },\r\n        box: { minX: zoneX, minY: y, maxX: zoneX + zoneWidth, maxY: y + height },\r\n      });\r\n\r\n      backgroundRects = [\r\n        topColor ? zone(ELEMENT_CLASSES.zoneTop, topY, topHeight, topColor) : null,\r\n        midColor ? zone(ELEMENT_CLASSES.zoneMid, 8, 8, midColor) : null,\r\n        bottomColor ? zone(ELEMENT_CLASSES.zoneBottom, 16, bottomHeight, bottomColor) : null,\r\n      ].filter(Boolean);\r\n    } else if (background !== \"\") {\r\n      backgroundRects = [{\r\n        classes: ELEMENT_CLASSES.backgroundZone,\r\n        computed: { x: viewBox.x, y: viewBox.y, width: '100%', height: '100%', stroke: 'none', fill: background },\r\n        box: { minX: viewBox.x, minY: viewBox.y, maxX: viewBox.x + viewBox.width, maxY: viewBox.y + viewBox.height },\r\n      }];\r\n    }\r\n\r\n    // `background--` names the group, which is the background's single node; the\r\n    // rects that paint are reached with `background-zone--`. The group is\r\n    // written before its rects, so its filter is numbered first.\r\n    let backgroundContent = '';\r\n    if (backgroundRects.length > 0) {\r\n      const rects = backgroundRects.map(({ classes, computed, box }) => ({ attrs: layerAttributes(classes, computed, this.#authoredFor(classes)), box }));\r\n      const group = layerMarkup(layerAttributes(ELEMENT_CLASSES.background, {}, this.#authoredFor(ELEMENT_CLASSES.background)),\r\n        () => ({ drawn: unionOf(rects.map(({ box }) => box)), outset: outsetOf(rects) }));\r\n      backgroundContent = [\r\n        `  <g ${group.attributes}>`,\r\n        ...group.filterLines,\r\n        ...rects.flatMap(({ attrs, box }) => {\r\n          const rect = layerMarkup(attrs, () => ({ drawn: box }));\r\n          return [...rect.filterLines, `    <rect ${rect.attributes}/>`];\r\n        }),\r\n        '  </g>',\r\n      ].join('\\n');\r\n    }\r\n\r\n    // Grid boundaries adjusted for cropping\r\n    const gridStartX = gridOffsetX + cropLeft;\r\n    const gridLineWidth = width - cropLeft - cropRight;\r\n    const gridMinY = cropTop;\r\n    const gridMaxY = height - cropBottom;\r\n\r\n    // `grid-shift` moves every line by one amount on both axes, after the crop\r\n    // window has chosen the lines where they sit unmoved. The coordinates move\r\n    // rather than the group, so a `grid--transform` the author writes acts on\r\n    // top instead of replacing a computed one. A moved coordinate is rounded\r\n    // like the viewBox; at 0 every coordinate is written exactly as before.\r\n    const gridShift = this.#processedOptions.gridShift ?? 0;\r\n    const shifted = (position) => (gridShift === 0 ? position : round(position + gridShift));\r\n\r\n    // A segment run `half` further at both ends, away from itself (a\r\n    // zero-length one forward along its axis, as a square end is drawn). Each\r\n    // lengthened coordinate takes the shift before it is rounded, once; at 0\r\n    // the segment is written exactly as it runs.\r\n    const away = (from, to, half) => (to < from ? -half : half);\r\n    const hLine = (y, half) => {\r\n      if (half === 0) return `M${shifted(gridStartX)},${shifted(y)}h${gridLineWidth}`;\r\n      const reach = away(0, gridLineWidth, half);\r\n      return `M${round(gridStartX + gridShift - reach)},${shifted(y)}h${round(gridLineWidth + 2 * reach)}`;\r\n    };\r\n    const vLine = (x, half) => {\r\n      if (half === 0) return `M${shifted(x)},${shifted(gridMinY)}V${shifted(gridMaxY)}`;\r\n      const reach = away(gridMinY, gridMaxY, half);\r\n      return `M${shifted(x)},${round(gridMinY + gridShift - reach)}V${round(gridMaxY + gridShift + reach)}`;\r\n    };\r\n    const hLines = (ys, half) => ys.filter(y => y >= gridMinY && y <= gridMaxY).map(y => hLine(y, half)).join('');\r\n\r\n    let getVerticalLines = (type, half) => {\r\n      let pathData = \"\";\r\n      let xs = [];\r\n\r\n      switch(type) {\r\n        case \"minor\":\r\n          //odd numbers\r\n          for (let x = 1; x <= width; x += 2) xs.push(x);\r\n          break;\r\n        case \"medium\":\r\n          //even numbers not divisible with 4\r\n          for (let x = 2; x <= width; x += 4) xs.push(x);\r\n          break;\r\n        case \"major\":\r\n          //even numbers divisible with 4\r\n          for (let x = 0; x <= width; x += 4) xs.push(x);\r\n          break;\r\n      }\r\n      for (const x of xs.filter(x => x >= cropLeft && x <= width - cropRight)) {\r\n        pathData += vLine(gridOffsetX + x, half);\r\n      }\r\n      return pathData;\r\n    }\r\n    if (this.#processedOptions.grid) {\r\n      const gridMinorStrokeWidth = this.#processedOptions.gridMinorStrokeWidth ?? 0.166;\r\n      const gridMinorColor = this.#processedOptions.gridMinorColor ?? \"#ebebeb\";\r\n      const gridMediumStrokeWidth = this.#processedOptions.gridMediumStrokeWidth ?? 0.166;\r\n      const gridMediumColor = this.#processedOptions.gridMediumColor ?? \"#ebebeb\";\r\n      const gridMajorStrokeWidth = this.#processedOptions.gridMajorStrokeWidth ?? 0.166;\r\n      const gridMajorColor = this.#processedOptions.gridMajorColor ?? \"#c7c7c7\";\r\n      const gridSkyStrokeWidth = this.#processedOptions.gridSkyStrokeWidth ?? 0.166;\r\n      const gridSkyColor = this.#processedOptions.gridSkyColor ?? \"#858585\";\r\n      const gridEarthStrokeWidth = this.#processedOptions.gridEarthStrokeWidth ?? 0.166;\r\n      const gridEarthColor = this.#processedOptions.gridEarthColor ?? \"#858585\";\r\n\r\n      // Each family's path data, its segments run `half` further at both ends.\r\n      const minorD = (half) => hLines([1,3,5,7,9,11,13,15,17,19], half) + getVerticalLines(\"minor\", half);\r\n      const mediumD = (half) => hLines([2,6,10,14,18], half) + getVerticalLines(\"medium\", half);\r\n      const majorD = (half) => hLines([0,4,12,20], half) + getVerticalLines(\"major\", half);\r\n      const skyD = (half) => hLines([8], half);\r\n      const earthD = (half) => hLines([16], half);\r\n\r\n      // A line is drawn with butt ends on segments run half its width further\r\n      // at both ends: the area a square end covers, which Chrome draws\r\n      // differently from this identical shape (a shade light at the default\r\n      // size, and into a second pixel row where the grid falls between pixels).\r\n      // The two agree only on the builder's own path and cap, at a width read\r\n      // in user units, so a line whose cap, path or vector-effect the author\r\n      // wrote, or whose width is no number, is written as before: its plain\r\n      // extents, under square ends or the author's own cap, follow whatever\r\n      // width the renderer resolves. The width is the one written on the\r\n      // line, the author's where a key set it.\r\n      //\r\n      // The computed key order below is load-bearing: a reordered attribute is a\r\n      // diff in every grid assertion in the suite. Every line runs within one\r\n      // extent, from gridStartX across gridLineWidth and from gridMinY to\r\n      // gridMaxY, moved by the shift, so its box, which its filter's region\r\n      // covers, is that extent widened by half the width written on it: as far\r\n      // as a square or round end reaches, under the builder's cap or the\r\n      // author's. A non-scaling width (`vector-effect`) is in screen pixels, so\r\n      // read as user units it covers more wherever a unit is drawn at least a\r\n      // pixel wide. A width a renderer cannot read draws the one the line\r\n      // inherits, the grid group's or the root's (inheritedWidth), and the box\r\n      // takes the option's where that is wider, so a width only the renderer\r\n      // reads (`5px`) sizes no box smaller than the option does.\r\n      const gridAuthored = this.#authoredFor(ELEMENT_CLASSES.grid);\r\n      const gridLine = (classes, strokeWidth, stroke, pathData) => {\r\n        const authored = this.#authoredFor(classes);\r\n        const written = writtenWidth(authored['stroke-width'] ?? strokeWidth);\r\n        const lengthened = written !== undefined && !['stroke-linecap', 'd', 'vector-effect'].some(name => Object.hasOwn(authored, name));\r\n        const width = written ?? Math.max(strokeWidth, inheritedWidth(gridAuthored, this.#rootAttributes));\r\n        const d = pathData(lengthened ? width / 2 : 0);\r\n        return d ? {\r\n          classes,\r\n          authored,\r\n          computed: { 'stroke-width': strokeWidth, stroke, 'stroke-linecap': lengthened ? 'butt' : 'square', 'stroke-linejoin': 'miter', d },\r\n          box: {\r\n            minX: gridStartX + gridShift - width / 2,\r\n            minY: gridMinY + gridShift - width / 2,\r\n            maxX: gridStartX + gridShift + gridLineWidth + width / 2,\r\n            maxY: gridMaxY + gridShift + width / 2,\r\n          },\r\n        } : null;\r\n      };\r\n\r\n      const lines = [\r\n        gridLine(ELEMENT_CLASSES.gridMinor,  gridMinorStrokeWidth,  gridMinorColor,  minorD),\r\n        gridLine(ELEMENT_CLASSES.gridMedium, gridMediumStrokeWidth, gridMediumColor, mediumD),\r\n        gridLine(ELEMENT_CLASSES.gridMajor,  gridMajorStrokeWidth,  gridMajorColor,  majorD),\r\n        gridLine(ELEMENT_CLASSES.gridSky,    gridSkyStrokeWidth,    gridSkyColor,    skyD),\r\n        gridLine(ELEMENT_CLASSES.gridEarth,  gridEarthStrokeWidth,  gridEarthColor,  earthD),\r\n      ].filter(Boolean);\r\n\r\n      // The group is written before its lines, so its filter is numbered first.\r\n      const shapes = lines.map(({ classes, authored, computed, box }) => ({ attrs: layerAttributes(classes, computed, authored), box }));\r\n      const group = layerMarkup(layerAttributes(ELEMENT_CLASSES.grid, { 'shape-rendering': 'crispEdges' }, gridAuthored),\r\n        () => ({ drawn: unionOf(shapes.map(({ box }) => box)), outset: outsetOf(shapes) }));\r\n      const gridLines = shapes.flatMap(({ attrs, box }) => {\r\n        const line = layerMarkup(attrs, () => ({ drawn: box }));\r\n        return [...line.filterLines, `    <path ${line.attributes}/>`];\r\n      }).join('\\n');\r\n\r\n      gridPath = [\r\n        '  <style>',\r\n        '    @supports (-webkit-hyphens: none) {',\r\n        // the shared class every grid line carries, read from the declaration so\r\n        // renaming it cannot leave this rule selecting nothing\r\n        `      .${ELEMENT_CLASSES.gridMinor[0]} { shape-rendering: geometricPrecision; }`,\r\n        '    }',\r\n        '  </style>',\r\n        `  <g ${group.attributes}>`,\r\n        ...group.filterLines,\r\n        gridLines,\r\n        '  </g>',\r\n      ].join('\\n');\r\n    }\r\n\r\n    const generator = LIB_VERSION ? `bliss-svg-builder/${LIB_VERSION}` : 'bliss-svg-builder';\r\n\r\n    // The root's attributes are a MERGE, not a fixed string, so a user value can\r\n    // replace a computed one rather than appending a duplicate (two width\r\n    // attributes is invalid XML). Computed values first, then anything the\r\n    // author supplied; the two names the library owns never arrive, since the\r\n    // walk refuses them.\r\n    const rootAttrs = {\r\n      xmlns: 'http://www.w3.org/2000/svg',\r\n      'data-generator': generator,\r\n      width: round(svgWidth),\r\n      height: round(svgHeight),\r\n      viewBox: `${round(viewBoxX)} ${round(viewBoxY)} ${round(viewBoxWidth)} ${round(viewBoxHeight)}`,\r\n      class: ELEMENT_CLASSES.root.join(' '),\r\n      ...this.#rootAttributes,\r\n    };\r\n    // The spread above let an authored `class` overwrite the structural name;\r\n    // put it back in front, keeping the position the literal established.\r\n    rootAttrs.class = mergeStructuralClass(ELEMENT_CLASSES.root.join(' '), this.#rootAttributes['class']);\r\n\r\n    // The five paint defaults sit on the content group, where the author's\r\n    // global styling lands, so a value written globally replaces its default\r\n    // in place rather than being contradicted by a default on an element below\r\n    // it. Nothing above the content group sets a paint, so a host page's\r\n    // `svg { fill: currentColor }` styles the root alone and the content\r\n    // group's own `fill=\"none\"` keeps the outlines unfilled.\r\n    const paintDefaults = {\r\n      fill: 'none',\r\n      stroke: color,\r\n      ...CONTENT_LINE_DEFAULTS,\r\n      'stroke-width': strokeWidth,\r\n    };\r\n    const contentAttrs = layerAttributes(ELEMENT_CLASSES.content, paintDefaults, this.#contentAttributes);\r\n    // A bare global vector-effect, stamped where it takes effect (see the walk);\r\n    // only a value stamps, matching the element-scope handling in BlissElement.\r\n    const contentInner = this.#globalVectorEffect\r\n      ? BlissElement.applyVectorEffectToPaths(content, this.#globalVectorEffect)\r\n      : content;\r\n    // Written last of the layers, so its filter is numbered after theirs. Its\r\n    // region covers everything the composition draws, its lines and its\r\n    // element backgrounds, and how far the filters inside it carry them, and\r\n    // a thin composition gets the shape that keeps it drawn, as an element's\r\n    // group does.\r\n    const contentLayer = layerMarkup(contentAttrs, () => ({\r\n      drawn: this.composition.drawnArea,\r\n      geometry: this.composition.effectiveBounds,\r\n      outset: this.composition.filterOutset,\r\n    }));\r\n    const contentGroup = [\r\n      `  <g ${contentLayer.attributes}>`,\r\n      ...contentLayer.filterLines,\r\n      `    ${contentInner}`,\r\n      '  </g>',\r\n    ];\r\n\r\n    // A global link wraps the content group from outside, so the whole symbol\r\n    // is one link, and its first child is a transparent rect over the viewBox:\r\n    // a link is hit only where something paints, and the rect paints every\r\n    // point without showing (`transparent` is a paint, `none` is not). An href\r\n    // that is missing or refused builds no link, and its attributes go with it.\r\n    const anchor = this.#globalAnchorAttributes;\r\n    const symbol = BlissElement.isSafeHref(anchor.href) ? [\r\n      `  <a ${formatAttributes(anchor)} style=\"cursor: pointer;\">`,\r\n      `    <rect ${formatAttributes({ x: round(viewBox.x), y: round(viewBox.y), width: '100%',\r\n        height: '100%', fill: 'transparent', stroke: 'none' })}/>`,\r\n      ...contentGroup.map((line) => `  ${line}`),\r\n      '  </a>',\r\n    ] : contentGroup;\r\n\r\n    const svgStr = [\r\n      `<svg ${formatAttributes(rootAttrs)}>`,\r\n      title,\r\n      desc,\r\n      backgroundContent,\r\n      gridPath,\r\n      ...symbol,\r\n      svgText,\r\n      '</svg>',\r\n    ].filter(Boolean).join('\\n');\r\n\r\n    // Clean up empty <path d=\"\"/> elements from DOT/COMMA/external glyphs\r\n    return svgStr.replace(/<path d=\"\"\\/>/g, '');\r\n  }\r\n}\r\n\r\nexport { BlissSVGBuilder };\r\n","import { BlissSVGBuilder } from './lib/bliss-svg-builder.js';\nimport { LIB_VERSION } from './lib/bliss-constants.js';\n\n// Hoist LIB_VERSION onto the class so IIFE consumers, where\n// `window.BlissSVGBuilder` is the class itself, can read the\n// version as `BlissSVGBuilder.LIB_VERSION`.\nBlissSVGBuilder.LIB_VERSION = LIB_VERSION;\n\nexport { BlissSVGBuilder, LIB_VERSION };\nexport default BlissSVGBuilder;\n"],"mappings":"AAgBA,OAAM,iBAAA,QAA4B,CAAA,WAAA,CAAA,MAAA,EAAA,GAAA,OAAA,aAAA,CAAA,MAAA,QAAA,CAAA,CAAA,EAIlC,IAAA,EAAA,IAEA,EAAS,IACP,EAAiB,IACnB,SAAA,EAAA,EAAA,CAEA,OAAS,EAAA,EAAiC,GAAG,EAI7C,SAAA,EAAA,EAAA,CAEA,OAAM,EAAA,WAIF,EAAe,EAAU,EAAA,EAAA,QACrB,EAAQ,QAAA,eAAA,GAAA,WAAA,WAAA,CAAA,CAAA,CAAA,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C1pBA,MACqC,GAAK,CACxC,GAAA,GAAS,IAAK,GAAI,IAAK,GAAI,IAAK,GAAI,IAAK,GAC3C,IAAA,GAEA,IAAM,GACJ,IAAK,GAAI,IAAK,GAAI,IAAK,IAAa,GAAK,CACzC,IAAK,GAAI,IAAK,GAAI,IAAK,GAAI,IAAK,GAAI,IAAK,GAC3C,IAAA,GAEA,IAAM,GACJ,IAAI,OACF,OACA,IAEF,GAAI,IACF,CACA,WAAA,mBACF,0BAAA,EACA,KACE,CACA,WAAA,4BACF,0BAAA,EACA,KACE,CACA,WAAA,8BACF,0BAAA,EACA,KACE,CACA,WAAA,WACF,0BAAA,EACA,KACE,CACA,WAAA,aACF,0BAAA,EACA,KACE,CACA,WAAA,oBACF,0BAAA,EACA,EAGA,GAAI,CACF,WAAY,YACZ,0BAAc,EAChB,EACA,GAAA,CAAK,WAAA,QAAA,KACH,CACA,WAAA,wCACF,aAAA,EACA,MACE,CACA,WAAA,8BACF,aAAA,EACA,MACE,CACA,WAAA,iCACF,aAAA,EACA,MACE,CACA,WAAA,wBACF,aAAA,EACA,MACE,CACA,WAAA,6BACF,aAAA,EACA,MACE,CACA,WAAA,gDACF,aAAA,EACA,MACE,CACA,WAAA,6BACF,aAAA,EACA,MACE,CACA,WAAA,uBACF,aAAA,EACA,MACE,CACA,WAAA,kBACF,aAAA,EACA,MACE,CACA,WAAA,6BACF,aAAA,EACA,MACE,CACA,WAAA,8CACF,aAAA,EACA,MACE,CACA,WAAA,iCACF,aAAA,EACA,MACE,CACA,WAAA,qCACF,aAAA,EACA,MACE,CACA,WAAA,wBACF,aAAA,EACA,MACE,CACA,WAAA,6BACF,aAAA,EACA,MACE,CACA,WAAA,oDACF,aAAA,EACA,MACE,CACA,WAAA,+BACF,aAAA,EACA,MACE,CACA,WAAA,0BACF,aAAA,EACA,MACE,CACA,WAAA,kBACF,aAAA,EACA,MACE,CACA,WAAA,iCACA,aAAA,IAEF,IAAA,CACA,WAAK,WACH,YAAY,GACZ,cAAa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