2
0

pdf.worker.js 1.6 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040
  1. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  3. /* Copyright 2012 Mozilla Foundation
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. /*jshint globalstrict: false */
  18. // Initializing PDFJS global object (if still undefined)
  19. if (typeof PDFJS === 'undefined') {
  20. (typeof window !== 'undefined' ? window : this).PDFJS = {};
  21. }
  22. PDFJS.version = '1.0.454';
  23. PDFJS.build = 'e97efaa';
  24. (function pdfjsWrapper() {
  25. // Use strict in our context only - users might not want it
  26. 'use strict';
  27. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  28. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  29. /* Copyright 2012 Mozilla Foundation
  30. *
  31. * Licensed under the Apache License, Version 2.0 (the "License");
  32. * you may not use this file except in compliance with the License.
  33. * You may obtain a copy of the License at
  34. *
  35. * http://www.apache.org/licenses/LICENSE-2.0
  36. *
  37. * Unless required by applicable law or agreed to in writing, software
  38. * distributed under the License is distributed on an "AS IS" BASIS,
  39. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  40. * See the License for the specific language governing permissions and
  41. * limitations under the License.
  42. */
  43. /* globals Cmd, ColorSpace, Dict, MozBlobBuilder, Name, PDFJS, Ref, URL,
  44. Promise */
  45. 'use strict';
  46. var globalScope = (typeof window === 'undefined') ? this : window;
  47. var isWorker = (typeof window == 'undefined');
  48. var FONT_IDENTITY_MATRIX = [0.001, 0, 0, 0.001, 0, 0];
  49. var TextRenderingMode = {
  50. FILL: 0,
  51. STROKE: 1,
  52. FILL_STROKE: 2,
  53. INVISIBLE: 3,
  54. FILL_ADD_TO_PATH: 4,
  55. STROKE_ADD_TO_PATH: 5,
  56. FILL_STROKE_ADD_TO_PATH: 6,
  57. ADD_TO_PATH: 7,
  58. FILL_STROKE_MASK: 3,
  59. ADD_TO_PATH_FLAG: 4
  60. };
  61. var ImageKind = {
  62. GRAYSCALE_1BPP: 1,
  63. RGB_24BPP: 2,
  64. RGBA_32BPP: 3
  65. };
  66. var AnnotationType = {
  67. WIDGET: 1,
  68. TEXT: 2,
  69. LINK: 3
  70. };
  71. var StreamType = {
  72. UNKNOWN: 0,
  73. FLATE: 1,
  74. LZW: 2,
  75. DCT: 3,
  76. JPX: 4,
  77. JBIG: 5,
  78. A85: 6,
  79. AHX: 7,
  80. CCF: 8,
  81. RL: 9
  82. };
  83. var FontType = {
  84. UNKNOWN: 0,
  85. TYPE1: 1,
  86. TYPE1C: 2,
  87. CIDFONTTYPE0: 3,
  88. CIDFONTTYPE0C: 4,
  89. TRUETYPE: 5,
  90. CIDFONTTYPE2: 6,
  91. TYPE3: 7,
  92. OPENTYPE: 8,
  93. TYPE0: 9,
  94. MMTYPE1: 10
  95. };
  96. // The global PDFJS object exposes the API
  97. // In production, it will be declared outside a global wrapper
  98. // In development, it will be declared here
  99. if (!globalScope.PDFJS) {
  100. globalScope.PDFJS = {};
  101. }
  102. globalScope.PDFJS.pdfBug = false;
  103. PDFJS.VERBOSITY_LEVELS = {
  104. errors: 0,
  105. warnings: 1,
  106. infos: 5
  107. };
  108. // All the possible operations for an operator list.
  109. var OPS = PDFJS.OPS = {
  110. // Intentionally start from 1 so it is easy to spot bad operators that will be
  111. // 0's.
  112. dependency: 1,
  113. setLineWidth: 2,
  114. setLineCap: 3,
  115. setLineJoin: 4,
  116. setMiterLimit: 5,
  117. setDash: 6,
  118. setRenderingIntent: 7,
  119. setFlatness: 8,
  120. setGState: 9,
  121. save: 10,
  122. restore: 11,
  123. transform: 12,
  124. moveTo: 13,
  125. lineTo: 14,
  126. curveTo: 15,
  127. curveTo2: 16,
  128. curveTo3: 17,
  129. closePath: 18,
  130. rectangle: 19,
  131. stroke: 20,
  132. closeStroke: 21,
  133. fill: 22,
  134. eoFill: 23,
  135. fillStroke: 24,
  136. eoFillStroke: 25,
  137. closeFillStroke: 26,
  138. closeEOFillStroke: 27,
  139. endPath: 28,
  140. clip: 29,
  141. eoClip: 30,
  142. beginText: 31,
  143. endText: 32,
  144. setCharSpacing: 33,
  145. setWordSpacing: 34,
  146. setHScale: 35,
  147. setLeading: 36,
  148. setFont: 37,
  149. setTextRenderingMode: 38,
  150. setTextRise: 39,
  151. moveText: 40,
  152. setLeadingMoveText: 41,
  153. setTextMatrix: 42,
  154. nextLine: 43,
  155. showText: 44,
  156. showSpacedText: 45,
  157. nextLineShowText: 46,
  158. nextLineSetSpacingShowText: 47,
  159. setCharWidth: 48,
  160. setCharWidthAndBounds: 49,
  161. setStrokeColorSpace: 50,
  162. setFillColorSpace: 51,
  163. setStrokeColor: 52,
  164. setStrokeColorN: 53,
  165. setFillColor: 54,
  166. setFillColorN: 55,
  167. setStrokeGray: 56,
  168. setFillGray: 57,
  169. setStrokeRGBColor: 58,
  170. setFillRGBColor: 59,
  171. setStrokeCMYKColor: 60,
  172. setFillCMYKColor: 61,
  173. shadingFill: 62,
  174. beginInlineImage: 63,
  175. beginImageData: 64,
  176. endInlineImage: 65,
  177. paintXObject: 66,
  178. markPoint: 67,
  179. markPointProps: 68,
  180. beginMarkedContent: 69,
  181. beginMarkedContentProps: 70,
  182. endMarkedContent: 71,
  183. beginCompat: 72,
  184. endCompat: 73,
  185. paintFormXObjectBegin: 74,
  186. paintFormXObjectEnd: 75,
  187. beginGroup: 76,
  188. endGroup: 77,
  189. beginAnnotations: 78,
  190. endAnnotations: 79,
  191. beginAnnotation: 80,
  192. endAnnotation: 81,
  193. paintJpegXObject: 82,
  194. paintImageMaskXObject: 83,
  195. paintImageMaskXObjectGroup: 84,
  196. paintImageXObject: 85,
  197. paintInlineImageXObject: 86,
  198. paintInlineImageXObjectGroup: 87,
  199. paintImageXObjectRepeat: 88,
  200. paintImageMaskXObjectRepeat: 89,
  201. paintSolidColorImageMask: 90,
  202. constructPath: 91
  203. };
  204. // A notice for devs. These are good for things that are helpful to devs, such
  205. // as warning that Workers were disabled, which is important to devs but not
  206. // end users.
  207. function info(msg) {
  208. if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.infos) {
  209. console.log('Info: ' + msg);
  210. }
  211. }
  212. // Non-fatal warnings.
  213. function warn(msg) {
  214. if (PDFJS.verbosity >= PDFJS.VERBOSITY_LEVELS.warnings) {
  215. console.log('Warning: ' + msg);
  216. }
  217. }
  218. // Fatal errors that should trigger the fallback UI and halt execution by
  219. // throwing an exception.
  220. function error(msg) {
  221. // If multiple arguments were passed, pass them all to the log function.
  222. if (arguments.length > 1) {
  223. var logArguments = ['Error:'];
  224. logArguments.push.apply(logArguments, arguments);
  225. console.log.apply(console, logArguments);
  226. // Join the arguments into a single string for the lines below.
  227. msg = [].join.call(arguments, ' ');
  228. } else {
  229. console.log('Error: ' + msg);
  230. }
  231. console.log(backtrace());
  232. UnsupportedManager.notify(UNSUPPORTED_FEATURES.unknown);
  233. throw new Error(msg);
  234. }
  235. function backtrace() {
  236. try {
  237. throw new Error();
  238. } catch (e) {
  239. return e.stack ? e.stack.split('\n').slice(2).join('\n') : '';
  240. }
  241. }
  242. function assert(cond, msg) {
  243. if (!cond) {
  244. error(msg);
  245. }
  246. }
  247. var UNSUPPORTED_FEATURES = PDFJS.UNSUPPORTED_FEATURES = {
  248. unknown: 'unknown',
  249. forms: 'forms',
  250. javaScript: 'javaScript',
  251. smask: 'smask',
  252. shadingPattern: 'shadingPattern',
  253. font: 'font'
  254. };
  255. var UnsupportedManager = PDFJS.UnsupportedManager =
  256. (function UnsupportedManagerClosure() {
  257. var listeners = [];
  258. return {
  259. listen: function (cb) {
  260. listeners.push(cb);
  261. },
  262. notify: function (featureId) {
  263. warn('Unsupported feature "' + featureId + '"');
  264. for (var i = 0, ii = listeners.length; i < ii; i++) {
  265. listeners[i](featureId);
  266. }
  267. }
  268. };
  269. })();
  270. // Combines two URLs. The baseUrl shall be absolute URL. If the url is an
  271. // absolute URL, it will be returned as is.
  272. function combineUrl(baseUrl, url) {
  273. if (!url) {
  274. return baseUrl;
  275. }
  276. if (/^[a-z][a-z0-9+\-.]*:/i.test(url)) {
  277. return url;
  278. }
  279. var i;
  280. if (url.charAt(0) == '/') {
  281. // absolute path
  282. i = baseUrl.indexOf('://');
  283. if (url.charAt(1) === '/') {
  284. ++i;
  285. } else {
  286. i = baseUrl.indexOf('/', i + 3);
  287. }
  288. return baseUrl.substring(0, i) + url;
  289. } else {
  290. // relative path
  291. var pathLength = baseUrl.length;
  292. i = baseUrl.lastIndexOf('#');
  293. pathLength = i >= 0 ? i : pathLength;
  294. i = baseUrl.lastIndexOf('?', pathLength);
  295. pathLength = i >= 0 ? i : pathLength;
  296. var prefixLength = baseUrl.lastIndexOf('/', pathLength);
  297. return baseUrl.substring(0, prefixLength + 1) + url;
  298. }
  299. }
  300. // Validates if URL is safe and allowed, e.g. to avoid XSS.
  301. function isValidUrl(url, allowRelative) {
  302. if (!url) {
  303. return false;
  304. }
  305. // RFC 3986 (http://tools.ietf.org/html/rfc3986#section-3.1)
  306. // scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
  307. var protocol = /^[a-z][a-z0-9+\-.]*(?=:)/i.exec(url);
  308. if (!protocol) {
  309. return allowRelative;
  310. }
  311. protocol = protocol[0].toLowerCase();
  312. switch (protocol) {
  313. case 'http':
  314. case 'https':
  315. case 'ftp':
  316. case 'mailto':
  317. return true;
  318. default:
  319. return false;
  320. }
  321. }
  322. PDFJS.isValidUrl = isValidUrl;
  323. function shadow(obj, prop, value) {
  324. Object.defineProperty(obj, prop, { value: value,
  325. enumerable: true,
  326. configurable: true,
  327. writable: false });
  328. return value;
  329. }
  330. var PasswordResponses = PDFJS.PasswordResponses = {
  331. NEED_PASSWORD: 1,
  332. INCORRECT_PASSWORD: 2
  333. };
  334. var PasswordException = (function PasswordExceptionClosure() {
  335. function PasswordException(msg, code) {
  336. this.name = 'PasswordException';
  337. this.message = msg;
  338. this.code = code;
  339. }
  340. PasswordException.prototype = new Error();
  341. PasswordException.constructor = PasswordException;
  342. return PasswordException;
  343. })();
  344. var UnknownErrorException = (function UnknownErrorExceptionClosure() {
  345. function UnknownErrorException(msg, details) {
  346. this.name = 'UnknownErrorException';
  347. this.message = msg;
  348. this.details = details;
  349. }
  350. UnknownErrorException.prototype = new Error();
  351. UnknownErrorException.constructor = UnknownErrorException;
  352. return UnknownErrorException;
  353. })();
  354. var InvalidPDFException = (function InvalidPDFExceptionClosure() {
  355. function InvalidPDFException(msg) {
  356. this.name = 'InvalidPDFException';
  357. this.message = msg;
  358. }
  359. InvalidPDFException.prototype = new Error();
  360. InvalidPDFException.constructor = InvalidPDFException;
  361. return InvalidPDFException;
  362. })();
  363. var MissingPDFException = (function MissingPDFExceptionClosure() {
  364. function MissingPDFException(msg) {
  365. this.name = 'MissingPDFException';
  366. this.message = msg;
  367. }
  368. MissingPDFException.prototype = new Error();
  369. MissingPDFException.constructor = MissingPDFException;
  370. return MissingPDFException;
  371. })();
  372. var NotImplementedException = (function NotImplementedExceptionClosure() {
  373. function NotImplementedException(msg) {
  374. this.message = msg;
  375. }
  376. NotImplementedException.prototype = new Error();
  377. NotImplementedException.prototype.name = 'NotImplementedException';
  378. NotImplementedException.constructor = NotImplementedException;
  379. return NotImplementedException;
  380. })();
  381. var MissingDataException = (function MissingDataExceptionClosure() {
  382. function MissingDataException(begin, end) {
  383. this.begin = begin;
  384. this.end = end;
  385. this.message = 'Missing data [' + begin + ', ' + end + ')';
  386. }
  387. MissingDataException.prototype = new Error();
  388. MissingDataException.prototype.name = 'MissingDataException';
  389. MissingDataException.constructor = MissingDataException;
  390. return MissingDataException;
  391. })();
  392. var XRefParseException = (function XRefParseExceptionClosure() {
  393. function XRefParseException(msg) {
  394. this.message = msg;
  395. }
  396. XRefParseException.prototype = new Error();
  397. XRefParseException.prototype.name = 'XRefParseException';
  398. XRefParseException.constructor = XRefParseException;
  399. return XRefParseException;
  400. })();
  401. function bytesToString(bytes) {
  402. var length = bytes.length;
  403. var MAX_ARGUMENT_COUNT = 8192;
  404. if (length < MAX_ARGUMENT_COUNT) {
  405. return String.fromCharCode.apply(null, bytes);
  406. }
  407. var strBuf = [];
  408. for (var i = 0; i < length; i += MAX_ARGUMENT_COUNT) {
  409. var chunkEnd = Math.min(i + MAX_ARGUMENT_COUNT, length);
  410. var chunk = bytes.subarray(i, chunkEnd);
  411. strBuf.push(String.fromCharCode.apply(null, chunk));
  412. }
  413. return strBuf.join('');
  414. }
  415. function stringToArray(str) {
  416. var length = str.length;
  417. var array = [];
  418. for (var i = 0; i < length; ++i) {
  419. array[i] = str.charCodeAt(i);
  420. }
  421. return array;
  422. }
  423. function stringToBytes(str) {
  424. var length = str.length;
  425. var bytes = new Uint8Array(length);
  426. for (var i = 0; i < length; ++i) {
  427. bytes[i] = str.charCodeAt(i) & 0xFF;
  428. }
  429. return bytes;
  430. }
  431. function string32(value) {
  432. return String.fromCharCode((value >> 24) & 0xff, (value >> 16) & 0xff,
  433. (value >> 8) & 0xff, value & 0xff);
  434. }
  435. function log2(x) {
  436. var n = 1, i = 0;
  437. while (x > n) {
  438. n <<= 1;
  439. i++;
  440. }
  441. return i;
  442. }
  443. function readInt8(data, start) {
  444. return (data[start] << 24) >> 24;
  445. }
  446. function readUint16(data, offset) {
  447. return (data[offset] << 8) | data[offset + 1];
  448. }
  449. function readUint32(data, offset) {
  450. return ((data[offset] << 24) | (data[offset + 1] << 16) |
  451. (data[offset + 2] << 8) | data[offset + 3]) >>> 0;
  452. }
  453. // Lazy test the endianness of the platform
  454. // NOTE: This will be 'true' for simulated TypedArrays
  455. function isLittleEndian() {
  456. var buffer8 = new Uint8Array(2);
  457. buffer8[0] = 1;
  458. var buffer16 = new Uint16Array(buffer8.buffer);
  459. return (buffer16[0] === 1);
  460. }
  461. Object.defineProperty(PDFJS, 'isLittleEndian', {
  462. configurable: true,
  463. get: function PDFJS_isLittleEndian() {
  464. return shadow(PDFJS, 'isLittleEndian', isLittleEndian());
  465. }
  466. });
  467. // Lazy test if the userAgant support CanvasTypedArrays
  468. function hasCanvasTypedArrays() {
  469. var canvas = document.createElement('canvas');
  470. canvas.width = canvas.height = 1;
  471. var ctx = canvas.getContext('2d');
  472. var imageData = ctx.createImageData(1, 1);
  473. return (typeof imageData.data.buffer !== 'undefined');
  474. }
  475. Object.defineProperty(PDFJS, 'hasCanvasTypedArrays', {
  476. configurable: true,
  477. get: function PDFJS_hasCanvasTypedArrays() {
  478. return shadow(PDFJS, 'hasCanvasTypedArrays', hasCanvasTypedArrays());
  479. }
  480. });
  481. var Uint32ArrayView = (function Uint32ArrayViewClosure() {
  482. function Uint32ArrayView(buffer, length) {
  483. this.buffer = buffer;
  484. this.byteLength = buffer.length;
  485. this.length = length === undefined ? (this.byteLength >> 2) : length;
  486. ensureUint32ArrayViewProps(this.length);
  487. }
  488. Uint32ArrayView.prototype = Object.create(null);
  489. var uint32ArrayViewSetters = 0;
  490. function createUint32ArrayProp(index) {
  491. return {
  492. get: function () {
  493. var buffer = this.buffer, offset = index << 2;
  494. return (buffer[offset] | (buffer[offset + 1] << 8) |
  495. (buffer[offset + 2] << 16) | (buffer[offset + 3] << 24)) >>> 0;
  496. },
  497. set: function (value) {
  498. var buffer = this.buffer, offset = index << 2;
  499. buffer[offset] = value & 255;
  500. buffer[offset + 1] = (value >> 8) & 255;
  501. buffer[offset + 2] = (value >> 16) & 255;
  502. buffer[offset + 3] = (value >>> 24) & 255;
  503. }
  504. };
  505. }
  506. function ensureUint32ArrayViewProps(length) {
  507. while (uint32ArrayViewSetters < length) {
  508. Object.defineProperty(Uint32ArrayView.prototype,
  509. uint32ArrayViewSetters,
  510. createUint32ArrayProp(uint32ArrayViewSetters));
  511. uint32ArrayViewSetters++;
  512. }
  513. }
  514. return Uint32ArrayView;
  515. })();
  516. var IDENTITY_MATRIX = [1, 0, 0, 1, 0, 0];
  517. var Util = PDFJS.Util = (function UtilClosure() {
  518. function Util() {}
  519. var rgbBuf = ['rgb(', 0, ',', 0, ',', 0, ')'];
  520. // makeCssRgb() can be called thousands of times. Using |rgbBuf| avoids
  521. // creating many intermediate strings.
  522. Util.makeCssRgb = function Util_makeCssRgb(rgb) {
  523. rgbBuf[1] = rgb[0];
  524. rgbBuf[3] = rgb[1];
  525. rgbBuf[5] = rgb[2];
  526. return rgbBuf.join('');
  527. };
  528. // Concatenates two transformation matrices together and returns the result.
  529. Util.transform = function Util_transform(m1, m2) {
  530. return [
  531. m1[0] * m2[0] + m1[2] * m2[1],
  532. m1[1] * m2[0] + m1[3] * m2[1],
  533. m1[0] * m2[2] + m1[2] * m2[3],
  534. m1[1] * m2[2] + m1[3] * m2[3],
  535. m1[0] * m2[4] + m1[2] * m2[5] + m1[4],
  536. m1[1] * m2[4] + m1[3] * m2[5] + m1[5]
  537. ];
  538. };
  539. // For 2d affine transforms
  540. Util.applyTransform = function Util_applyTransform(p, m) {
  541. var xt = p[0] * m[0] + p[1] * m[2] + m[4];
  542. var yt = p[0] * m[1] + p[1] * m[3] + m[5];
  543. return [xt, yt];
  544. };
  545. Util.applyInverseTransform = function Util_applyInverseTransform(p, m) {
  546. var d = m[0] * m[3] - m[1] * m[2];
  547. var xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d;
  548. var yt = (-p[0] * m[1] + p[1] * m[0] + m[4] * m[1] - m[5] * m[0]) / d;
  549. return [xt, yt];
  550. };
  551. // Applies the transform to the rectangle and finds the minimum axially
  552. // aligned bounding box.
  553. Util.getAxialAlignedBoundingBox =
  554. function Util_getAxialAlignedBoundingBox(r, m) {
  555. var p1 = Util.applyTransform(r, m);
  556. var p2 = Util.applyTransform(r.slice(2, 4), m);
  557. var p3 = Util.applyTransform([r[0], r[3]], m);
  558. var p4 = Util.applyTransform([r[2], r[1]], m);
  559. return [
  560. Math.min(p1[0], p2[0], p3[0], p4[0]),
  561. Math.min(p1[1], p2[1], p3[1], p4[1]),
  562. Math.max(p1[0], p2[0], p3[0], p4[0]),
  563. Math.max(p1[1], p2[1], p3[1], p4[1])
  564. ];
  565. };
  566. Util.inverseTransform = function Util_inverseTransform(m) {
  567. var d = m[0] * m[3] - m[1] * m[2];
  568. return [m[3] / d, -m[1] / d, -m[2] / d, m[0] / d,
  569. (m[2] * m[5] - m[4] * m[3]) / d, (m[4] * m[1] - m[5] * m[0]) / d];
  570. };
  571. // Apply a generic 3d matrix M on a 3-vector v:
  572. // | a b c | | X |
  573. // | d e f | x | Y |
  574. // | g h i | | Z |
  575. // M is assumed to be serialized as [a,b,c,d,e,f,g,h,i],
  576. // with v as [X,Y,Z]
  577. Util.apply3dTransform = function Util_apply3dTransform(m, v) {
  578. return [
  579. m[0] * v[0] + m[1] * v[1] + m[2] * v[2],
  580. m[3] * v[0] + m[4] * v[1] + m[5] * v[2],
  581. m[6] * v[0] + m[7] * v[1] + m[8] * v[2]
  582. ];
  583. };
  584. // This calculation uses Singular Value Decomposition.
  585. // The SVD can be represented with formula A = USV. We are interested in the
  586. // matrix S here because it represents the scale values.
  587. Util.singularValueDecompose2dScale =
  588. function Util_singularValueDecompose2dScale(m) {
  589. var transpose = [m[0], m[2], m[1], m[3]];
  590. // Multiply matrix m with its transpose.
  591. var a = m[0] * transpose[0] + m[1] * transpose[2];
  592. var b = m[0] * transpose[1] + m[1] * transpose[3];
  593. var c = m[2] * transpose[0] + m[3] * transpose[2];
  594. var d = m[2] * transpose[1] + m[3] * transpose[3];
  595. // Solve the second degree polynomial to get roots.
  596. var first = (a + d) / 2;
  597. var second = Math.sqrt((a + d) * (a + d) - 4 * (a * d - c * b)) / 2;
  598. var sx = first + second || 1;
  599. var sy = first - second || 1;
  600. // Scale values are the square roots of the eigenvalues.
  601. return [Math.sqrt(sx), Math.sqrt(sy)];
  602. };
  603. // Normalize rectangle rect=[x1, y1, x2, y2] so that (x1,y1) < (x2,y2)
  604. // For coordinate systems whose origin lies in the bottom-left, this
  605. // means normalization to (BL,TR) ordering. For systems with origin in the
  606. // top-left, this means (TL,BR) ordering.
  607. Util.normalizeRect = function Util_normalizeRect(rect) {
  608. var r = rect.slice(0); // clone rect
  609. if (rect[0] > rect[2]) {
  610. r[0] = rect[2];
  611. r[2] = rect[0];
  612. }
  613. if (rect[1] > rect[3]) {
  614. r[1] = rect[3];
  615. r[3] = rect[1];
  616. }
  617. return r;
  618. };
  619. // Returns a rectangle [x1, y1, x2, y2] corresponding to the
  620. // intersection of rect1 and rect2. If no intersection, returns 'false'
  621. // The rectangle coordinates of rect1, rect2 should be [x1, y1, x2, y2]
  622. Util.intersect = function Util_intersect(rect1, rect2) {
  623. function compare(a, b) {
  624. return a - b;
  625. }
  626. // Order points along the axes
  627. var orderedX = [rect1[0], rect1[2], rect2[0], rect2[2]].sort(compare),
  628. orderedY = [rect1[1], rect1[3], rect2[1], rect2[3]].sort(compare),
  629. result = [];
  630. rect1 = Util.normalizeRect(rect1);
  631. rect2 = Util.normalizeRect(rect2);
  632. // X: first and second points belong to different rectangles?
  633. if ((orderedX[0] === rect1[0] && orderedX[1] === rect2[0]) ||
  634. (orderedX[0] === rect2[0] && orderedX[1] === rect1[0])) {
  635. // Intersection must be between second and third points
  636. result[0] = orderedX[1];
  637. result[2] = orderedX[2];
  638. } else {
  639. return false;
  640. }
  641. // Y: first and second points belong to different rectangles?
  642. if ((orderedY[0] === rect1[1] && orderedY[1] === rect2[1]) ||
  643. (orderedY[0] === rect2[1] && orderedY[1] === rect1[1])) {
  644. // Intersection must be between second and third points
  645. result[1] = orderedY[1];
  646. result[3] = orderedY[2];
  647. } else {
  648. return false;
  649. }
  650. return result;
  651. };
  652. Util.sign = function Util_sign(num) {
  653. return num < 0 ? -1 : 1;
  654. };
  655. Util.appendToArray = function Util_appendToArray(arr1, arr2) {
  656. Array.prototype.push.apply(arr1, arr2);
  657. };
  658. Util.prependToArray = function Util_prependToArray(arr1, arr2) {
  659. Array.prototype.unshift.apply(arr1, arr2);
  660. };
  661. Util.extendObj = function extendObj(obj1, obj2) {
  662. for (var key in obj2) {
  663. obj1[key] = obj2[key];
  664. }
  665. };
  666. Util.getInheritableProperty = function Util_getInheritableProperty(dict,
  667. name) {
  668. while (dict && !dict.has(name)) {
  669. dict = dict.get('Parent');
  670. }
  671. if (!dict) {
  672. return null;
  673. }
  674. return dict.get(name);
  675. };
  676. Util.inherit = function Util_inherit(sub, base, prototype) {
  677. sub.prototype = Object.create(base.prototype);
  678. sub.prototype.constructor = sub;
  679. for (var prop in prototype) {
  680. sub.prototype[prop] = prototype[prop];
  681. }
  682. };
  683. Util.loadScript = function Util_loadScript(src, callback) {
  684. var script = document.createElement('script');
  685. var loaded = false;
  686. script.setAttribute('src', src);
  687. if (callback) {
  688. script.onload = function() {
  689. if (!loaded) {
  690. callback();
  691. }
  692. loaded = true;
  693. };
  694. }
  695. document.getElementsByTagName('head')[0].appendChild(script);
  696. };
  697. return Util;
  698. })();
  699. /**
  700. * PDF page viewport created based on scale, rotation and offset.
  701. * @class
  702. * @alias PDFJS.PageViewport
  703. */
  704. var PageViewport = PDFJS.PageViewport = (function PageViewportClosure() {
  705. /**
  706. * @constructor
  707. * @private
  708. * @param viewBox {Array} xMin, yMin, xMax and yMax coordinates.
  709. * @param scale {number} scale of the viewport.
  710. * @param rotation {number} rotations of the viewport in degrees.
  711. * @param offsetX {number} offset X
  712. * @param offsetY {number} offset Y
  713. * @param dontFlip {boolean} if true, axis Y will not be flipped.
  714. */
  715. function PageViewport(viewBox, scale, rotation, offsetX, offsetY, dontFlip) {
  716. this.viewBox = viewBox;
  717. this.scale = scale;
  718. this.rotation = rotation;
  719. this.offsetX = offsetX;
  720. this.offsetY = offsetY;
  721. // creating transform to convert pdf coordinate system to the normal
  722. // canvas like coordinates taking in account scale and rotation
  723. var centerX = (viewBox[2] + viewBox[0]) / 2;
  724. var centerY = (viewBox[3] + viewBox[1]) / 2;
  725. var rotateA, rotateB, rotateC, rotateD;
  726. rotation = rotation % 360;
  727. rotation = rotation < 0 ? rotation + 360 : rotation;
  728. switch (rotation) {
  729. case 180:
  730. rotateA = -1; rotateB = 0; rotateC = 0; rotateD = 1;
  731. break;
  732. case 90:
  733. rotateA = 0; rotateB = 1; rotateC = 1; rotateD = 0;
  734. break;
  735. case 270:
  736. rotateA = 0; rotateB = -1; rotateC = -1; rotateD = 0;
  737. break;
  738. //case 0:
  739. default:
  740. rotateA = 1; rotateB = 0; rotateC = 0; rotateD = -1;
  741. break;
  742. }
  743. if (dontFlip) {
  744. rotateC = -rotateC; rotateD = -rotateD;
  745. }
  746. var offsetCanvasX, offsetCanvasY;
  747. var width, height;
  748. if (rotateA === 0) {
  749. offsetCanvasX = Math.abs(centerY - viewBox[1]) * scale + offsetX;
  750. offsetCanvasY = Math.abs(centerX - viewBox[0]) * scale + offsetY;
  751. width = Math.abs(viewBox[3] - viewBox[1]) * scale;
  752. height = Math.abs(viewBox[2] - viewBox[0]) * scale;
  753. } else {
  754. offsetCanvasX = Math.abs(centerX - viewBox[0]) * scale + offsetX;
  755. offsetCanvasY = Math.abs(centerY - viewBox[1]) * scale + offsetY;
  756. width = Math.abs(viewBox[2] - viewBox[0]) * scale;
  757. height = Math.abs(viewBox[3] - viewBox[1]) * scale;
  758. }
  759. // creating transform for the following operations:
  760. // translate(-centerX, -centerY), rotate and flip vertically,
  761. // scale, and translate(offsetCanvasX, offsetCanvasY)
  762. this.transform = [
  763. rotateA * scale,
  764. rotateB * scale,
  765. rotateC * scale,
  766. rotateD * scale,
  767. offsetCanvasX - rotateA * scale * centerX - rotateC * scale * centerY,
  768. offsetCanvasY - rotateB * scale * centerX - rotateD * scale * centerY
  769. ];
  770. this.width = width;
  771. this.height = height;
  772. this.fontScale = scale;
  773. }
  774. PageViewport.prototype = /** @lends PDFJS.PageViewport.prototype */ {
  775. /**
  776. * Clones viewport with additional properties.
  777. * @param args {Object} (optional) If specified, may contain the 'scale' or
  778. * 'rotation' properties to override the corresponding properties in
  779. * the cloned viewport.
  780. * @returns {PDFJS.PageViewport} Cloned viewport.
  781. */
  782. clone: function PageViewPort_clone(args) {
  783. args = args || {};
  784. var scale = 'scale' in args ? args.scale : this.scale;
  785. var rotation = 'rotation' in args ? args.rotation : this.rotation;
  786. return new PageViewport(this.viewBox.slice(), scale, rotation,
  787. this.offsetX, this.offsetY, args.dontFlip);
  788. },
  789. /**
  790. * Converts PDF point to the viewport coordinates. For examples, useful for
  791. * converting PDF location into canvas pixel coordinates.
  792. * @param x {number} X coordinate.
  793. * @param y {number} Y coordinate.
  794. * @returns {Object} Object that contains 'x' and 'y' properties of the
  795. * point in the viewport coordinate space.
  796. * @see {@link convertToPdfPoint}
  797. * @see {@link convertToViewportRectangle}
  798. */
  799. convertToViewportPoint: function PageViewport_convertToViewportPoint(x, y) {
  800. return Util.applyTransform([x, y], this.transform);
  801. },
  802. /**
  803. * Converts PDF rectangle to the viewport coordinates.
  804. * @param rect {Array} xMin, yMin, xMax and yMax coordinates.
  805. * @returns {Array} Contains corresponding coordinates of the rectangle
  806. * in the viewport coordinate space.
  807. * @see {@link convertToViewportPoint}
  808. */
  809. convertToViewportRectangle:
  810. function PageViewport_convertToViewportRectangle(rect) {
  811. var tl = Util.applyTransform([rect[0], rect[1]], this.transform);
  812. var br = Util.applyTransform([rect[2], rect[3]], this.transform);
  813. return [tl[0], tl[1], br[0], br[1]];
  814. },
  815. /**
  816. * Converts viewport coordinates to the PDF location. For examples, useful
  817. * for converting canvas pixel location into PDF one.
  818. * @param x {number} X coordinate.
  819. * @param y {number} Y coordinate.
  820. * @returns {Object} Object that contains 'x' and 'y' properties of the
  821. * point in the PDF coordinate space.
  822. * @see {@link convertToViewportPoint}
  823. */
  824. convertToPdfPoint: function PageViewport_convertToPdfPoint(x, y) {
  825. return Util.applyInverseTransform([x, y], this.transform);
  826. }
  827. };
  828. return PageViewport;
  829. })();
  830. var PDFStringTranslateTable = [
  831. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  832. 0x2D8, 0x2C7, 0x2C6, 0x2D9, 0x2DD, 0x2DB, 0x2DA, 0x2DC, 0, 0, 0, 0, 0, 0, 0,
  833. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  834. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  835. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  836. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x2022, 0x2020, 0x2021, 0x2026, 0x2014,
  837. 0x2013, 0x192, 0x2044, 0x2039, 0x203A, 0x2212, 0x2030, 0x201E, 0x201C,
  838. 0x201D, 0x2018, 0x2019, 0x201A, 0x2122, 0xFB01, 0xFB02, 0x141, 0x152, 0x160,
  839. 0x178, 0x17D, 0x131, 0x142, 0x153, 0x161, 0x17E, 0, 0x20AC
  840. ];
  841. function stringToPDFString(str) {
  842. var i, n = str.length, strBuf = [];
  843. if (str[0] === '\xFE' && str[1] === '\xFF') {
  844. // UTF16BE BOM
  845. for (i = 2; i < n; i += 2) {
  846. strBuf.push(String.fromCharCode(
  847. (str.charCodeAt(i) << 8) | str.charCodeAt(i + 1)));
  848. }
  849. } else {
  850. for (i = 0; i < n; ++i) {
  851. var code = PDFStringTranslateTable[str.charCodeAt(i)];
  852. strBuf.push(code ? String.fromCharCode(code) : str.charAt(i));
  853. }
  854. }
  855. return strBuf.join('');
  856. }
  857. function stringToUTF8String(str) {
  858. return decodeURIComponent(escape(str));
  859. }
  860. function isEmptyObj(obj) {
  861. for (var key in obj) {
  862. return false;
  863. }
  864. return true;
  865. }
  866. function isBool(v) {
  867. return typeof v == 'boolean';
  868. }
  869. function isInt(v) {
  870. return typeof v === 'number' && ((v | 0) === v);
  871. }
  872. function isNum(v) {
  873. return typeof v === 'number';
  874. }
  875. function isString(v) {
  876. return typeof v === 'string';
  877. }
  878. function isNull(v) {
  879. return v === null;
  880. }
  881. function isName(v) {
  882. return v instanceof Name;
  883. }
  884. function isCmd(v, cmd) {
  885. return v instanceof Cmd && (cmd === undefined || v.cmd === cmd);
  886. }
  887. function isDict(v, type) {
  888. if (!(v instanceof Dict)) {
  889. return false;
  890. }
  891. if (!type) {
  892. return true;
  893. }
  894. var dictType = v.get('Type');
  895. return isName(dictType) && dictType.name === type;
  896. }
  897. function isArray(v) {
  898. return v instanceof Array;
  899. }
  900. function isStream(v) {
  901. return typeof v === 'object' && v !== null && v.getBytes !== undefined;
  902. }
  903. function isArrayBuffer(v) {
  904. return typeof v === 'object' && v !== null && v.byteLength !== undefined;
  905. }
  906. function isRef(v) {
  907. return v instanceof Ref;
  908. }
  909. /**
  910. * Promise Capability object.
  911. *
  912. * @typedef {Object} PromiseCapability
  913. * @property {Promise} promise - A promise object.
  914. * @property {function} resolve - Fullfills the promise.
  915. * @property {function} reject - Rejects the promise.
  916. */
  917. /**
  918. * Creates a promise capability object.
  919. * @alias PDFJS.createPromiseCapability
  920. *
  921. * @return {PromiseCapability} A capability object contains:
  922. * - a Promise, resolve and reject methods.
  923. */
  924. function createPromiseCapability() {
  925. var capability = {};
  926. capability.promise = new Promise(function (resolve, reject) {
  927. capability.resolve = resolve;
  928. capability.reject = reject;
  929. });
  930. return capability;
  931. }
  932. PDFJS.createPromiseCapability = createPromiseCapability;
  933. /**
  934. * Polyfill for Promises:
  935. * The following promise implementation tries to generally implement the
  936. * Promise/A+ spec. Some notable differences from other promise libaries are:
  937. * - There currently isn't a seperate deferred and promise object.
  938. * - Unhandled rejections eventually show an error if they aren't handled.
  939. *
  940. * Based off of the work in:
  941. * https://bugzilla.mozilla.org/show_bug.cgi?id=810490
  942. */
  943. (function PromiseClosure() {
  944. if (globalScope.Promise) {
  945. // Promises existing in the DOM/Worker, checking presence of all/resolve
  946. if (typeof globalScope.Promise.all !== 'function') {
  947. globalScope.Promise.all = function (iterable) {
  948. var count = 0, results = [], resolve, reject;
  949. var promise = new globalScope.Promise(function (resolve_, reject_) {
  950. resolve = resolve_;
  951. reject = reject_;
  952. });
  953. iterable.forEach(function (p, i) {
  954. count++;
  955. p.then(function (result) {
  956. results[i] = result;
  957. count--;
  958. if (count === 0) {
  959. resolve(results);
  960. }
  961. }, reject);
  962. });
  963. if (count === 0) {
  964. resolve(results);
  965. }
  966. return promise;
  967. };
  968. }
  969. if (typeof globalScope.Promise.resolve !== 'function') {
  970. globalScope.Promise.resolve = function (value) {
  971. return new globalScope.Promise(function (resolve) { resolve(value); });
  972. };
  973. }
  974. if (typeof globalScope.Promise.reject !== 'function') {
  975. globalScope.Promise.reject = function (reason) {
  976. return new globalScope.Promise(function (resolve, reject) {
  977. reject(reason);
  978. });
  979. };
  980. }
  981. if (typeof globalScope.Promise.prototype.catch !== 'function') {
  982. globalScope.Promise.prototype.catch = function (onReject) {
  983. return globalScope.Promise.prototype.then(undefined, onReject);
  984. };
  985. }
  986. return;
  987. }
  988. var STATUS_PENDING = 0;
  989. var STATUS_RESOLVED = 1;
  990. var STATUS_REJECTED = 2;
  991. // In an attempt to avoid silent exceptions, unhandled rejections are
  992. // tracked and if they aren't handled in a certain amount of time an
  993. // error is logged.
  994. var REJECTION_TIMEOUT = 500;
  995. var HandlerManager = {
  996. handlers: [],
  997. running: false,
  998. unhandledRejections: [],
  999. pendingRejectionCheck: false,
  1000. scheduleHandlers: function scheduleHandlers(promise) {
  1001. if (promise._status == STATUS_PENDING) {
  1002. return;
  1003. }
  1004. this.handlers = this.handlers.concat(promise._handlers);
  1005. promise._handlers = [];
  1006. if (this.running) {
  1007. return;
  1008. }
  1009. this.running = true;
  1010. setTimeout(this.runHandlers.bind(this), 0);
  1011. },
  1012. runHandlers: function runHandlers() {
  1013. var RUN_TIMEOUT = 1; // ms
  1014. var timeoutAt = Date.now() + RUN_TIMEOUT;
  1015. while (this.handlers.length > 0) {
  1016. var handler = this.handlers.shift();
  1017. var nextStatus = handler.thisPromise._status;
  1018. var nextValue = handler.thisPromise._value;
  1019. try {
  1020. if (nextStatus === STATUS_RESOLVED) {
  1021. if (typeof(handler.onResolve) == 'function') {
  1022. nextValue = handler.onResolve(nextValue);
  1023. }
  1024. } else if (typeof(handler.onReject) === 'function') {
  1025. nextValue = handler.onReject(nextValue);
  1026. nextStatus = STATUS_RESOLVED;
  1027. if (handler.thisPromise._unhandledRejection) {
  1028. this.removeUnhandeledRejection(handler.thisPromise);
  1029. }
  1030. }
  1031. } catch (ex) {
  1032. nextStatus = STATUS_REJECTED;
  1033. nextValue = ex;
  1034. }
  1035. handler.nextPromise._updateStatus(nextStatus, nextValue);
  1036. if (Date.now() >= timeoutAt) {
  1037. break;
  1038. }
  1039. }
  1040. if (this.handlers.length > 0) {
  1041. setTimeout(this.runHandlers.bind(this), 0);
  1042. return;
  1043. }
  1044. this.running = false;
  1045. },
  1046. addUnhandledRejection: function addUnhandledRejection(promise) {
  1047. this.unhandledRejections.push({
  1048. promise: promise,
  1049. time: Date.now()
  1050. });
  1051. this.scheduleRejectionCheck();
  1052. },
  1053. removeUnhandeledRejection: function removeUnhandeledRejection(promise) {
  1054. promise._unhandledRejection = false;
  1055. for (var i = 0; i < this.unhandledRejections.length; i++) {
  1056. if (this.unhandledRejections[i].promise === promise) {
  1057. this.unhandledRejections.splice(i);
  1058. i--;
  1059. }
  1060. }
  1061. },
  1062. scheduleRejectionCheck: function scheduleRejectionCheck() {
  1063. if (this.pendingRejectionCheck) {
  1064. return;
  1065. }
  1066. this.pendingRejectionCheck = true;
  1067. setTimeout(function rejectionCheck() {
  1068. this.pendingRejectionCheck = false;
  1069. var now = Date.now();
  1070. for (var i = 0; i < this.unhandledRejections.length; i++) {
  1071. if (now - this.unhandledRejections[i].time > REJECTION_TIMEOUT) {
  1072. var unhandled = this.unhandledRejections[i].promise._value;
  1073. var msg = 'Unhandled rejection: ' + unhandled;
  1074. if (unhandled.stack) {
  1075. msg += '\n' + unhandled.stack;
  1076. }
  1077. warn(msg);
  1078. this.unhandledRejections.splice(i);
  1079. i--;
  1080. }
  1081. }
  1082. if (this.unhandledRejections.length) {
  1083. this.scheduleRejectionCheck();
  1084. }
  1085. }.bind(this), REJECTION_TIMEOUT);
  1086. }
  1087. };
  1088. function Promise(resolver) {
  1089. this._status = STATUS_PENDING;
  1090. this._handlers = [];
  1091. try {
  1092. resolver.call(this, this._resolve.bind(this), this._reject.bind(this));
  1093. } catch (e) {
  1094. this._reject(e);
  1095. }
  1096. }
  1097. /**
  1098. * Builds a promise that is resolved when all the passed in promises are
  1099. * resolved.
  1100. * @param {array} array of data and/or promises to wait for.
  1101. * @return {Promise} New dependant promise.
  1102. */
  1103. Promise.all = function Promise_all(promises) {
  1104. var resolveAll, rejectAll;
  1105. var deferred = new Promise(function (resolve, reject) {
  1106. resolveAll = resolve;
  1107. rejectAll = reject;
  1108. });
  1109. var unresolved = promises.length;
  1110. var results = [];
  1111. if (unresolved === 0) {
  1112. resolveAll(results);
  1113. return deferred;
  1114. }
  1115. function reject(reason) {
  1116. if (deferred._status === STATUS_REJECTED) {
  1117. return;
  1118. }
  1119. results = [];
  1120. rejectAll(reason);
  1121. }
  1122. for (var i = 0, ii = promises.length; i < ii; ++i) {
  1123. var promise = promises[i];
  1124. var resolve = (function(i) {
  1125. return function(value) {
  1126. if (deferred._status === STATUS_REJECTED) {
  1127. return;
  1128. }
  1129. results[i] = value;
  1130. unresolved--;
  1131. if (unresolved === 0) {
  1132. resolveAll(results);
  1133. }
  1134. };
  1135. })(i);
  1136. if (Promise.isPromise(promise)) {
  1137. promise.then(resolve, reject);
  1138. } else {
  1139. resolve(promise);
  1140. }
  1141. }
  1142. return deferred;
  1143. };
  1144. /**
  1145. * Checks if the value is likely a promise (has a 'then' function).
  1146. * @return {boolean} true if value is thenable
  1147. */
  1148. Promise.isPromise = function Promise_isPromise(value) {
  1149. return value && typeof value.then === 'function';
  1150. };
  1151. /**
  1152. * Creates resolved promise
  1153. * @param value resolve value
  1154. * @returns {Promise}
  1155. */
  1156. Promise.resolve = function Promise_resolve(value) {
  1157. return new Promise(function (resolve) { resolve(value); });
  1158. };
  1159. /**
  1160. * Creates rejected promise
  1161. * @param reason rejection value
  1162. * @returns {Promise}
  1163. */
  1164. Promise.reject = function Promise_reject(reason) {
  1165. return new Promise(function (resolve, reject) { reject(reason); });
  1166. };
  1167. Promise.prototype = {
  1168. _status: null,
  1169. _value: null,
  1170. _handlers: null,
  1171. _unhandledRejection: null,
  1172. _updateStatus: function Promise__updateStatus(status, value) {
  1173. if (this._status === STATUS_RESOLVED ||
  1174. this._status === STATUS_REJECTED) {
  1175. return;
  1176. }
  1177. if (status == STATUS_RESOLVED &&
  1178. Promise.isPromise(value)) {
  1179. value.then(this._updateStatus.bind(this, STATUS_RESOLVED),
  1180. this._updateStatus.bind(this, STATUS_REJECTED));
  1181. return;
  1182. }
  1183. this._status = status;
  1184. this._value = value;
  1185. if (status === STATUS_REJECTED && this._handlers.length === 0) {
  1186. this._unhandledRejection = true;
  1187. HandlerManager.addUnhandledRejection(this);
  1188. }
  1189. HandlerManager.scheduleHandlers(this);
  1190. },
  1191. _resolve: function Promise_resolve(value) {
  1192. this._updateStatus(STATUS_RESOLVED, value);
  1193. },
  1194. _reject: function Promise_reject(reason) {
  1195. this._updateStatus(STATUS_REJECTED, reason);
  1196. },
  1197. then: function Promise_then(onResolve, onReject) {
  1198. var nextPromise = new Promise(function (resolve, reject) {
  1199. this.resolve = reject;
  1200. this.reject = reject;
  1201. });
  1202. this._handlers.push({
  1203. thisPromise: this,
  1204. onResolve: onResolve,
  1205. onReject: onReject,
  1206. nextPromise: nextPromise
  1207. });
  1208. HandlerManager.scheduleHandlers(this);
  1209. return nextPromise;
  1210. },
  1211. catch: function Promise_catch(onReject) {
  1212. return this.then(undefined, onReject);
  1213. }
  1214. };
  1215. globalScope.Promise = Promise;
  1216. })();
  1217. var StatTimer = (function StatTimerClosure() {
  1218. function rpad(str, pad, length) {
  1219. while (str.length < length) {
  1220. str += pad;
  1221. }
  1222. return str;
  1223. }
  1224. function StatTimer() {
  1225. this.started = {};
  1226. this.times = [];
  1227. this.enabled = true;
  1228. }
  1229. StatTimer.prototype = {
  1230. time: function StatTimer_time(name) {
  1231. if (!this.enabled) {
  1232. return;
  1233. }
  1234. if (name in this.started) {
  1235. warn('Timer is already running for ' + name);
  1236. }
  1237. this.started[name] = Date.now();
  1238. },
  1239. timeEnd: function StatTimer_timeEnd(name) {
  1240. if (!this.enabled) {
  1241. return;
  1242. }
  1243. if (!(name in this.started)) {
  1244. warn('Timer has not been started for ' + name);
  1245. }
  1246. this.times.push({
  1247. 'name': name,
  1248. 'start': this.started[name],
  1249. 'end': Date.now()
  1250. });
  1251. // Remove timer from started so it can be called again.
  1252. delete this.started[name];
  1253. },
  1254. toString: function StatTimer_toString() {
  1255. var i, ii;
  1256. var times = this.times;
  1257. var out = '';
  1258. // Find the longest name for padding purposes.
  1259. var longest = 0;
  1260. for (i = 0, ii = times.length; i < ii; ++i) {
  1261. var name = times[i]['name'];
  1262. if (name.length > longest) {
  1263. longest = name.length;
  1264. }
  1265. }
  1266. for (i = 0, ii = times.length; i < ii; ++i) {
  1267. var span = times[i];
  1268. var duration = span.end - span.start;
  1269. out += rpad(span['name'], ' ', longest) + ' ' + duration + 'ms\n';
  1270. }
  1271. return out;
  1272. }
  1273. };
  1274. return StatTimer;
  1275. })();
  1276. PDFJS.createBlob = function createBlob(data, contentType) {
  1277. if (typeof Blob !== 'undefined') {
  1278. return new Blob([data], { type: contentType });
  1279. }
  1280. // Blob builder is deprecated in FF14 and removed in FF18.
  1281. var bb = new MozBlobBuilder();
  1282. bb.append(data);
  1283. return bb.getBlob(contentType);
  1284. };
  1285. PDFJS.createObjectURL = (function createObjectURLClosure() {
  1286. // Blob/createObjectURL is not available, falling back to data schema.
  1287. var digits =
  1288. 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  1289. return function createObjectURL(data, contentType) {
  1290. if (!PDFJS.disableCreateObjectURL &&
  1291. typeof URL !== 'undefined' && URL.createObjectURL) {
  1292. var blob = PDFJS.createBlob(data, contentType);
  1293. return URL.createObjectURL(blob);
  1294. }
  1295. var buffer = 'data:' + contentType + ';base64,';
  1296. for (var i = 0, ii = data.length; i < ii; i += 3) {
  1297. var b1 = data[i] & 0xFF;
  1298. var b2 = data[i + 1] & 0xFF;
  1299. var b3 = data[i + 2] & 0xFF;
  1300. var d1 = b1 >> 2, d2 = ((b1 & 3) << 4) | (b2 >> 4);
  1301. var d3 = i + 1 < ii ? ((b2 & 0xF) << 2) | (b3 >> 6) : 64;
  1302. var d4 = i + 2 < ii ? (b3 & 0x3F) : 64;
  1303. buffer += digits[d1] + digits[d2] + digits[d3] + digits[d4];
  1304. }
  1305. return buffer;
  1306. };
  1307. })();
  1308. function MessageHandler(name, comObj) {
  1309. this.name = name;
  1310. this.comObj = comObj;
  1311. this.callbackIndex = 1;
  1312. this.postMessageTransfers = true;
  1313. var callbacksCapabilities = this.callbacksCapabilities = {};
  1314. var ah = this.actionHandler = {};
  1315. ah['console_log'] = [function ahConsoleLog(data) {
  1316. console.log.apply(console, data);
  1317. }];
  1318. ah['console_error'] = [function ahConsoleError(data) {
  1319. console.error.apply(console, data);
  1320. }];
  1321. ah['_unsupported_feature'] = [function ah_unsupportedFeature(data) {
  1322. UnsupportedManager.notify(data);
  1323. }];
  1324. comObj.onmessage = function messageHandlerComObjOnMessage(event) {
  1325. var data = event.data;
  1326. if (data.isReply) {
  1327. var callbackId = data.callbackId;
  1328. if (data.callbackId in callbacksCapabilities) {
  1329. var callback = callbacksCapabilities[callbackId];
  1330. delete callbacksCapabilities[callbackId];
  1331. if ('error' in data) {
  1332. callback.reject(data.error);
  1333. } else {
  1334. callback.resolve(data.data);
  1335. }
  1336. } else {
  1337. error('Cannot resolve callback ' + callbackId);
  1338. }
  1339. } else if (data.action in ah) {
  1340. var action = ah[data.action];
  1341. if (data.callbackId) {
  1342. Promise.resolve().then(function () {
  1343. return action[0].call(action[1], data.data);
  1344. }).then(function (result) {
  1345. comObj.postMessage({
  1346. isReply: true,
  1347. callbackId: data.callbackId,
  1348. data: result
  1349. });
  1350. }, function (reason) {
  1351. comObj.postMessage({
  1352. isReply: true,
  1353. callbackId: data.callbackId,
  1354. error: reason
  1355. });
  1356. });
  1357. } else {
  1358. action[0].call(action[1], data.data);
  1359. }
  1360. } else {
  1361. error('Unknown action from worker: ' + data.action);
  1362. }
  1363. };
  1364. }
  1365. MessageHandler.prototype = {
  1366. on: function messageHandlerOn(actionName, handler, scope) {
  1367. var ah = this.actionHandler;
  1368. if (ah[actionName]) {
  1369. error('There is already an actionName called "' + actionName + '"');
  1370. }
  1371. ah[actionName] = [handler, scope];
  1372. },
  1373. /**
  1374. * Sends a message to the comObj to invoke the action with the supplied data.
  1375. * @param {String} actionName Action to call.
  1376. * @param {JSON} data JSON data to send.
  1377. * @param {Array} [transfers] Optional list of transfers/ArrayBuffers
  1378. */
  1379. send: function messageHandlerSend(actionName, data, transfers) {
  1380. var message = {
  1381. action: actionName,
  1382. data: data
  1383. };
  1384. this.postMessage(message, transfers);
  1385. },
  1386. /**
  1387. * Sends a message to the comObj to invoke the action with the supplied data.
  1388. * Expects that other side will callback with the response.
  1389. * @param {String} actionName Action to call.
  1390. * @param {JSON} data JSON data to send.
  1391. * @param {Array} [transfers] Optional list of transfers/ArrayBuffers.
  1392. * @returns {Promise} Promise to be resolved with response data.
  1393. */
  1394. sendWithPromise:
  1395. function messageHandlerSendWithPromise(actionName, data, transfers) {
  1396. var callbackId = this.callbackIndex++;
  1397. var message = {
  1398. action: actionName,
  1399. data: data,
  1400. callbackId: callbackId
  1401. };
  1402. var capability = createPromiseCapability();
  1403. this.callbacksCapabilities[callbackId] = capability;
  1404. try {
  1405. this.postMessage(message, transfers);
  1406. } catch (e) {
  1407. capability.reject(e);
  1408. }
  1409. return capability.promise;
  1410. },
  1411. /**
  1412. * Sends raw message to the comObj.
  1413. * @private
  1414. * @param message {Object} Raw message.
  1415. * @param transfers List of transfers/ArrayBuffers, or undefined.
  1416. */
  1417. postMessage: function (message, transfers) {
  1418. if (transfers && this.postMessageTransfers) {
  1419. this.comObj.postMessage(message, transfers);
  1420. } else {
  1421. this.comObj.postMessage(message);
  1422. }
  1423. }
  1424. };
  1425. function loadJpegStream(id, imageUrl, objs) {
  1426. var img = new Image();
  1427. img.onload = (function loadJpegStream_onloadClosure() {
  1428. objs.resolve(id, img);
  1429. });
  1430. img.onerror = (function loadJpegStream_onerrorClosure() {
  1431. objs.resolve(id, null);
  1432. warn('Error during JPEG image loading');
  1433. });
  1434. img.src = imageUrl;
  1435. }
  1436. var NetworkManager = (function NetworkManagerClosure() {
  1437. var OK_RESPONSE = 200;
  1438. var PARTIAL_CONTENT_RESPONSE = 206;
  1439. function NetworkManager(url, args) {
  1440. this.url = url;
  1441. args = args || {};
  1442. this.isHttp = /^https?:/i.test(url);
  1443. this.httpHeaders = (this.isHttp && args.httpHeaders) || {};
  1444. this.withCredentials = args.withCredentials || false;
  1445. this.getXhr = args.getXhr ||
  1446. function NetworkManager_getXhr() {
  1447. return new XMLHttpRequest();
  1448. };
  1449. this.currXhrId = 0;
  1450. this.pendingRequests = {};
  1451. this.loadedRequests = {};
  1452. }
  1453. function getArrayBuffer(xhr) {
  1454. var data = xhr.response;
  1455. if (typeof data !== 'string') {
  1456. return data;
  1457. }
  1458. var length = data.length;
  1459. var buffer = new Uint8Array(length);
  1460. for (var i = 0; i < length; i++) {
  1461. buffer[i] = data.charCodeAt(i) & 0xFF;
  1462. }
  1463. return buffer;
  1464. }
  1465. NetworkManager.prototype = {
  1466. requestRange: function NetworkManager_requestRange(begin, end, listeners) {
  1467. var args = {
  1468. begin: begin,
  1469. end: end
  1470. };
  1471. for (var prop in listeners) {
  1472. args[prop] = listeners[prop];
  1473. }
  1474. return this.request(args);
  1475. },
  1476. requestFull: function NetworkManager_requestRange(listeners) {
  1477. return this.request(listeners);
  1478. },
  1479. request: function NetworkManager_requestRange(args) {
  1480. var xhr = this.getXhr();
  1481. var xhrId = this.currXhrId++;
  1482. var pendingRequest = this.pendingRequests[xhrId] = {
  1483. xhr: xhr
  1484. };
  1485. xhr.open('GET', this.url);
  1486. xhr.withCredentials = this.withCredentials;
  1487. for (var property in this.httpHeaders) {
  1488. var value = this.httpHeaders[property];
  1489. if (typeof value === 'undefined') {
  1490. continue;
  1491. }
  1492. xhr.setRequestHeader(property, value);
  1493. }
  1494. if (this.isHttp && 'begin' in args && 'end' in args) {
  1495. var rangeStr = args.begin + '-' + (args.end - 1);
  1496. xhr.setRequestHeader('Range', 'bytes=' + rangeStr);
  1497. pendingRequest.expectedStatus = 206;
  1498. } else {
  1499. pendingRequest.expectedStatus = 200;
  1500. }
  1501. xhr.responseType = 'arraybuffer';
  1502. if (args.onProgress) {
  1503. xhr.onprogress = args.onProgress;
  1504. }
  1505. if (args.onError) {
  1506. xhr.onerror = function(evt) {
  1507. args.onError(xhr.status);
  1508. };
  1509. }
  1510. xhr.onreadystatechange = this.onStateChange.bind(this, xhrId);
  1511. pendingRequest.onHeadersReceived = args.onHeadersReceived;
  1512. pendingRequest.onDone = args.onDone;
  1513. pendingRequest.onError = args.onError;
  1514. xhr.send(null);
  1515. return xhrId;
  1516. },
  1517. onStateChange: function NetworkManager_onStateChange(xhrId, evt) {
  1518. var pendingRequest = this.pendingRequests[xhrId];
  1519. if (!pendingRequest) {
  1520. // Maybe abortRequest was called...
  1521. return;
  1522. }
  1523. var xhr = pendingRequest.xhr;
  1524. if (xhr.readyState >= 2 && pendingRequest.onHeadersReceived) {
  1525. pendingRequest.onHeadersReceived();
  1526. delete pendingRequest.onHeadersReceived;
  1527. }
  1528. if (xhr.readyState !== 4) {
  1529. return;
  1530. }
  1531. if (!(xhrId in this.pendingRequests)) {
  1532. // The XHR request might have been aborted in onHeadersReceived()
  1533. // callback, in which case we should abort request
  1534. return;
  1535. }
  1536. delete this.pendingRequests[xhrId];
  1537. // success status == 0 can be on ftp, file and other protocols
  1538. if (xhr.status === 0 && this.isHttp) {
  1539. if (pendingRequest.onError) {
  1540. pendingRequest.onError(xhr.status);
  1541. }
  1542. return;
  1543. }
  1544. var xhrStatus = xhr.status || OK_RESPONSE;
  1545. // From http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2:
  1546. // "A server MAY ignore the Range header". This means it's possible to
  1547. // get a 200 rather than a 206 response from a range request.
  1548. var ok_response_on_range_request =
  1549. xhrStatus === OK_RESPONSE &&
  1550. pendingRequest.expectedStatus === PARTIAL_CONTENT_RESPONSE;
  1551. if (!ok_response_on_range_request &&
  1552. xhrStatus !== pendingRequest.expectedStatus) {
  1553. if (pendingRequest.onError) {
  1554. pendingRequest.onError(xhr.status);
  1555. }
  1556. return;
  1557. }
  1558. this.loadedRequests[xhrId] = true;
  1559. var chunk = getArrayBuffer(xhr);
  1560. if (xhrStatus === PARTIAL_CONTENT_RESPONSE) {
  1561. var rangeHeader = xhr.getResponseHeader('Content-Range');
  1562. var matches = /bytes (\d+)-(\d+)\/(\d+)/.exec(rangeHeader);
  1563. var begin = parseInt(matches[1], 10);
  1564. pendingRequest.onDone({
  1565. begin: begin,
  1566. chunk: chunk
  1567. });
  1568. } else {
  1569. pendingRequest.onDone({
  1570. begin: 0,
  1571. chunk: chunk
  1572. });
  1573. }
  1574. },
  1575. hasPendingRequests: function NetworkManager_hasPendingRequests() {
  1576. for (var xhrId in this.pendingRequests) {
  1577. return true;
  1578. }
  1579. return false;
  1580. },
  1581. getRequestXhr: function NetworkManager_getXhr(xhrId) {
  1582. return this.pendingRequests[xhrId].xhr;
  1583. },
  1584. isPendingRequest: function NetworkManager_isPendingRequest(xhrId) {
  1585. return xhrId in this.pendingRequests;
  1586. },
  1587. isLoadedRequest: function NetworkManager_isLoadedRequest(xhrId) {
  1588. return xhrId in this.loadedRequests;
  1589. },
  1590. abortAllRequests: function NetworkManager_abortAllRequests() {
  1591. for (var xhrId in this.pendingRequests) {
  1592. this.abortRequest(xhrId | 0);
  1593. }
  1594. },
  1595. abortRequest: function NetworkManager_abortRequest(xhrId) {
  1596. var xhr = this.pendingRequests[xhrId].xhr;
  1597. delete this.pendingRequests[xhrId];
  1598. xhr.abort();
  1599. }
  1600. };
  1601. return NetworkManager;
  1602. })();
  1603. var ChunkedStream = (function ChunkedStreamClosure() {
  1604. function ChunkedStream(length, chunkSize, manager) {
  1605. this.bytes = new Uint8Array(length);
  1606. this.start = 0;
  1607. this.pos = 0;
  1608. this.end = length;
  1609. this.chunkSize = chunkSize;
  1610. this.loadedChunks = [];
  1611. this.numChunksLoaded = 0;
  1612. this.numChunks = Math.ceil(length / chunkSize);
  1613. this.manager = manager;
  1614. this.initialDataLength = 0;
  1615. this.lastSuccessfulEnsureByteChunk = -1; // a single-entry cache
  1616. }
  1617. // required methods for a stream. if a particular stream does not
  1618. // implement these, an error should be thrown
  1619. ChunkedStream.prototype = {
  1620. getMissingChunks: function ChunkedStream_getMissingChunks() {
  1621. var chunks = [];
  1622. for (var chunk = 0, n = this.numChunks; chunk < n; ++chunk) {
  1623. if (!(chunk in this.loadedChunks)) {
  1624. chunks.push(chunk);
  1625. }
  1626. }
  1627. return chunks;
  1628. },
  1629. getBaseStreams: function ChunkedStream_getBaseStreams() {
  1630. return [this];
  1631. },
  1632. allChunksLoaded: function ChunkedStream_allChunksLoaded() {
  1633. return this.numChunksLoaded === this.numChunks;
  1634. },
  1635. onReceiveData: function ChunkedStream_onReceiveData(begin, chunk) {
  1636. var end = begin + chunk.byteLength;
  1637. assert(begin % this.chunkSize === 0, 'Bad begin offset: ' + begin);
  1638. // Using this.length is inaccurate here since this.start can be moved
  1639. // See ChunkedStream.moveStart()
  1640. var length = this.bytes.length;
  1641. assert(end % this.chunkSize === 0 || end === length,
  1642. 'Bad end offset: ' + end);
  1643. this.bytes.set(new Uint8Array(chunk), begin);
  1644. var chunkSize = this.chunkSize;
  1645. var beginChunk = Math.floor(begin / chunkSize);
  1646. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  1647. var curChunk;
  1648. for (curChunk = beginChunk; curChunk < endChunk; ++curChunk) {
  1649. if (!(curChunk in this.loadedChunks)) {
  1650. this.loadedChunks[curChunk] = true;
  1651. ++this.numChunksLoaded;
  1652. }
  1653. }
  1654. },
  1655. onReceiveInitialData: function ChunkedStream_onReceiveInitialData(data) {
  1656. this.bytes.set(data);
  1657. this.initialDataLength = data.length;
  1658. var endChunk = (this.end === data.length ?
  1659. this.numChunks : Math.floor(data.length / this.chunkSize));
  1660. for (var i = 0; i < endChunk; i++) {
  1661. this.loadedChunks[i] = true;
  1662. ++this.numChunksLoaded;
  1663. }
  1664. },
  1665. ensureByte: function ChunkedStream_ensureRange(pos) {
  1666. var chunk = Math.floor(pos / this.chunkSize);
  1667. if (chunk === this.lastSuccessfulEnsureByteChunk) {
  1668. return;
  1669. }
  1670. if (!(chunk in this.loadedChunks)) {
  1671. throw new MissingDataException(pos, pos + 1);
  1672. }
  1673. this.lastSuccessfulEnsureByteChunk = chunk;
  1674. },
  1675. ensureRange: function ChunkedStream_ensureRange(begin, end) {
  1676. if (begin >= end) {
  1677. return;
  1678. }
  1679. if (end <= this.initialDataLength) {
  1680. return;
  1681. }
  1682. var chunkSize = this.chunkSize;
  1683. var beginChunk = Math.floor(begin / chunkSize);
  1684. var endChunk = Math.floor((end - 1) / chunkSize) + 1;
  1685. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  1686. if (!(chunk in this.loadedChunks)) {
  1687. throw new MissingDataException(begin, end);
  1688. }
  1689. }
  1690. },
  1691. nextEmptyChunk: function ChunkedStream_nextEmptyChunk(beginChunk) {
  1692. var chunk, n;
  1693. for (chunk = beginChunk, n = this.numChunks; chunk < n; ++chunk) {
  1694. if (!(chunk in this.loadedChunks)) {
  1695. return chunk;
  1696. }
  1697. }
  1698. // Wrap around to beginning
  1699. for (chunk = 0; chunk < beginChunk; ++chunk) {
  1700. if (!(chunk in this.loadedChunks)) {
  1701. return chunk;
  1702. }
  1703. }
  1704. return null;
  1705. },
  1706. hasChunk: function ChunkedStream_hasChunk(chunk) {
  1707. return chunk in this.loadedChunks;
  1708. },
  1709. get length() {
  1710. return this.end - this.start;
  1711. },
  1712. get isEmpty() {
  1713. return this.length === 0;
  1714. },
  1715. getByte: function ChunkedStream_getByte() {
  1716. var pos = this.pos;
  1717. if (pos >= this.end) {
  1718. return -1;
  1719. }
  1720. this.ensureByte(pos);
  1721. return this.bytes[this.pos++];
  1722. },
  1723. getUint16: function ChunkedStream_getUint16() {
  1724. var b0 = this.getByte();
  1725. var b1 = this.getByte();
  1726. return (b0 << 8) + b1;
  1727. },
  1728. getInt32: function ChunkedStream_getInt32() {
  1729. var b0 = this.getByte();
  1730. var b1 = this.getByte();
  1731. var b2 = this.getByte();
  1732. var b3 = this.getByte();
  1733. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  1734. },
  1735. // returns subarray of original buffer
  1736. // should only be read
  1737. getBytes: function ChunkedStream_getBytes(length) {
  1738. var bytes = this.bytes;
  1739. var pos = this.pos;
  1740. var strEnd = this.end;
  1741. if (!length) {
  1742. this.ensureRange(pos, strEnd);
  1743. return bytes.subarray(pos, strEnd);
  1744. }
  1745. var end = pos + length;
  1746. if (end > strEnd) {
  1747. end = strEnd;
  1748. }
  1749. this.ensureRange(pos, end);
  1750. this.pos = end;
  1751. return bytes.subarray(pos, end);
  1752. },
  1753. peekBytes: function ChunkedStream_peekBytes(length) {
  1754. var bytes = this.getBytes(length);
  1755. this.pos -= bytes.length;
  1756. return bytes;
  1757. },
  1758. getByteRange: function ChunkedStream_getBytes(begin, end) {
  1759. this.ensureRange(begin, end);
  1760. return this.bytes.subarray(begin, end);
  1761. },
  1762. skip: function ChunkedStream_skip(n) {
  1763. if (!n) {
  1764. n = 1;
  1765. }
  1766. this.pos += n;
  1767. },
  1768. reset: function ChunkedStream_reset() {
  1769. this.pos = this.start;
  1770. },
  1771. moveStart: function ChunkedStream_moveStart() {
  1772. this.start = this.pos;
  1773. },
  1774. makeSubStream: function ChunkedStream_makeSubStream(start, length, dict) {
  1775. this.ensureRange(start, start + length);
  1776. function ChunkedStreamSubstream() {}
  1777. ChunkedStreamSubstream.prototype = Object.create(this);
  1778. ChunkedStreamSubstream.prototype.getMissingChunks = function() {
  1779. var chunkSize = this.chunkSize;
  1780. var beginChunk = Math.floor(this.start / chunkSize);
  1781. var endChunk = Math.floor((this.end - 1) / chunkSize) + 1;
  1782. var missingChunks = [];
  1783. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  1784. if (!(chunk in this.loadedChunks)) {
  1785. missingChunks.push(chunk);
  1786. }
  1787. }
  1788. return missingChunks;
  1789. };
  1790. var subStream = new ChunkedStreamSubstream();
  1791. subStream.pos = subStream.start = start;
  1792. subStream.end = start + length || this.end;
  1793. subStream.dict = dict;
  1794. return subStream;
  1795. },
  1796. isStream: true
  1797. };
  1798. return ChunkedStream;
  1799. })();
  1800. var ChunkedStreamManager = (function ChunkedStreamManagerClosure() {
  1801. function ChunkedStreamManager(length, chunkSize, url, args) {
  1802. this.stream = new ChunkedStream(length, chunkSize, this);
  1803. this.length = length;
  1804. this.chunkSize = chunkSize;
  1805. this.url = url;
  1806. this.disableAutoFetch = args.disableAutoFetch;
  1807. var msgHandler = this.msgHandler = args.msgHandler;
  1808. if (args.chunkedViewerLoading) {
  1809. msgHandler.on('OnDataRange', this.onReceiveData.bind(this));
  1810. msgHandler.on('OnDataProgress', this.onProgress.bind(this));
  1811. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  1812. msgHandler.send('RequestDataRange', { begin: begin, end: end });
  1813. };
  1814. } else {
  1815. var getXhr = function getXhr() {
  1816. return new XMLHttpRequest();
  1817. };
  1818. this.networkManager = new NetworkManager(this.url, {
  1819. getXhr: getXhr,
  1820. httpHeaders: args.httpHeaders,
  1821. withCredentials: args.withCredentials
  1822. });
  1823. this.sendRequest = function ChunkedStreamManager_sendRequest(begin, end) {
  1824. this.networkManager.requestRange(begin, end, {
  1825. onDone: this.onReceiveData.bind(this),
  1826. onProgress: this.onProgress.bind(this)
  1827. });
  1828. };
  1829. }
  1830. this.currRequestId = 0;
  1831. this.chunksNeededByRequest = {};
  1832. this.requestsByChunk = {};
  1833. this.callbacksByRequest = {};
  1834. this._loadedStreamCapability = createPromiseCapability();
  1835. if (args.initialData) {
  1836. this.setInitialData(args.initialData);
  1837. }
  1838. }
  1839. ChunkedStreamManager.prototype = {
  1840. setInitialData: function ChunkedStreamManager_setInitialData(data) {
  1841. this.stream.onReceiveInitialData(data);
  1842. if (this.stream.allChunksLoaded()) {
  1843. this._loadedStreamCapability.resolve(this.stream);
  1844. } else if (this.msgHandler) {
  1845. this.msgHandler.send('DocProgress', {
  1846. loaded: data.length,
  1847. total: this.length
  1848. });
  1849. }
  1850. },
  1851. onLoadedStream: function ChunkedStreamManager_getLoadedStream() {
  1852. return this._loadedStreamCapability.promise;
  1853. },
  1854. // Get all the chunks that are not yet loaded and groups them into
  1855. // contiguous ranges to load in as few requests as possible
  1856. requestAllChunks: function ChunkedStreamManager_requestAllChunks() {
  1857. var missingChunks = this.stream.getMissingChunks();
  1858. this.requestChunks(missingChunks);
  1859. return this._loadedStreamCapability.promise;
  1860. },
  1861. requestChunks: function ChunkedStreamManager_requestChunks(chunks,
  1862. callback) {
  1863. var requestId = this.currRequestId++;
  1864. var chunksNeeded;
  1865. var i, ii;
  1866. this.chunksNeededByRequest[requestId] = chunksNeeded = {};
  1867. for (i = 0, ii = chunks.length; i < ii; i++) {
  1868. if (!this.stream.hasChunk(chunks[i])) {
  1869. chunksNeeded[chunks[i]] = true;
  1870. }
  1871. }
  1872. if (isEmptyObj(chunksNeeded)) {
  1873. if (callback) {
  1874. callback();
  1875. }
  1876. return;
  1877. }
  1878. this.callbacksByRequest[requestId] = callback;
  1879. var chunksToRequest = [];
  1880. for (var chunk in chunksNeeded) {
  1881. chunk = chunk | 0;
  1882. if (!(chunk in this.requestsByChunk)) {
  1883. this.requestsByChunk[chunk] = [];
  1884. chunksToRequest.push(chunk);
  1885. }
  1886. this.requestsByChunk[chunk].push(requestId);
  1887. }
  1888. if (!chunksToRequest.length) {
  1889. return;
  1890. }
  1891. var groupedChunksToRequest = this.groupChunks(chunksToRequest);
  1892. for (i = 0; i < groupedChunksToRequest.length; ++i) {
  1893. var groupedChunk = groupedChunksToRequest[i];
  1894. var begin = groupedChunk.beginChunk * this.chunkSize;
  1895. var end = Math.min(groupedChunk.endChunk * this.chunkSize, this.length);
  1896. this.sendRequest(begin, end);
  1897. }
  1898. },
  1899. getStream: function ChunkedStreamManager_getStream() {
  1900. return this.stream;
  1901. },
  1902. // Loads any chunks in the requested range that are not yet loaded
  1903. requestRange: function ChunkedStreamManager_requestRange(
  1904. begin, end, callback) {
  1905. end = Math.min(end, this.length);
  1906. var beginChunk = this.getBeginChunk(begin);
  1907. var endChunk = this.getEndChunk(end);
  1908. var chunks = [];
  1909. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  1910. chunks.push(chunk);
  1911. }
  1912. this.requestChunks(chunks, callback);
  1913. },
  1914. requestRanges: function ChunkedStreamManager_requestRanges(ranges,
  1915. callback) {
  1916. ranges = ranges || [];
  1917. var chunksToRequest = [];
  1918. for (var i = 0; i < ranges.length; i++) {
  1919. var beginChunk = this.getBeginChunk(ranges[i].begin);
  1920. var endChunk = this.getEndChunk(ranges[i].end);
  1921. for (var chunk = beginChunk; chunk < endChunk; ++chunk) {
  1922. if (chunksToRequest.indexOf(chunk) < 0) {
  1923. chunksToRequest.push(chunk);
  1924. }
  1925. }
  1926. }
  1927. chunksToRequest.sort(function(a, b) { return a - b; });
  1928. this.requestChunks(chunksToRequest, callback);
  1929. },
  1930. // Groups a sorted array of chunks into as few continguous larger
  1931. // chunks as possible
  1932. groupChunks: function ChunkedStreamManager_groupChunks(chunks) {
  1933. var groupedChunks = [];
  1934. var beginChunk = -1;
  1935. var prevChunk = -1;
  1936. for (var i = 0; i < chunks.length; ++i) {
  1937. var chunk = chunks[i];
  1938. if (beginChunk < 0) {
  1939. beginChunk = chunk;
  1940. }
  1941. if (prevChunk >= 0 && prevChunk + 1 !== chunk) {
  1942. groupedChunks.push({ beginChunk: beginChunk,
  1943. endChunk: prevChunk + 1 });
  1944. beginChunk = chunk;
  1945. }
  1946. if (i + 1 === chunks.length) {
  1947. groupedChunks.push({ beginChunk: beginChunk,
  1948. endChunk: chunk + 1 });
  1949. }
  1950. prevChunk = chunk;
  1951. }
  1952. return groupedChunks;
  1953. },
  1954. onProgress: function ChunkedStreamManager_onProgress(args) {
  1955. var bytesLoaded = (this.stream.numChunksLoaded * this.chunkSize +
  1956. args.loaded);
  1957. this.msgHandler.send('DocProgress', {
  1958. loaded: bytesLoaded,
  1959. total: this.length
  1960. });
  1961. },
  1962. onReceiveData: function ChunkedStreamManager_onReceiveData(args) {
  1963. var chunk = args.chunk;
  1964. var begin = args.begin;
  1965. var end = begin + chunk.byteLength;
  1966. var beginChunk = this.getBeginChunk(begin);
  1967. var endChunk = this.getEndChunk(end);
  1968. this.stream.onReceiveData(begin, chunk);
  1969. if (this.stream.allChunksLoaded()) {
  1970. this._loadedStreamCapability.resolve(this.stream);
  1971. }
  1972. var loadedRequests = [];
  1973. var i, requestId;
  1974. for (chunk = beginChunk; chunk < endChunk; ++chunk) {
  1975. // The server might return more chunks than requested
  1976. var requestIds = this.requestsByChunk[chunk] || [];
  1977. delete this.requestsByChunk[chunk];
  1978. for (i = 0; i < requestIds.length; ++i) {
  1979. requestId = requestIds[i];
  1980. var chunksNeeded = this.chunksNeededByRequest[requestId];
  1981. if (chunk in chunksNeeded) {
  1982. delete chunksNeeded[chunk];
  1983. }
  1984. if (!isEmptyObj(chunksNeeded)) {
  1985. continue;
  1986. }
  1987. loadedRequests.push(requestId);
  1988. }
  1989. }
  1990. // If there are no pending requests, automatically fetch the next
  1991. // unfetched chunk of the PDF
  1992. if (!this.disableAutoFetch && isEmptyObj(this.requestsByChunk)) {
  1993. var nextEmptyChunk;
  1994. if (this.stream.numChunksLoaded === 1) {
  1995. // This is a special optimization so that after fetching the first
  1996. // chunk, rather than fetching the second chunk, we fetch the last
  1997. // chunk.
  1998. var lastChunk = this.stream.numChunks - 1;
  1999. if (!this.stream.hasChunk(lastChunk)) {
  2000. nextEmptyChunk = lastChunk;
  2001. }
  2002. } else {
  2003. nextEmptyChunk = this.stream.nextEmptyChunk(endChunk);
  2004. }
  2005. if (isInt(nextEmptyChunk)) {
  2006. this.requestChunks([nextEmptyChunk]);
  2007. }
  2008. }
  2009. for (i = 0; i < loadedRequests.length; ++i) {
  2010. requestId = loadedRequests[i];
  2011. var callback = this.callbacksByRequest[requestId];
  2012. delete this.callbacksByRequest[requestId];
  2013. if (callback) {
  2014. callback();
  2015. }
  2016. }
  2017. this.msgHandler.send('DocProgress', {
  2018. loaded: this.stream.numChunksLoaded * this.chunkSize,
  2019. total: this.length
  2020. });
  2021. },
  2022. onError: function ChunkedStreamManager_onError(err) {
  2023. this._loadedStreamCapability.reject(err);
  2024. },
  2025. getBeginChunk: function ChunkedStreamManager_getBeginChunk(begin) {
  2026. var chunk = Math.floor(begin / this.chunkSize);
  2027. return chunk;
  2028. },
  2029. getEndChunk: function ChunkedStreamManager_getEndChunk(end) {
  2030. if (end % this.chunkSize === 0) {
  2031. return end / this.chunkSize;
  2032. }
  2033. // 0 -> 0
  2034. // 1 -> 1
  2035. // 99 -> 1
  2036. // 100 -> 1
  2037. // 101 -> 2
  2038. var chunk = Math.floor((end - 1) / this.chunkSize) + 1;
  2039. return chunk;
  2040. }
  2041. };
  2042. return ChunkedStreamManager;
  2043. })();
  2044. // The maximum number of bytes fetched per range request
  2045. var RANGE_CHUNK_SIZE = 65536;
  2046. // TODO(mack): Make use of PDFJS.Util.inherit() when it becomes available
  2047. var BasePdfManager = (function BasePdfManagerClosure() {
  2048. function BasePdfManager() {
  2049. throw new Error('Cannot initialize BaseManagerManager');
  2050. }
  2051. BasePdfManager.prototype = {
  2052. onLoadedStream: function BasePdfManager_onLoadedStream() {
  2053. throw new NotImplementedException();
  2054. },
  2055. ensureDoc: function BasePdfManager_ensureDoc(prop, args) {
  2056. return this.ensure(this.pdfDocument, prop, args);
  2057. },
  2058. ensureXRef: function BasePdfManager_ensureXRef(prop, args) {
  2059. return this.ensure(this.pdfDocument.xref, prop, args);
  2060. },
  2061. ensureCatalog: function BasePdfManager_ensureCatalog(prop, args) {
  2062. return this.ensure(this.pdfDocument.catalog, prop, args);
  2063. },
  2064. getPage: function BasePdfManager_pagePage(pageIndex) {
  2065. return this.pdfDocument.getPage(pageIndex);
  2066. },
  2067. cleanup: function BasePdfManager_cleanup() {
  2068. return this.pdfDocument.cleanup();
  2069. },
  2070. ensure: function BasePdfManager_ensure(obj, prop, args) {
  2071. return new NotImplementedException();
  2072. },
  2073. requestRange: function BasePdfManager_ensure(begin, end) {
  2074. return new NotImplementedException();
  2075. },
  2076. requestLoadedStream: function BasePdfManager_requestLoadedStream() {
  2077. return new NotImplementedException();
  2078. },
  2079. updatePassword: function BasePdfManager_updatePassword(password) {
  2080. this.pdfDocument.xref.password = this.password = password;
  2081. if (this._passwordChangedCapability) {
  2082. this._passwordChangedCapability.resolve();
  2083. }
  2084. },
  2085. passwordChanged: function BasePdfManager_passwordChanged() {
  2086. this._passwordChangedCapability = createPromiseCapability();
  2087. return this._passwordChangedCapability.promise;
  2088. },
  2089. terminate: function BasePdfManager_terminate() {
  2090. return new NotImplementedException();
  2091. }
  2092. };
  2093. return BasePdfManager;
  2094. })();
  2095. var LocalPdfManager = (function LocalPdfManagerClosure() {
  2096. function LocalPdfManager(data, password) {
  2097. var stream = new Stream(data);
  2098. this.pdfDocument = new PDFDocument(this, stream, password);
  2099. this._loadedStreamCapability = createPromiseCapability();
  2100. this._loadedStreamCapability.resolve(stream);
  2101. }
  2102. LocalPdfManager.prototype = Object.create(BasePdfManager.prototype);
  2103. LocalPdfManager.prototype.constructor = LocalPdfManager;
  2104. LocalPdfManager.prototype.ensure =
  2105. function LocalPdfManager_ensure(obj, prop, args) {
  2106. return new Promise(function (resolve, reject) {
  2107. try {
  2108. var value = obj[prop];
  2109. var result;
  2110. if (typeof value === 'function') {
  2111. result = value.apply(obj, args);
  2112. } else {
  2113. result = value;
  2114. }
  2115. resolve(result);
  2116. } catch (e) {
  2117. reject(e);
  2118. }
  2119. });
  2120. };
  2121. LocalPdfManager.prototype.requestRange =
  2122. function LocalPdfManager_requestRange(begin, end) {
  2123. return Promise.resolve();
  2124. };
  2125. LocalPdfManager.prototype.requestLoadedStream =
  2126. function LocalPdfManager_requestLoadedStream() {
  2127. };
  2128. LocalPdfManager.prototype.onLoadedStream =
  2129. function LocalPdfManager_getLoadedStream() {
  2130. return this._loadedStreamCapability.promise;
  2131. };
  2132. LocalPdfManager.prototype.terminate =
  2133. function LocalPdfManager_terminate() {
  2134. return;
  2135. };
  2136. return LocalPdfManager;
  2137. })();
  2138. var NetworkPdfManager = (function NetworkPdfManagerClosure() {
  2139. function NetworkPdfManager(args, msgHandler) {
  2140. this.msgHandler = msgHandler;
  2141. var params = {
  2142. msgHandler: msgHandler,
  2143. httpHeaders: args.httpHeaders,
  2144. withCredentials: args.withCredentials,
  2145. chunkedViewerLoading: args.chunkedViewerLoading,
  2146. disableAutoFetch: args.disableAutoFetch,
  2147. initialData: args.initialData
  2148. };
  2149. this.streamManager = new ChunkedStreamManager(args.length, RANGE_CHUNK_SIZE,
  2150. args.url, params);
  2151. this.pdfDocument = new PDFDocument(this, this.streamManager.getStream(),
  2152. args.password);
  2153. }
  2154. NetworkPdfManager.prototype = Object.create(BasePdfManager.prototype);
  2155. NetworkPdfManager.prototype.constructor = NetworkPdfManager;
  2156. NetworkPdfManager.prototype.ensure =
  2157. function NetworkPdfManager_ensure(obj, prop, args) {
  2158. var pdfManager = this;
  2159. return new Promise(function (resolve, reject) {
  2160. function ensureHelper() {
  2161. try {
  2162. var result;
  2163. var value = obj[prop];
  2164. if (typeof value === 'function') {
  2165. result = value.apply(obj, args);
  2166. } else {
  2167. result = value;
  2168. }
  2169. resolve(result);
  2170. } catch(e) {
  2171. if (!(e instanceof MissingDataException)) {
  2172. reject(e);
  2173. return;
  2174. }
  2175. pdfManager.streamManager.requestRange(e.begin, e.end, ensureHelper);
  2176. }
  2177. }
  2178. ensureHelper();
  2179. });
  2180. };
  2181. NetworkPdfManager.prototype.requestRange =
  2182. function NetworkPdfManager_requestRange(begin, end) {
  2183. return new Promise(function (resolve) {
  2184. this.streamManager.requestRange(begin, end, function() {
  2185. resolve();
  2186. });
  2187. }.bind(this));
  2188. };
  2189. NetworkPdfManager.prototype.requestLoadedStream =
  2190. function NetworkPdfManager_requestLoadedStream() {
  2191. this.streamManager.requestAllChunks();
  2192. };
  2193. NetworkPdfManager.prototype.onLoadedStream =
  2194. function NetworkPdfManager_getLoadedStream() {
  2195. return this.streamManager.onLoadedStream();
  2196. };
  2197. NetworkPdfManager.prototype.terminate =
  2198. function NetworkPdfManager_terminate() {
  2199. this.streamManager.networkManager.abortAllRequests();
  2200. };
  2201. return NetworkPdfManager;
  2202. })();
  2203. var Page = (function PageClosure() {
  2204. var LETTER_SIZE_MEDIABOX = [0, 0, 612, 792];
  2205. function Page(pdfManager, xref, pageIndex, pageDict, ref, fontCache) {
  2206. this.pdfManager = pdfManager;
  2207. this.pageIndex = pageIndex;
  2208. this.pageDict = pageDict;
  2209. this.xref = xref;
  2210. this.ref = ref;
  2211. this.fontCache = fontCache;
  2212. this.idCounters = {
  2213. obj: 0
  2214. };
  2215. this.resourcesPromise = null;
  2216. }
  2217. Page.prototype = {
  2218. getPageProp: function Page_getPageProp(key) {
  2219. return this.pageDict.get(key);
  2220. },
  2221. getInheritedPageProp: function Page_inheritPageProp(key) {
  2222. var dict = this.pageDict;
  2223. var value = dict.get(key);
  2224. while (value === undefined) {
  2225. dict = dict.get('Parent');
  2226. if (!dict) {
  2227. break;
  2228. }
  2229. value = dict.get(key);
  2230. }
  2231. return value;
  2232. },
  2233. get content() {
  2234. return this.getPageProp('Contents');
  2235. },
  2236. get resources() {
  2237. var value = this.getInheritedPageProp('Resources');
  2238. // For robustness: The spec states that a \Resources entry has to be
  2239. // present, but can be empty. Some document omit it still. In this case
  2240. // return an empty dictionary:
  2241. if (value === undefined) {
  2242. value = Dict.empty;
  2243. }
  2244. return shadow(this, 'resources', value);
  2245. },
  2246. get mediaBox() {
  2247. var obj = this.getInheritedPageProp('MediaBox');
  2248. // Reset invalid media box to letter size.
  2249. if (!isArray(obj) || obj.length !== 4) {
  2250. obj = LETTER_SIZE_MEDIABOX;
  2251. }
  2252. return shadow(this, 'mediaBox', obj);
  2253. },
  2254. get view() {
  2255. var mediaBox = this.mediaBox;
  2256. var cropBox = this.getInheritedPageProp('CropBox');
  2257. if (!isArray(cropBox) || cropBox.length !== 4) {
  2258. return shadow(this, 'view', mediaBox);
  2259. }
  2260. // From the spec, 6th ed., p.963:
  2261. // "The crop, bleed, trim, and art boxes should not ordinarily
  2262. // extend beyond the boundaries of the media box. If they do, they are
  2263. // effectively reduced to their intersection with the media box."
  2264. cropBox = Util.intersect(cropBox, mediaBox);
  2265. if (!cropBox) {
  2266. return shadow(this, 'view', mediaBox);
  2267. }
  2268. return shadow(this, 'view', cropBox);
  2269. },
  2270. get annotationRefs() {
  2271. return shadow(this, 'annotationRefs',
  2272. this.getInheritedPageProp('Annots'));
  2273. },
  2274. get rotate() {
  2275. var rotate = this.getInheritedPageProp('Rotate') || 0;
  2276. // Normalize rotation so it's a multiple of 90 and between 0 and 270
  2277. if (rotate % 90 !== 0) {
  2278. rotate = 0;
  2279. } else if (rotate >= 360) {
  2280. rotate = rotate % 360;
  2281. } else if (rotate < 0) {
  2282. // The spec doesn't cover negatives, assume its counterclockwise
  2283. // rotation. The following is the other implementation of modulo.
  2284. rotate = ((rotate % 360) + 360) % 360;
  2285. }
  2286. return shadow(this, 'rotate', rotate);
  2287. },
  2288. getContentStream: function Page_getContentStream() {
  2289. var content = this.content;
  2290. var stream;
  2291. if (isArray(content)) {
  2292. // fetching items
  2293. var xref = this.xref;
  2294. var i, n = content.length;
  2295. var streams = [];
  2296. for (i = 0; i < n; ++i) {
  2297. streams.push(xref.fetchIfRef(content[i]));
  2298. }
  2299. stream = new StreamsSequenceStream(streams);
  2300. } else if (isStream(content)) {
  2301. stream = content;
  2302. } else {
  2303. // replacing non-existent page content with empty one
  2304. stream = new NullStream();
  2305. }
  2306. return stream;
  2307. },
  2308. loadResources: function Page_loadResources(keys) {
  2309. if (!this.resourcesPromise) {
  2310. // TODO: add async getInheritedPageProp and remove this.
  2311. this.resourcesPromise = this.pdfManager.ensure(this, 'resources');
  2312. }
  2313. return this.resourcesPromise.then(function resourceSuccess() {
  2314. var objectLoader = new ObjectLoader(this.resources.map,
  2315. keys,
  2316. this.xref);
  2317. return objectLoader.load();
  2318. }.bind(this));
  2319. },
  2320. getOperatorList: function Page_getOperatorList(handler, intent) {
  2321. var self = this;
  2322. var pdfManager = this.pdfManager;
  2323. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  2324. []);
  2325. var resourcesPromise = this.loadResources([
  2326. 'ExtGState',
  2327. 'ColorSpace',
  2328. 'Pattern',
  2329. 'Shading',
  2330. 'XObject',
  2331. 'Font'
  2332. // ProcSet
  2333. // Properties
  2334. ]);
  2335. var partialEvaluator = new PartialEvaluator(pdfManager, this.xref,
  2336. handler, this.pageIndex,
  2337. 'p' + this.pageIndex + '_',
  2338. this.idCounters,
  2339. this.fontCache);
  2340. var dataPromises = Promise.all([contentStreamPromise, resourcesPromise]);
  2341. var pageListPromise = dataPromises.then(function(data) {
  2342. var contentStream = data[0];
  2343. var opList = new OperatorList(intent, handler, self.pageIndex);
  2344. handler.send('StartRenderPage', {
  2345. transparency: partialEvaluator.hasBlendModes(self.resources),
  2346. pageIndex: self.pageIndex,
  2347. intent: intent
  2348. });
  2349. return partialEvaluator.getOperatorList(contentStream, self.resources,
  2350. opList).then(function () {
  2351. return opList;
  2352. });
  2353. });
  2354. var annotationsPromise = pdfManager.ensure(this, 'annotations');
  2355. return Promise.all([pageListPromise, annotationsPromise]).then(
  2356. function(datas) {
  2357. var pageOpList = datas[0];
  2358. var annotations = datas[1];
  2359. if (annotations.length === 0) {
  2360. pageOpList.flush(true);
  2361. return pageOpList;
  2362. }
  2363. var annotationsReadyPromise = Annotation.appendToOperatorList(
  2364. annotations, pageOpList, pdfManager, partialEvaluator, intent);
  2365. return annotationsReadyPromise.then(function () {
  2366. pageOpList.flush(true);
  2367. return pageOpList;
  2368. });
  2369. });
  2370. },
  2371. extractTextContent: function Page_extractTextContent() {
  2372. var handler = {
  2373. on: function nullHandlerOn() {},
  2374. send: function nullHandlerSend() {}
  2375. };
  2376. var self = this;
  2377. var pdfManager = this.pdfManager;
  2378. var contentStreamPromise = pdfManager.ensure(this, 'getContentStream',
  2379. []);
  2380. var resourcesPromise = this.loadResources([
  2381. 'ExtGState',
  2382. 'XObject',
  2383. 'Font'
  2384. ]);
  2385. var dataPromises = Promise.all([contentStreamPromise,
  2386. resourcesPromise]);
  2387. return dataPromises.then(function(data) {
  2388. var contentStream = data[0];
  2389. var partialEvaluator = new PartialEvaluator(pdfManager, self.xref,
  2390. handler, self.pageIndex,
  2391. 'p' + self.pageIndex + '_',
  2392. self.idCounters,
  2393. self.fontCache);
  2394. return partialEvaluator.getTextContent(contentStream,
  2395. self.resources);
  2396. });
  2397. },
  2398. getAnnotationsData: function Page_getAnnotationsData() {
  2399. var annotations = this.annotations;
  2400. var annotationsData = [];
  2401. for (var i = 0, n = annotations.length; i < n; ++i) {
  2402. annotationsData.push(annotations[i].getData());
  2403. }
  2404. return annotationsData;
  2405. },
  2406. get annotations() {
  2407. var annotations = [];
  2408. var annotationRefs = (this.annotationRefs || []);
  2409. for (var i = 0, n = annotationRefs.length; i < n; ++i) {
  2410. var annotationRef = annotationRefs[i];
  2411. var annotation = Annotation.fromRef(this.xref, annotationRef);
  2412. if (annotation) {
  2413. annotations.push(annotation);
  2414. }
  2415. }
  2416. return shadow(this, 'annotations', annotations);
  2417. }
  2418. };
  2419. return Page;
  2420. })();
  2421. /**
  2422. * The `PDFDocument` holds all the data of the PDF file. Compared to the
  2423. * `PDFDoc`, this one doesn't have any job management code.
  2424. * Right now there exists one PDFDocument on the main thread + one object
  2425. * for each worker. If there is no worker support enabled, there are two
  2426. * `PDFDocument` objects on the main thread created.
  2427. */
  2428. var PDFDocument = (function PDFDocumentClosure() {
  2429. function PDFDocument(pdfManager, arg, password) {
  2430. if (isStream(arg)) {
  2431. init.call(this, pdfManager, arg, password);
  2432. } else if (isArrayBuffer(arg)) {
  2433. init.call(this, pdfManager, new Stream(arg), password);
  2434. } else {
  2435. error('PDFDocument: Unknown argument type');
  2436. }
  2437. }
  2438. function init(pdfManager, stream, password) {
  2439. assert(stream.length > 0, 'stream must have data');
  2440. this.pdfManager = pdfManager;
  2441. this.stream = stream;
  2442. var xref = new XRef(this.stream, password, pdfManager);
  2443. this.xref = xref;
  2444. }
  2445. function find(stream, needle, limit, backwards) {
  2446. var pos = stream.pos;
  2447. var end = stream.end;
  2448. var strBuf = [];
  2449. if (pos + limit > end) {
  2450. limit = end - pos;
  2451. }
  2452. for (var n = 0; n < limit; ++n) {
  2453. strBuf.push(String.fromCharCode(stream.getByte()));
  2454. }
  2455. var str = strBuf.join('');
  2456. stream.pos = pos;
  2457. var index = backwards ? str.lastIndexOf(needle) : str.indexOf(needle);
  2458. if (index == -1) {
  2459. return false; /* not found */
  2460. }
  2461. stream.pos += index;
  2462. return true; /* found */
  2463. }
  2464. var DocumentInfoValidators = {
  2465. get entries() {
  2466. // Lazily build this since all the validation functions below are not
  2467. // defined until after this file loads.
  2468. return shadow(this, 'entries', {
  2469. Title: isString,
  2470. Author: isString,
  2471. Subject: isString,
  2472. Keywords: isString,
  2473. Creator: isString,
  2474. Producer: isString,
  2475. CreationDate: isString,
  2476. ModDate: isString,
  2477. Trapped: isName
  2478. });
  2479. }
  2480. };
  2481. PDFDocument.prototype = {
  2482. parse: function PDFDocument_parse(recoveryMode) {
  2483. this.setup(recoveryMode);
  2484. try {
  2485. // checking if AcroForm is present
  2486. this.acroForm = this.catalog.catDict.get('AcroForm');
  2487. if (this.acroForm) {
  2488. this.xfa = this.acroForm.get('XFA');
  2489. var fields = this.acroForm.get('Fields');
  2490. if ((!fields || !isArray(fields) || fields.length === 0) &&
  2491. !this.xfa) {
  2492. // no fields and no XFA -- not a form (?)
  2493. this.acroForm = null;
  2494. }
  2495. }
  2496. } catch (ex) {
  2497. info('Something wrong with AcroForm entry');
  2498. this.acroForm = null;
  2499. }
  2500. },
  2501. get linearization() {
  2502. var length = this.stream.length;
  2503. var linearization = false;
  2504. if (length) {
  2505. try {
  2506. linearization = new Linearization(this.stream);
  2507. if (linearization.length != length) {
  2508. linearization = false;
  2509. }
  2510. } catch (err) {
  2511. if (err instanceof MissingDataException) {
  2512. throw err;
  2513. }
  2514. info('The linearization data is not available ' +
  2515. 'or unreadable PDF data is found');
  2516. linearization = false;
  2517. }
  2518. }
  2519. // shadow the prototype getter with a data property
  2520. return shadow(this, 'linearization', linearization);
  2521. },
  2522. get startXRef() {
  2523. var stream = this.stream;
  2524. var startXRef = 0;
  2525. var linearization = this.linearization;
  2526. if (linearization) {
  2527. // Find end of first obj.
  2528. stream.reset();
  2529. if (find(stream, 'endobj', 1024)) {
  2530. startXRef = stream.pos + 6;
  2531. }
  2532. } else {
  2533. // Find startxref by jumping backward from the end of the file.
  2534. var step = 1024;
  2535. var found = false, pos = stream.end;
  2536. while (!found && pos > 0) {
  2537. pos -= step - 'startxref'.length;
  2538. if (pos < 0) {
  2539. pos = 0;
  2540. }
  2541. stream.pos = pos;
  2542. found = find(stream, 'startxref', step, true);
  2543. }
  2544. if (found) {
  2545. stream.skip(9);
  2546. var ch;
  2547. do {
  2548. ch = stream.getByte();
  2549. } while (Lexer.isSpace(ch));
  2550. var str = '';
  2551. while (ch >= 0x20 && ch <= 0x39) { // < '9'
  2552. str += String.fromCharCode(ch);
  2553. ch = stream.getByte();
  2554. }
  2555. startXRef = parseInt(str, 10);
  2556. if (isNaN(startXRef)) {
  2557. startXRef = 0;
  2558. }
  2559. }
  2560. }
  2561. // shadow the prototype getter with a data property
  2562. return shadow(this, 'startXRef', startXRef);
  2563. },
  2564. get mainXRefEntriesOffset() {
  2565. var mainXRefEntriesOffset = 0;
  2566. var linearization = this.linearization;
  2567. if (linearization) {
  2568. mainXRefEntriesOffset = linearization.mainXRefEntriesOffset;
  2569. }
  2570. // shadow the prototype getter with a data property
  2571. return shadow(this, 'mainXRefEntriesOffset', mainXRefEntriesOffset);
  2572. },
  2573. // Find the header, remove leading garbage and setup the stream
  2574. // starting from the header.
  2575. checkHeader: function PDFDocument_checkHeader() {
  2576. var stream = this.stream;
  2577. stream.reset();
  2578. if (find(stream, '%PDF-', 1024)) {
  2579. // Found the header, trim off any garbage before it.
  2580. stream.moveStart();
  2581. // Reading file format version
  2582. var MAX_VERSION_LENGTH = 12;
  2583. var version = '', ch;
  2584. while ((ch = stream.getByte()) > 0x20) { // SPACE
  2585. if (version.length >= MAX_VERSION_LENGTH) {
  2586. break;
  2587. }
  2588. version += String.fromCharCode(ch);
  2589. }
  2590. // removing "%PDF-"-prefix
  2591. this.pdfFormatVersion = version.substring(5);
  2592. return;
  2593. }
  2594. // May not be a PDF file, continue anyway.
  2595. },
  2596. parseStartXRef: function PDFDocument_parseStartXRef() {
  2597. var startXRef = this.startXRef;
  2598. this.xref.setStartXRef(startXRef);
  2599. },
  2600. setup: function PDFDocument_setup(recoveryMode) {
  2601. this.xref.parse(recoveryMode);
  2602. this.catalog = new Catalog(this.pdfManager, this.xref);
  2603. },
  2604. get numPages() {
  2605. var linearization = this.linearization;
  2606. var num = linearization ? linearization.numPages : this.catalog.numPages;
  2607. // shadow the prototype getter
  2608. return shadow(this, 'numPages', num);
  2609. },
  2610. get documentInfo() {
  2611. var docInfo = {
  2612. PDFFormatVersion: this.pdfFormatVersion,
  2613. IsAcroFormPresent: !!this.acroForm,
  2614. IsXFAPresent: !!this.xfa
  2615. };
  2616. var infoDict;
  2617. try {
  2618. infoDict = this.xref.trailer.get('Info');
  2619. } catch (err) {
  2620. info('The document information dictionary is invalid.');
  2621. }
  2622. if (infoDict) {
  2623. var validEntries = DocumentInfoValidators.entries;
  2624. // Only fill the document info with valid entries from the spec.
  2625. for (var key in validEntries) {
  2626. if (infoDict.has(key)) {
  2627. var value = infoDict.get(key);
  2628. // Make sure the value conforms to the spec.
  2629. if (validEntries[key](value)) {
  2630. docInfo[key] = (typeof value !== 'string' ?
  2631. value : stringToPDFString(value));
  2632. } else {
  2633. info('Bad value in document info for "' + key + '"');
  2634. }
  2635. }
  2636. }
  2637. }
  2638. return shadow(this, 'documentInfo', docInfo);
  2639. },
  2640. get fingerprint() {
  2641. var xref = this.xref, hash, fileID = '';
  2642. if (xref.trailer.has('ID')) {
  2643. hash = stringToBytes(xref.trailer.get('ID')[0]);
  2644. } else {
  2645. hash = calculateMD5(this.stream.bytes.subarray(0, 100), 0, 100);
  2646. }
  2647. for (var i = 0, n = hash.length; i < n; i++) {
  2648. fileID += hash[i].toString(16);
  2649. }
  2650. return shadow(this, 'fingerprint', fileID);
  2651. },
  2652. getPage: function PDFDocument_getPage(pageIndex) {
  2653. return this.catalog.getPage(pageIndex);
  2654. },
  2655. cleanup: function PDFDocument_cleanup() {
  2656. return this.catalog.cleanup();
  2657. }
  2658. };
  2659. return PDFDocument;
  2660. })();
  2661. var Name = (function NameClosure() {
  2662. function Name(name) {
  2663. this.name = name;
  2664. }
  2665. Name.prototype = {};
  2666. var nameCache = {};
  2667. Name.get = function Name_get(name) {
  2668. var nameValue = nameCache[name];
  2669. return (nameValue ? nameValue : (nameCache[name] = new Name(name)));
  2670. };
  2671. return Name;
  2672. })();
  2673. var Cmd = (function CmdClosure() {
  2674. function Cmd(cmd) {
  2675. this.cmd = cmd;
  2676. }
  2677. Cmd.prototype = {};
  2678. var cmdCache = {};
  2679. Cmd.get = function Cmd_get(cmd) {
  2680. var cmdValue = cmdCache[cmd];
  2681. return (cmdValue ? cmdValue : (cmdCache[cmd] = new Cmd(cmd)));
  2682. };
  2683. return Cmd;
  2684. })();
  2685. var Dict = (function DictClosure() {
  2686. var nonSerializable = function nonSerializableClosure() {
  2687. return nonSerializable; // creating closure on some variable
  2688. };
  2689. var GETALL_DICTIONARY_TYPES_WHITELIST = {
  2690. 'Background': true,
  2691. 'ExtGState': true,
  2692. 'Halftone': true,
  2693. 'Layout': true,
  2694. 'Mask': true,
  2695. 'Pagination': true,
  2696. 'Printing': true
  2697. };
  2698. function isRecursionAllowedFor(dict) {
  2699. if (!isName(dict.Type)) {
  2700. return true;
  2701. }
  2702. var dictType = dict.Type.name;
  2703. return GETALL_DICTIONARY_TYPES_WHITELIST[dictType] === true;
  2704. }
  2705. // xref is optional
  2706. function Dict(xref) {
  2707. // Map should only be used internally, use functions below to access.
  2708. this.map = Object.create(null);
  2709. this.xref = xref;
  2710. this.objId = null;
  2711. this.__nonSerializable__ = nonSerializable; // disable cloning of the Dict
  2712. }
  2713. Dict.prototype = {
  2714. assignXref: function Dict_assignXref(newXref) {
  2715. this.xref = newXref;
  2716. },
  2717. // automatically dereferences Ref objects
  2718. get: function Dict_get(key1, key2, key3) {
  2719. var value;
  2720. var xref = this.xref;
  2721. if (typeof (value = this.map[key1]) != 'undefined' || key1 in this.map ||
  2722. typeof key2 == 'undefined') {
  2723. return xref ? xref.fetchIfRef(value) : value;
  2724. }
  2725. if (typeof (value = this.map[key2]) != 'undefined' || key2 in this.map ||
  2726. typeof key3 == 'undefined') {
  2727. return xref ? xref.fetchIfRef(value) : value;
  2728. }
  2729. value = this.map[key3] || null;
  2730. return xref ? xref.fetchIfRef(value) : value;
  2731. },
  2732. // Same as get(), but returns a promise and uses fetchIfRefAsync().
  2733. getAsync: function Dict_getAsync(key1, key2, key3) {
  2734. var value;
  2735. var xref = this.xref;
  2736. if (typeof (value = this.map[key1]) !== 'undefined' || key1 in this.map ||
  2737. typeof key2 === 'undefined') {
  2738. if (xref) {
  2739. return xref.fetchIfRefAsync(value);
  2740. }
  2741. return Promise.resolve(value);
  2742. }
  2743. if (typeof (value = this.map[key2]) !== 'undefined' || key2 in this.map ||
  2744. typeof key3 === 'undefined') {
  2745. if (xref) {
  2746. return xref.fetchIfRefAsync(value);
  2747. }
  2748. return Promise.resolve(value);
  2749. }
  2750. value = this.map[key3] || null;
  2751. if (xref) {
  2752. return xref.fetchIfRefAsync(value);
  2753. }
  2754. return Promise.resolve(value);
  2755. },
  2756. // no dereferencing
  2757. getRaw: function Dict_getRaw(key) {
  2758. return this.map[key];
  2759. },
  2760. // creates new map and dereferences all Refs
  2761. getAll: function Dict_getAll() {
  2762. var all = Object.create(null);
  2763. var queue = null;
  2764. var key, obj;
  2765. for (key in this.map) {
  2766. obj = this.get(key);
  2767. if (obj instanceof Dict) {
  2768. if (isRecursionAllowedFor(obj)) {
  2769. (queue || (queue = [])).push({target: all, key: key, obj: obj});
  2770. } else {
  2771. all[key] = this.getRaw(key);
  2772. }
  2773. } else {
  2774. all[key] = obj;
  2775. }
  2776. }
  2777. if (!queue) {
  2778. return all;
  2779. }
  2780. // trying to take cyclic references into the account
  2781. var processed = Object.create(null);
  2782. while (queue.length > 0) {
  2783. var item = queue.shift();
  2784. var itemObj = item.obj;
  2785. var objId = itemObj.objId;
  2786. if (objId && objId in processed) {
  2787. item.target[item.key] = processed[objId];
  2788. continue;
  2789. }
  2790. var dereferenced = Object.create(null);
  2791. for (key in itemObj.map) {
  2792. obj = itemObj.get(key);
  2793. if (obj instanceof Dict) {
  2794. if (isRecursionAllowedFor(obj)) {
  2795. queue.push({target: dereferenced, key: key, obj: obj});
  2796. } else {
  2797. dereferenced[key] = itemObj.getRaw(key);
  2798. }
  2799. } else {
  2800. dereferenced[key] = obj;
  2801. }
  2802. }
  2803. if (objId) {
  2804. processed[objId] = dereferenced;
  2805. }
  2806. item.target[item.key] = dereferenced;
  2807. }
  2808. return all;
  2809. },
  2810. set: function Dict_set(key, value) {
  2811. this.map[key] = value;
  2812. },
  2813. has: function Dict_has(key) {
  2814. return key in this.map;
  2815. },
  2816. forEach: function Dict_forEach(callback) {
  2817. for (var key in this.map) {
  2818. callback(key, this.get(key));
  2819. }
  2820. }
  2821. };
  2822. Dict.empty = new Dict(null);
  2823. return Dict;
  2824. })();
  2825. var Ref = (function RefClosure() {
  2826. function Ref(num, gen) {
  2827. this.num = num;
  2828. this.gen = gen;
  2829. }
  2830. Ref.prototype = {
  2831. toString: function Ref_toString() {
  2832. return 'R' + this.num + '.' + this.gen;
  2833. }
  2834. };
  2835. return Ref;
  2836. })();
  2837. // The reference is identified by number and generation.
  2838. // This structure stores only one instance of the reference.
  2839. var RefSet = (function RefSetClosure() {
  2840. function RefSet() {
  2841. this.dict = {};
  2842. }
  2843. RefSet.prototype = {
  2844. has: function RefSet_has(ref) {
  2845. return ref.toString() in this.dict;
  2846. },
  2847. put: function RefSet_put(ref) {
  2848. this.dict[ref.toString()] = true;
  2849. },
  2850. remove: function RefSet_remove(ref) {
  2851. delete this.dict[ref.toString()];
  2852. }
  2853. };
  2854. return RefSet;
  2855. })();
  2856. var RefSetCache = (function RefSetCacheClosure() {
  2857. function RefSetCache() {
  2858. this.dict = Object.create(null);
  2859. }
  2860. RefSetCache.prototype = {
  2861. get: function RefSetCache_get(ref) {
  2862. return this.dict[ref.toString()];
  2863. },
  2864. has: function RefSetCache_has(ref) {
  2865. return ref.toString() in this.dict;
  2866. },
  2867. put: function RefSetCache_put(ref, obj) {
  2868. this.dict[ref.toString()] = obj;
  2869. },
  2870. putAlias: function RefSetCache_putAlias(ref, aliasRef) {
  2871. this.dict[ref.toString()] = this.get(aliasRef);
  2872. },
  2873. forEach: function RefSetCache_forEach(fn, thisArg) {
  2874. for (var i in this.dict) {
  2875. fn.call(thisArg, this.dict[i]);
  2876. }
  2877. },
  2878. clear: function RefSetCache_clear() {
  2879. this.dict = Object.create(null);
  2880. }
  2881. };
  2882. return RefSetCache;
  2883. })();
  2884. var Catalog = (function CatalogClosure() {
  2885. function Catalog(pdfManager, xref) {
  2886. this.pdfManager = pdfManager;
  2887. this.xref = xref;
  2888. this.catDict = xref.getCatalogObj();
  2889. this.fontCache = new RefSetCache();
  2890. assert(isDict(this.catDict),
  2891. 'catalog object is not a dictionary');
  2892. this.pagePromises = [];
  2893. }
  2894. Catalog.prototype = {
  2895. get metadata() {
  2896. var streamRef = this.catDict.getRaw('Metadata');
  2897. if (!isRef(streamRef)) {
  2898. return shadow(this, 'metadata', null);
  2899. }
  2900. var encryptMetadata = (!this.xref.encrypt ? false :
  2901. this.xref.encrypt.encryptMetadata);
  2902. var stream = this.xref.fetch(streamRef, !encryptMetadata);
  2903. var metadata;
  2904. if (stream && isDict(stream.dict)) {
  2905. var type = stream.dict.get('Type');
  2906. var subtype = stream.dict.get('Subtype');
  2907. if (isName(type) && isName(subtype) &&
  2908. type.name === 'Metadata' && subtype.name === 'XML') {
  2909. // XXX: This should examine the charset the XML document defines,
  2910. // however since there are currently no real means to decode
  2911. // arbitrary charsets, let's just hope that the author of the PDF
  2912. // was reasonable enough to stick with the XML default charset,
  2913. // which is UTF-8.
  2914. try {
  2915. metadata = stringToUTF8String(bytesToString(stream.getBytes()));
  2916. } catch (e) {
  2917. info('Skipping invalid metadata.');
  2918. }
  2919. }
  2920. }
  2921. return shadow(this, 'metadata', metadata);
  2922. },
  2923. get toplevelPagesDict() {
  2924. var pagesObj = this.catDict.get('Pages');
  2925. assert(isDict(pagesObj), 'invalid top-level pages dictionary');
  2926. // shadow the prototype getter
  2927. return shadow(this, 'toplevelPagesDict', pagesObj);
  2928. },
  2929. get documentOutline() {
  2930. var obj = null;
  2931. try {
  2932. obj = this.readDocumentOutline();
  2933. } catch (ex) {
  2934. if (ex instanceof MissingDataException) {
  2935. throw ex;
  2936. }
  2937. warn('Unable to read document outline');
  2938. }
  2939. return shadow(this, 'documentOutline', obj);
  2940. },
  2941. readDocumentOutline: function Catalog_readDocumentOutline() {
  2942. var xref = this.xref;
  2943. var obj = this.catDict.get('Outlines');
  2944. var root = { items: [] };
  2945. if (isDict(obj)) {
  2946. obj = obj.getRaw('First');
  2947. var processed = new RefSet();
  2948. if (isRef(obj)) {
  2949. var queue = [{obj: obj, parent: root}];
  2950. // to avoid recursion keeping track of the items
  2951. // in the processed dictionary
  2952. processed.put(obj);
  2953. while (queue.length > 0) {
  2954. var i = queue.shift();
  2955. var outlineDict = xref.fetchIfRef(i.obj);
  2956. if (outlineDict === null) {
  2957. continue;
  2958. }
  2959. if (!outlineDict.has('Title')) {
  2960. error('Invalid outline item');
  2961. }
  2962. var dest = outlineDict.get('A');
  2963. if (dest) {
  2964. dest = dest.get('D');
  2965. } else if (outlineDict.has('Dest')) {
  2966. dest = outlineDict.getRaw('Dest');
  2967. if (isName(dest)) {
  2968. dest = dest.name;
  2969. }
  2970. }
  2971. var title = outlineDict.get('Title');
  2972. var outlineItem = {
  2973. dest: dest,
  2974. title: stringToPDFString(title),
  2975. color: outlineDict.get('C') || [0, 0, 0],
  2976. count: outlineDict.get('Count'),
  2977. bold: !!(outlineDict.get('F') & 2),
  2978. italic: !!(outlineDict.get('F') & 1),
  2979. items: []
  2980. };
  2981. i.parent.items.push(outlineItem);
  2982. obj = outlineDict.getRaw('First');
  2983. if (isRef(obj) && !processed.has(obj)) {
  2984. queue.push({obj: obj, parent: outlineItem});
  2985. processed.put(obj);
  2986. }
  2987. obj = outlineDict.getRaw('Next');
  2988. if (isRef(obj) && !processed.has(obj)) {
  2989. queue.push({obj: obj, parent: i.parent});
  2990. processed.put(obj);
  2991. }
  2992. }
  2993. }
  2994. }
  2995. return (root.items.length > 0 ? root.items : null);
  2996. },
  2997. get numPages() {
  2998. var obj = this.toplevelPagesDict.get('Count');
  2999. assert(
  3000. isInt(obj),
  3001. 'page count in top level pages object is not an integer'
  3002. );
  3003. // shadow the prototype getter
  3004. return shadow(this, 'num', obj);
  3005. },
  3006. get destinations() {
  3007. function fetchDestination(dest) {
  3008. return isDict(dest) ? dest.get('D') : dest;
  3009. }
  3010. var xref = this.xref;
  3011. var dests = {}, nameTreeRef, nameDictionaryRef;
  3012. var obj = this.catDict.get('Names');
  3013. if (obj && obj.has('Dests')) {
  3014. nameTreeRef = obj.getRaw('Dests');
  3015. } else if (this.catDict.has('Dests')) {
  3016. nameDictionaryRef = this.catDict.get('Dests');
  3017. }
  3018. if (nameDictionaryRef) {
  3019. // reading simple destination dictionary
  3020. obj = nameDictionaryRef;
  3021. obj.forEach(function catalogForEach(key, value) {
  3022. if (!value) {
  3023. return;
  3024. }
  3025. dests[key] = fetchDestination(value);
  3026. });
  3027. }
  3028. if (nameTreeRef) {
  3029. var nameTree = new NameTree(nameTreeRef, xref);
  3030. var names = nameTree.getAll();
  3031. for (var name in names) {
  3032. if (!names.hasOwnProperty(name)) {
  3033. continue;
  3034. }
  3035. dests[name] = fetchDestination(names[name]);
  3036. }
  3037. }
  3038. return shadow(this, 'destinations', dests);
  3039. },
  3040. get attachments() {
  3041. var xref = this.xref;
  3042. var attachments = null, nameTreeRef;
  3043. var obj = this.catDict.get('Names');
  3044. if (obj) {
  3045. nameTreeRef = obj.getRaw('EmbeddedFiles');
  3046. }
  3047. if (nameTreeRef) {
  3048. var nameTree = new NameTree(nameTreeRef, xref);
  3049. var names = nameTree.getAll();
  3050. for (var name in names) {
  3051. if (!names.hasOwnProperty(name)) {
  3052. continue;
  3053. }
  3054. var fs = new FileSpec(names[name], xref);
  3055. if (!attachments) {
  3056. attachments = {};
  3057. }
  3058. attachments[stringToPDFString(name)] = fs.serializable;
  3059. }
  3060. }
  3061. return shadow(this, 'attachments', attachments);
  3062. },
  3063. get javaScript() {
  3064. var xref = this.xref;
  3065. var obj = this.catDict.get('Names');
  3066. var javaScript = [];
  3067. if (obj && obj.has('JavaScript')) {
  3068. var nameTree = new NameTree(obj.getRaw('JavaScript'), xref);
  3069. var names = nameTree.getAll();
  3070. for (var name in names) {
  3071. if (!names.hasOwnProperty(name)) {
  3072. continue;
  3073. }
  3074. // We don't really use the JavaScript right now. This code is
  3075. // defensive so we don't cause errors on document load.
  3076. var jsDict = names[name];
  3077. if (!isDict(jsDict)) {
  3078. continue;
  3079. }
  3080. var type = jsDict.get('S');
  3081. if (!isName(type) || type.name !== 'JavaScript') {
  3082. continue;
  3083. }
  3084. var js = jsDict.get('JS');
  3085. if (!isString(js) && !isStream(js)) {
  3086. continue;
  3087. }
  3088. if (isStream(js)) {
  3089. js = bytesToString(js.getBytes());
  3090. }
  3091. javaScript.push(stringToPDFString(js));
  3092. }
  3093. }
  3094. // Append OpenAction actions to javaScript array
  3095. var openactionDict = this.catDict.get('OpenAction');
  3096. if (isDict(openactionDict)) {
  3097. var objType = openactionDict.get('Type');
  3098. var actionType = openactionDict.get('S');
  3099. var action = openactionDict.get('N');
  3100. var isPrintAction = (isName(objType) && objType.name === 'Action' &&
  3101. isName(actionType) && actionType.name === 'Named' &&
  3102. isName(action) && action.name === 'Print');
  3103. if (isPrintAction) {
  3104. javaScript.push('print(true);');
  3105. }
  3106. }
  3107. return shadow(this, 'javaScript', javaScript);
  3108. },
  3109. cleanup: function Catalog_cleanup() {
  3110. var promises = [];
  3111. this.fontCache.forEach(function (promise) {
  3112. promises.push(promise);
  3113. });
  3114. return Promise.all(promises).then(function (translatedFonts) {
  3115. for (var i = 0, ii = translatedFonts.length; i < ii; i++) {
  3116. var font = translatedFonts[i].dict;
  3117. delete font.translated;
  3118. }
  3119. this.fontCache.clear();
  3120. }.bind(this));
  3121. },
  3122. getPage: function Catalog_getPage(pageIndex) {
  3123. if (!(pageIndex in this.pagePromises)) {
  3124. this.pagePromises[pageIndex] = this.getPageDict(pageIndex).then(
  3125. function (a) {
  3126. var dict = a[0];
  3127. var ref = a[1];
  3128. return new Page(this.pdfManager, this.xref, pageIndex, dict, ref,
  3129. this.fontCache);
  3130. }.bind(this)
  3131. );
  3132. }
  3133. return this.pagePromises[pageIndex];
  3134. },
  3135. getPageDict: function Catalog_getPageDict(pageIndex) {
  3136. var capability = createPromiseCapability();
  3137. var nodesToVisit = [this.catDict.getRaw('Pages')];
  3138. var currentPageIndex = 0;
  3139. var xref = this.xref;
  3140. function next() {
  3141. while (nodesToVisit.length) {
  3142. var currentNode = nodesToVisit.pop();
  3143. if (isRef(currentNode)) {
  3144. xref.fetchAsync(currentNode).then(function (obj) {
  3145. if ((isDict(obj, 'Page') || (isDict(obj) && !obj.has('Kids')))) {
  3146. if (pageIndex === currentPageIndex) {
  3147. capability.resolve([obj, currentNode]);
  3148. } else {
  3149. currentPageIndex++;
  3150. next();
  3151. }
  3152. return;
  3153. }
  3154. nodesToVisit.push(obj);
  3155. next();
  3156. }.bind(this), capability.reject.bind(capability));
  3157. return;
  3158. }
  3159. // must be a child page dictionary
  3160. assert(
  3161. isDict(currentNode),
  3162. 'page dictionary kid reference points to wrong type of object'
  3163. );
  3164. var count = currentNode.get('Count');
  3165. // Skip nodes where the page can't be.
  3166. if (currentPageIndex + count <= pageIndex) {
  3167. currentPageIndex += count;
  3168. continue;
  3169. }
  3170. var kids = currentNode.get('Kids');
  3171. assert(isArray(kids), 'page dictionary kids object is not an array');
  3172. if (count === kids.length) {
  3173. // Nodes that don't have the page have been skipped and this is the
  3174. // bottom of the tree which means the page requested must be a
  3175. // descendant of this pages node. Ideally we would just resolve the
  3176. // promise with the page ref here, but there is the case where more
  3177. // pages nodes could link to single a page (see issue 3666 pdf). To
  3178. // handle this push it back on the queue so if it is a pages node it
  3179. // will be descended into.
  3180. nodesToVisit = [kids[pageIndex - currentPageIndex]];
  3181. currentPageIndex = pageIndex;
  3182. continue;
  3183. } else {
  3184. for (var last = kids.length - 1; last >= 0; last--) {
  3185. nodesToVisit.push(kids[last]);
  3186. }
  3187. }
  3188. }
  3189. capability.reject('Page index ' + pageIndex + ' not found.');
  3190. }
  3191. next();
  3192. return capability.promise;
  3193. },
  3194. getPageIndex: function Catalog_getPageIndex(ref) {
  3195. // The page tree nodes have the count of all the leaves below them. To get
  3196. // how many pages are before we just have to walk up the tree and keep
  3197. // adding the count of siblings to the left of the node.
  3198. var xref = this.xref;
  3199. function pagesBeforeRef(kidRef) {
  3200. var total = 0;
  3201. var parentRef;
  3202. return xref.fetchAsync(kidRef).then(function (node) {
  3203. if (!node) {
  3204. return null;
  3205. }
  3206. parentRef = node.getRaw('Parent');
  3207. return node.getAsync('Parent');
  3208. }).then(function (parent) {
  3209. if (!parent) {
  3210. return null;
  3211. }
  3212. return parent.getAsync('Kids');
  3213. }).then(function (kids) {
  3214. if (!kids) {
  3215. return null;
  3216. }
  3217. var kidPromises = [];
  3218. var found = false;
  3219. for (var i = 0; i < kids.length; i++) {
  3220. var kid = kids[i];
  3221. assert(isRef(kid), 'kids must be a ref');
  3222. if (kid.num == kidRef.num) {
  3223. found = true;
  3224. break;
  3225. }
  3226. kidPromises.push(xref.fetchAsync(kid).then(function (kid) {
  3227. if (kid.has('Count')) {
  3228. var count = kid.get('Count');
  3229. total += count;
  3230. } else { // page leaf node
  3231. total++;
  3232. }
  3233. }));
  3234. }
  3235. if (!found) {
  3236. error('kid ref not found in parents kids');
  3237. }
  3238. return Promise.all(kidPromises).then(function () {
  3239. return [total, parentRef];
  3240. });
  3241. });
  3242. }
  3243. var total = 0;
  3244. function next(ref) {
  3245. return pagesBeforeRef(ref).then(function (args) {
  3246. if (!args) {
  3247. return total;
  3248. }
  3249. var count = args[0];
  3250. var parentRef = args[1];
  3251. total += count;
  3252. return next(parentRef);
  3253. });
  3254. }
  3255. return next(ref);
  3256. }
  3257. };
  3258. return Catalog;
  3259. })();
  3260. var XRef = (function XRefClosure() {
  3261. function XRef(stream, password) {
  3262. this.stream = stream;
  3263. this.entries = [];
  3264. this.xrefstms = {};
  3265. // prepare the XRef cache
  3266. this.cache = [];
  3267. this.password = password;
  3268. this.stats = {
  3269. streamTypes: [],
  3270. fontTypes: []
  3271. };
  3272. }
  3273. XRef.prototype = {
  3274. setStartXRef: function XRef_setStartXRef(startXRef) {
  3275. // Store the starting positions of xref tables as we process them
  3276. // so we can recover from missing data errors
  3277. this.startXRefQueue = [startXRef];
  3278. },
  3279. parse: function XRef_parse(recoveryMode) {
  3280. var trailerDict;
  3281. if (!recoveryMode) {
  3282. trailerDict = this.readXRef();
  3283. } else {
  3284. warn('Indexing all PDF objects');
  3285. trailerDict = this.indexObjects();
  3286. }
  3287. trailerDict.assignXref(this);
  3288. this.trailer = trailerDict;
  3289. var encrypt = trailerDict.get('Encrypt');
  3290. if (encrypt) {
  3291. var ids = trailerDict.get('ID');
  3292. var fileId = (ids && ids.length) ? ids[0] : '';
  3293. this.encrypt = new CipherTransformFactory(encrypt, fileId,
  3294. this.password);
  3295. }
  3296. // get the root dictionary (catalog) object
  3297. if (!(this.root = trailerDict.get('Root'))) {
  3298. error('Invalid root reference');
  3299. }
  3300. },
  3301. processXRefTable: function XRef_processXRefTable(parser) {
  3302. if (!('tableState' in this)) {
  3303. // Stores state of the table as we process it so we can resume
  3304. // from middle of table in case of missing data error
  3305. this.tableState = {
  3306. entryNum: 0,
  3307. streamPos: parser.lexer.stream.pos,
  3308. parserBuf1: parser.buf1,
  3309. parserBuf2: parser.buf2
  3310. };
  3311. }
  3312. var obj = this.readXRefTable(parser);
  3313. // Sanity check
  3314. if (!isCmd(obj, 'trailer')) {
  3315. error('Invalid XRef table: could not find trailer dictionary');
  3316. }
  3317. // Read trailer dictionary, e.g.
  3318. // trailer
  3319. // << /Size 22
  3320. // /Root 20R
  3321. // /Info 10R
  3322. // /ID [ <81b14aafa313db63dbd6f981e49f94f4> ]
  3323. // >>
  3324. // The parser goes through the entire stream << ... >> and provides
  3325. // a getter interface for the key-value table
  3326. var dict = parser.getObj();
  3327. // The pdflib PDF generator can generate a nested trailer dictionary
  3328. if (!isDict(dict) && dict.dict) {
  3329. dict = dict.dict;
  3330. }
  3331. if (!isDict(dict)) {
  3332. error('Invalid XRef table: could not parse trailer dictionary');
  3333. }
  3334. delete this.tableState;
  3335. return dict;
  3336. },
  3337. readXRefTable: function XRef_readXRefTable(parser) {
  3338. // Example of cross-reference table:
  3339. // xref
  3340. // 0 1 <-- subsection header (first obj #, obj count)
  3341. // 0000000000 65535 f <-- actual object (offset, generation #, f/n)
  3342. // 23 2 <-- subsection header ... and so on ...
  3343. // 0000025518 00002 n
  3344. // 0000025635 00000 n
  3345. // trailer
  3346. // ...
  3347. var stream = parser.lexer.stream;
  3348. var tableState = this.tableState;
  3349. stream.pos = tableState.streamPos;
  3350. parser.buf1 = tableState.parserBuf1;
  3351. parser.buf2 = tableState.parserBuf2;
  3352. // Outer loop is over subsection headers
  3353. var obj;
  3354. while (true) {
  3355. if (!('firstEntryNum' in tableState) || !('entryCount' in tableState)) {
  3356. if (isCmd(obj = parser.getObj(), 'trailer')) {
  3357. break;
  3358. }
  3359. tableState.firstEntryNum = obj;
  3360. tableState.entryCount = parser.getObj();
  3361. }
  3362. var first = tableState.firstEntryNum;
  3363. var count = tableState.entryCount;
  3364. if (!isInt(first) || !isInt(count)) {
  3365. error('Invalid XRef table: wrong types in subsection header');
  3366. }
  3367. // Inner loop is over objects themselves
  3368. for (var i = tableState.entryNum; i < count; i++) {
  3369. tableState.streamPos = stream.pos;
  3370. tableState.entryNum = i;
  3371. tableState.parserBuf1 = parser.buf1;
  3372. tableState.parserBuf2 = parser.buf2;
  3373. var entry = {};
  3374. entry.offset = parser.getObj();
  3375. entry.gen = parser.getObj();
  3376. var type = parser.getObj();
  3377. if (isCmd(type, 'f')) {
  3378. entry.free = true;
  3379. } else if (isCmd(type, 'n')) {
  3380. entry.uncompressed = true;
  3381. }
  3382. // Validate entry obj
  3383. if (!isInt(entry.offset) || !isInt(entry.gen) ||
  3384. !(entry.free || entry.uncompressed)) {
  3385. console.log(entry.offset, entry.gen, entry.free,
  3386. entry.uncompressed);
  3387. error('Invalid entry in XRef subsection: ' + first + ', ' + count);
  3388. }
  3389. if (!this.entries[i + first]) {
  3390. this.entries[i + first] = entry;
  3391. }
  3392. }
  3393. tableState.entryNum = 0;
  3394. tableState.streamPos = stream.pos;
  3395. tableState.parserBuf1 = parser.buf1;
  3396. tableState.parserBuf2 = parser.buf2;
  3397. delete tableState.firstEntryNum;
  3398. delete tableState.entryCount;
  3399. }
  3400. // Per issue 3248: hp scanners generate bad XRef
  3401. if (first === 1 && this.entries[1] && this.entries[1].free) {
  3402. // shifting the entries
  3403. this.entries.shift();
  3404. }
  3405. // Sanity check: as per spec, first object must be free
  3406. if (this.entries[0] && !this.entries[0].free) {
  3407. error('Invalid XRef table: unexpected first object');
  3408. }
  3409. return obj;
  3410. },
  3411. processXRefStream: function XRef_processXRefStream(stream) {
  3412. if (!('streamState' in this)) {
  3413. // Stores state of the stream as we process it so we can resume
  3414. // from middle of stream in case of missing data error
  3415. var streamParameters = stream.dict;
  3416. var byteWidths = streamParameters.get('W');
  3417. var range = streamParameters.get('Index');
  3418. if (!range) {
  3419. range = [0, streamParameters.get('Size')];
  3420. }
  3421. this.streamState = {
  3422. entryRanges: range,
  3423. byteWidths: byteWidths,
  3424. entryNum: 0,
  3425. streamPos: stream.pos
  3426. };
  3427. }
  3428. this.readXRefStream(stream);
  3429. delete this.streamState;
  3430. return stream.dict;
  3431. },
  3432. readXRefStream: function XRef_readXRefStream(stream) {
  3433. var i, j;
  3434. var streamState = this.streamState;
  3435. stream.pos = streamState.streamPos;
  3436. var byteWidths = streamState.byteWidths;
  3437. var typeFieldWidth = byteWidths[0];
  3438. var offsetFieldWidth = byteWidths[1];
  3439. var generationFieldWidth = byteWidths[2];
  3440. var entryRanges = streamState.entryRanges;
  3441. while (entryRanges.length > 0) {
  3442. var first = entryRanges[0];
  3443. var n = entryRanges[1];
  3444. if (!isInt(first) || !isInt(n)) {
  3445. error('Invalid XRef range fields: ' + first + ', ' + n);
  3446. }
  3447. if (!isInt(typeFieldWidth) || !isInt(offsetFieldWidth) ||
  3448. !isInt(generationFieldWidth)) {
  3449. error('Invalid XRef entry fields length: ' + first + ', ' + n);
  3450. }
  3451. for (i = streamState.entryNum; i < n; ++i) {
  3452. streamState.entryNum = i;
  3453. streamState.streamPos = stream.pos;
  3454. var type = 0, offset = 0, generation = 0;
  3455. for (j = 0; j < typeFieldWidth; ++j) {
  3456. type = (type << 8) | stream.getByte();
  3457. }
  3458. // if type field is absent, its default value is 1
  3459. if (typeFieldWidth === 0) {
  3460. type = 1;
  3461. }
  3462. for (j = 0; j < offsetFieldWidth; ++j) {
  3463. offset = (offset << 8) | stream.getByte();
  3464. }
  3465. for (j = 0; j < generationFieldWidth; ++j) {
  3466. generation = (generation << 8) | stream.getByte();
  3467. }
  3468. var entry = {};
  3469. entry.offset = offset;
  3470. entry.gen = generation;
  3471. switch (type) {
  3472. case 0:
  3473. entry.free = true;
  3474. break;
  3475. case 1:
  3476. entry.uncompressed = true;
  3477. break;
  3478. case 2:
  3479. break;
  3480. default:
  3481. error('Invalid XRef entry type: ' + type);
  3482. }
  3483. if (!this.entries[first + i]) {
  3484. this.entries[first + i] = entry;
  3485. }
  3486. }
  3487. streamState.entryNum = 0;
  3488. streamState.streamPos = stream.pos;
  3489. entryRanges.splice(0, 2);
  3490. }
  3491. },
  3492. indexObjects: function XRef_indexObjects() {
  3493. // Simple scan through the PDF content to find objects,
  3494. // trailers and XRef streams.
  3495. function readToken(data, offset) {
  3496. var token = '', ch = data[offset];
  3497. while (ch !== 13 && ch !== 10) {
  3498. if (++offset >= data.length) {
  3499. break;
  3500. }
  3501. token += String.fromCharCode(ch);
  3502. ch = data[offset];
  3503. }
  3504. return token;
  3505. }
  3506. function skipUntil(data, offset, what) {
  3507. var length = what.length, dataLength = data.length;
  3508. var skipped = 0;
  3509. // finding byte sequence
  3510. while (offset < dataLength) {
  3511. var i = 0;
  3512. while (i < length && data[offset + i] == what[i]) {
  3513. ++i;
  3514. }
  3515. if (i >= length) {
  3516. break; // sequence found
  3517. }
  3518. offset++;
  3519. skipped++;
  3520. }
  3521. return skipped;
  3522. }
  3523. var trailerBytes = new Uint8Array([116, 114, 97, 105, 108, 101, 114]);
  3524. var startxrefBytes = new Uint8Array([115, 116, 97, 114, 116, 120, 114,
  3525. 101, 102]);
  3526. var endobjBytes = new Uint8Array([101, 110, 100, 111, 98, 106]);
  3527. var xrefBytes = new Uint8Array([47, 88, 82, 101, 102]);
  3528. var stream = this.stream;
  3529. stream.pos = 0;
  3530. var buffer = stream.getBytes();
  3531. var position = stream.start, length = buffer.length;
  3532. var trailers = [], xrefStms = [];
  3533. while (position < length) {
  3534. var ch = buffer[position];
  3535. if (ch === 32 || ch === 9 || ch === 13 || ch === 10) {
  3536. ++position;
  3537. continue;
  3538. }
  3539. if (ch === 37) { // %-comment
  3540. do {
  3541. ++position;
  3542. if (position >= length) {
  3543. break;
  3544. }
  3545. ch = buffer[position];
  3546. } while (ch !== 13 && ch !== 10);
  3547. continue;
  3548. }
  3549. var token = readToken(buffer, position);
  3550. var m;
  3551. if (token === 'xref') {
  3552. position += skipUntil(buffer, position, trailerBytes);
  3553. trailers.push(position);
  3554. position += skipUntil(buffer, position, startxrefBytes);
  3555. } else if ((m = /^(\d+)\s+(\d+)\s+obj\b/.exec(token))) {
  3556. this.entries[m[1]] = {
  3557. offset: position,
  3558. gen: m[2] | 0,
  3559. uncompressed: true
  3560. };
  3561. var contentLength = skipUntil(buffer, position, endobjBytes) + 7;
  3562. var content = buffer.subarray(position, position + contentLength);
  3563. // checking XRef stream suspect
  3564. // (it shall have '/XRef' and next char is not a letter)
  3565. var xrefTagOffset = skipUntil(content, 0, xrefBytes);
  3566. if (xrefTagOffset < contentLength &&
  3567. content[xrefTagOffset + 5] < 64) {
  3568. xrefStms.push(position);
  3569. this.xrefstms[position] = 1; // don't read it recursively
  3570. }
  3571. position += contentLength;
  3572. } else {
  3573. position += token.length + 1;
  3574. }
  3575. }
  3576. // reading XRef streams
  3577. var i, ii;
  3578. for (i = 0, ii = xrefStms.length; i < ii; ++i) {
  3579. this.startXRefQueue.push(xrefStms[i]);
  3580. this.readXRef(/* recoveryMode */ true);
  3581. }
  3582. // finding main trailer
  3583. var dict;
  3584. for (i = 0, ii = trailers.length; i < ii; ++i) {
  3585. stream.pos = trailers[i];
  3586. var parser = new Parser(new Lexer(stream), true, this);
  3587. var obj = parser.getObj();
  3588. if (!isCmd(obj, 'trailer')) {
  3589. continue;
  3590. }
  3591. // read the trailer dictionary
  3592. if (!isDict(dict = parser.getObj())) {
  3593. continue;
  3594. }
  3595. // taking the first one with 'ID'
  3596. if (dict.has('ID')) {
  3597. return dict;
  3598. }
  3599. }
  3600. // no tailer with 'ID', taking last one (if exists)
  3601. if (dict) {
  3602. return dict;
  3603. }
  3604. // nothing helps
  3605. // calling error() would reject worker with an UnknownErrorException.
  3606. throw new InvalidPDFException('Invalid PDF structure');
  3607. },
  3608. readXRef: function XRef_readXRef(recoveryMode) {
  3609. var stream = this.stream;
  3610. try {
  3611. while (this.startXRefQueue.length) {
  3612. var startXRef = this.startXRefQueue[0];
  3613. stream.pos = startXRef + stream.start;
  3614. var parser = new Parser(new Lexer(stream), true, this);
  3615. var obj = parser.getObj();
  3616. var dict;
  3617. // Get dictionary
  3618. if (isCmd(obj, 'xref')) {
  3619. // Parse end-of-file XRef
  3620. dict = this.processXRefTable(parser);
  3621. if (!this.topDict) {
  3622. this.topDict = dict;
  3623. }
  3624. // Recursively get other XRefs 'XRefStm', if any
  3625. obj = dict.get('XRefStm');
  3626. if (isInt(obj)) {
  3627. var pos = obj;
  3628. // ignore previously loaded xref streams
  3629. // (possible infinite recursion)
  3630. if (!(pos in this.xrefstms)) {
  3631. this.xrefstms[pos] = 1;
  3632. this.startXRefQueue.push(pos);
  3633. }
  3634. }
  3635. } else if (isInt(obj)) {
  3636. // Parse in-stream XRef
  3637. if (!isInt(parser.getObj()) ||
  3638. !isCmd(parser.getObj(), 'obj') ||
  3639. !isStream(obj = parser.getObj())) {
  3640. error('Invalid XRef stream');
  3641. }
  3642. dict = this.processXRefStream(obj);
  3643. if (!this.topDict) {
  3644. this.topDict = dict;
  3645. }
  3646. if (!dict) {
  3647. error('Failed to read XRef stream');
  3648. }
  3649. } else {
  3650. error('Invalid XRef stream header');
  3651. }
  3652. // Recursively get previous dictionary, if any
  3653. obj = dict.get('Prev');
  3654. if (isInt(obj)) {
  3655. this.startXRefQueue.push(obj);
  3656. } else if (isRef(obj)) {
  3657. // The spec says Prev must not be a reference, i.e. "/Prev NNN"
  3658. // This is a fallback for non-compliant PDFs, i.e. "/Prev NNN 0 R"
  3659. this.startXRefQueue.push(obj.num);
  3660. }
  3661. this.startXRefQueue.shift();
  3662. }
  3663. return this.topDict;
  3664. } catch (e) {
  3665. if (e instanceof MissingDataException) {
  3666. throw e;
  3667. }
  3668. info('(while reading XRef): ' + e);
  3669. }
  3670. if (recoveryMode) {
  3671. return;
  3672. }
  3673. throw new XRefParseException();
  3674. },
  3675. getEntry: function XRef_getEntry(i) {
  3676. var xrefEntry = this.entries[i];
  3677. if (xrefEntry && !xrefEntry.free && xrefEntry.offset) {
  3678. return xrefEntry;
  3679. }
  3680. return null;
  3681. },
  3682. fetchIfRef: function XRef_fetchIfRef(obj) {
  3683. if (!isRef(obj)) {
  3684. return obj;
  3685. }
  3686. return this.fetch(obj);
  3687. },
  3688. fetch: function XRef_fetch(ref, suppressEncryption) {
  3689. assert(isRef(ref), 'ref object is not a reference');
  3690. var num = ref.num;
  3691. if (num in this.cache) {
  3692. var cacheEntry = this.cache[num];
  3693. return cacheEntry;
  3694. }
  3695. var xrefEntry = this.getEntry(num);
  3696. // the referenced entry can be free
  3697. if (xrefEntry === null) {
  3698. return (this.cache[num] = null);
  3699. }
  3700. if (xrefEntry.uncompressed) {
  3701. xrefEntry = this.fetchUncompressed(ref, xrefEntry, suppressEncryption);
  3702. } else {
  3703. xrefEntry = this.fetchCompressed(xrefEntry, suppressEncryption);
  3704. }
  3705. if (isDict(xrefEntry)){
  3706. xrefEntry.objId = ref.toString();
  3707. } else if (isStream(xrefEntry)) {
  3708. xrefEntry.dict.objId = ref.toString();
  3709. }
  3710. return xrefEntry;
  3711. },
  3712. fetchUncompressed: function XRef_fetchUncompressed(ref, xrefEntry,
  3713. suppressEncryption) {
  3714. var gen = ref.gen;
  3715. var num = ref.num;
  3716. if (xrefEntry.gen !== gen) {
  3717. error('inconsistent generation in XRef');
  3718. }
  3719. var stream = this.stream.makeSubStream(xrefEntry.offset +
  3720. this.stream.start);
  3721. var parser = new Parser(new Lexer(stream), true, this);
  3722. var obj1 = parser.getObj();
  3723. var obj2 = parser.getObj();
  3724. var obj3 = parser.getObj();
  3725. if (!isInt(obj1) || parseInt(obj1, 10) !== num ||
  3726. !isInt(obj2) || parseInt(obj2, 10) !== gen ||
  3727. !isCmd(obj3)) {
  3728. error('bad XRef entry');
  3729. }
  3730. if (!isCmd(obj3, 'obj')) {
  3731. // some bad PDFs use "obj1234" and really mean 1234
  3732. if (obj3.cmd.indexOf('obj') === 0) {
  3733. num = parseInt(obj3.cmd.substring(3), 10);
  3734. if (!isNaN(num)) {
  3735. return num;
  3736. }
  3737. }
  3738. error('bad XRef entry');
  3739. }
  3740. if (this.encrypt && !suppressEncryption) {
  3741. xrefEntry = parser.getObj(this.encrypt.createCipherTransform(num, gen));
  3742. } else {
  3743. xrefEntry = parser.getObj();
  3744. }
  3745. if (!isStream(xrefEntry)) {
  3746. this.cache[num] = xrefEntry;
  3747. }
  3748. return xrefEntry;
  3749. },
  3750. fetchCompressed: function XRef_fetchCompressed(xrefEntry,
  3751. suppressEncryption) {
  3752. var tableOffset = xrefEntry.offset;
  3753. var stream = this.fetch(new Ref(tableOffset, 0));
  3754. if (!isStream(stream)) {
  3755. error('bad ObjStm stream');
  3756. }
  3757. var first = stream.dict.get('First');
  3758. var n = stream.dict.get('N');
  3759. if (!isInt(first) || !isInt(n)) {
  3760. error('invalid first and n parameters for ObjStm stream');
  3761. }
  3762. var parser = new Parser(new Lexer(stream), false, this);
  3763. parser.allowStreams = true;
  3764. var i, entries = [], num, nums = [];
  3765. // read the object numbers to populate cache
  3766. for (i = 0; i < n; ++i) {
  3767. num = parser.getObj();
  3768. if (!isInt(num)) {
  3769. error('invalid object number in the ObjStm stream: ' + num);
  3770. }
  3771. nums.push(num);
  3772. var offset = parser.getObj();
  3773. if (!isInt(offset)) {
  3774. error('invalid object offset in the ObjStm stream: ' + offset);
  3775. }
  3776. }
  3777. // read stream objects for cache
  3778. for (i = 0; i < n; ++i) {
  3779. entries.push(parser.getObj());
  3780. num = nums[i];
  3781. var entry = this.entries[num];
  3782. if (entry && entry.offset === tableOffset && entry.gen === i) {
  3783. this.cache[num] = entries[i];
  3784. }
  3785. }
  3786. xrefEntry = entries[xrefEntry.gen];
  3787. if (xrefEntry === undefined) {
  3788. error('bad XRef entry for compressed object');
  3789. }
  3790. return xrefEntry;
  3791. },
  3792. fetchIfRefAsync: function XRef_fetchIfRefAsync(obj) {
  3793. if (!isRef(obj)) {
  3794. return Promise.resolve(obj);
  3795. }
  3796. return this.fetchAsync(obj);
  3797. },
  3798. fetchAsync: function XRef_fetchAsync(ref, suppressEncryption) {
  3799. return new Promise(function (resolve, reject) {
  3800. var tryFetch = function () {
  3801. try {
  3802. resolve(this.fetch(ref, suppressEncryption));
  3803. } catch (e) {
  3804. if (e instanceof MissingDataException) {
  3805. this.stream.manager.requestRange(e.begin, e.end, tryFetch);
  3806. return;
  3807. }
  3808. reject(e);
  3809. }
  3810. }.bind(this);
  3811. tryFetch();
  3812. }.bind(this));
  3813. },
  3814. getCatalogObj: function XRef_getCatalogObj() {
  3815. return this.root;
  3816. }
  3817. };
  3818. return XRef;
  3819. })();
  3820. /**
  3821. * A NameTree is like a Dict but has some advantageous properties, see the
  3822. * spec (7.9.6) for more details.
  3823. * TODO: implement all the Dict functions and make this more efficent.
  3824. */
  3825. var NameTree = (function NameTreeClosure() {
  3826. function NameTree(root, xref) {
  3827. this.root = root;
  3828. this.xref = xref;
  3829. }
  3830. NameTree.prototype = {
  3831. getAll: function NameTree_getAll() {
  3832. var dict = {};
  3833. if (!this.root) {
  3834. return dict;
  3835. }
  3836. var xref = this.xref;
  3837. // reading name tree
  3838. var processed = new RefSet();
  3839. processed.put(this.root);
  3840. var queue = [this.root];
  3841. while (queue.length > 0) {
  3842. var i, n;
  3843. var obj = xref.fetchIfRef(queue.shift());
  3844. if (!isDict(obj)) {
  3845. continue;
  3846. }
  3847. if (obj.has('Kids')) {
  3848. var kids = obj.get('Kids');
  3849. for (i = 0, n = kids.length; i < n; i++) {
  3850. var kid = kids[i];
  3851. if (processed.has(kid)) {
  3852. error('invalid destinations');
  3853. }
  3854. queue.push(kid);
  3855. processed.put(kid);
  3856. }
  3857. continue;
  3858. }
  3859. var names = obj.get('Names');
  3860. if (names) {
  3861. for (i = 0, n = names.length; i < n; i += 2) {
  3862. dict[names[i]] = xref.fetchIfRef(names[i + 1]);
  3863. }
  3864. }
  3865. }
  3866. return dict;
  3867. }
  3868. };
  3869. return NameTree;
  3870. })();
  3871. /**
  3872. * "A PDF file can refer to the contents of another file by using a File
  3873. * Specification (PDF 1.1)", see the spec (7.11) for more details.
  3874. * NOTE: Only embedded files are supported (as part of the attachments support)
  3875. * TODO: support the 'URL' file system (with caching if !/V), portable
  3876. * collections attributes and related files (/RF)
  3877. */
  3878. var FileSpec = (function FileSpecClosure() {
  3879. function FileSpec(root, xref) {
  3880. if (!root || !isDict(root)) {
  3881. return;
  3882. }
  3883. this.xref = xref;
  3884. this.root = root;
  3885. if (root.has('FS')) {
  3886. this.fs = root.get('FS');
  3887. }
  3888. this.description = root.has('Desc') ?
  3889. stringToPDFString(root.get('Desc')) :
  3890. '';
  3891. if (root.has('RF')) {
  3892. warn('Related file specifications are not supported');
  3893. }
  3894. this.contentAvailable = true;
  3895. if (!root.has('EF')) {
  3896. this.contentAvailable = false;
  3897. warn('Non-embedded file specifications are not supported');
  3898. }
  3899. }
  3900. function pickPlatformItem(dict) {
  3901. // Look for the filename in this order:
  3902. // UF, F, Unix, Mac, DOS
  3903. if (dict.has('UF')) {
  3904. return dict.get('UF');
  3905. } else if (dict.has('F')) {
  3906. return dict.get('F');
  3907. } else if (dict.has('Unix')) {
  3908. return dict.get('Unix');
  3909. } else if (dict.has('Mac')) {
  3910. return dict.get('Mac');
  3911. } else if (dict.has('DOS')) {
  3912. return dict.get('DOS');
  3913. } else {
  3914. return null;
  3915. }
  3916. }
  3917. FileSpec.prototype = {
  3918. get filename() {
  3919. if (!this._filename && this.root) {
  3920. var filename = pickPlatformItem(this.root) || 'unnamed';
  3921. this._filename = stringToPDFString(filename).
  3922. replace(/\\\\/g, '\\').
  3923. replace(/\\\//g, '/').
  3924. replace(/\\/g, '/');
  3925. }
  3926. return this._filename;
  3927. },
  3928. get content() {
  3929. if (!this.contentAvailable) {
  3930. return null;
  3931. }
  3932. if (!this.contentRef && this.root) {
  3933. this.contentRef = pickPlatformItem(this.root.get('EF'));
  3934. }
  3935. var content = null;
  3936. if (this.contentRef) {
  3937. var xref = this.xref;
  3938. var fileObj = xref.fetchIfRef(this.contentRef);
  3939. if (fileObj && isStream(fileObj)) {
  3940. content = fileObj.getBytes();
  3941. } else {
  3942. warn('Embedded file specification points to non-existing/invalid ' +
  3943. 'content');
  3944. }
  3945. } else {
  3946. warn('Embedded file specification does not have a content');
  3947. }
  3948. return content;
  3949. },
  3950. get serializable() {
  3951. return {
  3952. filename: this.filename,
  3953. content: this.content
  3954. };
  3955. }
  3956. };
  3957. return FileSpec;
  3958. })();
  3959. /**
  3960. * A helper for loading missing data in object graphs. It traverses the graph
  3961. * depth first and queues up any objects that have missing data. Once it has
  3962. * has traversed as many objects that are available it attempts to bundle the
  3963. * missing data requests and then resume from the nodes that weren't ready.
  3964. *
  3965. * NOTE: It provides protection from circular references by keeping track of
  3966. * of loaded references. However, you must be careful not to load any graphs
  3967. * that have references to the catalog or other pages since that will cause the
  3968. * entire PDF document object graph to be traversed.
  3969. */
  3970. var ObjectLoader = (function() {
  3971. function mayHaveChildren(value) {
  3972. return isRef(value) || isDict(value) || isArray(value) || isStream(value);
  3973. }
  3974. function addChildren(node, nodesToVisit) {
  3975. var value;
  3976. if (isDict(node) || isStream(node)) {
  3977. var map;
  3978. if (isDict(node)) {
  3979. map = node.map;
  3980. } else {
  3981. map = node.dict.map;
  3982. }
  3983. for (var key in map) {
  3984. value = map[key];
  3985. if (mayHaveChildren(value)) {
  3986. nodesToVisit.push(value);
  3987. }
  3988. }
  3989. } else if (isArray(node)) {
  3990. for (var i = 0, ii = node.length; i < ii; i++) {
  3991. value = node[i];
  3992. if (mayHaveChildren(value)) {
  3993. nodesToVisit.push(value);
  3994. }
  3995. }
  3996. }
  3997. }
  3998. function ObjectLoader(obj, keys, xref) {
  3999. this.obj = obj;
  4000. this.keys = keys;
  4001. this.xref = xref;
  4002. this.refSet = null;
  4003. }
  4004. ObjectLoader.prototype = {
  4005. load: function ObjectLoader_load() {
  4006. var keys = this.keys;
  4007. this.capability = createPromiseCapability();
  4008. // Don't walk the graph if all the data is already loaded.
  4009. if (!(this.xref.stream instanceof ChunkedStream) ||
  4010. this.xref.stream.getMissingChunks().length === 0) {
  4011. this.capability.resolve();
  4012. return this.capability.promise;
  4013. }
  4014. this.refSet = new RefSet();
  4015. // Setup the initial nodes to visit.
  4016. var nodesToVisit = [];
  4017. for (var i = 0; i < keys.length; i++) {
  4018. nodesToVisit.push(this.obj[keys[i]]);
  4019. }
  4020. this.walk(nodesToVisit);
  4021. return this.capability.promise;
  4022. },
  4023. walk: function ObjectLoader_walk(nodesToVisit) {
  4024. var nodesToRevisit = [];
  4025. var pendingRequests = [];
  4026. // DFS walk of the object graph.
  4027. while (nodesToVisit.length) {
  4028. var currentNode = nodesToVisit.pop();
  4029. // Only references or chunked streams can cause missing data exceptions.
  4030. if (isRef(currentNode)) {
  4031. // Skip nodes that have already been visited.
  4032. if (this.refSet.has(currentNode)) {
  4033. continue;
  4034. }
  4035. try {
  4036. var ref = currentNode;
  4037. this.refSet.put(ref);
  4038. currentNode = this.xref.fetch(currentNode);
  4039. } catch (e) {
  4040. if (!(e instanceof MissingDataException)) {
  4041. throw e;
  4042. }
  4043. nodesToRevisit.push(currentNode);
  4044. pendingRequests.push({ begin: e.begin, end: e.end });
  4045. }
  4046. }
  4047. if (currentNode && currentNode.getBaseStreams) {
  4048. var baseStreams = currentNode.getBaseStreams();
  4049. var foundMissingData = false;
  4050. for (var i = 0; i < baseStreams.length; i++) {
  4051. var stream = baseStreams[i];
  4052. if (stream.getMissingChunks && stream.getMissingChunks().length) {
  4053. foundMissingData = true;
  4054. pendingRequests.push({
  4055. begin: stream.start,
  4056. end: stream.end
  4057. });
  4058. }
  4059. }
  4060. if (foundMissingData) {
  4061. nodesToRevisit.push(currentNode);
  4062. }
  4063. }
  4064. addChildren(currentNode, nodesToVisit);
  4065. }
  4066. if (pendingRequests.length) {
  4067. this.xref.stream.manager.requestRanges(pendingRequests,
  4068. function pendingRequestCallback() {
  4069. nodesToVisit = nodesToRevisit;
  4070. for (var i = 0; i < nodesToRevisit.length; i++) {
  4071. var node = nodesToRevisit[i];
  4072. // Remove any reference nodes from the currrent refset so they
  4073. // aren't skipped when we revist them.
  4074. if (isRef(node)) {
  4075. this.refSet.remove(node);
  4076. }
  4077. }
  4078. this.walk(nodesToVisit);
  4079. }.bind(this));
  4080. return;
  4081. }
  4082. // Everything is loaded.
  4083. this.refSet = null;
  4084. this.capability.resolve();
  4085. }
  4086. };
  4087. return ObjectLoader;
  4088. })();
  4089. var ISOAdobeCharset = [
  4090. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar',
  4091. 'percent', 'ampersand', 'quoteright', 'parenleft', 'parenright',
  4092. 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash', 'zero',
  4093. 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  4094. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question',
  4095. 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
  4096. 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
  4097. 'bracketleft', 'backslash', 'bracketright', 'asciicircum', 'underscore',
  4098. 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
  4099. 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
  4100. 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  4101. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  4102. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  4103. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  4104. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase',
  4105. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  4106. 'perthousand', 'questiondown', 'grave', 'acute', 'circumflex', 'tilde',
  4107. 'macron', 'breve', 'dotaccent', 'dieresis', 'ring', 'cedilla',
  4108. 'hungarumlaut', 'ogonek', 'caron', 'emdash', 'AE', 'ordfeminine',
  4109. 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae', 'dotlessi', 'lslash',
  4110. 'oslash', 'oe', 'germandbls', 'onesuperior', 'logicalnot', 'mu',
  4111. 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn', 'onequarter',
  4112. 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters', 'twosuperior',
  4113. 'registered', 'minus', 'eth', 'multiply', 'threesuperior', 'copyright',
  4114. 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring', 'Atilde',
  4115. 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave', 'Iacute',
  4116. 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute', 'Ocircumflex',
  4117. 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute', 'Ucircumflex',
  4118. 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron', 'aacute',
  4119. 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde', 'ccedilla',
  4120. 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute', 'icircumflex',
  4121. 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex', 'odieresis',
  4122. 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex', 'udieresis',
  4123. 'ugrave', 'yacute', 'ydieresis', 'zcaron'
  4124. ];
  4125. var ExpertCharset = [
  4126. '.notdef', 'space', 'exclamsmall', 'Hungarumlautsmall', 'dollaroldstyle',
  4127. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  4128. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  4129. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  4130. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  4131. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle',
  4132. 'colon', 'semicolon', 'commasuperior', 'threequartersemdash',
  4133. 'periodsuperior', 'questionsmall', 'asuperior', 'bsuperior',
  4134. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  4135. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  4136. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  4137. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  4138. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  4139. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  4140. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  4141. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  4142. 'onefitted', 'rupiah', 'Tildesmall', 'exclamdownsmall', 'centoldstyle',
  4143. 'Lslashsmall', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall',
  4144. 'Brevesmall', 'Caronsmall', 'Dotaccentsmall', 'Macronsmall',
  4145. 'figuredash', 'hypheninferior', 'Ogoneksmall', 'Ringsmall',
  4146. 'Cedillasmall', 'onequarter', 'onehalf', 'threequarters',
  4147. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  4148. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  4149. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  4150. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  4151. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  4152. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  4153. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  4154. 'periodinferior', 'commainferior', 'Agravesmall', 'Aacutesmall',
  4155. 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall', 'Aringsmall',
  4156. 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  4157. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  4158. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  4159. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  4160. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  4161. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  4162. 'Ydieresissmall'
  4163. ];
  4164. var ExpertSubsetCharset = [
  4165. '.notdef', 'space', 'dollaroldstyle', 'dollarsuperior',
  4166. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  4167. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction',
  4168. 'zerooldstyle', 'oneoldstyle', 'twooldstyle', 'threeoldstyle',
  4169. 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle',
  4170. 'eightoldstyle', 'nineoldstyle', 'colon', 'semicolon', 'commasuperior',
  4171. 'threequartersemdash', 'periodsuperior', 'asuperior', 'bsuperior',
  4172. 'centsuperior', 'dsuperior', 'esuperior', 'isuperior', 'lsuperior',
  4173. 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  4174. 'tsuperior', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior',
  4175. 'parenrightinferior', 'hyphensuperior', 'colonmonetary', 'onefitted',
  4176. 'rupiah', 'centoldstyle', 'figuredash', 'hypheninferior', 'onequarter',
  4177. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  4178. 'seveneighths', 'onethird', 'twothirds', 'zerosuperior', 'onesuperior',
  4179. 'twosuperior', 'threesuperior', 'foursuperior', 'fivesuperior',
  4180. 'sixsuperior', 'sevensuperior', 'eightsuperior', 'ninesuperior',
  4181. 'zeroinferior', 'oneinferior', 'twoinferior', 'threeinferior',
  4182. 'fourinferior', 'fiveinferior', 'sixinferior', 'seveninferior',
  4183. 'eightinferior', 'nineinferior', 'centinferior', 'dollarinferior',
  4184. 'periodinferior', 'commainferior'
  4185. ];
  4186. var CIDToUnicodeMaps = {
  4187. 'Adobe-Japan1': [[32, 160], {f: 12, c: 33}, [45, 8209], {f: 46, c: 46}, 165,
  4188. {f: 2, c: 93}, [95, 818], [96, 768], {f: 27, c: 97}, 166, 125, [732, 771],
  4189. [700, 8217], 92, [699, 8216], 124, [126, 8764], {f: 3, c: 161}, 8260, 402,
  4190. 0, 164, 8220, 171, {f: 2, c: 8249}, {f: 2, c: 64257}, [8210, 8211], 0, 0,
  4191. [183, 8729], 0, 8226, 8218, 8222, 8221, 187, 0, 0, 191, {f: 2, c: 769},
  4192. [175, 772], {f: 3, c: 774}, 778, [184, 807], 779, 808, 780, [822, 8212],
  4193. 198, 170, 321, 216, 338, 186, 230, 305, 322, 248, 339, 223, 173, 169, 172,
  4194. 174, 0, 0, {f: 2, c: 178}, 181, 185, {f: 3, c: 188}, {f: 6, c: 192},
  4195. {f: 16, c: 199}, 0, {f: 6, c: 217}, {f: 6, c: 224}, {f: 16, c: 231}, 0,
  4196. {f: 7, c: 249}, 352, 376, 381, [773, 8254], 353, 8482, 382, 0, 8194,
  4197. {f: 59, c: 33}, 165, {f: 31, c: 93}, 65512, {f: 2, c: 125}, 0,
  4198. {f: 63, c: 65377}, {s: 243}, [8195, 12288],
  4199. {f: 2, c: 12289}, 65292, 65294, 12539, {f: 2, c: 65306}, 65311, 65281,
  4200. {f: 2, c: 12443}, 180, 65344, 168, 65342, 65507, 65343, {f: 2, c: 12541},
  4201. {f: 2, c: 12445}, 12291, 20189, {f: 3, c: 12293}, 12540, 8213, 8208, 65295,
  4202. 65340, [12316, 65374], 8214, 65372, 8230, 8229, {s: 4}, {f: 2, c: 65288},
  4203. {f: 2, c: 12308}, 65339, 65341, 65371, 65373, {f: 10, c: 12296}, 65291,
  4204. [8722, 65293], 177, 215, 247, 65309, 8800, 65308, 65310, {f: 2, c: 8806},
  4205. 8734, 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65509, 65284,
  4206. {f: 2, c: 65504}, 65285, 65283, 65286, 65290, 65312, 167, 9734, 9733, 9675,
  4207. 9679, 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8251, 12306,
  4208. 8594, {f: 2, c: 8592}, 8595, 12307, 8712, 8715, {f: 2, c: 8838},
  4209. {f: 2, c: 8834}, 8746, 8745, {f: 2, c: 8743}, 65506, 8658, 8660, 8704,
  4210. 8707, 8736, 8869, 8978, 8706, 8711, 8801, 8786, {f: 2, c: 8810}, 8730,
  4211. 8765, 8733, 8757, {f: 2, c: 8747}, 8491, 8240, 9839, 9837, 9834,
  4212. {f: 2, c: 8224}, 182, 9711, {f: 10, c: 65296}, {f: 26, c: 65313},
  4213. {f: 26, c: 65345}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 17, c: 913},
  4214. {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, {f: 6, c: 1040}, 1025,
  4215. {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 20124, 21782, 23043, 38463,
  4216. 21696, 24859, 25384, 23030, 36898, 33909, 33564, 31312, 24746, 25569,
  4217. 28197, 26093, 33894, 33446, 39925, 26771, 22311, 26017, 25201, 23451,
  4218. 22992, 34427, 39156, 32098, 32190, 39822, 25110, 31903, 34999, 23433,
  4219. 24245, 25353, 26263, 26696, 38343, 38797, 26447, 20197, 20234, 20301,
  4220. 20381, 20553, 22258, 22839, 22996, 23041, 23561, 24799, 24847, 24944,
  4221. 26131, 26885, 28858, 30031, 30064, 31227, 32173, 32239, 32963, 33806,
  4222. [12176, 34915], 35586, 36949, 36986, 21307, 20117, 20133, 22495, 32946,
  4223. 37057, 30959, [12032, 19968], 22769, 28322, 36920, 31282, 33576, 33419,
  4224. 39983, 20801, 21360, 21693, 21729, 22240, 23035, 24341, 39154, 28139,
  4225. 32996, 34093, 38498, 38512, 38560, 38907, 21515, 21491, 23431, 28879,
  4226. [12155, 32701], 36802, [12204, 38632], 21359, 40284, 31418, 19985, 30867,
  4227. [12165, 33276], 28198, 22040, 21764, 27421, 34074, 39995, 23013, 21417,
  4228. 28006, [12128, 29916], 38287, 22082, 20113, 36939, 38642, 33615, 39180,
  4229. 21473, 21942, 23344, 24433, 26144, 26355, 26628, 27704, 27891, 27945,
  4230. 29787, 30408, 31310, 38964, 33521, 34907, 35424, 37613, 28082, 30123,
  4231. 30410, 39365, 24742, 35585, 36234, 38322, 27022, 21421, 20870, 22290,
  4232. 22576, 22852, 23476, 24310, 24616, 25513, 25588, 27839, 28436, 28814,
  4233. 28948, 29017, 29141, 29503, 32257, 33398, 33489, 34199, 36960, 37467,
  4234. 40219, 22633, 26044, 27738, 29989, 20985, 22830, 22885, 24448, 24540,
  4235. 25276, 26106, 27178, 27431, 27572, 29579, 32705, 35158, 40236, 40206,
  4236. [12009, 40644], 23713, 27798, 33659, 20740, 23627, 25014, 33222, 26742,
  4237. 29281, [12036, 20057], 20474, 21368, 24681, 28201, 31311, [12211, 38899],
  4238. 19979, 21270, 20206, 20309, 20285, 20385, 20339, 21152, 21487, 22025,
  4239. 22799, 23233, 23478, 23521, 31185, 26247, 26524, 26550, 27468, 27827,
  4240. [12117, 28779], 29634, 31117, [12146, 31166], 31292, 31623, 33457, 33499,
  4241. 33540, 33655, 33775, 33747, 34662, 35506, 22057, 36008, 36838, 36942,
  4242. 38686, 34442, 20420, 23784, 25105, [12123, 29273], 30011, 33253, 33469,
  4243. 34558, 36032, 38597, 39187, 39381, 20171, 20250, 35299, 22238, 22602,
  4244. 22730, 24315, 24555, 24618, 24724, 24674, 25040, 25106, 25296, 25913,
  4245. 39745, 26214, 26800, 28023, 28784, 30028, 30342, 32117, 33445, 34809,
  4246. 38283, 38542, [12185, 35997], 20977, 21182, 22806, 21683, 23475, 23830,
  4247. 24936, 27010, 28079, 30861, 33995, 34903, 35442, 37799, 39608, 28012,
  4248. 39336, 34521, 22435, 26623, 34510, 37390, 21123, 22151, 21508, 24275,
  4249. 25313, 25785, 26684, 26680, 27579, 29554, 30906, 31339, 35226,
  4250. [12179, 35282], 36203, 36611, 37101, 38307, 38548, [12208, 38761], 23398,
  4251. 23731, 27005, {f: 2, c: 38989}, 25499, 31520, 27179, 27263, 26806, 39949,
  4252. 28511, 21106, 21917, 24688, 25324, 27963, 28167, 28369, 33883, 35088,
  4253. 36676, 19988, 39993, 21494, 26907, 27194, 38788, 26666, 20828, 31427,
  4254. 33970, 37340, 37772, 22107, 40232, 26658, 33541, 33841, 31909, 21000,
  4255. 33477, [12129, 29926], 20094, 20355, 20896, 23506, 21002, 21208, 21223,
  4256. 24059, 21914, 22570, 23014, 23436, 23448, 23515, [12082, 24178], 24185,
  4257. 24739, 24863, 24931, 25022, 25563, 25954, 26577, 26707, 26874, 27454,
  4258. 27475, 27735, 28450, 28567, 28485, 29872, [12130, 29976], 30435, 30475,
  4259. 31487, 31649, 31777, 32233, [12152, 32566], 32752, 32925, 33382, 33694,
  4260. 35251, 35532, 36011, 36996, 37969, 38291, 38289, 38306, 38501, 38867,
  4261. 39208, 33304, 20024, 21547, 23736, 24012, 29609, 30284, 30524, 23721,
  4262. 32747, 36107, 38593, 38929, 38996, 39000, 20225, 20238, 21361, 21916,
  4263. 22120, 22522, 22855, 23305, 23492, 23696, 24076, 24190, 24524, 25582,
  4264. 26426, 26071, 26082, 26399, 26827, 26820, 27231, 24112, 27589, 27671,
  4265. 27773, 30079, 31048, 23395, 31232, 32000, 24509, 35215, 35352, 36020,
  4266. 36215, 36556, 36637, 39138, 39438, [12004, 12225, 39740], [12018, 20096],
  4267. 20605, 20736, 22931, 23452, 25135, 25216, 25836, 27450, 29344, 30097,
  4268. 31047, 32681, 34811, 35516, 35696, 25516, 33738, 38816, 21513, 21507,
  4269. 21931, 26708, 27224, 35440, 30759, 26485, [12233, 40653], 21364, 23458,
  4270. 33050, 34384, 36870, 19992, 20037, 20167, 20241, 21450, 21560, 23470,
  4271. [12088, 24339], 24613, 25937, 26429, 27714, 27762, 27875, 28792, 29699,
  4272. 31350, 31406, 31496, 32026, 31998, 32102, 26087, [12124, 29275], 21435,
  4273. 23621, 24040, 25298, 25312, 25369, 28192, 34394, 35377, 36317, 37624,
  4274. 28417, 31142, [12226, 39770], 20136, {f: 2, c: 20139}, 20379, 20384, 20689,
  4275. 20807, 31478, 20849, 20982, 21332, 21281, 21375, 21483, 21932, 22659,
  4276. 23777, 24375, 24394, 24623, 24656, 24685, 25375, 25945, 27211, 27841,
  4277. 29378, 29421, 30703, 33016, 33029, 33288, 34126, 37111, 37857, 38911,
  4278. 39255, 39514, 20208, 20957, 23597, 26241, 26989, 23616, 26354, 26997,
  4279. [12127, 29577], 26704, 31873, 20677, 21220, 22343, [12081, 24062], 37670,
  4280. [12100, 26020], 27427, 27453, 29748, 31105, 31165, 31563, 32202, 33465,
  4281. 33740, 34943, 35167, 35641, 36817, [12198, 37329], 21535, 37504, 20061,
  4282. 20534, 21477, 21306, 29399, 29590, 30697, 33510, 36527, 39366, 39368,
  4283. 39378, 20855, 24858, 34398, 21936, 31354, 20598, 23507, 36935, 38533,
  4284. 20018, 27355, 37351, 23633, 23624, 25496, 31391, 27795, 38772, 36705,
  4285. 31402, 29066, 38536, 31874, 26647, 32368, 26705, 37740, 21234, 21531,
  4286. 34219, 35347, 32676, 36557, 37089, 21350, 34952, 31041, 20418, 20670,
  4287. 21009, 20804, 21843, 22317, 29674, 22411, 22865, 24418, 24452, 24693,
  4288. 24950, 24935, 25001, 25522, 25658, 25964, 26223, 26690, 28179, 30054,
  4289. 31293, 31995, 32076, 32153, 32331, 32619, 33550, 33610, 34509, 35336,
  4290. 35427, 35686, 36605, 38938, 40335, 33464, 36814, 39912, 21127, 25119,
  4291. 25731, 28608, 38553, 26689, 20625, [12107, 27424], 27770, 28500,
  4292. [12147, 31348], 32080, [12174, 34880], 35363, [12105, 26376], 20214, 20537,
  4293. 20518, 20581, 20860, 21048, 21091, 21927, 22287, 22533, 23244, 24314,
  4294. 25010, 25080, 25331, 25458, 26908, 27177, 29309, [12125, 29356], 29486,
  4295. 30740, 30831, 32121, 30476, 32937, [12178, 35211], 35609, 36066, 36562,
  4296. 36963, 37749, 38522, 38997, 39443, 40568, 20803, 21407, 21427, 24187,
  4297. 24358, 28187, 28304, [12126, 29572], 29694, 32067, 33335, [12180, 35328],
  4298. 35578, 38480, 20046, 20491, 21476, 21628, 22266, 22993, 23396,
  4299. [12080, 24049], 24235, 24359, [12094, 25144], 25925, 26543, 28246, 29392,
  4300. 31946, 34996, 32929, 32993, 33776, [11969, 34382], 35463, 36328, 37431,
  4301. 38599, 39015, [12238, 40723], 20116, 20114, 20237, 21320, 21577, 21566,
  4302. 23087, 24460, 24481, 24735, 26791, 27278, 29786, 30849, 35486, 35492,
  4303. 35703, 37264, 20062, 39881, 20132, 20348, 20399, 20505, 20502, 20809,
  4304. 20844, 21151, 21177, 21246, 21402, [12061, 21475], 21521, 21518, 21897,
  4305. 22353, 22434, 22909, 23380, 23389, 23439, [12079, 24037], 24039, 24055,
  4306. 24184, 24195, 24218, 24247, 24344, 24658, 24908, 25239, 25304, 25511,
  4307. 25915, 26114, 26179, 26356, 26477, 26657, 26775, 27083, 27743, 27946,
  4308. 28009, 28207, 28317, 30002, 30343, 30828, 31295, 31968, 32005, 32024,
  4309. 32094, 32177, 32789, 32771, 32943, 32945, 33108, 33167, 33322, 33618,
  4310. [12175, 34892], 34913, 35611, 36002, 36092, 37066, 37237, 37489, 30783,
  4311. 37628, 38308, 38477, 38917, [12217, 39321], [12220, 39640], 40251, 21083,
  4312. 21163, 21495, 21512, 22741, 25335, 28640, 35946, 36703, 40633, 20811,
  4313. 21051, 21578, 22269, 31296, 37239, 40288, [12234, 40658], 29508, 28425,
  4314. 33136, 29969, 24573, 24794, [12219, 39592], 29403, 36796, 27492, 38915,
  4315. 20170, 22256, 22372, 22718, 23130, 24680, 25031, 26127, 26118, 26681,
  4316. 26801, 28151, 30165, 32058, [12169, 33390], 39746, 20123, 20304, 21449,
  4317. 21766, 23919, 24038, 24046, 26619, 27801, 29811, 30722, 35408, 37782,
  4318. 35039, 22352, 24231, 25387, 20661, 20652, 20877, 26368, 21705, 22622,
  4319. 22971, 23472, 24425, 25165, 25505, 26685, 27507, 28168, 28797, 37319,
  4320. 29312, 30741, 30758, 31085, 25998, 32048, 33756, 35009, 36617, 38555,
  4321. 21092, 22312, 26448, 32618, 36001, 20916, 22338, 38442, 22586, 27018,
  4322. 32948, 21682, 23822, 22524, 30869, 40442, 20316, 21066, 21643, 25662,
  4323. 26152, 26388, 26613, 31364, 31574, 32034, 37679, 26716, 39853, 31545,
  4324. 21273, 20874, 21047, 23519, 25334, 25774, 25830, 26413, 27578, 34217,
  4325. 38609, 30352, 39894, 25420, 37638, 39851, [12139, 30399], 26194, 19977,
  4326. 20632, 21442, [12077, 23665], 24808, 25746, 25955, 26719, 29158, 29642,
  4327. 29987, 31639, 32386, 34453, 35715, 36059, 37240, 39184, 26028, 26283,
  4328. 27531, 20181, 20180, 20282, 20351, 21050, 21496, 21490, 21987, 22235,
  4329. [12064, 22763], 22987, 22985, 23039, [12070, 23376], 23629, 24066, 24107,
  4330. 24535, 24605, 25351, [12096, 25903], 23388, 26031, 26045, 26088, 26525,
  4331. [12108, 27490], 27515, [12114, 27663], 29509, 31049, 31169, [12151, 31992],
  4332. 32025, 32043, 32930, 33026, [12164, 33267], 35222, 35422, 35433, 35430,
  4333. 35468, 35566, 36039, 36060, 38604, 39164, [12013, 27503], 20107, 20284,
  4334. 20365, 20816, 23383, 23546, 24904, 25345, 26178, 27425, 28363, 27835,
  4335. 29246, 29885, 30164, 30913, [12144, 31034], [12157, 32780], [12159, 32819],
  4336. [12163, 33258], 33940, 36766, 27728, [12229, 40575], 24335, 35672, 40235,
  4337. 31482, 36600, 23437, 38635, 19971, 21489, 22519, 22833, 23241, 23460,
  4338. 24713, 28287, 28422, 30142, 36074, 23455, 34048, 31712, 20594, 26612,
  4339. 33437, 23649, 34122, 32286, 33294, 20889, 23556, 25448, 36198, 26012,
  4340. 29038, 31038, 32023, 32773, 35613, [12190, 36554], 36974, 34503, 37034,
  4341. 20511, 21242, 23610, 26451, 28796, 29237, 37196, 37320, 37675, 33509,
  4342. 23490, 24369, 24825, 20027, 21462, 23432, [12095, 25163], 26417, 27530,
  4343. 29417, 29664, 31278, 33131, 36259, 37202, [12216, 39318], 20754, 21463,
  4344. 21610, 23551, 25480, 27193, 32172, 38656, 22234, 21454, 21608, 23447,
  4345. 23601, 24030, 20462, 24833, 25342, 27954, 31168, 31179, 32066, 32333,
  4346. 32722, 33261, [12168, 33311], 33936, 34886, 35186, 35728, 36468, 36655,
  4347. 36913, 37195, 37228, 38598, 37276, 20160, 20303, 20805, [12055, 21313],
  4348. 24467, 25102, 26580, 27713, 28171, 29539, 32294, 37325, 37507, 21460,
  4349. 22809, 23487, 28113, 31069, 32302, 31899, 22654, 29087, 20986, 34899,
  4350. 36848, 20426, 23803, 26149, 30636, 31459, 33308, 39423, 20934, 24490,
  4351. 26092, 26991, 27529, 28147, 28310, 28516, 30462, 32020, 24033, 36981,
  4352. 37255, 38918, 20966, 21021, 25152, 26257, 26329, 28186, 24246, 32210,
  4353. 32626, 26360, 34223, 34295, 35576, 21161, 21465, [12069, 22899], 24207,
  4354. 24464, 24661, 37604, 38500, 20663, 20767, 21213, 21280, 21319, 21484,
  4355. 21736, 21830, 21809, 22039, 22888, 22974, 23100, 23477, 23558,
  4356. [12073, 23567], 23569, 23578, 24196, 24202, 24288, 24432, 25215, 25220,
  4357. 25307, 25484, 25463, 26119, 26124, 26157, 26230, 26494, 26786, 27167,
  4358. 27189, 27836, 28040, 28169, 28248, 28988, 28966, 29031, 30151, 30465,
  4359. 30813, 30977, 31077, 31216, 31456, 31505, 31911, 32057, 32918, 33750,
  4360. 33931, 34121, 34909, 35059, 35359, 35388, 35412, 35443, 35937, 36062,
  4361. 37284, 37478, 37758, 37912, 38556, 38808, 19978, 19976, 19998, 20055,
  4362. 20887, 21104, 22478, 22580, 22732, 23330, 24120, 24773, 25854, 26465,
  4363. 26454, 27972, 29366, 30067, 31331, 33976, 35698, 37304, 37664, 22065,
  4364. 22516, 39166, 25325, 26893, 27542, 29165, 32340, 32887, [12170, 33394],
  4365. 35302, [12215, 39135], 34645, 36785, 23611, 20280, 20449, 20405, 21767,
  4366. 23072, 23517, 23529, [12092, 24515], 24910, 25391, 26032, 26187, 26862,
  4367. 27035, 28024, 28145, 30003, 30137, 30495, 31070, 31206, 32051,
  4368. [12162, 33251], 33455, 34218, 35242, 35386, [12189, 36523], [12191, 36763],
  4369. 36914, 37341, 38663, [12040, 20154], 20161, 20995, 22645, 22764, 23563,
  4370. 29978, 23613, 33102, 35338, 36805, 38499, 38765, 31525, 35535, 38920,
  4371. 37218, 22259, 21416, 36887, 21561, 22402, 24101, 25512, [12116, 27700],
  4372. 28810, 30561, 31883, 32736, 34928, 36930, 37204, 37648, 37656, 38543,
  4373. 29790, 39620, 23815, 23913, 25968, 26530, 36264, 38619, 25454, 26441,
  4374. 26905, 33733, 38935, 38592, 35070, 28548, 25722, [12072, 23544], 19990,
  4375. 28716, 30045, 26159, 20932, 21046, 21218, 22995, 24449, 24615, 25104,
  4376. 25919, 25972, 26143, 26228, 26866, 26646, 27491, 28165, 29298,
  4377. [12131, 29983], 30427, 31934, 32854, 22768, 35069, [11972, 35199], 35488,
  4378. 35475, 35531, 36893, 37266, [11992, 38738], 38745, [12011, 25993], 31246,
  4379. 33030, 38587, 24109, 24796, 25114, 26021, 26132, 26512, [12143, 30707],
  4380. 31309, 31821, 32318, 33034, 36012, [12186, 36196], 36321, 36447, 30889,
  4381. 20999, 25305, 25509, 25666, 25240, 35373, 31363, 31680, 35500, 38634,
  4382. 32118, [12166, 33292], 34633, 20185, 20808, 21315, 21344, 23459, 23554,
  4383. 23574, 24029, 25126, 25159, 25776, 26643, 26676, 27849, 27973, 27927,
  4384. 26579, 28508, 29006, 29053, 26059, 31359, 31661, 32218, 32330, 32680,
  4385. 33146, [12167, 33307], 33337, 34214, 35438, 36046, 36341, 36984, 36983,
  4386. 37549, 37521, 38275, 39854, 21069, 21892, 28472, 28982, 20840, 31109,
  4387. 32341, 33203, 31950, 22092, 22609, 23720, 25514, 26366, 26365, 26970,
  4388. 29401, 30095, 30094, 30990, 31062, 31199, 31895, 32032, 32068, 34311,
  4389. 35380, 38459, 36961, [12239, 40736], 20711, 21109, 21452, 21474, 20489,
  4390. 21930, 22766, 22863, 29245, 23435, 23652, 21277, 24803, 24819, 25436,
  4391. 25475, 25407, 25531, 25805, 26089, 26361, 24035, 27085, 27133, 28437,
  4392. 29157, 20105, 30185, 30456, 31379, 31967, 32207, 32156, 32865, 33609,
  4393. 33624, 33900, 33980, 34299, 35013, [12187, 36208], 36865, 36973, 37783,
  4394. 38684, 39442, 20687, 22679, 24974, 33235, 34101, 36104, 36896, 20419,
  4395. 20596, 21063, 21363, 24687, 25417, 26463, 28204, [12188, 36275], 36895,
  4396. 20439, 23646, 36042, 26063, 32154, 21330, 34966, 20854, 25539, 23384,
  4397. 23403, 23562, 25613, 26449, 36956, 20182, 22810, 22826, 27760, 35409,
  4398. 21822, 22549, 22949, 24816, 25171, 26561, 33333, 26965, 38464, 39364,
  4399. 39464, 20307, 22534, 23550, 32784, 23729, 24111, 24453, 24608, 24907,
  4400. 25140, 26367, 27888, 28382, 32974, 33151, 33492, 34955, 36024, 36864,
  4401. 36910, 38538, 40667, 39899, 20195, 21488, [12068, 22823], 31532, 37261,
  4402. 38988, 40441, 28381, 28711, 21331, 21828, 23429, 25176, 25246, 25299,
  4403. 27810, 28655, 29730, 35351, 37944, 28609, 35582, 33592, 20967, 34552,
  4404. 21482, 21481, 20294, 36948, [12192, 36784], 22890, 33073, 24061, 31466,
  4405. 36799, 26842, [12181, 35895], 29432, 40008, 27197, 35504, 20025, 21336,
  4406. 22022, 22374, 25285, 25506, 26086, 27470, 28129, 28251, 28845, 30701,
  4407. 31471, 31658, 32187, 32829, 32966, 34507, 35477, 37723, 22243, 22727,
  4408. 24382, 26029, 26262, 27264, 27573, 30007, 35527, 20516, 30693, 22320,
  4409. 24347, 24677, 26234, 27744, 30196, 31258, 32622, 33268, 34584, 36933,
  4410. 39347, 31689, 30044, [12149, 31481], 31569, 33988, 36880, 31209, 31378,
  4411. 33590, 23265, 30528, 20013, 20210, 23449, 24544, 25277, 26172, 26609,
  4412. 27880, [12173, 34411], 34935, 35387, 37198, 37619, 39376, 27159, 28710,
  4413. 29482, 33511, 33879, 36015, 19969, 20806, 20939, 21899, 23541, 24086,
  4414. 24115, 24193, 24340, 24373, 24427, 24500, 25074, 25361, 26274, 26397,
  4415. 28526, 29266, 30010, 30522, 32884, 33081, 33144, 34678, 35519, 35548,
  4416. 36229, 36339, 37530, [11985, 12199, 38263], 38914, [12227, 40165], 21189,
  4417. 25431, 30452, 26389, 27784, 29645, 36035, 37806, 38515, 27941, 22684,
  4418. 26894, 27084, 36861, 37786, 30171, 36890, 22618, 26626, 25524, 27131,
  4419. 20291, 28460, 26584, 36795, 34086, 32180, 37716, 26943, 28528, 22378,
  4420. 22775, 23340, 32044, [12118, 29226], 21514, 37347, 40372, 20141, 20302,
  4421. 20572, 20597, 21059, 35998, 21576, 22564, 23450, 24093, 24213, 24237,
  4422. 24311, 24351, 24716, 25269, 25402, 25552, 26799, 27712, 30855, 31118,
  4423. 31243, 32224, 33351, 35330, 35558, 36420, 36883, 37048, 37165, 37336,
  4424. [12237, 40718], 27877, 25688, 25826, 25973, 28404, 30340, 31515, 36969,
  4425. 37841, 28346, 21746, 24505, 25764, 36685, 36845, 37444, 20856, 22635,
  4426. 22825, 23637, 24215, 28155, 32399, 29980, 36028, 36578, 39003, 28857,
  4427. 20253, 27583, 28593, [12133, 30000], 38651, 20814, 21520, 22581, 22615,
  4428. 22956, 23648, 24466, [12099, 26007], 26460, 28193, 30331, 33759, 36077,
  4429. 36884, 37117, 37709, 30757, 30778, 21162, 24230, [12063, 22303], 22900,
  4430. 24594, 20498, 20826, 20908, 20941, [12049, 20992], 21776, 22612, 22616,
  4431. 22871, 23445, 23798, 23947, 24764, 25237, 25645, 26481, 26691, 26812,
  4432. 26847, 30423, 28120, 28271, 28059, 28783, 29128, 24403, 30168, 31095,
  4433. 31561, 31572, 31570, 31958, 32113, 21040, 33891, 34153, 34276, 35342,
  4434. 35588, [12182, 35910], 36367, 36867, 36879, 37913, 38518, 38957, 39472,
  4435. 38360, 20685, 21205, 21516, 22530, 23566, 24999, 25758, 27934, 30643,
  4436. 31461, 33012, 33796, 36947, 37509, 23776, 40199, 21311, 24471, 24499,
  4437. 28060, 29305, 30563, 31167, 31716, 27602, 29420, 35501, 26627, 27233,
  4438. 20984, 31361, 26932, 23626, 40182, 33515, 23493, [12195, 37193], 28702,
  4439. 22136, 23663, 24775, 25958, 27788, 35930, 36929, 38931, 21585, 26311,
  4440. 37389, 22856, 37027, 20869, 20045, 20970, 34201, 35598, 28760, 25466,
  4441. 37707, 26978, 39348, 32260, 30071, 21335, 26976, 36575, 38627, 27741,
  4442. [12038, 20108], 23612, 24336, 36841, 21250, 36049, [12161, 32905], 34425,
  4443. 24319, [12103, 26085], 20083, [12042, 20837], 22914, 23615, 38894, 20219,
  4444. 22922, 24525, 35469, 28641, 31152, 31074, 23527, 33905, 29483, 29105,
  4445. 24180, 24565, 25467, 25754, 29123, 31896, 20035, 24316, 20043, 22492,
  4446. 22178, 24745, 28611, 32013, 33021, 33075, 33215, 36786, 35223, 34468,
  4447. 24052, 25226, 25773, 35207, 26487, 27874, 27966, 29750, 30772, 23110,
  4448. 32629, 33453, [12218, 39340], 20467, 24259, 25309, 25490, 25943, 26479,
  4449. 30403, 29260, 32972, 32954, 36649, 37197, 20493, 22521, 23186, 26757,
  4450. 26995, 29028, 29437, 36023, 22770, 36064, 38506, 36889, 34687, 31204,
  4451. 30695, 33833, 20271, 21093, 21338, 25293, 26575, 27850, [12137, 30333],
  4452. 31636, 31893, 33334, 34180, 36843, 26333, 28448, 29190, 32283, 33707,
  4453. 39361, [12008, 40614], 20989, 31665, 30834, 31672, 32903, 31560, 27368,
  4454. 24161, 32908, 30033, 30048, [12043, 20843], 37474, 28300, 30330, 37271,
  4455. 39658, 20240, 32624, 25244, 31567, 38309, 40169, 22138, 22617, 34532,
  4456. 38588, 20276, 21028, 21322, 21453, 21467, 24070, 25644, 26001, 26495,
  4457. 27710, 27726, 29256, 29359, 29677, 30036, 32321, 33324, 34281, 36009,
  4458. 31684, [12196, 37318], 29033, 38930, 39151, 25405, 26217, 30058, 30436,
  4459. 30928, 34115, 34542, 21290, 21329, 21542, 22915, 24199, 24444, 24754,
  4460. 25161, 25209, 25259, 26000, [12112, 27604], 27852, 30130, [12138, 30382],
  4461. 30865, 31192, 32203, 32631, 32933, 34987, 35513, 36027, 36991,
  4462. [12206, 38750], [12214, 39131], 27147, 31800, 20633, 23614, 24494, 26503,
  4463. 27608, 29749, 30473, 32654, [12240, 40763], 26570, 31255, 21305,
  4464. [12134, 30091], 39661, 24422, 33181, 33777, 32920, 24380, 24517, 30050,
  4465. 31558, 36924, 26727, 23019, 23195, 32016, 30334, 35628, 20469, 24426,
  4466. 27161, 27703, 28418, 29922, 31080, 34920, 35413, 35961, 24287, 25551,
  4467. 30149, 31186, 33495, 37672, 37618, 33948, 34541, 39981, 21697, 24428,
  4468. 25996, 27996, 28693, 36007, 36051, 38971, 25935, 29942, 19981, 20184,
  4469. 22496, 22827, 23142, 23500, 20904, 24067, 24220, 24598, 25206, 25975,
  4470. 26023, 26222, 28014, [12119, 29238], 31526, 33104, 33178, 33433, 35676,
  4471. 36000, 36070, 36212, [12201, 38428], 38468, 20398, 25771, 27494, 33310,
  4472. 33889, 34154, 37096, 23553, 26963, [12213, 39080], 33914, 34135, 20239,
  4473. 21103, 24489, 24133, 26381, 31119, 33145, 35079, 35206, 28149, 24343,
  4474. 25173, 27832, 20175, 29289, 39826, 20998, 21563, 22132, 22707, 24996,
  4475. 25198, 28954, 22894, 31881, 31966, 32027, 38640, [12098, 25991], 32862,
  4476. 19993, 20341, 20853, 22592, 24163, 24179, 24330, 26564, 20006, 34109,
  4477. 38281, 38491, [12150, 31859], [12212, 38913], 20731, 22721, 30294, 30887,
  4478. 21029, 30629, 34065, 31622, 20559, 22793, [12122, 29255], 31687, 32232,
  4479. 36794, 36820, 36941, 20415, 21193, 23081, 24321, 38829, 20445, 33303,
  4480. 37610, 22275, 25429, 27497, 29995, 35036, 36628, 31298, 21215, 22675,
  4481. 24917, 25098, 26286, [11935, 27597], 31807, 33769, 20515, 20472, 21253,
  4482. 21574, 22577, 22857, 23453, 23792, 23791, 23849, 24214, 25265, 25447,
  4483. 25918, [12101, 26041], 26379, 27861, 27873, 28921, 30770, 32299, 32990,
  4484. 33459, 33804, 34028, 34562, 35090, 35370, 35914, 37030, 37586, 39165,
  4485. 40179, 40300, 20047, 20129, 20621, 21078, 22346, 22952, 24125,
  4486. {f: 2, c: 24536}, 25151, 26292, 26395, 26576, 26834, 20882, 32033, 32938,
  4487. 33192, 35584, 35980, 36031, 37502, 38450, 21536, 38956, 21271, 20693,
  4488. [12056, 21340], 22696, 25778, 26420, 29287, 30566, 31302, 37350, 21187,
  4489. 27809, 27526, 22528, 24140, 22868, 26412, 32763, 20961, 30406, 25705,
  4490. 30952, 39764, [12231, 40635], 22475, 22969, 26151, 26522, 27598, 21737,
  4491. 27097, 24149, 33180, 26517, 39850, 26622, 40018, 26717, 20134, 20451,
  4492. [12060, 21448], 25273, 26411, 27819, 36804, 20397, 32365, 40639, 19975,
  4493. 24930, 28288, 28459, 34067, 21619, 26410, 39749, [11922, 24051], 31637,
  4494. 23724, 23494, 34588, 28234, 34001, 31252, 33032, 22937, 31885,
  4495. [11936, 27665], 30496, 21209, 22818, 28961, 29279, [12141, 30683], 38695,
  4496. 40289, 26891, 23167, 23064, 20901, 21517, 21629, 26126, 30431, 36855,
  4497. 37528, 40180, 23018, 29277, 28357, 20813, 26825, 32191, 32236,
  4498. [12207, 38754], 40634, 25720, 27169, 33538, 22916, 23391, [12113, 27611],
  4499. 29467, 30450, 32178, 32791, 33945, 20786, [12106, 26408], 40665,
  4500. [12140, 30446], 26466, 21247, 39173, 23588, 25147, 31870, 36016, 21839,
  4501. 24758, 32011, [12200, 38272], 21249, 20063, 20918, 22812, 29242, 32822,
  4502. 37326, 24357, [12142, 30690], 21380, 24441, 32004, 34220, 35379, 36493,
  4503. 38742, 26611, 34222, 37971, 24841, 24840, 27833, 30290, 35565, 36664,
  4504. 21807, 20305, 20778, 21191, 21451, 23461, 24189, 24736, 24962, 25558,
  4505. 26377, 26586, 28263, 28044, {f: 2, c: 29494}, 30001, 31056, 35029, 35480,
  4506. 36938, [12194, 37009], 37109, 38596, 34701, [12067, 22805], 20104, 20313,
  4507. 19982, 35465, 36671, 38928, 20653, 24188, 22934, 23481, 24248, 25562,
  4508. 25594, 25793, 26332, 26954, 27096, 27915, 28342, 29076, [12132, 29992],
  4509. 31407, [12154, 32650], 32768, 33865, 33993, 35201, 35617, 36362, 36965,
  4510. 38525, 39178, 24958, 25233, 27442, 27779, 28020, 32716, 32764, 28096,
  4511. 32645, 34746, 35064, 26469, 33713, 38972, 38647, 27931, 32097, 33853,
  4512. 37226, 20081, 21365, 23888, 27396, 28651, 34253, 34349, 35239, 21033,
  4513. 21519, 23653, 26446, 26792, 29702, 29827, 30178, 35023, 35041,
  4514. [12197, 37324], 38626, 38520, 24459, 29575, [12148, 31435], 33870, 25504,
  4515. 30053, 21129, 27969, 28316, 29705, 30041, 30827, 31890, 38534,
  4516. [12015, 31452], [12243, 40845], 20406, 24942, 26053, 34396, 20102, 20142,
  4517. 20698, 20001, 20940, 23534, 26009, 26753, 28092, 29471, 30274, 30637,
  4518. 31260, 31975, 33391, 35538, 36988, 37327, 38517, 38936, [12050, 21147],
  4519. 32209, 20523, 21400, 26519, 28107, 29136, 29747, 33256, 36650, 38563,
  4520. 40023, 40607, 29792, 22593, 28057, 32047, 39006, 20196, 20278, 20363,
  4521. 20919, 21169, 23994, 24604, 29618, 31036, 33491, 37428, 38583, 38646,
  4522. 38666, 40599, 40802, 26278, 27508, 21015, 21155, 28872, 35010, 24265,
  4523. 24651, 24976, 28451, 29001, 31806, 32244, 32879, 34030, 36899, 37676,
  4524. 21570, 39791, 27347, 28809, 36034, 36335, 38706, 21172, 23105, 24266,
  4525. 24324, 26391, 27004, 27028, 28010, 28431, 29282, 29436, 31725,
  4526. [12156, 32769], 32894, 34635, 37070, 20845, 40595, 31108, 32907, 37682,
  4527. 35542, 20525, 21644, 35441, 27498, 36036, 33031, 24785, 26528, 40434,
  4528. 20121, 20120, 39952, 35435, 34241, 34152, 26880, 28286, 30871, 33109,
  4529. 24332, 19984, 19989, 20010, 20017, [12034, 20022], 20028, [12035, 20031],
  4530. 20034, 20054, 20056, 20098, [12037, 20101], 35947, 20106, 33298, 24333,
  4531. 20110, {f: 2, c: 20126}, [12039, 20128], 20130, 20144, 20147, 20150, 20174,
  4532. 20173, 20164, 20166, 20162, 20183, 20190, 20205, 20191, 20215, 20233,
  4533. 20314, 20272, 20315, 20317, 20311, 20295, 20342, 20360, 20367, 20376,
  4534. 20347, 20329, 20336, 20369, 20335, 20358, 20374, 20760, 20436, 20447,
  4535. 20430, 20440, 20443, 20433, 20442, 20432, {f: 2, c: 20452}, 20506, 20520,
  4536. 20500, 20522, 20517, 20485, 20252, 20470, 20513, 20521, 20524, 20478,
  4537. 20463, 20497, 20486, 20547, 20551, 26371, 20565, 20560, 20552, 20570,
  4538. 20566, 20588, 20600, 20608, 20634, 20613, 20660, 20658, {f: 2, c: 20681},
  4539. 20659, 20674, 20694, 20702, 20709, 20717, 20707, 20718, 20729, 20725,
  4540. 20745, {f: 2, c: 20737}, 20758, 20757, 20756, 20762, 20769, 20794, 20791,
  4541. 20796, 20795, [12041, 20799], [11918, 20800], 20818, 20812, 20820, 20834,
  4542. 31480, {f: 2, c: 20841}, 20846, 20864, [12044, 20866], 22232, 20876, 20873,
  4543. 20879, 20881, 20883, 20885, [12045, 20886], 20900, 20902, 20898,
  4544. {f: 2, c: 20905}, [12046, 20907], 20915, {f: 2, c: 20913}, 20912, 20917,
  4545. 20925, 20933, 20937, 20955, [12047, 20960], 34389, 20969, 20973, 20976,
  4546. [12048, 20981], 20990, 20996, 21003, 21012, 21006, 21031, 21034, 21038,
  4547. 21043, 21049, 21071, 21060, {f: 2, c: 21067}, 21086, 21076, 21098, 21108,
  4548. 21097, 21107, 21119, 21117, 21133, 21140, 21138, 21105, 21128, 21137,
  4549. 36776, 36775, {f: 2, c: 21164}, 21180, 21173, 21185, 21197, 21207, 21214,
  4550. 21219, 21222, 39149, 21216, 21235, 21237, 21240, [12051, 21241], 21254,
  4551. 21256, 30008, 21261, 21264, 21263, [12052, 21269], [12053, 21274], 21283,
  4552. 21295, 21297, 21299, [12054, 21304], 21312, 21318, 21317, 19991, 21321,
  4553. 21325, 20950, 21342, [12057, 21353], 21358, 22808, 21371, 21367,
  4554. [12058, 21378], 21398, 21408, 21414, 21413, 21422, 21424, [12059, 21430],
  4555. 21443, 31762, 38617, 21471, 26364, 29166, 21486, 21480, 21485, 21498,
  4556. 21505, 21565, 21568, {f: 2, c: 21548}, 21564, 21550, 21558, 21545, 21533,
  4557. 21582, 21647, 21621, 21646, 21599, 21617, 21623, 21616, 21650, 21627,
  4558. 21632, 21622, 21636, 21648, 21638, 21703, 21666, 21688, 21669, 21676,
  4559. 21700, 21704, 21672, 21675, 21698, 21668, 21694, 21692, 21720,
  4560. {f: 2, c: 21733}, 21775, 21780, 21757, 21742, 21741, 21754, 21730, 21817,
  4561. 21824, 21859, 21836, 21806, 21852, 21829, {f: 2, c: 21846}, 21816, 21811,
  4562. 21853, 21913, 21888, 21679, 21898, 21919, 21883, 21886, 21912, 21918,
  4563. 21934, 21884, 21891, 21929, 21895, 21928, 21978, 21957, 21983, 21956,
  4564. 21980, 21988, 21972, 22036, 22007, 22038, 22014, 22013, 22043, 22009,
  4565. 22094, 22096, 29151, 22068, 22070, 22066, 22072, 22123, 22116, 22063,
  4566. 22124, 22122, 22150, 22144, 22154, 22176, 22164, 22159, 22181, 22190,
  4567. 22198, 22196, 22210, 22204, 22209, 22211, 22208, 22216, 22222, 22225,
  4568. 22227, [12062, 22231], 22254, 22265, 22272, 22271, 22276, 22281, 22280,
  4569. 22283, 22285, 22291, 22296, 22294, 21959, 22300, 22310, {f: 2, c: 22327},
  4570. 22350, 22331, 22336, 22351, 22377, 22464, 22408, 22369, 22399, 22409,
  4571. 22419, 22432, 22451, 22436, 22442, 22448, 22467, 22470, 22484,
  4572. {f: 2, c: 22482}, 22538, 22486, 22499, 22539, 22553, 22557, 22642, 22561,
  4573. 22626, 22603, 22640, 27584, 22610, 22589, 22649, 22661, 22713, 22687,
  4574. 22699, 22714, 22750, 22715, 22712, 22702, 22725, 22739, 22737, 22743,
  4575. 22745, 22744, 22757, 22748, 22756, 22751, 22767, 22778, 22777,
  4576. {f: 3, c: 22779}, [12065, 22786], [12066, 22794], 22800, 22811, 26790,
  4577. 22821, {f: 2, c: 22828}, 22834, 22840, 22846, 31442, 22869, 22864, 22862,
  4578. 22874, 22872, 22882, 22880, 22887, 22892, 22889, 22904, 22913, 22941,
  4579. 20318, 20395, 22947, 22962, 22982, 23016, 23004, 22925, {f: 2, c: 23001},
  4580. 23077, 23071, 23057, 23068, 23049, 23066, 23104, 23148, 23113,
  4581. {f: 2, c: 23093}, 23138, 23146, 23194, 23228, 23230, 23243, 23234, 23229,
  4582. 23267, 23255, 23270, 23273, 23254, {f: 2, c: 23290}, 23308, 23307, 23318,
  4583. 23346, 23248, 23338, 23350, 23358, 23363, 23365, 23360, 23377, 23381,
  4584. {f: 2, c: 23386}, 23397, 23401, 23408, 23411, 23413, 23416, 25992, 23418,
  4585. [12071, 23424], 23427, 23462, 23480, 23491, 23495, 23497, 23508, 23504,
  4586. 23524, 23526, 23522, 23518, 23525, 23531, 23536, 23542, 23539, 23557,
  4587. {f: 2, c: 23559}, 23565, 23571, 23584, [11920, 12074, 23586], 23592,
  4588. [12075, 23608], 23609, 23617, 23622, 23630, 23635, 23632, 23631, 23409,
  4589. 23660, [12076, 23662], 20066, 23670, 23673, 23692, 23697, 23700, 22939,
  4590. 23723, 23739, 23734, 23740, 23735, 23749, 23742, 23751, 23769, 23785,
  4591. 23805, 23802, 23789, 23948, 23786, 23819, 23829, 23831, 23900, 23839,
  4592. 23835, 23825, 23828, 23842, 23834, 23833, 23832, 23884, 23890, 23886,
  4593. 23883, 23916, 23923, 23926, 23943, 23940, 23938, 23970, 23965, 23980,
  4594. 23982, 23997, 23952, 23991, 23996, 24009, 24013, 24019, 24018, 24022,
  4595. [12078, 24027], 24043, 24050, 24053, 24075, 24090, 24089, 24081, 24091,
  4596. {f: 2, c: 24118}, 24132, 24131, 24128, 24142, 24151, 24148, 24159, 24162,
  4597. 24164, 24135, {f: 2, c: 24181}, [11923, 12083, 24186], 40636,
  4598. [12084, 24191], 24224, {f: 2, c: 24257}, 24264, 24272, 24271, 24278, 24291,
  4599. 24285, {f: 2, c: 24282}, 24290, 24289, {f: 2, c: 24296}, 24300, 24305,
  4600. 24307, 24304, [12085, 24308], 24312, [12086, 24318], 24323, 24329, 24413,
  4601. 24412, [12087, 24331], 24337, 24342, 24361, 24365, 24376, 24385, 24392,
  4602. 24396, 24398, 24367, [11924, 24401], {f: 2, c: 24406}, 24409,
  4603. [12090, 24417], 24429, [12091, 24435], 24439, 24451, 24450, 24447, 24458,
  4604. 24456, 24465, 24455, 24478, 24473, 24472, 24480, 24488, 24493, 24508,
  4605. 24534, 24571, 24548, 24568, 24561, 24541, 24755, 24575, 24609, 24672,
  4606. 24601, 24592, 24617, 24590, 24625, 24603, 24597, 24619, 24614, 24591,
  4607. 24634, 24666, 24641, 24682, 24695, 24671, 24650, 24646, 24653, 24675,
  4608. 24643, 24676, 24642, 24684, 24683, 24665, 24705, 24717, 24807, 24707,
  4609. 24730, 24708, 24731, {f: 2, c: 24726}, 24722, 24743, 24715, 24801, 24760,
  4610. 24800, 24787, 24756, 24560, 24765, 24774, 24757, 24792, 24909, 24853,
  4611. 24838, {f: 2, c: 24822}, 24832, 24820, 24826, 24835, 24865, 24827, 24817,
  4612. {f: 2, c: 24845}, 24903, 24894, 24872, 24871, 24906, 24895, 24892, 24876,
  4613. 24884, 24893, 24898, 24900, 24947, 24951, {f: 3, c: 24920}, 24939, 24948,
  4614. 24943, 24933, 24945, 24927, 24925, 24915, 24949, 24985, 24982, 24967,
  4615. 25004, 24980, 24986, 24970, 24977, 25003, 25006, 25036, 25034, 25033,
  4616. 25079, 25032, 25027, 25030, 25018, 25035, 32633, 25037, 25062, 25059,
  4617. 25078, 25082, 25076, 25087, 25085, 25084, 25086, 25088, [12093, 25096],
  4618. 25097, 25101, 25100, 25108, 25115, 25118, 25121, 25130, 25134, 25136,
  4619. {f: 2, c: 25138}, 25153, 25166, 25182, 25187, 25179, 25184, 25192, 25212,
  4620. 25218, 25225, 25214, {f: 2, c: 25234}, 25238, 25300, 25219, 25236, 25303,
  4621. 25297, 25275, 25295, 25343, 25286, 25812, 25288, 25308, 25292, 25290,
  4622. 25282, 25287, 25243, 25289, 25356, 25326, 25329, 25383, 25346, 25352,
  4623. 25327, 25333, 25424, 25406, 25421, 25628, 25423, 25494, 25486, 25472,
  4624. 25515, 25462, 25507, 25487, 25481, 25503, 25525, 25451, 25449, 25534,
  4625. 25577, 25536, 25542, 25571, 25545, 25554, 25590, 25540, 25622, 25652,
  4626. 25606, 25619, 25638, 25654, 25885, 25623, 25640, 25615, 25703, 25711,
  4627. 25718, 25678, 25898, 25749, 25747, 25765, 25769, 25736, 25788, 25818,
  4628. 25810, 25797, 25799, 25787, 25816, 25794, 25841, 25831, 33289,
  4629. {f: 2, c: 25824}, 25260, 25827, 25839, 25900, 25846, 25844, 25842, 25850,
  4630. 25856, 25853, 25880, 25884, 25861, 25892, 25891, 25899, [12097, 25908],
  4631. [11929, 25909], 25911, 25910, 25912, 30027, 25928, 25942, 25941, 25933,
  4632. 25944, 25950, 25949, 25970, 25976, {f: 2, c: 25986}, 35722, 26011, 26015,
  4633. 26027, 26039, 26051, 26054, 26049, 26052, 26060, 26066, 26075, 26073,
  4634. [12102, 26080], [11931, 26081], 26097, 26482, 26122, 26115, 26107, 26483,
  4635. {f: 2, c: 26165}, 26164, 26140, 26191, 26180, 26185, 26177, 26206, 26205,
  4636. 26212, {f: 2, c: 26215}, 26207, 26210, 26224, 26243, 26248, 26254, 26249,
  4637. 26244, 26264, 26269, 26305, 26297, 26313, 26302, 26300, 26308, 26296,
  4638. 26326, 26330, 26336, 26175, 26342, 26345, [12104, 26352], 26357, 26359,
  4639. 26383, 26390, 26398, {f: 2, c: 26406}, 38712, 26414, 26431, 26422, 26433,
  4640. 26424, 26423, 26438, 26462, 26464, 26457, {f: 2, c: 26467}, 26505, 26480,
  4641. 26537, 26492, 26474, 26508, 26507, 26534, 26529, 26501, 26551, 26607,
  4642. 26548, 26604, 26547, 26601, 26552, 26596, 26590, 26589, 26594, 26606,
  4643. 26553, 26574, 26566, 26599, 27292, 26654, 26694, 26665, 26688, 26701,
  4644. 26674, 26702, 26803, 26667, 26713, 26723, 26743, 26751, 26783, 26767,
  4645. 26797, 26772, 26781, 26779, 26755, 27310, 26809, 26740, 26805, 26784,
  4646. 26810, 26895, 26765, 26750, 26881, 26826, 26888, 26840, 26914, 26918,
  4647. 26849, 26892, 26829, 26836, 26855, 26837, 26934, 26898, 26884, 26839,
  4648. 26851, 26917, 26873, 26848, 26863, 26920, 26922, 26906, 26915, 26913,
  4649. 26822, 27001, 26999, 26972, 27000, 26987, 26964, 27006, 26990, 26937,
  4650. 26996, 26941, 26969, 26928, 26977, 26974, 26973, 27009, 26986, 27058,
  4651. 27054, 27088, 27071, 27073, 27091, 27070, 27086, 23528, 27082, 27101,
  4652. 27067, 27075, 27047, 27182, 27025, 27040, 27036, 27029, 27060, 27102,
  4653. 27112, 27138, 27163, 27135, 27402, 27129, 27122, 27111, 27141, 27057,
  4654. 27166, 27117, 27156, 27115, 27146, 27154, 27329, 27171, 27155, 27204,
  4655. 27148, 27250, 27190, 27256, 27207, 27234, 27225, 27238, 27208, 27192,
  4656. 27170, 27280, 27277, 27296, 27268, {f: 2, c: 27298}, 27287, 34327, 27323,
  4657. 27331, 27330, 27320, 27315, 27308, 27358, 27345, 27359, 27306, 27354,
  4658. 27370, 27387, 27397, 34326, 27386, 27410, 27414, 39729, 27423, 27448,
  4659. 27447, 30428, 27449, 39150, 27463, 27459, 27465, 27472, 27481, 27476,
  4660. 27483, 27487, 27489, 27512, [12109, 27513], {f: 2, c: 27519}, 27524, 27523,
  4661. 27533, 27544, 27541, 27550, 27556, {f: 2, c: 27562}, 27567, 27570, 27569,
  4662. [12110, 27571], 27575, 27580, 27590, [12111, 27595], 27603, 27615, 27628,
  4663. 27627, 27635, 27631, 40638, 27656, 27667, [12115, 27668], 27675, 27684,
  4664. 27683, 27742, 27733, 27746, 27754, 27778, 27789, 27802, 27777, 27803,
  4665. 27774, 27752, 27763, 27794, 27792, 27844, 27889, 27859, 27837, 27863,
  4666. 27845, 27869, 27822, 27825, 27838, 27834, 27867, 27887, 27865, 27882,
  4667. 27935, 34893, 27958, 27947, 27965, 27960, 27929, 27957, 27955, 27922,
  4668. 27916, 28003, 28051, 28004, 27994, 28025, 27993, 28046, 28053, 28644,
  4669. 28037, 28153, 28181, 28170, 28085, 28103, 28134, 28088, 28102, 28140,
  4670. 28126, 28108, 28136, 28114, 28101, 28154, 28121, 28132, 28117, 28138,
  4671. 28142, 28205, 28270, 28206, 28185, 28274, 28255, 28222, 28195, 28267,
  4672. 28203, 28278, 28237, 28191, 28227, 28218, 28238, 28196, 28415, 28189,
  4673. 28216, 28290, 28330, 28312, 28361, 28343, 28371, 28349, 28335, 28356,
  4674. 28338, {f: 2, c: 28372}, 28303, 28325, 28354, 28319, 28481, 28433, 28748,
  4675. 28396, 28408, 28414, 28479, 28402, 28465, 28399, 28466, 28364, 28478,
  4676. 28435, 28407, 28550, 28538, 28536, 28545, 28544, 28527, 28507, 28659,
  4677. 28525, 28546, 28540, 28504, 28558, 28561, 28610, 28518, 28595, 28579,
  4678. 28577, 28580, 28601, 28614, 28586, 28639, 28629, 28652, 28628, 28632,
  4679. 28657, 28654, 28635, 28681, 28683, 28666, 28689, 28673, 28687, 28670,
  4680. 28699, 28698, 28532, 28701, 28696, 28703, 28720, 28734, 28722, 28753,
  4681. 28771, 28825, 28818, 28847, 28913, 28844, 28856, 28851, 28846, 28895,
  4682. 28875, 28893, 28889, 28937, 28925, 28956, 28953, 29029, 29013, 29064,
  4683. 29030, 29026, 29004, 29014, 29036, 29071, 29179, 29060, 29077, 29096,
  4684. 29100, 29143, 29113, 29118, 29138, 29129, 29140, 29134, 29152, 29164,
  4685. 29159, 29173, 29180, 29177, 29183, 29197, 29200, 29211, 29224, 29229,
  4686. 29228, 29232, 29234, [12120, 29243], 29244, [12121, 29247], 29248, 29254,
  4687. 29259, 29272, 29300, 29310, 29314, 29313, 29319, 29330, 29334, 29346,
  4688. 29351, 29369, 29362, 29379, 29382, 29380, 29390, 29394, 29410,
  4689. {f: 2, c: 29408}, 29433, 29431, 20495, 29463, 29450, 29468, 29462, 29469,
  4690. 29492, 29487, 29481, 29477, 29502, {f: 2, c: 29518}, 40664, 29527, 29546,
  4691. 29544, 29552, 29560, 29557, 29563, 29562, 29640, 29619, 29646, 29627,
  4692. 29632, 29669, 29678, 29662, 29858, 29701, 29807, 29733, 29688, 29746,
  4693. 29754, 29781, 29759, 29791, 29785, 29761, 29788, 29801, 29808, 29795,
  4694. 29802, 29814, 29822, 29835, 29854, 29863, 29898, 29903, 29908, 29681,
  4695. 29920, 29923, 29927, 29929, 29934, 29938, {f: 2, c: 29936}, 29944, 29943,
  4696. 29956, 29955, 29957, 29964, 29966, 29965, 29973, 29971, 29982, 29990,
  4697. 29996, 30012, 30020, 30029, 30026, 30025, 30043, 30022, 30042, 30057,
  4698. 30052, 30055, 30059, 30061, 30072, 30070, {f: 2, c: 30086}, 30068, 30090,
  4699. 30089, 30082, 30100, 30106, 30109, 30117, 30115, 30146, 30131, 30147,
  4700. 30133, 30141, 30136, 30140, 30129, 30157, 30154, 30162, 30169, 30179,
  4701. 30174, {f: 2, c: 30206}, 30204, 30209, 30192, 30202, {f: 2, c: 30194},
  4702. 30219, 30221, 30217, 30239, 30247, {f: 3, c: 30240}, 30244, 30260, 30256,
  4703. 30267, {f: 2, c: 30279}, 30278, 30300, 30296, {f: 2, c: 30305},
  4704. {f: 3, c: 30312}, 30311, 30316, 30320, 30322, [12136, 30326], 30328, 30332,
  4705. 30336, 30339, 30344, 30347, 30350, 30358, 30355, {f: 2, c: 30361}, 30384,
  4706. 30388, {f: 3, c: 30392}, 30402, 30413, 30422, 30418, 30430, 30433, 30437,
  4707. 30439, 30442, 34351, 30459, 30472, 30471, 30468, 30505, 30500, 30494,
  4708. {f: 2, c: 30501}, 30491, {f: 2, c: 30519}, 30535, 30554, 30568, 30571,
  4709. 30555, 30565, 30591, 30590, 30585, 30606, 30603, 30609, 30624, 30622,
  4710. 30640, 30646, 30649, 30655, {f: 2, c: 30652}, 30651, 30663, 30669, 30679,
  4711. 30682, 30684, 30691, 30702, 30716, 30732, 30738, 31014, 30752, 31018,
  4712. 30789, 30862, 30836, 30854, 30844, 30874, 30860, 30883, 30901, 30890,
  4713. 30895, 30929, 30918, 30923, 30932, 30910, 30908, 30917, 30922, 30956,
  4714. 30951, 30938, 30973, 30964, 30983, 30994, 30993, 31001, 31020, 31019,
  4715. 31040, 31072, 31063, 31071, 31066, 31061, 31059, 31098, 31103, 31114,
  4716. 31133, 31143, 40779, 31146, 31150, 31155, {f: 2, c: 31161}, 31177, 31189,
  4717. 31207, 31212, 31201, 31203, 31240, 31245, {f: 2, c: 31256}, 31264, 31263,
  4718. 31104, 31281, 31291, 31294, 31287, 31299, 31319, 31305, {f: 2, c: 31329},
  4719. 31337, 40861, 31344, 31353, 31357, 31368, 31383, 31381, 31384, 31382,
  4720. 31401, 31432, 31408, 31414, 31429, 31428, 31423, 36995, 31431, 31434,
  4721. 31437, 31439, 31445, 31443, {f: 2, c: 31449}, 31453, {f: 2, c: 31457},
  4722. 31462, 31469, 31472, 31490, 31503, 31498, 31494, 31539, {f: 2, c: 31512},
  4723. 31518, 31541, 31528, 31542, 31568, 31610, 31492, 31565, 31499, 31564,
  4724. 31557, 31605, 31589, 31604, 31591, {f: 2, c: 31600}, 31596, 31598, 31645,
  4725. 31640, 31647, 31629, 31644, 31642, 31627, 31634, 31631, 31581, 31641,
  4726. 31691, 31681, 31692, 31695, 31668, 31686, 31709, 31721, 31761, 31764,
  4727. 31718, 31717, 31840, 31744, 31751, 31763, 31731, 31735, 31767, 31757,
  4728. 31734, 31779, 31783, 31786, 31775, 31799, 31787, 31805, 31820, 31811,
  4729. 31828, 31823, 31808, 31824, 31832, 31839, 31844, 31830, 31845, 31852,
  4730. 31861, 31875, 31888, 31908, 31917, 31906, 31915, 31905, 31912, 31923,
  4731. 31922, 31921, 31918, 31929, 31933, 31936, 31941, 31938, 31960, 31954,
  4732. 31964, 31970, 39739, 31983, 31986, 31988, 31990, 31994, 32006, 32002,
  4733. 32028, 32021, 32010, 32069, 32075, 32046, 32050, 32063, 32053, 32070,
  4734. 32115, 32086, 32078, 32114, 32104, 32110, 32079, 32099, 32147, 32137,
  4735. 32091, 32143, 32125, 32155, 32186, 32174, 32163, 32181, 32199, 32189,
  4736. 32171, 32317, 32162, 32175, 32220, 32184, 32159, 32176, 32216, 32221,
  4737. 32228, 32222, 32251, 32242, 32225, 32261, 32266, 32291, 32289, 32274,
  4738. 32305, 32287, 32265, 32267, 32290, 32326, 32358, 32315, 32309, 32313,
  4739. 32323, 32311, 32306, 32314, 32359, 32349, 32342, 32350, {f: 2, c: 32345},
  4740. 32377, 32362, 32361, 32380, 32379, 32387, 32213, 32381, 36782, 32383,
  4741. {f: 2, c: 32392}, 32396, 32402, 32400, {f: 2, c: 32403}, 32406, 32398,
  4742. {f: 2, c: 32411}, 32568, 32570, 32581, {f: 3, c: 32588}, 32592,
  4743. [12153, 32593], 32597, 32596, 32600, {f: 2, c: 32607}, {f: 2, c: 32616},
  4744. 32615, 32632, 32642, 32646, 32643, 32648, 32647, 32652, 32660, 32670,
  4745. 32669, 32666, 32675, 32687, 32690, 32697, 32686, 32694, 32696, 35697,
  4746. {f: 2, c: 32709}, 32714, 32725, 32724, 32737, 32742, 32745, 32755, 32761,
  4747. 39132, 32774, 32772, 32779, [12158, 32786], {f: 2, c: 32792}, 32796, 32801,
  4748. 32808, 32831, 32827, 32842, 32838, 32850, 32856, 32858, 32863, 32866,
  4749. 32872, 32883, 32882, 32880, 32886, 32889, 32893, [12160, 32895], 32900,
  4750. 32902, 32901, 32923, 32915, 32922, 32941, 20880, 32940, 32987, 32997,
  4751. 32985, 32989, 32964, 32986, 32982, 33033, 33007, 33009, 33051, 33065,
  4752. 33059, 33071, 33099, 38539, 33094, 33086, 33107, 33105, 33020, 33137,
  4753. 33134, {f: 2, c: 33125}, 33140, 33155, 33160, 33162, 33152, 33154, 33184,
  4754. 33173, 33188, 33187, 33119, 33171, 33193, 33200, 33205, 33214, 33208,
  4755. 33213, 33216, 33218, 33210, 33225, 33229, 33233, 33241, 33240, 33224,
  4756. 33242, {f: 2, c: 33247}, 33255, {f: 2, c: 33274}, 33278, {f: 2, c: 33281},
  4757. 33285, 33287, 33290, 33293, 33296, 33302, 33321, 33323, 33336, 33331,
  4758. 33344, 33369, 33368, 33373, 33370, 33375, 33380, 33378, 33384,
  4759. {f: 2, c: 33386}, 33326, 33393, 33399, [12171, 33400], 33406, 33421, 33426,
  4760. 33451, 33439, 33467, 33452, 33505, 33507, 33503, 33490, 33524, 33523,
  4761. 33530, 33683, 33539, 33531, 33529, 33502, 33542, 33500, 33545, 33497,
  4762. 33589, 33588, 33558, 33586, 33585, 33600, 33593, 33616, 33605, 33583,
  4763. 33579, {f: 2, c: 33559}, 33669, 33690, 33706, 33695, 33698, 33686, 33571,
  4764. 33678, 33671, 33674, 33660, 33717, 33651, 33653, 33696, 33673, 33704,
  4765. 33780, 33811, 33771, 33742, 33789, 33795, 33752, 33803, 33729, 33783,
  4766. 33799, 33760, 33778, 33805, 33826, 33824, 33725, 33848, 34054, 33787,
  4767. 33901, 33834, 33852, 34138, 33924, 33911, 33899, 33965, 33902, 33922,
  4768. 33897, 33862, 33836, 33903, 33913, 33845, 33994, 33890, 33977, 33983,
  4769. 33951, 34009, 33997, 33979, 34010, 34000, 33985, 33990, 34006, 33953,
  4770. 34081, 34047, 34036, {f: 2, c: 34071}, 34092, 34079, 34069, 34068, 34044,
  4771. 34112, 34147, 34136, 34120, 34113, 34306, 34123, 34133, 34176, 34212,
  4772. 34184, 34193, 34186, 34216, 34157, 34196, 34203, 34282, 34183, 34204,
  4773. 34167, 34174, 34192, 34249, 34234, 34255, 34233, 34256, 34261, 34269,
  4774. 34277, 34268, 34297, 34314, 34323, 34315, 34302, 34298, 34310, 34338,
  4775. 34330, 34352, 34367, [12172, 34381], 20053, 34388, 34399, 34407, 34417,
  4776. 34451, 34467, {f: 2, c: 34473}, {f: 2, c: 34443}, 34486, 34479, 34500,
  4777. 34502, 34480, 34505, 34851, 34475, 34516, 34526, 34537, 34540, 34527,
  4778. 34523, 34543, 34578, 34566, 34568, 34560, 34563, 34555, 34577, 34569,
  4779. 34573, 34553, 34570, 34612, 34623, 34615, 34619, 34597, 34601, 34586,
  4780. 34656, 34655, 34680, 34636, 34638, 34676, 34647, 34664, 34670, 34649,
  4781. 34643, 34659, 34666, 34821, 34722, 34719, 34690, 34735, 34763, 34749,
  4782. 34752, 34768, 38614, 34731, 34756, 34739, 34759, 34758, 34747, 34799,
  4783. 34802, 34784, 34831, 34829, 34814, {f: 2, c: 34806}, 34830, 34770, 34833,
  4784. 34838, 34837, 34850, 34849, 34865, 34870, 34873, 34855, 34875, 34884,
  4785. 34882, 34898, 34905, 34910, 34914, 34923, 34945, 34942, 34974, 34933,
  4786. 34941, 34997, 34930, 34946, 34967, 34962, 34990, 34969, 34978, 34957,
  4787. 34980, 34992, 35007, 34993, {f: 2, c: 35011}, 35028, {f: 2, c: 35032},
  4788. 35037, 35065, 35074, 35068, 35060, 35048, 35058, 35076, 35084, 35082,
  4789. 35091, 35139, 35102, 35109, {f: 2, c: 35114}, 35137, 35140, 35131, 35126,
  4790. 35128, 35148, 35101, 35168, 35166, 35174, 35172, 35181, 35178, 35183,
  4791. 35188, 35191, [12177, 35198], 35203, 35208, 35210, 35219, 35224, 35233,
  4792. 35241, 35238, 35244, 35247, 35250, 35258, 35261, {f: 2, c: 35263}, 35290,
  4793. {f: 2, c: 35292}, 35303, 35316, 35320, 35331, 35350, 35344, 35340, 35355,
  4794. 35357, 35365, 35382, 35393, 35419, 35410, 35398, 35400, 35452, 35437,
  4795. 35436, 35426, 35461, 35458, 35460, 35496, 35489, 35473, {f: 2, c: 35493},
  4796. 35482, 35491, 35524, 35533, 35522, 35546, 35563, 35571, 35559, 35556,
  4797. 35569, 35604, 35552, 35554, 35575, 35550, 35547, 35596, 35591, 35610,
  4798. 35553, 35606, 35600, 35607, 35616, 35635, 38827, 35622, 35627, 35646,
  4799. 35624, 35649, 35660, 35663, 35662, 35657, 35670, 35675, 35674, 35691,
  4800. 35679, 35692, 35695, 35700, 35709, 35712, 35724, 35726, {f: 2, c: 35730},
  4801. 35734, {f: 2, c: 35737}, 35898, 35905, 35903, 35912, 35916, 35918, 35920,
  4802. [12183, 35925], 35938, 35948, [12184, 35960], 35962, 35970, 35977, 35973,
  4803. 35978, {f: 2, c: 35981}, 35988, 35964, 35992, 25117, 36013, 36010, 36029,
  4804. {f: 2, c: 36018}, 36014, 36022, 36040, 36033, 36068, 36067, 36058, 36093,
  4805. {f: 2, c: 36090}, {f: 2, c: 36100}, 36106, 36103, 36111, 36109, 36112,
  4806. 40782, 36115, 36045, 36116, 36118, 36199, 36205, 36209, 36211, 36225,
  4807. 36249, 36290, 36286, 36282, 36303, 36314, 36310, 36300, 36315, 36299,
  4808. {f: 2, c: 36330}, 36319, 36323, 36348, {f: 2, c: 36360}, 36351,
  4809. {f: 2, c: 36381}, 36368, 36383, 36418, 36405, 36400, 36404, 36426, 36423,
  4810. 36425, 36428, 36432, 36424, 36441, 36452, 36448, 36394, 36451, 36437,
  4811. 36470, 36466, 36476, 36481, 36487, 36485, 36484, 36491, 36490, 36499,
  4812. 36497, 36500, 36505, 36522, 36513, 36524, 36528, 36550, 36529, 36542,
  4813. 36549, 36552, 36555, 36571, 36579, 36604, 36603, 36587, 36606, 36618,
  4814. 36613, 36629, 36626, 36633, 36627, 36636, 36639, 36635, 36620, 36646,
  4815. 36659, 36667, 36665, 36677, 36674, 36670, 36684, 36681, 36678, 36686,
  4816. 36695, 36700, {f: 3, c: 36706}, 36764, 36767, 36771, 36781, 36783, 36791,
  4817. 36826, 36837, 36834, 36842, 36847, 36999, 36852, 36869, {f: 2, c: 36857},
  4818. 36881, 36885, 36897, 36877, 36894, 36886, 36875, 36903, 36918, 36917,
  4819. 36921, 36856, {f: 4, c: 36943}, 36878, 36937, 36926, 36950, 36952, 36958,
  4820. 36968, 36975, 36982, 38568, 36978, 36994, 36989, 36993, 36992, 37002,
  4821. 37001, 37007, 37032, 37039, 37041, 37045, 37090, 37092, 25160, 37083,
  4822. 37122, 37138, 37145, 37170, 37168, 37194, 37206, 37208, 37219, 37221,
  4823. 37225, 37235, 37234, 37259, 37257, 37250, 37282, 37291, 37295, 37290,
  4824. 37301, 37300, 37306, {f: 2, c: 37312}, 37321, 37323, 37328, 37334, 37343,
  4825. 37345, 37339, 37372, {f: 2, c: 37365}, 37406, 37375, 37396, 37420, 37397,
  4826. 37393, 37470, 37463, 37445, 37449, 37476, 37448, 37525, 37439, 37451,
  4827. 37456, 37532, 37526, 37523, 37531, 37466, 37583, 37561, 37559, 37609,
  4828. 37647, 37626, 37700, 37678, 37657, 37666, 37658, 37667, 37690, 37685,
  4829. 37691, 37724, 37728, 37756, 37742, 37718, 37808, {f: 2, c: 37804}, 37780,
  4830. 37817, {f: 2, c: 37846}, 37864, 37861, 37848, 37827, 37853, 37840, 37832,
  4831. 37860, 37914, 37908, 37907, 37891, 37895, 37904, 37942, 37931, 37941,
  4832. 37921, 37946, 37953, 37970, 37956, 37979, 37984, 37986, 37982, 37994,
  4833. 37417, 38000, 38005, 38007, 38013, 37978, 38012, 38014, 38017, 38015,
  4834. 38274, 38279, 38282, 38292, 38294, {f: 2, c: 38296}, 38304, 38312, 38311,
  4835. 38317, 38332, 38331, 38329, 38334, 38346, 28662, 38339, 38349, 38348,
  4836. 38357, 38356, 38358, 38364, 38369, 38373, 38370, 38433, 38440,
  4837. {f: 2, c: 38446}, 38466, 38476, 38479, 38475, 38519, 38492, 38494, 38493,
  4838. 38495, 38502, 38514, 38508, 38541, 38552, 38549, 38551, 38570, 38567,
  4839. {f: 2, c: 38577}, 38576, 38580, [12202, 38582], 38584, [12203, 38585],
  4840. 38606, 38603, 38601, 38605, 35149, 38620, 38669, 38613, 38649, 38660,
  4841. 38662, 38664, 38675, 38670, 38673, 38671, 38678, 38681, 38692, 38698,
  4842. 38704, 38713, {f: 2, c: 38717}, 38724, 38726, 38728, 38722, 38729, 38748,
  4843. 38752, 38756, 38758, 38760, 21202, 38763, 38769, 38777, 38789, 38780,
  4844. 38785, 38778, 38790, 38795, {f: 2, c: 38799}, 38812, 38824, 38822, 38819,
  4845. {f: 2, c: 38835}, 38851, 38854, 38856, [12209, 38859], 38876,
  4846. [12210, 38893], 40783, 38898, 31455, 38902, 38901, 38927, 38924, 38968,
  4847. 38948, 38945, 38967, 38973, 38982, 38991, 38987, 39019, {f: 3, c: 39023},
  4848. 39028, 39027, 39082, 39087, 39089, 39094, 39108, 39107, 39110, 39145,
  4849. 39147, 39171, 39177, 39186, 39188, 39192, 39201, {f: 2, c: 39197}, 39204,
  4850. 39200, 39212, 39214, {f: 2, c: 39229}, 39234, 39241, 39237, 39248, 39243,
  4851. {f: 2, c: 39249}, 39244, 39253, {f: 2, c: 39319}, 39333, {f: 2, c: 39341},
  4852. 39356, 39391, 39387, 39389, 39384, 39377, {f: 2, c: 39405},
  4853. {f: 2, c: 39409}, 39419, 39416, 39425, 39439, 39429, 39394, 39449, 39467,
  4854. 39479, 39493, 39490, 39488, 39491, 39486, 39509, 39501, 39515, 39511,
  4855. 39519, 39522, 39525, 39524, 39529, 39531, 39530, 39597, 39600, 39612,
  4856. 39616, 39631, 39633, {f: 2, c: 39635}, 39646, [12221, 39647],
  4857. {f: 2, c: 39650}, 39654, 39663, 39659, 39662, 39668, 39665, 39671, 39675,
  4858. 39686, 39704, 39706, 39711, {f: 2, c: 39714}, [12222, 39717],
  4859. {f: 4, c: 39719}, 39726, [12223, 39727], [12224, 39730], 39748, 39747,
  4860. 39759, {f: 2, c: 39757}, 39761, 39768, 39796, 39827, 39811, 39825,
  4861. {f: 2, c: 39830}, {f: 2, c: 39839}, 39848, 39860, 39872, 39882, 39865,
  4862. 39878, 39887, {f: 2, c: 39889}, 39907, 39906, 39908, 39892, 39905, 39994,
  4863. 39922, 39921, 39920, 39957, 39956, 39945, 39955, 39948, 39942, 39944,
  4864. 39954, 39946, 39940, 39982, 39963, 39973, 39972, 39969, 39984, 40007,
  4865. 39986, 40006, 39998, 40026, 40032, 40039, 40054, 40056, 40167, 40172,
  4866. 40176, 40201, 40200, 40171, 40195, 40198, 40234, 40230, 40367, 40227,
  4867. 40223, 40260, 40213, 40210, 40257, 40255, 40254, 40262, 40264,
  4868. {f: 2, c: 40285}, 40292, 40273, 40272, 40281, 40306, 40329, 40327, 40363,
  4869. 40303, 40314, 40346, 40356, 40361, 40370, 40388, 40385, 40379, 40376,
  4870. 40378, 40390, 40399, 40386, 40409, 40403, 40440, 40422, 40429, 40431,
  4871. 40445, {f: 2, c: 40474}, 40478, [12228, 40565], 40569, 40573, 40577, 40584,
  4872. {f: 2, c: 40587}, 40594, 40597, 40593, 40605, [12230, 40613], 40617, 40632,
  4873. 40618, 40621, 38753, 40652, {f: 3, c: 40654}, 40660, 40668, 40670, 40669,
  4874. 40672, 40677, 40680, 40687, 40692, {f: 2, c: 40694}, [12235, 40697],
  4875. {f: 2, c: 40699}, [12236, 40701], {f: 2, c: 40711}, 30391, 40725, 40737,
  4876. 40748, 40766, [12241, 40778], [12242, 40786], 40788, 40803,
  4877. {f: 3, c: 40799}, {f: 2, c: 40806}, 40812, 40810, 40823, 40818, 40822,
  4878. 40853, [12244, 40860], [12245, 40864], 22575, 27079, 36953, 29796, 0,
  4879. {f: 76, c: 9472}, {f: 20, c: 9312}, {f: 10, c: 8544}, 13129, 13076, 0,
  4880. 13133, 0, 13095, 0, 13110, 13137, 0, 13069, 13094, 0, 13099, 13130, 0,
  4881. {f: 3, c: 13212}, {f: 2, c: 13198}, 13252, 13217, 12317, 12319, 8470,
  4882. 13261, 0, {f: 5, c: 12964}, {f: 2, c: 12849}, 12857, 13182, 13181, 13180,
  4883. 8750, 8721, {s: 3}, 8735, 8895, 0, 0, 21854, {s: 7}, 167133, 0, 0, 28976,
  4884. 0, 40407, {s: 4}, 64054, 0, 0, 22169, 15694, {s: 4}, 20448, 0, 0, 36544, 0,
  4885. 194797, {s: 4}, 153716, 32363, 33606, 167670, {s: 3}, 40572, 0, 0, 26171,
  4886. 0, 40628, {s: 4}, 26629, {s: 5}, 23650, 0, 194780, 0, 32353, 0, 0, 64070,
  4887. {s: 5}, 34083, 37292, {s: 7}, 34796, {s: 8}, 25620, 0, 0, 39506, {s: 4},
  4888. 64074, 0, 194692, {s: 4}, 31774, {s: 6}, 64016, 25681, 0, 0, 63980, 22625,
  4889. 39002, 0, 194679, {s: 3}, 31153, 0, 28678, {s: 9}, 22218, {s: 3}, 21085, 0,
  4890. 28497, 37297, {s: 10}, 64106, {s: 6}, 38960, 0, 40629, {s: 9}, 33802,
  4891. 63939, {f: 2, c: 63890}, 63897, 0, 34847, 194575, 0, 194771, 194584,
  4892. {s: 7}, 137754, 23643, {s: 4}, 25890, 0, 0, 26618, 0, 26766, 0, 148432,
  4893. 194848, {s: 21}, 34110, {s: 15}, 30562, {s: 12}, 65075, 0,
  4894. {f: 2, c: 65073}, {s: 4}, 65072, {f: 2, c: 65077}, {f: 2, c: 65081}, 0, 0,
  4895. {f: 2, c: 65079}, {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089},
  4896. {f: 2, c: 65083}, {s: 41}, {f: 3, c: 12436}, 0, 0, 22099, {s: 41}, 65508,
  4897. 65287, 65282, 0, 9665, 9655, 8681, 8679, 8678, 8680, 9634, 9831, 9825,
  4898. 9828, 9826, 13216, 13218, {f: 2, c: 13220}, 13207, 8467, 13208, 13235,
  4899. 13234, 13233, 13232, {f: 3, c: 13189}, 13259, 13200, 13268, 13206, 13090,
  4900. 13078, 13080, 13077, 13059, 13091, 13143, 13122, 13113, 13115, 13056,
  4901. 13105, 13127, 13086, 13098, 0, 13183, 8481, 9742, 12342, 12320, {s: 3},
  4902. {f: 9, c: 9352}, {f: 20, c: 9332}, 12881, {f: 10, c: 8560},
  4903. {f: 10, c: 12882}, {f: 26, c: 9372}, 12867, 12861, 12863, 12852, 12856,
  4904. 12851, 12860, 12866, 12862, 12854, 12853, 12859, 12864, 12858, 12976,
  4905. 12973, 12969, 12975, 12948, 12970, 12952, 12971, 12946, 12945, 12947,
  4906. 12972, 12974, 12950, {s: 8}, {f: 3, c: 9131}, 0, {f: 3, c: 9127}, 0, 13260,
  4907. 13061, 0, 0, 13215, 13219, 13222, 0, 0, 12958, {f: 2, c: 13192}, 13256,
  4908. 8749, 0, 12848, {f: 6, c: 12842}, 12855, 12865, 10145, {s: 3}, 9673, 9824,
  4909. 9829, 9827, 9830, {f: 4, c: 9728}, 9758, {f: 2, c: 9756}, 9759, 12953,
  4910. 9450, {f: 2, c: 8554}, {s: 3}, {f: 8, c: 9601}, 9615, 9614, 9613, 9612,
  4911. 9611, 9610, 9609, {f: 2, c: 9620}, {f: 2, c: 9581}, 9584, 9583, 9552, 9566,
  4912. 9578, 9569, {f: 2, c: 9698}, 9701, 9700, 0, 0, {f: 3, c: 9585}, {s: 20},
  4913. 20956, 29081, {f: 9, c: 10102}, {s: 3}, {f: 2, c: 8570}, {s: 3}, 8575,
  4914. 8458, 8457, 0, 0, 12292, 8646, {f: 2, c: 8644}, 0, {f: 4, c: 12535}, 0, 0,
  4915. 12957, {s: 3}, 13179, {s: 3}, 13107, 13134, {s: 30}, 32394, 35100, 37704,
  4916. 37512, 34012, 20425, 28859, 26161, 26824, 37625, 26363, 24389,
  4917. [12033, 20008], 20193, 20220, 20224, 20227, 20281, 20310, 20370, 20362,
  4918. 20378, 20372, 20429, 20544, 20514, 20479, 20510, 20550, 20592, 20546,
  4919. 20628, 20724, 20696, 20810, 20836, 20893, 20926, 20972, 21013, 21148,
  4920. 21158, 21184, 21211, 21248, 0, 21284, 21362, 21395, 21426, 21469, 64014,
  4921. 21660, 21642, 21673, 21759, 21894, 22361, 22373, 22444, 22472, 22471,
  4922. 64015, 0, 22686, 22706, 22795, 22867, 22875, 22877, 22883, 22948, 22970,
  4923. 23382, 23488, 29999, 23512, 0, 23582, 23718, 23738, 23797, 23847, 23891, 0,
  4924. 23874, 23917, {f: 2, c: 23992}, 24016, 24353, 24372, 24423, 24503, 24542,
  4925. 24669, 24709, 24714, 24798, 24789, 24864, 24818, 24849, 24887, 24880,
  4926. 24984, 25107, 25254, 25589, 25696, 25757, 25806, 25934, 26112, 26133,
  4927. 26121, 26158, 0, 26148, 26213, 26199, 26201, 64018, 26227, 26265, 26272,
  4928. 26290, 26303, 26362, 26382, 0, 26470, 26555, 26706, 26560, 0, 26692, 26831,
  4929. 64019, 26984, 64020, 27032, 27106, 27184, 27243, 27206, 27251, 27262,
  4930. 27362, 27364, 27606, 27711, 27740, 27782, 27759, 27866, 27908, 28039,
  4931. 28015, 28054, 28076, 28111, 28152, 28146, 28156, 28217, 28252, 28199,
  4932. 28220, 28351, 28552, 28597, 28661, 28677, 28679, 28712, 28805, 28843,
  4933. 28943, 28932, 29020, {f: 2, c: 28998}, 0, 29121, 29182, 29361, 29374,
  4934. 29476, 64022, 29559, 29629, 29641, 29654, 29667, 29650, 29703, 29685,
  4935. 29734, 29738, 29737, 29742, 0, 29833, 29855, 29953, 30063, 30338, 30364,
  4936. 30366, 30363, 30374, 64023, 30534, 21167, 30753, 30798, 30820, 30842,
  4937. 31024, {f: 3, c: 64024}, 31124, 64027, 31131, 31441, 31463, 64028, 31467,
  4938. 31646, 64029, 32072, 0, 32183, 32160, 32214, 32338, 32583, 32673, 64030,
  4939. 33537, 33634, 33663, 33735, 33782, 33864, 33972, 34131, 34137, 34155,
  4940. 64031, 34224, {f: 2, c: 64032}, 34823, 35061, 35346, 35383, 35449, 35495,
  4941. 35518, 35551, 64034, 35574, 35667, 35711, 36080, 36084, 36114, 36214,
  4942. 64035, 36559, 0, 64037, 36967, 37086, 64038, 37141, 37159, 37338, 37335,
  4943. 37342, {f: 2, c: 37357}, {f: 2, c: 37348}, 37382, 37392, 37386, 37434,
  4944. 37440, 37436, 37454, 37465, 37457, 37433, 37479, 37543, {f: 2, c: 37495},
  4945. 37607, 37591, 37593, 37584, 64039, 37589, 37600, 37587, 37669, 37665,
  4946. 37627, 64040, 37662, 37631, 37661, 37634, 37744, 37719, 37796, 37830,
  4947. 37854, 37880, 37937, 37957, 37960, 38290, 0, 64041, 38557, 38575, 38707,
  4948. 38715, 38723, 38733, 38735, [12205, 38737], 0, 38999, 39013,
  4949. {f: 2, c: 64042}, 39207, 64044, 39326, 39502, 39641, 39644, 39797, 39794,
  4950. 39823, 39857, 39867, 39936, 40304, 40299, 64045, 40473, 40657, 0, 92,
  4951. {s: 634}, 8364, 8486, 0, 0, 64256, {f: 2, c: 64259}, 257, 299, 363, 275,
  4952. 333, 256, 298, 362, 274, 332, {f: 4, c: 8539}, {f: 2, c: 8531}, 8304,
  4953. {f: 6, c: 8308}, {f: 10, c: 8320}, 461, 282, 0, 7868, 463, 0, 296, 465, 0,
  4954. 467, 366, 360, 462, 283, 0, 7869, 464, 0, 297, 466, 0, 468, 367, 361, 593,
  4955. 8049, 8048, 509, 0, 596, 0, 0, 601, 0, 0, 602, 0, 0, 603, 8051, 8050, 0,
  4956. 331, 629, 652, 0, 0, 658, 643, 720, {s: 682}, {f: 10, c: 12832}, {s: 108},
  4957. {f: 4, c: 12892}, {f: 15, c: 12977}, {s: 50}, {f: 26, c: 9424},
  4958. {f: 26, c: 9398}, {s: 48}, {f: 47, c: 13008}, 0, {f: 10, c: 12928}, 12944,
  4959. {f: 6, c: 12938}, 0, 12959, {s: 6}, {f: 2, c: 12960}, 12955, 12954, 12963,
  4960. 12962, 12951, 0, 12956, 12949, {s: 6}, 9676, {s: 11}, 10111,
  4961. {f: 10, c: 9451}, {s: 510}, 8414, {s: 815}, 13274, {s: 3}, 8448, 13250, 0,
  4962. 0, 8453, 0, 13169, 0, 0, 13197, 13211, {s: 3}, {f: 2, c: 13271}, {s: 3},
  4963. {f: 2, c: 13057}, 13060, 13062, 0, 13064, 0, 13063, 13066, 0, 13065, 0,
  4964. 13067, 0, 13068, {f: 6, c: 13070}, 0, 13079, 0, 13081, 0, {f: 4, c: 13082},
  4965. {f: 3, c: 13087}, 13092, 0, 13093, 0, 0, {f: 2, c: 13096}, 0, 13101, 0, 0,
  4966. {f: 3, c: 13102}, 13106, 0, 0, {f: 2, c: 13108}, 13116, {s: 3}, 13111, 0,
  4967. 13112, 13114, 13117, 13121, {f: 3, c: 13118}, {f: 4, c: 13123}, 13128,
  4968. {f: 2, c: 13131}, {f: 2, c: 13135}, 0, 0, 13138, 13140, 0, 0, 13139,
  4969. {f: 2, c: 13141}, {s: 132}, 8501, 976, 8714, 8463, 0, 981, 987, 977, 0,
  4970. {f: 2, c: 9832}, 9836, {s: 5}, 12347, 0, {f: 3, c: 12339}, 8252, 8265,
  4971. {s: 5}, 8723, 0, 8771, {f: 2, c: 8818}, {s: 6}, {f: 2, c: 12312},
  4972. {f: 2, c: 65375}, {s: 10}, 9115, {f: 2, c: 9117}, 9120, {s: 4}, 9121,
  4973. {f: 2, c: 9123}, 9126, {s: 12}, [9116, 9119, 9122, 9125, 9130], {s: 8},
  4974. 9986, 0, 0, 12349, 0, 12447, 0, 0, 8709, 8864, 8854, 8856, 8853, 8855,
  4975. {s: 4}, 9664, 9654, {s: 4}, 8656, 8596, {f: 2, c: 8600}, {f: 2, c: 8598},
  4976. 8652, 8651, {s: 10}, 12336, 8967, {s: 8}, 10048, 10047, {s: 7}, 9643, 0,
  4977. 9642, 0, 10010, {s: 12}, 9702, {s: 4}, 10070, {s: 379}, {f: 2, c: 65093},
  4978. {s: 679}, 64103, 64098, 32227, [12232, 40643], 28331, 64082, 64061, 64069,
  4979. 64062, 27114, 28212, 64096, 64071, 64056, 64066, 64078, 34395, 64105,
  4980. 64052, 64099, 25581, 25802, 30799, 64084, 63856, 64077, 64097, 64072,
  4981. 64076, {f: 2, c: 64091}, 64081, 64067, 64090, 28041, 29376, 0, 194885,
  4982. 64086, 64080, 64049, 64059, 24034, 64063, 64101, 21373, 64055, 64095,
  4983. 24501, 64064, 0, 64083, 0, 64085, 64104, 64068, 64089, 26202, 64053, 64075,
  4984. 64100, 64065, 64048, 0, 64057, 64051, 27493, 64058, 27599, 64050, 25150,
  4985. 64079, 63773, 63964, 63798, 28122, 63952, 26310, 27511, 64087, 37706, 0,
  4986. 37636, {s: 120}, 133390, {s: 120}, 35999, 11991, [11965, 158033], {s: 5},
  4987. 37555, 38321, 0, 0, 194812, {s: 13}, 194965, {s: 8}, 194794, 0, 26478,
  4988. 11974, 0, 194594, {s: 13}, 13314, 0, 0, 26083, {s: 4}, 134071, {s: 10},
  4989. 171339, 0, 194611, 24378, {s: 8}, 11945, 0, 20465, {s: 7}, 63753, {s: 7},
  4990. 11964, 0, 0, 194732, 26435, {s: 3}, 133732, 35329, 25142, 0, 0, 21555,
  4991. 23067, {s: 3}, 25221, 0, 0, 194819, {s: 6}, 21567, {s: 9}, 27506, {s: 4},
  4992. 29986, 19256, 0, 0, 24063, {s: 6}, 194827, 29626, 134047, {s: 3}, 194600,
  4993. 0, 194849, {s: 5}, 194623, {s: 16}, 194675, {f: 2, c: 11916}, 23577,
  4994. {s: 3}, 131083, 23426, 194642, {s: 5}, 11997, [11999, 39136],
  4995. [11998, 169599], 14221, 0, [11927, 14586], 0, 194887, 0, [11909, 20155],
  4996. 131490, {s: 7}, 13599, 0, 194738, 0, 0, [11971, 35200], {s: 4}, 31237,
  4997. {s: 4}, 35498, 0, 32085, 0, 28568, {s: 7}, 25591, 30246, {s: 4},
  4998. [11978, 163767], {s: 5}, 146686, {s: 5}, 13351, 0, 0, 33067, 0, 0, 194842,
  4999. {s: 5}, 11950, {s: 5}, 194714, {s: 3}, 194831, {s: 19}, 22305, 135741,
  5000. 194586, 0, 64003, {s: 7}, 21534, 15240, 20839, {s: 4}, 63839, {s: 9},
  5001. 20023, {s: 13}, [11946, 150804], 24421, 23020, 194658, 0, 24217, {s: 46},
  5002. 13416, {s: 8}, 21200, {s: 9}, 26625, 0, 195024, 195039, {s: 5}, 153215, 0,
  5003. 0, 11959, {s: 4}, 36534, 63775, {s: 3}, 63875, {s: 5}, 31867, 63906, 0,
  5004. 63898, 0, [11961, 32770], 157360, {s: 4}, [11911, 132648], 0, 0, 131210,
  5005. 194604, [11915, 13630], {s: 4}, 21589, 0, 22841, 0, 0, 23414, 194669,
  5006. 23572, 14306, 23782, 0, 20040, 0, 0, 194742, {s: 4}, 158105, 25371, 0, 0,
  5007. 26211, 0, 194779, 0, 0, 27126, 27014, {s: 3}, 27596, 0, 28183, 0, 0, 27818,
  5008. {s: 3}, [11942, 20012], 0, 0, 29935, 30069, 30188, 30286, 16305, 30570,
  5009. 30633, {s: 6}, 31571, 0, 0, 16996, {s: 3}, 194924, 0, 0, 32328, {s: 5},
  5010. 11955, {s: 4}, 33089, 17491, 0, [11966, 33401], [11967, 64094],
  5011. [11968, 64093], 0, 20857, 33626, {s: 3}, 17701, 0, 34292, 131248, {s: 4},
  5012. 34429, 0, 13358, 35014, {s: 6}, 18406, {s: 8}, 36808, {s: 19}, 166279, 0,
  5013. 0, 167447, 0, 0, 38969, {s: 6}, 39432, {s: 4}, 39903, {s: 10}, 148206,
  5014. {s: 5}, 21385, 0, 64017, 194785, 0, 146622, 132625, 0, {f: 2, c: 19972},
  5015. 19999, 20011, {f: 2, c: 20015}, {f: 2, c: 20032}, 20036, [11907, 20058],
  5016. 20095, 20109, 20118, 20153, 20176, 20192, 20221, 20223, 20235, 20245,
  5017. 20320, 20283, 20297, 20308, 20346, {f: 2, c: 20349}, 20375, 20414, 20431,
  5018. 20477, {f: 2, c: 20480}, 20496, 20507, 20519, 20526, 20567, 20582, 20586,
  5019. 20539, 20623, 20630, 20636, 20684, 20710, 20713, 20719, 20744, 20747,
  5020. 20752, 20763, 20766, 20831, 20897, 20924, 0, 20974, 20980, 20993,
  5021. [11913, 20994], 21011, 21065, 21089, 21094, 21139, 21192, 21232,
  5022. {f: 2, c: 21258}, 21310, 21324, 21323, 21345, 21356, 21419, 21466, 21478,
  5023. 21493, 21543, 21581, 21606, 21611, 21620, 21645, 21654, 21665, 21677,
  5024. 21689, 21695, 21702, 21709, 21774, 21803, 21813, 21834, 21856, 0, 21896,
  5025. 21902, 22024, {f: 2, c: 22030}, 22071, 22079, 22089, 22091, 22095, 22118,
  5026. 22121, 22127, {f: 2, c: 22129}, 22165, 22170, {f: 2, c: 22188}, 22193,
  5027. 22217, 22237, 22244, 22282, 22293, 22307, 22319, {f: 2, c: 22323}, 22348,
  5028. 22384, 22412, 22428, 22456, 22502, 22509, {f: 2, c: 22517}, 22527, 22537,
  5029. 22560, 22578, 22652, 22656, 22697, 22734, 22736, 22740, 22746, 22761,
  5030. 22796, 22820, 22831, 22881, 22893, 22986, 22994, 23005, {f: 2, c: 23011},
  5031. 23044, 23052, 23075, 23111, 23125, 23139, 23149, 23166, 23198, 23207,
  5032. 23212, 23219, 23264, 23296, 23321, 23333, 23341, 23361, 23420,
  5033. {f: 2, c: 23422}, 23434, [11919, 23587], 23595, 23600, 23651, 23657, 23676,
  5034. 23755, 23762, 23796, 23844, 23846, 23875, 23878, 23882, 23954, 23956,
  5035. 23961, 23968, 24024, 24032, 24056, 24064, 24082, {f: 2, c: 24084}, 24088,
  5036. 24110, 24152, {f: 2, c: 24171}, 24232, 24234, {f: 2, c: 24254}, 0, 24274,
  5037. 24327, 24334, {f: 2, c: 24348}, 24354, 24360, 24374, 24379, 24384,
  5038. [12089, 24400], 24408, 24420, 24457, 24476, 24487, 24484, 24495, 24504,
  5039. [11926, 24516], 24521, 24545, 24553, 24557, 24572, 24599, 24602, 24627,
  5040. 24673, 24703, 24734, 24740, 24752, 24779, 24795, 24824, {f: 3, c: 24850},
  5041. 24860, 24956, 24973, 24991, 25000, 25026, 25055, 25109, 25129, 25155,
  5042. 25158, [11928, 25164], 25169, 25174, 25284, 25340, 25354, 25357, 25368,
  5043. 25401, {f: 2, c: 25410}, 25445, 25460, 25469, 25476, 25479, 25488, 25502,
  5044. 25553, 25564, 25609, 25616, 25634, 25684, 25691, 25709, 25723,
  5045. {f: 2, c: 25790}, 25829, 25847, 25851, 25860, 25878, 25881, 25927, 25959,
  5046. 25985, 25989, 26050, 26096, 26098, 26156, 26188, {f: 2, c: 26203}, 26209,
  5047. 26219, 0, 26276, 26312, 26348, 26373, 26387, 26419, 26440, 26444, 26486,
  5048. 26491, 26544, 26546, 26617, 26583, 26585, 26608, 26668, {f: 2, c: 26672},
  5049. 26715, 26738, 26741, 26746, 26756, 26789, 26802, 26832, 26838, 26856,
  5050. 26861, {f: 2, c: 26864}, 26876, 26897, 26899, 26933, 26939, 26967, 26979,
  5051. 26994, {f: 2, c: 27007}, 27046, 27053, 27063, {f: 2, c: 27094}, 27137,
  5052. 27151, 27157, 27176, 27188, 27198, 27205, {f: 2, c: 27216}, 27222, 27227,
  5053. 27267, 27273, 27281, {f: 3, c: 27293}, 27356, 27367, 27372, 27422, 27428,
  5054. 27445, 27462, 27478, 27488, 27522, 27582, 27617, 27633, 27664, 27699,
  5055. [11937, 27701], 11938, 27737, 27766, 27771, 27781, 27797, 27804, 27856,
  5056. 27860, 27862, 27872, {f: 2, c: 27883}, 27886, 27914, 27918, 27921, 27950,
  5057. 27991, 27998, 28005, 28034, 28095, 28100, 28106, 28118, 28137, 28194,
  5058. 28241, 28359, 28362, 28366, 28413, 28442, 28458, 28463, 28467, 28506,
  5059. 28510, 28514, 28541, 28555, 28557, 28562, 28564, 28570, {f: 2, c: 28583},
  5060. 28598, 28634, 28638, 0, 28729, 28732, 0, 28756, {f: 2, c: 28765}, 28772,
  5061. [11939, 28780], 28798, 28801, 28821, 28855, {f: 2, c: 28883}, 28888, 28892,
  5062. 28935, 28960, 28977, 29002, 29010, 29024, 29049, 29074, 0, 29131, 29139,
  5063. 29142, 29184, 29213, 29227, 29240, 29249, 29267, {f: 2, c: 29269}, 29276,
  5064. 29325, [11944, 29357], 29364, 29383, 29435, {f: 2, c: 29444}, 29480, 29489,
  5065. 29507, 29548, 29564, 29571, {f: 2, c: 29573}, 29589, {f: 3, c: 29598},
  5066. 29606, 29611, 29621, 29623, 29628, 29647, 29657, 29673, 29684, 29693,
  5067. 29700, 29706, {f: 2, c: 29722}, 29732, 29736, 29740, {f: 3, c: 29743},
  5068. 29753, 29764, 29767, 29771, 29773, 29777, 29783, 29798, 29803, 29809,
  5069. 29824, {f: 3, c: 29829}, 29840, 29848, 29852, 29856, 29859, 29864, 29867,
  5070. 29877, 29887, 29896, 29914, 29918, 30030, 30073, 30081, 30096,
  5071. [12135, 30098], 30099, 30132, 30180, 30201, 30208, 30218, {f: 2, c: 30229},
  5072. 30233, 30238, 30253, 30261, 30275, 30283, 30309, 30317, 30319, 30321,
  5073. 30324, {f: 2, c: 30372}, 30405, 30412, 30444, 30460, 30516, 30518, 30556,
  5074. {f: 2, c: 30559}, 30578, 30589, 30613, 30634, 30694, 30704, 30708, 30726,
  5075. 30754, {f: 2, c: 30765}, 30768, 30773, 30824, 30878, 30920, 30924, 30926,
  5076. 30948, {f: 2, c: 30944}, 30962, 30967, 30971, 31025, 0, [11949, 31035],
  5077. 31037, 31045, {f: 2, c: 31067}, 31115, 31126, 31128, [12145, 31160], 31163,
  5078. 31178, 31194, 31235, 31241, 31249, 31262, 31277, 31289, 31301, 31308,
  5079. 31325, 0, 31341, 31352, 31392, 31395, 31411, {f: 2, c: 31419}, 31430,
  5080. 31495, 31508, 31527, 31537, 31559, 31566, 31584, 31593, 31597, 31602,
  5081. 31633, 31663, 31703, 31705, 31755, 31759, 31776, 31782, 31793, 31798,
  5082. 31825, 31833, 31847, 31854, 31856, 31932, 31935, {f: 2, c: 31944}, 31959,
  5083. 31961, 31965, 31979, {f: 3, c: 32007}, 32019, 32029, 32035, 32065, 32083,
  5084. 32089, 32093, 32122, 32134, {f: 2, c: 32139}, 32204, 32235, 32241, 32249,
  5085. 32264, 32273, 32277, 32288, 32327, 32354, 32366, 32371, 32397, 32401,
  5086. 32408, 32580, 32591, [11947, 11954, 32594], [11953, 32595], 32609, 32657,
  5087. 32703, 32718, 32735, 32741, 32748, {f: 2, c: 32750}, 32762, 32782, 32785,
  5088. 32788, 32804, 32806, 32826, 32828, 32864, 32881, 32885, 32926, 32934,
  5089. 32939, {f: 2, c: 32983}, 33046, 33048, 33082, 33098, 33100, 33153, 33156,
  5090. 33204, 33231, 33273, 33283, 33313, 33330, 33332, 33350, 33355, 33359,
  5091. 33422, 33454, 33463, 33470, 33478, 33534, 33603, 33617, 33621, 33670,
  5092. 33677, 33682, 33688, 33705, {f: 2, c: 33727}, 33770, 33807, 33809, 33866,
  5093. 33910, 33960, 33967, 33984, 33986, 34032, 34045, 34060, 34100, 34142,
  5094. 34191, 34231, 34254, 34221, 34322, 34345, 34386, 34403, 34412, 34415,
  5095. 34426, 34445, 34449, 34456, {f: 2, c: 34471}, 34554, 34557, 34571, 34579,
  5096. 34585, 34590, 34600, 34622, 34673, 34696, 34713, {f: 2, c: 34732}, 34741,
  5097. 34774, 34795, 34797, 34817, 0, 34822, 34827, 34836, 34844, 34902, 34911,
  5098. [11970, 34916], 34968, 34986, {f: 2, c: 35005}, 35018, 35026, 35035,
  5099. {f: 2, c: 35056}, 35078, {f: 3, c: 35096}, 35111, 35120, 35134, 35195,
  5100. 35284, 35286, 35301, 35313, 35335, 35343, 35349, 35362, 35406, 35455,
  5101. 35572, 35615, 35639, {f: 2, c: 35651}, 35668, 35740, 35742, 35911, 35924,
  5102. 35955, 36004, 36057, 36065, 36088, 36094, 36123, 36201, 36204, 36228,
  5103. 36237, 36245, 36262, 36294, 36302, 36324, 36332, 36384, 36427, 36460,
  5104. 36464, 36474, 36498, 36526, 36531, 36561, 36564, 36601, 36631, 36662,
  5105. 36774, [12193, 36789], [11981, 36790], 0, 36832, 36836, 36854, 36866,
  5106. 36908, 36932, 37000, 37013, 37017, 37019, 37026, 37044, 37079, 37085,
  5107. 37108, 37143, 37148, 37169, 37178, 37181, 37192, 37211, 37217, 37220,
  5108. 37262, 37278, 37288, {f: 2, c: 37293}, 37298, 37308, 37360, 37367, 37371,
  5109. 37383, 37416, 37427, 37432, 37443, 37447, 37455, 37472, 37570,
  5110. {f: 2, c: 37579}, 37599, 37645, 37653, 37663, 37671, 37703, 37714, 0,
  5111. 37738, 37741, 37787, 37818, 37801, 37825, 37834, 37858, 37882, 37885,
  5112. 37903, 37940, 37951, 37973, 37995, 38002, [11986, 38264], 38310, 38313, 0,
  5113. 38324, 38333, 38362, [11983, 11990, 38429], 38465, 38488, 38532, 38564,
  5114. 38569, 38610, 195060, 38622, 38633, 38641, 38658, 38665, 38746, 38755,
  5115. 38766, 38771, 38810, 38818, {f: 2, c: 38837}, 38873, 38878, 38900, 38922,
  5116. 38926, 38942, 38947, 38955, 38974, {f: 2, c: 38994}, 39001, 39020, 39096,
  5117. 39098, 39103, 39112, 39141, {f: 2, c: 39218}, 39232, 39245, 39260, 39263,
  5118. 39345, {f: 2, c: 39353}, 39369, 39426, 39446, 39460, 39463,
  5119. {f: 2, c: 39469}, 39478, 39480, 39498, 39510, {f: 2, c: 39605}, 39673,
  5120. 39683, 39712, {f: 2, c: 39731}, 39795, 39801, 39847, 39873, 39879, 39895,
  5121. 39911, 39915, 39927, 39930, 39933, 39947, 39975, 39978, 39990, 40001,
  5122. 40019, 40035, 40048, 40055, 40194, 40258, 40263, 40291, 40297, 40316,
  5123. 40318, 40333, 40369, 40387, 40391, 40406, 40415, 40427, 40436, 40469,
  5124. 40477, 40612, 40616, 40620, 40679, 40686, 40720, 40722, 40727, 40729,
  5125. 40751, 40759, 40761, 40769, 40773, 40791, 40808, 40817, 40821, 40848,
  5126. 40852, 40866, 0, 13317, 194564, 22048, 24267, 11925, 0, 144954, 0, 28665,
  5127. 28390, 29107, [11940, 64073], {s: 4}, [11980, 64102], 0, 23986, 0, 20435,
  5128. 20697, 20720, 20931, 22134, 27220, 27905, 28112, 28226, 28377, 29668,
  5129. 29729, 30060, 30801, 34805, 144382, 29608, 15091, 13531, 17420, 16010, 0,
  5130. 0, 19432, 0, 16090, 15138, 0, 17786, 16531, 0, 18021, 16643, 17043, 18094,
  5131. 13448, 140809, {f: 3, c: 63584}, 63610, 63615, {s: 23}, {f: 2, c: 8836},
  5132. {f: 2, c: 8842}, 8713, 0, {f: 2, c: 8965}, {s: 9}, {f: 2, c: 8741},
  5133. {s: 14}, 8802, 0, 8773, 8776, {f: 2, c: 8822}, {s: 4}, 8487, {s: 209},
  5134. {f: 2, c: 8922}, 8533, 8984, {f: 2, c: 7742}, {f: 2, c: 504}, 470, 472,
  5135. 474, 476, 260, 728, 317, 346, 350, 356, 377, 379, 261, 731, 318, 347, 711,
  5136. 351, 357, 378, 733, 380, 340, 258, 313, 262, 268, 280, 270, 323, 327, 336,
  5137. 344, 368, 354, 341, 259, 314, 263, 269, 281, 271, 273, 324, 328, 337, 345,
  5138. 369, 355, 729, 264, 284, 292, 308, 348, 364, 265, 285, 293, 309, 349, 365,
  5139. 625, 651, 638, 620, 622, 633, 648, 598, 627, 637, 642, 656, 635, 621, 607,
  5140. 626, 669, 654, 609, 624, 641, 295, 661, 660, 614, 664, 450, 595, 599, 644,
  5141. 608, 403, 616, 649, 600, 604, 606, 592, 623, 650, 612, 594, 653, 613, 674,
  5142. 673, 597, 657, 634, 615, 865, 712, 716, 721, 8255, 783, {f: 5, c: 741}, 0,
  5143. 0, 805, 812, 825, 796, {f: 2, c: 799}, 829, 809, 815, 734, 804, 816, 828,
  5144. 820, {f: 2, c: 797}, {f: 2, c: 792}, 810, {f: 2, c: 826}, 794, {s: 3},
  5145. {f: 2, c: 610}, 618, 628, 630, 632, 640, 655, 665, 668, 671, 688, 690, 695,
  5146. 704, {f: 2, c: 736}, {s: 6}, 8862, {s: 287}, 12348, 12543, 0,
  5147. {f: 2, c: 12310}, 9838, 9835, {f: 2, c: 10548}, 10687, 0, 12448, 0,
  5148. {f: 2, c: 10746}, {s: 13}, 962, {f: 10, c: 9461}, {f: 2, c: 9750}, 9649,
  5149. {f: 10, c: 12784}, 0, {f: 6, c: 12794}, {f: 15, c: 9150}, 0, 0, 10003, 0,
  5150. 9251, 9166, {f: 4, c: 9680}, {f: 2, c: 8263}, 0, 8273, 8258,
  5151. {f: 16, c: 12688}, {s: 13}, {f: 2, c: 9136}, {f: 12, c: 9842},
  5152. {f: 2, c: 12441}, 8413, {s: 450}, 20296, 20319, 20330, 20332, 20494, 20504,
  5153. 20545, 20722, 20688, 20742, 20739, 20789, 20821, 20823, 13493, 20938,
  5154. 20962, 21079, 21196, 21206, 21243, 21276, 21347, 21405, 21522, 21631,
  5155. 21640, 21840, 21889, 21933, 21966, 22075, 22174, 22185, 22195, 22391,
  5156. 22396, 135963, 22479, 22500, 22628, 22665, 136302, 22738, 22752, 34369,
  5157. 22923, 22930, 22979, 23059, 23143, 23159, 23172, 23236, 137405, 23421,
  5158. 23443, 23570, 64060, 136884, 23674, 23695, 23711, 23715, 23722, 23760,
  5159. 138804, 23821, 23879, 23937, 23972, 23975, 24011, 24158, 24313, 24320,
  5160. 24322, 24355, 24381, 24404, 24445, 24589, 24596, 24600, 24629, 24647,
  5161. 24733, 24788, 24797, 24875, 25020, 25017, 25122, 25178, 25199, 25302,
  5162. 25468, 25573, 25721, 25796, 25808, 25897, 26013, 26170, 26146, 26155,
  5163. 26160, 26163, 26184, 143812, {f: 2, c: 26231}, 26253, 26299, 26331, 26344,
  5164. 26439, 26497, 26515, 26520, 26523, 26620, 26653, 26787, 26890, 26953,
  5165. 144836, 26946, 26980, 27045, 27087, 15286, 15299, 27113, 27125, 145215,
  5166. 27195, 145251, 27284, 27301, 15375, 27419, 27436, 27495, 27561, 27565,
  5167. 27607, 27647, 27653, 27764, 27800, 27899, 27846, 27953, 27961, 27967,
  5168. 27992, 28052, 28074, 28123, 28125, 28228, 28254, 28337, 28353, 28432,
  5169. 28505, 28513, 28542, 28556, 28576, 28604, 28615, 28618, 28656, 28750,
  5170. 28789, 28836, 28900, 28971, 28958, 28974, 29009, 29032, 29061, 29063,
  5171. 29114, 29124, 29205, 15935, 29339, 149489, 29479, 29520, 29542, 29602,
  5172. 29739, 29766, 29794, 29805, 29862, 29865, 29897, 29951, 29975, 16242,
  5173. 30158, 30210, 30216, 30308, 30337, 30365, 30378, 30390, 30414, 30420,
  5174. 30438, 30449, 30474, 30489, {f: 2, c: 30541}, 30586, 30592, 30612, 30688,
  5175. 152718, 30787, 30830, 30896, 152846, 30893, 30976, 31004, 31022, 31028,
  5176. 31046, 31097, 31176, 153457, 31188, 31198, 31211, 31213, 31365, 154052,
  5177. 31438, 31485, 31506, 31533, 31547, 31599, 31745, 31795, 155041, 31853,
  5178. 31865, 31887, 31892, 31904, 31957, 32049, 32092, 32131, 32166, 32194,
  5179. 32296, 32663, 32731, 32821, 32823, 32970, 32992, 33011, 33120,
  5180. {f: 2, c: 33127}, 33133, 33211, 33226, 33239, 17499, 33376, 33396, 158463,
  5181. 33441, {f: 2, c: 33443}, 33449, 33471, 33493, 33533, 33536, 33570, 33581,
  5182. 33594, 33607, 33661, 33703, 33743, 33745, 33761, 33793, 33798, 33887,
  5183. 33904, 33907, 33925, 33950, 33978, 159296, 34098, 34078, 34095, 34148,
  5184. 34170, 34188, 34210, 34251, 34285, 34303, {f: 2, c: 34308}, 34320, 159988,
  5185. 34328, 34360, 34391, 34402, 17821, 34421, 34488, 34556, 34695, 17898,
  5186. 34826, 34832, 35022, 161412, 35122, 35129, 35136, 35220, 35318, 35399,
  5187. 35421, 35425, 35445, 35536, 35654, 35673, 35689, 35741, 35913, 35944,
  5188. 36271, 36305, 36311, 36387, 36413, 36475, 164471, 18500, 36602, 36638,
  5189. 36653, 36692, 164813, 36840, 36846, 36872, 36909, 37015, 37043, 37054,
  5190. {f: 2, c: 37060}, 37063, 37103, 37140, 37142, {f: 2, c: 37154}, 37167,
  5191. 37172, 37251, 37361, 37705, {f: 2, c: 37732}, 37795, 37855, 37892, 37939,
  5192. 37962, 37987, 38001, 38286, 38303, 38316, 38326, 38347, 38352, 38355,
  5193. 18864, 38366, 38565, 38639, 38734, 38805, 38830, 38842, 38849, 38857,
  5194. 38875, 38998, 39143, 39256, 39427, 39617, 39619, 39630, 39638, 39682,
  5195. 39688, 19479, 39725, 39774, 39782, 39812, 39818, 39838, 39886, 39909,
  5196. 39928, 39971, {f: 2, c: 40015}, 40037, {f: 2, c: 40221}, 40259, 40274,
  5197. 40330, 40342, 40384, 40364, 40380, 172432, 40423, 40455, 40606, 40623,
  5198. 40855, 131209, 19970, 19983, 19986, 20009, 20014, 20039, 131234, 20049,
  5199. 13318, 131236, 20073, 20125, 13356, 20156, 20163, 20168, 20203, 20186,
  5200. 20209, 20213, 20246, 20324, 20279, 20286, 20312, 131603, {f: 2, c: 20343},
  5201. 20354, 20357, 20454, 20402, 20421, 20427, 20434, 13418, 20466, 20499,
  5202. 20508, 20558, 20563, 20579, 20643, 20616, {f: 2, c: 20626}, 20629, 20650,
  5203. 131883, 20657, {f: 2, c: 20666}, 20676, 20679, 20723, 131969, 20686,
  5204. 131953, 20692, 20705, 13458, 132089, 20759, 132170, 20832, 132361, 20851,
  5205. 20867, 20875, 13500, 20888, 20899, 20909, 13511, 132566, 20979, 21010,
  5206. 21014, 132943, 21077, 21084, 21100, 21111, 21124, 21122, 133127, 21144,
  5207. 133178, 21156, {f: 2, c: 21178}, 21194, 21201, 133305, 21239, 21301, 21314,
  5208. 133500, 133533, 21351, 21370, 21412, 21428, 133843, 21431, 21440, 133917,
  5209. {f: 2, c: 13661}, 21461, 13667, 21492, 21540, 21544, 13678, 21571, 21602,
  5210. 21612, 21653, 21664, 21670, 21678, 21687, 21690, 21699, 134469, 21740,
  5211. 21743, 21745, 21747, {f: 2, c: 21760}, 21769, 21820, 21825, 13734, 21831,
  5212. 13736, 21860, 134625, 21885, 21890, 21905, 13765, 21970, 134805, 134765,
  5213. 21951, 21961, 21964, 21969, 21981, 13786, 21986, 134756, 21993, 22056,
  5214. 135007, 22023, 22032, 22064, 13812, 22077, 22080, 22087, 22110, 22112,
  5215. 22125, 13829, 22152, 22156, 22173, 22184, 22194, 22213, 22221, 22239,
  5216. 22248, {f: 2, c: 22262}, 135681, 135765, 22313, 135803, {f: 2, c: 22341},
  5217. 22349, 135796, 22376, 22383, {f: 3, c: 22387}, 22395, 135908, 135895,
  5218. 22426, {f: 2, c: 22429}, 22440, 22487, 135933, 22476, 135990, 136004,
  5219. 22494, 22512, 13898, 22520, 22523, 22525, 22532, 22558, 22567, 22585,
  5220. 136132, 22601, 22604, 22631, {f: 2, c: 22666}, 22669, {f: 2, c: 22671},
  5221. 22676, 22685, 22698, 22705, 136301, 22723, 22733, 22754, {f: 2, c: 22771},
  5222. {f: 2, c: 22789}, 22797, 22804, 136663, 13969, 22845, 13977, 22854, 13974,
  5223. 158761, 22879, 136775, {f: 2, c: 22901}, 22908, 22943, 22958, 22972, 22984,
  5224. 22989, 23006, 23015, 23022, 136966, 137026, 14031, 23053, 23063, 23079,
  5225. 23085, 23141, 23162, 23179, 23196, {f: 2, c: 23199}, 23202, 23217, 23221,
  5226. 23226, 23231, 23258, 23260, 23269, 23280, 23278, 23285, 23304, 23319,
  5227. 23348, 23372, 23378, 23400, 23407, 23425, 23428, 137667, 23446, 23468,
  5228. {f: 2, c: 14177}, 23502, 23510, 14188, 14187, 23537, 23549, 14197, 23555,
  5229. 23593, 138326, 23647, {f: 2, c: 23655}, 23664, 138541, 138565, 138616,
  5230. 138594, 23688, 23690, 14273, 138657, 138652, 23712, 23714, 23719, 138642,
  5231. 23725, 23733, 138679, 23753, 138720, 138803, 23814, 23824, 23851, 23837,
  5232. 23840, 23857, 23865, 14312, 23905, 23914, 14324, 23920, 139038, 14333,
  5233. 23944, 14336, 23959, 23984, 23988, 139126, 24017, 24023, 139258, 24036,
  5234. 24041, 14383, 14390, 14400, 24095, 24126, 24137, 14428, 24150, 14433,
  5235. {f: 2, c: 24173}, 139643, 24229, 24236, 24249, 24262, 24281, 140062, 24317,
  5236. 24328, 140205, 24350, 24391, 24419, 24434, 24446, 24463, 24482, 24519,
  5237. 24523, {f: 3, c: 24530}, 24546, {f: 2, c: 24558}, 24563, 14615, 24610,
  5238. 24612, 14618, 24652, 24725, 24744, 141043, 24753, 24766, 24776, 24793,
  5239. 24814, 24821, 24848, 24857, 24862, 24890, 14703, 24897, 24902, 24928,
  5240. 141403, {f: 2, c: 24978}, 24983, 24997, 25005, 141483, 25045, 25053, 25077,
  5241. 141711, 25123, 25170, 25185, 25188, 25211, 25197, 25203, 25241, 25301,
  5242. 142008, 25341, 25347, 25360, {f: 2, c: 142159}, 25394, 25397,
  5243. {f: 2, c: 25403}, 25409, 25412, 25422, 142150, 25433, 142365, 142246,
  5244. 25452, 25497, 142372, 25492, 25533, {f: 2, c: 25556}, 25568,
  5245. {f: 2, c: 25579}, 25586, 25630, 25637, 25641, 25647, 25690, 25693, 25715,
  5246. 25725, 25735, 25745, 25759, {f: 2, c: 25803}, 25813, 25815, 142817, 25828,
  5247. 25855, 14958, 25871, 25876, 14963, 25886, 25906, 25924, 25940, 25963,
  5248. 25978, 25988, 25994, 26034, 26037, 26040, 26047, 26057, 26068, 15062,
  5249. 26105, 26108, 26116, 26120, 26145, 26154, 26181, 26193, 26190, 15082,
  5250. 143811, 143861, 143798, 26218, {f: 2, c: 26220}, 26235, 26240, 26256,
  5251. 26258, 15118, 26285, 26289, 26293, 15130, 15132, 15063, 26369, 26386,
  5252. 144242, 26393, 144339, 144338, 26445, 26452, 26461, 144336, 144356, 144341,
  5253. 26484, 144346, 26514, 144351, 33635, 26640, 26563, 26568, 26578, 26587,
  5254. 26615, 144458, 144465, 144459, 26648, 26655, 26669, 144485, 26675, 26683,
  5255. 26686, 26693, 26697, 26700, 26709, 26711, 15223, 26731, 26734, 26748,
  5256. 26754, 26768, 26774, 15213, {f: 3, c: 26776}, 26780, {f: 2, c: 26794},
  5257. 26804, 26811, 26875, 144612, 144730, 26819, 26821, 26828, 26841,
  5258. {f: 2, c: 26852}, 26860, 26871, 26883, 26887, 15239, 144788, 15245, 26950,
  5259. 26985, 26988, 27002, 27026, 15268, 27030, 27056, 27066, 27068, 27072,
  5260. 27089, 144953, 144967, 144952, 27107, {f: 2, c: 27118}, 27123, 15309,
  5261. 27124, 27134, 27153, 27162, 27165, 145180, {f: 2, c: 27186}, 27199, 27209,
  5262. 27258, 27214, 27218, 27236, 145164, 27275, 15344, 27297, 145252, 27307,
  5263. 27325, 27334, 27348, 27344, 27357, 145407, 145383, {f: 3, c: 27377}, 27389,
  5264. 145444, 27403, {f: 3, c: 27407}, 145469, 27415, 15398, 27439, 27466, 27480,
  5265. 27500, 27509, [11934, 27514], 27521, 27547, 27566, 146072, 27581,
  5266. {f: 3, c: 27591}, 27610, {f: 2, c: 27622}, 27630, 27650, 27658, 27662,
  5267. 27702, 146559, 27725, 27739, 27757, 27780, 27785, 15555, 27796, 27799,
  5268. 27821, 27842, 15570, 27868, 27881, 27885, 146688, 27904, 27940,
  5269. {f: 2, c: 27942}, 27751, 27951, 27964, 27995, 28000, 28016,
  5270. {f: 2, c: 28032}, 28042, 28045, 28049, 28056, 146752, 146938, 146937,
  5271. 146899, 28075, 28078, 28084, 28098, 27956, 28104, 28110, 28127, 28150,
  5272. 28214, 28190, 15633, 28210, {f: 2, c: 28232}, {f: 2, c: 28235}, 28239,
  5273. {f: 2, c: 28243}, 28247, 28259, 15646, 28307, 28327, 28340, 28355, 28469,
  5274. 28395, 28409, 28411, 28426, 28428, 28440, 28453, 28470, 28476, 147326,
  5275. 28498, 28503, 28512, 28520, 28560, 28566, 28606, 28575, 28581, 28591,
  5276. 15716, {f: 2, c: 28616}, 28649, 147606, 28668, 28672, 28682, 28707, 147715,
  5277. 28730, 28739, 28743, 28747, 15770, 28773, 28777, 28782, 28790, 28806,
  5278. 28823, 147910, 28831, 28849, 147966, 28908, 28874, 28881, 28931, 28934,
  5279. 28936, 28940, 15808, 28975, 29008, 29011, 29022, 15828, 29078, 29056,
  5280. 29083, 29088, 29090, {f: 2, c: 29102}, 148412, 29145, 29148, 29191, 15877,
  5281. 29236, 29241, 29250, 29271, 29283, 149033, {f: 2, c: 29294}, 29304, 29311,
  5282. 29326, 149157, 29358, 29360, 29377, 15968, 29388, 15974, 15976, 29427,
  5283. 29434, 29447, 29458, {f: 2, c: 29464}, 16003, 29497, 29484, 29491, 29501,
  5284. 29522, 16020, 29547, 149654, {f: 2, c: 29550}, 29553, 29569, 29578, 29588,
  5285. 29592, 29596, 29605, 29625, 29631, 29637, 29643, 29665, 29671, 29689,
  5286. 29715, 29690, 29697, 29779, 29760, 29763, 29778, 29789, 29825, 29832,
  5287. 150093, 29842, 29847, 29849, 29857, 29861, 29866, 29881, 29883, 29882,
  5288. 29910, 29912, 29931, 150358, 29946, 150383, 29984, 29988, 29994, 16215,
  5289. 150550, {f: 2, c: 30013}, 30016, 30024, 30032, 30034, 30066, 30065, 30074,
  5290. {f: 2, c: 30077}, 30092, 16245, 30114, 16247, 30128, 30135,
  5291. {f: 2, c: 30143}, 30150, 30159, 30163, 30173, {f: 2, c: 30175}, 30183,
  5292. 30190, 30193, 30211, 30232, 30215, 30223, 16302, 151054, 30227,
  5293. {f: 2, c: 30235}, 151095, 30245, 30248, 30268, 30259, 151146, 16329, 30273,
  5294. 151179, 30281, 30293, 16343, 30318, 30357, 30369, 30368, {f: 2, c: 30375},
  5295. 30383, 151626, 30409, 151637, 30440, 151842, 30487, 30490, 30509, 30517,
  5296. 151977, 16441, 152037, 152013, 30552, 152094, 30588, 152140, 16472, 30618,
  5297. 30623, 30626, 30628, {f: 2, c: 30686}, 30692, 30698, 30700, 30715, 152622,
  5298. 30725, 30729, 30733, 30745, 30764, 30791, 30826, 152793, 30858, 30868,
  5299. 30884, 30877, 30879, 30907, 30933, 30950, {f: 2, c: 30969}, 30974, 152999,
  5300. 30992, 31003, 31013, 31050, 31064, 16645, 31079, 31090, 31125, 31137,
  5301. 31145, 31156, 31170, 31175, {f: 2, c: 31180}, 31190, 16712, 153513, 153524,
  5302. 16719, 31242, 31253, 31259, 16739, 31288, 31303, 31318, 31321, 31324,
  5303. 31327, 31335, 31338, 31349, 31362, 31370, 31376, 31404, 154068, 16820,
  5304. 31417, 31422, 16831, 31436, 31464, 31476, 154340, 154339, 154353, 31549,
  5305. 31530, {f: 2, c: 31534}, 16870, 16883, 31615, 31553, 16878, 31573, 31609,
  5306. 31588, 31590, 31603, 154546, 16903, 31632, 31643, 16910, 31669, 31676,
  5307. 31685, 31690, 154699, 154724, 31700, 31702, 31706, 31722, 31728, 31747,
  5308. 31758, 31813, 31818, 31831, 31838, 31841, 31849, 31855, 155182, 155222,
  5309. 155237, 31910, 155234, {f: 2, c: 31926}, 155352, 31940, 155330, 31949,
  5310. 155368, 155427, 31974, 155484, 31989, 32003, 17094, 32018, 32030, 155616,
  5311. 155604, {f: 2, c: 32061}, 32064, 32071, 155660, 155643, 17110, 32090,
  5312. 32106, 32112, 17117, 32127, 155671, 32136, 32151, 155744, 32157, 32167,
  5313. 32170, 32182, 32192, 32215, 32217, 32230, 17154, 155885, 64088, 32272,
  5314. 32279, 32285, 32295, 32300, 32325, 32373, 32382, {f: 2, c: 32390}, 17195,
  5315. 32410, 17219, 32572, 32571, 32574, 32579, 13505, 156272, 156294,
  5316. {f: 2, c: 32611}, 32621, {f: 2, c: 32637}, 32656, 20859, 146702, 32662,
  5317. 32668, 32685, 156674, 32707, 32719, 32739, 32754, 32778, 32776, 32790,
  5318. 32812, 32816, 32835, 32870, 32891, 32921, 32924, 32932, 32935, 32952,
  5319. 157310, 32965, 32981, 32998, 33037, 33013, 33019, 17390, 33077, 33054,
  5320. 17392, 33060, 33063, 33068, 157469, 33085, 17416, 33129, 17431, 17436,
  5321. 33157, 17442, 33176, 33202, 33217, 33219, 33238, 33243, 157917, 33252,
  5322. 157930, 33260, 33277, 33279, 158063, 33284, 158173, 33305, 33314, 158238,
  5323. 33340, 33353, 33349, 158296, 17526, 17530, 33367, 158348, 33372, 33379,
  5324. 158391, 17553, 33405, 33407, 33411, 33418, 33427, {f: 2, c: 33447}, 33458,
  5325. 33460, 33466, 33468, 33506, 33512, 33527, {f: 2, c: 33543}, 33548, 33620,
  5326. 33563, 33565, 33584, 33596, 33604, 33623, 17598, 17620, 17587,
  5327. {f: 2, c: 33684}, 33691, 33693, 33737, 33744, 33748, 33757, 33765, 33785,
  5328. 33813, 158835, 33815, 33849, 33871, {f: 2, c: 33873}, {f: 2, c: 33881},
  5329. 33884, 158941, 33893, 33912, 33916, 33921, 17677, 33943, 33958, 33982,
  5330. 17672, {f: 2, c: 33998}, 34003, 159333, 34023, 34026, 34031, 34033, 34042,
  5331. 34075, {f: 2, c: 34084}, 34091, 34127, 34159, 17731, 34129,
  5332. {f: 2, c: 34145}, 159636, 34171, 34173, 34175, 34177, 34182, 34195, 34205,
  5333. 34207, 159736, {f: 2, c: 159734}, 34236, 34247, 34250, {f: 2, c: 34264},
  5334. 34271, 34273, 34278, 34294, 34304, 34321, 34334, 34337, 34340, 34343,
  5335. 160013, 34361, 34364, 160057, 34368, 34387, 34390, 34423, 34439, 34441,
  5336. {f: 2, c: 34460}, 34481, 34483, 34497, 34499, 34513, 34517, 34519, 34531,
  5337. 34534, 17848, 34565, 34567, 34574, 34576, 34591, 34593, 34595, 34609,
  5338. 34618, 34624, 34627, 34641, 34648, {f: 2, c: 34660}, 34674, 34684, 160731,
  5339. 160730, 34727, 34697, 34699, 34707, 34720, 160766, 17893, 34750, 160784,
  5340. 34753, 34766, 34783, 160841, 34787, {f: 2, c: 34789}, 34794, 34835, 34856,
  5341. 34862, 34866, 34876, 17935, 34890, 34904, 161301, 161300, 34921, 161329,
  5342. 34927, 34976, 35004, 35008, 161427, 35025, 35027, 17985, 35073, 161550,
  5343. 35127, 161571, 35138, 35141, 35145, 161618, 35170, 35209, 35216, 35231,
  5344. 35248, 35255, 35288, 35307, 18081, 35315, 35325, 35327, 18095, 35345,
  5345. 35348, 162181, 35361, 35381, 35390, 35397, 35405, 35416, 35502, 35472,
  5346. 35511, 35543, 35580, 162436, 35594, 35589, 35597, 35612, 35629, 18188,
  5347. 35665, 35678, 35702, 35713, 35723, {f: 2, c: 35732}, 35897, 162739, 35901,
  5348. 162750, 162759, 35909, 35919, 35927, 35945, 35949, 163000, 35987, 35986,
  5349. 35993, 18276, 35995, 36054, 36053, 163232, 36081, 163344, 36105, 36110,
  5350. 36296, 36313, 36364, 18429, 36349, 36358, 163978, 36372, 36374,
  5351. {f: 2, c: 36385}, 36391, 164027, 18454, 36406, 36409, 36436, 36450, 36461,
  5352. 36463, 36504, 36510, 36533, 36539, 164482, 18510, 164595, 36608, 36616,
  5353. 36651, 36672, 36682, 36696, 164876, 36772, 36788, 164949, 36801, 36806,
  5354. 64036, 36810, 36813, 36819, 36821, 36849, 36853, 36859, 36876, 36919,
  5355. 165227, 36931, 36957, {f: 2, c: 165320}, 36997, 37004, 37008, 37025, 18613,
  5356. 37040, 37046, 37059, 37064, 165591, 37084, 37087, 165626, 37110, 37106,
  5357. 37120, 37099, {f: 2, c: 37118}, 37124, 37126, 37144, 37150, 37175, 37177,
  5358. {f: 2, c: 37190}, 37207, 37209, 37236, 37241, 37253, 37299, 37302,
  5359. {f: 2, c: 37315}, 166217, 166214, 37356, 37377, {f: 2, c: 37398}, 166251,
  5360. 37442, 37450, 37462, 37473, 37477, 37480, 166280, {f: 2, c: 37500}, 37503,
  5361. 37513, 37517, 37527, 37529, 37535, 37547, {f: 2, c: 166330}, 37554,
  5362. {f: 2, c: 37567}, 37574, 37582, 37605, 37649, 166430, 166441, 37623, 37673,
  5363. 166513, 166467, 37713, 37722, 37739, 37745, 37747, 37793, 166553, 166605,
  5364. 37768, 37771, 37775, 37790, 37877, 166628, 166621, 37873, 37831, 37852,
  5365. 37863, 37897, {f: 2, c: 37910}, 37883, 37938, 37947, 166849, 166895, 37997,
  5366. 37999, 38265, 38278, {f: 2, c: 38284}, 167184, 167281, 38344, 167419,
  5367. 167455, 38444, {f: 2, c: 38451}, 167478, 38460, 38497, 167561, 38530,
  5368. 167659, 38554, 167730, 18919, 38579, 38586, 38589, 18938, 167928, 38616,
  5369. 38618, 38621, 18948, 38676, 38691, 18985, 38710, 38721, 38727, 38743,
  5370. 38747, 38762, 168608, 168625, 38806, 38814, {f: 2, c: 38833}, 38846, 38860,
  5371. 38865, 38868, 38872, 38881, 38897, 38916, 38925, 38932, 38934, 19132,
  5372. 169104, {f: 2, c: 38962}, 38949, 38983, 39014, 39083, 39085, 39088, 169423,
  5373. 39095, {f: 2, c: 39099}, 39106, 39111, 39115, 39137, 39139, 39146,
  5374. {f: 2, c: 39152}, 39155, 39176, 19259, 169712, {f: 2, c: 39190}, 169753,
  5375. {f: 3, c: 39194}, 169808, 39217, {f: 3, c: 39226}, 39233, 39238, 39246,
  5376. 39264, 39331, 39334, 39357, 39359, 39363, 39380, 39385, 39390, 170182,
  5377. 39408, 39417, 39420, 39434, 39441, 39450, 39456, 39473, 39492, 39500,
  5378. 39512, 19394, 39599, 19402, 39607, 19410, 39609, 170610, 39622, 39632,
  5379. 39634, 39637, 39648, 39653, 39657, 39692, 39696, 39698, 39702, 39708,
  5380. 39723, 39741, 19488, 39755, 39779, 39781, {f: 2, c: 39787},
  5381. {f: 2, c: 39798}, 39846, 39852, 171483, 39858, 39864, 39870, 39923, 39896,
  5382. 39901, 39914, 39919, 39918, 171541, 171658, 171593, 39958,
  5383. {f: 3, c: 39960}, 39965, 39970, 39977, 171716, 39985, 39991, 40005, 40028,
  5384. 171753, {f: 2, c: 40009}, 171739, 40020, 40024, 40027, 40029, 40031,
  5385. {f: 3, c: 40041}, {f: 2, c: 40045}, 40050, 40053, 40058, 40166, 40178,
  5386. 40203, [171982, 171991], 40209, {f: 2, c: 40215}, 172079, 19652, 172058,
  5387. 40242, 19665, 40266, 40287, 40290, 172281, 172162, 40307, {f: 2, c: 40310},
  5388. 40324, 40345, 40353, 40383, 40373, 40377, 40381, 40393, 40410, 40416,
  5389. 40419, 19719, 40458, 40450, 40461, 40476, 40571, 139800, 40576, 40581,
  5390. 40603, 172940, 40637, 173111, 40671, 40703, 40706, 19831, 40707, 40762,
  5391. 40765, 40774, 40787, 40789, 40792, 173553, 40797, 173570, 40809, 40813,
  5392. 40816, 173746, 11948, 13844, 14509, 15820, 16348, 17854, 17936, 19326,
  5393. 19512, 19681, 19980, {f: 2, c: 20003}, 20089, 20211, 20236, 20249, 20267,
  5394. 20270, 20273, 20356, 20382, 20407, 20484, 20492, 20556, 20575, 20578,
  5395. 20599, 20622, 20638, 20642, 20675, 20712, 20721, 20734, 20743,
  5396. {f: 3, c: 20748}, 20787, 20792, 20852, 20868, 20920, 20922, 20936, 20943,
  5397. 20945, {f: 2, c: 20947}, 20952, 20959, 20997, 21030, 21032, 21035,
  5398. {f: 2, c: 21041}, 21045, 21052, 21082, 21088, 21102, {f: 2, c: 21112},
  5399. 21130, 21132, 21217, 21225, 21233, 21251, 21265, 21279, 21293, 21298,
  5400. 21309, 21349, 21357, 21369, 21374, 21396, 21401, 21418, 21423, 21434,
  5401. 21441, {f: 2, c: 21444}, 21472, 21523, 21546, 21553, {f: 2, c: 21556},
  5402. 21580, 21671, 21674, 21681, 21691, 21710, 21738, 21756, 21765, 21768,
  5403. 21781, 21799, 21802, 21814, 21841, 21862, 21903, 21906, 21908, 21924,
  5404. 21938, 21955, 21958, 21971, 21979, 21996, 21998, 22001, 22006, 22008,
  5405. 22021, 22029, {f: 2, c: 22033}, 22060, 22069, 22073, 22093, 22100, 22149,
  5406. 22175, 22182, 22199, 22220, 22223, 22233, 22241, 22251, 22253, 22257,
  5407. 22279, 22284, {f: 2, c: 22298}, 22301, 22316, 22318, {f: 2, c: 22333},
  5408. 22367, 22379, 22381, 22394, 22403, 22423, 22446, 22485, 22503, 22541,
  5409. 22566, 22605, 22607, 22623, 22637, 22655, 22657, 22680, 22716, 22815,
  5410. 22819, 22873, 22905, 22935, 22959, 22963, 23007, 23025, 23032, 23218,
  5411. 23224, 23274, 23286, 23323, 23325, 23329, 23352, 23479, 23511, 23520,
  5412. 23583, 23594, 23596, 23606, 23641, 23644, 23661, 23773, 23809, 23860,
  5413. 23869, 23897, 23934, 23939, 24007, 24057, 24104, 24114, 24117, 24155,
  5414. 24168, 24170, 24183, 24192, 24203, 24243, 24253, 24273, {f: 2, c: 24276},
  5415. 24397, 24492, 24554, 24583, 24649, 24660, 24679, 24763, 24772, 24829,
  5416. 24842, 24854, 24874, 24886, 24926, 24932, 24955, 24957, 24959, 24989,
  5417. 25016, 25052, 25058, 25061, 25064, 25092, 25095, 25137, 25145, 25149,
  5418. 25210, 25232, 25256, 25306, 25332, 25366, 25386, 25398, 25414, 25419,
  5419. 25427, 25457, 25461, 25471, 25474, 25482, {f: 2, c: 25518}, 25578,
  5420. {f: 2, c: 25592}, 25618, 25624, 25632, 25636, 25642, 25653, 25661, 25663,
  5421. 25682, 25695, 25716, 25744, {f: 2, c: 25752}, 25772, 25779, 25837, 25840,
  5422. 25883, 25887, 25902, 25929, 25952, 26002, 26005, 26036, 26046, 26056,
  5423. 26062, 26064, 26079, 26238, {f: 2, c: 26251}, 26291, 26304, 26319, 26405,
  5424. 26421, 26453, 26496, 26511, 26513, 26532, 26545, 26549, 26558, 26664,
  5425. 26758, 26859, 26869, 26903, 26931, 26936, 26971, 26981, 27048, 27051,
  5426. 27055, 27109, 27121, 27210, 27221, 27239, 27249, 27311, {f: 2, c: 27336},
  5427. 27395, 27451, 27455, {f: 2, c: 27517}, 27568, 27639, 27641, 27652, 27657,
  5428. 27661, 27692, 27722, 27730, 27732, 27769, 27820, 27828, 27858, 28001,
  5429. 28028, 28089, 28144, 28229, 28275, 28283, 28285, 28297, 28348,
  5430. {f: 2, c: 28378}, 28454, 28457, 28464, 28551, 28573, 28590, 28599, 28685,
  5431. 28704, 28745, 28824, 28848, {f: 2, c: 28885}, 28997, 29106, 29172, 29207,
  5432. 29215, 29251, {f: 2, c: 29263}, 29274, 29280, 29288, 29303, 29316, 29385,
  5433. 29413, 29428, 29442, 29451, 29470, 29474, {f: 2, c: 29498}, 29517, 29528,
  5434. 29543, 29810, 29871, 29919, 29924, 29940, 29947, 29974, 29985, 30015,
  5435. 30046, 30105, 30116, 30145, 30148, 30156, 30167, 30172, 30177, 30191,
  5436. 30212, 30220, 30237, 30258, 30264, 30277, 30282, 30303, 30381, 30397,
  5437. 30425, 30443, 30448, 30457, 30464, 30478, 30498, 30504, 30511, 30521,
  5438. 30526, 30533, 30538, 30543, 30558, 30564, 30567, 30572, 30596,
  5439. {f: 2, c: 30604}, 30614, 30631, 30639, 30647, 30654, 30665, 30673, 30681,
  5440. 30705, 30775, 30812, 30846, 30872, 30881, 30897, 30899, 30921, 30931,
  5441. 30988, 31007, {f: 2, c: 31015}, 31039, 31042, 31060, 31083, 31100, 31147,
  5442. 31172, 31210, 31234, 31244, 31280, 31290, 31300, 31360, 31366, 31380,
  5443. 31413, 31421, 31486, 31531, 31607, 31648, 31660, 31664, 31720, 31730,
  5444. 31736, 31740, 31742, 31753, 31784, 31791, 31810, {f: 2, c: 31826},
  5445. {f: 3, c: 31835}, 31858, 31869, 31879, 31902, 31930, 31943, 31955, 31962,
  5446. 32060, 32077, 32130, 32133, 32141, 32145, 32158, 32179, 32185, 32208,
  5447. 32229, {f: 2, c: 32245}, 32303, 32310, 32324, 32367, 32376, 32385, 32573,
  5448. 32603, 32605, 32613, 32625, {f: 2, c: 32639}, 32651, 32674,
  5449. {f: 3, c: 32765}, 32775, 32781, 32798, 32825, 32904, 32910, 32975, 32980,
  5450. 33005, 33008, 33015, 33018, 33022, 33027, 33047, 33072, 33111, 33135,
  5451. 33139, 33163, 33168, 33179, 33182, 33227, 33237, {f: 2, c: 33245}, 33249,
  5452. 33263, 33270, 33280, 33291, {f: 2, c: 33299}, 33306, 33338, 33348, 33389,
  5453. 33412, 33417, 33425, 33450, 33456, 33488, 33514, 33519, 33526, 33622,
  5454. 33656, 33784, 33788, 33880, 33939, 33969, 33981, 34043, 34118, 34134,
  5455. 34141, 34181, 34200, 34370, 34374, 34496, 34580, 34594, 34606, 34617,
  5456. 34653, 34683, 34700, 34702, {f: 2, c: 34711}, 34718, 34723, 34734, 34751,
  5457. 34761, 34778, 34840, 34843, 34861, 34874, 34885, 34891, 34894, 34901,
  5458. 34906, 34926, {f: 3, c: 34970}, 35021, 35040, 35055, {f: 2, c: 35086},
  5459. 35110, 35125, 35162, 35164, 35179, 35184, 35196, 35237, 35253, 35260,
  5460. 35285, 35401, 35415, 35431, 35454, 35462, 35478, 35510, 35529, 35537,
  5461. 35549, 35564, 35573, 35590, 35599, 35601, 35653, 35666, 35693, 35704,
  5462. 35708, 35710, 35717, 35743, 35915, 35923, 35963, 36026, 36037, 36041,
  5463. 36050, 36076, 36085, 36087, 36097, 36099, 36119, 36124, 36206, 36241,
  5464. 36255, 36267, 36274, 36309, 36327, {f: 2, c: 36337}, 36340, 36353, 36363,
  5465. 36390, 36401, {f: 2, c: 36416}, 36429, 36431, 36444, 36449, 36457, 36465,
  5466. 36469, 36471, 36489, 36496, 36501, 36506, 36519, 36521, 36525, 36584,
  5467. 36592, 36615, 36632, 36645, 36647, 36652, 36661, 36666, 36675, 36679,
  5468. 36689, 36693, {f: 3, c: 36768}, 36773, 36868, 36891, 36911, 36940, 36955,
  5469. 36976, 36980, 36985, 37003, 37016, 37024, 37042, 37053, 37065, 37104,
  5470. 37125, 37157, 37210, 37223, 37242, 37258, 37265, 37269, 37296, 37307,
  5471. 37309, 37314, 37317, 37376, 37385, 37411, 37494, 37518, 37551,
  5472. {f: 2, c: 37563}, 37569, 37571, 37573, 37576, 37652, 37683, 37686, 37720,
  5473. 37759, 37762, 37770, 37819, 37836, 37862, 37881, 37890, {f: 2, c: 37901},
  5474. 37934, 37964, 38280, 38305, 38335, 38342, 38345, {f: 2, c: 38353}, 38368,
  5475. 38372, 38374, 38436, 38449, 38456, 38461, 38484, 38516, 38523, 38527,
  5476. 38529, 38531, 38537, 38550, 38574, 38659, 38683, {f: 2, c: 38689}, 38696,
  5477. 38705, 38759, 38774, 38781, 38783, 38809, 38815, 38828, 38841, 38861,
  5478. 38880, 38895, 38919, 38950, 38958, {f: 2, c: 39010}, 39092, 39109, 39170,
  5479. 39185, 39189, 39221, 39240, 39252, 39262, 39393, 39436, 39440, 39459,
  5480. 39489, 39505, {f: 2, c: 39613}, 39681, 39689, 39691, {f: 2, c: 39693},
  5481. 39705, 39733, 39752, 39765, 39784, 39808, 39814, 39824, 39837, 39856,
  5482. 39871, 39880, 39935, 39938, 39964, 39989, 40004, 40022, 40033, 40040,
  5483. 40240, 40253, 40298, 40315, 40421, 40425, 40435, 40570, {f: 3, c: 40578},
  5484. 40624, 40676, 40688, 40690, 40713, 40719, 40724, 40731, 40738, 40742,
  5485. {f: 2, c: 40746}, 40756, 40794, 40815, 40862, 40869, 131317, 151044,
  5486. 151538, 163187, 194581, 194630, 194713, 194726, 194789, 195038, 13790,
  5487. {s: 4}, 172722, 0, 0, 131416, {s: 4}, 132529, 0, 0, 132844, {s: 6}, 134488,
  5488. {s: 21}, 154060, {s: 9}, 14756, 14776, 142914, 0, 0, 14940, 0, 0, 143339,
  5489. 0, 0, 162228, 0, 15044, 15051, {s: 5}, 14981, {s: 8}, 15347, 27384, {s: 5},
  5490. 15665, {s: 9}, 147531, 0, 15936, 14497, {s: 34}, 158878, {s: 12}, 18207,
  5491. 162876, {s: 4}, 18462, {s: 71}, 39709, 39724, 20482, 20958, 21255, 23532,
  5492. 63784, 26142, 63785, 28746, 64021, 21857, 27706, 31328, 156492, 34819,
  5493. 38315, 38741, 171581, 173594],
  5494. 'Adobe-Korea1': [{f: 95, c: 32}, 8361, 8208, 169, 0, 0, [12288, 12644],
  5495. {f: 2, c: 12289}, 12539, 8229, [8230, 8943], 168, 12291, {f: 2, c: 8211},
  5496. 8214, 65340, 65374, {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12308},
  5497. {f: 10, c: 12296}, 177, 215, 247, 8800, {f: 2, c: 8804}, 8734, 8756, 176,
  5498. {f: 2, c: 8242}, 8451, 8491, {f: 2, c: 65504}, 65509, 9794, 9792, 8736,
  5499. 8869, 8978, 8706, 8711, 8801, 8786, 167, 8251, 9734, 9733, 9675, 9679,
  5500. 9678, 9671, 9670, 9633, 9632, 9651, 9650, 9661, 9660, 8594,
  5501. {f: 2, c: 8592}, {f: 2, c: 8595}, 12307, 171, 187, 8730, 8765, 8733, 8757,
  5502. {f: 2, c: 8747}, 8712, 8715, {f: 2, c: 8838}, {f: 2, c: 8834}, 8746, 8745,
  5503. {f: 2, c: 8743}, 65506, 8658, 8660, 8704, 8707, 180, 732, 711, 728, 733,
  5504. 730, 729, 184, 731, 161, 191, 8758, 8750, 8721, 8719, 164, 8457, 8240,
  5505. 9665, 9664, 9655, 9654, 9828, {f: 2, c: 9824}, 9829, 9831, 9827, 9673,
  5506. 9672, 9635, {f: 2, c: 9680}, 9618, {f: 2, c: 9636}, 9640, 9639, 9638, 9641,
  5507. 9832, 9743, 9742, 9756, 9758, 182, {f: 2, c: 8224}, 8597, 8599, 8601, 8598,
  5508. 8600, 9837, {f: 2, c: 9833}, 9836, 12927, 12828, 8470, 13255, 8482, 13250,
  5509. 13272, 8481, {f: 59, c: 65281}, 65510, {f: 33, c: 65341}, 65507,
  5510. {f: 51, c: 12593}, {f: 42, c: 12645}, {f: 10, c: 8560}, {f: 10, c: 8544},
  5511. {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945}, {f: 7, c: 963}, 9472,
  5512. 9474, 9484, 9488, 9496, 9492, 9500, 9516, 9508, 9524, 9532, 9473, 9475,
  5513. 9487, 9491, 9499, 9495, 9507, 9523, 9515, 9531, 9547, 9504, 9519, 9512,
  5514. 9527, 9535, 9501, 9520, 9509, 9528, 9538, 9490, 9489, 9498, 9497, 9494,
  5515. 9493, 9486, 9485, {f: 2, c: 9502}, {f: 2, c: 9505}, {f: 2, c: 9510},
  5516. {f: 2, c: 9513}, {f: 2, c: 9517}, {f: 2, c: 9521}, {f: 2, c: 9525},
  5517. {f: 2, c: 9529}, {f: 2, c: 9533}, {f: 2, c: 9536}, {f: 8, c: 9539},
  5518. {f: 3, c: 13205}, 8467, 13208, 13252, {f: 4, c: 13219}, {f: 10, c: 13209},
  5519. 13258, {f: 3, c: 13197}, 13263, {f: 2, c: 13192}, 13256, {f: 2, c: 13223},
  5520. {f: 10, c: 13232}, {f: 5, c: 13184}, {f: 6, c: 13242}, {f: 5, c: 13200},
  5521. 8486, {f: 2, c: 13248}, {f: 3, c: 13194}, 13270, 13253, {f: 3, c: 13229},
  5522. 13275, {f: 4, c: 13225}, 13277, 13264, 13267, 13251, 13257, 13276, 13254,
  5523. 198, 208, 170, 294, 306, 319, 321, 216, 338, 186, 222, 358, 330,
  5524. {f: 28, c: 12896}, {f: 26, c: 9424}, {f: 15, c: 9312}, 189,
  5525. {f: 2, c: 8531}, 188, 190, {f: 4, c: 8539}, 230, 273, 240, 295, 305, 307,
  5526. 312, 320, 322, 248, 339, 223, 254, 359, 331, 329, {f: 28, c: 12800},
  5527. {f: 26, c: 9372}, {f: 15, c: 9332}, 185, {f: 2, c: 178}, 8308, 8319,
  5528. {f: 4, c: 8321}, {f: 83, c: 12353}, {f: 86, c: 12449}, {f: 6, c: 1040},
  5529. 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, {f: 2, c: 44032}, 44036,
  5530. {f: 4, c: 44039}, {f: 8, c: 44048}, {f: 5, c: 44057}, 44064, 44068,
  5531. {f: 2, c: 44076}, {f: 3, c: 44079}, {f: 2, c: 44088}, 44092, 44096, 44107,
  5532. 44109, 44116, 44120, 44124, {f: 2, c: 44144}, 44148, {f: 2, c: 44151},
  5533. 44154, {f: 2, c: 44160}, {f: 4, c: 44163}, {f: 4, c: 44169}, 44176, 44180,
  5534. {f: 2, c: 44188}, {f: 3, c: 44191}, {f: 3, c: 44200}, 44204,
  5535. {f: 2, c: 44207}, {f: 2, c: 44216}, {f: 3, c: 44219}, 44225, 44228, 44232,
  5536. 44236, 44245, 44247, {f: 2, c: 44256}, 44260, {f: 2, c: 44263}, 44266,
  5537. 44268, {f: 3, c: 44271}, 44275, {f: 2, c: 44277}, {f: 2, c: 44284}, 44288,
  5538. 44292, 44294, {f: 2, c: 44300}, 44303, 44305, 44312, 44316, 44320, 44329,
  5539. {f: 2, c: 44332}, {f: 2, c: 44340}, 44344, 44348, {f: 2, c: 44356}, 44359,
  5540. 44361, 44368, 44372, 44376, 44385, 44387, {f: 2, c: 44396}, 44400,
  5541. {f: 4, c: 44403}, {f: 3, c: 44411}, 44415, {f: 2, c: 44417},
  5542. {f: 2, c: 44424}, 44428, 44432, {f: 2, c: 44444}, 44452, 44471,
  5543. {f: 2, c: 44480}, 44484, 44488, {f: 2, c: 44496}, 44499, 44508, 44512,
  5544. 44516, {f: 2, c: 44536}, 44540, {f: 3, c: 44543}, {f: 2, c: 44552}, 44555,
  5545. 44557, 44564, {f: 2, c: 44592}, 44596, {f: 2, c: 44599}, 44602,
  5546. {f: 2, c: 44608}, 44611, {f: 2, c: 44613}, 44618, {f: 3, c: 44620}, 44624,
  5547. 44628, 44630, {f: 2, c: 44636}, {f: 3, c: 44639}, 44645, {f: 2, c: 44648},
  5548. 44652, 44656, {f: 2, c: 44664}, {f: 3, c: 44667}, {f: 2, c: 44676}, 44684,
  5549. {f: 3, c: 44732}, 44736, 44740, {f: 2, c: 44748}, {f: 3, c: 44751},
  5550. {f: 2, c: 44760}, 44764, 44776, 44779, 44781, 44788, 44792, 44796,
  5551. {f: 2, c: 44807}, 44813, 44816, {f: 2, c: 44844}, 44848, 44850, 44852,
  5552. {f: 2, c: 44860}, 44863, {f: 3, c: 44865}, {f: 2, c: 44872}, 44880,
  5553. {f: 2, c: 44892}, {f: 2, c: 44900}, 44921, 44928, 44932, 44936,
  5554. {f: 2, c: 44944}, 44949, 44956, {f: 2, c: 44984}, 44988, 44992,
  5555. {f: 3, c: 44999}, 45003, {f: 2, c: 45005}, 45012, 45020, {f: 2, c: 45032},
  5556. {f: 2, c: 45040}, 45044, 45048, {f: 2, c: 45056}, 45060, 45068, 45072,
  5557. 45076, {f: 2, c: 45084}, 45096, {f: 2, c: 45124}, 45128, 45130, 45132,
  5558. 45134, {f: 3, c: 45139}, 45143, 45145, 45149, {f: 2, c: 45180}, 45184,
  5559. 45188, {f: 2, c: 45196}, 45199, 45201, {f: 3, c: 45208}, 45212,
  5560. {f: 4, c: 45215}, {f: 2, c: 45224}, {f: 5, c: 45227}, 45233,
  5561. {f: 3, c: 45235}, 45240, 45244, {f: 2, c: 45252}, {f: 3, c: 45255},
  5562. {f: 2, c: 45264}, 45268, 45272, 45280, 45285, {f: 2, c: 45320},
  5563. {f: 2, c: 45323}, 45328, {f: 2, c: 45330}, {f: 2, c: 45336},
  5564. {f: 3, c: 45339}, {f: 3, c: 45347}, 45352, 45356, {f: 2, c: 45364},
  5565. {f: 3, c: 45367}, {f: 2, c: 45376}, 45380, 45384, {f: 2, c: 45392},
  5566. {f: 2, c: 45396}, 45400, 45404, 45408, {f: 2, c: 45432}, 45436, 45440,
  5567. 45442, {f: 2, c: 45448}, 45451, 45453, {f: 3, c: 45458}, 45464, 45468,
  5568. 45480, 45516, 45520, 45524, {f: 2, c: 45532}, 45535, {f: 2, c: 45544},
  5569. 45548, 45552, 45561, 45563, 45565, {f: 2, c: 45572}, 45576,
  5570. {f: 2, c: 45579}, {f: 2, c: 45588}, 45591, 45593, 45600, 45620, 45628,
  5571. 45656, 45660, 45664, {f: 2, c: 45672}, {f: 2, c: 45684}, 45692,
  5572. {f: 2, c: 45700}, 45705, {f: 2, c: 45712}, 45716, {f: 3, c: 45720},
  5573. {f: 2, c: 45728}, 45731, {f: 2, c: 45733}, 45738, 45740, 45744, 45748,
  5574. {f: 2, c: 45768}, 45772, 45776, 45778, {f: 2, c: 45784}, 45787, 45789,
  5575. 45794, {f: 3, c: 45796}, 45800, {f: 5, c: 45803}, {f: 3, c: 45811},
  5576. {f: 5, c: 45815}, {f: 3, c: 45823}, 45828, 45832, {f: 2, c: 45840},
  5577. {f: 3, c: 45843}, 45852, {f: 3, c: 45908}, 45912, {f: 2, c: 45915},
  5578. {f: 2, c: 45918}, {f: 2, c: 45924}, 45927, 45929, 45931, 45934,
  5579. {f: 2, c: 45936}, 45940, 45944, {f: 2, c: 45952}, {f: 3, c: 45955}, 45964,
  5580. 45968, 45972, {f: 2, c: 45984}, 45992, 45996, {f: 2, c: 46020}, 46024,
  5581. {f: 2, c: 46027}, 46030, 46032, {f: 2, c: 46036}, 46039, 46041, 46043,
  5582. 46045, 46048, 46052, 46056, 46076, 46096, 46104, 46108, 46112,
  5583. {f: 2, c: 46120}, 46123, 46132, {f: 2, c: 46160}, 46164, 46168,
  5584. {f: 2, c: 46176}, 46179, 46181, 46188, 46208, 46216, 46237, 46244, 46248,
  5585. 46252, 46261, 46263, 46265, 46272, 46276, 46280, 46288, 46293,
  5586. {f: 2, c: 46300}, 46304, {f: 2, c: 46307}, 46310, {f: 2, c: 46316}, 46319,
  5587. 46321, 46328, {f: 2, c: 46356}, 46360, {f: 2, c: 46363}, {f: 2, c: 46372},
  5588. {f: 4, c: 46375}, {f: 2, c: 46384}, 46388, 46392, {f: 2, c: 46400},
  5589. {f: 3, c: 46403}, {f: 3, c: 46411}, 46416, 46420, {f: 2, c: 46428},
  5590. {f: 3, c: 46431}, {f: 2, c: 46496}, 46500, 46504, {f: 2, c: 46506},
  5591. {f: 2, c: 46512}, {f: 3, c: 46515}, {f: 3, c: 46523}, 46528, 46532,
  5592. {f: 2, c: 46540}, {f: 3, c: 46543}, 46552, 46572, {f: 2, c: 46608}, 46612,
  5593. 46616, 46629, 46636, 46644, 46664, 46692, 46696, {f: 2, c: 46748}, 46752,
  5594. 46756, {f: 2, c: 46763}, 46769, 46804, 46832, 46836, 46840,
  5595. {f: 2, c: 46848}, 46853, {f: 2, c: 46888}, 46892, {f: 2, c: 46895},
  5596. {f: 2, c: 46904}, 46907, 46916, 46920, 46924, {f: 2, c: 46932}, 46944,
  5597. 46948, 46952, {f: 2, c: 46960}, 46963, 46965, {f: 2, c: 46972}, 46976,
  5598. 46980, {f: 2, c: 46988}, {f: 4, c: 46991}, {f: 4, c: 46998}, 47004, 47008,
  5599. {f: 2, c: 47016}, {f: 3, c: 47019}, {f: 2, c: 47028}, 47032, 47047, 47049,
  5600. {f: 2, c: 47084}, 47088, 47092, {f: 2, c: 47100}, {f: 3, c: 47103},
  5601. {f: 3, c: 47111}, 47116, 47120, {f: 2, c: 47128}, 47131, 47133,
  5602. {f: 2, c: 47140}, 47144, 47148, {f: 2, c: 47156}, {f: 3, c: 47159}, 47168,
  5603. 47172, 47185, 47187, {f: 2, c: 47196}, 47200, 47204, {f: 2, c: 47212},
  5604. 47215, 47217, 47224, 47228, 47245, 47272, 47280, 47284, 47288,
  5605. {f: 2, c: 47296}, 47299, 47301, 47308, 47312, 47316, 47325, 47327, 47329,
  5606. {f: 2, c: 47336}, 47340, 47344, {f: 2, c: 47352}, 47355, 47357, 47364,
  5607. 47384, 47392, {f: 2, c: 47420}, 47424, 47428, 47436, 47439, 47441,
  5608. {f: 2, c: 47448}, 47452, 47456, {f: 2, c: 47464}, 47467, 47469,
  5609. {f: 2, c: 47476}, 47480, 47484, {f: 2, c: 47492}, 47495, {f: 2, c: 47497},
  5610. {f: 2, c: 47501}, {f: 2, c: 47532}, 47536, 47540, {f: 2, c: 47548}, 47551,
  5611. 47553, {f: 2, c: 47560}, 47564, {f: 5, c: 47566}, {f: 2, c: 47576}, 47579,
  5612. {f: 2, c: 47581}, 47585, {f: 3, c: 47587}, 47592, 47596, {f: 2, c: 47604},
  5613. {f: 4, c: 47607}, {f: 2, c: 47616}, 47624, 47637, {f: 2, c: 47672}, 47676,
  5614. 47680, 47682, {f: 2, c: 47688}, 47691, {f: 2, c: 47693}, {f: 3, c: 47699},
  5615. 47704, 47708, {f: 2, c: 47716}, {f: 3, c: 47719}, {f: 2, c: 47728}, 47732,
  5616. 47736, {f: 3, c: 47747}, 47751, 47756, {f: 2, c: 47784}, {f: 2, c: 47787},
  5617. 47792, 47794, {f: 2, c: 47800}, 47803, 47805, 47812, 47816,
  5618. {f: 2, c: 47832}, 47868, 47872, 47876, 47885, 47887, 47889, 47896, 47900,
  5619. 47904, 47913, 47915, {f: 3, c: 47924}, 47928, {f: 4, c: 47931},
  5620. {f: 2, c: 47940}, 47943, 47945, 47949, {f: 2, c: 47951}, 47956, 47960,
  5621. 47969, 47971, 47980, 48008, 48012, 48016, 48036, 48040, 48044, 48052,
  5622. 48055, 48064, 48068, 48072, 48080, 48083, {f: 2, c: 48120}, 48124,
  5623. {f: 2, c: 48127}, 48130, {f: 2, c: 48136}, {f: 3, c: 48139}, 48143, 48145,
  5624. {f: 5, c: 48148}, {f: 5, c: 48155}, {f: 2, c: 48164}, 48167, 48169, 48173,
  5625. {f: 2, c: 48176}, 48180, 48184, {f: 2, c: 48192}, {f: 3, c: 48195}, 48201,
  5626. {f: 2, c: 48204}, 48208, 48221, {f: 2, c: 48260}, 48264, {f: 2, c: 48267},
  5627. 48270, {f: 2, c: 48276}, 48279, {f: 2, c: 48281}, {f: 2, c: 48288}, 48292,
  5628. {f: 2, c: 48295}, {f: 2, c: 48304}, {f: 3, c: 48307}, {f: 2, c: 48316},
  5629. 48320, 48324, 48333, {f: 3, c: 48335}, 48341, 48344, 48348,
  5630. {f: 3, c: 48372}, 48376, 48380, {f: 2, c: 48388}, 48391, 48393, 48400,
  5631. 48404, 48420, 48428, 48448, {f: 2, c: 48456}, 48460, 48464,
  5632. {f: 2, c: 48472}, 48484, 48488, {f: 2, c: 48512}, 48516, {f: 4, c: 48519},
  5633. {f: 2, c: 48528}, 48531, 48533, {f: 2, c: 48537}, 48540, 48548, 48560,
  5634. 48568, {f: 2, c: 48596}, 48600, 48604, 48617, 48624, 48628, 48632, 48640,
  5635. 48643, 48645, {f: 2, c: 48652}, 48656, 48660, {f: 2, c: 48668}, 48671,
  5636. {f: 2, c: 48708}, 48712, 48716, 48718, {f: 2, c: 48724}, 48727,
  5637. {f: 3, c: 48729}, {f: 2, c: 48736}, 48740, 48744, 48746, {f: 2, c: 48752},
  5638. {f: 3, c: 48755}, {f: 3, c: 48763}, 48768, 48772, {f: 2, c: 48780},
  5639. {f: 3, c: 48783}, {f: 2, c: 48792}, 48808, {f: 2, c: 48848}, 48852,
  5640. {f: 2, c: 48855}, 48864, {f: 3, c: 48867}, 48876, 48897, {f: 2, c: 48904},
  5641. {f: 2, c: 48920}, {f: 3, c: 48923}, {f: 2, c: 48960}, 48964, 48968,
  5642. {f: 2, c: 48976}, 48981, 49044, 49072, 49093, {f: 2, c: 49100}, 49104,
  5643. 49108, 49116, 49119, 49121, 49212, 49233, 49240, 49244, 49248,
  5644. {f: 2, c: 49256}, {f: 2, c: 49296}, 49300, 49304, {f: 2, c: 49312}, 49315,
  5645. 49317, {f: 2, c: 49324}, {f: 2, c: 49327}, {f: 4, c: 49331},
  5646. {f: 2, c: 49340}, {f: 3, c: 49343}, 49349, {f: 2, c: 49352}, 49356, 49360,
  5647. {f: 2, c: 49368}, {f: 3, c: 49371}, {f: 2, c: 49380}, 49384, 49388,
  5648. {f: 2, c: 49396}, 49399, 49401, 49408, 49412, 49416, 49424, 49429,
  5649. {f: 5, c: 49436}, {f: 2, c: 49443}, {f: 2, c: 49446}, {f: 2, c: 49452},
  5650. {f: 3, c: 49455}, 49462, {f: 2, c: 49464}, 49468, 49472, {f: 2, c: 49480},
  5651. {f: 3, c: 49483}, {f: 2, c: 49492}, 49496, 49500, {f: 2, c: 49508},
  5652. {f: 3, c: 49511}, 49520, 49524, 49528, 49541, {f: 3, c: 49548}, 49552,
  5653. 49556, 49558, {f: 2, c: 49564}, 49567, 49569, 49573, {f: 2, c: 49576},
  5654. 49580, 49584, 49597, 49604, 49608, 49612, 49620, {f: 2, c: 49623}, 49632,
  5655. 49636, 49640, {f: 2, c: 49648}, 49651, {f: 2, c: 49660}, 49664, 49668,
  5656. {f: 2, c: 49676}, 49679, 49681, {f: 2, c: 49688}, 49692, {f: 2, c: 49695},
  5657. {f: 2, c: 49704}, 49707, 49709, 49711, {f: 2, c: 49713}, 49716, 49736,
  5658. {f: 2, c: 49744}, 49748, 49752, 49760, 49765, {f: 2, c: 49772}, 49776,
  5659. 49780, {f: 2, c: 49788}, 49791, 49793, {f: 2, c: 49800}, 49808, 49816,
  5660. 49819, 49821, {f: 2, c: 49828}, 49832, {f: 2, c: 49836}, {f: 2, c: 49844},
  5661. 49847, 49849, {f: 2, c: 49884}, 49888, {f: 2, c: 49891}, {f: 3, c: 49899},
  5662. 49903, 49905, 49910, {f: 2, c: 49912}, {f: 2, c: 49915}, 49920,
  5663. {f: 2, c: 49928}, {f: 2, c: 49932}, {f: 3, c: 49939}, 49944, 49948,
  5664. {f: 2, c: 49956}, {f: 2, c: 49960}, 49989, {f: 2, c: 50024}, 50028, 50032,
  5665. 50034, {f: 2, c: 50040}, {f: 2, c: 50044}, 50052, 50056, 50060, 50112,
  5666. {f: 2, c: 50136}, 50140, {f: 2, c: 50143}, 50146, {f: 2, c: 50152}, 50157,
  5667. {f: 2, c: 50164}, 50168, 50184, 50192, 50212, 50220, 50224, 50228,
  5668. {f: 2, c: 50236}, 50248, {f: 2, c: 50276}, 50280, 50284, {f: 2, c: 50292},
  5669. 50297, 50304, 50324, 50332, 50360, 50364, 50409, {f: 2, c: 50416}, 50420,
  5670. 50424, 50426, {f: 3, c: 50431}, 50444, 50448, 50452, 50460,
  5671. {f: 2, c: 50472}, 50476, 50480, {f: 2, c: 50488}, 50491, 50493,
  5672. {f: 2, c: 50500}, {f: 3, c: 50504}, {f: 3, c: 50508}, {f: 3, c: 50515},
  5673. {f: 3, c: 50519}, {f: 2, c: 50525}, {f: 2, c: 50528}, 50532, 50536,
  5674. {f: 2, c: 50544}, {f: 3, c: 50547}, {f: 2, c: 50556}, 50560, 50564, 50567,
  5675. {f: 2, c: 50572}, 50575, 50577, 50581, {f: 2, c: 50583}, 50588, 50592,
  5676. 50601, {f: 2, c: 50612}, {f: 2, c: 50616}, {f: 4, c: 50619},
  5677. {f: 7, c: 50628}, 50636, 50638, {f: 2, c: 50640}, 50644, 50648,
  5678. {f: 2, c: 50656}, 50659, 50661, {f: 3, c: 50668}, 50672, 50676,
  5679. {f: 2, c: 50678}, {f: 6, c: 50684}, {f: 4, c: 50693}, 50700, 50704,
  5680. {f: 2, c: 50712}, {f: 2, c: 50715}, {f: 2, c: 50724}, 50728,
  5681. {f: 3, c: 50732}, 50736, {f: 3, c: 50739}, 50743, 50745, 50747,
  5682. {f: 2, c: 50752}, 50756, 50760, {f: 2, c: 50768}, {f: 3, c: 50771},
  5683. {f: 2, c: 50780}, 50784, 50796, 50799, 50801, {f: 2, c: 50808}, 50812,
  5684. 50816, {f: 2, c: 50824}, 50827, 50829, {f: 2, c: 50836}, 50840, 50844,
  5685. {f: 2, c: 50852}, 50855, 50857, {f: 2, c: 50864}, 50868, {f: 3, c: 50872},
  5686. {f: 2, c: 50880}, 50883, 50885, {f: 2, c: 50892}, 50896, 50900,
  5687. {f: 2, c: 50908}, {f: 2, c: 50912}, {f: 2, c: 50920}, 50924, 50928,
  5688. {f: 2, c: 50936}, 50941, {f: 2, c: 50948}, 50952, 50956, {f: 2, c: 50964},
  5689. 50967, 50969, {f: 2, c: 50976}, 50980, 50984, {f: 2, c: 50992}, 50995,
  5690. 50997, 50999, {f: 2, c: 51004}, 51008, 51012, 51018, {f: 2, c: 51020},
  5691. 51023, {f: 8, c: 51025}, 51036, 51040, 51048, 51051, {f: 2, c: 51060},
  5692. 51064, {f: 3, c: 51068}, {f: 3, c: 51075}, {f: 4, c: 51079}, 51086,
  5693. {f: 2, c: 51088}, 51092, {f: 3, c: 51094}, 51098, {f: 2, c: 51104},
  5694. {f: 4, c: 51107}, {f: 2, c: 51116}, 51120, 51124, {f: 2, c: 51132},
  5695. {f: 3, c: 51135}, {f: 2, c: 51144}, 51148, 51150, 51152, 51160, 51165,
  5696. 51172, 51176, 51180, {f: 2, c: 51200}, 51204, 51208, 51210,
  5697. {f: 2, c: 51216}, 51219, {f: 2, c: 51221}, {f: 2, c: 51228}, 51232, 51236,
  5698. {f: 2, c: 51244}, 51247, 51249, 51256, 51260, 51264, {f: 2, c: 51272},
  5699. {f: 2, c: 51276}, 51284, {f: 2, c: 51312}, 51316, 51320, 51322,
  5700. {f: 2, c: 51328}, 51331, {f: 3, c: 51333}, {f: 3, c: 51339}, 51348, 51357,
  5701. 51359, 51361, 51368, {f: 2, c: 51388}, 51396, 51400, 51404,
  5702. {f: 2, c: 51412}, 51415, 51417, {f: 2, c: 51424}, 51428, 51445,
  5703. {f: 2, c: 51452}, 51456, {f: 3, c: 51460}, {f: 2, c: 51468}, 51471, 51473,
  5704. 51480, 51500, 51508, {f: 2, c: 51536}, 51540, 51544, {f: 2, c: 51552},
  5705. 51555, 51564, 51568, 51572, 51580, {f: 2, c: 51592}, 51596, 51600,
  5706. {f: 2, c: 51608}, 51611, 51613, {f: 2, c: 51648}, 51652, {f: 2, c: 51655},
  5707. 51658, {f: 2, c: 51664}, 51667, {f: 2, c: 51669}, {f: 2, c: 51673},
  5708. {f: 2, c: 51676}, 51680, 51682, 51684, 51687, {f: 2, c: 51692},
  5709. {f: 3, c: 51695}, {f: 2, c: 51704}, 51708, 51712, {f: 2, c: 51720},
  5710. {f: 3, c: 51723}, 51732, 51736, 51753, {f: 2, c: 51788}, 51792, 51796,
  5711. {f: 2, c: 51804}, {f: 3, c: 51807}, 51816, 51837, 51844, 51864,
  5712. {f: 2, c: 51900}, 51904, 51908, {f: 2, c: 51916}, 51919, 51921, 51923,
  5713. {f: 2, c: 51928}, 51936, 51948, 51956, 51976, 51984, 51988, 51992,
  5714. {f: 2, c: 52000}, 52033, {f: 2, c: 52040}, 52044, 52048, {f: 2, c: 52056},
  5715. 52061, 52068, {f: 2, c: 52088}, 52124, 52152, 52180, 52196, 52199, 52201,
  5716. {f: 2, c: 52236}, 52240, 52244, {f: 2, c: 52252}, {f: 2, c: 52257},
  5717. {f: 3, c: 52263}, 52268, 52270, 52272, {f: 2, c: 52280}, {f: 4, c: 52283},
  5718. {f: 2, c: 52292}, 52296, 52300, {f: 2, c: 52308}, {f: 3, c: 52311}, 52320,
  5719. 52324, 52326, 52328, 52336, 52341, {f: 2, c: 52376}, 52380, 52384,
  5720. {f: 2, c: 52392}, {f: 3, c: 52395}, {f: 2, c: 52404}, 52408, 52412,
  5721. {f: 2, c: 52420}, 52423, 52425, 52432, 52436, 52452, 52460, 52464, 52481,
  5722. {f: 2, c: 52488}, 52492, 52496, {f: 2, c: 52504}, 52507, 52509, 52516,
  5723. 52520, 52524, 52537, 52572, 52576, 52580, {f: 2, c: 52588}, 52591, 52593,
  5724. 52600, 52616, {f: 2, c: 52628}, 52632, 52636, {f: 2, c: 52644}, 52647,
  5725. 52649, 52656, 52676, 52684, 52688, 52712, 52716, 52720, {f: 2, c: 52728},
  5726. 52731, 52733, 52740, 52744, 52748, 52756, 52761, {f: 2, c: 52768}, 52772,
  5727. 52776, {f: 2, c: 52784}, 52787, 52789, {f: 2, c: 52824}, 52828,
  5728. {f: 3, c: 52831}, {f: 2, c: 52840}, 52843, 52845, {f: 2, c: 52852}, 52856,
  5729. 52860, {f: 2, c: 52868}, 52871, 52873, {f: 2, c: 52880}, 52884, 52888,
  5730. {f: 2, c: 52896}, {f: 3, c: 52899}, {f: 2, c: 52908}, 52929,
  5731. {f: 2, c: 52964}, 52968, {f: 2, c: 52971}, {f: 2, c: 52980},
  5732. {f: 3, c: 52983}, {f: 2, c: 52992}, 52996, 53000, {f: 2, c: 53008}, 53011,
  5733. 53013, 53020, 53024, 53028, {f: 2, c: 53036}, {f: 3, c: 53039}, 53048,
  5734. {f: 2, c: 53076}, 53080, 53084, {f: 2, c: 53092}, 53095, 53097,
  5735. {f: 2, c: 53104}, 53108, 53112, 53120, 53125, 53132, 53153, 53160, 53168,
  5736. 53188, {f: 2, c: 53216}, 53220, 53224, {f: 2, c: 53232}, 53235, 53237,
  5737. 53244, 53248, 53252, 53265, 53272, 53293, {f: 2, c: 53300}, 53304, 53308,
  5738. {f: 2, c: 53316}, 53319, 53321, 53328, 53332, 53336, 53344,
  5739. {f: 2, c: 53356}, 53360, 53364, {f: 2, c: 53372}, 53377, {f: 2, c: 53412},
  5740. 53416, 53420, {f: 2, c: 53428}, 53431, 53433, {f: 2, c: 53440}, 53444,
  5741. {f: 2, c: 53448}, {f: 2, c: 53456}, {f: 3, c: 53459}, {f: 2, c: 53468},
  5742. 53472, 53476, {f: 2, c: 53484}, {f: 3, c: 53487}, 53496, 53517,
  5743. {f: 2, c: 53552}, 53556, 53560, 53562, {f: 2, c: 53568}, {f: 3, c: 53571},
  5744. {f: 2, c: 53580}, 53584, 53588, {f: 2, c: 53596}, 53599, 53601, 53608,
  5745. 53612, 53628, 53636, 53640, {f: 2, c: 53664}, 53668, 53672,
  5746. {f: 2, c: 53680}, 53683, 53685, 53690, 53692, 53696, 53720, 53748, 53752,
  5747. 53767, 53769, 53776, {f: 2, c: 53804}, 53808, 53812, {f: 2, c: 53820},
  5748. 53823, 53825, 53832, 53852, 53860, {f: 2, c: 53888}, 53892, 53896,
  5749. {f: 2, c: 53904}, 53909, 53916, 53920, 53924, 53932, 53937,
  5750. {f: 2, c: 53944}, 53948, {f: 2, c: 53951}, 53954, {f: 2, c: 53960}, 53963,
  5751. 53972, 53976, 53980, {f: 2, c: 53988}, {f: 2, c: 54000}, 54004, 54008,
  5752. {f: 2, c: 54016}, 54019, 54021, {f: 3, c: 54028}, 54032, 54036, 54038,
  5753. {f: 2, c: 54044}, {f: 3, c: 54047}, 54053, {f: 2, c: 54056}, 54060, 54064,
  5754. {f: 2, c: 54072}, {f: 3, c: 54075}, {f: 2, c: 54084}, {f: 2, c: 54140},
  5755. 54144, 54148, {f: 2, c: 54156}, {f: 3, c: 54159}, {f: 2, c: 54168}, 54172,
  5756. 54176, {f: 2, c: 54184}, 54187, 54189, 54196, 54200, 54204,
  5757. {f: 2, c: 54212}, {f: 2, c: 54216}, 54224, 54232, 54241, 54243,
  5758. {f: 2, c: 54252}, 54256, 54260, {f: 2, c: 54268}, 54271, 54273, 54280,
  5759. 54301, 54336, 54340, 54364, 54368, 54372, 54381, 54383, {f: 2, c: 54392},
  5760. 54396, {f: 2, c: 54399}, 54402, {f: 2, c: 54408}, 54411, 54413, 54420,
  5761. 54441, 54476, 54480, 54484, 54492, 54495, 54504, 54508, 54512, 54520,
  5762. 54523, 54525, 54532, 54536, 54540, {f: 2, c: 54548}, 54551,
  5763. {f: 2, c: 54588}, 54592, 54596, {f: 2, c: 54604}, 54607, 54609,
  5764. {f: 2, c: 54616}, 54620, 54624, 54629, {f: 2, c: 54632}, 54635, 54637,
  5765. {f: 2, c: 54644}, 54648, 54652, {f: 2, c: 54660}, {f: 3, c: 54663}, 54672,
  5766. 54693, {f: 2, c: 54728}, 54732, 54736, 54738, {f: 2, c: 54744}, 54747,
  5767. 54749, {f: 2, c: 54756}, 54760, 54764, {f: 2, c: 54772}, 54775, 54777,
  5768. {f: 2, c: 54784}, 54788, 54792, {f: 2, c: 54800}, {f: 3, c: 54803}, 54812,
  5769. 54816, 54820, 54829, {f: 2, c: 54840}, 54844, 54848, 54853,
  5770. {f: 2, c: 54856}, 54859, 54861, 54865, {f: 2, c: 54868}, 54872, 54876,
  5771. 54887, 54889, {f: 2, c: 54896}, 54900, 54915, 54917, {f: 2, c: 54924},
  5772. 54928, 54932, 54941, 54943, 54945, 54952, 54956, 54960, 54969, 54971,
  5773. {f: 2, c: 54980}, 54984, 54988, 54993, 54996, 54999, 55001, 55008, 55012,
  5774. 55016, 55024, 55029, {f: 2, c: 55036}, 55040, 55044, 55057,
  5775. {f: 2, c: 55064}, 55068, 55072, {f: 2, c: 55080}, 55083, 55085,
  5776. {f: 2, c: 55092}, 55096, 55100, 55108, 55111, 55113, {f: 2, c: 55120},
  5777. 55124, {f: 4, c: 55126}, {f: 2, c: 55136}, 55139, 55141, 55145, 55148,
  5778. 55152, 55156, {f: 2, c: 55164}, 55169, {f: 2, c: 55176}, 55180, 55184,
  5779. {f: 2, c: 55192}, 55195, 55197, 20285, 20339, 20551, 20729, 21152, 21487,
  5780. 21621, 21733, 22025, 23233, 23478, 26247, {f: 2, c: 26550}, 26607, 27468,
  5781. 29634, 30146, 31292, 33499, 33540, 34903, 34952, 35382, [36040, 63747],
  5782. 36303, 36603, 36838, 39381, 21051, 21364, 21508, 24682, 24932, 27580,
  5783. 29647, 33050, 35258, [12179, 35282], 38307, 20355, 21002, 22718, 22904,
  5784. 23014, [12082, 24178], 24185, 25031, 25536, 26438, 26604, 26751, 28567,
  5785. 30286, 30475, 30965, 31240, 31487, 31777, 32925, [12169, 33390], 33393,
  5786. 35563, 38291, 20075, 21917, 26359, 28212, 30883, 31469, 33883, 35088,
  5787. 34638, 38824, 21208, 22350, 22570, 23884, 24863, 25022, 25121, 25954,
  5788. 26577, 27204, 28187, [12130, 29976], 30131, 30435, 30640, 32058, 37039,
  5789. {f: 2, c: 37969}, 40853, 21283, 23724, 30002, 32987, 37440, 38296, 21083,
  5790. 22536, 23004, 23713, 23831, 24247, 24378, 24394, 24951, 27743, 30074,
  5791. 30086, 31968, 32115, 32177, 32652, 33108, 33313, 34193, 35137, 35611,
  5792. 37628, [38477, 64009], 40007, 20171, 20215, 20491, 20977, 22607, 24887,
  5793. 24894, 24936, 25913, 27114, 28433, 30117, 30342, 30422, 31623, 33445,
  5794. 33995, 37799, 38283, 21888, 23458, 22353, 31923, 32697, 37301, 20520,
  5795. 21435, 23621, 24040, 25298, 25454, 25818, 25831, 28192, 28844, 31067,
  5796. 36317, 36382, 36989, 37445, 37624, 20094, 20214, 20581, [12081, 24062],
  5797. 24314, 24838, 26967, 33137, 34388, 36423, 37749, 39467, 20062, 20625,
  5798. 26480, 26688, 20745, 21133, 21138, 27298, 30652, 37392, 40660, 21163,
  5799. 24623, 36850, 20552, 25001, 25581, 25802, 26684, 27268, 28608, 33160,
  5800. 35233, 38548, 22533, 29309, [12125, 29356], 29956, 32121, 32365, 32937,
  5801. [12178, 35211, 64010], 35700, 36963, 40273, 25225, 27770, 28500, 32080,
  5802. 32570, 35363, 20860, 24906, 31645, 35609, 37463, 37772, 20140, 20435,
  5803. 20510, 20670, 20742, 21185, 21197, 21375, 22384, 22659, 24218, 24465,
  5804. 24950, 25004, 25806, 25964, 26223, 26299, [26356, 63745], 26775, 28039,
  5805. 28805, 28913, 29855, 29861, 29898, 30169, 30828, 30956, 31455, 31478,
  5806. 32069, 32147, 32789, 32831, 33051, 33686, 35686, 36629, 36885, 37857,
  5807. 38915, 38968, 39514, 39912, 20418, 21843, 22586, [22865, 63753], 23395,
  5808. 23622, 24760, 25106, 26690, 26800, 26856, 28330, 30028, 30328, 30926,
  5809. 31293, 31995, 32363, 32380, 35336, 35489, 35903, 38542, 40388, 21476,
  5810. 21481, 21578, 21617, 22266, 22993, 23396, 23611, 24235, 25335, 25911,
  5811. 25925, 25970, 26272, 26543, 27073, 27837, 30204, 30352, 30590, 31295,
  5812. 32660, 32771, 32929, 33167, 33510, 33533, 33776, 34241, 34865, 34996,
  5813. 35493, 36764, 37678, 38599, 39015, [12220, 39640], [12238, 40723], 21741,
  5814. 26011, 26354, 26767, 31296, [12181, 35895], 40288, 22256, 22372, 23825,
  5815. 26118, 26801, 26829, 28414, 29736, 34974, 39908, 27752, [12219, 39592],
  5816. 20379, 20844, 20849, 21151, 23380, [12079, 24037], 24656, 24685, 25329,
  5817. 25511, 25915, 29657, 31354, 34467, 36002, 38799, [20018, 63749], 23521,
  5818. [12093, 25096], 26524, [12128, 29916], 31185, 33747, 35463, 35506, 36328,
  5819. 36942, 37707, 38982, [24275, 64011], 27112, 34303, 37101, 20896, 23448,
  5820. 23532, 24931, 26874, 27454, 28748, 29743, 29912, 31649, 32592, 33733,
  5821. 35264, 36011, 38364, 39208, 21038, 24669, 25324, 36866, 20362, 20809,
  5822. 21281, 22745, 24291, 26336, 27960, 28826, 29378, 29654, 31568, 33009,
  5823. 37979, 21350, 25499, 32619, 20054, 20608, 22602, 22750, 24618, 24871,
  5824. 25296, 27088, 39745, 23439, 32024, 32945, 36703, 20132, 20689, 21676,
  5825. 21932, 23308, 23968, 24039, 25898, 25934, 26657, 27211, 29409, 30350,
  5826. 30703, 32094, 32761, 33184, 34126, 34527, 36611, 36686, 37066, 39171,
  5827. 39509, 39851, 19992, 20037, 20061, 20167, 20465, 20855, 21246, 21312,
  5828. [12061, 21475], [21477, 63750], 21646, 22036, 22389, 22434, 23495, 23943,
  5829. 24272, 25084, 25304, 25937, 26552, 26601, 27083, 27472, 27590, 27628,
  5830. 27714, 28317, 28792, 29399, 29590, 29699, 30655, 30697, 31350, 32127,
  5831. 32777, [12165, 33276], 33285, 33290, 33503, 34914, 35635, 36092, 36544,
  5832. 36881, 37041, 37476, 37558, 39378, 39493, 40169, 40407,
  5833. [12244, 40860, 63751, 63752], 22283, 23616, 33738, 38816, 38827, 40628,
  5834. 21531, 31384, 32676, 35033, 36557, 37089, 22528, 23624, 25496, 31391,
  5835. 23470, [12088, 24339], 31353, 31406, 33422, 36524, 20518, 21048, 21240,
  5836. 21367, 22280, 25331, 25458, 27402, 28099, 30519, 21413, 29527, 34152,
  5837. 36470, 38357, 26426, 27331, 28528, 35437, 36556, 39243, 26231, 27512,
  5838. 36020, [12225, 39740], 21483, 22317, 22862, 25542, 27131, 29674, 30789,
  5839. 31418, 31429, 31998, 33909, 35215, 36211, 36917, 38312, 21243, 22343,
  5840. 30023, 31584, 33740, 37406, 27224, 20811, 21067, 21127, 25119, 26840,
  5841. 26997, 38553, 20677, 21156, 21220, 25027, [12100, 26020], 26681, 27135,
  5842. 29822, 31563, 33465, 33771, 35250, 35641, 36817, 39241, 20170, 22935,
  5843. 25810, 26129, 27278, 29748, 31105, 31165, 33449, {f: 2, c: 34942}, 35167,
  5844. 37670, 20235, 21450, 24613, 25201, 27762, 32026, 32102, 20120, 20834,
  5845. 30684, 32943, 20225, 20238, 20854, 20864, 21980, 22120, 22331, 22522,
  5846. 22524, 22804, 22855, 22931, 23492, 23696, 23822, [12080, 24049], 24190,
  5847. 24524, 25216, 26071, 26083, {f: 2, c: 26398}, 26462, 26827, 26820, 27231,
  5848. 27450, 27683, 27773, 27778, 28103, 29592, 29734, 29738, 29826, 29859,
  5849. 30072, 30079, 30849, 30959, 31041, {f: 2, c: 31047}, 31098, 31637, 32000,
  5850. 32186, 32648, 32774, 32813, 32908, 35352, 35663, [35912, 63744], 36215,
  5851. 37665, 37668, 39138, 39249, {f: 2, c: 39438}, 39525, 40594, 32202, 20342,
  5852. 21513, 25326, 26708, [12198, 37329, 63754], 21931, 20794, 23068, 25062,
  5853. [25295, 63835], 25343, 37027, [35582, 63837], 26262, 29014, 38627, 25423,
  5854. 25466, 21335, 26511, 26976, 28275, 30007, 32013, 34930, 22218, 23064,
  5855. 20035, 20839, [22856, 63756], 26608, 32784, [12069, 22899, 63873],
  5856. [24180, 63886], [25754, 63889], [31178, 63893], [24565, 63907], 24684,
  5857. 25288, [25467, 63908], [23527, 63839, 63914], 23511, 21162, 22900, 24361,
  5858. [24594, 63840], 29785, 39377, 28611, 33215, 36786, 24817, 33126,
  5859. [23615, 63933], 23273, 35365, [26491, 63944], [32016, 63951], 33021, 23612,
  5860. [27877, 63971], [21311, 63979], [28346, 63980], 22810, [33590, 63998],
  5861. [20025, 63838], 20150, 20294, 21934, 22296, 22727, 24406, 26039, 26086,
  5862. 27264, 27573, 28237, 30701, 31471, 31774, 32222, 34507, 34962, 37170,
  5863. 37723, 25787, 28606, 29562, 30136, 36948, 21846, 22349, 25018, 25812,
  5864. 26311, 28129, 28251, 28525, 28601, 30192, 32835, 33213, 34113, 35203,
  5865. 35527, 35674, 37663, 27795, 30035, 31572, 36367, 36957, 21776, 22530,
  5866. 22616, 24162, 25095, 25758, 26848, 30070, [31958, 64003], 34739, 40680,
  5867. 20195, 22408, 22382, [12068, 22823], 23565, 23729, 24118, 24453, 25140,
  5868. 25825, 29619, 33274, 34955, 36024, 38538, 40667, [23429, 64004], 24503,
  5869. 24755, 20498, [12049, 20992], 21040, 22294, 22581, 22615, 23566, 23648,
  5870. 23798, 23947, [24230, 64001], 24466, 24764, 25361, 25481, 25623, 26691,
  5871. 26873, 27330, 28120, 28193, 28372, 28644, 29182, 30428, 30585, 31153,
  5872. 31291, 33796, 35241, 36077, 36339, 36424, 36867, 36884, 36947, 37117,
  5873. 37709, 38518, 38876, 27602, 28678, 29272, 29346, 29544, 30563, 31167,
  5874. 31716, 32411, [35712, 63834], 22697, 24775, 25958, 26109, 26302, 27788,
  5875. 28958, 29129, 35930, 38931, 20077, 31361, 20189, 20908, 20941, 21205,
  5876. 21516, 24999, 26481, 26704, 26847, [27934, 64005], 28540, 30140, 30643,
  5877. 31461, 33012, 33891, 37509, 20828, [12099, 26007], 26460, 26515, 30168,
  5878. 31431, 33651, [12182, 35910], 36887, 38957, 23663, 33216, 33434, 36929,
  5879. 36975, 37389, 24471, 23965, 27225, 29128, 30331, 31561, 34276, 35588,
  5880. 37159, 39472, [21895, 63755], [25078, 63757], [30313, 63758],
  5881. [32645, 63759], [34367, 63760], [34746, 63761], [35064, 63762],
  5882. [37007, 63763], [27931, 63765], [28889, 63766], [29662, 63767], 32097,
  5883. [33853, 63768], [37226, 63769], [39409, 63770], [20098, 63771],
  5884. [21365, 63772], [27396, 63773], 27410, 28734, [29211, 63774],
  5885. [34349, 63775], [40478, 63776], 21068, 36771, [23888, 63777], 25829, 25900,
  5886. 27414, [28651, 63778], 31811, 32412, [34253, 63779], [35172, 63780], 35261,
  5887. [25289, 63781], [33240, 63782], [34847, 63783], [24266, 63784],
  5888. [26391, 63785], [28010, 63786], [29436, 63787], 29701, 29807, 34690,
  5889. [37086, 63788], [20358, 63789], 23821, 24480, 33802, [20919, 63790],
  5890. [25504, 63861], [30053, 63862], [20142, 63863], 20486, [20841, 63864],
  5891. [20937, 63865], [26753, 63866], 27153, 31918, 31921, [31975, 63867],
  5892. [33391, 63868], [35538, 63869], 36635, [37327, 63870], 20406, 20791,
  5893. [21237, 63871], [21570, 63872], [24300, 63874], 24942, 25150,
  5894. [26053, 63875], 27354, [28670, 63876], [31018, 63877], 34268, 34851,
  5895. [38317, 63878], 39522, [39530, 63879], [40599, 63880], [40654, 63881],
  5896. [12050, 21147, 63882], [26310, 63883], [27511, 63884], 28701, 31019,
  5897. [36706, 63885], 38722, [24976, 63887], [25088, 63888], 25891,
  5898. [28451, 63890], [29001, 63891], [29833, 63892], [32244, 63894],
  5899. [32879, 63895], [34030, 63897], [36646, 63896], [36899, 63898],
  5900. [37706, 63899], 20925, [21015, 63900], [21155, 63901], 27916,
  5901. [28872, 63903], [35010, 63904], [24265, 63906], 25986, [27566, 63909],
  5902. 28610, [31806, 63910], [29557, 63911], [20196, 63912], 20278,
  5903. [22265, 63913], 23738, [23994, 63915], [24604, 63916], [29618, 63917],
  5904. 31533, [32666, 63919], 32718, [32838, 63920], 36894, [37428, 63921],
  5905. [38646, 63922], [38728, 63923], [38936, 63924], 40801, [20363, 63925],
  5906. 28583, [31150, 63926], [37300, 63927], [38583, 63928], [21214, 63791],
  5907. 25736, [25796, 63792], [27347, 63793], 28510, 28696, [29200, 63794],
  5908. [30439, 63795], [12156, 32769, 63796], [34310, 63797], [34396, 63798],
  5909. [36335, 63799], 36613, [38706, 63800], [39791, 63801], [40442, 63802],
  5910. [12228, 40565], [30860, 63803], [31103, 63804], [32160, 63805],
  5911. [33737, 63806], [37636, 63807], [12229, 40575, 63808], 40595,
  5912. [35542, 63809], [22751, 63810], [24324, 63811], 26407, 28711, 29903,
  5913. [31840, 63812], [32894, 63813], 20769, 28712, [29282, 63814],
  5914. [30922, 63815], [36034, 63816], 36058, 36084, [38647, 63817],
  5915. [20102, 63930], [20698, 63931], [23534, 63932], 24278, [26009, 63934],
  5916. [29134, 63936], [30274, 63937], 30637, 32842, [34044, 63938],
  5917. [36988, 63939], 39719, [12243, 40845, 63940], [22744, 63818], 23105,
  5918. [23650, 63819], [27155, 63820], [28122, 63821], [28431, 63822], 30267,
  5919. [32047, 63823], [32311, 63824], 34078, 35128, 37860, [38475, 63825],
  5920. [21129, 63943], 26066, [26611, 63945], 27060, [27969, 63946],
  5921. [28316, 63947], 28687, [29705, 63948], 29792, [30041, 63949], 30244,
  5922. [30827, 63950], 35628, [39006, 63952], [20845, 63953], [25134, 63954],
  5923. [38520, 63955], 20374, [20523, 63956], [23833, 63957], [28138, 63958],
  5924. 32184, [36650, 63959], [24459, 63960], [24900, 63961], [26647, 63962],
  5925. [38534, 63964], [21202, 63826], [32907, 63827], [20956, 63828],
  5926. [20940, 63829], 26974, [31260, 63830], [32190, 63831], [33777, 63832],
  5927. [38517, 63833], 20442, [21033, 63965], 21400, [21519, 63966], 21774,
  5928. [23653, 63967], 24743, [26446, 63969], [26792, 63970], 28012, 29313, 29432,
  5929. [29702, 63972], 29827, [30178, 63973], 31852, [32633, 63974], 32696, 33673,
  5930. [35023, 63975], [35041, 63976], [12197, 37324, 63977], 37328,
  5931. [38626, 63978], 39881, [21533, 63981], 28542, [29136, 63982],
  5932. [29848, 63983], [34298, 63984], 36522, [38563, 63985], [40023, 63986],
  5933. [40607, 63987], [26519, 63988], [28107, 63989], 29747, [33256, 63990],
  5934. 38678, 30764, [12148, 31435, 63991], [31520, 63992], [31890, 63993], 25705,
  5935. 29802, 30194, 30908, 30952, [12218, 39340], 39764, [12231, 40635], 23518,
  5936. 24149, 28448, 33180, 33707, 37000, 19975, 21325, 23081, 24018, 24398,
  5937. 24930, 25405, 26217, 26364, 28415, 28459, 28771, 30622, 33836, 34067,
  5938. 34875, 36627, 39237, 39995, 21788, 25273, 26411, 27819, 33545, 35178,
  5939. 38778, 20129, 22916, {f: 2, c: 24536}, 26395, 32178, 32596, 33426, 33579,
  5940. 33725, 36638, 37017, 22475, 22969, 23186, 23504, 26151, 26522, 26757,
  5941. 27599, 29028, 32629, 36023, 36067, 36993, 39749, 33032, 35978, 38476,
  5942. 39488, [12230, 40613], 23391, 27667, 29467, 30450, 30431, 33804, 20906,
  5943. 35219, 20813, 20885, 21193, 26825, 27796, 30468, 30496, 32191, 32236,
  5944. [12207, 38754], 40629, 28357, 34065, 20901, 21517, 21629, 26126, 26269,
  5945. 26919, 28319, [12139, 30399], 30609, 33559, 33986, 34719, 37225, 37528,
  5946. 40180, 34946, 20398, 20882, 21215, 22982, 24125, 24917, {f: 2, c: 25720},
  5947. 26286, 26576, 27169, 27597, [12113, 27611], 29279, 29281, 29761, 30520,
  5948. [12141, 30683], 32791, 33468, 33541, 35584, 35624, 35980, [12106, 26408],
  5949. 27792, 29287, [12140, 30446], 30566, 31302, 40361, 27519, 27794, 22818,
  5950. 26406, 33945, 21359, 22675, 22937, 24287, 25551, 26164, 26483, 28218,
  5951. 29483, 31447, 33495, 37672, 21209, 24043, 25006, 25035, 25098, 25287,
  5952. 25771, [12102, 26080], 26969, 27494, [12111, 27595], 28961, 29687, 30045,
  5953. 32326, 33310, 33538, 34154, 35491, 36031, 38695, 40289, 22696, 40664,
  5954. 20497, 21006, 21563, 21839, [12098, 25991], 27766, {f: 2, c: 32010}, 32862,
  5955. 34442, [12200, 38272], 38639, 21247, 27797, 29289, 21619, 23194, 23614,
  5956. 23883, 24396, 24494, 26410, 26806, 26979, 28220, 28228, 30473,
  5957. [12150, 31859], 32654, 34183, 35598, 36855, 38753, 40692, 23735, 24758,
  5958. 24845, 25003, 25935, {f: 2, c: 26107}, 27665, 27887, 29599, 29641, 32225,
  5959. 38292, 23494, 34588, 35600, 21085, 21338, 25293, 25615, 25778, 26420,
  5960. 27192, 27850, 29632, 29854, 31636, 31893, 32283, 33162, 33334, 34180,
  5961. 36843, 38649, 39361, 20276, 21322, 21453, 21467, 25292, 25644, 25856,
  5962. 26001, 27075, 27886, 28504, 29677, 30036, 30242, 30436, 30460, 30928,
  5963. [30971, 63844], 31020, 32070, 33324, 34784, 36820, 38930, 39151, 21187,
  5964. 25300, 25765, 28196, 28497, 30332, 36299, 37297, 37474, 39662, 39747,
  5965. 20515, 20621, 22346, 22952, 23592, 24135, 24439, 25151, 25918,
  5966. [12101, 26041], 26049, 26121, 26507, 27036, 28354, 30917, 32033, 32938,
  5967. 33152, 33323, 33459, 33953, 34444, 35370, 35607, 37030, 38450, 40848,
  5968. 20493, 20467, 22521, 24472, 25308, 25490, 26479, 28227, 28953, 30403,
  5969. 32972, 32986, {f: 2, c: 35060}, 35097, 36064, 36649, 37197, 38506, 20271,
  5970. 20336, 24091, 26575, 26658, [12137, 30333], 30334, 39748, 24161, 27146,
  5971. 29033, 29140, 30058, 32321, 34115, 34281, 39132, 20240, 31567, 32624,
  5972. 38309, 20961, 24070, 26805, 27710, 27726, 27867, 29359, 31684, 33539,
  5973. 27861, 29754, 20731, 21128, 22721, 25816, 27287, 29863, 30294, 30887,
  5974. 34327, 38370, 38713, 21342, 24321, 35722, 36776, 36783, 37002, 21029,
  5975. 30629, 40009, 40712, 19993, 20482, 20853, 23643, 24183, 26142, 26170,
  5976. 26564, 26821, 28851, 29953, 30149, 31177, 31453, 36647, 39200, 39432,
  5977. 20445, 22561, 22577, 23542, 26222, 27493, 27921, 28282, 28541, 29668,
  5978. 29995, 33769, 35036, 35091, 35676, 36628, 20239, 20693, 21264,
  5979. [12056, 21340], 23443, [24489, 63846], 26381, 31119, 33145, 33583, 34068,
  5980. 35079, 35206, 36665, [36667, 64007], 39333, 39954, 26412, 20086, 20472,
  5981. 22857, 23553, {f: 2, c: 23791}, 25447, 26834, 28925, 29090, 29739, 32299,
  5982. 34028, 34562, 36898, 37586, 40179, [19981, 63847], 20184, 20463, 20613,
  5983. 21078, 21103, 21542, 21648, 22496, 22827, 23142, 23386, 23413, 23500,
  5984. 24220, 25206, 25975, 26023, 28014, 28325, [12119, 29238], 31526, 31807,
  5985. [12152, 32566], {f: 2, c: 33104}, 33178, 33344, 33433, 33705, 35331, 36000,
  5986. 36070, 36091, 36212, 36282, 37096, 37340, [12201, 38428], 38468, 39385,
  5987. 40167, [21271, 63843], 20998, 21545, 22132, 22707, 22868, 22894, 24575,
  5988. 24996, 25198, 26128, 27774, 28954, 30406, 31881, 31966, 32027, 33452,
  5989. 36033, 38640, 20315, 24343, 24447, 25282, 23849, 26379, 26842, 30844,
  5990. 32323, 40300, 19989, 20633, [12052, 21269], 21290, 21329, 22915, 23138,
  5991. 24199, 24754, 24970, 25161, 25209, 26000, 26503, 27047, [12112, 27604],
  5992. {f: 3, c: 27606}, 27832, 29749, 30202, 30738, 30865, 31189, 31192, 31875,
  5993. 32203, 32737, 32933, 33086, 33218, 33778, 34586, 35048, 35513, 35692,
  5994. 36027, 37145, [12206, 38750], [12214, 39131], [12240, 40763], 22188, 23338,
  5995. 24428, 25996, 27315, 27567, 27996, 28657, 28693, 29277, 29613, 36007,
  5996. 36051, 38971, 24977, 27703, 32856, 39425, 20045, 20107, 20123, 20181,
  5997. 20282, 20284, 20351, 20447, 20735, 21490, 21496, 21766, 21987, 22235,
  5998. [12064, 22763], 22882, 23057, 23531, 23546, 23556, 24051, 24107, 24473,
  5999. 24605, 25448, 26012, 26031, 26614, 26619, 26797, 27515, 27801, 27863,
  6000. 28195, 28681, 29509, 30722, 31038, 31040, 31072, 31169, 31721, 32023,
  6001. 32114, 32902, 33293, 33678, 34001, 34503, 35039, 35408, 35422, 35613,
  6002. 36060, 36198, 36781, 37034, 39164, 39391, 40605, 21066, 26388, 20632,
  6003. 21034, [12077, 23665], 25955, 27733, 29642, 29987, 30109, 31639, 33948,
  6004. 37240, 38704, 20087, 25746, [27578, 63856], 29022, 34217, 19977, 26441,
  6005. 26862, 28183, 33439, 34072, 34923, 25591, 28545, 37394, 39087, 19978,
  6006. 20663, 20687, 20767, 21830, 21930, 22039, 23360, 23577, 23776, 24120,
  6007. 24202, 24224, 24258, 24819, 26705, 27233, 28248, 29245, 29248,
  6008. [29376, 63994], 30456, 31077, 31665, 32724, 35059, 35316, 35443, 35937,
  6009. 36062, 38684, [22622, 63852], 29885, 36093, 21959, 31329, [32034, 63850],
  6010. [12170, 33394], 29298, [12131, 29983], 29989, 31513, 22661, 22779, 23996,
  6011. 24207, 24246, 24464, 24661, 25234, 25471, 25933, 26257, 26329, 26360,
  6012. 26646, 26866, 29312, 29790, 31598, 32110, 32214, 32626, 32997, 33298,
  6013. 34223, 35199, 35475, 36893, 37604, [12233, 40653], [12239, 40736],
  6014. [12067, 22805], 22893, 24109, 24796, 26132, 26227, 26512, 27728, 28101,
  6015. 28511, [12143, 30707], 30889, 33990, 37323, 37675, 20185, 20682, 20808,
  6016. 21892, 23307, 23459, 25159, 25982, 26059, 28210, 29053, 29697, 29764,
  6017. 29831, 29887, 30316, 31146, 32218, 32341, 32680, 33146, 33203, 33337,
  6018. 34330, 34796, 35445, 36323, 36984, 37521, 37925, 39245, 39854, 21352,
  6019. 23633, 26964, 27844, 27945, 28203, [12166, 33292], 34203, 35131, 35373,
  6020. [35498, 63855, 63905], 38634, 40807, 21089, 26297, 27570, 32406, 34814,
  6021. 36109, 38275, 38493, 25885, 28041, 29166, 22478, 22995, 23468, 24615,
  6022. 24826, 25104, 26143, 26207, 29481, 29689, 30427, [30465, 63853], 31596,
  6023. 32854, 32882, 33125, 35488, 37266, 19990, 21218, 27506, 27927, 31237,
  6024. 31545, 32048, 36016, 21484, 22063, 22609, 23477, [12073, 23567], 23569,
  6025. 24034, 25152, 25475, 25620, 26157, 26803, 27836, 28040, 28335, 28703,
  6026. 28836, 29138, 29990, 30095, 30094, 30233, 31505, 31712, 31787, 32032,
  6027. 32057, 34092, 34157, 34311, 35380, 36877, 36961, 37045, 37559, 38902,
  6028. 39479, 20439, 23660, 26463, 28049, 31903, 32396, 35606, 36118, 36895,
  6029. 23403, 24061, 25613, 33984, 36956, 39137, [29575, 63841, 63963], 23435,
  6030. 24730, 26494, 28126, 35359, 35494, 36865, 38924, 21047, 28753, 30862,
  6031. 37782, 34928, 37335, 20462, 21463, 22013, 22234, 22402, 22781, 23234,
  6032. 23432, 23723, 23744, 24101, 24833, 25101, [12095, 25163], 25480, 25628,
  6033. 25910, [25976, 63849], 27193, 27530, [12116, 27700], 27929, 28465, 29159,
  6034. 29417, 29560, 29703, 29874, 30246, 30561, 31168, 31319, 31466, 31929,
  6035. 32143, 32172, 32353, 32670, 33065, 33585, 33936, 34010, 34282, 34966,
  6036. 35504, 35728, 36664, 36930, 36995, 37228, 37526, 37561, 38539,
  6037. {f: 2, c: 38567}, 38614, 38656, 38920, [12216, 39318], 39635, 39706, 21460,
  6038. 22654, 22809, 23408, 23487, 28113, 28506, 29087, 29729, 29881, 32901,
  6039. 33789, 24033, 24455, 24490, 24642, 26092, 26642, 26991, 27219, 27529,
  6040. 27957, 28147, 29667, 30462, 30636, 31565, 32020, 33059, 33308, 33600,
  6041. 34036, 34147, 35426, 35524, 37255, 37662, 38918, 39348, 25100, 34899,
  6042. 36848, 37477, 23815, 23847, 23913, 29791, 33181, 34664, 28629,
  6043. [25342, 63859], 32722, 35126, 35186, 19998, 20056, 20711, 21213, 21319,
  6044. 25215, 26119, 32361, 34821, 38494, 20365, 21273, 22070, 22987, 23204,
  6045. [12075, 23608], 23630, 23629, 24066, 24337, 24643, 26045, 26159, 26178,
  6046. 26558, 26612, 29468, [12142, 30690], [12144, 31034], 32709, 33940, 33997,
  6047. 35222, 35430, 35433, 35553, [12183, 35925], 35962, 22516, 23508, 24335,
  6048. 24687, 25325, 26893, 27542, 28252, 29060, 31698, 34645, [35672, 63996],
  6049. 36606, [12215, 39135], 39166, 20280, 20353, 20449, 21627, 23072, 23480,
  6050. 24892, 26032, 26216, 29180, 30003, 31070, 32051, 33102, [12162, 33251],
  6051. 33688, 34218, 34254, 34563, 35338, [12189, 36523], [12191, 36763], 36805,
  6052. 22833, 23460, 23526, 24713, 23529, 23563, [12092, 24515], 27777, 28145,
  6053. 28683, 29978, 33455, 35574, [20160, 63997], [12055, 21313], 38617,
  6054. [12114, 27663], 20126, 20420, 20818, 21854, 23077, 23784, 25105,
  6055. [12123, 29273], 33469, 33706, 34558, 34905, 35357, 38463, 38597, 39187,
  6056. 40201, 40285, 22538, 23731, 23997, 24132, [24801, 63929], 24853, 25569,
  6057. [27138, 63764, 63836, 63935], 28197, 37122, 37716, 38990, 39952, 40823,
  6058. 23433, 23736, 25353, 26191, 26696, 30524, 38593, 38797, 38996, 39839,
  6059. 26017, 35585, 36555, 38332, 21813, 23721, 24022, 24245, 26263, 30284,
  6060. 33780, 38343, 22739, 25276, 29390, 40232, 20208, 22830, 24591, 26171,
  6061. 27523, 31207, 40230, 21395, 21696, 22467, 23830, 24859, 26326, 28079,
  6062. 30861, 33406, 38552, 38724, 21380, 25212, 25494, 28082, 32266, 33099,
  6063. 38989, 27387, 32588, 40367, 40474, 20063, 20539, 20918, 22812, 24825,
  6064. 25590, 26928, 29242, 32822, 37326, 24369, 32004, [33509, 63860], 33903,
  6065. 33979, 34277, 36493, 20335, 22756, 23363, 24665, 25562, 25880, 25965,
  6066. 26264, 26954, 27171, 27915, 28673, 29036, 30162, 30221, 31155, 31344,
  6067. [12154, 32650], 35140, 35731, 37312, 38525, 39178, 22276, 24481, 26044,
  6068. 28417, 30208, 31142, 35486, 39341, [12226, 39770], 40812, 20740, 25014,
  6069. 25233, 27277, 33222, 20547, 22576, 24422, 28937, [12180, 35328], 35578,
  6070. 23420, 34326, 20474, 20796, 22196, 22852, 25513, 28153, 23978, 26989,
  6071. 20870, 20104, 20313, 22914, 27487, 27741, 29877, 30998, 33287, 33349,
  6072. 33593, 36671, 36701, 39192, 20134, 22495, 24441, [26131, 63968], 30123,
  6073. 32377, 35695, 36870, 39515, 22181, 22567, 23032, 23071, 23476, 24310,
  6074. 25424, 25403, 26941, 27783, 27839, 28046, 28051, 28149, 28436, 28895,
  6075. 28982, 29017, 29123, 29141, 30799, 30831, 31605, 32227, 32303, 34893,
  6076. 36575, 37467, 40182, 24709, 28037, 29105, 38321, 21421, 26579, 28814,
  6077. 28976, 29744, 33398, 33490, 38331, 39653, 40573, 26308, 29121,
  6078. [33865, 63854], 22603, 23992, 24433, 26144, 26254, 27001, 27054, 27704,
  6079. 27891, 28214, 28481, 28634, 28699, 28719, 29008, 29151, 29552, 29787,
  6080. 29908, 30408, 31310, 32403, 33521, 35424, 36814, 37704, 38681, 20034,
  6081. 20522, 21000, 21473, 26355, 27757, 28618, 29450, 30591, 31330, 33454,
  6082. 34269, 34306, 35028, 35427, 35709, 35947, 37555, 38675, 38928, 20116,
  6083. 20237, 20425, 20658, 21320, 21566, 21555, 21978, 22626, 22714, 22887,
  6084. 23067, 23524, 24735, 25034, 25942, 26111, 26212, 26791, 27738, 28595,
  6085. 28879, 29100, 29522, 31613, 34568, 35492, 39986, 40711, 23627, 27779,
  6086. 29508, [12127, 29577], 37434, 28331, 29797, 30239, 31337, 32277, 34314,
  6087. 20800, 22725, 25793, 29934, 29973, 30320, 32705, 37013, 38605, 39252,
  6088. 28198, [12129, 29926], {f: 2, c: 31401}, 33253, 34521, 34680, 35355, 23113,
  6089. 23436, 23451, 26785, 26880, 28003, 29609, 29715, 29740, 30871, 32233,
  6090. 32747, 33048, 33109, 33694, 35916, [38446, 63942], 38929, [12104, 26352],
  6091. 24448, 26106, 26505, 27754, 29579, 20525, 23043, 27498, 30702, 22806,
  6092. 23916, 24013, 29477, 30031, 20709, 20985, 22575, 22829, 22934, 23002,
  6093. 23525, 23970, 25303, 25622, 25747, 25854, 26332, 27208, 29183, 29796,
  6094. 31368, 31407, 32327, 32350, 32768, 33136, 34799, 35201, 35616, 36953,
  6095. 36992, 39250, 24958, 27442, 28020, 32287, 35109, 36785, 20433, 20653,
  6096. 20887, 21191, 22471, 22665, 23481, 24248, 24898, 27029, 28044, 28263,
  6097. 28342, 29076, 29794, [12132, 29992], 29996, 32883, 33592, 33993, 36362,
  6098. 37780, 37854, 20110, 20305, 20598, 20778, [12060, 21448], 21451, 21491,
  6099. 23431, 23507, 23588, 24858, 24962, 26100, [12124, 29275], 29591, 29760,
  6100. 30402, 31056, 31121, 31161, 32006, [12155, 32701], 33419, 34261, 34398,
  6101. 36802, 36935, 37109, 37354, 38533, [12204, 38632], 38633, 21206, 24423,
  6102. 26093, 26161, 26671, 29020, 31286, 37057, 38922, 20113, 27218, 27550,
  6103. 28560, 29065, 32792, 33464, 34131, 36939, 38549, 38642, 38907, 34074,
  6104. 39729, 20112, 29066, 38596, 20803, 21407, 21729, 22291, 22290, 22435,
  6105. 23195, 23236, 23491, 24616, 24895, 25588, 27781, 27961, 28274, 28304,
  6106. 29232, 29503, 29783, 33489, 34945, 36677, 36960, 38498, 39000, 40219,
  6107. [12105, 26376], 36234, 37470, 20301, 20553, 20702, 21361, 22285, 22996,
  6108. 23041, 23561, 24944, 26256, 28205, 29234, 29771, 32239, 32963, 33806,
  6109. 33894, 34111, 34655, 34907, 35096, 35586, 36949, [12209, 38859], 39759,
  6110. 20083, 20369, 20754, 20842, 21807, 21929, 23418, 23461, {f: 2, c: 24188},
  6111. 24254, 24736, 24799, {f: 2, c: 24840}, 25540, 25912, 26377, 26580, 26586,
  6112. {f: 2, c: 26977}, 27833, 27943, 28216, 28641, {f: 2, c: 29494}, 29788,
  6113. 30001, 30290, 32173, 33278, 33848, 35029, 35480, 35547, 35565, 36400,
  6114. 36418, 36938, 36926, 36986, [12195, 37193], 37321, 37742, 22537, 27603,
  6115. [12161, 32905], 32946, 20801, 22891, 23609, 28516, 29607, 32996, 36103,
  6116. 37399, 38287, [12160, 32895], 25102, 28700, 32104, 34701, 22432, 24681,
  6117. 24903, 27575, 35518, 37504, 38577, [12036, 20057], 21535, 28139, 34093,
  6118. 38512, [12211, 38899], 39150, 25558, 27875, [12194, 37009], 20957, 25033,
  6119. 33210, 40441, 20381, 20506, 20736, 23452, 24847, 25087, 25836, 26885,
  6120. 27589, 30097, 30691, 32681, 33380, 34191, 34811, [12176, 34915], 35516,
  6121. 35696, 37291, [12038, 20108], 20197, 20234, 22839, 23016, 24050, 24347,
  6122. 24411, 24609, 29246, 29669, [30064, 63842], 30157, 31227, [12157, 32780],
  6123. [12159, 32819], 32900, 33505, 33617, 36029, 36019, 36999, 39156, 39180,
  6124. 28727, 30410, 32714, 32716, 32764, 35610, [12040, 20154], 20161, 20995,
  6125. 21360, [21693, 63902], 22240, 23035, 23493, 24341, 24525, 28270, 32106,
  6126. 33589, 34451, 35469, 38765, 38775, [12032, 19968], 20314, 20350, 22777,
  6127. [12103, 26085], 28322, 36920, 37808, 39353, 20219, 22764, 22922, 23001,
  6128. 24641, 31252, 33615, 36035, [12042, 20837], 21316, 20173, 21097, 23381,
  6129. 33471, 20180, [21050, 63999], 21672, 22985, 23039, [12070, 23376], 23383,
  6130. 23388, 24675, 24904, 28363, [28825, 63995], 29038, 29574, 29943, 30133,
  6131. 30913, 32043, 32773, [12163, 33258], 33576, 34071, 34249, 35566, 36039,
  6132. 38604, 20316, 21242, 22204, 26027, 26152, 28796, 28856, 29237, 32189,
  6133. 33421, 37196, 38592, 40306, 23409, 26855, 27544, 28538, 30430, 23697,
  6134. 26283, 28507, 31668, 31786, 34870, 38620, 19976, 20183, 21280, 22580,
  6135. 22715, 22767, 22892, 23559, 24115, 24196, 24373, 25484, 26290, 26454,
  6136. 27167, 27299, 27404, 28479, 29254, 29520, 29835, 31456, 31911, 33144,
  6137. 33247, 33255, 33674, 33900, 34083, 34196, 34255, 35037, 36115, 37292,
  6138. [12199, 38263], 38556, 20877, 21705, 22312, 23472, 25165, 26448, 26685,
  6139. 26771, 28221, 28371, 28797, 32289, 35009, 36001, 36617, 40779, 40782,
  6140. 29229, 31631, 35533, 37658, 20295, 20302, 20786, 21632, 22992, 24213,
  6141. 25269, 26485, 26990, 27159, 27822, 28186, 29401, 29482, 30141, 31672,
  6142. 32053, 33511, 33785, 33879, 34295, 35419, 36015, 36487, 36889, 37048,
  6143. 38606, 40799, 21219, 21514, 23265, 23490, 25688, 25973, 28404, 29380,
  6144. 30340, 31309, 31515, 31821, 32318, 32735, 33659, 35627, 36042,
  6145. [12186, 36196], 36321, 36447, 36842, 36857, 36969, 37841, 20291, 20346,
  6146. 20659, 20840, 20856, 21069, 21098, 22625, 22652, 22880, 23560, 23637,
  6147. 24283, 24731, 25136, 26643, 27583, 27656, 28593, 29006, 29728,
  6148. [12133, 30000], 30008, 30033, 30322, 31564, 31627, 31661, 31686, 32399,
  6149. 35438, 36670, 36681, 37439, 37523, 37666, 37931, 38651, 39002, 39019,
  6150. 39198, [20999, 64000], 25130, 25240, 27993, 30308, 31434, 31680, 32118,
  6151. 21344, 23742, 24215, 28472, 28857, 31896, 38673, 39822, 40670, 25509,
  6152. 25722, 34678, 19969, 20117, 20141, 20572, 20597, 21576, 22979, 23450,
  6153. 24128, 24237, 24311, 24449, 24773, 25402, 25919, 25972, 26060, 26230,
  6154. 26232, 26622, 26984, 27273, 27491, 27712, 28096, 28136, 28191, 28254,
  6155. 28702, 28833, 29582, 29693, 30010, 30555, 30855, 31118, 31243, 31357,
  6156. 31934, 32142, 33351, 35330, 35562, 35998, 37165, 37194, 37336, 37478,
  6157. 37580, 37664, 38662, 38742, 38748, 38914, [12237, 40718], 21046, 21137,
  6158. 21884, 22564, 24093, 24351, 24716, 25552, 26799, 28639, 31085, 31532,
  6159. 33229, 34234, 35069, 35576, 36420, 37261, 38500, 38555, 38717, 38988,
  6160. [12241, 40778], 20430, 20806, 20939, 21161, 22066, 24340, 24427, 25514,
  6161. 25805, 26089, 26177, 26362, 26361, 26397, 26781, 26839, 27133, 28437,
  6162. 28526, 29031, 29157, [12118, 29226], 29866, 30522, 31062, 31066, 31199,
  6163. 31264, 31381, 31895, 31967, 32068, 32368, 32903, 34299, 34468, 35412,
  6164. 35519, 36249, 36481, 36896, 36973, 37347, 38459, 38613, [12227, 40165],
  6165. 26063, 31751, [12188, 36275], 37827, 23384, 23562, 21330, 25305, 29469,
  6166. 20519, 23447, 24478, 24752, 24939, 26837, 28121, 29742, 31278, 32066,
  6167. 32156, 32305, 33131, 36394, 36405, 37758, 37912, 20304, 22352, 24038,
  6168. 24231, 25387, 32618, 20027, 20303, 20367, 20570, 23005, 32964, 21610,
  6169. 21608, 22014, 22863, 23449, 24030, 24282, 26205, 26417, 26609, 26666,
  6170. 27880, 27954, 28234, 28557, 28855, 29664, 30087, 31820, 32002, 32044,
  6171. 32162, [12168, 33311], 34523, 35387, 35461, [12187, 36208], 36490, 36659,
  6172. 36913, 37198, 37202, 37956, 39376, [12149, 31481], 31909, 20426, 20737,
  6173. 20934, 22472, 23535, 23803, 26201, 27197, 27994, 28310, 28652, 28940,
  6174. 30063, 31459, 34850, 36897, 36981, 38603, 39423, 33537, 20013, 20210,
  6175. 34886, 37325, 21373, 27355, 26987, 27713, 33914, 22686, 24974, 26366,
  6176. 25327, 28893, 29969, 30151, 32338, 33976, 35657, 36104, 20043, 21482,
  6177. 21675, 22320, 22336, 24535, 25345, 25351, 25711, [12096, 25903], 26088,
  6178. 26234, 26525, 26547, [12108, 27490], 27744, 27802, 28460, 30693, 30757,
  6179. 31049, 31063, 32025, 32930, 33026, [12164, 33267], 33437, 33463, 34584,
  6180. 35468, 36100, 36286, 36978, 30452, 31257, 31287, 32340, 32887, 21767,
  6181. 21972, 22645, 25391, 25634, 26185, 26187, 26733, 27035, 27524, 27941,
  6182. 28337, 29645, 29800, 29857, 30043, 30137, 30433, 30494, 30603, 31206,
  6183. 32265, 32285, 33275, 34095, 34967, 35386, 36049, 36587,
  6184. [12192, 36784, 63857], 36914, 37805, 38499, 38515, 38663, 20356, 21489,
  6185. 23018, 23241, 24089, 26702, 29894, 30142, 31209, 31378, 33187, 34541,
  6186. 36074, 36300, 36845, 26015, 26389, 22519, 28503, 32221, 36655, 37878,
  6187. 38598, 24501, 25074, 28548, 19988, 20376, 20511, 21449, 21983, 23919,
  6188. 24046, 27425, 27492, 30923, 31642, 36425, [12190, 36554, 63746], 36974,
  6189. 25417, 25662, 30528, 31364, 37679, 38015, 40810, 25776, 28591, 29158,
  6190. 29864, 29914, 31428, 31762, 32386, 31922, 32408, 35738, 36106, 38013,
  6191. 39184, 39244, 21049, 23519, 25830, 26413, 32046, 20717, [21443, 63851],
  6192. 22649, {f: 2, c: 24920}, 25082, 26028, 31449, 35730, 35734, 20489, 20513,
  6193. 21109, 21809, 23100, 24288, 24432, 24884, 25950, 26124, 26166, 26274,
  6194. 27085, 28356, 28466, 29462, 30241, 31379, 33081, 33369, 33750, 33980,
  6195. 20661, 22512, 23488, 23528, 24425, 25505, 30758, 32181, 33756, 34081,
  6196. 37319, 37365, 20874, 26613, 31574, 36012, 20932, 22971, 24765, 34389,
  6197. 20508, 21076, 23610, 24957, 25114, [25299, 64002], 25842, 26021, 28364,
  6198. 30240, 33034, 36448, 38495, 38587, 20191, 21315, 21912, 22825, 24029,
  6199. 25797, 27849, 28154, 29588, 31359, [12167, 33307], 34214, 36068, 36368,
  6200. 36983, 37351, 38369, 38433, 38854, 20984, 21746, 21894, 24505, 25764,
  6201. 28552, 32180, 36639, 36685, 37941, 20681, 23574, 27838, 28155, 29979,
  6202. 30651, 31805, 31844, 35449, 35522, 22558, 22974, 24086, 25463, 29266,
  6203. 30090, 30571, 35548, 36028, 36626, 24307, 26228, 28152, 32893, 33729,
  6204. 35531, [12205, 38737], 39894, 21059, 26367, 28053, 28399, 32224, 35558,
  6205. 36910, 36958, 39636, 21021, 21119, 21736, 24980, 25220, 25307, 26786,
  6206. 26898, 26970, 27189, 28818, 28966, 30813, 30977, 30990, 31186, 31245,
  6207. 32918, [12171, 33400], 33493, 33609, 34121, 35970, 36229, 37218, 37259,
  6208. 37294, 20419, 22225, 29165, 30679, 34560, 35320, [12072, 23544], 24534,
  6209. 26449, 37032, 21474, 22618, 23541, 24740, 24961, 25696, 32317, 32880,
  6210. 34085, 37507, 25774, 20652, 23828, 26368, 22684, 25277, 25512, 26894,
  6211. 27000, 27166, 28267, 30394, 31179, 33467, 33833, 35535, 36264, 36861,
  6212. 37138, 37195, 37276, 37648, 37656, 37786, 38619, 39478, 39949, 19985,
  6213. 30044, 31069, 31482, 31569, 31689, 32302, 33988, 36441, 36468, 36600,
  6214. 36880, 26149, 26943, 29763, 20986, 26414, 40668, 20805, 24544, 27798,
  6215. 34802, 34909, 34935, 24756, 33205, 33795, 36101, 21462, 21561, 22068,
  6216. 23094, 23601, 28810, 32736, 32858, 33030, 33261, 36259, 37257, 39519,
  6217. 40434, 20596, 20164, 21408, 24827, 28204, 23652, 20360, 20516, 21988,
  6218. 23769, 24159, 24677, 26772, 27835, 28100, 29118, 30164, 30196, 30305,
  6219. 31258, 31305, 32199, 32251, 32622, 33268, 34473, 36636, 38601, 39347,
  6220. [12242, 40786], 21063, 21189, 39149, 35242, 19971, 26578, 28422, 20405,
  6221. 23522, 26517, [27784, 63858], 28024, 29723, 30759, 37341, 37756, 34756,
  6222. 31204, 31281, 24555, 20182, 21668, 21822, 22702, 22949, 24816, 25171,
  6223. 25302, 26422, 26965, 33333, 38464, 39345, 39389, 20524, 21331, 21828,
  6224. 22396, 25176, 25826, 26219, 26589, 28609, 28655, 29730, 29752, 35351,
  6225. 37944, 21585, 22022, 22374, 24392, 24986, 27470, 28760, 28845, 32187,
  6226. 35477, 22890, 33067, 25506, 30472, 32829, 36010, 22612, 25645, 27067,
  6227. 23445, 24081, 28271, 34153, 20812, 21488, 22826, 24608, 24907, 27526,
  6228. 27760, 27888, 31518, 32974, 33492, 36294, 37040, 39089, 25799, 28580,
  6229. 25745, 25860, 20814, 21520, [12063, 22303], 35342, 24927, 26742, 30171,
  6230. 31570, 32113, 36890, 22534, 27084, 33151, 35114, 36864, 38969, 20600,
  6231. 22871, 22956, 25237, 36879, 39722, 24925, 29305, 38358, 22369, 23110,
  6232. 24052, 25226, 25773, 25850, 26487, 27874, 27966, 29228, 29750, 30772,
  6233. 32631, 33453, 36315, 38935, 21028, 22338, 26495, 29256, 29923, 36009,
  6234. 36774, 37393, 38442, [12043, 20843], 21485, 25420, 20329, 21764, 24726,
  6235. 25943, 27803, 28031, 29260, 29437, 31255, 35207, [12185, 35997], 24429,
  6236. 28558, 28921, 33192, 24846, [20415, 63845], 20559, 25153, [12122, 29255],
  6237. 31687, 32232, 32745, 36941, 38829, 39449, 36022, 22378, 24179, 26544,
  6238. 33805, 35413, 21536, 23318, 24163, 24290, 24330, 25987, 32954, 34109,
  6239. 38281, 38491, 20296, 21253, 21261, 21263, 21638, 21754, 22275, 24067,
  6240. 24598, 25243, 25265, 25429, 27873, 28006, 30129, 30770, 32990, 33071,
  6241. 33502, 33889, 33970, 34957, 35090, 36875, 37610, 39165, 39825, 24133,
  6242. [26292, 64006], 26333, 28689, 29190, 20469, 21117, 24426, 24915, 26451,
  6243. 27161, 28418, 29922, 31080, 34920, 35961, 39111, 39108, 39491, 21697,
  6244. 31263, 26963, 35575, 35914, [12213, 39080], 39342, 24444, 25259, 30130,
  6245. [12138, 30382], 34987, 36991, 38466, 21305, 24380, 24517, [27852, 63848],
  6246. 29644, 30050, [12134, 30091], 31558, 33534, 39325, 20047, 36924, 19979,
  6247. 20309, 21414, 22799, 24264, 26160, 27827, 29781, 33655, 34662, 36032,
  6248. 36944, 38686, 39957, 22737, 23416, 34384, 35604, 40372, 23506, 24680,
  6249. 24717, 26097, 27735, 28450, 28579, 28698, 32597, 32752, {f: 2, c: 38289},
  6250. 38480, 38867, 21106, 36676, 20989, 21547, 21688, 21859, 21898, 27323,
  6251. 28085, 32216, 33382, 37532, 38519, 40569, 21512, 21704, 30418, 34532,
  6252. 38308, 38356, 38492, 20130, 20233, 23022, 23270, 24055, 24658, 25239,
  6253. 26477, 26689, 27782, 28207, 32568, 32923, 33322, 38917, 20133, 20565,
  6254. 21683, 22419, 22874, 23401, 23475, 25032, 26999, 28023, 28707, 34809,
  6255. 35299, 35442, 35559, 36994, 39405, 39608, 21182, 26680, 20502, 24184,
  6256. 26447, 33607, [12175, 34892, 64008], 20139, 21521, 22190, 29670, 37141,
  6257. 38911, 39177, 39255, [12217, 39321], 22099, 22687, 34395, 35377, 25010,
  6258. 27382, 29563, 36562, 27463, 38570, 39511, 22869, 29184, 36203,
  6259. [12208, 38761], 20436, 23796, 24358, 25080, 26203, 27883, 28843,
  6260. [12126, 29572], 29625, 29694, 30505, 30541, 32067, 32098, 32291, 33335,
  6261. 34898, 36066, 37449, 39023, 23377, [12147, 31348], [12174, 34880],
  6262. [12212, 38913], 23244, 20448, 21332, 22846, 23805, 25406, 28025, 29433,
  6263. 33029, 33031, 33698, 37583, 38960, 20136, 20804, 21009, 22411, 24418,
  6264. 27842, 28366, 28677, 28752, 28847, 29074, 29673, [29801, 63918], 33610,
  6265. 34722, 34913, 36872, 37026, 37795, 39336, 20846, 24407, 24800, 24935,
  6266. 26291, 34137, 36426, 37295, 38795, 20046, 20114, 21628, 22741, 22778,
  6267. 22909, 23733, 24359, [12094, 25142], 25160, 26122, 26215, 27627, 28009,
  6268. 28111, 28246, 28408, 28564, 28640, 28649, 28765, 29392, 29733, 29786,
  6269. 29920, 30355, 31068, 31946, 32286, 32993, 33446, 33899, 33983, 34382,
  6270. 34399, 34676, 35703, 35946, 37804, 38912, 39013, 24785, 25110, 37239,
  6271. 23130, 26127, 28151, 28222, 29759, 39746, 24573, 24794, 31503, 21700,
  6272. 24344, 27742, 27859, 27946, 28888, 32005, 34425, 35340, 40251, 21270,
  6273. 21644, 23301, 27194, [12117, 28779], 30069, 31117, [12146, 31166], 33457,
  6274. 33775, 35441, 35649, 36008, 38772, 25844, 25899, {f: 2, c: 30906}, 31339,
  6275. 20024, 21914, 22864, 23462, 24187, 24739, 25563, 27489, 26213, 26707,
  6276. 28185, 29029, 29872, 32008, 36996, 39529, 39973, 27963, [28369, 63748],
  6277. 29502, 35905, 38346, 20976, 24140, 24488, 24653, 24822, 24880, 24908,
  6278. {f: 2, c: 26179}, 27045, 27841, 28255, 28361, 28514, 29004, 29852, 30343,
  6279. 31681, 31783, 33618, 34647, 36945, 38541, [12232, 40643], 21295, 22238,
  6280. 24315, 24458, 24674, 24724, 25079, 26214, 26371, 27292, 28142, 28590,
  6281. 28784, 29546, 32362, 33214, 33588, 34516, 35496, 36036, 21123, 29554,
  6282. 23446, 27243, 37892, 21742, 22150, 23389, 25928, 25989, 26313, 26783,
  6283. 28045, 28102, [12120, 29243], 32948, 37237, 39501, 20399, 20505, 21402,
  6284. 21518, 21564, 21897, 21957, 24127, 24460, 26429, 29030, 29661, 36869,
  6285. 21211, 21235, 22628, 22734, 28932, 29071, 29179, 34224, 35347,
  6286. [26248, 63941], 34216, 21927, 26244, 29002, 33841, 21321, 21913, 27585,
  6287. 24409, 24509, 25582, 26249, 28999, 35569, 36637, 40638, 20241, 25658,
  6288. 28875, 30054, 34407, 24676, 35662, 40440, 20807, 20982, 21256, 27958,
  6289. 33016, [12234, 40657], 26133, 27427, 28824, 30165, 21507, 23673, 32007,
  6290. 35350, [12107, 27424], 27453, 27462, 21560, 24688, 27965, 32725, 33288,
  6291. 20694, 20958, 21916, 22123, 22221, 23020, 23305, 24076, 24985, 24984,
  6292. 25137, 26206, 26342, 29081, {f: 2, c: 29113}, 29351, 31143, 31232, 32690,
  6293. 35440, {s: 163}, {f: 4, c: 12310}, {s: 14}, 8223, 8219, {f: 2, c: 8314},
  6294. {s: 7}, 8316, 0, {f: 2, c: 8317}, {s: 23}, 700, {s: 44}, 8942, 8759,
  6295. {s: 20}, {f: 10, c: 10122}, {s: 36}, {f: 26, c: 9398}, {s: 61},
  6296. {f: 2, c: 8826}, {f: 2, c: 8910}, {f: 2, c: 8832}, {f: 4, c: 8816}, 0,
  6297. 8842, 0, 8843, {f: 2, c: 8822}, 8825, {f: 2, c: 8922}, {s: 5}, 8773, 8771,
  6298. 8776, 0, 8868, {s: 78}, 8244, {s: 11}, 9839, {s: 4}, 8258, {s: 4}, 10045,
  6299. 0, 0, 8226, {s: 4}, {f: 2, c: 8249}, {s: 16}, 10010, 10006, 0, 9711,
  6300. {s: 3}, 10070, 0, 9676, {s: 24}, 9775, {s: 6}, 12320, 0, {f: 10, c: 10102},
  6301. {s: 17}, 12306, 12342, {s: 13}, 8710, 0, 8735, 0, {f: 2, c: 8741}, 0, 8787,
  6302. 8785, {f: 2, c: 8806}, 8723, {f: 3, c: 8853}, 0, 8980, 0, 0, 8802, 0, 9649,
  6303. 0, 8738, 8784, 0, 0, 8867, 0, 0, {f: 2, c: 8814}, 8837, 8836, 8713, 8716,
  6304. {f: 2, c: 8891}, 8794, 8966, {s: 6}, 12958, 0, 8252, {s: 11}, 9702, {s: 3},
  6305. 9663, 9653, 9657, 9667, {s: 4}, 9674, 12849, 12857, 13259, {f: 5, c: 9327},
  6306. {s: 18}, 8656, 8655, 8653, {s: 37}, 8657, 8659, {s: 8}, 8626, 8625, 0,
  6307. 8628, 8624, 8627, {s: 14}, 8636, 8640, {s: 10}, {f: 2, c: 8644}, {s: 144},
  6308. {f: 5, c: 9347}, {s: 33}, 12948, {s: 15}, 12965, {s: 93}, 8672, 8674, 8673,
  6309. 8675, {s: 4}, 8678, 8680, 8679, 8681, {s: 20}, 9757, 9759, {s: 76}, 12944,
  6310. {f: 6, c: 12938}, {s: 15}, {f: 2, c: 12318}, 8246, 0, 8245, {s: 3}, 12540,
  6311. 0, 0, {f: 2, c: 44034}, {f: 2, c: 44037}, {f: 5, c: 44043}, 44056,
  6312. {f: 2, c: 44062}, {f: 3, c: 44065}, {f: 7, c: 44069}, 44078,
  6313. {f: 6, c: 44082}, {f: 2, c: 44090}, {f: 3, c: 44093}, {f: 10, c: 44097},
  6314. 44108, {f: 6, c: 44110}, {f: 3, c: 44117}, {f: 3, c: 44121},
  6315. {f: 19, c: 44125}, {f: 2, c: 44146}, {f: 2, c: 44149}, 44153,
  6316. {f: 5, c: 44155}, 44162, {f: 2, c: 44167}, {f: 3, c: 44173},
  6317. {f: 3, c: 44177}, {f: 7, c: 44181}, 44190, {f: 6, c: 44194}, 44203,
  6318. {f: 2, c: 44205}, {f: 7, c: 44209}, 44218, {f: 3, c: 44222},
  6319. {f: 2, c: 44226}, {f: 3, c: 44229}, {f: 3, c: 44233}, {f: 8, c: 44237},
  6320. 44246, {f: 8, c: 44248}, {f: 2, c: 44258}, {f: 2, c: 44261}, 44265, 44267,
  6321. {f: 2, c: 44269}, 44274, 44276, {f: 5, c: 44279}, {f: 2, c: 44286},
  6322. {f: 3, c: 44289}, 44293, {f: 5, c: 44295}, 44302, 44304, {f: 6, c: 44306},
  6323. {f: 3, c: 44313}, {f: 3, c: 44317}, {f: 8, c: 44321}, {f: 2, c: 44330},
  6324. {f: 6, c: 44334}, {f: 2, c: 44342}, {f: 3, c: 44345}, {f: 7, c: 44349},
  6325. 44358, 44360, {f: 6, c: 44362}, {f: 3, c: 44369}, {f: 3, c: 44373},
  6326. {f: 8, c: 44377}, 44386, {f: 8, c: 44388}, {f: 2, c: 44398},
  6327. {f: 2, c: 44401}, {f: 4, c: 44407}, 44414, 44416, {f: 5, c: 44419},
  6328. {f: 2, c: 44426}, {f: 3, c: 44429}, {f: 11, c: 44433}, {f: 6, c: 44446},
  6329. {f: 18, c: 44453}, {f: 8, c: 44472}, {f: 2, c: 44482}, {f: 3, c: 44485},
  6330. {f: 7, c: 44489}, 44498, {f: 8, c: 44500}, {f: 3, c: 44509},
  6331. {f: 3, c: 44513}, {f: 19, c: 44517}, {f: 2, c: 44538}, {f: 2, c: 44541},
  6332. {f: 6, c: 44546}, 44554, 44556, {f: 6, c: 44558}, {f: 27, c: 44565},
  6333. {f: 2, c: 44594}, {f: 2, c: 44597}, 44601, {f: 5, c: 44603}, 44610, 44612,
  6334. {f: 3, c: 44615}, 44619, 44623, {f: 3, c: 44625}, 44629, {f: 5, c: 44631},
  6335. 44638, {f: 3, c: 44642}, {f: 2, c: 44646}, {f: 2, c: 44650},
  6336. {f: 3, c: 44653}, {f: 7, c: 44657}, 44666, {f: 6, c: 44670},
  6337. {f: 6, c: 44678}, {f: 47, c: 44685}, 44735, {f: 3, c: 44737},
  6338. {f: 7, c: 44741}, 44750, {f: 6, c: 44754}, {f: 2, c: 44762},
  6339. {f: 11, c: 44765}, {f: 2, c: 44777}, 44780, {f: 6, c: 44782},
  6340. {f: 3, c: 44789}, {f: 3, c: 44793}, {f: 10, c: 44797}, {f: 4, c: 44809},
  6341. {f: 2, c: 44814}, {f: 27, c: 44817}, {f: 2, c: 44846}, 44849, 44851,
  6342. {f: 7, c: 44853}, 44862, 44864, {f: 4, c: 44868}, {f: 6, c: 44874},
  6343. {f: 11, c: 44881}, {f: 6, c: 44894}, {f: 19, c: 44902}, {f: 6, c: 44922},
  6344. {f: 3, c: 44929}, {f: 3, c: 44933}, {f: 7, c: 44937}, {f: 3, c: 44946},
  6345. {f: 6, c: 44950}, {f: 27, c: 44957}, {f: 2, c: 44986}, {f: 3, c: 44989},
  6346. {f: 6, c: 44993}, 45002, 45004, {f: 5, c: 45007}, {f: 7, c: 45013},
  6347. {f: 11, c: 45021}, {f: 6, c: 45034}, {f: 2, c: 45042}, {f: 3, c: 45045},
  6348. {f: 7, c: 45049}, {f: 2, c: 45058}, {f: 7, c: 45061}, {f: 3, c: 45069},
  6349. {f: 3, c: 45073}, {f: 7, c: 45077}, {f: 10, c: 45086}, {f: 27, c: 45097},
  6350. {f: 2, c: 45126}, 45129, 45131, 45133, {f: 4, c: 45135}, 45142, 45144,
  6351. {f: 3, c: 45146}, {f: 30, c: 45150}, {f: 2, c: 45182}, {f: 3, c: 45185},
  6352. {f: 7, c: 45189}, 45198, 45200, {f: 6, c: 45202}, 45211, {f: 2, c: 45213},
  6353. {f: 5, c: 45219}, 45226, 45232, 45234, {f: 2, c: 45238}, {f: 3, c: 45241},
  6354. {f: 7, c: 45245}, 45254, {f: 6, c: 45258}, {f: 2, c: 45266},
  6355. {f: 3, c: 45269}, {f: 7, c: 45273}, {f: 4, c: 45281}, {f: 34, c: 45286},
  6356. 45322, {f: 3, c: 45325}, 45329, {f: 4, c: 45332}, 45338, {f: 5, c: 45342},
  6357. {f: 2, c: 45350}, {f: 3, c: 45353}, {f: 7, c: 45357}, 45366,
  6358. {f: 6, c: 45370}, {f: 2, c: 45378}, {f: 3, c: 45381}, {f: 7, c: 45385},
  6359. {f: 2, c: 45394}, {f: 2, c: 45398}, {f: 3, c: 45401}, {f: 3, c: 45405},
  6360. {f: 23, c: 45409}, {f: 2, c: 45434}, {f: 3, c: 45437}, 45441,
  6361. {f: 5, c: 45443}, 45450, 45452, {f: 4, c: 45454}, {f: 3, c: 45461},
  6362. {f: 3, c: 45465}, {f: 11, c: 45469}, {f: 35, c: 45481}, {f: 3, c: 45517},
  6363. {f: 3, c: 45521}, {f: 7, c: 45525}, 45534, {f: 8, c: 45536},
  6364. {f: 2, c: 45546}, {f: 3, c: 45549}, {f: 8, c: 45553}, 45562, 45564,
  6365. {f: 6, c: 45566}, {f: 2, c: 45574}, {f: 2, c: 45577}, {f: 7, c: 45581},
  6366. 45590, 45592, {f: 6, c: 45594}, {f: 19, c: 45601}, {f: 7, c: 45621},
  6367. {f: 27, c: 45629}, {f: 3, c: 45657}, {f: 3, c: 45661}, {f: 7, c: 45665},
  6368. {f: 10, c: 45674}, {f: 6, c: 45686}, {f: 7, c: 45693}, {f: 3, c: 45702},
  6369. {f: 6, c: 45706}, {f: 2, c: 45714}, {f: 3, c: 45717}, {f: 5, c: 45723},
  6370. 45730, 45732, {f: 3, c: 45735}, 45739, {f: 3, c: 45741}, {f: 3, c: 45745},
  6371. {f: 19, c: 45749}, {f: 2, c: 45770}, {f: 3, c: 45773}, 45777,
  6372. {f: 5, c: 45779}, 45786, 45788, {f: 4, c: 45790}, 45795, 45799,
  6373. {f: 2, c: 45801}, {f: 3, c: 45808}, 45814, {f: 3, c: 45820},
  6374. {f: 2, c: 45826}, {f: 3, c: 45829}, {f: 7, c: 45833}, 45842,
  6375. {f: 6, c: 45846}, {f: 55, c: 45853}, 45911, {f: 2, c: 45913}, 45917,
  6376. {f: 4, c: 45920}, 45926, 45928, 45930, {f: 2, c: 45932}, 45935,
  6377. {f: 2, c: 45938}, {f: 3, c: 45941}, {f: 7, c: 45945}, 45954,
  6378. {f: 6, c: 45958}, {f: 3, c: 45965}, {f: 3, c: 45969}, {f: 11, c: 45973},
  6379. {f: 6, c: 45986}, {f: 3, c: 45993}, {f: 23, c: 45997}, {f: 2, c: 46022},
  6380. {f: 2, c: 46025}, 46029, 46031, {f: 3, c: 46033}, 46038, 46040, 46042,
  6381. 46044, {f: 2, c: 46046}, {f: 3, c: 46049}, {f: 3, c: 46053},
  6382. {f: 19, c: 46057}, {f: 19, c: 46077}, {f: 7, c: 46097}, {f: 3, c: 46105},
  6383. {f: 3, c: 46109}, {f: 7, c: 46113}, 46122, {f: 8, c: 46124},
  6384. {f: 27, c: 46133}, {f: 2, c: 46162}, {f: 3, c: 46165}, {f: 7, c: 46169},
  6385. 46178, 46180, {f: 6, c: 46182}, {f: 19, c: 46189}, {f: 7, c: 46209},
  6386. {f: 20, c: 46217}, {f: 6, c: 46238}, {f: 3, c: 46245}, {f: 3, c: 46249},
  6387. {f: 8, c: 46253}, 46262, 46264, {f: 6, c: 46266}, {f: 3, c: 46273},
  6388. {f: 3, c: 46277}, {f: 7, c: 46281}, {f: 4, c: 46289}, {f: 6, c: 46294},
  6389. {f: 2, c: 46302}, {f: 2, c: 46305}, 46309, {f: 5, c: 46311}, 46318, 46320,
  6390. {f: 6, c: 46322}, {f: 27, c: 46329}, {f: 2, c: 46358}, {f: 2, c: 46361},
  6391. {f: 7, c: 46365}, 46374, {f: 5, c: 46379}, {f: 2, c: 46386},
  6392. {f: 3, c: 46389}, {f: 7, c: 46393}, 46402, {f: 5, c: 46406},
  6393. {f: 2, c: 46414}, {f: 3, c: 46417}, {f: 7, c: 46421}, 46430,
  6394. {f: 62, c: 46434}, {f: 2, c: 46498}, {f: 3, c: 46501}, 46505,
  6395. {f: 4, c: 46508}, 46514, {f: 5, c: 46518}, {f: 2, c: 46526},
  6396. {f: 3, c: 46529}, {f: 7, c: 46533}, 46542, {f: 6, c: 46546},
  6397. {f: 19, c: 46553}, {f: 35, c: 46573}, {f: 2, c: 46610}, {f: 3, c: 46613},
  6398. {f: 12, c: 46617}, {f: 6, c: 46630}, {f: 7, c: 46637}, {f: 19, c: 46645},
  6399. {f: 27, c: 46665}, {f: 3, c: 46693}, {f: 51, c: 46697}, {f: 2, c: 46750},
  6400. {f: 3, c: 46753}, {f: 6, c: 46757}, {f: 4, c: 46765}, {f: 34, c: 46770},
  6401. {f: 27, c: 46805}, {f: 3, c: 46833}, {f: 3, c: 46837}, {f: 7, c: 46841},
  6402. {f: 3, c: 46850}, {f: 34, c: 46854}, {f: 2, c: 46890}, {f: 2, c: 46893},
  6403. {f: 7, c: 46897}, 46906, {f: 8, c: 46908}, {f: 3, c: 46917},
  6404. {f: 3, c: 46921}, {f: 7, c: 46925}, {f: 10, c: 46934}, {f: 3, c: 46945},
  6405. {f: 3, c: 46949}, {f: 7, c: 46953}, 46962, 46964, {f: 6, c: 46966},
  6406. {f: 2, c: 46974}, {f: 3, c: 46977}, {f: 7, c: 46981}, 46990,
  6407. {f: 3, c: 46995}, {f: 2, c: 47002}, {f: 3, c: 47005}, {f: 7, c: 47009},
  6408. 47018, {f: 6, c: 47022}, {f: 2, c: 47030}, {f: 14, c: 47033}, 47048,
  6409. {f: 34, c: 47050}, {f: 2, c: 47086}, {f: 3, c: 47089}, {f: 7, c: 47093},
  6410. 47102, {f: 5, c: 47106}, {f: 2, c: 47114}, {f: 3, c: 47117},
  6411. {f: 7, c: 47121}, 47130, 47132, {f: 6, c: 47134}, {f: 2, c: 47142},
  6412. {f: 3, c: 47145}, {f: 7, c: 47149}, 47158, {f: 6, c: 47162},
  6413. {f: 3, c: 47169}, {f: 12, c: 47173}, 47186, {f: 8, c: 47188},
  6414. {f: 2, c: 47198}, {f: 3, c: 47201}, {f: 7, c: 47205}, 47214, 47216,
  6415. {f: 6, c: 47218}, {f: 3, c: 47225}, {f: 16, c: 47229}, {f: 26, c: 47246},
  6416. {f: 7, c: 47273}, {f: 3, c: 47281}, {f: 3, c: 47285}, {f: 7, c: 47289},
  6417. 47298, 47300, {f: 6, c: 47302}, {f: 3, c: 47309}, {f: 3, c: 47313},
  6418. {f: 8, c: 47317}, 47326, 47328, {f: 6, c: 47330}, {f: 2, c: 47338},
  6419. {f: 3, c: 47341}, {f: 7, c: 47345}, 47354, 47356, {f: 6, c: 47358},
  6420. {f: 19, c: 47365}, {f: 7, c: 47385}, {f: 27, c: 47393}, {f: 2, c: 47422},
  6421. {f: 3, c: 47425}, {f: 7, c: 47429}, {f: 2, c: 47437}, 47440,
  6422. {f: 6, c: 47442}, {f: 2, c: 47450}, {f: 3, c: 47453}, {f: 7, c: 47457},
  6423. 47466, 47468, {f: 6, c: 47470}, {f: 2, c: 47478}, {f: 3, c: 47481},
  6424. {f: 7, c: 47485}, 47494, 47496, {f: 2, c: 47499}, {f: 29, c: 47503},
  6425. {f: 2, c: 47534}, {f: 3, c: 47537}, {f: 7, c: 47541}, 47550, 47552,
  6426. {f: 6, c: 47554}, {f: 2, c: 47562}, 47565, {f: 5, c: 47571}, 47578, 47580,
  6427. {f: 2, c: 47583}, 47586, {f: 2, c: 47590}, {f: 3, c: 47593},
  6428. {f: 7, c: 47597}, 47606, {f: 5, c: 47611}, {f: 6, c: 47618},
  6429. {f: 12, c: 47625}, {f: 34, c: 47638}, {f: 2, c: 47674}, {f: 3, c: 47677},
  6430. 47681, {f: 5, c: 47683}, 47690, 47692, {f: 4, c: 47695}, {f: 2, c: 47702},
  6431. {f: 3, c: 47705}, {f: 7, c: 47709}, 47718, {f: 6, c: 47722},
  6432. {f: 2, c: 47730}, {f: 3, c: 47733}, {f: 10, c: 47737}, 47750,
  6433. {f: 4, c: 47752}, {f: 27, c: 47757}, 47786, {f: 3, c: 47789}, 47793,
  6434. {f: 5, c: 47795}, 47802, 47804, {f: 6, c: 47806}, {f: 3, c: 47813},
  6435. {f: 15, c: 47817}, {f: 34, c: 47834}, {f: 3, c: 47869}, {f: 3, c: 47873},
  6436. {f: 8, c: 47877}, 47886, 47888, {f: 6, c: 47890}, {f: 3, c: 47897},
  6437. {f: 3, c: 47901}, {f: 8, c: 47905}, 47914, {f: 8, c: 47916}, 47927,
  6438. {f: 2, c: 47929}, {f: 5, c: 47935}, 47942, 47944, {f: 3, c: 47946}, 47950,
  6439. {f: 3, c: 47953}, {f: 3, c: 47957}, {f: 8, c: 47961}, 47970,
  6440. {f: 8, c: 47972}, {f: 27, c: 47981}, {f: 3, c: 48009}, {f: 3, c: 48013},
  6441. {f: 19, c: 48017}, {f: 3, c: 48037}, {f: 3, c: 48041}, {f: 7, c: 48045},
  6442. {f: 2, c: 48053}, {f: 8, c: 48056}, {f: 3, c: 48065}, {f: 3, c: 48069},
  6443. {f: 7, c: 48073}, {f: 2, c: 48081}, {f: 36, c: 48084}, {f: 2, c: 48122},
  6444. {f: 2, c: 48125}, 48129, {f: 5, c: 48131}, 48138, 48142, 48144,
  6445. {f: 2, c: 48146}, {f: 2, c: 48153}, {f: 4, c: 48160}, 48166, 48168,
  6446. {f: 3, c: 48170}, {f: 2, c: 48174}, {f: 2, c: 48178}, {f: 3, c: 48181},
  6447. {f: 7, c: 48185}, 48194, {f: 3, c: 48198}, {f: 2, c: 48202},
  6448. {f: 2, c: 48206}, {f: 12, c: 48209}, {f: 38, c: 48222}, {f: 2, c: 48262},
  6449. {f: 2, c: 48265}, 48269, {f: 5, c: 48271}, 48278, 48280, {f: 5, c: 48283},
  6450. {f: 2, c: 48290}, {f: 2, c: 48293}, {f: 7, c: 48297}, 48306,
  6451. {f: 6, c: 48310}, {f: 2, c: 48318}, {f: 3, c: 48321}, {f: 8, c: 48325},
  6452. 48334, {f: 3, c: 48338}, {f: 2, c: 48342}, {f: 3, c: 48345},
  6453. {f: 23, c: 48349}, 48375, {f: 3, c: 48377}, {f: 7, c: 48381}, 48390, 48392,
  6454. {f: 6, c: 48394}, {f: 3, c: 48401}, {f: 15, c: 48405}, {f: 7, c: 48421},
  6455. {f: 19, c: 48429}, {f: 7, c: 48449}, {f: 2, c: 48458}, {f: 3, c: 48461},
  6456. {f: 7, c: 48465}, {f: 10, c: 48474}, {f: 3, c: 48485}, {f: 23, c: 48489},
  6457. {f: 2, c: 48514}, {f: 2, c: 48517}, {f: 5, c: 48523}, 48530, 48532,
  6458. {f: 3, c: 48534}, 48539, {f: 7, c: 48541}, {f: 11, c: 48549},
  6459. {f: 7, c: 48561}, {f: 27, c: 48569}, {f: 2, c: 48598}, {f: 3, c: 48601},
  6460. {f: 12, c: 48605}, {f: 6, c: 48618}, {f: 3, c: 48625}, {f: 3, c: 48629},
  6461. {f: 7, c: 48633}, {f: 2, c: 48641}, 48644, {f: 6, c: 48646},
  6462. {f: 2, c: 48654}, {f: 3, c: 48657}, {f: 7, c: 48661}, 48670,
  6463. {f: 36, c: 48672}, {f: 2, c: 48710}, {f: 3, c: 48713}, 48717,
  6464. {f: 5, c: 48719}, 48726, 48728, {f: 4, c: 48732}, {f: 2, c: 48738},
  6465. {f: 3, c: 48741}, 48745, {f: 5, c: 48747}, 48754, {f: 5, c: 48758},
  6466. {f: 2, c: 48766}, {f: 3, c: 48769}, {f: 7, c: 48773}, 48782,
  6467. {f: 6, c: 48786}, {f: 14, c: 48794}, {f: 39, c: 48809}, {f: 2, c: 48850},
  6468. {f: 2, c: 48853}, {f: 7, c: 48857}, {f: 2, c: 48865}, {f: 6, c: 48870},
  6469. {f: 20, c: 48877}, {f: 6, c: 48898}, {f: 14, c: 48906}, 48922,
  6470. {f: 34, c: 48926}, {f: 2, c: 48962}, {f: 3, c: 48965}, {f: 7, c: 48969},
  6471. {f: 3, c: 48978}, {f: 62, c: 48982}, {f: 27, c: 49045}, {f: 20, c: 49073},
  6472. {f: 6, c: 49094}, {f: 2, c: 49102}, {f: 3, c: 49105}, {f: 7, c: 49109},
  6473. {f: 2, c: 49117}, 49120, {f: 90, c: 49122}, {f: 20, c: 49213},
  6474. {f: 6, c: 49234}, {f: 3, c: 49241}, {f: 3, c: 49245}, {f: 7, c: 49249},
  6475. {f: 38, c: 49258}, {f: 2, c: 49298}, {f: 3, c: 49301}, {f: 7, c: 49305},
  6476. 49314, 49316, {f: 6, c: 49318}, 49326, {f: 2, c: 49329}, {f: 5, c: 49335},
  6477. 49342, {f: 3, c: 49346}, {f: 2, c: 49350}, {f: 2, c: 49354},
  6478. {f: 3, c: 49357}, {f: 7, c: 49361}, 49370, {f: 6, c: 49374},
  6479. {f: 2, c: 49382}, {f: 3, c: 49385}, {f: 7, c: 49389}, 49398, 49400,
  6480. {f: 6, c: 49402}, {f: 3, c: 49409}, {f: 3, c: 49413}, {f: 7, c: 49417},
  6481. {f: 4, c: 49425}, {f: 6, c: 49430}, {f: 2, c: 49441}, 49445,
  6482. {f: 4, c: 49448}, 49454, {f: 4, c: 49458}, 49463, {f: 2, c: 49466},
  6483. {f: 3, c: 49469}, {f: 7, c: 49473}, 49482, {f: 6, c: 49486},
  6484. {f: 2, c: 49494}, {f: 3, c: 49497}, {f: 7, c: 49501}, 49510,
  6485. {f: 6, c: 49514}, {f: 3, c: 49521}, {f: 3, c: 49525}, {f: 12, c: 49529},
  6486. {f: 6, c: 49542}, 49551, {f: 3, c: 49553}, 49557, {f: 5, c: 49559}, 49566,
  6487. 49568, {f: 3, c: 49570}, {f: 2, c: 49574}, {f: 2, c: 49578},
  6488. {f: 3, c: 49581}, {f: 12, c: 49585}, {f: 6, c: 49598}, {f: 3, c: 49605},
  6489. {f: 3, c: 49609}, {f: 7, c: 49613}, {f: 2, c: 49621}, {f: 7, c: 49625},
  6490. {f: 3, c: 49633}, {f: 3, c: 49637}, {f: 7, c: 49641}, 49650,
  6491. {f: 8, c: 49652}, {f: 2, c: 49662}, {f: 3, c: 49665}, {f: 7, c: 49669},
  6492. 49678, 49680, {f: 6, c: 49682}, {f: 2, c: 49690}, {f: 2, c: 49693},
  6493. {f: 7, c: 49697}, 49706, 49708, 49710, 49712, 49715, {f: 19, c: 49717},
  6494. {f: 7, c: 49737}, {f: 2, c: 49746}, {f: 3, c: 49749}, {f: 7, c: 49753},
  6495. {f: 4, c: 49761}, {f: 6, c: 49766}, {f: 2, c: 49774}, {f: 3, c: 49777},
  6496. {f: 7, c: 49781}, 49790, 49792, {f: 6, c: 49794}, {f: 6, c: 49802},
  6497. {f: 7, c: 49809}, {f: 2, c: 49817}, 49820, {f: 6, c: 49822},
  6498. {f: 2, c: 49830}, {f: 3, c: 49833}, {f: 6, c: 49838}, 49846, 49848,
  6499. {f: 34, c: 49850}, {f: 2, c: 49886}, {f: 2, c: 49889}, {f: 6, c: 49893},
  6500. 49902, 49904, {f: 4, c: 49906}, 49911, 49914, {f: 3, c: 49917},
  6501. {f: 7, c: 49921}, {f: 2, c: 49930}, {f: 5, c: 49934}, {f: 2, c: 49942},
  6502. {f: 3, c: 49945}, {f: 7, c: 49949}, {f: 2, c: 49958}, {f: 27, c: 49962},
  6503. {f: 34, c: 49990}, {f: 2, c: 50026}, {f: 3, c: 50029}, 50033,
  6504. {f: 5, c: 50035}, {f: 2, c: 50042}, {f: 6, c: 50046}, {f: 3, c: 50053},
  6505. {f: 3, c: 50057}, {f: 51, c: 50061}, {f: 23, c: 50113}, {f: 2, c: 50138},
  6506. {f: 2, c: 50141}, 50145, {f: 5, c: 50147}, {f: 3, c: 50154},
  6507. {f: 6, c: 50158}, {f: 2, c: 50166}, {f: 15, c: 50169}, {f: 7, c: 50185},
  6508. {f: 19, c: 50193}, {f: 7, c: 50213}, {f: 3, c: 50221}, {f: 3, c: 50225},
  6509. {f: 7, c: 50229}, {f: 10, c: 50238}, {f: 27, c: 50249}, {f: 2, c: 50278},
  6510. {f: 3, c: 50281}, {f: 7, c: 50285}, {f: 3, c: 50294}, {f: 6, c: 50298},
  6511. {f: 19, c: 50305}, {f: 7, c: 50325}, {f: 27, c: 50333}, {f: 3, c: 50361},
  6512. {f: 44, c: 50365}, {f: 6, c: 50410}, {f: 2, c: 50418}, {f: 3, c: 50421},
  6513. 50425, {f: 4, c: 50427}, {f: 10, c: 50434}, {f: 3, c: 50445},
  6514. {f: 3, c: 50449}, {f: 7, c: 50453}, {f: 11, c: 50461}, {f: 2, c: 50474},
  6515. {f: 3, c: 50477}, {f: 7, c: 50481}, 50490, 50492, {f: 6, c: 50494},
  6516. {f: 2, c: 50502}, 50507, {f: 4, c: 50511}, 50518, {f: 3, c: 50522}, 50527,
  6517. {f: 2, c: 50530}, {f: 3, c: 50533}, {f: 7, c: 50537}, 50546,
  6518. {f: 6, c: 50550}, {f: 2, c: 50558}, {f: 3, c: 50561}, {f: 2, c: 50565},
  6519. {f: 4, c: 50568}, 50574, 50576, {f: 3, c: 50578}, 50582, {f: 3, c: 50585},
  6520. {f: 3, c: 50589}, {f: 8, c: 50593}, {f: 10, c: 50602}, {f: 2, c: 50614},
  6521. 50618, {f: 5, c: 50623}, 50635, 50637, 50639, {f: 2, c: 50642},
  6522. {f: 3, c: 50645}, {f: 7, c: 50649}, 50658, 50660, {f: 6, c: 50662}, 50671,
  6523. {f: 3, c: 50673}, 50677, {f: 4, c: 50680}, {f: 3, c: 50690},
  6524. {f: 3, c: 50697}, {f: 3, c: 50701}, {f: 7, c: 50705}, 50714,
  6525. {f: 7, c: 50717}, {f: 2, c: 50726}, {f: 3, c: 50729}, 50735,
  6526. {f: 2, c: 50737}, 50742, 50744, 50746, {f: 4, c: 50748}, {f: 2, c: 50754},
  6527. {f: 3, c: 50757}, {f: 7, c: 50761}, 50770, {f: 6, c: 50774},
  6528. {f: 2, c: 50782}, {f: 11, c: 50785}, {f: 2, c: 50797}, 50800,
  6529. {f: 6, c: 50802}, {f: 2, c: 50810}, {f: 3, c: 50813}, {f: 7, c: 50817},
  6530. 50826, 50828, {f: 6, c: 50830}, {f: 2, c: 50838}, {f: 3, c: 50841},
  6531. {f: 7, c: 50845}, 50854, 50856, {f: 6, c: 50858}, {f: 2, c: 50866},
  6532. {f: 3, c: 50869}, {f: 5, c: 50875}, 50882, 50884, {f: 6, c: 50886},
  6533. {f: 2, c: 50894}, {f: 3, c: 50897}, {f: 7, c: 50901}, {f: 2, c: 50910},
  6534. {f: 6, c: 50914}, {f: 2, c: 50922}, {f: 3, c: 50925}, {f: 7, c: 50929},
  6535. {f: 3, c: 50938}, {f: 6, c: 50942}, {f: 2, c: 50950}, {f: 3, c: 50953},
  6536. {f: 7, c: 50957}, 50966, 50968, {f: 6, c: 50970}, {f: 2, c: 50978},
  6537. {f: 3, c: 50981}, {f: 7, c: 50985}, 50994, 50996, 50998, {f: 4, c: 51000},
  6538. {f: 2, c: 51006}, {f: 3, c: 51009}, {f: 5, c: 51013}, 51019, 51022, 51024,
  6539. {f: 3, c: 51033}, {f: 3, c: 51037}, {f: 7, c: 51041}, {f: 2, c: 51049},
  6540. {f: 8, c: 51052}, {f: 2, c: 51062}, {f: 3, c: 51065}, {f: 4, c: 51071},
  6541. 51078, {f: 3, c: 51083}, 51087, {f: 2, c: 51090}, 51093, 51097,
  6542. {f: 5, c: 51099}, 51106, {f: 5, c: 51111}, {f: 2, c: 51118},
  6543. {f: 3, c: 51121}, {f: 7, c: 51125}, 51134, {f: 6, c: 51138},
  6544. {f: 2, c: 51146}, 51149, 51151, {f: 7, c: 51153}, {f: 4, c: 51161},
  6545. {f: 6, c: 51166}, {f: 3, c: 51173}, {f: 3, c: 51177}, {f: 19, c: 51181},
  6546. {f: 2, c: 51202}, {f: 3, c: 51205}, 51209, {f: 5, c: 51211}, 51218, 51220,
  6547. {f: 5, c: 51223}, {f: 2, c: 51230}, {f: 3, c: 51233}, {f: 7, c: 51237},
  6548. 51246, 51248, {f: 6, c: 51250}, {f: 3, c: 51257}, {f: 3, c: 51261},
  6549. {f: 7, c: 51265}, {f: 2, c: 51274}, {f: 6, c: 51278}, {f: 27, c: 51285},
  6550. {f: 2, c: 51314}, {f: 3, c: 51317}, 51321, {f: 5, c: 51323}, 51330, 51332,
  6551. {f: 3, c: 51336}, {f: 6, c: 51342}, {f: 8, c: 51349}, 51358, 51360,
  6552. {f: 6, c: 51362}, {f: 19, c: 51369}, {f: 6, c: 51390}, {f: 3, c: 51397},
  6553. {f: 3, c: 51401}, {f: 7, c: 51405}, 51414, 51416, {f: 6, c: 51418},
  6554. {f: 2, c: 51426}, {f: 16, c: 51429}, {f: 6, c: 51446}, {f: 2, c: 51454},
  6555. {f: 3, c: 51457}, {f: 5, c: 51463}, 51470, 51472, {f: 6, c: 51474},
  6556. {f: 19, c: 51481}, {f: 7, c: 51501}, {f: 27, c: 51509}, {f: 2, c: 51538},
  6557. {f: 3, c: 51541}, {f: 7, c: 51545}, 51554, {f: 8, c: 51556},
  6558. {f: 3, c: 51565}, {f: 3, c: 51569}, {f: 7, c: 51573}, {f: 11, c: 51581},
  6559. {f: 2, c: 51594}, {f: 3, c: 51597}, {f: 7, c: 51601}, 51610, 51612,
  6560. {f: 34, c: 51614}, {f: 2, c: 51650}, {f: 2, c: 51653}, 51657,
  6561. {f: 5, c: 51659}, 51666, 51668, {f: 2, c: 51671}, 51675, {f: 2, c: 51678},
  6562. 51681, 51683, {f: 2, c: 51685}, {f: 4, c: 51688}, 51694, {f: 6, c: 51698},
  6563. {f: 2, c: 51706}, {f: 3, c: 51709}, {f: 7, c: 51713}, 51722,
  6564. {f: 6, c: 51726}, {f: 3, c: 51733}, {f: 16, c: 51737}, {f: 34, c: 51754},
  6565. {f: 2, c: 51790}, {f: 3, c: 51793}, {f: 7, c: 51797}, 51806,
  6566. {f: 6, c: 51810}, {f: 20, c: 51817}, {f: 6, c: 51838}, {f: 19, c: 51845},
  6567. {f: 35, c: 51865}, {f: 2, c: 51902}, {f: 3, c: 51905}, {f: 7, c: 51909},
  6568. 51918, 51920, 51922, {f: 4, c: 51924}, {f: 6, c: 51930}, {f: 11, c: 51937},
  6569. {f: 7, c: 51949}, {f: 19, c: 51957}, {f: 7, c: 51977}, {f: 3, c: 51985},
  6570. {f: 3, c: 51989}, {f: 7, c: 51993}, {f: 31, c: 52002}, {f: 6, c: 52034},
  6571. {f: 2, c: 52042}, {f: 3, c: 52045}, {f: 7, c: 52049}, {f: 3, c: 52058},
  6572. {f: 6, c: 52062}, {f: 19, c: 52069}, {f: 34, c: 52090}, {f: 27, c: 52125},
  6573. {f: 27, c: 52153}, {f: 15, c: 52181}, {f: 2, c: 52197}, 52200,
  6574. {f: 34, c: 52202}, {f: 2, c: 52238}, {f: 3, c: 52241}, {f: 7, c: 52245},
  6575. {f: 3, c: 52254}, {f: 4, c: 52259}, {f: 2, c: 52266}, 52269, 52271,
  6576. {f: 7, c: 52273}, 52282, {f: 5, c: 52287}, {f: 2, c: 52294},
  6577. {f: 3, c: 52297}, {f: 7, c: 52301}, 52310, {f: 6, c: 52314},
  6578. {f: 3, c: 52321}, 52325, 52327, {f: 7, c: 52329}, {f: 4, c: 52337},
  6579. {f: 34, c: 52342}, {f: 2, c: 52378}, {f: 3, c: 52381}, {f: 7, c: 52385},
  6580. 52394, {f: 6, c: 52398}, {f: 2, c: 52406}, {f: 3, c: 52409},
  6581. {f: 7, c: 52413}, 52422, 52424, {f: 6, c: 52426}, {f: 3, c: 52433},
  6582. {f: 15, c: 52437}, {f: 7, c: 52453}, {f: 3, c: 52461}, {f: 16, c: 52465},
  6583. {f: 6, c: 52482}, {f: 2, c: 52490}, {f: 3, c: 52493}, {f: 7, c: 52497},
  6584. 52506, 52508, {f: 6, c: 52510}, {f: 3, c: 52517}, {f: 3, c: 52521},
  6585. {f: 12, c: 52525}, {f: 34, c: 52538}, {f: 3, c: 52573}, {f: 3, c: 52577},
  6586. {f: 7, c: 52581}, 52590, 52592, {f: 6, c: 52594}, {f: 15, c: 52601},
  6587. {f: 11, c: 52617}, {f: 2, c: 52630}, {f: 3, c: 52633}, {f: 7, c: 52637},
  6588. 52646, 52648, {f: 6, c: 52650}, {f: 19, c: 52657}, {f: 7, c: 52677},
  6589. {f: 3, c: 52685}, {f: 23, c: 52689}, {f: 3, c: 52713}, {f: 3, c: 52717},
  6590. {f: 7, c: 52721}, 52730, 52732, {f: 6, c: 52734}, {f: 3, c: 52741},
  6591. {f: 3, c: 52745}, {f: 7, c: 52749}, {f: 4, c: 52757}, {f: 6, c: 52762},
  6592. {f: 2, c: 52770}, {f: 3, c: 52773}, {f: 7, c: 52777}, 52786, 52788,
  6593. {f: 34, c: 52790}, {f: 2, c: 52826}, {f: 2, c: 52829}, {f: 6, c: 52834},
  6594. 52842, 52844, {f: 6, c: 52846}, {f: 2, c: 52854}, {f: 3, c: 52857},
  6595. {f: 7, c: 52861}, 52870, 52872, {f: 6, c: 52874}, {f: 2, c: 52882},
  6596. {f: 3, c: 52885}, {f: 7, c: 52889}, 52898, {f: 6, c: 52902},
  6597. {f: 19, c: 52910}, {f: 34, c: 52930}, {f: 2, c: 52966}, {f: 2, c: 52969},
  6598. {f: 7, c: 52973}, 52982, {f: 6, c: 52986}, {f: 2, c: 52994},
  6599. {f: 3, c: 52997}, {f: 7, c: 53001}, 53010, 53012, {f: 6, c: 53014},
  6600. {f: 3, c: 53021}, {f: 3, c: 53025}, {f: 7, c: 53029}, 53038,
  6601. {f: 6, c: 53042}, {f: 27, c: 53049}, {f: 2, c: 53078}, {f: 3, c: 53081},
  6602. {f: 7, c: 53085}, 53094, 53096, {f: 6, c: 53098}, {f: 2, c: 53106},
  6603. {f: 3, c: 53109}, {f: 7, c: 53113}, {f: 4, c: 53121}, {f: 6, c: 53126},
  6604. {f: 20, c: 53133}, {f: 6, c: 53154}, {f: 7, c: 53161}, {f: 19, c: 53169},
  6605. {f: 27, c: 53189}, {f: 2, c: 53218}, {f: 3, c: 53221}, {f: 7, c: 53225},
  6606. 53234, 53236, {f: 6, c: 53238}, {f: 3, c: 53245}, {f: 3, c: 53249},
  6607. {f: 12, c: 53253}, {f: 6, c: 53266}, {f: 20, c: 53273}, {f: 6, c: 53294},
  6608. {f: 2, c: 53302}, {f: 3, c: 53305}, {f: 7, c: 53309}, 53318, 53320,
  6609. {f: 6, c: 53322}, {f: 3, c: 53329}, {f: 3, c: 53333}, {f: 7, c: 53337},
  6610. {f: 11, c: 53345}, {f: 2, c: 53358}, {f: 3, c: 53361}, {f: 7, c: 53365},
  6611. {f: 3, c: 53374}, {f: 34, c: 53378}, {f: 2, c: 53414}, {f: 3, c: 53417},
  6612. {f: 7, c: 53421}, 53430, 53432, {f: 6, c: 53434}, {f: 2, c: 53442},
  6613. {f: 3, c: 53445}, {f: 6, c: 53450}, 53458, {f: 6, c: 53462},
  6614. {f: 2, c: 53470}, {f: 3, c: 53473}, {f: 7, c: 53477}, 53486,
  6615. {f: 6, c: 53490}, {f: 20, c: 53497}, {f: 34, c: 53518}, {f: 2, c: 53554},
  6616. {f: 3, c: 53557}, 53561, {f: 5, c: 53563}, 53570, {f: 6, c: 53574},
  6617. {f: 2, c: 53582}, {f: 3, c: 53585}, {f: 7, c: 53589}, 53598, 53600,
  6618. {f: 6, c: 53602}, {f: 3, c: 53609}, {f: 15, c: 53613}, {f: 7, c: 53629},
  6619. {f: 3, c: 53637}, {f: 23, c: 53641}, {f: 2, c: 53666}, {f: 3, c: 53669},
  6620. {f: 7, c: 53673}, 53682, 53684, {f: 4, c: 53686}, 53691, {f: 3, c: 53693},
  6621. {f: 23, c: 53697}, {f: 27, c: 53721}, {f: 3, c: 53749}, {f: 14, c: 53753},
  6622. 53768, {f: 6, c: 53770}, {f: 27, c: 53777}, {f: 2, c: 53806},
  6623. {f: 3, c: 53809}, {f: 7, c: 53813}, 53822, 53824, {f: 6, c: 53826},
  6624. {f: 19, c: 53833}, {f: 7, c: 53853}, {f: 27, c: 53861}, {f: 2, c: 53890},
  6625. {f: 3, c: 53893}, {f: 7, c: 53897}, {f: 3, c: 53906}, {f: 6, c: 53910},
  6626. {f: 3, c: 53917}, {f: 3, c: 53921}, {f: 7, c: 53925}, {f: 4, c: 53933},
  6627. {f: 6, c: 53938}, {f: 2, c: 53946}, {f: 2, c: 53949}, 53953,
  6628. {f: 5, c: 53955}, 53962, {f: 8, c: 53964}, {f: 3, c: 53973},
  6629. {f: 3, c: 53977}, {f: 7, c: 53981}, {f: 10, c: 53990}, {f: 2, c: 54002},
  6630. {f: 3, c: 54005}, {f: 7, c: 54009}, 54018, 54020, {f: 6, c: 54022}, 54031,
  6631. {f: 3, c: 54033}, 54037, {f: 5, c: 54039}, 54046, {f: 3, c: 54050},
  6632. {f: 2, c: 54054}, {f: 2, c: 54058}, {f: 3, c: 54061}, {f: 7, c: 54065},
  6633. 54074, {f: 6, c: 54078}, {f: 54, c: 54086}, {f: 2, c: 54142},
  6634. {f: 3, c: 54145}, {f: 7, c: 54149}, 54158, {f: 6, c: 54162},
  6635. {f: 2, c: 54170}, {f: 3, c: 54173}, {f: 7, c: 54177}, 54186, 54188,
  6636. {f: 6, c: 54190}, {f: 3, c: 54197}, {f: 3, c: 54201}, {f: 7, c: 54205},
  6637. {f: 2, c: 54214}, {f: 6, c: 54218}, {f: 7, c: 54225}, {f: 8, c: 54233},
  6638. 54242, {f: 8, c: 54244}, {f: 2, c: 54254}, {f: 3, c: 54257},
  6639. {f: 7, c: 54261}, 54270, 54272, {f: 6, c: 54274}, {f: 20, c: 54281},
  6640. {f: 34, c: 54302}, {f: 3, c: 54337}, {f: 23, c: 54341}, {f: 3, c: 54365},
  6641. {f: 3, c: 54369}, {f: 8, c: 54373}, 54382, {f: 8, c: 54384},
  6642. {f: 2, c: 54394}, {f: 2, c: 54397}, 54401, {f: 5, c: 54403}, 54410, 54412,
  6643. {f: 6, c: 54414}, {f: 20, c: 54421}, {f: 34, c: 54442}, {f: 3, c: 54477},
  6644. {f: 3, c: 54481}, {f: 7, c: 54485}, {f: 2, c: 54493}, {f: 8, c: 54496},
  6645. {f: 3, c: 54505}, {f: 3, c: 54509}, {f: 7, c: 54513}, {f: 2, c: 54521},
  6646. 54524, {f: 6, c: 54526}, {f: 3, c: 54533}, {f: 3, c: 54537},
  6647. {f: 7, c: 54541}, 54550, {f: 36, c: 54552}, {f: 2, c: 54590},
  6648. {f: 3, c: 54593}, {f: 7, c: 54597}, 54606, 54608, {f: 6, c: 54610},
  6649. {f: 2, c: 54618}, {f: 3, c: 54621}, {f: 4, c: 54625}, {f: 2, c: 54630},
  6650. 54634, 54636, {f: 6, c: 54638}, {f: 2, c: 54646}, {f: 3, c: 54649},
  6651. {f: 7, c: 54653}, 54662, {f: 6, c: 54666}, {f: 20, c: 54673},
  6652. {f: 34, c: 54694}, {f: 2, c: 54730}, {f: 3, c: 54733}, 54737,
  6653. {f: 5, c: 54739}, 54746, 54748, {f: 6, c: 54750}, {f: 2, c: 54758},
  6654. {f: 3, c: 54761}, {f: 7, c: 54765}, 54774, 54776, {f: 6, c: 54778},
  6655. {f: 2, c: 54786}, {f: 3, c: 54789}, {f: 7, c: 54793}, 54802,
  6656. {f: 6, c: 54806}, {f: 3, c: 54813}, {f: 3, c: 54817}, {f: 8, c: 54821},
  6657. {f: 10, c: 54830}, {f: 2, c: 54842}, {f: 3, c: 54845}, {f: 4, c: 54849},
  6658. {f: 2, c: 54854}, 54858, 54860, {f: 3, c: 54862}, {f: 2, c: 54866},
  6659. {f: 2, c: 54870}, {f: 3, c: 54873}, {f: 10, c: 54877}, 54888,
  6660. {f: 6, c: 54890}, {f: 2, c: 54898}, {f: 14, c: 54901}, 54916,
  6661. {f: 6, c: 54918}, {f: 2, c: 54926}, {f: 3, c: 54929}, {f: 8, c: 54933},
  6662. 54942, 54944, {f: 6, c: 54946}, {f: 3, c: 54953}, {f: 3, c: 54957},
  6663. {f: 8, c: 54961}, 54970, {f: 8, c: 54972}, {f: 2, c: 54982},
  6664. {f: 3, c: 54985}, {f: 4, c: 54989}, {f: 2, c: 54994}, {f: 2, c: 54997},
  6665. 55000, {f: 6, c: 55002}, {f: 3, c: 55009}, {f: 3, c: 55013},
  6666. {f: 7, c: 55017}, {f: 4, c: 55025}, {f: 6, c: 55030}, {f: 2, c: 55038},
  6667. {f: 3, c: 55041}, {f: 12, c: 55045}, {f: 6, c: 55058}, {f: 2, c: 55066},
  6668. {f: 3, c: 55069}, {f: 7, c: 55073}, 55082, 55084, {f: 6, c: 55086},
  6669. {f: 2, c: 55094}, {f: 3, c: 55097}, {f: 7, c: 55101}, {f: 2, c: 55109},
  6670. 55112, {f: 6, c: 55114}, {f: 2, c: 55122}, 55125, {f: 6, c: 55130}, 55138,
  6671. 55140, {f: 3, c: 55142}, {f: 2, c: 55146}, {f: 3, c: 55149},
  6672. {f: 3, c: 55153}, {f: 7, c: 55157}, {f: 3, c: 55166}, {f: 6, c: 55170},
  6673. {f: 2, c: 55178}, {f: 3, c: 55181}, {f: 7, c: 55185}, 55194, 55196,
  6674. {f: 6, c: 55198}],
  6675. 'Adobe-CNS1': [{f: 95, c: 32}, {s: 3}, 12288, 65292, {f: 2, c: 12289}, 65294,
  6676. 8226, 65307, 65306, 65311, 65281, 65072, 8230, 8229, 65104, 65380, 65106,
  6677. 183, {f: 4, c: 65108}, 65372, 8211, 65073, 8212, {s: 4}, {f: 2, c: 65288},
  6678. {f: 2, c: 65077}, 65371, 65373, {f: 2, c: 65079}, {f: 2, c: 12308},
  6679. {f: 2, c: 65081}, {f: 2, c: 12304}, {f: 2, c: 65083}, {f: 2, c: 12298},
  6680. {f: 2, c: 65085}, {f: 2, c: 12296}, {f: 2, c: 65087}, {f: 2, c: 12300},
  6681. {f: 2, c: 65089}, {f: 2, c: 12302}, {f: 2, c: 65091}, {f: 6, c: 65113},
  6682. {f: 2, c: 8216}, {f: 2, c: 8220}, {f: 2, c: 12317}, 8245, 8242, 65283,
  6683. 65286, 65290, 8251, 167, 12291, 9675, 9679, 9651, 9650, 9678, 9734, 9733,
  6684. 9671, 9670, 9633, 9632, 9661, 9660, 12963, 8453, 8254, 0, 65343, 0,
  6685. {f: 2, c: 65097}, {f: 2, c: 65101}, {f: 2, c: 65099}, {f: 3, c: 65119},
  6686. 65291, 65293, 215, 247, 177, 8730, 65308, 65310, 65309, {f: 2, c: 8806},
  6687. 8800, 8734, 8786, 8801, {f: 5, c: 65122}, 8764, {f: 2, c: 8745}, 8869,
  6688. 8736, 8735, 8895, 13266, 13265, 8747, 8750, 8757, 8756, 9792, 9794, 9793,
  6689. 9737, 8593, 8595, 8594, 8592, {f: 2, c: 8598}, 8601, 8600, 8741, 8739, 0,
  6690. 0, 65295, 65340, 65284, 165, 12306, {f: 2, c: 162}, 65285, 65312, 8451,
  6691. 8457, {f: 3, c: 65129}, 13269, {f: 3, c: 13212}, 13262, 13217,
  6692. {f: 2, c: 13198}, 13252, 176, [20825, 58834], [20827, 58835],
  6693. [20830, 58837], [20829, 58836], 20833, 20835, 21991, [29929, 58044],
  6694. [31950, 58191], {f: 8, c: 9601}, 9615, 9614, 9613, 9612, 9611, 9610, 9609,
  6695. 9532, 9524, 9516, 9508, 9500, 9620, 9472, 9474, 9621, 9484, 9488, 9492,
  6696. 9496, {f: 2, c: 9581}, 9584, 9583, 9552, 9566, 9578, 9569, {f: 2, c: 9698},
  6697. 9701, 9700, {f: 3, c: 9585}, {f: 10, c: 65296}, {f: 10, c: 8544},
  6698. {f: 9, c: 12321}, 0, [21316, 57443], 0, {f: 26, c: 65313},
  6699. {f: 26, c: 65345}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  6700. {f: 7, c: 963}, {f: 37, c: 12549}, 729, 714, 711, 715, [9312, 63153],
  6701. [9313, 63154], [9314, 63155], [9315, 63156], [9316, 63157], [9317, 63158],
  6702. [9318, 63159], [9319, 63160], [9320, 63161], [9321, 63162], [9332, 63163],
  6703. [9333, 63164], [9334, 63165], [9335, 63166], [9336, 63167], [9337, 63168],
  6704. [9338, 63169], [9339, 63170], [9340, 63171], [9341, 63172], [8560, 63173],
  6705. [8561, 63174], [8562, 63175], [8563, 63176], [8564, 63177], [8565, 63178],
  6706. [8566, 63179], [8567, 63180], [8568, 63181], [8569, 63182], [12033, 20008],
  6707. [12034, 20022, 63183], [12035, 20031, 63184], [12037, 20101, 63185],
  6708. [12039, 20128, 63186], [12044, 20866, 63187], [12045, 20886, 63188],
  6709. [12046, 20907, 63189], [12051, 21241, 63190], [12054, 21304, 63191],
  6710. [12057, 21353, 63192], [12059, 21430, 63193],
  6711. [12065, 12066, 22786, 22794, 63194], [12071, 23424, 63195],
  6712. [12078, 24027, 63196], [12083, 24186, 63197], [12084, 24191, 63198],
  6713. [12085, 24308], [12089, 24400, 63200], [12090, 24417, 63201],
  6714. [12097, 25908, 63202], [12102, 26080], [12135, 30098, 63204],
  6715. [12136, 30326], [12193, 36789, 63206], [12202, 38582], {f: 32, c: 9216},
  6716. 9249, [12032, 19968], [12036, 20057], 19969, 19971, 20035, 20061, 20102,
  6717. [12038, 20108], [12040, 20154], [12041, 20799], [12042, 20837],
  6718. [12043, 20843], [12047, 20960], [12049, 20992], 20993, [12050, 21147],
  6719. [12052, 21269], [12055, 21313], [12056, 21340], [12060, 21448], 19977,
  6720. 19979, 19976, 19978, 20011, 20024, 20961, 20037, 20040, 20063, 20062,
  6721. 20110, 20129, [20800, 64012], 20995, 21242, 21315, 21449, [12061, 21475],
  6722. [12063, 22303], [12064, 22763], [12067, 22805], [12068, 22823],
  6723. [12069, 22899], [12070, 23376], 23377, 23379, [12072, 23544],
  6724. [12073, 23567], [12074, 23586], [12075, 23608], [12077, 23665], 24029,
  6725. [12079, 24037], [12080, 24049], {f: 2, c: 24050}, [12081, 24062],
  6726. [12082, 24178], [12086, 24318], [12087, 24331], [12088, 24339], 25165,
  6727. 19985, 19984, 19981, 20013, 20016, 20025, 20043, 23609, 20104, 20113,
  6728. 20117, 20114, 20116, 20130, 20161, 20160, 20163, {f: 2, c: 20166}, 20173,
  6729. {f: 2, c: 20170}, 20164, 20803, 20801, 20839, {f: 2, c: 20845}, 20844,
  6730. 20887, 20982, {f: 3, c: 20998}, 21243, {f: 2, c: 21246}, 21270, 21305,
  6731. 21320, 21319, 21317, 21342, 21380, 21451, 21450, 21453, 22764, 22825,
  6732. 22827, 22826, 22829, 23380, 23569, 23588, 23610, 23663, 24052, 24187,
  6733. 24319, {f: 2, c: 24340}, [12092, 24515], [12093, 25096], [12094, 25142],
  6734. [12095, 25163], 25166, [12096, 25903], [12098, 25991], [12099, 26007],
  6735. [12100, 26020], [12101, 26041], [12103, 26085], [12104, 26352],
  6736. [12105, 26376], [12106, 26408], [12107, 27424], [12108, 27490],
  6737. [12109, 27513], [12111, 27595], [12112, 27604], [12113, 27611],
  6738. [12114, 27663], [12116, 27700], [12117, 28779], [12118, 29226],
  6739. [12119, 29238], [12120, 29243], [12122, 29255], [12123, 29273],
  6740. [12124, 29275], [12125, 29356], 29579, 19993, 19990, 19989, 19988, 19992,
  6741. 20027, 20045, 20047, 20046, 20197, 20184, {f: 4, c: 20180},
  6742. {f: 2, c: 20195}, 20185, 20190, 20805, 20804, {f: 2, c: 20873}, 20908,
  6743. {f: 2, c: 20985}, 20984, 21002, 21152, 21151, [21253, 57435], 21254, 21271,
  6744. 21277, 20191, 21322, 21321, 21345, 21344, 21359, 21358, 21435, 21487,
  6745. 21476, 21491, 21484, 21486, 21481, 21480, 21500, 21496, 21493, 21483,
  6746. 21478, 21482, 21490, 21489, 21488, 21477, 21485, 21499, 22235, 22234,
  6747. 22806, 22830, 22833, 22900, 22902, 23381, 23427, 23612, 24040, 24039,
  6748. 24038, {f: 2, c: 24066}, 24179, 24188, 24321, 24344, 24343, 24517, 25098,
  6749. {f: 2, c: 25171}, 25170, 25169, 26021, 26086, 26414, 26412,
  6750. {f: 2, c: 26410}, 26413, 27491, 27597, 27665, 27664, 27704, 27713, 27712,
  6751. 27710, 29359, [12126, 29572], [12127, 29577], [12128, 29916],
  6752. [12129, 29926], [12130, 29976], [12131, 29983], [12132, 29992], 29993,
  6753. [12133, 30000], {f: 3, c: 30001}, [12134, 30091], [12137, 30333],
  6754. [12138, 30382], [12139, 30399], [12140, 30446], [12141, 30683],
  6755. [12142, 30690], [12143, 30707], [12144, 31034], [12146, 31166],
  6756. [12147, 31348], [12148, 31435], {f: 2, c: 19998}, {f: 2, c: 20050}, 20073,
  6757. 20121, 20132, 20134, 20133, 20223, 20233, 20249, 20234, 20245, 20237,
  6758. {f: 2, c: 20240}, 20239, 20210, 20214, 20219, 20208, 20211, 20221, 20225,
  6759. 20235, 20809, 20807, 20806, 20808, 20840, 20849, 20877, 20912, 21015,
  6760. {f: 2, c: 21009}, 21006, 21014, 21155, 21256, 21281, 21280,
  6761. {f: 2, c: 21360}, 21513, 21519, 21516, 21514, 21520, 21505, 21515, 21508,
  6762. 21521, 21517, 21512, 21507, 21518, 21510, 21522, 22240, 22238, 22237,
  6763. 22323, 22320, 22312, 22317, 22316, 22319, 22313, {f: 2, c: 22809},
  6764. {f: 2, c: 22839}, 22916, 22904, 22915, 22909, 22905, 22914, 22913,
  6765. {f: 2, c: 23383}, {f: 2, c: 23431}, 23429, 23433, 23546, 23574, 23673,
  6766. 24030, 24070, 24182, 24180, 24335, 24347, 24537, 24534, 25102,
  6767. {f: 2, c: 25100}, 25104, 25187, 25179, 25176, 25910, 26089, 26088,
  6768. {f: 2, c: 26092}, {f: 2, c: 26354}, 26377, 26429, 26420, 26417, 26421,
  6769. 27425, 27492, 27515, 27670, 27741, 27735, 27737, {f: 2, c: 27743}, 27728,
  6770. 27733, 27745, 27739, {f: 2, c: 27725}, 28784, 29279, 29277, 30334,
  6771. [12149, 31481], [12150, 31859], [12151, 31992], [12152, 32566],
  6772. [12154, 32650], [12155, 32701], [12156, 32769], 32771, [12157, 32780],
  6773. [12158, 32786], [12159, 32819], [12160, 32895], [12161, 32905],
  6774. {f: 2, c: 32907}, [12162, 33251], [12163, 33258], [12164, 33267],
  6775. [12165, 33276], [12166, 33292], [12167, 33307], [12168, 33311],
  6776. [12169, 33390], [12170, 33394], 33406, [12173, 34411], [12174, 34880],
  6777. [12175, 34892], [12176, 34915], 35199, 38433, 20018, 20136, 20301, 20303,
  6778. 20295, 20311, 20318, 20276, 20315, 20309, 20272, {f: 2, c: 20304}, 20285,
  6779. 20282, 20280, 20291, 20308, 20284, 20294, 20323, 20316, 20320, 20271,
  6780. 20302, 20278, 20313, 20317, 20296, 20314, 20812, 20811, 20813, 20853,
  6781. {f: 2, c: 20918}, 21029, 21028, {f: 2, c: 21033}, 21032, 21163,
  6782. {f: 2, c: 21161}, 21164, 21283, 21363, 21365, 21533, 21549, 21534, 21566,
  6783. 21542, 21582, 21543, 21574, 21571, 21555, 21576, 21570, 21531, 21545,
  6784. 21578, 21561, 21563, 21560, 21550, {f: 2, c: 21557}, 21536, 21564, 21568,
  6785. 21553, 21547, 21535, 21548, 22250, 22256, 22244, 22251, 22346, 22353,
  6786. 22336, 22349, 22343, 22350, 22334, 22352, 22351, 22331, 22767, 22846,
  6787. 22941, 22930, 22952, 22942, 22947, 22937, 22934, 22925, 22948, 22931,
  6788. 22922, 22949, 23389, 23388, {f: 2, c: 23386}, 23436, 23435, 23439, 23596,
  6789. {f: 2, c: 23616}, 23615, 23614, {f: 2, c: 23696}, 23700, 23692, 24043,
  6790. 24076, 24207, 24199, 24202, 24311, 24324, 24351, 24420, 24418, 24439,
  6791. 24441, 24536, 24524, 24535, 24525, 24561, 24555, 24568, 24554, 25106,
  6792. 25105, 25220, 25239, 25238, 25216, 25206, 25225, 25197, 25226, 25212,
  6793. 25214, 25209, 25203, 25234, 25199, 25240, 25198, 25237, 25235, 25233,
  6794. 25222, 25913, 25915, 25912, 26097, 26356, 26463, {f: 4, c: 26446}, 26460,
  6795. 26454, [26462, 57801], 26441, 26438, 26464, 26451, 26455, 27493, 27599,
  6796. 27714, 27742, 27801, 27777, {f: 2, c: 27784}, 27781, 27803, 27754, 27770,
  6797. 27792, 27760, 27788, 27752, 27798, 27794, 27773, 27779, 27762, 27774,
  6798. 27764, 27782, 27766, 27789, 27796, 27800, 27778, 28790, {f: 2, c: 28796},
  6799. 28792, 29282, 29281, 29280, 29380, 29378, 29590, 29996, 29995,
  6800. {f: 2, c: 30007}, 30338, 30447, 30691, 31169, 31168, 31167, 31350, 31995,
  6801. 32597, 32918, 32915, 32925, 32920, 32923, 32922, 32946, 33391, 33426,
  6802. 33419, 33421, [12178, 35211], [12179, 35282], [12180, 35328],
  6803. [12181, 35895], [12182, 35910], [12183, 35925], [12185, 35997],
  6804. [12186, 36196], [12187, 36208], [12188, 36275], [12189, 36523],
  6805. [12190, 36554], [12191, 36763], [12192, 36784], 36802, 36806, 36805, 36804,
  6806. 24033, [12194, 37009], 37026, 37034, 37030, 37027, [12195, 37193],
  6807. [12196, 37318], [12197, 37324], 38450, 38446, 38449, 38442, 38444, 20006,
  6808. 20054, 20083, 20107, 20123, 20126, {f: 2, c: 20139}, 20335, 20381, 20365,
  6809. 20339, 20351, 20332, 20379, 20363, 20358, 20355, 20336, 20341, 20360,
  6810. 20329, 20347, 20374, 20350, 20367, 20369, 20346, 20820, 20818, 20821,
  6811. 20841, 20855, 20854, 20856, 20925, 20989, 21051, 21048, 21047, 21050,
  6812. 21040, 21038, 21046, 21057, 21182, 21179, 21330, 21332, 21331, 21329,
  6813. 21350, {f: 3, c: 21367}, 21462, 21460, 21463, 21619, 21621, 21654, 21624,
  6814. 21653, 21632, 21627, 21623, 21636, 21650, 21638, 21628, 21648, 21617,
  6815. 21622, 21644, 21658, 21602, 21608, 21643, 21629, 21646, 22266, 22403,
  6816. 22391, 22378, 22377, 22369, 22374, 22372, 22396, 22812, 22857,
  6817. {f: 2, c: 22855}, 22852, 22868, 22974, 22971, 22996, 22969, 22958, 22993,
  6818. 22982, 22992, 22989, 22987, 22995, 22986, 22959, 22963, 22994, 22981,
  6819. 23391, 23396, 23395, 23447, 23450, 23448, 23452, 23449, 23451, 23578,
  6820. 23624, {f: 2, c: 23621}, 23735, 23713, 23736, 23721, 23723, 23729, 23731,
  6821. 24088, 24090, 24086, 24085, 24091, 24081, 24184, 24218, 24215, 24220,
  6822. {f: 2, c: 24213}, 24310, {f: 2, c: 24358}, 24361, {f: 2, c: 24448}, 24447,
  6823. 24444, 24541, 24544, 24573, 24565, 24575, 24591, 24596, 24623, 24629,
  6824. 24598, 24618, 24597, 24609, 24615, 24617, 24619, 24603, 25110, 25109,
  6825. 25151, 25150, 25152, 25215, 25289, 25292, 25284, 25279, 25282, 25273,
  6826. 25298, 25307, 25259, {f: 2, c: 25299}, 25291, 25288, 25256, 25277, 25276,
  6827. [25296, 60582], 25305, 25287, 25293, 25269, 25306, 25265, 25304,
  6828. {f: 2, c: 25302}, 25286, 25260, [25294, 61010], 25918, 26023, 26044, 26106,
  6829. 26132, 26131, 26124, 26118, 26114, 26126, 26112, 26127, 26133, 26122,
  6830. 26119, 26381, 26379, 26477, 26507, 26517, 26481, 26524, 26483, 26487,
  6831. 26503, 26525, 26519, {f: 2, c: 26479}, 26495, 26505, 26494, 26512, 26485,
  6832. 26522, 26515, 26492, 26474, 26482, 27427, {f: 2, c: 27494}, 27519, 27667,
  6833. 27675, 27875, 27880, 27891, 27825, 27852, 27877, 27827, {f: 2, c: 27837},
  6834. 27836, 27874, 27819, 27861, 27859, 27832, 27844, 27833, 27841, 27822,
  6835. 27863, 27845, 27889, 27839, 27835, 27873, 27867, 27850, 27820, 27887,
  6836. 27868, 27862, 27872, 28821, 28814, 28818, 28810, 28825, {f: 2, c: 29228},
  6837. 29240, 29256, 29287, 29289, 29376, 29390, 29401, 29399, 29392, 29609,
  6838. 29608, 29599, 29611, 29605, 30013, 30109, {f: 2, c: 30105}, 30340, 30402,
  6839. 30450, 30452, 30693, 30717, 31038, {f: 2, c: 31040}, 31177, 31176, 31354,
  6840. 31353, 31482, 31998, 32596, 32652, 32651, [32773, 58236], 32954, 32933,
  6841. 32930, 32945, 32929, 32939, 32937, 32948, 32938, 32943, 33253, 33278,
  6842. 33293, 33459, 33437, 33433, 33453, 33469, 33439, 33465, 33457, 33452,
  6843. 33445, 33455, 33464, 33443, 33456, 33470, 33463, 34382, 34417, 21021,
  6844. 34920, 36555, 36814, 36820, 36817, 37045, 37048, 37041, 37046, 37319,
  6845. [12198, 37329], [12199, 38263], [12200, 38272], [12201, 38428], 38464,
  6846. 38463, 38459, 38468, 38466, [12203, 38585], [12204, 38632], 38738,
  6847. [12206, 38750], 20127, {f: 2, c: 20141}, 20449, 20405, 20399, 20415, 20448,
  6848. 20433, 20431, 20445, 20419, 20406, 20440, 20447, 20426, 20439, 20398,
  6849. 20432, 20420, 20418, 20442, 20430, 20446, 20407, 20823, 20882, 20881,
  6850. 20896, 21070, 21059, 21066, 21069, 21068, 21067, 21063, 21191, 21193,
  6851. 21187, 21185, 21261, 21335, 21371, 21402, 21467, 21676, 21696, 21672,
  6852. 21710, 21705, 21688, 21670, 21683, 21703, 21698, 21693, 21674, 21697,
  6853. 21700, 21704, 21679, 21675, 21681, 21691, 21673, 21671, 21695, 22271,
  6854. 22402, 22411, 22432, 22435, 22434, 22478, 22446, 22419, 22869, 22865,
  6855. 22863, 22862, 22864, 23004, 23000, 23039, 23011, 23016, 23043, 23013,
  6856. 23018, 23002, 23014, 23041, 23035, 23401, 23459, 23462, 23460, 23458,
  6857. 23461, 23553, {f: 2, c: 23630}, 23629, 23627, 23769, 23762, 24055, 24093,
  6858. 24101, 24095, 24189, 24224, 24230, 24314, 24328, 24365, 24421, 24456,
  6859. 24453, {f: 2, c: 24458}, 24455, 24460, 24457, 24594, 24605, 24608, 24613,
  6860. 24590, 24616, 24653, 24688, 24680, [24674, 60712], 24646, 24643, 24684,
  6861. 24683, 24682, 24676, 25153, 25308, 25366, 25353, 25340, 25325, 25345,
  6862. 25326, 25341, 25351, 25329, 25335, 25327, 25324, 25342, 25332, 25361,
  6863. 25346, 25919, 25925, 26027, 26045, 26082, 26149, 26157, 26144, 26151,
  6864. 26159, 26143, 26152, 26161, 26148, 26359, 26623, 26579, 26609, 26580,
  6865. 26576, 26604, 26550, 26543, 26613, 26601, 26607, 26564, 26577, 26548,
  6866. 26586, 26597, 26552, 26575, 26590, 26611, 26544, 26585, 26594, 26589,
  6867. 26578, 27498, 27523, 27526, 27573, 27602, 27607, 27679, 27849, 27915,
  6868. 27954, 27946, 27969, 27941, 27916, 27953, 27934, 27927, 27963,
  6869. {f: 2, c: 27965}, 27958, 27931, 27893, 27961, 27943, 27960, 27945, 27950,
  6870. 27957, 27918, 27947, 28843, 28858, 28851, 28844, 28847, 28845, 28856,
  6871. 28846, 28836, 29232, 29298, 29295, 29300, 29417, {f: 2, c: 29408}, 29623,
  6872. 29642, 29627, 29618, 29645, 29632, 29619, 29978, 29997, 30031, 30028,
  6873. 30030, 30027, 30123, {f: 2, c: 30116}, {f: 2, c: 30114}, 30328,
  6874. {f: 3, c: 30342}, 30408, 30406, 30403, 30405, 30465, 30457, 30456, 30473,
  6875. 30475, 30462, 30460, 30471, 30684, 30722, 30740, {f: 2, c: 30732}, 31046,
  6876. 31049, 31048, 31047, {f: 2, c: 31161}, {f: 2, c: 31185}, 31179, 31359,
  6877. 31361, 31487, 31485, 31869, 32002, 32005, 32000, 32009, 32007, 32004,
  6878. 32006, 32568, 32654, 32703, 32784, 32781, 32785, 32822, 32982, 32997,
  6879. 32986, {f: 2, c: 32963}, 32972, 32993, 32987, 32974, 32990, 32996, 32989,
  6880. 33268, 33314, 33511, 33539, 33541, 33507, 33499, 33510, 33540, 33509,
  6881. 33538, 33545, 33490, 33495, 33521, 33537, 33500, 33492, 33489, 33502,
  6882. 33491, 33503, 33519, 33542, 34384, 34425, 34427, 34426, 34893, 34923,
  6883. 35201, 35284, 35336, {f: 2, c: 35330}, 35998, 36000, 36212, 36211, 36276,
  6884. 36557, 36556, 36848, 36838, 36834, 36842, 36837, 36845, 36843, 36836,
  6885. 36840, 37066, 37070, 37057, 37059, 37195, 37194, 37325, 38274, 38480,
  6886. {f: 3, c: 38475}, [12207, 38754], [12208, 38761], [12209, 38859],
  6887. [12210, 38893], [12211, 38899], [12212, 38913], [12213, 39080],
  6888. [12214, 39131], [12215, 39135], [12216, 39318], [12217, 39321], 20056,
  6889. 20147, {f: 2, c: 20492}, 20515, 20463, 20518, 20517, 20472, [20521, 57375],
  6890. 20502, 20486, 20540, 20511, 20506, 20498, 20497, 20474, 20480, 20500,
  6891. 20520, 20465, 20513, 20491, 20505, 20504, 20467, 20462, 20525, 20522,
  6892. 20478, 20523, 20489, 20860, {f: 2, c: 20900}, 20898, 20941, 20940, 20934,
  6893. 20939, 21078, 21084, 21076, 21083, 21085, 21290, [21375, 57459], 21407,
  6894. 21405, 21471, 21736, 21776, 21761, 21815, 21756, 21733, 21746, 21766,
  6895. 21754, 21780, 21737, 21741, 21729, 21769, 21742, 21738, 21734, 21799,
  6896. 21767, 21757, 21775, {f: 2, c: 22275}, 22466, 22484, 22475, 22467, 22537,
  6897. 22799, {f: 2, c: 22871}, 22874, 23057, 23064, 23068, 23071, 23067, 23059,
  6898. 23020, 23072, 23075, 23081, 23077, 23052, 23049, 23403, 23640, 23472,
  6899. 23475, 23478, 23476, 23470, 23477, 23481, 23480, 23556, 23633, 23637,
  6900. 23632, 23789, 23805, 23803, 23786, 23784, 23792, 23798, 23809, 23796,
  6901. 24046, 24109, 24107, 24235, 24237, 24231, 24369, 24466, 24465, 24464,
  6902. 24665, 24675, 24677, 24656, 24661, 24685, 24681, 24687, 24708, 24735,
  6903. 24730, 24717, 24724, 24716, 24709, 24726, 25159, 25331, 25352, 25343,
  6904. 25422, 25406, 25391, 25429, 25410, 25414, 25423, 25417, 25402, 25424,
  6905. 25405, {f: 2, c: 25386}, 25384, 25421, 25420, {f: 2, c: 25928}, 26009,
  6906. 26049, 26053, 26178, 26185, 26191, 26179, 26194, 26188, 26181, 26177,
  6907. 26360, {f: 2, c: 26388}, 26391, 26657, 26680, 26696, 26694, 26707, 26681,
  6908. 26690, 26708, 26665, 26803, 26647, 26700, 26705, 26685, 26612, 26704,
  6909. 26688, 26684, 26691, 26666, 26693, 26643, 26648, 26689, 27530, 27529,
  6910. 27575, 27683, {f: 2, c: 27687}, 27686, 27684, 27888, 28010, 28053, 28040,
  6911. 28039, 28006, 28024, 28023, 27993, 28051, 28012, 28041, 28014, 27994,
  6912. 28020, 28009, 28044, 28042, 28025, 28037, 28005, 28052, 28874, 28888,
  6913. 28900, 28889, 28872, 28879, 29241, 29305, 29436, 29433, 29437, 29432,
  6914. 29431, 29574, 29677, 29705, 29678, 29664, 29674, 29662, 30036, 30045,
  6915. 30044, 30042, 30041, 30142, 30149, 30151, {f: 2, c: 30130}, 30141, 30140,
  6916. 30137, 30146, 30136, 30347, 30384, 30410, {f: 2, c: 30413}, 30505,
  6917. {f: 2, c: 30495}, 30504, 30697, 30768, 30759, 30776, 30749, 30772, 30775,
  6918. 30757, 30765, 30752, 30751, 30770, 31061, 31056, 31072, 31071, 31062,
  6919. 31070, 31069, 31063, 31066, 31204, [31203, 60418], 31207, 31199, 31206,
  6920. 31209, 31192, 31364, 31368, 31449, 31494, 31505, 31881, 32033, 32023,
  6921. 32011, 32010, 32032, 32034, 32020, 32016, 32021, 32026, 32028, 32013,
  6922. 32025, 32027, 32570, 32607, 32660, 32709, 32705, 32774, 32772, 32792,
  6923. 32789, 32793, 32791, 32829, 32831, 33009, 33026, 33008, 33029, 33005,
  6924. 33012, 33030, 33016, 33011, 33032, 33021, 33034, 33020, 33007, 33261,
  6925. 33260, 33280, 33296, {f: 2, c: 33322}, 33320, 33324, 33467, 33579, 33618,
  6926. 33620, 33610, 33592, 33616, 33609, 33589, 33588, 33615, 33586, 33593,
  6927. 33590, 33559, 33600, 33585, 33576, 33603, 34388, 34442, 34474, 34451,
  6928. 34468, 34473, 34444, 34467, 34460, 34928, 34935, {f: 2, c: 34945}, 34941,
  6929. 34937, 35352, 35344, 35342, 35340, 35349, 35338, 35351, 35347, 35350,
  6930. 35343, 35345, 35912, 35962, 35961, {f: 2, c: 36001}, [36215, 58442], 36524,
  6931. 36562, 36564, 36559, 36785, 36865, 36870, 36855, 36864, 36858, 36852,
  6932. 36867, 36861, 36869, 36856, 37013, 37089, 37085, 37090, 37202, 37197,
  6933. 37196, 37336, 37341, 37335, 37340, 37337, 38275, {f: 2, c: 38498}, 38497,
  6934. 38491, 38493, 38500, 38488, 38494, 38587, 39138, [12218, 39340],
  6935. [12219, 39592], [12220, 39640], [12222, 39717], [12224, 39730],
  6936. [12225, 39740], 20094, 20602, [20605, 57382], 20572, 20551, 20547, 20556,
  6937. 20570, 20553, 20581, 20598, 20558, 20565, 20597, 20596, 20599, 20559,
  6938. 20495, 20591, 20589, 20828, 20885, 20976, 21098, 21103, 21202, 21209,
  6939. 21208, 21205, 21264, 21263, 21273, {f: 2, c: 21311}, 21310, 21443, 26364,
  6940. 21830, 21866, 21862, 21828, 21854, 21857, 21827, 21834, 21809, 21846,
  6941. 21839, 21845, 21807, 21860, 21816, 21806, 21852, 21804, 21859, 21811,
  6942. 21825, 21847, 22280, 22283, 22281, 22495, 22533, 22538, 22534, 22496,
  6943. 22500, 22522, 22530, 22581, 22519, 22521, 22816, 22882, 23094, 23105,
  6944. 23113, 23142, 23146, 23104, 23100, 23138, 23130, 23110, 23114, 23408,
  6945. 23495, 23493, 23492, 23490, 23487, 23494, 23561, 23560, 23559, 23648,
  6946. {f: 2, c: 23644}, 23815, 23814, 23822, 23835, 23830, 23842, 23825, 23849,
  6947. 23828, 23833, 23844, 23847, 23831, 24034, 24120, 24118, 24115, 24119,
  6948. {f: 2, c: 24247}, 24246, 24245, 24254, 24373, 24375, 24407, 24428, 24425,
  6949. 24427, 24471, 24473, 24478, 24472, 24481, 24480, 24476, 24703, 24739,
  6950. 24713, 24736, 24744, 24779, 24756, 24806, 24765, 24773, 24763, 24757,
  6951. 24796, 24764, 24792, 24789, 24774, 24799, 24760, 24794, 24775,
  6952. {f: 2, c: 25114}, 25160, 25504, 25511, 25458, 25494, 25506, 25509, 25463,
  6953. 25447, 25496, 25514, 25457, 25513, 25481, 25475, 25499, 25451, 25512,
  6954. 25476, 25480, 25497, 25505, 25516, 25490, 25487, 25472, 25467, 25449,
  6955. 25448, 25466, 25949, 25942, 25937, 25945, 25943, 21855, 25935, 25944,
  6956. 25941, 25940, 26012, 26011, 26028, 26063, {f: 2, c: 26059}, 26062, 26205,
  6957. 26202, 26212, 26216, 26214, 26206, 26361, 21207, 26395, 26753, 26799,
  6958. 26786, 26771, 26805, 26751, 26742, 26801, 26791, 26775, 26800, 26755,
  6959. 26820, 26797, 26758, 26757, 26772, 26781, 26792, 26783, 26785, 26754,
  6960. 27442, 27578, {f: 2, c: 27627}, 27691, 28046, 28092, 28147, 28121, 28082,
  6961. 28129, 28108, 28132, 28155, 28154, 28165, 28103, 28107, 28079, 28113,
  6962. 28078, 28126, 28153, 28088, 28151, 28149, 28101, 28114, 28186, 28085,
  6963. 28122, 28139, 28120, 28138, 28145, 28142, 28136, 28102, 28100, 28074,
  6964. 28140, 28095, 28134, 28921, {f: 2, c: 28937}, 28925, 28911, 29245, 29309,
  6965. 29313, 29468, 29467, 29462, 29459, 29465, 29575, 29701, 29706, 29699,
  6966. 29702, 29694, 29709, 29920, {f: 2, c: 29942}, 29980, 29986,
  6967. {f: 2, c: 30053}, 30050, 30064, 30095, {f: 2, c: 30164}, 30133, 30154,
  6968. 30157, 30350, 30420, 30418, 30427, 30519, 30526, 30524, 30518, 30520,
  6969. 30522, 30827, 30787, 30798, 31077, 31080, 31085, 31227, 31378, 31381,
  6970. 31520, 31528, 31515, 31532, 31526, 31513, 31518, 31534, 31890, 31895,
  6971. 31893, 32070, 32067, 32113, 32046, 32057, 32060, 32064, 32048, 32051,
  6972. 32068, 32047, 32066, 32050, 32049, 32573, 32670, 32666, 32716, 32718,
  6973. 32722, 32796, 32842, 32838, 33071, 33046, 33059, 33067, 33065, 33072,
  6974. 33060, 33282, 33333, 33335, 33334, 33337, 33678, 33694, 33688, 33656,
  6975. 33698, 33686, 33725, 33707, 33682, 33674, 33683, 33673, 33696, 33655,
  6976. {f: 2, c: 33659}, 33670, 33703, 34389, 24426, 34503, 34496, 34486, 34500,
  6977. 34485, 34502, 34507, 34481, 34479, 34505, 34899, 34974, 34952, 34987,
  6978. 34962, 34966, 34957, 34955, 35219, 35215, 35370, 35357, 35363, 35365,
  6979. 35377, 35373, 35359, 35355, 35362, 35913, 35930, 36009, 36012, 36011,
  6980. 36008, 36010, 36007, 36199, 36198, 36286, 36282, 36571, 36575, 36889,
  6981. 36877, 36890, 36887, 36899, 36895, 36893, 36880, 36885, 36894, 36896,
  6982. 36879, 36898, 36886, 36891, 36884, 37096, 37101, [37117, 58488], 37207,
  6983. 37326, 37365, 37350, 37347, 37351, 37357, 37353, 38281, 38506, 38517,
  6984. 38515, 38520, 38512, 38516, {f: 2, c: 38518}, 38508, 38592, 38634, 38633,
  6985. 31456, 31455, {f: 2, c: 38914}, [12226, 39770], [12227, 40165],
  6986. [12228, 40565], [12229, 40575], [12230, 40613], [12231, 40635], 20642,
  6987. 20621, 20613, 20633, 20625, 20608, 20630, 20632, 20634, 26368, 20977,
  6988. 21106, {f: 2, c: 21108}, 21097, 21214, 21213, 21211, 21338, 21413, 21883,
  6989. 21888, 21927, 21884, 21898, 21917, 21912, 21890, 21916, 21930, 21908,
  6990. 21895, 21899, 21891, 21939, 21934, 21919, 21822, 21938, 21914, 21947,
  6991. 21932, 21937, 21886, 21897, 21931, 21913, 22285, 22575, 22570, 22580,
  6992. 22564, {f: 2, c: 22576}, 22561, 22557, 22560, {f: 2, c: 22777}, 22880,
  6993. [23159, 57587], 23194, 23167, 23186, 23195, 23207, 23411, 23409, 23506,
  6994. 23500, 23507, 23504, {f: 2, c: 23562}, 23601, 23884, 23888, 23860, 23879,
  6995. 24061, 24133, 24125, 24128, 24131, 24190, 24266, {f: 2, c: 24257}, 24260,
  6996. 24380, 24429, {f: 2, c: 24489}, 24488, 24785, 24801, 24754, 24758, 24800,
  6997. 24860, 24867, 24826, 24853, 24816, 24827, 24820, 24936, 24817, 24846,
  6998. 24822, 24841, 24832, 24850, 25119, 25161, 25507, 25484, 25551, 25536,
  6999. 25577, 25545, 25542, 25549, 25554, 25571, 25552, 25569, 25558,
  7000. {f: 2, c: 25581}, 25462, 25588, 25578, 25563, 25682, 25562, 25593, 25950,
  7001. 25958, {f: 2, c: 25954}, 26001, 26000, 26031, 26222, 26224, [26228, 57786],
  7002. 26230, 26223, 26257, 26234, 26238, 26231, {f: 2, c: 26366}, 26399, 26397,
  7003. 26874, 26837, 26848, 26840, 26839, 26885, 26847, 26869, 26862, 26855,
  7004. 26873, 26834, 26866, 26851, 26827, 26829, 26893, 26898, 26894, 26825,
  7005. 26842, 26990, 26875, 27454, 27450, 27453, 27544, 27542, 27580, 27631,
  7006. {f: 2, c: 27694}, 27692, [28207, 57904], 28216, 28244, 28193, 28210, 28263,
  7007. 28234, 28192, 28197, 28195, 28187, 28251, 28248, 28196, 28246, 28270,
  7008. 28205, 28198, 28271, 28212, 28237, 28218, 28204, 28227, [28189, 57901],
  7009. 28222, 28363, 28297, 28185, 28238, 28259, 28228, 28274, 28265, 28255,
  7010. {f: 2, c: 28953}, 28966, 28976, 28961, 28982, [29038, 57958], 28956, 29260,
  7011. 29316, 29312, 29494, 29477, 29492, 29481, 29754, 29738, 29747, 29730,
  7012. 29733, {f: 2, c: 29749}, 29748, 29743, 29723, 29734, 29736,
  7013. {f: 2, c: 29989}, 30059, 30058, 30178, 30171, 30179, 30169, 30168, 30174,
  7014. 30176, {f: 2, c: 30331}, 30358, 30355, 30388, 30428, 30543, 30701, 30813,
  7015. 30828, 30831, 31245, 31240, 31243, 31237, 31232, 31384, 31383, 31382,
  7016. 31461, 31459, 31561, 31574, 31558, 31568, 31570, 31572, 31565, 31563,
  7017. 31567, [31569, 60510], 31903, 31909, 32094, 32080, 32104, 32085, 32043,
  7018. 32110, 32114, 32097, 32102, 32098, 32112, 32115, 21892, {f: 2, c: 32724},
  7019. 32779, 32850, 32901, 33109, 33108, 33099, 33105, 33102, 33081, 33094,
  7020. 33086, 33100, 33107, 33140, 33298, 33308, 33769, 33795, 33784, 33805,
  7021. 33760, 33733, 33803, [33729, 58309], 33775, 33777, 33780, 33879, 33802,
  7022. 33776, 33804, 33740, 33789, 33778, 33738, 33848, 33806, 33796, 33756,
  7023. 33799, 33748, 33759, 34395, 34527, 34521, 34541, 34516, 34523, 34532,
  7024. 34512, 34526, 34903, {f: 2, c: 35009}, 34993, 35203, 35222, 35387, 35424,
  7025. 35413, 35422, 35388, 35393, 35412, 35419, 35408, 35398, 35380, 35386,
  7026. 35382, 35414, 35937, 35970, 36015, 36028, 36019, 36029, 36033, 36027,
  7027. 36032, 36020, 36023, 36022, 36031, 36024, 36234, 36229, 36225, 36302,
  7028. 36317, 36299, 36314, 36305, 36300, 36315, 36294, 36603, 36600, 36604,
  7029. 36764, 36910, 36917, 36913, 36920, 36914, 36918, 37122, 37109, 37129,
  7030. 37118, 37219, 37221, 37327, {f: 2, c: 37396}, 37411, 37385, 37406, 37389,
  7031. 37392, 37383, 37393, 38292, 38287, 38283, 38289, 38291, 38290, 38286,
  7032. 38538, 38542, 38539, 38525, {f: 2, c: 38533}, 38541, 38514, 38532, 38593,
  7033. 38597, 38596, {f: 2, c: 38598}, 38639, 38642, 38860, {f: 2, c: 38917},
  7034. 38920, 39143, 39146, 39151, 39145, 39154, 39149, 39342, 39341,
  7035. [12232, 40643], [12233, 40653], [12234, 40657], 20098, 20653, 20661,
  7036. {f: 2, c: 20658}, 20677, 20670, 20652, 20663, 20667, 20655, 20679, 21119,
  7037. 21111, 21117, 21215, 21222, 21220, {f: 2, c: 21218}, 21295, 21983, 21992,
  7038. 21971, 21990, 21966, 21980, 21959, 21969, {f: 2, c: 21987}, 21999, 21978,
  7039. 21985, {f: 2, c: 21957}, 21989, 21961, {f: 2, c: 22290}, 22622, 22609,
  7040. 22616, 22615, 22618, 22612, 22635, 22604, 22637, 22602, 22626, 22610,
  7041. 22603, 22887, 23233, 23241, 23244, 23230, 23229, 23228, 23219, 23234,
  7042. 23218, 23913, 23919, 24140, 24185, 24265, 24264, 24338, 24409, 24492,
  7043. 24494, 24858, 24847, 24904, 24863, 24819, 24859, 24825, 24833, 24840,
  7044. 24910, 24908, 24900, 24909, 24894, 24884, 24871, 24845, 24838, 24887,
  7045. {f: 2, c: 25121}, 25619, 25662, 25630, 25642, 25645, 25661, 25644, 25615,
  7046. 25628, 25620, 25613, 25654, {f: 2, c: 25622}, 25606, 25964, 26015, 26032,
  7047. 26263, 26249, {f: 2, c: 26247}, 26262, 26244, 26264, 26253, 26371, 27028,
  7048. 26989, 26970, 26999, 26976, 26964, 26997, 26928, 27010, 26954, 26984,
  7049. 26987, 26974, 26963, 27001, 27014, 26973, 26979, 26971, 27463, 27506,
  7050. 27584, 27583, 27603, 27645, 28322, 28335, 28371, 28342, 28354, 28304,
  7051. 28317, 28359, 28357, 28325, 28312, 28348, 28346, 28331, 28369, 28310,
  7052. 28316, 28356, 28372, 28330, 28327, 28340, 29006, 29017, 29033, 29028,
  7053. 29001, 29031, 29020, 29036, 29030, 29004, 29029, 29022, 28998, 29032,
  7054. 29014, 29242, 29266, 29495, 29509, 29503, 29502, 29807, 29786, 29781,
  7055. 29791, 29790, 29761, 29759, 29785, 29787, [29788, 58019], 30070, 30072,
  7056. 30208, 30192, 30209, 30194, 30193, 30202, 30207, 30196, 30195,
  7057. {f: 2, c: 30430}, 30555, 30571, 30566, 30558, 30563, 30585, 30570, 30572,
  7058. 30556, 30565, 30568, 30562, 30702, 30862, 30896, {f: 2, c: 30871}, 30860,
  7059. 30857, 30844, 30865, 30867, 30847, 31098, 31103, 31105, 33836, 31165,
  7060. 31260, 31258, 31264, 31252, 31263, 31262, {f: 2, c: 31391}, 31607, 31680,
  7061. 31584, 31598, 31591, 31921, 31923, 31925, 32147, 32121, 32145, 32129,
  7062. 32143, 32091, 32622, {f: 2, c: 32617}, 32626, 32681, 32680, 32676, 32854,
  7063. 32856, 32902, 32900, 33137, 33136, 33144, 33125, 33134, 33139, 33131,
  7064. {f: 2, c: 33145}, 33126, 33285, 33351, 33922, 33911, 33853, 33841, 33909,
  7065. 33894, 33899, 33865, 33900, 33883, 33852, 33845, 33889, 33891, 33897,
  7066. 33901, 33862, 34398, 34396, 34399, 34553, 34579, 34568, 34567, 34560,
  7067. 34558, 34555, {f: 2, c: 34562}, 34566, 34570, 34905, 35039, 35028, 35033,
  7068. 35036, 35032, 35037, 35041, 35018, 35029, 35026, 35228, 35299, 35435,
  7069. {f: 2, c: 35442}, 35430, 35433, 35440, 35463, 35452, 35427, 35488, 35441,
  7070. 35461, 35437, 35426, 35438, 35436, 35449, 35451, 35390, 35432, 35938,
  7071. 35978, 35977, 36042, {f: 2, c: 36039}, 36036, 36018, 36035, 36034, 36037,
  7072. 36321, 36319, 36328, 36335, 36339, 36346, 36330, 36324, 36326, 36530,
  7073. 36611, 36617, 36606, 36618, 36767, 36786, 36939, 36938, 36947, 36930,
  7074. 36948, 36924, 36949, 36944, 36935, 36943, 36942, 36941, 36945, 36926,
  7075. 36929, 37138, 37143, 37228, 37226, 37225, 37321, 37431, 37463, 37432,
  7076. 37437, 37440, 37438, 37467, 37451, 37476, 37457, 37428, 37449, 37453,
  7077. 37445, 37433, 37439, 37466, 38296, 38552, {f: 2, c: 38548}, 38605, 38603,
  7078. {f: 2, c: 38601}, 38647, 38651, 38649, 38646, 38742, 38772, 38774,
  7079. {f: 2, c: 38928}, 38931, 38922, 38930, 38924, 39164, 39156,
  7080. {f: 2, c: 39165}, 39347, 39345, 39348, 39649, 40169, 40578, [12237, 40718],
  7081. [12238, 40723], [12239, 40736], 20711, 20718, 20709, 20694, [20717, 60903],
  7082. 20698, 20693, 20687, 20689, 20721, 20686, 20713, 20834, 20979, 21123,
  7083. 21122, 21297, 21421, 22014, 22016, 22043, 22039, 22013, 22036, 22022,
  7084. 22025, {f: 2, c: 22029}, 22007, 22038, 22047, 22024, 22032, 22006, 22296,
  7085. 22294, 22645, 22654, 22659, 22675, 22666, 22649, 22661, 22653, 22781,
  7086. 22821, 22818, 22820, 22890, 22889, 23265, 23270, 23273, 23255, 23254,
  7087. 23256, 23267, 23413, 23518, 23527, 23521, {f: 2, c: 23525}, 23528, 23522,
  7088. 23524, 23519, 23565, 23650, 23940, 23943, 24155, 24163, 24149, 24151,
  7089. 24148, 24275, 24278, 24330, 24390, 24432, 24505, 24903, 24895, 24907,
  7090. 24951, {f: 2, c: 24930}, 24927, 24922, 24920, 24949, 25130, 25735, 25688,
  7091. 25684, 25764, 25720, 25695, 25722, 25681, 25703, 25652, 25709, 25723,
  7092. 25970, 26017, 26071, 26070, 26274, 26280, 26269, 27036, 27048, 27029,
  7093. 27073, 27054, 27091, 27083, 27035, 27063, 27067, 27051, 27060, 27088,
  7094. 27085, 27053, 27084, 27046, 27075, 27043, 27465, 27468, 27699, 28467,
  7095. 28436, 28414, 28435, 28404, 28457, 28478, 28448, 28460, 28431, 28418,
  7096. 28450, 28415, 28399, 28422, 28465, 28472, 28466, 28451, 28437, 28459,
  7097. 28463, 28552, 28458, 28396, 28417, 28402, 28364, 28407, 29076, 29081,
  7098. 29053, 29066, 29060, 29074, 29246, 29330, 29334, 29508, 29520, 29796,
  7099. 29795, 29802, 29808, 29805, 29956, 30097, 30247, 30221, 30219, 30217,
  7100. 30227, 30433, 30435, 30596, 30589, 30591, 30561, 30913, 30879, 30887,
  7101. 30899, 30889, 30883, {f: 2, c: 31118}, 31117, 31278, 31281, 31402, 31401,
  7102. 31469, 31471, 31649, 31637, 31627, 31605, 31639, 31645, 31636, 31631,
  7103. [31672, 58170], 31623, 31620, 31929, {f: 2, c: 31933}, 32187, 32176, 32156,
  7104. {f: 2, c: 32189}, 32160, 32202, 32180, 32178, 32177, 32186, 32162, 32191,
  7105. 32181, 32184, 32173, [32210, 58202], 32199, 32172, 32624, {f: 2, c: 32736},
  7106. 32735, 32862, 32858, 32903, 33104, 33152, 33167, 33160, 33162, 33151,
  7107. 33154, 33255, 33274, 33287, 33300, 33310, 33355, 33993, 33983, 33990,
  7108. 33988, 33945, 33950, 33970, 33948, 33995, 33976, 33984, 34003, 33936,
  7109. 33980, 34001, 33994, 34623, 34588, 34619, 34594, 34597, 34612, 34584,
  7110. 34645, 34615, 34601, 35059, 35074, 35060, 35065, 35064, 35069, 35048,
  7111. 35098, 35055, 35494, 35468, 35486, 35491, 35469, 35489, 35475, 35492,
  7112. 35498, 35493, 35496, 35480, 35473, 35482, 35495, 35946, 35981, 35980,
  7113. 36051, {f: 2, c: 36049}, 36203, 36249, 36245, 36348, 36628, 36626, 36629,
  7114. 36627, 36771, 36960, 36952, 36956, 36963, 36953, 36958, 36962, 36957,
  7115. 36955, 37145, 37144, 37150, 37237, 37240, 37239, 37236, 37496, 37548,
  7116. 37504, 37509, 37528, 37526, 37499, 37523, 37532, 37544, 37500, 37521,
  7117. 38305, {f: 2, c: 38312}, 38307, 38309, 38308, 38553, 38556, 38555, 38604,
  7118. 38610, 38656, 38780, 38789, 38902, {f: 2, c: 38935}, 39087, 39089, 39171,
  7119. 39173, 39180, 39177, 39361, {f: 2, c: 39599}, 39654, {f: 2, c: 39745},
  7120. 40180, 40182, 40179, 40636, [12240, 40763], [12241, 40778], 20740, 20736,
  7121. 20731, 20725, 20729, 20738, {f: 2, c: 20744}, 20741, 20956,
  7122. {f: 3, c: 21127}, 21133, 21130, 21232, 21426, 22062, 22075, 22073, 22066,
  7123. 22079, 22068, 22057, 22099, 22094, 22103, 22132, 22070, {f: 2, c: 22063},
  7124. 22656, 22687, 22686, 22707, 22684, 22702, 22697, 22694, 22893, 23305,
  7125. 23291, 23307, 23285, 23308, 23304, 23534, 23532, 23529, 23531,
  7126. {f: 2, c: 23652}, 23965, 23956, 24162, 24159, 24161, 24290, 24282, 24287,
  7127. 24285, 24291, 24288, 24392, 24433, 24503, 24501, 24950, 24935, 24942,
  7128. 24925, 24917, 24962, 24956, 24944, 24939, 24958, 24999, 24976, 25003,
  7129. 24974, 25004, 24986, 24996, 24980, 25006, 25134, 25705, 25711, 25721,
  7130. 25758, 25778, 25736, [25744, 57745], 25776, 25765, 25747, 25749, 25769,
  7131. 25746, 25774, 25773, 25771, 25754, 25772, 25753, 25762, 25779, 25973,
  7132. {f: 2, c: 25975}, 26286, 26283, 26292, 26289, 27171, 27167, 27112, 27137,
  7133. 27166, 27161, 27133, 27169, 27155, 27146, 27123, 27138, 27141, 27117,
  7134. 27153, 27472, 27470, 27556, {f: 2, c: 27589}, 28479, 28540, 28548, 28497,
  7135. 28518, 28500, 28550, 28525, 28507, 28536, 28526, 28558, 28538, 28528,
  7136. 28516, 28567, 28504, 28373, 28527, 28512, 28511, 29087, 29100, 29105,
  7137. 29096, 29270, 29339, 29518, 29527, 29801, 29835, 29827, 29822, 29824,
  7138. 30079, 30240, 30249, 30239, 30244, 30246, {f: 2, c: 30241}, 30362, 30394,
  7139. 30436, 30606, 30599, 30604, 30609, 30603, 30923, 30917, 30906, 30922,
  7140. 30910, 30933, 30908, 30928, 31295, 31292, 31296, 31293, 31287, 31291,
  7141. 31407, 31406, 31661, 31665, 31684, 31668, {f: 2, c: 31686}, 31681, 31648,
  7142. 31692, 31946, 32224, 32244, 32239, 32251, 32216, 32236, 32221, 32232,
  7143. 32227, 32218, 32222, 32233, 32158, 32217, 32242, 32249, 32629, 32631,
  7144. 32687, 32745, 32806, {f: 3, c: 33179}, 33184, 33178, 33176, 34071, 34109,
  7145. 34074, 34030, {f: 2, c: 34092}, 34067, 34065, 34083, 34081, 34068, 34028,
  7146. 34085, 34047, 34054, 34690, 34676, 34678, 34656, 34662, 34680, 34664,
  7147. 34649, 34647, 34636, 34643, 34907, 34909, 35088, 35079, {f: 2, c: 35090},
  7148. 35093, 35082, 35516, 35538, 35527, 35524, 35477, 35531, 35576, 35506,
  7149. 35529, 35522, 35519, 35504, 35542, 35533, 35510, 35513, 35547, 35916,
  7150. 35918, 35948, 36064, 36062, 36070, 36068, {f: 2, c: 36076},
  7151. {f: 2, c: 36066}, 36060, 36074, 36065, 36205, 36255, 36259, 36395, 36368,
  7152. 36381, 36386, 36367, 36393, 36383, 36385, 36382, 36538, 36637, 36635,
  7153. 36639, 36649, 36646, 36650, 36636, 36638, 36645, 36969, 36974, 36968,
  7154. 36973, 36983, 37168, 37165, 37159, 37169, 37255, 37257, 37259, 37251,
  7155. 37573, 37563, 37559, 37610, 37604, 37569, 37555, 37564, 37586, 37575,
  7156. 37616, 37554, 38317, 38321, 38660, {f: 2, c: 38662}, 38665, 38752, 38797,
  7157. 38795, 38799, 38945, 38955, 38940, 39091, 39178, 39187, 39186, 39192,
  7158. 39389, 39376, 39391, 39387, 39377, 39381, 39378, 39385, 39607,
  7159. {f: 2, c: 39662}, 39719, 39749, 39748, 39799, 39791, 40198, 40201, 40195,
  7160. 40617, 40638, 40654, 22696, [12242, 40786], 20754, 20760, 20756, 20752,
  7161. 20757, 20864, 20906, 20957, 21137, 21139, 21235, 22105, 22123, 22137,
  7162. 22121, 22116, 22136, 22122, 22120, 22117, 22129, 22127, 22124, 22114,
  7163. 22134, 22721, 22718, 22727, 22725, 22894, 23325, 23348, 23416, 23536,
  7164. 23566, 24394, 25010, 24977, 25001, 24970, 25037, 25014, 25022, 25034,
  7165. 25032, 25136, 25797, 25793, 25803, {f: 2, c: 25787}, 25818, 25796, 25799,
  7166. 25794, 25805, 25791, 25810, 25812, 25790, 25972, 26310, 26313, 26297,
  7167. 26308, 26311, 26296, 27197, 27192, 27194, 27225, 27243, 27224, 27193,
  7168. 27204, 27234, 27233, 27211, 27207, 27189, 27231, 27208, 27481, 27511,
  7169. 27653, 28610, 28593, 28577, 28611, 28580, 28609, 28583, 28595, 28608,
  7170. 28601, [28598, 60318], 28582, 28576, 28596, 29118, 29129, 29136, 29138,
  7171. 29128, 29141, 29113, 29134, 29145, 29148, {f: 2, c: 29123}, 29544, 29852,
  7172. 29859, 29848, 29855, 29854, 29922, {f: 2, c: 29964}, 30260, 30264, 30266,
  7173. 30439, 30437, 30624, {f: 2, c: 30622}, 30629, 30952, 30938, 30956, 30951,
  7174. 31142, {f: 2, c: 31309}, 31302, 31308, 31307, 31418, 31705, 31761, 31689,
  7175. 31716, 31707, 31713, 31721, 31718, {f: 2, c: 31957}, 32266, 32273, 32264,
  7176. 32283, 32291, 32286, [32285, 58211], 32265, 32272, 32633, 32690,
  7177. {f: 2, c: 32752}, 32750, [32808, 58239], 33203, 33193, 33192, 33275, 33288,
  7178. {f: 2, c: 33368}, 34122, 34137, 34120, {f: 2, c: 34152}, 34115, 34121,
  7179. 34157, 34154, 34142, 34691, 34719, 34718, 34722, 34701, 34913, 35114,
  7180. 35122, 35109, 35115, 35105, 35242, [35238, 58391], 35558, 35578, 35563,
  7181. 35569, 35584, 35548, 35559, 35566, 35582, {f: 2, c: 35585}, 35575, 35565,
  7182. 35571, 35574, 35580, 35947, 35949, 35987, 36084, 36420, 36401, 36404,
  7183. 36418, 36409, 36405, 36667, 36655, 36664, 36659, 36776, 36774, 36981,
  7184. 36980, 36984, 36978, 36988, 36986, 37172, 37266, 37664, 37686, 37624,
  7185. 37683, 37679, 37666, 37628, 37675, 37636, 37658, 37648, 37670, 37665,
  7186. 37653, 37678, 37657, 38331, {f: 2, c: 38567}, 38570, 38613, 38670, 38673,
  7187. 38678, 38669, 38675, 38671, 38747, [38748, 58565], 38758, 38808, 38960,
  7188. 38968, 38971, 38967, 38957, 38969, 38948, 39184, 39208, 39198, 39195,
  7189. 39201, 39194, 39405, 39394, 39409, 39608, 39612, 39675, 39661, 39720,
  7190. 39825, 40213, 40227, 40230, 40232, 40210, 40219, 40664, 40660,
  7191. [12243, 40845], [12244, 40860], 20778, 20767, 20769, 20786, 21237, 22158,
  7192. 22144, 22160, 22149, 22151, 22159, 22741, 22739, 22737, 22734, 23344,
  7193. 23338, 23332, 23418, 23607, 23656, 23996, 23994, 23997, 23992, 24171,
  7194. 24396, 24509, 25033, 25026, 25031, 25062, 25035, 25138, 25140, 25806,
  7195. 25802, 25816, 25824, 25840, 25830, 25836, 25841, 25826, 25837,
  7196. {f: 2, c: 25986}, 26329, 26326, 27264, 27284, 27268, 27298, 27292, 27355,
  7197. 27299, 27262, 27287, 27280, 27296, 27484, 27566, 27610, 27656, 28632,
  7198. 28657, {f: 2, c: 28639}, 28635, 28644, 28651, 28655, 28544, 28652, 28641,
  7199. 28649, 28629, 28654, 28656, 29159, [29151, 60361], 29166, 29158, 29157,
  7200. 29165, 29164, 29172, 29152, 29237, 29254, 29552, 29554, 29865, 29872,
  7201. 29862, 29864, 30278, 30274, 30284, 30442, 30643, 30634, 30640, 30636,
  7202. 30631, 30637, 30703, 30967, 30970, 30964, 30959, 30977, 31143, 31146,
  7203. 31319, 31423, 31751, 31757, 31742, 31735, 31756, 31712, 31968, 31964,
  7204. 31966, 31970, 31967, 31961, 31965, 32302, 32318, 32326, 32311, 32306,
  7205. 32323, 32299, 32317, 32305, 32325, 32321, 32308, 32313, 32328, 32309,
  7206. 32319, 32303, 32580, 32755, 32764, {f: 2, c: 32881}, 32880, 32879, 32883,
  7207. 33222, 33219, 33210, 33218, 33216, 33215, 33213, 33225, 33214, 33256,
  7208. 33289, 33393, 34218, 34180, 34174, 34204, 34193, 34196, 34223, 34203,
  7209. 34183, 34216, 34186, 34214, 34407, 34752, 34769, 34739, 34770, 34758,
  7210. 34731, 34747, 34746, 34760, 34763, 35131, 35126, 35140, 35128, 35133,
  7211. 35244, 35598, 35607, 35609, 35611, 35594, 35616, 35613, 35588, 35600,
  7212. 35905, 35903, 35955, 36090, 36093, 36092, 36088, 36091, 36264, 36425,
  7213. 36427, 36424, 36426, 36676, 36670, 36674, 36677, 36671, 36991, 36989,
  7214. 36996, {f: 2, c: 36993}, 36992, 37177, 37283, 37278, 37276, 37709, 37762,
  7215. 37672, 37749, 37706, 37733, 37707, 37656, 37758, 37740, 37723, 37744,
  7216. 37722, 37716, {f: 3, c: 38346}, 38344, 38342, 38577, 38584, 38614, 38684,
  7217. 38686, 38816, 38867, 38982, 39094, 39221, 39425, 39423, 39854, 39851,
  7218. 39850, 39853, 40251, 40255, 40587, 40655, 40670, {f: 2, c: 40668}, 40667,
  7219. 40766, 40779, 21474, 22165, 22190, 22745, 22744, 23352, 24413, 25059,
  7220. 25139, 25844, 25842, 25854, 25862, {f: 2, c: 25850}, 25847, 26039, 26332,
  7221. 26406, 27315, 27308, 27331, 27323, 27320, 27330, {f: 2, c: 27310}, 27487,
  7222. 27512, 27567, 28681, 28683, 28670, 28678, 28666, 28689, 28687,
  7223. {f: 2, c: 29179}, 29182, 29176, 29559, 29557, 29863, 29887, 29973, 30294,
  7224. 30296, 30290, 30653, 30655, {f: 2, c: 30651}, 30990, 31150,
  7225. {f: 2, c: 31329}, 31328, {f: 2, c: 31428}, 31787, 31783, 31786, 31774,
  7226. 31779, 31777, 31975, {f: 2, c: 32340}, 32350, 32346, 32353, 32338, 32345,
  7227. 32584, 32761, 32763, 32887, 32886, 33229, 33231, 33290, 34255, 34217,
  7228. 34253, 34256, 34249, 34224, 34234, 34233, 34799, 34796, 34802, 34784,
  7229. 35206, 35250, 35316, 35624, 35641, 35628, 35627, 35920, 36101, 36441,
  7230. 36451, 36454, 36452, 36447, 36437, 36544, 36681, 36685, 36999, 36995,
  7231. 37000, {f: 2, c: 37291}, 37328, 37780, 37770, 37782, 37794, 37811, 37806,
  7232. 37804, 37808, 37784, 37786, 37783, 38356, 38358, 38352, 38357, 38626,
  7233. 38620, 38617, 38619, 38622, 38692, 38819, 38822, 38829, 38905, 38989,
  7234. 38991, 38988, 38990, 38995, 39098, {f: 2, c: 39230}, 39229, 39214, 39333,
  7235. 39438, 39617, 39683, 39686, 39759, 39758, 39757, 39882, 39881, 39933,
  7236. 39880, 39872, 40273, 40285, 40288, 40672, 40725, 40748, 20787, 22181,
  7237. 22184, {f: 2, c: 22750}, 22754, 23541, 40848, 24300, 25074, 25079, 25078,
  7238. 25077, 25856, 25871, 26336, 26333, 27365, 27357, 27354, 27347, 28699,
  7239. 28703, 28712, 28698, 28701, 28693, 28696, 29190, 29197, 29272, 29346,
  7240. 29560, 29562, 29885, 29898, 29923, 30087, 30086, 30303, 30305, 30663,
  7241. 31001, 31153, 31339, 31337, {f: 2, c: 31806}, 31800, 31805, 31799, 31808,
  7242. 32363, 32365, 32377, {f: 2, c: 32361}, 32371, 32645, 32694, 32697, 32696,
  7243. 33240, 34281, 34269, 34282, 34261, {f: 2, c: 34276}, 34295, 34811, 34821,
  7244. 34829, 34809, 34814, 35168, 35167, 35158, 35166, 35649, 35676, 35672,
  7245. 35657, 35674, {f: 2, c: 35662}, 35654, 35673, 36104, 36106, 36476, 36466,
  7246. 36487, 36470, 36460, 36474, 36468, 36692, 36686, 36781, {f: 2, c: 37002},
  7247. 37297, 37294, 37857, 37841, 37855, 37827, 37832, {f: 2, c: 37852}, 37846,
  7248. 37858, 37837, 37848, 37860, 37847, 37864, 38364, 38580, 38627, 38698,
  7249. 38695, 38753, 38876, 38907, 39006, 39000, 39003, 39100, 39237, 39241,
  7250. 39446, 39449, 39693, 39912, 39911, 39894, 39899, 40329, 40289, 40306,
  7251. 40298, 40300, 40594, 40599, 40595, 40628, 21240, 22199, 22198, 22196,
  7252. 22204, 22756, 23360, 23363, 23421, 23542, 24009, 25080, 25082, 25880,
  7253. 25876, 25881, 26342, 26407, 27372, 28734, 28720, 28722, 29200, 29563,
  7254. 29903, 30306, 30309, 31014, 31018, 31020, 31019, 31431, 31478, 31820,
  7255. 31811, 31821, {f: 2, c: 31983}, 36782, 32381, 32380, 32386, 32588, 32768,
  7256. 33242, 33382, 34299, 34297, 34321, 34298, 34310, 34315, 34311, 34314,
  7257. {f: 2, c: 34836}, 35172, 35258, 35320, 35696, 35692, 35686, 35695, 35679,
  7258. 35691, 36111, 36109, 36489, 36481, 36485, 36482, 37300, 37323, 37912,
  7259. 37891, 37885, 38369, 38704, 39108, 39250, 39249, 39336, 39467, 39472,
  7260. 39479, 39477, 39955, 39949, 40569, 40629, 40680, 40751, 40799, 40803,
  7261. 40801, {f: 2, c: 20791}, 22209, 22208, 22210, 22804, 23660, 24013, 25084,
  7262. 25086, 25885, 25884, 26005, 26345, 27387, 27396, 27386, 27570, 28748,
  7263. 29211, 29351, 29910, 29908, 30313, 30675, 31824, 32399, 32396, 32700,
  7264. 34327, 34349, 34330, 34851, 34850, 34849, 34847, 35178, 35180, 35261,
  7265. 35700, 35703, 35709, 36115, 36490, 36493, 36491, 36703, 36783, 37306,
  7266. 37934, 37939, 37941, 37946, 37944, 37938, 37931, 38370, {f: 2, c: 38712},
  7267. 38706, [38911, 58586], 39015, 39013, 39255, 39493, 39491, 39488, 39486,
  7268. 39631, 39764, 39761, 39981, 39973, 40367, 40372, 40386, 40376, 40605,
  7269. 40687, 40729, 40796, {f: 2, c: 40806}, 20796, 20795, 22216, 22218, 22217,
  7270. 23423, 24020, 24018, 24398, 25087, 25892, 27402, 27489, 28753, 28760,
  7271. 29568, 29924, 30090, 30318, 30316, 31155, 31840, 31839, 32894, 32893,
  7272. 33247, 35186, 35183, 35324, 35712, {f: 2, c: 36118}, 36497, 36499, 36705,
  7273. 37192, 37956, {f: 2, c: 37969}, {f: 2, c: 38717}, 38851, 38849, 39019,
  7274. 39253, 39509, 39501, 39634, 39706, 40009, 39985, 39998, 39995, 40403,
  7275. 40407, 40756, 40812, 40810, 40852, 22220, 24022, 25088, 25891, 25899,
  7276. 25898, 26348, 27408, 29914, 31434, 31844, 31843, 31845, 32403, 32406,
  7277. 32404, 33250, 34360, 34367, 34865, 35722, 37008, 37007, 37987, 37984,
  7278. 37988, 38760, 39023, 39260, {f: 2, c: 39514}, 39511, {f: 2, c: 39635},
  7279. 39633, 40020, 40023, 40022, 40421, 40607, 40692, 22225, 22761, 25900,
  7280. 28766, {f: 2, c: 30321}, [30679, 60226], 32592, 32648, 34870, 34873, 34914,
  7281. 35731, 35730, 35734, 33399, 36123, 37312, 37994, 38722, 38728, 38724,
  7282. 38854, 39024, 39519, 39714, 39768, 40031, {f: 2, c: 40441},
  7283. {f: 2, c: 40572}, 40711, 40823, 40818, 24307, 27414, 28771, 31852, 31854,
  7284. 34875, 35264, 36513, 37313, 38002, 38000, 39025, 39262, 39638, 39715,
  7285. 40652, 28772, 30682, 35738, 38007, 38857, 39522, 39525, 32412, 35740,
  7286. 36522, 37317, {f: 2, c: 38013}, 38012, {f: 2, c: 40055}, 40695, 35924,
  7287. 38015, 40474, 29224, 39530, 39729, 40475, 40478, 31858, 20034, 20060,
  7288. [12048, 20981], [12053, 21274], [12058, 21378], 19975, 19980, 20039, 20109,
  7289. [12062, 22231], [12076, 23662], [12091, 24435], 19983, 20871, 19982, 20014,
  7290. 20115, 20162, 20169, 20168, 20888, 21244, 21356, 21433, 22304, 22787,
  7291. 22828, [23568, 60417], 24063, 26081, [12110, 27571], 27596, [12115, 27668],
  7292. [12121, 29247], 20017, 20028, 20200, 20188, 20201, 20193, 20189, 20186,
  7293. 21004, 21001, 21276, 21324, {f: 2, c: 22306}, 22807, 22831, 23425, 23428,
  7294. 23570, 23611, 23668, 23667, 24068, 24192, 24194, 24521, 25097, 25168,
  7295. 27669, 27702, 27715, 27711, 27707, 29358, 29360, 29578, [12145, 31160],
  7296. 32906, 38430, 20238, 20248, 20268, 20213, 20244, 20209, 20224, 20215,
  7297. 20232, 20253, 20226, 20229, 20258, 20243, 20228, 20212, 20242, 20913,
  7298. 21011, 21008, 21158, 21282, 21279, 21325, 21386, 21511, 22241, 22239,
  7299. 22318, 22314, 22324, 22844, 22912, 22908, 22917, 22907, 22910, 22903,
  7300. 22911, 23382, 23573, 23589, 23676, {f: 2, c: 23674}, 23678, 24031,
  7301. [24181, 57646], 24196, 24322, 24346, 24436, 24533, 24532, 24527, 25180,
  7302. 25182, 25188, 25185, 25190, 25186, 25177, 25184, 25178, 25189, 25911,
  7303. 26095, 26094, 26430, 26425, 26424, 26427, 26426, 26431, 26428, 26419,
  7304. 27672, 27718, 27730, 27740, 27727, [27722, 60796], 27732, {f: 2, c: 27723},
  7305. 28785, 29278, {f: 2, c: 29364}, 29582, 29994, 30335, 31349, [12153, 32593],
  7306. [12171, 33400], 33404, 33408, 33405, 33407, [12172, 34381], [12177, 35198],
  7307. 37017, [37015, 59347], 37016, 37019, 37012, 38434, 38436, 38432, 38435,
  7308. 20310, 20283, 20322, 20297, 20307, 20324, 20286, 20327, 20306, 20319,
  7309. 20289, 20312, 20269, 20275, 20287, 20321, 20879, 20921, 21020, 21022,
  7310. 21025, {f: 2, c: 21165}, 21257, 21347, 21362, {f: 2, c: 21390}, 21552,
  7311. 21559, 21546, 21588, 21573, 21529, 21532, 21541, 21528, 21565, 21583,
  7312. 21569, 21544, 21540, 21575, 22254, 22247, 22245, 22337, 22341, 22348,
  7313. 22345, 22347, 22354, 22790, 22848, 22950, 22936, 22944, 22935, 22926,
  7314. 22946, 22928, 22927, 22951, 22945, 23438, 23442, 23592, 23594, 23693,
  7315. 23695, 23688, 23691, 23689, 23698, 23690, 23686, 23699, 23701, 24032,
  7316. 24074, 24078, 24203, 24201, 24204, 24200, 24205, 24325, 24349, 24440,
  7317. 24438, 24530, 24529, 24528, 24557, 24552, 24558, 24563, 24545, 24548,
  7318. 24547, 24570, 24559, 24567, 24571, 24576, 24564, 25146, 25219, 25228,
  7319. {f: 2, c: 25230}, 25236, 25223, 25201, 25211, 25210, 25200, 25217, 25224,
  7320. 25207, 25213, 25202, 25204, 26096, 26100, 26099, 26098, 26101, 26437,
  7321. 26439, 26457, 26453, 26444, 26440, 26461, 26445, 26458, 26443, 27600,
  7322. {f: 2, c: 27673}, 27768, 27751, 27755, 27780, 27787, 27791, 27761, 27759,
  7323. 27753, 27802, 27757, 27783, 27797, [27804, 57900], 27750, 27763, 27749,
  7324. 27771, 27790, 28788, 28794, 29283, 29375, 29373, 29379, 29382, 29377,
  7325. 29370, 29381, 29589, 29591, {f: 2, c: 29587}, 29586, 30010, 30009,
  7326. {f: 2, c: 30100}, 30337, 31037, 32820, 32917, 32921, 32912, 32914, 32924,
  7327. 33424, 33423, 33413, 33422, 33425, 33427, 33418, {f: 2, c: 33411},
  7328. [12184, 35960], 36809, 36799, 37023, 37025, 37029, 37022, 37031, 37024,
  7329. 38448, 38440, 38447, 38445, 20019, 20376, 20348, 20357, 20349, 20352,
  7330. 20359, 20342, 20340, 20361, 20356, 20343, 20300, 20375, 20330, 20378,
  7331. 20345, 20353, 20344, 20368, 20380, 20372, 20382, 20370, 20354, 20373,
  7332. 20331, 20334, 20894, 20924, 20926, 21045, {f: 2, c: 21042}, 21062, 21041,
  7333. 21180, {f: 2, c: 21258}, 21308, 21394, 21396, 21639, 21631, 21633, 21649,
  7334. 21634, 21640, 21611, 21626, 21630, 21605, 21612, 21620, 21606, 21645,
  7335. 21615, 21601, 21600, 21656, 21603, 21607, 21604, 22263, 22265, 22383,
  7336. 22386, 22381, 22379, 22385, 22384, 22390, 22400, 22389, 22395,
  7337. {f: 2, c: 22387}, 22370, 22376, 22397, 22796, 22853, 22965, 22970, 22991,
  7338. 22990, 22962, 22988, 22977, 22966, 22972, 22979, 22998, 22961, 22973,
  7339. 22976, 22984, 22964, 22983, 23394, 23397, 23443, 23445, 23620, 23623,
  7340. 23726, 23716, 23712, 23733, 23727, 23720, 23724, 23711, 23715, 23725,
  7341. 23714, 23722, 23719, 23709, 23717, 23734, 23728, 23718, 24087, 24084,
  7342. 24089, 24360, {f: 3, c: 24354}, 24404, 24450, 24446, 24445, 24542, 24549,
  7343. 24621, 24614, 24601, 24626, 24587, 24628, 24586, 24599, 24627, 24602,
  7344. 24606, 24620, 24610, 24589, 24592, 24622, 24595, 24593, 24588, 24585,
  7345. 24604, 25108, 25149, 25261, 25268, 25297, 25278, 25258, 25270, 25290,
  7346. 25262, 25267, 25263, 25275, 25257, 25264, 25272, 25917, 26024, 26043,
  7347. 26121, 26108, 26116, 26130, 26120, 26107, 26115, 26123, 26125, 26117,
  7348. 26109, 26129, 26128, 26358, 26378, 26501, 26476, 26510, 26514, 26486,
  7349. 26491, 26520, 26502, 26500, 26484, 26509, 26508, 26490, 26527, 26513,
  7350. 26521, 26499, 26493, 26497, {f: 2, c: 26488}, 26516, 27429, 27520, 27518,
  7351. 27614, 27677, 27795, 27884, 27883, 27886, 27865, 27830, 27860, 27821,
  7352. 27879, 27831, 27856, 27842, 27834, 27843, 27846, 27885, 27890, 27858,
  7353. 27869, 27828, 27786, 27805, 27776, 27870, 27840, 27952, 27853, 27847,
  7354. 27824, 27897, 27855, 27881, 27857, 28820, 28824, 28805, 28819, 28806,
  7355. 28804, 28817, 28822, 28802, 28826, 28803, 29290, 29398, 29387, 29400,
  7356. 29385, 29404, 29394, 29396, 29402, 29388, 29393, 29604, 29601, 29613,
  7357. 29606, 29602, 29600, 29612, 29597, 29917, 29928, {f: 2, c: 30015}, 30014,
  7358. 30092, 30104, 30383, 30451, 30449, 30448, 30453, 30712, 30716, 30713,
  7359. 30715, 30714, 30711, 31042, 31039, 31173, 31352, 31355, 31483, 31861,
  7360. 31997, 32821, 32911, 32942, 32931, 32952, 32949, 32941, 33312, 33440,
  7361. 33472, 33451, 33434, 33432, 33435, 33461, 33447, 33454, 33468, 33438,
  7362. 33466, 33460, 33448, 33441, 33449, 33474, 33444, 33475, 33462, 33442,
  7363. 34416, 34415, {f: 2, c: 34413}, 35926, 36818, 36811, 36819, 36813, 36822,
  7364. 36821, 36823, 37042, 37044, 37039, 37043, 37040, 38457, 38461, 38460,
  7365. 38458, 38467, 20429, 20421, 20435, 20402, 20425, 20427, 20417, 20436,
  7366. 20444, 20441, [20411, 60346], 20403, 20443, 20423, 20438, 20410, 20416,
  7367. 20409, 20460, 21060, 21065, 21184, 21186, 21309, 21372, 21399, 21398,
  7368. 21401, 21400, 21690, 21665, 21677, 21669, 21711, 21699, 33549, 21687,
  7369. 21678, 21718, 21686, {f: 2, c: 21701}, 21664, 21616, 21692, 21666, 21694,
  7370. 21618, 21726, 21680, 22453, {f: 2, c: 22430}, 22436, 22412, 22423, 22429,
  7371. 22427, 22420, 22424, 22415, 22425, 22437, 22426, 22421, 22772, 22797,
  7372. 22867, 23009, 23006, 23022, 23040, 23025, 23005, 23034, 23037, 23036,
  7373. 23030, 23012, 23026, 23031, 23003, 23017, 23027, 23029, 23008, 23038,
  7374. 23028, 23021, 23464, 23628, 23760, 23768, 23756, 23767, 23755, 23771,
  7375. 23774, 23770, 23753, 23751, 23754, 23766, {f: 2, c: 23763}, 23759, 23752,
  7376. 23750, 23758, 23775, 23800, 24057, {f: 3, c: 24097}, 24096, 24100, 24240,
  7377. 24228, 24226, 24219, 24227, 24229, 24327, 24366, 24406, 24454, 24631,
  7378. 24633, 24660, 24690, 24670, 24645, 24659, 24647, 24649, 24667, 24652,
  7379. 24640, 24642, 24671, 24612, 24644, 24664, 24678, 24686, {f: 2, c: 25154},
  7380. 25295, 25357, 25355, 25333, 25358, 25347, 25323, 25337, 25359, 25356,
  7381. 25336, 25334, 25344, {f: 2, c: 25363}, 25338, 25365, 25339, 25328, 25921,
  7382. 25923, 26026, 26047, 26166, 26145, 26162, 26165, 26140, 26150, 26146,
  7383. 26163, 26155, 26170, 26141, 26164, 26169, 26158, {f: 2, c: 26383}, 26561,
  7384. 26610, 26568, 26554, 26588, 26555, 26616, 26584, 26560, 26551, 26565,
  7385. 26603, 26596, 26591, 26549, 26573, 26547, 26615, 26614, 26606, 26595,
  7386. 26562, 26553, 26574, 26599, 26608, 26546, 26620, 26566, 26605, 26572,
  7387. 26542, 26598, 26587, 26618, {f: 2, c: 26569}, 26563, 26602, 26571, 27432,
  7388. 27522, 27524, 27574, 27606, 27608, 27616, {f: 2, c: 27680}, 27944, 27956,
  7389. 27949, 27935, 27964, 27967, 27922, 27914, 27866, 27955, 27908, 27929,
  7390. 27962, 27930, 27921, 27904, 27933, 27970, 27905, 27928, 27959, 27907,
  7391. 27919, 27968, 27911, 27936, 27948, 27912, 27938, 27913, 27920, 28855,
  7392. 28831, 28862, 28849, 28848, 28833, {f: 2, c: 28852}, 28841, 29249,
  7393. {f: 2, c: 29257}, 29292, 29296, 29299, 29294, 29386, 29412, 29416, 29419,
  7394. 29407, 29418, 29414, 29411, 29573, 29644, 29634, 29640, 29637, 29625,
  7395. 29622, 29621, 29620, 29675, 29631, 29639, 29630, 29635, 29638, 29624,
  7396. 29643, 29932, 29934, 29998, {f: 2, c: 30023}, 30119, 30122, 30329, 30404,
  7397. 30472, {f: 3, c: 30467}, 30474, 30455, 30459, 30458, {f: 2, c: 30695},
  7398. 30726, {f: 2, c: 30737}, 30725, 30736, 30735, 30734, [30729, 58095], 30723,
  7399. 30739, 31050, 31052, 31051, 31045, 31044, 31189, 31181, 31183, 31190,
  7400. 31182, 31360, 31358, 31441, {f: 2, c: 31488}, 31866, {f: 2, c: 31864},
  7401. {f: 3, c: 31871}, 32003, 32008, 32001, 32600, 32657, 32653, 32702, 32775,
  7402. {f: 2, c: 32782}, 32788, 32823, 32984, 32967, 32992, 32977, 32968, 32962,
  7403. 32976, 32965, 32995, 32985, 32988, 32970, 32981, 32969, 32975, 32983,
  7404. 32998, 32973, 33279, 33313, 33428, 33497, 33534, 33529, 33543, 33512,
  7405. 33536, 33493, 33594, 33515, 33494, 33524, 33516, 33505, 33522, 33525,
  7406. 33548, 33531, 33526, 33520, 33514, 33508, 33504, 33530, 33523, 33517,
  7407. 34423, 34420, 34428, 34419, 34881, 34894, 34919, 34922, 34921, 35283,
  7408. 35332, 35335, 36210, 36835, 36833, 36846, 36832, 37105, 37053, 37055,
  7409. 37077, 37061, 37054, 37063, 37067, 37064, [37332, 60294], 37331, 38484,
  7410. 38479, 38481, 38483, 38474, 38478, 20510, 20485, 20487, 20499, 20514,
  7411. 20528, 20507, 20469, 20468, 20531, 20535, 20524, {f: 2, c: 20470}, 20503,
  7412. 20508, 20512, 20519, 20533, 20527, 20529, 20494, 20826, 20884, 20883,
  7413. 20938, {f: 2, c: 20932}, 20936, 20942, 21089, 21082, 21074,
  7414. {f: 2, c: 21086}, 21077, 21090, 21197, 21262, 21406, 21798, 21730, 21783,
  7415. 21778, 21735, 21747, 21732, 21786, 21759, 21764, 21768, 21739, 21777,
  7416. 21765, 21745, 21770, 21755, {f: 2, c: 21751}, 21728, 21774, 21763, 21771,
  7417. {f: 2, c: 22273}, 22476, 22578, 22485, 22482, 22458, 22470, 22461, 22460,
  7418. 22456, 22454, 22463, 22471, 22480, 22457, 22465, 22798, 22858, 23065,
  7419. 23062, {f: 2, c: 23085}, 23061, 23055, 23063, 23050, 23070, 23091, 23404,
  7420. 23463, 23469, 23468, 23555, 23638, 23636, 23788, 23807, 23790, 23793,
  7421. 23799, 23808, 23801, 24105, 24104, 24232, 24238, 24234, 24236, 24371,
  7422. 24368, 24423, 24669, 24666, 24679, 24641, 24738, 24712, 24704, 24722,
  7423. 24705, 24733, 24707, 24725, 24731, 24727, 24711, 24732, 24718, 25113,
  7424. 25158, 25330, 25360, 25430, 25388, {f: 2, c: 25412}, 25398, 25411, 25572,
  7425. 25401, 25419, 25418, 25404, 25385, 25409, 25396, 25432, 25428, 25433,
  7426. 25389, 25415, 25395, 25434, 25425, 25400, 25431, 25408, 25416, 25930,
  7427. 25926, 26054, {f: 2, c: 26051}, 26050, 26186, 26207, 26183, 26193,
  7428. {f: 2, c: 26386}, 26655, 26650, 26697, {f: 2, c: 26674}, 26683, 26699,
  7429. 26703, 26646, 26673, 26652, 26677, 26667, 26669, 26671, 26702, 26692,
  7430. 26676, 26653, 26642, 26644, 26662, 26664, 26670, 26701, 26682, 26661,
  7431. 26656, 27436, 27439, 27437, 27441, 27444, 27501, 32898, 27528, 27622,
  7432. 27620, 27624, 27619, 27618, 27623, 27685, 28026, {f: 2, c: 28003}, 28022,
  7433. 27917, 28001, 28050, 27992, 28002, 28013, 28015, 28049, 28045, 28143,
  7434. 28031, 28038, 27998, [28007, 59078], 28000, 28055, 28016, 28028, 27999,
  7435. 28034, 28056, 27951, 28008, 28043, 28030, 28032, 28036, 27926, 28035,
  7436. 28027, 28029, 28021, 28048, 28892, 28883, 28881, 28893, 28875, 32569,
  7437. 28898, 28887, 28882, 28894, 28896, 28884, 28877, {f: 3, c: 28869}, 28890,
  7438. 28878, 28897, 29250, 29304, 29303, 29302, 29440, 29434, 29428, 29438,
  7439. 29430, 29427, 29435, 29441, 29651, 29657, 29669, 29654, 29628, 29671,
  7440. 29667, 29673, 29660, 29650, 29659, 29652, 29661, 29658, {f: 2, c: 29655},
  7441. 29672, {f: 2, c: 29918}, {f: 2, c: 29940}, 29985, 30043, 30047, 30128,
  7442. 30145, 30139, 30148, 30144, 30143, 30134, 30138, 30346, 30409, 30493,
  7443. 30491, 30480, 30483, 30482, 30499, 30481, 30485, {f: 2, c: 30489}, 30498,
  7444. 30503, 30755, 30764, 30754, 30773, 30767, 30760, 30766, 30763, 30753,
  7445. 30761, 30771, 30762, 30769, 31060, 31067, 31055, 31068, 31059, 31058,
  7446. 31057, {f: 2, c: 31211}, 31200, 31214, 31213, 31210, 31196, 31198, 31197,
  7447. 31366, 31369, 31365, {f: 2, c: 31371}, 31370, 31367, 31448, 31504, 31492,
  7448. 31507, 31493, 31503, 31496, 31498, 31502, 31497, 31506, 31876, 31889,
  7449. 31882, 31884, 31880, 31885, 31877, 32030, 32029, 32017, 32014, 32024,
  7450. 32022, 32019, 32031, 32018, 32015, 32012, 32604, 32609, 32606, 32608,
  7451. 32605, 32603, 32662, 32658, 32707, 32706, 32704, 32790, 32830, 32825,
  7452. 33018, 33010, 33017, 33013, 33025, 33019, 33024, 33281, 33327, 33317,
  7453. 33587, 33581, 33604, 33561, 33617, 33573, 33622, 33599, 33601, 33574,
  7454. 33564, 33570, 33602, 33614, 33563, 33578, 33544, 33596, 33613, 33558,
  7455. 33572, 33568, 33591, 33583, 33577, 33607, 33605, 33612, 33619, 33566,
  7456. 33580, 33611, 33575, 33608, 34387, 34386, 34466, 34472, 34454, 34445,
  7457. 34449, 34462, 34439, 34455, 34438, 34443, 34458, 34437, 34469, 34457,
  7458. 34465, 34471, 34453, 34456, 34446, 34461, 34448, 34452, {f: 2, c: 34883},
  7459. 34925, {f: 2, c: 34933}, 34930, 34944, 34929, 34943, 34927, 34947, 34942,
  7460. 34932, 34940, 35346, 35911, 35927, 35963, 36004, 36003, 36214, 36216,
  7461. 36277, 36279, 36278, 36561, 36563, 36862, 36853, 36866, 36863, 36859,
  7462. 36868, 36860, 36854, 37078, 37088, {f: 2, c: 37081}, 37091, 37087, 37093,
  7463. 37080, 37083, 37079, 37084, 37092, 37200, {f: 2, c: 37198}, 37333, 37346,
  7464. 37338, 38492, 38495, 38588, 39139, [12221, 39647], [12223, 39727], 20095,
  7465. 20592, 20586, 20577, 20574, 20576, 20563, 20555, 20573, 20594, 20552,
  7466. 20557, 20545, 20571, 20554, 20578, 20501, 20549, 20575, 20585, 20587,
  7467. {f: 2, c: 20579}, 20550, 20544, 20590, 20595, 20567, 20561, 20944, 21099,
  7468. 21101, 21100, 21102, 21206, 21203, 21293, 21404, {f: 2, c: 21877}, 21820,
  7469. 21837, 21840, 21812, 21802, 21841, 21858, 21814, 21813, 21808, 21842,
  7470. 21829, 21772, 21810, 21861, 21838, 21817, 21832, 21805, 21819, 21824,
  7471. 21835, 22282, 22279, 22523, 22548, 22498, 22518, 22492, 22516, 22528,
  7472. 22509, 22525, 22536, 22520, 22539, 22515, 22479, 22535, 22510, 22499,
  7473. 22514, 22501, 22508, 22497, 22542, 22524, 22544, 22503, 22529, 22540,
  7474. 22513, 22505, 22512, 22541, 22532, 22876, 23136, 23128, 23125,
  7475. [23143, 60437], 23134, 23096, 23093, 23149, 23120, 23135, 23141, 23148,
  7476. 23123, 23140, 23127, 23107, 23133, 23122, 23108, 23131, 23112, 23182,
  7477. 23102, 23117, 23097, 23116, 23152, 23145, 23111, 23121, 23126, 23106,
  7478. 23132, 23410, 23406, 23489, 23488, 23641, 23838, 23819, 23837, 23834,
  7479. 23840, 23820, 23848, 23821, 23846, 23845, 23823, 23856, 23826, 23843,
  7480. 23839, 23854, 24126, 24116, 24241, 24244, 24249, {f: 2, c: 24242}, 24374,
  7481. 24376, 24475, 24470, 24479, 24714, 24720, 24710, 24766, 24752, 24762,
  7482. {f: 2, c: 24787}, 24783, 24804, 24793, 24797, 24776, 24753, 24795, 24759,
  7483. 24778, 24767, 24771, 24781, 24768, 25394, 25445, 25482, 25474, 25469,
  7484. 25533, 25502, 25517, 25501, 25495, 25515, 25486, 25455, 25479, 25488,
  7485. 25454, 25519, 25461, 25500, 25453, 25518, 25468, 25508, 25403, 25503,
  7486. 25464, 25477, 25473, 25489, 25485, 25456, 25939, 26061, 26213, 26209,
  7487. 26203, 26201, 26204, 26210, 26392, 26745, 26759, 26768, 26780,
  7488. {f: 2, c: 26733}, 26798, 26795, 26966, 26735, 26787, 26796, 26793, 26741,
  7489. 26740, 26802, 26767, 26743, 26770, 26748, 26731, 26738, 26794, 26752,
  7490. 26737, 26750, 26779, 26774, 26763, 26784, 26761, 26788, 26744, 26747,
  7491. 26769, 26764, 26762, 26749, 27446, 27443, {f: 2, c: 27447}, 27537, 27535,
  7492. {f: 2, c: 27533}, 27532, 27690, 28096, 28075, 28084, 28083, 28276, 28076,
  7493. 28137, 28130, 28087, 28150, 28116, 28160, 28104, 28128, 28127, 28118,
  7494. 28094, 28133, {f: 2, c: 28124}, 28123, 28148, 28106, 28093, 28141, 28144,
  7495. 28090, 28117, 28098, 28111, 28105, 28112, 28146, 28115, 28157, 28119,
  7496. 28109, 28131, 28091, 28922, 28941, 28919, 28951, 28916, 28940, 28912,
  7497. 28932, 28915, 28944, 28924, 28927, 28934, 28947, 28928, 28920, 28918,
  7498. 28939, 28930, 28942, 29310, {f: 2, c: 29307}, 29311, 29469, 29463, 29447,
  7499. 29457, 29464, 29450, 29448, 29439, 29455, 29470, 29576, 29686, 29688,
  7500. 29685, 29700, 29697, 29693, 29703, 29696, 29690, 29692, 29695, 29708,
  7501. 29707, 29684, 29704, 30052, 30051, 30158, 30162, 30159, {f: 2, c: 30155},
  7502. 30161, 30160, 30351, 30345, 30419, 30521, 30511, 30509, {f: 2, c: 30513},
  7503. 30516, 30515, 30525, 30501, 30523, 30517, 30792, 30802, 30793, 30797,
  7504. 30794, 30796, 30758, 30789, 30800, 31076, 31079, {f: 2, c: 31081}, 31075,
  7505. 31083, 31073, 31163, 31226, 31224, {f: 2, c: 31222}, 31375, 31380, 31376,
  7506. 31541, 31547, 31540, 31525, 31536, 31522, 31524, 31539, 31512, 31530,
  7507. 31517, 31537, 31531, 31533, 31535, 31538, 31544, 31514, 31523, 31892,
  7508. 31896, 31894, 31907, 32053, 32061, 32056, 32054, 32058, 32069, 32044,
  7509. 32041, 32065, 32071, {f: 2, c: 32062}, 32074, 32059, 32040, 32611, 32661,
  7510. {f: 2, c: 32668}, 32667, {f: 2, c: 32714}, 32717, {f: 2, c: 32720}, 32711,
  7511. 32719, 32713, 32799, 32798, 32795, 32839, 32835, 32840, 33048, 33061,
  7512. 33049, 33051, 33069, 33055, 33068, 33054, 33057, 33045, 33063, 33053,
  7513. 33058, 33297, 33336, 33331, 33338, 33332, 33330, 33396, 33680, 33699,
  7514. 33704, 33677, 33658, 33651, 33700, 33652, 33679, 33665, 33685, 33689,
  7515. 33653, 33684, 33705, 33661, 33667, 33676, 33693, 33691, 33706, 33675,
  7516. 33662, 33701, 33711, 33672, 33687, 33712, 33663, 33702, 33671, 33710,
  7517. 33654, 34393, 34390, 34495, 34487, 34498, 34497, 34501, 34490, 34480,
  7518. 34504, 34489, 34483, 34488, 34508, 34484, {f: 2, c: 34491}, 34499,
  7519. {f: 2, c: 34493}, 34898, 34953, 34965, 34984, 34978, 34986, 34970, 34961,
  7520. 34977, 34975, 34968, 34983, 34969, 34971, 34967, 34980, 34988, 34956,
  7521. 34963, 34958, 35202, 35286, 35289, 35285, 35376, 35367, 35372, 35358,
  7522. 35897, 35899, {f: 2, c: 35932}, 35965, 36005, 36221, 36219, 36217, 36284,
  7523. 36290, 36281, 36287, 36289, 36568, 36574, 36573, 36572, 36567,
  7524. {f: 2, c: 36576}, 36900, 36875, 36881, 36892, 36876, 36897, 37103, 37098,
  7525. 37104, 37108, {f: 2, c: 37106}, 37076, {f: 2, c: 37099}, 37097, 37206,
  7526. 37208, 37210, 37203, 37205, 37356, 37364, 37361, 37363, 37368, 37348,
  7527. 37369, {f: 2, c: 37354}, 37367, 37352, 37358, 38266, 38278, 38280, 38524,
  7528. 38509, 38507, 38513, 38511, 38591, 38762, 38916, 39141, 39319, 20635,
  7529. 20629, 20628, 20638, 20619, 20643, 20611, 20620, 20622, 20637, 20584,
  7530. 20636, 20626, 20610, 20615, 20831, 20948, 21266, 21265, 21412, 21415,
  7531. 21905, 21928, 21925, 21933, 21879, 22085, 21922, 21907, 21896, 21903,
  7532. 21941, 21889, 21923, 21906, 21924, 21885, 21900, 21926, 21887, 21909,
  7533. 21921, 21902, 22284, 22569, 22583, 22553, 22558, 22567, 22563, 22568,
  7534. 22517, 22600, 22565, 22556, 22555, 22579, 22591, 22582, 22574, 22585,
  7535. 22584, 22573, 22572, 22587, 22881, 23215, 23188, 23199, 23162, 23202,
  7536. 23198, 23160, 23206, 23164, 23205, 23212, 23189, 23214, 23095, 23172,
  7537. 23178, 23191, 23171, 23179, 23209, 23163, 23165, 23180, 23196, 23183,
  7538. 23187, 23197, 23530, 23501, 23499, 23508, 23505, 23498, 23502, 23564,
  7539. 23600, 23863, 23875, 23915, 23873, 23883, 23871, 23861, 23889, 23886,
  7540. 23893, 23859, 23866, 23890, 23869, 23857, 23897, 23874, 23865, 23881,
  7541. 23864, 23868, 23858, 23862, 23872, 23877, 24132, 24129, [24408, 57673],
  7542. 24486, 24485, 24491, 24777, 24761, 24780, 24802, 24782, 24772, 24852,
  7543. 24818, 24842, 24854, 24837, 24821, 24851, 24824, 24828, 24830, 24769,
  7544. 24835, 24856, 24861, 24848, 24831, 24836, 24843, 25162, 25492, 25521,
  7545. 25520, 25550, 25573, 25576, 25583, 25539, 25757, 25587, 25546, 25568,
  7546. 25590, 25557, 25586, 25589, 25697, 25567, 25534, 25565, 25564, 25540,
  7547. 25560, 25555, 25538, 25543, 25548, 25547, 25544, 25584, 25559, 25561,
  7548. 25906, 25959, 25962, 25956, 25948, 25960, 25957, 25996, {f: 2, c: 26013},
  7549. 26030, 26064, 26066, 26236, 26220, 26235, 26240, 26225, 26233, 26218,
  7550. 26226, 26369, 26892, 26835, 26884, 26844, 26922, 26860, 26858, 26865,
  7551. 26895, 26838, 26871, 26859, 26852, 26870, 26899, 26896, 26867, 26849,
  7552. 26887, 26828, 26888, 26992, 26804, 26897, 26863, 26822, 26900, 26872,
  7553. 26832, 26877, 26876, 26856, 26891, 26890, 26903, 26830, 26824,
  7554. {f: 2, c: 26845}, 26854, 26868, 26833, 26886, 26836, 26857, 26901, 26917,
  7555. 26823, 27449, 27451, 27455, 27452, 27540, 27543, 27545, 27541, 27581,
  7556. 27632, {f: 2, c: 27634}, 27696, 28156, {f: 2, c: 28230}, 28191, 28233,
  7557. 28296, {f: 2, c: 28220}, 28229, 28258, 28203, 28223, 28225, 28253, 28275,
  7558. 28188, 28211, 28235, 28224, 28241, 28219, 28163, 28206, 28254, 28264,
  7559. 28252, 28257, 28209, 28200, 28256, 28273, 28267, 28217, 28194, 28208,
  7560. 28243, 28261, 28199, 28280, 28260, 28279, 28245, 28281, 28242, 28262,
  7561. {f: 2, c: 28213}, 28250, 28960, 28958, 28975, 28923, 28974, 28977, 28963,
  7562. 28965, 28962, 28978, 28959, 28968, 28986, 28955, 29259, 29274,
  7563. {f: 2, c: 29320}, 29318, 29317, 29323, 29458, 29451, 29488, 29474, 29489,
  7564. 29491, 29479, 29490, 29485, 29478, 29475, 29493, 29452, 29742, 29740,
  7565. 29744, 29739, 29718, 29722, 29729, 29741, 29745, 29732, 29731, 29725,
  7566. 29737, 29728, 29746, 29947, 29999, 30063, 30060, 30183, 30170, 30177,
  7567. 30182, 30173, 30175, 30180, 30167, 30357, 30354, 30426, {f: 2, c: 30534},
  7568. 30532, 30541, 30533, 30538, 30542, {f: 2, c: 30539}, 30686, 30700, 30816,
  7569. {f: 2, c: 30820}, 30812, 30829, 30833, 30826, 30830, 30832, 30825, 30824,
  7570. 30814, 30818, 31092, 31091, 31090, 31088, 31234, 31242, 31235, 31244,
  7571. 31236, 31385, 31462, 31460, 31562, 31559, 31556, 31560, 31564, 31566,
  7572. 31552, 31576, 31557, 31906, 31902, 31912, 31905, 32088, 32111, 32099,
  7573. 32083, 32086, 32103, 32106, 32079, 32109, 32092, 32107, 32082, 32084,
  7574. 32105, 32081, 32095, 32078, {f: 2, c: 32574}, {f: 2, c: 32613}, 32674,
  7575. {f: 2, c: 32672}, 32727, 32849, {f: 2, c: 32847}, 33022, 32980, 33091,
  7576. 33098, 33106, 33103, 33095, 33085, 33101, 33082, 33254, 33262,
  7577. {f: 3, c: 33271}, 33284, {f: 2, c: 33340}, 33343, 33397, 33595,
  7578. [33743, 60382], 33785, 33827, 33728, 33768, 33810, 33767, 33764, 33788,
  7579. 33782, 33808, 33734, 33736, 33771, 33763, 33727, 33793, 33757, 33765,
  7580. 33752, 33791, 33761, 33739, 33742, 33750, 33781, 33737, 33801,
  7581. [33807, 58332], 33758, 33809, 33798, 33730, 33779, 33749, 33786, 33735,
  7582. 33745, 33770, 33811, 33690, 33731, 33772, 33774, 33732, 33787, 33751,
  7583. 33762, 33819, 33755, 33790, 34520, 34530, 34534, 34515, 34531, 34522,
  7584. 34538, 34525, 34539, 34524, 34540, 34537, 34519, 34536, 34513, 34888,
  7585. 34902, 34901, 35002, 35031, 35001, 35000, 35008, 35006, 34998, 35004,
  7586. 34999, 35005, 34994, 35073, 35017, 35221, 35224, 35223, 35293,
  7587. {f: 2, c: 35290}, 35406, 35405, 35385, 35417, 35392, {f: 2, c: 35415},
  7588. {f: 2, c: 35396}, 35410, 35400, 35409, 35402, 35404, 35407, 35935, 35969,
  7589. 35968, 36026, 36030, 36016, 36025, 36021, 36228, 36224, 36233, 36312,
  7590. 36307, 36301, 36295, 36310, 36316, 36303, 36309, 36313, 36296, 36311,
  7591. 36293, 36591, 36599, 36602, 36601, 36582, 36590, 36581, 36597,
  7592. {f: 2, c: 36583}, 36598, 36587, 36593, 36588, 36596, 36585, 36909, 36916,
  7593. 36911, 37126, 37164, [37124, 60367], 37119, 37116, 37128, 37113, 37115,
  7594. 37121, 37120, 37127, 37125, 37123, 37217, 37220, 37215, 37218, 37216,
  7595. 37377, 37386, 37413, 37379, 37402, 37414, 37391, 37388, 37376, 37394,
  7596. 37375, 37373, 37382, 37380, 37415, 37378, 37404, 37412, 37401, 37399,
  7597. 37381, 37398, 38267, 38285, 38284, 38288, 38535, 38526, {f: 2, c: 38536},
  7598. 38531, 38528, 38594, 38600, 38595, 38641, 38640, 38764, 38768, 38766,
  7599. 38919, 39081, 39147, 40166, [12235, 40697], {f: 2, c: 20099}, 20150, 20669,
  7600. 20671, 20678, 20654, 20676, 20682, 20660, 20680, 20674, 20656, 20673,
  7601. 20666, 20657, 20683, 20681, 20662, 20664, 20951, 21114, 21112,
  7602. {f: 2, c: 21115}, 21955, 21979, 21964, 21968, 21963, 21962, 21981,
  7603. [21952, 64013], 21972, 21956, 21993, 21951, 21970, 21901, 21967, 21973,
  7604. 21986, 21974, 21960, 22002, 21965, 21977, 21954, 22292, 22611, 22632,
  7605. 22628, 22607, 22605, 22601, 22639, 22613, 22606, 22621, 22617, 22629,
  7606. 22619, 22589, 22627, 22641, 22780, 23239, 23236, 23243, 23226, 23224,
  7607. 23217, 23221, 23216, 23231, 23240, 23227, 23238, 23223, 23232, 23242,
  7608. 23220, 23222, 23245, 23225, 23184, 23510, {f: 2, c: 23512}, 23583, 23603,
  7609. 23921, 23907, 23882, 23909, 23922, 23916, 23902, 23912, 23911, 23906,
  7610. 24048, 24143, 24142, 24138, 24141, 24139, 24261, 24268, 24262, 24267,
  7611. 24263, 24384, 24495, 24493, 24823, {f: 2, c: 24905}, 24875, 24901, 24886,
  7612. 24882, 24878, 24902, 24879, 24911, 24873, 24896, 25120, 37224, 25123,
  7613. 25125, 25124, 25541, 25585, 25579, 25616, 25618, 25609, 25632, 25636,
  7614. 25651, 25667, 25631, 25621, 25624, 25657, 25655, {f: 2, c: 25634}, 25612,
  7615. 25638, 25648, 25640, 25665, 25653, 25647, 25610, 25626, 25664, 25637,
  7616. 25639, 25611, 25575, 25627, 25646, 25633, 25614, 25967, 26002, 26067,
  7617. 26246, 26252, 26261, 26256, 26251, 26250, 26265, 26260, 26232, 26400,
  7618. 26982, 26975, 26936, 26958, 26978, 26993, 26943, 26949, 26986, 26937,
  7619. 26946, 26967, 26969, 27002, {f: 2, c: 26952}, 26933, 26988, 26931, 26941,
  7620. 26981, 26864, 27000, 26932, 26985, 26944, 26991, 26948, 26998, 26968,
  7621. 26945, 26996, 26956, 26939, 26955, 26935, 26972, 26959, 26961, 26930,
  7622. 26962, 26927, 27003, 26940, 27462, 27461, 27459, 27458, 27464, 27457,
  7623. 27547, {f: 2, c: 27643}, 27641, {f: 2, c: 27639}, 28315, 28374, 28360,
  7624. 28303, 28352, 28319, {f: 2, c: 28307}, 28320, 28337, 28345, 28358, 28370,
  7625. 28349, 28353, 28318, 28361, 28343, 28336, 28365, 28326, 28367, 28338,
  7626. 28350, 28355, 28380, 28376, 28313, 28306, 28302, 28301, 28324, 28321,
  7627. 28351, 28339, 28368, 28362, 28311, 28334, 28323, 28999, 29012, 29010,
  7628. 29027, 29024, 28993, 29021, [29026, 61080], 29042, 29048, 29034, 29025,
  7629. 28994, 29016, 28995, 29003, 29040, 29023, 29008, 29011, 28996, 29005,
  7630. 29018, 29263, 29325, 29324, 29329, 29328, 29326, 29500, 29506, 29499,
  7631. 29498, 29504, 29514, 29513, 29764, {f: 2, c: 29770}, 29778, 29777, 29783,
  7632. 29760, {f: 2, c: 29775}, 29774, 29762, 29766, 29773, 29780, 29921, 29951,
  7633. 29950, 29949, 29981, 30073, 30071, 27011, 30191, 30223, 30211, 30199,
  7634. 30206, 30204, [30201, 60782], 30200, 30224, 30203, 30198, 30189, 30197,
  7635. 30205, 30361, 30389, 30429, 30549, {f: 2, c: 30559}, 30546, 30550, 30554,
  7636. 30569, 30567, 30548, 30553, 30573, 30688, 30855, 30874, 30868, 30863,
  7637. 30852, 30869, {f: 2, c: 30853}, 30881, 30851, 30841, 30873, 30848, 30870,
  7638. 30843, 31100, 31106, 31101, 31097, 31249, {f: 2, c: 31256}, 31250, 31255,
  7639. 31253, 31266, 31251, 31259, 31248, 31395, 31394, 31390, 31467, 31590,
  7640. 31588, 31597, 31604, 31593, 31602, 31589, 31603, 31601, 31600, 31585,
  7641. 31608, 31606, 31587, 31922, 31924, 31919, 32136, 32134, 32128, 32141,
  7642. 32127, 32133, 32122, 32142, 32123, 32131, 32124, 32140, 32148, 32132,
  7643. 32125, 32146, 32621, 32619, {f: 2, c: 32615}, 32620, 32678, 32677, 32679,
  7644. {f: 2, c: 32731}, 32801, 33124, 33120, 33143, 33116, 33129, 33115, 33122,
  7645. 33138, 26401, 33118, 33142, 33127, 33135, 33092, 33121, 33309, 33353,
  7646. 33348, 33344, 33346, 33349, 34033, 33855, 33878, 33910, 33913, 33935,
  7647. 33933, 33893, 33873, 33856, 33926, 33895, 33840, 33869, 33917, 33882,
  7648. 33881, 33908, 33907, 33885, 34055, 33886, 33847, 33850, 33844, 33914,
  7649. 33859, 33912, 33842, 33861, 33833, 33753, 33867, 33839, 33858, 33837,
  7650. 33887, 33904, 33849, 33870, 33868, 33874, 33903, 33989, 33934, 33851,
  7651. 33863, 33846, 33843, 33896, 33918, 33860, 33835, 33888, 33876, 33902,
  7652. 33872, 34571, 34564, 34551, 34572, 34554, 34518, 34549, 34637, 34552,
  7653. 34574, 34569, 34561, 34550, 34573, 34565, 35030, 35019, {f: 2, c: 35021},
  7654. 35038, 35035, 35034, 35020, 35024, 35205, 35227, 35295, 35301, 35300,
  7655. 35297, 35296, 35298, 35292, 35302, 35446, 35462, 35455, 35425, 35391,
  7656. 35447, 35458, 35460, 35445, 35459, 35457, 35444, 35450, 35900, 35915,
  7657. 35914, 35941, 35940, 35942, 35974, {f: 2, c: 35972}, 36044,
  7658. {f: 2, c: 36200}, 36241, 36236, {f: 2, c: 36238}, 36237, {f: 2, c: 36243},
  7659. 36240, 36242, 36336, 36320, 36332, 36337, 36334, 36304, 36329, 36323,
  7660. 36322, 36327, 36338, 36331, 36340, 36614, 36607, 36609, 36608, 36613,
  7661. {f: 2, c: 36615}, 36610, [36619, 60507], 36946, 36927, 36932, 36937, 36925,
  7662. 37136, 37133, 37135, 37137, 37142, 37140, 37131, 37134, {f: 2, c: 37230},
  7663. 37448, 37458, 37424, 37434, 37478, 37427, 37477, 37470, 37507, 37422,
  7664. 37450, 37446, 37485, 37484, 37455, 37472, 37479, 37487, 37430, 37473,
  7665. 37488, 37425, 37460, 37475, 37456, 37490, 37454, 37459, 37452, 37462,
  7666. 37426, 38303, 38300, 38302, 38299, {f: 2, c: 38546}, 38545, 38551, 38606,
  7667. 38650, 38653, 38648, 38645, 38771, {f: 2, c: 38775}, 38770, 38927,
  7668. {f: 2, c: 38925}, 39084, 39158, 39161, 39343, 39346, 39344, 39349, 39597,
  7669. 39595, 39771, 40170, 40173, 40167, 40576, [12236, 40701], 20710, 20692,
  7670. 20695, 20712, 20723, 20699, 20714, 20701, 20708, 20691, 20716, 20720,
  7671. 20719, 20707, 20704, 20952, {f: 2, c: 21120}, 21225, 21227, 21296, 21420,
  7672. 22055, 22037, 22028, 22034, 22012, 22031, 22044, 22017, 22035, 22018,
  7673. 22010, 22045, 22020, 22015, 22009, 22665, 22652, 22672, 22680, 22662,
  7674. 22657, 22655, 22644, 22667, 22650, 22663, 22673, 22670, 22646, 22658,
  7675. 22664, 22651, 22676, 22671, 22782, 22891, 23260, 23278, 23269, 23253,
  7676. 23274, 23258, 23277, 23275, 23283, 23266, 23264, 23259, 23276, 23262,
  7677. 23261, 23257, 23272, 23263, 23415, 23520, 23523, 23651, 23938, 23936,
  7678. 23933, 23942, 23930, 23937, 23927, 23946, 23945, 23944, 23934, 23932,
  7679. 23949, 23929, 23935, {f: 2, c: 24152}, 24147, 24280, 24273, 24279, 24270,
  7680. 24284, 24277, 24281, 24274, 24276, 24388, 24387, 24431, 24502, 24876,
  7681. 24872, 24897, 24926, 24945, 24947, {f: 2, c: 24914}, 24946, 24940, 24960,
  7682. 24948, 24916, 24954, 24923, 24933, 24891, 24938, 24929, 24918, 25129,
  7683. 25127, 25131, 25643, 25677, 25691, 25693, 25716, 25718, {f: 2, c: 25714},
  7684. 25725, 25717, 25702, 25766, 25678, 25730, 25694, 25692, 25675, 25683,
  7685. 25696, 25680, 25727, 25663, 25708, 25707, 25689, 25701, 25719, 25971,
  7686. 26016, 26273, 26272, 26271, 26373, 26372, 26402, 27057, 27062, 27081,
  7687. 27040, 27086, 27030, 27056, 27052, 27068, 27025, 27033, 27022, 27047,
  7688. 27021, 27049, 27070, 27055, 27071, 27076, 27069, 27044, 27092, 27065,
  7689. 27082, 27034, 27087, 27059, 27027, 27050, 27041, 27038, 27097, 27031,
  7690. 27024, 27074, 27061, 27045, 27078, 27466, 27469, 27467, {f: 3, c: 27550},
  7691. {f: 2, c: 27587}, 27646, 28366, 28405, 28401, 28419, 28453, 28408, 28471,
  7692. 28411, 28462, 28425, 28494, {f: 2, c: 28441}, 28455, 28440, 28475, 28434,
  7693. 28397, 28426, 28470, 28531, 28409, 28398, 28461, 28480, 28464, 28476,
  7694. 28469, 28395, 28423, 28430, 28483, 28421, 28413, 28406, 28473, 28444,
  7695. 28412, 28474, 28447, 28429, 28446, 28424, 28449, 29063, 29072, 29065,
  7696. 29056, 29061, 29058, 29071, 29051, 29062, 29057, 29079, 29252, 29267,
  7697. 29335, 29333, 29331, 29507, 29517, 29521, 29516, 29794, 29811, 29809,
  7698. 29813, 29810, 29799, 29806, 29952, {f: 2, c: 29954}, 30077, 30096, 30230,
  7699. 30216, 30220, 30229, 30225, 30218, 30228, 30392, 30593, 30588, 30597,
  7700. 30594, 30574, 30592, 30575, 30590, 30595, 30898, 30890, 30900, 30893,
  7701. 30888, 30846, 30891, 30878, 30885, 30880, 30892, 30882, 30884, 31128,
  7702. {f: 2, c: 31114}, 31126, 31125, 31124, 31123, 31127, 31112, 31122, 31120,
  7703. 31275, 31306, 31280, 31279, 31272, 31270, 31400, {f: 2, c: 31403}, 31470,
  7704. 31624, 31644, 31626, 31633, 31632, 31638, 31629, 31628, 31643, 31630,
  7705. 31621, 31640, 21124, 31641, 31652, 31618, 31931, 31935, 31932, 31930,
  7706. 32167, 32183, 32194, 32163, 32170, 32193, 32192, 32197, 32157, 32206,
  7707. 32196, 32198, {f: 2, c: 32203}, 32175, 32185, 32150, 32188, 32159, 32166,
  7708. 32174, 32169, 32161, 32201, 32627, {f: 2, c: 32738}, 32741, 32734, 32804,
  7709. 32861, 32860, 33161, 33158, 33155, 33159, 33165, 33164, 33163, 33301,
  7710. 33943, 33956, 33953, 33951, 33978, 33998, 33986, 33964, 33966, 33963,
  7711. 33977, 33972, 33985, 33997, 33962, 33946, 33969, 34000, 33949, 33959,
  7712. 33979, 33954, 33940, 33991, 33996, 33947, 33961, 33967, [33960, 58327],
  7713. 34006, 33944, 33974, 33999, 33952, 34007, 34004, 34002, 34011, 33968,
  7714. 33937, 34401, 34611, 34595, 34600, 34667, 34624, 34606, 34590, 34593,
  7715. 34585, 34587, 34627, 34604, 34625, 34622, 34630, 34592, 34610, 34602,
  7716. 34605, 34620, 34578, 34618, 34609, 34613, 34626, {f: 2, c: 34598}, 34616,
  7717. 34596, 34586, 34608, 34577, 35063, 35047, {f: 2, c: 35057}, 35066, 35070,
  7718. 35054, 35068, 35062, 35067, 35056, 35052, 35051, 35229, 35233, 35231,
  7719. 35230, 35305, 35307, 35304, 35499, 35481, 35467, 35474, 35471, 35478,
  7720. 35901, {f: 2, c: 35944}, 36053, 36047, 36055, 36246, 36361, 36354, 36351,
  7721. 36365, 36349, 36362, 36355, 36359, 36358, 36357, 36350, 36352, 36356,
  7722. {f: 2, c: 36624}, 36622, 36621, 37155, 37148, 37152, 37154, 37151, 37149,
  7723. 37146, 37156, 37153, 37147, 37242, 37234, 37241, 37235, 37541, 37540,
  7724. 37494, 37531, 37498, 37536, 37524, 37546, 37517, 37542, 37530, 37547,
  7725. 37497, 37527, 37503, 37539, 37614, 37518, 37506, 37525, 37538, 37501,
  7726. 37512, 37537, 37514, 37510, 37516, 37529, 37543, 37502, 37511, 37545,
  7727. 37533, 37515, 37421, 38558, 38561, 38655, 38744, 38781, 38778, 38782,
  7728. 38787, 38784, 38786, 38779, 38788, 38785, 38783, 38862, 38861, 38934,
  7729. {f: 2, c: 39085}, 39170, 39168, 39175, 39325, 39324, 39363, 39353, 39355,
  7730. 39354, 39362, 39357, 39367, 39601, 39651, 39655, {f: 2, c: 39742},
  7731. {f: 2, c: 39776}, 39775, {f: 2, c: 40177}, 40181, 40615, 20735, 20739,
  7732. 20784, 20728, {f: 2, c: 20742}, 20726, 20734, {f: 2, c: 20747}, 20733,
  7733. 20746, {f: 2, c: 21131}, 21233, 21231, 22088, 22082, 22092, 22069, 22081,
  7734. 22090, 22089, 22086, 22104, 22106, 22080, 22067, 22077, 22060, 22078,
  7735. 22072, 22058, 22074, 22298, 22699, 22685, 22705, 22688, 22691, 22703,
  7736. 22700, 22693, 22689, 22783, 23295, 23284, 23293, 23287, 23286, 23299,
  7737. 23288, 23298, 23289, 23297, 23303, 23301, 23311, 23655, 23961, 23959,
  7738. 23967, 23954, 23970, 23955, 23957, 23968, 23964, 23969, 23962, 23966,
  7739. 24169, 24157, 24160, 24156, 32243, 24283, 24286, 24289, 24393, 24498,
  7740. 24971, 24963, 24953, 25009, 25008, 24994, 24969, 24987, 24979, 25007,
  7741. 25005, 24991, 24978, 25002, 24993, 24973, 24934, 25011, 25133, 25710,
  7742. 25712, 25750, 25760, 25733, 25751, 25756, 25743, 25739, 25738, 25740,
  7743. 25763, 25759, 25704, 25777, 25752, 25974, 25978, 25977, 25979,
  7744. {f: 2, c: 26034}, 26293, 26288, 26281, 26290, 26295, 26282, 26287, 27136,
  7745. 27142, 27159, 27109, 27128, 27157, 27121, 27108, 27168, 27135, 27116,
  7746. 27106, 27163, 27165, 27134, 27175, 27122, 27118, 27156, 27127, 27111,
  7747. 27200, 27144, 27110, 27131, 27149, 27132, 27115, 27145, 27140, 27160,
  7748. 27173, 27151, 27126, 27174, 27143, 27124, 27158, 27473, 27557, 27555,
  7749. 27554, 27558, 27649, 27648, 27647, 27650, 28481, 28454, 28542, 28551,
  7750. 28614, 28562, 28557, 28553, 28556, 28514, 28495, 28549, 28506, 28566,
  7751. 28534, 28524, 28546, 28501, 28530, 28498, 28496, 28503, 28564, 28563,
  7752. 28509, 28416, 28513, 28523, 28541, 28519, 28560, 28499, 28555, 28521,
  7753. 28543, 28565, 28515, 28535, 28522, 28539, 29106, 29103, 29083, 29104,
  7754. 29088, 29082, 29097, 29109, 29085, 29093, 29086, 29092, 29089, 29098,
  7755. 29084, 29095, 29107, 29336, 29338, 29528, 29522, {f: 3, c: 29534}, 29533,
  7756. 29531, 29537, 29530, 29529, 29538, 29831, {f: 2, c: 29833}, 29830, 29825,
  7757. 29821, 29829, 29832, 29820, [29817, 58868], 29960, 29959, 30078, 30245,
  7758. 30238, 30233, 30237, 30236, 30243, 30234, 30248, 30235, {f: 3, c: 30364},
  7759. 30363, 30605, 30607, 30601, 30600, 30925, 30907, 30927, 30924, 30929,
  7760. 30926, 30932, 30920, {f: 2, c: 30915}, 30921, 31130, 31137, 31136, 31132,
  7761. 31138, [31131, 59175], 27510, 31289, 31410, 31412, 31411, 31671, 31691,
  7762. 31678, 31660, 31694, 31663, 31673, 31690, 31669, 31941, 31944, 31948,
  7763. 31947, 32247, 32219, 32234, 32231, 32215, 32225, 32259, 32250, 32230,
  7764. 32246, 32241, 32240, 32238, 32223, 32630, 32684, 32688, 32685, 32749,
  7765. 32747, 32746, 32748, 32742, 32744, 32868, 32871, 33187, 33183, 33182,
  7766. 33173, 33186, 33177, 33175, 33302, 33359, 33363, 33362, 33360, 33358,
  7767. 33361, 34084, 34107, 34063, 34048, 34089, 34062, 34057, 34061, 34079,
  7768. 34058, 34087, 34076, 34043, 34091, 34042, 34056, 34060, 34036, 34090,
  7769. 34034, 34069, 34039, 34027, 34035, 34044, 34066, 34026, 34025, 34070,
  7770. 34046, 34088, 34077, 34094, 34050, 34045, 34078, 34038, 34097, 34086,
  7771. {f: 2, c: 34023}, 34032, 34031, 34041, 34072, 34080, 34096, 34059, 34073,
  7772. 34095, 34402, 34646, {f: 2, c: 34659}, 34679, 34785, 34675, 34648, 34644,
  7773. 34651, 34642, 34657, 34650, 34641, 34654, 34669, 34666, 34640, 34638,
  7774. 34655, 34653, 34671, 34668, 34682, 34670, 34652, 34661, 34639, 34683,
  7775. 34677, 34658, 34663, 34665, 34906, 35077, 35084, 35092, 35083,
  7776. {f: 3, c: 35095}, 35078, 35094, 35089, 35086, 35081, 35234, 35236, 35235,
  7777. 35309, 35312, 35308, 35535, 35526, 35512, 35539, 35537, {f: 2, c: 35540},
  7778. 35515, 35543, 35518, 35520, 35525, 35544, 35523, 35514, 35517, 35545,
  7779. 35902, 35917, 35983, 36069, 36063, 36057, 36072, 36058, 36061, 36071,
  7780. 36256, 36252, 36257, 36251, 36384, 36387, 36389, 36388, 36398, 36373,
  7781. 36379, 36374, 36369, 36377, {f: 2, c: 36390}, 36372, 36370, 36376, 36371,
  7782. 36380, 36375, 36378, 36652, 36644, 36632, 36634, 36640, 36643,
  7783. {f: 2, c: 36630}, 36979, 36976, 36975, 36967, 36971, 37167, 37163,
  7784. {f: 2, c: 37161}, 37170, 37158, 37166, {f: 2, c: 37253}, 37258,
  7785. {f: 2, c: 37249}, 37252, 37248, 37584, {f: 2, c: 37571}, 37568, 37593,
  7786. 37558, 37583, 37617, 37599, 37592, 37609, 37591, 37597, 37580, 37615,
  7787. 37570, 37608, 37578, 37576, 37582, 37606, 37581, 37589, 37577, 37600,
  7788. 37598, 37607, 37585, 37587, 37557, 37601, 37669, 37574, 37556, 38268,
  7789. 38316, 38315, 38318, 38320, 38564, 38562, 38611, 38661, 38664, 38658,
  7790. 38746, 38794, 38798, 38792, 38864, 38863, 38942, 38941, 38950, 38953,
  7791. 38952, 38944, 38939, 38951, 39090, 39176, 39162, 39185, 39188,
  7792. {f: 2, c: 39190}, 39189, 39388, 39373, 39375, {f: 2, c: 39379}, 39374,
  7793. 39369, [39382, 60270], 39384, 39371, 39383, 39372, 39603, 39660, 39659,
  7794. 39667, 39666, 39665, 39750, 39747, 39783, 39796, 39793, 39782, 39798,
  7795. 39797, 39792, 39784, 39780, 39788, 40188, 40186, 40189, 40191, 40183,
  7796. 40199, 40192, 40185, 40187, 40200, 40197, 40196, 40579, 40659,
  7797. {f: 2, c: 40719}, 20764, 20755, 20759, 20762, 20753, 20958, 21300, 21473,
  7798. 22128, 22112, 22126, 22131, 22118, 22115, 22125, 22130, 22110, 22135,
  7799. 22300, 22299, 22728, 22717, 22729, 22719, 22714, 22722, 22716, 22726,
  7800. 23319, 23321, 23323, 23329, 23316, 23315, 23312, 23318, [23336, 59539],
  7801. 23322, 23328, 23326, 23535, 23980, 23985, 23977, 23975, 23989, 23984,
  7802. 23982, 23978, 23976, 23986, 23981, 23983, 23988, {f: 2, c: 24167}, 24166,
  7803. 24175, 24297, 24295, 24294, 24296, 24293, 24395, 24508, 24507, 24989,
  7804. 25000, 24982, 25029, 25012, 25030, 25025, 25036, 25018, 25023, 25016,
  7805. 24972, 25815, 25814, 25808, 25807, 25801, 25789, 25737, 25795, 25819,
  7806. 25843, 25817, 25907, 25983, 25980, 26018, 26312, 26302, 26304,
  7807. {f: 2, c: 26314}, 26319, 26301, 26299, 26298, 26316, 26403, 27188, 27238,
  7808. 27209, 27239, 27186, 27240, 27198, 27229, 27245, 27254, 27227, 27217,
  7809. 27176, 27226, 27195, 27199, 27201, 27242, 27236, 27216, 27215, 27220,
  7810. 27247, 27241, 27232, 27196, 27230, 27222, 27221, {f: 2, c: 27213}, 27206,
  7811. 27477, 27476, 27478, 27559, {f: 2, c: 27562}, 27592, 27591, 27652, 27651,
  7812. 27654, 28589, 28619, 28579, 28615, 28604, 28622, 28616, 28510, 28612,
  7813. 28605, 28574, 28618, 28584, 28676, 28581, 28590, 28602, 28588, 28586,
  7814. 28623, 28607, 28600, 28578, 28617, 28587, 28621, 28591, 28594, 28592,
  7815. 29125, 29122, 29119, 29112, 29142, {f: 2, c: 29120}, 29131, 29140, 29130,
  7816. 29127, 29135, 29117, 29144, 29116, 29126, {f: 2, c: 29146},
  7817. {f: 2, c: 29341}, 29545, {f: 2, c: 29542}, 29548, 29541, 29547, 29546,
  7818. 29823, 29850, 29856, 29844, 29842, 29845, 29857, 29963, 30080, 30255,
  7819. 30253, 30257, 30269, 30259, 30268, 30261, 30258, 30256, 30395, 30438,
  7820. 30618, 30621, 30625, 30620, 30619, {f: 2, c: 30626}, 30613, 30617, 30615,
  7821. 30941, 30953, 30949, 30954, 30942, 30947, 30939, {f: 2, c: 30945}, 30957,
  7822. {f: 2, c: 30943}, 31140, 31300, 31304, 31303, 31414, 31416, 31413, 31409,
  7823. 31415, 31710, 31715, 31719, 31709, 31701, 31717, 31706, 31720, 31737,
  7824. 31700, 31722, 31714, 31708, 31723, 31704, 31711, 31954, 31956, 31959,
  7825. {f: 2, c: 31952}, 32274, 32289, 32279, 32268, {f: 2, c: 32287}, 32275,
  7826. 32270, 32284, 32277, 32282, 32290, 32267, 32271, 32278, 32269, 32276,
  7827. 32293, 32292, 32579, {f: 2, c: 32635}, 32634, 32689, 32751, 32810, 32809,
  7828. 32876, 33201, 33190, 33198, 33209, 33205, 33195, 33200, 33196, 33204,
  7829. 33202, 33207, 33191, 33266, {f: 3, c: 33365}, 34134, 34117, 34155, 34125,
  7830. 34131, 34145, 34136, 34112, 34118, 34148, 34113, 34146, 34116, 34129,
  7831. 34119, 34147, 34110, 34139, 34161, 34126, 34158, 34165, 34133, 34151,
  7832. 34144, 34188, 34150, 34141, 34132, 34149, 34156, 34403, 34405, 34404,
  7833. 34724, 34715, 34703, 34711, 34707, 34706, 34696, 34689, 34710, 34712,
  7834. 34681, 34695, 34723, 34693, {f: 2, c: 34704}, 34717, 34692, 34708, 34716,
  7835. 34714, 34697, 35102, 35110, 35120, {f: 2, c: 35117}, 35111, 35121, 35106,
  7836. 35113, 35107, 35119, 35116, 35103, 35313, 35552, 35554, 35570,
  7837. {f: 2, c: 35572}, 35549, 35604, 35556, 35551, 35568, 35528, 35550, 35553,
  7838. 35560, 35583, 35567, 35579, {f: 2, c: 35985}, 35984, 36085, 36078, 36081,
  7839. 36080, 36083, 36204, 36206, 36261, 36263, 36403, 36414, 36408, 36416,
  7840. 36421, 36406, {f: 2, c: 36412}, 36417, 36400, 36415, 36541, [36662, 60329],
  7841. 36654, 36661, 36658, 36665, 36663, 36660, 36982, 36985, 36987, 36998,
  7842. 37114, 37171, {f: 2, c: 37173}, 37267, {f: 2, c: 37264}, 37261, 37263,
  7843. 37671, 37662, 37640, 37663, 37638, 37647, 37754, 37688, 37692, 37659,
  7844. 37667, 37650, 37633, 37702, 37677, 37646, 37645, 37579, 37661, 37626,
  7845. 37651, 37625, 37623, 37684, 37634, 37668, 37631, 37673, 37689, 37685,
  7846. 37674, 37652, 37644, 37643, 37630, 37641, 37632, 37627, 37654, 38332,
  7847. 38349, 38334, {f: 2, c: 38329}, 38326, 38335, 38325, 38333, 38569, 38612,
  7848. 38667, 38674, 38672, 38809, 38807, 38804, 38896, 38904, 38965, 38959,
  7849. 38962, 39204, 39199, 39207, 39209, 39326, 39406, 39404, 39397, 39396,
  7850. 39408, 39395, 39402, 39401, 39399, 39609, 39615, 39604, 39611, 39670,
  7851. 39674, 39673, 39671, 39731, 39808, 39813, 39815, 39804, 39806, 39803,
  7852. 39810, 39827, 39826, 39824, 39802, 39829, 39805, 39816, 40229, 40215,
  7853. 40224, 40222, 40212, 40233, 40221, 40216, 40226, 40208, 40217, 40223,
  7854. 40584, {f: 2, c: 40582}, 40622, 40621, {f: 2, c: 40661}, 40698, 40722,
  7855. 40765, 20774, 20773, 20770, 20772, 20768, 20777, 21236, 22163,
  7856. {f: 2, c: 22156}, 22150, 22148, 22147, 22142, 22146, 22143, 22145, 22742,
  7857. 22740, 22735, 22738, 23341, 23333, 23346, 23331, 23340, 23335, 23334,
  7858. 23343, 23342, 23419, {f: 2, c: 23537}, 23991, 24172, 24170, 24510, 25027,
  7859. 25013, 25020, 25063, 25056, 25061, 25060, 25064, 25054, 25839, 25833,
  7860. 25827, 25835, 25828, 25832, 25985, 25984, 26038, 26074, 26322, 27277,
  7861. 27286, 27265, 27301, 27273, 27295, 27291, 27297, 27294, 27271, 27283,
  7862. 27278, 27285, 27267, 27304, 27300, 27281, 27263, 27302, 27290, 27269,
  7863. 27276, 27282, 27483, 27565, 27657, 28620, 28585, 28660, 28628, 28643,
  7864. 28636, 28653, 28647, 28646, 28638, 28658, 28637, 28642, 28648, 29153,
  7865. 29169, 29160, 29170, 29156, 29168, 29154, 29555, {f: 2, c: 29550}, 29847,
  7866. 29874, 29867, 29840, 29866, 29869, 29873, 29861, 29871, {f: 3, c: 29968},
  7867. 29967, 30084, 30275, {f: 2, c: 30280}, 30279, 30372, 30441, 30645, 30635,
  7868. 30642, 30647, 30646, 30644, 30641, 30632, 30704, 30963, 30973, 30978,
  7869. {f: 2, c: 30971}, 30975, 30962, 30981, 30969, 30974, 30980, 31147, 31144,
  7870. 31324, 31323, 31318, 31320, 31316, 31322, 31422, {f: 2, c: 31424}, 31749,
  7871. 31759, 31730, 31744, 31743, 31739, 31758, 31732, 31755, 31731, 31746,
  7872. 31753, 31747, 31745, 31736, 31741, [31750, 58176], {f: 2, c: 31728}, 31760,
  7873. 31754, 31976, 32301, 32316, 32322, 32307, 38984, 32312, 32298, 32329,
  7874. 32320, 32327, 32297, 32332, 32304, 32315, 32310, 32324, 32314, 32581,
  7875. 32639, 32638, 32637, 32756, 32754, 32812, 33211, 33220, 33228, 33226,
  7876. 33221, 33223, 33212, 33257, 33371, 33370, 33372, 34179, 34176, 34191,
  7877. 34215, 34197, 34208, 34187, 34211, 34171, 34212, 34202, 34206, 34167,
  7878. 34172, 34185, 34209, 34170, 34168, 34135, 34190, 34198, 34182, 34189,
  7879. 34201, 34205, 34177, 34210, 34178, 34184, 34181, 34169, 34166, 34200,
  7880. 34192, 34207, 34408, 34750, 34730, 34733, 34757, 34736, 34732, 34745,
  7881. 34741, 34748, 34734, 34761, 34755, 34754, 34764, 34743, 34735, 34756,
  7882. 34762, 34740, 34742, 34751, 34744, 34749, 34782, 34738, 35125, 35123,
  7883. 35132, 35134, 35137, 35154, 35127, 35138, 35245, 35247, 35246,
  7884. {f: 2, c: 35314}, 35614, 35608, 35606, 35601, 35589, 35595, 35618, 35599,
  7885. 35602, 35605, 35591, 35597, 35592, 35590, 35612, 35603, 35610, 35919,
  7886. 35952, 35954, 35953, 35951, 35989, 35988, 36089, 36207, 36430, 36429,
  7887. 36435, 36432, 36428, 36423, 36675, 36672, 36997, 36990, 37176, 37274,
  7888. 37282, 37275, 37273, 37279, 37281, 37277, 37280, 37793, 37763, 37807,
  7889. 37732, 37718, 37703, 37756, 37720, 37724, 37750, 37705, {f: 2, c: 37712},
  7890. 37728, 37741, 37775, 37708, 37738, 37753, 37719, 37717, 37714, 37711,
  7891. 37745, 37751, 37755, 37729, 37726, 37731, 37735, 37710, 37721, 38343,
  7892. 38336, 38345, 38339, 38341, 38327, 38574, 38576, 38572, 38688, 38687,
  7893. 38680, 38685, 38681, 38810, 38817, 38812, 38814, 38813, 38869, 38868,
  7894. 38897, 38977, 38980, 38986, 38985, 38981, 38979, 39205, {f: 2, c: 39211},
  7895. 39210, 39219, 39218, 39215, 39213, 39217, 39216, 39320, 39331, 39329,
  7896. 39426, 39418, 39412, 39415, 39417, 39416, 39414, 39419, {f: 2, c: 39421},
  7897. 39420, 39427, 39614, 39678, 39677, 39681, 39676, 39752, 39834, 39848,
  7898. 39838, 39835, 39846, 39841, 39845, 39844, 39814, 39842, 39840, 39855,
  7899. 40243, 40257, 40295, 40246, {f: 2, c: 40238}, 40241, 40248, 40240, 40261,
  7900. {f: 2, c: 40258}, 40254, 40247, 40256, 40253, 32757, 40237, 40586, 40585,
  7901. 40589, 40624, 40648, 40666, 40699, 40703, 40740, 40739, 40738, 40788,
  7902. [12245, 40864], 20785, {f: 2, c: 20781}, 22168, 22172, 22167, 22170, 22173,
  7903. 22169, 22896, 23356, {f: 2, c: 23657}, 24000, {f: 2, c: 24173}, 25048,
  7904. 25055, {f: 2, c: 25069}, 25073, 25066, 25072, 25067, 25046, 25065, 25855,
  7905. 25860, 25853, 25848, 25857, 25859, 25852, 26004, 26075, {f: 2, c: 26330},
  7906. 26328, 27333, 27321, 27325, 27361, 27334, 27322, {f: 2, c: 27318}, 27335,
  7907. 27316, 27309, 27486, 27593, 27659, 28679, {f: 2, c: 28684}, 28673, 28677,
  7908. 28692, 28686, {f: 2, c: 28671}, 28667, 28710, 28668, 28663, 28682,
  7909. [29185, 60224], 29183, 29177, 29187, 29181, 29558, 29880, 29888, 29877,
  7910. 29889, 29886, 29878, 29883, 29890, 29972, 29971, 30300, 30308, 30297,
  7911. 30288, 30291, 30295, 30298, 30374, 30397, 30444, 30658, 30650, 30988,
  7912. {f: 2, c: 30995}, 30985, 30992, 30994, 30993, 31149, 31148, 31327, 31772,
  7913. 31785, 31769, 31776, 31775, 31789, 31773, 31782, 31784, 31778, 31781,
  7914. 31792, 32348, 32336, 32342, 32355, 32344, 32354, 32351, 32337, 32352,
  7915. 32343, 32339, 32693, 32691, {f: 2, c: 32759}, 32885, {f: 2, c: 33233},
  7916. 33232, 33375, 33374, 34228, 34246, 34240, 34243, 34242, 34227, 34229,
  7917. 34237, 34247, 34244, 34239, 34251, 34254, 34248, 34245, 34225, 34230,
  7918. 34258, 34340, 34232, 34231, 34238, 34409, 34791, 34790, 34786, 34779,
  7919. 34795, 34794, 34789, 34783, 34803, 34788, 34772, 34780, 34771, 34797,
  7920. 34776, 34787, 34775, 34777, 34817, 34804, 34792, 34781, 35155, 35147,
  7921. 35151, 35148, 35142, {f: 2, c: 35152}, 35145, 35626, 35623, 35619, 35635,
  7922. 35632, 35637, 35655, 35631, 35644, 35646, 35633, 35621, 35639, 35622,
  7923. 35638, 35630, 35620, 35643, 35645, 35642, 35906, 35957, 35993, 35992,
  7924. 35991, 36094, 36100, 36098, 36096, 36444, 36450, 36448, 36439, 36438,
  7925. 36446, 36453, 36455, 36443, 36442, 36449, 36445, 36457, 36436,
  7926. {f: 3, c: 36678}, 36683, 37160, {f: 2, c: 37178}, 37182, 37288, 37285,
  7927. 37287, 37295, 37290, 37813, 37772, 37778, 37815, 37787, 37789, 37769,
  7928. 37799, 37774, 37802, 37790, 37798, 37781, 37768, 37785, 37791, 37760,
  7929. 37773, 37809, 37777, 37810, 37796, 37800, 37812, 37795, {f: 2, c: 38354},
  7930. 38353, 38579, 38615, 38618, 24002, 38623, 38616, 38621, 38691, 38690,
  7931. 38693, 38828, 38830, 38824, 38827, 38820, 38826, 38818, 38821, 38871,
  7932. 38873, 38870, 38872, 38906, {f: 3, c: 38992}, 39096, 39233, 39228, 39226,
  7933. 39439, 39435, 39433, 39437, 39428, 39441, 39434, 39429, 39431, 39430,
  7934. 39616, 39644, 39688, {f: 2, c: 39684}, 39721, 39733, 39754, 39756, 39755,
  7935. 39879, 39878, 39875, 39871, 39873, 39861, 39864, 39891, 39862, 39876,
  7936. 39865, 39869, 40284, 40275, 40271, 40266, 40283, 40267, 40281, 40278,
  7937. 40268, 40279, 40274, 40276, 40287, 40280, 40282, 40590, 40588, 40671,
  7938. 40705, 40704, [40726, 58693], 40741, 40747, 40746, 40745, 40744, 40780,
  7939. 40789, {f: 2, c: 20788}, 21142, 21239, 21428, 22187, 22189,
  7940. {f: 2, c: 22182}, 22186, 22188, 22746, 22749, 22747, 22802,
  7941. {f: 3, c: 23357}, 24003, 24176, 24511, 25083, 25863, 25872, 25869, 25865,
  7942. 25868, 25870, 25988, 26078, 26077, 26334, 27367, 27360, 27340, 27345,
  7943. 27353, 27339, 27359, 27356, 27344, 27371, 27343, 27341, 27358, 27488,
  7944. 27568, 27660, 28697, 28711, 28704, 28694, 28715, {f: 3, c: 28705}, 28713,
  7945. 28695, 28708, 28700, 29196, 29194, 29191, 29186, 29189, {f: 2, c: 29349},
  7946. 29348, 29347, 29345, 29899, 29893, 29879, 29891, 29974, 30304,
  7947. {f: 2, c: 30665}, 30660, 30705, 31005, 31003, 31009, 31004, 30999, 31006,
  7948. 31152, {f: 2, c: 31335}, 31795, 31804, 31801, 31788, 31803, 31980, 31978,
  7949. 32374, 32373, 32376, 32368, 32375, 32367, 32378, 32370, 32372, 32360,
  7950. 32587, 32586, 32643, 32646, 32695, {f: 2, c: 32765}, 32888, 33239, 33237,
  7951. 33291, 33380, 33377, 33379, 34283, 34289, 34285, 34265, 34273, 34280,
  7952. 34266, 34263, 34284, 34290, 34296, 34264, 34271, 34275, 34268, 34257,
  7953. 34288, 34278, 34287, 34270, 34274, 34816, 34810, 34819, {f: 2, c: 34806},
  7954. 34825, 34828, 34827, 34822, 34812, 34824, 34815, 34826, 34818, 35170,
  7955. {f: 2, c: 35162}, 35159, 35169, 35164, 35160, 35165, 35161, 35208, 35255,
  7956. 35254, 35318, 35664, 35656, 35658, 35648, 35667, 35670, 35668, 35659,
  7957. 35669, 35665, 35650, 35666, 35671, 35907, 35959, 35958, 35994,
  7958. {f: 2, c: 36102}, 36105, 36268, 36266, 36269, 36267, 36461, 36472, 36467,
  7959. 36458, 36463, 36475, 36546, 36690, 36689, {f: 2, c: 36687}, 36691, 36788,
  7960. 37184, 37183, 37296, 37293, 37854, 37831, 37839, 37826, 37850, 37840,
  7961. 37881, 37868, 37836, 37849, 37801, 37862, 37834, 37844, 37870, 37859,
  7962. 37845, 37828, 37838, 37824, 37842, 37797, 37863, 38269, {f: 2, c: 38362},
  7963. 38625, 38697, {f: 2, c: 38699}, 38696, 38694, 38835, 38839, 38838,
  7964. {f: 3, c: 38877}, 39004, 39001, 39005, 38999, 39103, 39101, 39099, 39102,
  7965. 39240, 39239, 39235, {f: 2, c: 39334}, 39450, 39445, 39461, 39453, 39460,
  7966. 39451, 39458, 39456, 39463, 39459, 39454, 39452, 39444, 39618, 39691,
  7967. 39690, 39694, 39692, 39735, {f: 2, c: 39914}, 39904, 39902, 39908, 39910,
  7968. 39906, 39920, 39892, 39895, 39916, 39900, 39897, 39909, 39893, 39905,
  7969. 39898, 40311, 40321, 40330, 40324, 40328, 40305, 40320, 40312, 40326,
  7970. {f: 2, c: 40331}, 40317, 40299, {f: 2, c: 40308}, 40304, 40297, 40325,
  7971. 40307, 40315, 40322, 40303, 40313, 40319, 40327, 40296, 40596, 40593,
  7972. 40640, 40700, 40749, {f: 2, c: 40768}, 40781, {f: 3, c: 40790}, 21303,
  7973. 22194, 22197, 22195, 22755, 23365, {f: 2, c: 24006}, {f: 2, c: 24302},
  7974. {f: 2, c: 24512}, 25081, 25879, 25878, 25877, 25875, 26079, 26344,
  7975. {f: 2, c: 26339}, 27379, 27376, 27370, 27368, 27385, 27377,
  7976. {f: 2, c: 27374}, 28732, 28725, 28719, 28727, 28724, 28721, 28738, 28728,
  7977. 28735, 28730, 28729, 28714, 28736, 28731, 28723, 28737, {f: 2, c: 29203},
  7978. 29352, 29565, 29564, 29882, 30379, 30378, 30398, 30445, 30668,
  7979. {f: 2, c: 30670}, 30669, 30706, 31013, 31011, {f: 2, c: 31015}, 31012,
  7980. 31017, 31154, 31342, {f: 2, c: 31340}, 31479, 31817, 31816, 31818, 31815,
  7981. 31813, 31982, 32379, 32382, 32385, 32384, 32698, 32767, 32889, 33243,
  7982. 33241, {f: 2, c: 33384}, 34338, 34303, 34305, 34302, 34331, 34304, 34294,
  7983. 34308, 34313, 34309, 34316, 34301, 34841, {f: 2, c: 34832}, 34839, 34835,
  7984. 34838, 35171, 35174, 35257, 35319, 35680, 35690, 35677, 35688, 35683,
  7985. 35685, 35687, 35693, 36270, 36486, 36488, 36484, 36697, {f: 2, c: 36694},
  7986. 36693, 36696, 36698, 37005, 37187, 37185, 37303, 37301, {f: 2, c: 37298},
  7987. 37899, 37907, 37883, 37920, 37903, 37908, 37886, 37909, 37904, 37928,
  7988. 37913, 37901, 37877, 37888, 37879, 37895, 37902, 37910, 37906, 37882,
  7989. 37897, 37880, 37948, 37898, 37887, 37884, 37900, 37878, 37905, 37894,
  7990. 38366, 38368, 38367, {f: 2, c: 38702}, 38841, 38843, {f: 2, c: 38909},
  7991. 39008, {f: 2, c: 39010}, 39007, {f: 2, c: 39105}, 39248, 39246, 39257,
  7992. 39244, 39243, 39251, 39474, 39476, 39473, 39468, 39466, 39478, 39465,
  7993. 39470, 39480, 39469, 39623, 39626, 39622, 39696, 39698, 39697, 39947,
  7994. 39944, 39927, 39941, 39954, 39928, 40000, 39943, 39950, 39942, 39959,
  7995. 39956, 39945, 40351, 40345, 40356, 40349, 40338, 40344, 40336, 40347,
  7996. 40352, 40340, 40348, 40362, 40343, 40353, 40346, 40354, 40360, 40350,
  7997. 40355, 40383, 40361, 40342, {f: 2, c: 40358}, 40601, 40603, 40602, 40677,
  7998. 40676, 40679, 40678, 40752, 40750, 40795, 40800, 40798, 40797, 40793,
  7999. 40849, 20794, 20793, 21144, 21143, 22211, {f: 2, c: 22205}, 23368, 23367,
  8000. 24011, 24015, 24305, 25085, 25883, 27394, 27388, 27395, 27384, 27392,
  8001. {f: 2, c: 28739}, 28746, {f: 2, c: 28744}, {f: 2, c: 28741}, 29213, 29210,
  8002. 29209, 29566, 29975, 30314, 30672, 31021, 31025, 31023, 31828, 31827,
  8003. 31986, 32394, [32391, 60229], 32392, 32395, 32390, 32397, 32589, 32699,
  8004. 32816, 33245, 34328, 34346, 34342, 34335, 34339, 34332, 34329, 34343,
  8005. 34350, 34337, 34336, 34345, 34334, 34341, 34857, 34845, 34843, 34848,
  8006. 34852, 34844, 34859, 34890, 35181, 35177, 35182, 35179, 35322, 35705,
  8007. 35704, 35653, {f: 2, c: 35706}, 36112, 36116, 36271, 36494, 36492, 36702,
  8008. 36699, 36701, 37190, {f: 2, c: 37188}, 37305, 37951, 37947, 37942, 37929,
  8009. 37949, 37936, 37945, 37930, 37943, 37932, 37952, 37937, 38373, 38372,
  8010. 38371, 38709, 38714, 38847, 38881, 39012, 39113, 39110, 39104, 39256,
  8011. 39254, 39481, 39485, 39494, 39492, 39490, 39489, 39482, 39487, 39629,
  8012. 39701, {f: 2, c: 39703}, 39702, 39738, 39762, 39979, 39965, 39964, 39980,
  8013. 39971, {f: 2, c: 39976}, 39972, 39969, 40375, 40374, 40380, 40385, 40391,
  8014. 40394, 40399, 40382, 40389, 40387, 40379, 40373, 40398, {f: 2, c: 40377},
  8015. 40364, 40392, 40369, 40365, 40396, 40371, 40397, 40370, 40570, 40604,
  8016. 40683, 40686, 40685, 40731, 40728, 40730, 40753, 40782, 40805, 40804,
  8017. 40850, 20153, 22214, 22213, 22219, 22897, {f: 2, c: 23371}, 24021, 24017,
  8018. 24306, 25889, 25888, 25894, 25890, 27403, {f: 2, c: 27400}, 27661,
  8019. {f: 3, c: 28757}, 28754, {f: 2, c: 29214}, 29353, 29567, 29912, 29909,
  8020. 29913, 29911, 30317, 30381, 31029, 31156, {f: 2, c: 31344}, 31831, 31836,
  8021. 31833, 31835, 31834, 31988, 31985, 32401, 32591, 32647, 33246, 33387,
  8022. {f: 2, c: 34356}, 34355, 34348, 34354, 34358, 34860, 34856, 34854, 34858,
  8023. 34853, 35185, 35263, 35262, 35323, 35710, 35716, 35714, 35718, 35717,
  8024. 35711, 36117, 36501, 36500, 36506, 36498, 36496, {f: 2, c: 36502}, 36704,
  8025. 36706, 37191, 37964, 37968, {f: 2, c: 37962}, 37967, 37959, 37957,
  8026. {f: 2, c: 37960}, 37958, 38719, 38883, 39018, 39017, 39115, 39252, 39259,
  8027. 39502, {f: 2, c: 39507}, 39500, 39503, 39496, 39498, 39497, 39506, 39504,
  8028. 39632, 39705, 39723, 39739, 39766, 39765, 40006, 40008, 39999, 40004,
  8029. 39993, 39987, 40001, 39996, 39991, 39988, 39986, 39997, 39990, 40411,
  8030. 40402, 40414, 40410, 40395, 40400, 40412, 40401, 40415, 40425, 40409,
  8031. 40408, 40406, 40437, 40405, 40413, 40630, 40688, 40757, 40755, 40754,
  8032. 40770, 40811, 40853, 40866, 20797, 21145, 22760, 22759, 22898, 23373,
  8033. 24024, 34863, 24399, 25089, {f: 2, c: 25091}, 25897, 25893, 26006, 26347,
  8034. {f: 2, c: 27409}, 27407, 27594, 28763, 28762, 29218, 29570, 29569, 29571,
  8035. 30320, 30676, 31847, 31846, 32405, 33388, 34362, 34368, 34361, 34364,
  8036. 34353, 34363, 34366, 34864, 34866, 34862, 34867, 35190, 35188, 35187,
  8037. 35326, 35724, 35726, 35723, 35720, 35909, 36121, 36504, 36708, 36707,
  8038. 37308, 37986, 37973, 37981, 37975, 37982, {f: 2, c: 38852}, 38912, 39510,
  8039. 39513, {f: 3, c: 39710}, 40018, 40024, 40016, 40010, 40013, 40011, 40021,
  8040. 40025, 40012, 40014, 40443, 40439, 40431, 40419, 40427, 40440, 40420,
  8041. 40438, 40417, 40430, 40422, 40434, [40432, 60370], 40418, 40428, 40436,
  8042. 40435, 40424, 40429, 40642, 40656, {f: 2, c: 40690}, 40710, 40732, 40760,
  8043. 40759, 40758, 40771, 40783, 40817, 40816, {f: 2, c: 40814}, 22227, 22221,
  8044. 23374, 23661, 25901, {f: 2, c: 26349}, 27411, 28767, 28769, 28765, 28768,
  8045. 29219, 29915, 29925, 30677, 31032, 31159, 31158, 31850, 32407, 32649,
  8046. 33389, 34371, 34872, 34871, 34869, 34891, {f: 2, c: 35732},
  8047. {f: 3, c: 36510}, 36509, 37310, 37309, 37314, 37995, {f: 2, c: 37992},
  8048. 38629, 38726, 38723, 38727, 38855, 38885, 39518, 39637, 39769, 40035,
  8049. 40039, 40038, 40034, 40030, 40032, 40450, 40446, 40455, 40451, 40454,
  8050. 40453, {f: 2, c: 40448}, 40457, 40447, 40445, 40452, 40608, 40734, 40774,
  8051. {f: 3, c: 40820}, 22228, 25902, 26040, {f: 2, c: 27416}, 27415, 27418,
  8052. 28770, 29222, 29354, {f: 2, c: 30680}, 31033, 31849, 31851, 31990, 32410,
  8053. 32408, 32411, 32409, {f: 2, c: 33248}, {f: 3, c: 34374}, {f: 2, c: 35193},
  8054. 35196, 35195, 35327, {f: 2, c: 35736}, 36517, 36516, 36515, 37998, 37997,
  8055. 37999, 38001, 38003, 38729, 39026, 39263, 40040, 40046, 40045, 40459,
  8056. 40461, 40464, 40463, 40466, 40465, 40609, 40693, 40713, 40775, 40824,
  8057. 40827, 40826, 40825, 22302, 28774, 31855, 34876, 36274, 36518, 37315,
  8058. 38004, 38008, 38006, 38005, 39520, [39726, 60830], 40052, 40051, 40049,
  8059. 40053, 40468, 40467, 40694, 40714, 40868, 28776, 28773, 31991, 34410,
  8060. 34878, 34877, 34879, 35742, 35996, 36521, 36553, 38731, {f: 2, c: 39027},
  8061. 39116, 39265, 39339, 39524, {f: 2, c: 39526}, 39716, 40469, 40471, 40776,
  8062. 25095, 27422, 29223, 34380, 36520, 38018, {f: 2, c: 38016}, 39529, 39528,
  8063. 40473, 34379, 35743, 38019, 40057, 40631, 30325, 39531, 40058, 40477,
  8064. {f: 2, c: 28777}, 29225, 40612, 40830, 40777, 40856, {s: 97}, 65075, 0,
  8065. 65076, 65103, [168, 776, 63208], [710, 63209, 65342], [12541, 63210],
  8066. [12542, 63211], [12445, 63212], [12446, 63213], 0, [12293, 63216],
  8067. [12294, 63217], [12295, 63218], [12540, 63219], [63220, 65339],
  8068. [63221, 65341], [10045, 63222], [12353, 63223], [12354, 63224],
  8069. [12355, 63225], [12356, 63226], [12357, 63227], [12358, 63228],
  8070. [12359, 63229], [12360, 63230], [12361, 63231], [12362, 63232],
  8071. [12363, 63233], [12364, 63234], [12365, 63235], [12366, 63236],
  8072. [12367, 63237], [12368, 63238], [12369, 63239], [12370, 63240],
  8073. [12371, 63241], [12372, 63242], [12373, 63243], [12374, 63244],
  8074. [12375, 63245], [12376, 63246], [12377, 63247], [12378, 63248],
  8075. [12379, 63249], [12380, 63250], [12381, 63251], [12382, 63252],
  8076. [12383, 63253], [12384, 63254], [12385, 63255], [12386, 63256],
  8077. [12387, 63257], [12388, 63258], [12389, 63259], [12390, 63260],
  8078. [12391, 63261], [12392, 63262], [12393, 63263], [12394, 63264],
  8079. [12395, 63265], [12396, 63266], [12397, 63267], [12398, 63268],
  8080. [12399, 63269], [12400, 63270], [12401, 63271], [12402, 63272],
  8081. [12403, 63273], [12404, 63274], [12405, 63275], [12406, 63276],
  8082. [12407, 63277], [12408, 63278], [12409, 63279], [12410, 63280],
  8083. [12411, 63281], [12412, 63282], [12413, 63283], [12414, 63284],
  8084. [12415, 63285], [12416, 63286], [12417, 63287], [12418, 63288],
  8085. [12419, 63289], [12420, 63290], [12421, 63291], [12422, 63292],
  8086. [12423, 63293], [12424, 63294], [12425, 63295], [12426, 63296],
  8087. [12427, 63297], [12428, 63298], [12429, 63299], [12430, 63300],
  8088. [12431, 63301], [12432, 63302], [12433, 63303], [12434, 63304],
  8089. [12435, 63305], [12449, 63306], [12450, 63307], [12451, 63308],
  8090. [12452, 63309], [12453, 63310], [12454, 63311], [12455, 63312],
  8091. [12456, 63313], [12457, 63314], [12458, 63315], [12459, 63316],
  8092. [12460, 63317], [12461, 63318], [12462, 63319], [12463, 63320],
  8093. [12464, 63321], [12465, 63322], [12466, 63323], [12467, 63324],
  8094. [12468, 63325], [12469, 63326], [12470, 63327], [12471, 63328],
  8095. [12472, 63329], [12473, 63330], [12474, 63331], [12475, 63332],
  8096. [12476, 63333], [12477, 63334], [12478, 63335], [12479, 63336],
  8097. [12480, 63337], [12481, 63338], [12482, 63339], [12483, 63340],
  8098. [12484, 63341], [12485, 63342], [12486, 63343], [12487, 63344],
  8099. [12488, 63345], [12489, 63346], [12490, 63347], [12491, 63348],
  8100. [12492, 63349], [12493, 63350], [12494, 63351], [12495, 63352],
  8101. [12496, 63353], [12497, 63354], [12498, 63355], [12499, 63356],
  8102. [12500, 63357], [12501, 63358], [12502, 63359], [12503, 63360],
  8103. [12504, 63361], [12505, 63362], [12506, 63363], [12507, 63364],
  8104. [12508, 63365], [12509, 63366], [12510, 63367], [12511, 63368],
  8105. [12512, 63369], [12513, 63370], [12514, 63371], [12515, 63372],
  8106. [12516, 63373], [12517, 63374], [12518, 63375], [12519, 63376],
  8107. [12520, 63377], [12521, 63378], [12522, 63379], [12523, 63380],
  8108. [12524, 63381], [12525, 63382], [12526, 63383], [12527, 63384],
  8109. [12528, 63385], [12529, 63386], [12530, 63387], [12531, 63388],
  8110. [12532, 63389], [12533, 63390], [12534, 63391], [1040, 63392],
  8111. [1041, 63393], [1042, 63394], [1043, 63395], [1044, 63396], [1045, 63397],
  8112. [1025, 63398], [1046, 63399], [1047, 63400], [1048, 63401], [1049, 63402],
  8113. [1050, 63403], [1051, 63404], [1052, 63405], [1053, 63406], [1054, 63407],
  8114. [1055, 63408], [1056, 63409], [1057, 63410], [1058, 63411], [1059, 63412],
  8115. [1060, 63413], [1061, 63414], [1062, 63415], [1063, 63416], [1064, 63417],
  8116. [1065, 63418], [1066, 63419], [1067, 63420], [1068, 63421], [1069, 63422],
  8117. [1070, 63423], [1071, 63424], [1072, 63425], [1073, 63426], [1074, 63427],
  8118. [1075, 63428], [1076, 63429], [1077, 63430], [1105, 63431], [1078, 63432],
  8119. [1079, 63433], [1080, 63434], [1081, 63435], [1082, 63436], [1083, 63437],
  8120. [1084, 63438], [1085, 63439], [1086, 63440], [1087, 63441], [1088, 63442],
  8121. [1089, 63443], [1090, 63444], [1091, 63445], [1092, 63446], [1093, 63447],
  8122. [1094, 63448], [1095, 63449], [1096, 63450], [1097, 63451], [1098, 63452],
  8123. [1099, 63453], [1100, 63454], [1101, 63455], [1102, 63456], [1103, 63457],
  8124. [8679, 63458], [8632, 63459], [8633, 63460], [20033, 63461],
  8125. [63462, 131276], [20058, 63463], [63464, 131210], [20994, 63465],
  8126. [17553, 63466], 63467, [20872, 63468], [13853, 63469], [63470, 161287],
  8127. {s: 40}, [172, 63511, 65506], [63512, 65508], [63513, 65287],
  8128. [63514, 65282], [12849, 63515], [8470, 63516], [8481, 63517], 30849,
  8129. [37561, 58501], 35023, 22715, 24658, 31911, 23290, 9556, 9574, 9559, 9568,
  8130. 9580, 9571, 9562, 9577, 9565, 9554, 9572, 9557, {s: 3}, 9560, 9575, 9563,
  8131. 9555, 9573, 9558, 9567, 9579, 9570, 9561, 9576, 9564, 9553, {s: 5}, 9619,
  8132. {s: 26}, [58129, 147159], [22462, 58130], [58131, 159443], [28990, 58132],
  8133. [58133, 153568], [27042, 58135], [58136, 166889], [23412, 58137],
  8134. [31305, 58138], [58139, 153825], [58140, 169177], [31333, 58141],
  8135. [31357, 58142], [58143, 154028], [31419, 58144], [31408, 58145],
  8136. [31426, 58146], [31427, 58147], [29137, 58148], [58149, 156813],
  8137. [16842, 58150], [31450, 58151], [31453, 58152], [31466, 58153],
  8138. [16879, 58154], [21682, 58155], [58156, 154625], [31499, 58157],
  8139. [31573, 58158], [31529, 58159], [58160, 152334], [58161, 154878],
  8140. [31650, 58162], [31599, 58163], [33692, 58164], [58165, 154548],
  8141. [58166, 158847], [31696, 58167], [33825, 58168], [31634, 58169], 0,
  8142. [58171, 154912], 0, [33938, 58174], [31738, 58175], 0, [31797, 58177],
  8143. [58178, 154817], [31812, 58179], [31875, 58180], [58181, 149634],
  8144. [31910, 58182], [58184, 148856], [31945, 58185], [31943, 58186],
  8145. [31974, 58187], 0, [31987, 58189], [31989, 58190], [32359, 58192],
  8146. [17693, 58193], [58194, 159300], [32093, 58195], [58196, 159446],
  8147. [32137, 58198], [32171, 58199], [28981, 58200], [32179, 58201], 32214,
  8148. [58203, 147543], [58204, 155689], [32228, 58205], [15635, 58206],
  8149. [32245, 58207], [58208, 137209], [32229, 58209], [58210, 164717], 0,
  8150. [58212, 155937], [58213, 155994], [32366, 58214], 0, [17195, 58216],
  8151. [37996, 58217], [32295, 58218], [32576, 58219], [32577, 58220],
  8152. [32583, 58221], [31030, 58222], [58223, 156368], [39393, 58224],
  8153. [32663, 58225], [58226, 156497], [32675, 58227], [58228, 136801],
  8154. [58229, 131176], [17756, 58230], [58231, 145254], [58233, 164666],
  8155. [32762, 58234], [58235, 156809], 0, [32776, 58237], [32797, 58238], 0,
  8156. [32815, 58240], [58241, 172167], [58242, 158915], [32827, 58243],
  8157. [32828, 58244], [32865, 58245], [58246, 141076], [18825, 58247],
  8158. [58248, 157222], [58249, 146915], [58250, 157416], [26405, 58251],
  8159. [32935, 58252], [58253, 166472], [33031, 58254], [33050, 58255],
  8160. [22704, 58256], [58257, 141046], [27775, 58258], [58259, 156824],
  8161. [25831, 58261], [58262, 136330], [33304, 58263], [58264, 137310],
  8162. [27219, 58265], [58266, 150117], [58267, 150165], [17530, 58268],
  8163. [33321, 58269], [58271, 158290], [58272, 146814], [20473, 58273],
  8164. [58274, 136445], [34018, 58275], [33634, 58276], 0, [58278, 149927],
  8165. [58279, 144688], [58280, 137075], [58281, 146936], [33450, 58282],
  8166. [26907, 58283], [58284, 194964], [16859, 58285], [34123, 58286],
  8167. [33488, 58287], [33562, 58288], [58289, 134678], [58290, 137140],
  8168. [14017, 58291], [58292, 143741], [58293, 144730], [33403, 58294],
  8169. [33506, 58295], [33560, 58296], [58297, 147083], [58298, 159139],
  8170. [58299, 158469], [58300, 158615], [58301, 144846], [15807, 58302],
  8171. [33565, 58303], [21996, 58304], [33669, 58305], [17675, 58306],
  8172. [58307, 159141], [33708, 58308], 0, [33747, 58310], [58312, 159444],
  8173. [27223, 58313], [34138, 58314], [13462, 58315], [58316, 159298],
  8174. [33880, 58318], [58319, 154596], [33905, 58320], [15827, 58321],
  8175. [17636, 58322], [27303, 58323], [33866, 58324], [31064, 58326], 0,
  8176. [58328, 158614], [58329, 159351], [58330, 159299], [34014, 58331], 0,
  8177. [33681, 58333], [17568, 58334], [33939, 58335], [34020, 58336],
  8178. [58337, 154769], [16960, 58338], [58339, 154816], [17731, 58340],
  8179. [34100, 58341], [23282, 58342], 0, [17703, 58344], [34163, 58345],
  8180. [17686, 58346], [26559, 58347], [34326, 58348], [58349, 165413],
  8181. [58350, 165435], [34241, 58351], [58352, 159880], [34306, 58353],
  8182. [58354, 136578], [58355, 159949], [58356, 194994], [17770, 58357],
  8183. [34344, 58358], [13896, 58359], [58360, 137378], [21495, 58361],
  8184. [58362, 160666], [34430, 58363], 0, [58365, 172280], [34798, 58366],
  8185. [58367, 142375], [34737, 58368], [34778, 58369], [34831, 58370, 60990],
  8186. [22113, 58371], [34412, 58372], [26710, 58373], [17935, 58374],
  8187. [34885, 58375], [34886, 58376], [58377, 161248], [58378, 146873],
  8188. [58379, 161252], [34910, 58380], [34972, 58381], [18011, 58382],
  8189. [34996, 58383], [34997, 58384], [35013, 58386], [58388, 161551],
  8190. [35207, 58389], {s: 3}, [35239, 58393], [35260, 58394], [58395, 166437],
  8191. [35303, 58396], [58397, 162084], [58398, 162493], [35484, 58399],
  8192. [30611, 58400], [37374, 58401], [35472, 58402], [58403, 162393],
  8193. [31465, 58404], [58405, 162618], [18195, 58407], [58408, 162616],
  8194. [29052, 58409], [35596, 58410], [35615, 58411], [58412, 152624],
  8195. [58413, 152933], [35647, 58414], 0, [35661, 58416], [35497, 58417],
  8196. [58418, 150138], [35728, 58419], [35739, 58420], [35503, 58421],
  8197. [58422, 136927], [17941, 58423], [34895, 58424], [35995, 58425],
  8198. [58426, 163156], [58427, 163215], [58428, 195028], [14117, 58429],
  8199. [58430, 163155], [36054, 58431], [58432, 163224], [58433, 163261],
  8200. [36114, 58434], [36099, 58435], [58436, 137488], [36059, 58437],
  8201. [28764, 58438], [36113, 58439], [16080, 58441], 0, [36265, 58443],
  8202. [58444, 163842], [58445, 135188], [58446, 149898], [15228, 58447],
  8203. [58448, 164284], [58449, 160012], [31463, 58450], [36525, 58451],
  8204. [36534, 58452], [36547, 58453], [37588, 58454], [36633, 58455],
  8205. [36653, 58456], [58457, 164709], [58458, 164882], [36773, 58459],
  8206. [37635, 58460], [58461, 172703], [58462, 133712], [36787, 58463], 0,
  8207. [58465, 166366], [58466, 165181], [58467, 146875], [24312, 58468],
  8208. [58469, 143970], [36857, 58470], 0, [58474, 140069], [14720, 58475],
  8209. [58476, 159447], [36919, 58477], [58478, 165180], [58479, 162494],
  8210. [36961, 58480], [58481, 165228], [58482, 165387], [37032, 58483],
  8211. [58484, 165651], [37060, 58485], [58486, 165606], [37038, 58487], 0,
  8212. [37223, 58489], [37289, 58491], [37316, 58492], [31916, 58493],
  8213. [58494, 166195], [58495, 138889], [37390, 58496], [27807, 58497],
  8214. [37441, 58498], [37474, 58499], [58500, 153017], [58502, 166598],
  8215. [58503, 146587], [58504, 166668], [58505, 153051], [58506, 134449],
  8216. [37676, 58507], [37739, 58508], [58509, 166625], [58510, 166891],
  8217. [23235, 58512], [58513, 166626], [58514, 166629], [18789, 58515],
  8218. [37444, 58516], [58517, 166892], [58518, 166969], [58519, 166911],
  8219. [37747, 58520], [37979, 58521], [36540, 58522], [38277, 58523],
  8220. [38310, 58524], [37926, 58525], [38304, 58526], [28662, 58527],
  8221. [17081, 58528], [58530, 165592], [58531, 135804], [58532, 146990],
  8222. [18911, 58533], [27676, 58534], [38523, 58535], [38550, 58536],
  8223. [16748, 58537], [38563, 58538], [58539, 159445], [25050, 58540], 58541,
  8224. [30965, 58542], [58543, 166624], [38589, 58544], [21452, 58545],
  8225. [18849, 58546], [58547, 158904], [58548, 131700], [58549, 156688],
  8226. [58550, 168111], [58551, 168165], [58552, 150225], [58553, 137493],
  8227. [58554, 144138], [38705, 58555], [34370, 58556], [38710, 58557],
  8228. [18959, 58558], [17725, 58559], [17797, 58560], [58561, 150249],
  8229. [28789, 58562], [23361, 58563], [38683, 58564], 0, [58566, 168405],
  8230. [38743, 58567], [23370, 58568], [58569, 168427], [38751, 58570],
  8231. [37925, 58571], [20688, 58572], [58573, 143543], [58574, 143548],
  8232. [38793, 58575], [38815, 58576], [38833, 58577], [38846, 58578],
  8233. [38848, 58579], [38866, 58580], [38880, 58581], [58582, 152684],
  8234. [38894, 58583], [29724, 58584], [58585, 169011], 0, [38901, 58587],
  8235. [58588, 168989], [58589, 162170], [19153, 58590], [38964, 58591],
  8236. [38963, 58592], [38987, 58593], [39014, 58594], [15118, 58595],
  8237. [58596, 160117], [15697, 58597], [58598, 132656], [58599, 147804],
  8238. [58600, 153350], [39114, 58601], [39095, 58602], [39112, 58603],
  8239. [39111, 58604], [19199, 58605], [58606, 159015], [58607, 136915],
  8240. [21936, 58608], [39137, 58609], [39142, 58610], [39148, 58611],
  8241. [37752, 58612], [39225, 58613], [58614, 150057], [19314, 58615],
  8242. [58616, 170071], [58617, 170245], [39413, 58618], [39436, 58619],
  8243. [39483, 58620], [39440, 58621], [39512, 58622], [58623, 153381],
  8244. [14020, 58624], [58625, 168113], [58626, 170965], [39648, 58627],
  8245. [39650, 58628], [58629, 170757], [39668, 58630], [19470, 58631],
  8246. [39700, 58632], [39725, 58633], [58634, 165376], [20532, 58635],
  8247. [39732, 58636], [14531, 58638], [58639, 143485], [39760, 58640],
  8248. [39744, 58641], [58642, 171326], [23109, 58643], [58644, 137315],
  8249. [39822, 58645], [39938, 58647], [39935, 58648], [39948, 58649],
  8250. [58650, 171624], [40404, 58651], [58652, 171959], [58653, 172434],
  8251. [58654, 172459], [58655, 172257], [58656, 172323], [58657, 172511],
  8252. [40318, 58658], [40323, 58659], [58660, 172340], [40462, 58661],
  8253. [40388, 58663], [58665, 172435], [58666, 172576], [58667, 137531],
  8254. [58668, 172595], [40249, 58669], [58670, 172217], [58671, 172724],
  8255. [40592, 58672], [40597, 58673], [40606, 58674], [40610, 58675],
  8256. [19764, 58676], [40618, 58677], [40623, 58678], [58679, 148324],
  8257. [40641, 58680], [15200, 58681], [14821, 58682], [15645, 58683],
  8258. [20274, 58684], [14270, 58685], [58686, 166955], [40706, 58687],
  8259. [40712, 58688], [19350, 58689], [37924, 58690], [58691, 159138],
  8260. [40727, 58692, 60836], 0, [40761, 58694], [22175, 58695], [22154, 58696],
  8261. [40773, 58697], [39352, 58698], [58699, 168075], [38898, 58700],
  8262. [33919, 58701], 0, [40809, 58703], [31452, 58704], [40846, 58705],
  8263. [29206, 58706], [19390, 58707], [58708, 149877], [58709, 149947],
  8264. [29047, 58710], [58711, 150008], [58712, 148296], [58713, 150097],
  8265. [29598, 58714], [58715, 166874], [58716, 137466], [31135, 58717],
  8266. [58718, 166270], [58719, 167478], [37737, 58720], [37875, 58721],
  8267. [58722, 166468], [37612, 58723], [37761, 58724], [37835, 58725],
  8268. [58726, 166252], [58727, 148665], [29207, 58728], [16107, 58729],
  8269. [30578, 58730], [31299, 58731], [28880, 58732], [58733, 148595],
  8270. [58734, 148472], [29054, 58735], [58736, 137199], [28835, 58737],
  8271. [58738, 137406], [58739, 144793], [16071, 58740], [58741, 137349],
  8272. [58742, 152623], [58743, 137208], [14114, 58744], [58745, 136955],
  8273. [58746, 137273], [14049, 58747], [58748, 137076], [58749, 137425],
  8274. [58750, 155467], [14115, 58751], [58752, 136896], [22363, 58753],
  8275. [58754, 150053], [58755, 136190], [58756, 135848], [58757, 136134],
  8276. [58758, 136374], [34051, 58759, 58761], [58760, 145062], 0, [33877, 58762],
  8277. [58763, 149908], [58764, 160101], [58765, 146993], [58766, 152924],
  8278. [58767, 147195], [58768, 159826], [17652, 58769], [58770, 145134],
  8279. [58771, 170397], [58772, 159526], [26617, 58773], [14131, 58774],
  8280. [15381, 58775], [15847, 58776], [22636, 58777], [58778, 137506],
  8281. [26640, 58779], [16471, 58780], [58781, 145215], [58782, 147681],
  8282. [58783, 147595], [58784, 147727], [58785, 158753], [21707, 58786],
  8283. [22174, 58787], [58788, 157361], [22162, 58789], [58790, 135135],
  8284. [58791, 134056], [58792, 134669], 0, [58794, 166675], [37788, 58795],
  8285. [20216, 58796], [20779, 58797], [14361, 58798], [58799, 148534],
  8286. [20156, 58800], [58801, 132197], 0, [20299, 58803], [20362, 58804],
  8287. [58805, 153169], [23144, 58806], [58807, 131499], [58808, 132043],
  8288. [14745, 58809], [58810, 131850], [58811, 132116], [13365, 58812],
  8289. [20265, 58813], [58814, 131776], [58815, 167603], [58816, 131701],
  8290. [35546, 58817], [58818, 131596], [20120, 58819], [20685, 58820],
  8291. [20749, 58821], [20386, 58822], [20227, 58823], [58824, 150030],
  8292. [58825, 147082], [20290, 58826], [20526, 58827], [20588, 58828],
  8293. [20609, 58829], [20428, 58830], [20453, 58831], [20568, 58832],
  8294. [20732, 58833], [28278, 58838], [58839, 144789], [58840, 147001],
  8295. [58841, 147135], [28018, 58842], [58843, 137348], [58844, 147081],
  8296. [20904, 58845], [20931, 58846], [58847, 132576], [17629, 58848],
  8297. [58849, 132259], [58850, 132242], [58851, 132241], [36218, 58852],
  8298. [58853, 166556], [58854, 132878], [21081, 58855], [21156, 58856],
  8299. [58857, 133235], [21217, 58858], 0, [18042, 58860], [29068, 58861],
  8300. [58862, 148364], [58863, 134176], [58864, 149932], [58865, 135396],
  8301. [27089, 58866], [58867, 134685], 0, [16094, 58869], [29849, 58870],
  8302. [29716, 58871], [29782, 58872], [29592, 58873], [19342, 58874],
  8303. [58875, 150204], [58876, 147597], [21456, 58877], [13700, 58878],
  8304. [29199, 58879], [58880, 147657], [21940, 58881], [58882, 131909],
  8305. [21709, 58883], [58884, 134086], [22301, 58885], [37469, 58886],
  8306. [38644, 58887], [22493, 58889], [22413, 58890], [22399, 58891],
  8307. [13886, 58892], [22731, 58893], [23193, 58894], [58895, 166470],
  8308. [58896, 136954], [58897, 137071], [58898, 136976], [23084, 58899],
  8309. [22968, 58900], [23166, 58902], [23247, 58903], [23058, 58904],
  8310. [58905, 153926], [58906, 137715], [58907, 137313], [58908, 148117],
  8311. [14069, 58909], [27909, 58910], [29763, 58911], [23073, 58912],
  8312. [58913, 155267], [23169, 58914], [58915, 166871], [58916, 132115],
  8313. [37856, 58917], [29836, 58918], [58919, 135939], [28933, 58920],
  8314. [18802, 58921], [37896, 58922], [58923, 166395], [37821, 58924],
  8315. [14240, 58925], [23582, 58926], [23710, 58927], [24158, 58928],
  8316. [24136, 58929], [58930, 137622], [58931, 137596], [58932, 146158],
  8317. [24269, 58933], [23375, 58934], [58935, 137475], [58936, 137476],
  8318. [14081, 58937], [58938, 137376], [14045, 58939], [58940, 136958],
  8319. [14035, 58941], [33066, 58942], [58943, 166471], [58944, 138682],
  8320. [58945, 144498], [58946, 166312], [24332, 58947, 60916], [24334, 58948],
  8321. [58949, 137511], [58950, 137131], [23147, 58951], [58952, 137019],
  8322. [23364, 58953], [58955, 161277], [34912, 58956], [24702, 58957],
  8323. [58958, 141408], [58959, 140843], [24539, 58960], [16056, 58961],
  8324. [58962, 140719], [58963, 140734], [58964, 168072], [58965, 159603],
  8325. [25024, 58966], [58967, 131134], [58968, 131142], [58969, 140827],
  8326. [24985, 58970], [24984, 58971], [24693, 58972], [58973, 142491],
  8327. [58974, 142599], [58975, 149204], [58976, 168269], [25713, 58977],
  8328. [58978, 149093], [58979, 142186], [14889, 58980], [58981, 142114],
  8329. [58982, 144464], [58983, 170218], [58984, 142968], [25399, 58985],
  8330. [25782, 58987], [25393, 58988], [25553, 58989], [58990, 149987],
  8331. [58991, 142695], [25252, 58992], [58993, 142497], [25659, 58994],
  8332. [25963, 58995], [26994, 58996], [15348, 58997], [58998, 143502],
  8333. [58999, 144045], [59000, 149897], [59001, 144043], [21773, 59002],
  8334. [59003, 144096], [59004, 137433], [59005, 169023], [26318, 59006],
  8335. [59007, 144009], [59008, 143795], [15072, 59009], [59011, 152964],
  8336. [59012, 166690], [59013, 152975], [59014, 136956], [59015, 152923],
  8337. [59016, 152613], [30958, 59017], [59018, 143619], [59019, 137258],
  8338. [59020, 143924], [13412, 59021], [59022, 143887], [59023, 143746],
  8339. [59024, 148169], [26254, 59025], [59026, 159012], [26219, 59027],
  8340. [19347, 59028], [26160, 59029], [59030, 161904], [59031, 138731],
  8341. [26211, 59032], [59033, 144082], [59034, 144097], [26142, 59035],
  8342. [59036, 153714], [14545, 59037], [59038, 145466], [59039, 145340],
  8343. [15257, 59040], [59041, 145314], [59042, 144382], [29904, 59043],
  8344. [15254, 59044], [59046, 149034], [26806, 59047], 0, [15300, 59049],
  8345. [27326, 59050], [59052, 145365], [59053, 148615], [27187, 59054],
  8346. [27218, 59055], [27337, 59056], [27397, 59057], [59058, 137490],
  8347. [25873, 59059], [26776, 59060], [27212, 59061], [15319, 59062],
  8348. [27258, 59063], [27479, 59064], [59065, 147392], [59066, 146586],
  8349. [37792, 59067], [37618, 59068], [59069, 166890], [59070, 166603],
  8350. [37513, 59071], [59072, 163870], [59073, 166364], [37991, 59074],
  8351. [28069, 59075], [28427, 59076], 0, [59079, 147327], [15759, 59080],
  8352. [28164, 59081], [59082, 147516], [23101, 59083], [28170, 59084],
  8353. [22599, 59085], [27940, 59086], [30786, 59087], [28987, 59088],
  8354. [59089, 148250], [59090, 148086], [28913, 59091], [29264, 59092, 61085],
  8355. [29319, 59093], [29332, 59094], [59095, 149391], [59096, 149285],
  8356. [20857, 59097], [59098, 150180], [59099, 132587], [29818, 59100],
  8357. [59101, 147192], [59102, 144991], [59103, 150090], [59104, 149783],
  8358. [59105, 155617], [16134, 59106], [16049, 59107], [59108, 150239],
  8359. [59109, 166947], [59110, 147253], [24743, 59111], [16115, 59112],
  8360. [29900, 59113], [29756, 59114], [37767, 59115], [29751, 59116],
  8361. [17567, 59117], [59118, 159210], [17745, 59119], [30083, 59120],
  8362. [16227, 59121], [59122, 150745], [59123, 150790], [16216, 59124],
  8363. [30037, 59125], [30323, 59126], [59127, 173510], 0, [29800, 59129, 61070],
  8364. [59130, 166604], [59131, 149931], [59132, 149902], [15099, 59133],
  8365. [15821, 59134], [59135, 150094], [16127, 59136], [59137, 149957],
  8366. [59138, 149747], [37370, 59139], [22322, 59140], [37698, 59141],
  8367. [59142, 166627], [59143, 137316], [20703, 59144], [59145, 152097],
  8368. [59146, 152039], [30584, 59147], [59148, 143922], [30478, 59149],
  8369. [30479, 59150], [30587, 59151], [59152, 149143], [59153, 145281],
  8370. [14942, 59154], [59155, 149744], [29752, 59156], [29851, 59157],
  8371. [16063, 59158], [59159, 150202], [59160, 150215], [16584, 59161],
  8372. [59162, 150166], [59163, 156078], [37639, 59164], [59165, 152961],
  8373. [30750, 59166], [30861, 59167], [30856, 59168], [30930, 59169],
  8374. [29648, 59170], [31065, 59171], [59172, 161601], [59173, 153315],
  8375. [16654, 59174], 0, 0, [31141, 59177], [27181, 59178], [59179, 147194],
  8376. [31290, 59180], [31220, 59181], [16750, 59182], [59183, 136934],
  8377. [16690, 59184], [37429, 59185], [31217, 59186], [59187, 134476],
  8378. [59188, 149900], [59189, 131737], [59190, 146874], [59191, 137070],
  8379. [13719, 59192], [21867, 59193], [13680, 59194], [13994, 59195],
  8380. [59196, 131540], [59197, 134157], [31458, 59198], [23129, 59199],
  8381. [59200, 141045], [59201, 154287], [59202, 154268], [23053, 59203],
  8382. [59204, 131675], [30960, 59205], [23082, 59206], [59207, 154566],
  8383. [31486, 59208], [16889, 59209], [31837, 59210], [31853, 59211],
  8384. [16913, 59212], [59213, 154547], [59214, 155324], [59215, 155302],
  8385. [31949, 59216], [59217, 150009], [59218, 137136], [31886, 59219],
  8386. [31868, 59220], [31918, 59221], [27314, 59222], [32220, 59223],
  8387. [32263, 59224], [32211, 59225], [32590, 59226], [59227, 156257],
  8388. [59228, 155996], [59229, 162632], [32151, 59230], [59231, 155266],
  8389. [17002, 59232], [59233, 158581], [59234, 133398], [26582, 59235],
  8390. [59236, 131150], [59237, 144847], [22468, 59238], [59239, 156690],
  8391. [59240, 156664], [32733, 59242], [31527, 59243], [59244, 133164],
  8392. [59245, 154345], [59246, 154947], [31500, 59247], [59248, 155150],
  8393. [39398, 59249], [34373, 59250], [39523, 59251], [27164, 59252],
  8394. [59253, 144447], [59255, 150007], [59256, 157101], [39455, 59257],
  8395. [59258, 157088], 0, [59260, 160039], [59261, 158929], [17642, 59262],
  8396. [33079, 59263], [17410, 59264], [32966, 59265], [33033, 59266],
  8397. [33090, 59267], [59268, 157620], [39107, 59269], [59270, 158274],
  8398. [33378, 59271], [33381, 59272], [59273, 158289], [33875, 59274],
  8399. [59275, 159143], [34320, 59276], [59277, 160283], [23174, 59278],
  8400. [16767, 59279], [59280, 137280], [23339, 59281], [59282, 137377],
  8401. [23268, 59283], [59284, 137432], [34464, 59285], [59286, 195004],
  8402. [59287, 146831], [34861, 59288], [59289, 160802], [23042, 59290],
  8403. [34926, 59291], [20293, 59292], [34951, 59293], [35007, 59294],
  8404. [35046, 59295], [35173, 59296], [35149, 59297], [59298, 153219],
  8405. [35156, 59299], [59300, 161669], [59301, 161668], [59302, 166901],
  8406. [59303, 166873], [59304, 166812], [59305, 166393], [16045, 59306],
  8407. [33955, 59307], [18165, 59308], [18127, 59309], [14322, 59310],
  8408. [35389, 59311], [35356, 59312], [59313, 169032], [24397, 59314],
  8409. [37419, 59315], [59316, 148100], [26068, 59317], [28969, 59318],
  8410. [28868, 59319], [59320, 137285], [40301, 59321], [35999, 59322],
  8411. [36073, 59323], [59324, 163292], [22938, 59325], [30659, 59326],
  8412. [23024, 59327], [14036, 59329], [36394, 59330], [36519, 59331],
  8413. [59332, 150537], [36656, 59333], [36682, 59334], [17140, 59335],
  8414. [27736, 59336], [28603, 59337], [59338, 140065], [18587, 59339],
  8415. [28537, 59340], [28299, 59341], [59342, 137178], [39913, 59343],
  8416. [14005, 59344], [59345, 149807], [37051, 59346], 0, [21873, 59348],
  8417. [18694, 59349], [37307, 59350], [37892, 59351], [59352, 166475],
  8418. [16482, 59353], [59354, 166652], [37927, 59355], [59356, 166941],
  8419. [59357, 166971], [34021, 59358], [35371, 59359], [38297, 59360],
  8420. [38311, 59361], [38295, 59362], [38294, 59363], [59364, 167220],
  8421. [29765, 59365], [16066, 59366], [59367, 149759], [59368, 150082],
  8422. [59369, 148458], [16103, 59370], [59371, 143909], [38543, 59372],
  8423. [59373, 167655], [59374, 167526], [59375, 167525], [16076, 59376],
  8424. [59377, 149997], [59378, 150136], [59379, 147438], [29714, 59380],
  8425. [29803, 59381], [16124, 59382], [38721, 59383], [59384, 168112],
  8426. [26695, 59385], [18973, 59386], [59387, 168083], [59388, 153567], 0,
  8427. [37736, 59390], [59391, 166281], [59392, 166950], [59393, 166703],
  8428. [59394, 156606], [37562, 59395], [23313, 59396], [35689, 59397],
  8429. [18748, 59398], [29689, 59399], [59400, 147995], [38811, 59401], 0,
  8430. [39224, 59403], [59404, 134950], [24001, 59405], [59406, 166853],
  8431. [59407, 150194], [38943, 59408], [59409, 169178], [37622, 59410],
  8432. [59411, 169431], [37349, 59412], [17600, 59413], [59414, 166736],
  8433. [59415, 150119], [59416, 166756], [39132, 59417], [59418, 166469],
  8434. [16128, 59419], [37418, 59420], [18725, 59421], [33812, 59422],
  8435. [39227, 59423], [39245, 59424], [59425, 162566], [15869, 59426], 0,
  8436. [19311, 59428], [39338, 59429], [39516, 59430], [59431, 166757],
  8437. [59432, 153800], [27279, 59433], [39457, 59434], [23294, 59435],
  8438. [39471, 59436], [59437, 170225], [19344, 59438], [59439, 170312],
  8439. [39356, 59440], [19389, 59441], [19351, 59442], [37757, 59443],
  8440. [22642, 59444], [59445, 135938], [22562, 59446], [59447, 149944],
  8441. [59448, 136424], [30788, 59449], [59450, 141087], [59451, 146872],
  8442. [26821, 59452], [15741, 59453], [37976, 59454], [14631, 59455],
  8443. [24912, 59456], [59457, 141185], [59458, 141675], [24839, 59459],
  8444. [40015, 59460], [40019, 59461], [40059, 59462], [39989, 59463],
  8445. [39952, 59464], [39807, 59465], [39887, 59466], [59467, 171565],
  8446. [39839, 59468], [59469, 172533], [59470, 172286], [40225, 59471],
  8447. [19630, 59472], [59473, 147716], [40472, 59474], [19632, 59475],
  8448. [40204, 59476], [59477, 172468], [59478, 172269], [59479, 172275],
  8449. [59480, 170287], [40357, 59481], [33981, 59482], [59483, 159250],
  8450. [59484, 159711], [59485, 158594], [34300, 59486], [17715, 59487],
  8451. [59488, 159140], [59489, 159364], [59490, 159216], [33824, 59491],
  8452. [34286, 59492], [59493, 159232], [59494, 145367], [59495, 155748],
  8453. [31202, 59496], [59497, 144796], [59498, 144960], [59500, 149982],
  8454. [15714, 59501], [37851, 59502], [37566, 59503], [37704, 59504],
  8455. [59505, 131775], [30905, 59506], [37495, 59507], [37965, 59508],
  8456. [20452, 59509], [13376, 59510], [36964, 59511], [59512, 152925],
  8457. [30781, 59513], [30804, 59514], [30902, 59515], [30795, 59516],
  8458. [59517, 137047], [59518, 143817], [59519, 149825], [13978, 59520],
  8459. [20338, 59521], [28634, 59522], [28633, 59523], 0, [28702, 59524, 59525],
  8460. [21524, 59526], [59527, 147893], [22459, 59528], [22771, 59529],
  8461. [22410, 59530], [40214, 59531], [22487, 59532], [28980, 59533],
  8462. [13487, 59534], [59535, 147884], [29163, 59536], [59537, 158784],
  8463. [59538, 151447], 0, [59540, 137141], [59541, 166473], [24844, 59542],
  8464. [23246, 59543], [23051, 59544], [17084, 59545], [59546, 148616],
  8465. [14124, 59547], [19323, 59548], [59549, 166396], [37819, 59550],
  8466. [37816, 59551], [59552, 137430], [59553, 134941], [33906, 59554],
  8467. [59555, 158912], [59556, 136211], [59557, 148218], [59558, 142374],
  8468. [59559, 148417], [22932, 59560], [59561, 146871], [59562, 157505],
  8469. [32168, 59563], [59564, 155995], [59565, 155812], [59566, 149945],
  8470. [59567, 149899], [59568, 166394], [37605, 59569], [29666, 59570],
  8471. [16105, 59571], [29876, 59572], [59573, 166755], [59574, 137375],
  8472. [16097, 59575], [59576, 150195], [27352, 59577], [29683, 59578],
  8473. [29691, 59579], [16086, 59580], [59581, 150078], [59582, 150164],
  8474. [59583, 137177], [59584, 150118], [59585, 132007], [59586, 136228],
  8475. [59587, 149989], [29768, 59588], [59589, 149782], [28837, 59590],
  8476. [59591, 149878], [37508, 59592], [29670, 59593], [37727, 59594],
  8477. [59595, 132350], [37681, 59596], [59597, 166606], [59598, 166422],
  8478. [37766, 59599], [59600, 166887], [59601, 153045], [18741, 59602],
  8479. [59603, 166530], [29035, 59604], [59605, 149827], [59606, 134399],
  8480. [22180, 59607], [59608, 132634], [59609, 134123], [59610, 134328],
  8481. [21762, 59611], [31172, 59612], [59613, 137210], [32254, 59614],
  8482. [59615, 136898], [59616, 150096], [59617, 137298], [17710, 59618],
  8483. [37889, 59619], [14090, 59620], [59621, 166592], [59622, 149933],
  8484. [22960, 59623], [59624, 137407], [59625, 137347], [59626, 160900],
  8485. [23201, 59627], [14050, 59628], [59629, 146779], [14000, 59630],
  8486. [37471, 59631], [23161, 59632], [59633, 166529], [59634, 137314],
  8487. [37748, 59635], [15565, 59636], [59637, 133812], [19094, 59638],
  8488. [14730, 59639], [20724, 59640], [15721, 59641], [15692, 59642],
  8489. [59643, 136092], [29045, 59644], [17147, 59645], [59646, 164376],
  8490. [28175, 59647], [59648, 168164], [17643, 59649], [27991, 59650],
  8491. [59651, 163407], [28775, 59652], [27823, 59653], [15574, 59654],
  8492. [59655, 147437], [59656, 146989], [28162, 59657], [28428, 59658],
  8493. [15727, 59659], [59660, 132085], [30033, 59661], [14012, 59662],
  8494. [13512, 59663], [18048, 59664], [16090, 59665], [18545, 59666],
  8495. [22980, 59667], [37486, 59668], [18750, 59669], [36673, 59670],
  8496. [59671, 166940], [59672, 158656], [22546, 59673], [22472, 59674],
  8497. [14038, 59675], [59676, 136274], [28926, 59677], [59678, 148322],
  8498. [59679, 150129], [59680, 143331], [59681, 135856], [59682, 140221],
  8499. [26809, 59683], [26983, 59684], [59685, 136088], [59686, 144613],
  8500. [59687, 162804], [59688, 145119], [59689, 166531], [59690, 145366],
  8501. [59691, 144378], [59692, 150687], [27162, 59693], [59694, 145069],
  8502. [59695, 158903], [33854, 59696], [17631, 59697], [17614, 59698],
  8503. [59699, 159014], [59700, 159057], [59701, 158850], [59702, 159710], 0, 0,
  8504. [33597, 59705], [59706, 137018], [33773, 59707], [59708, 158848],
  8505. [59709, 159827], [59710, 137179], [22921, 59711], [23170, 59712],
  8506. [59713, 137139], [23137, 59714], [23153, 59715], [59716, 137477],
  8507. [59717, 147964], [14125, 59718], [23023, 59719], [59720, 137020],
  8508. [14023, 59721], [29070, 59722], [37776, 59723], [26266, 59724],
  8509. [59725, 148133], [23150, 59726], [23083, 59727], [59728, 148115],
  8510. [27179, 59729], [59730, 147193], [59731, 161590], [59732, 148571],
  8511. [59733, 148170], [28957, 59734], [59735, 148057], [59736, 166369],
  8512. [20400, 59737], [59738, 159016], [23746, 59739], [59740, 148686],
  8513. [59741, 163405], [59742, 148413], [27148, 59743], [59744, 148054],
  8514. [59745, 135940], 0, [28979, 59747], [59748, 148457], [15781, 59749],
  8515. [27871, 59750], [59751, 194597], [23019, 59754], [24412, 59757],
  8516. [59764, 144128], [31955, 59776], [59783, 162548], [59786, 153334],
  8517. [59790, 162584], [36972, 59791], [33270, 59795], [30476, 59797],
  8518. [27810, 59799], [22269, 59800], [22633, 59828], [26465, 59832],
  8519. [23646, 59838], [22770, 59841], [28857, 59843], [26627, 59853],
  8520. [36795, 59859], [36796, 59861], [20001, 59871], [31545, 59898],
  8521. [15820, 59902], [29482, 57990, 59909], [30048, 59912], [22586, 59920],
  8522. [33446, 59932], [27018, 59940], [24803, 59944], [20206, 59984],
  8523. [39364, 60002], [40639, 60023], [21249, 60025], [26528, 60038],
  8524. [24808, 60046], [20916, 60053], [31363, 60064], [39994, 60075],
  8525. [31432, 60093], [26906, 60098], [22956, 60100], [22592, 60102],
  8526. [21610, 60114], [24807, 60123], [22138, 60125], [26965, 60132],
  8527. [39983, 60133], [34725, 60134], [23584, 60141], [24075, 60143],
  8528. [26398, 60147], [33965, 60157], [35713, 60161], [20088, 60166],
  8529. [25283, 60176], [26709, 60180], 0, [33533, 60190], [35237, 60194],
  8530. [36768, 60196], [38840, 60198], [38983, 60200], [39613, 60201],
  8531. [24497, 60218], [26184, 60219], [26303, 60220], [60221, 162425], 0,
  8532. [60225, 149946], 0, 0, [60230, 131910], [26382, 60232], [26904, 60233],
  8533. [60235, 161367], [60236, 155618], [60239, 161278], [60240, 139418],
  8534. [18640, 60241], [19128, 60242], [60244, 166554], [60247, 147515],
  8535. [60250, 150085], [60251, 132554], [20946, 60252], [60253, 132625],
  8536. [22943, 60254], [60255, 138920], [15294, 60256], [60257, 146687],
  8537. [14747, 60262], [60264, 165352], [60265, 170441], [14178, 60266],
  8538. [60267, 139715], [35678, 60268], [60269, 166734], 0, [29193, 60274],
  8539. [60276, 134264], [60280, 132985], [36570, 60281], [21135, 60283],
  8540. [29041, 60285], [60288, 147274], [60289, 150183], [21948, 60290],
  8541. [60293, 158546], [13427, 60295], [60297, 161330], [18200, 60299],
  8542. [60303, 149823], [20582, 60305], [13563, 60306], [60307, 144332], 0,
  8543. [18300, 60310], [60311, 166216], [60315, 138640], 0, [60320, 162834],
  8544. [36950, 60321], [60323, 151450], [35682, 60324], [23899, 60327],
  8545. [60328, 158711], 0, [60331, 137500], [35562, 60332], [60333, 150006],
  8546. [60335, 147439], [19392, 60337], [60340, 141083], [37989, 60341],
  8547. [60342, 153569], [24981, 60343], [23079, 60344], [60345, 194765], 0,
  8548. [60348, 148769], [20074, 60350], [60351, 149812], [38486, 60352],
  8549. [28047, 60353], [60354, 158909], [35191, 60356], [60359, 156689], 0,
  8550. [31554, 60363], [60364, 168128], [60365, 133649], 0, [31301, 60369],
  8551. [39462, 60372], [13919, 60374], [60375, 156777], [60376, 131105],
  8552. [31107, 60377], [23852, 60380], [60381, 144665], 0, [18128, 60384],
  8553. [30011, 60386], [34917, 60387], [22710, 60389], [14108, 60390],
  8554. [60391, 140685], [15444, 60394], [37505, 60397], [60398, 139642],
  8555. [37680, 60400], [60402, 149968], [27705, 60403], [60406, 134904],
  8556. [34855, 60407], [35061, 60408], [60409, 141606], [60410, 164979],
  8557. [60411, 137137], [28344, 60412], [60413, 150058], [60414, 137248],
  8558. [14756, 60415], 0, 0, [17727, 60419], [26294, 60420], [60421, 171181],
  8559. [60422, 170148], [35139, 60423], [16607, 60427], [60428, 136714],
  8560. [14753, 60429], [60430, 145199], [60431, 164072], [60432, 136133],
  8561. [29101, 60433], [33638, 60434], [60436, 168360], 0, [19639, 60438],
  8562. [60439, 159919], [60440, 166315], [60445, 147834], [31555, 60446],
  8563. [31102, 60447], [28597, 60449], [60450, 172767], [27139, 60451],
  8564. [60452, 164632], [21410, 60453], [60454, 159239], [37823, 60455],
  8565. [26678, 60456], [38749, 59389, 60457], [60458, 164207], [60460, 158133],
  8566. [60461, 136173], [60462, 143919], [23941, 60464], [60465, 166960],
  8567. [22293, 60467], [38947, 60468], [60469, 166217], [23979, 60470],
  8568. [60471, 149896], [26046, 60472], [27093, 60473], [21458, 60474],
  8569. [60475, 150181], [60476, 147329], [15377, 60477], [26422, 60478],
  8570. [60482, 139169], [13770, 60490], [18682, 60493], 0, [30728, 60496],
  8571. [37461, 60497], [17394, 60499], [17375, 60501], [23032, 60505], 0,
  8572. [22155, 60518], [60520, 169449], [36882, 60541], [21953, 60546],
  8573. [17673, 60551], [32383, 60552], [28502, 60553], [27313, 60554],
  8574. [13540, 60556], [60558, 161949], [14138, 60559], 0, [60562, 163876],
  8575. [60565, 162366], [15851, 60567], [60569, 146615], [60574, 156248],
  8576. [22207, 60575], [36366, 60577], [23405, 60578], [25566, 60581], 0,
  8577. [25904, 60585], [22061, 60586], [21530, 60588], [60591, 171416],
  8578. [19581, 60592], [22050, 60593], [22046, 60594], [32585, 60595],
  8579. [22901, 60597], [60598, 146752], [34672, 60599], [33047, 60604],
  8580. [40286, 60605], [36120, 60606], [30267, 60607], [40005, 60608],
  8581. [30286, 60609], [30649, 60610], [37701, 60611], [21554, 60612],
  8582. [33096, 60613], [33527, 60614], [22053, 60615], [33074, 60616],
  8583. [33816, 60617], [32957, 60618], [21994, 60619], [31074, 60620],
  8584. [22083, 60621], [21526, 60622], [60623, 134813], [13774, 60624],
  8585. [22021, 57509, 60625], [22001, 60626], [26353, 60627], [60628, 164578],
  8586. [13869, 60629], [30004, 60630], [22000, 60631], [21946, 60632],
  8587. [21655, 60633], [21874, 60634], [60635, 134209], [60636, 134294],
  8588. [24272, 57652, 60637], [60639, 134774], [60640, 142434], [60641, 134818],
  8589. [40619, 60642], [32090, 60643], 0, [60645, 135285], [25245, 60646],
  8590. [38765, 60647], [21652, 60648], [36045, 60649], [29174, 60650],
  8591. [37238, 60651], [25596, 60652], [25529, 60653], [25598, 60654],
  8592. [21865, 60655], [60656, 142147], [40050, 60657], [60658, 143027],
  8593. [20890, 60659], [13535, 60660], [60661, 134567], [20903, 60662],
  8594. [21581, 60663], [21790, 60664], [21779, 60665], [30310, 60666],
  8595. [36397, 60667], [60668, 157834], [30129, 60669], [32950, 60670],
  8596. [34820, 60671], 0, [35015, 60673], [33206, 60674], [33820, 60675],
  8597. [17644, 60677], [29444, 60678], [33547, 60681], [22139, 60683],
  8598. [37232, 60690], [37384, 60692], [60696, 134905], [29286, 60697],
  8599. [18254, 60699], [60701, 163833], [16634, 60703], [40029, 60704],
  8600. [25887, 60705], [18675, 60707], [60708, 149472], [60709, 171388], 0,
  8601. [60713, 161187], 60715, [60716, 155720], [29091, 60718], [32398, 60719],
  8602. [40272, 60720], [13687, 60723], [27826, 60725], [21351, 60726],
  8603. [14812, 60728], [60731, 149016], [33325, 60734], [21579, 60735], 60739,
  8604. [14930, 60740], [29556, 60742], [60743, 171692], [19721, 60744],
  8605. [39917, 60745], 0, [19547, 60748], [60751, 171998], [33884, 60752],
  8606. [60754, 160434], [25390, 60757], [32037, 60758], [14890, 60761],
  8607. [36872, 60762], [21196, 60763], [15988, 60764], [13946, 60765],
  8608. [17897, 60766], [60767, 132238], [30272, 60768], [23280, 60769],
  8609. [60770, 134838], [30842, 60771], [18358, 60772], [22695, 60773],
  8610. [16575, 60774], [22140, 60775], [39819, 60776], [23924, 60777],
  8611. [30292, 60778], [60779, 173108], [40581, 60780], [19681, 60781], 0,
  8612. [14331, 60783], [24857, 60784], [60786, 148466], 60787, [22109, 60788],
  8613. [60792, 171526], [21044, 60793], [13741, 60795], 0, [40316, 60797],
  8614. [31830, 60798], [39737, 60799], [22494, 60800], [23635, 60802],
  8615. [25811, 60803], [60804, 169168], [60805, 156469], [34477, 60807],
  8616. [60808, 134440], [60811, 134513], 60812, [20990, 60813], [60814, 139023],
  8617. [23950, 60815], [38659, 60816], [60817, 138705], [40577, 60818],
  8618. [36940, 60819], [31519, 60820], [39682, 60821], [23761, 60822],
  8619. [31651, 60823], [25192, 60824], [25397, 60825], [39679, 60826],
  8620. [31695, 60827], [39722, 60828], [31870, 60829], 0, [31810, 60831],
  8621. [31878, 60832], [39957, 60833], [31740, 60834], [39689, 60835], 0, 39982,
  8622. [40794, 60839], [21875, 60840], [23491, 60841], [20477, 60842],
  8623. [40600, 60843], [20466, 60844], [21088, 60845], [21201, 60847],
  8624. [22375, 60848], [20566, 60849], [22967, 60850], [24082, 60851],
  8625. [38856, 60852], [40363, 60853], [36700, 60854], [21609, 60855],
  8626. [38836, 60856], [39232, 60857], [38842, 60858], [21292, 60859],
  8627. [24880, 60860], [26924, 60861], [21466, 60862], [39946, 60863],
  8628. [40194, 60864], [19515, 60865], [38465, 60866], [27008, 60867],
  8629. [20646, 60868], [30022, 60869], [60870, 137069], [39386, 60871],
  8630. [21107, 60872], 60873, [37209, 60874], [38529, 60875], [37212, 60876],
  8631. 60877, [37201, 60878], [60879, 167575], [25471, 60880], [27338, 60882],
  8632. [22033, 60883], [37262, 60884], [30074, 60885], [25221, 60886],
  8633. [29519, 60888], [31856, 60889], [60890, 154657], 60892, [30422, 60894],
  8634. [39837, 60895], [20010, 60896], [60897, 134356], [33726, 60898],
  8635. [34882, 60899], 60900, [23626, 60901], [27072, 60902], 0, 0,
  8636. [21023, 60905], [24053, 60906], [20174, 60907], [27697, 60908],
  8637. [60909, 131570], [20281, 60910], [21660, 60911], 0, [21146, 60913],
  8638. [36226, 60914], [13822, 60915], 0, [13811, 60917], 60918, [27474, 60919],
  8639. [37244, 60920], [40869, 60921], [39831, 60922], [38958, 60923],
  8640. [39092, 60924], [39610, 60925], [40616, 60926], [40580, 60927],
  8641. [31508, 60929], 60930, [27642, 60931], [34840, 60932], [32632, 60933],
  8642. 60934, [22048, 60935], [60936, 173642], [36471, 60937], [40787, 60938],
  8643. 60939, [36308, 60940], [36431, 60941], [40476, 60942], [36353, 60943],
  8644. [25218, 60944], [60945, 164733], [36392, 60946], [36469, 60947],
  8645. [31443, 60948], [31294, 60950], [30936, 60951], [27882, 60952],
  8646. [35431, 60953], [30215, 60954], [40742, 60956], [27854, 60957],
  8647. [34774, 60958], [30147, 60959], [60960, 172722], [30803, 60961],
  8648. [36108, 60963], [29410, 60964], [29553, 60965], [35629, 60966],
  8649. [29442, 60967], [29937, 60968], [36075, 60969], [60970, 150203],
  8650. [34351, 60971], [24506, 60972], [34976, 60973], [17591, 60974], 60975,
  8651. [60977, 159237], 60978, [35454, 60979], [60980, 140571], 60981,
  8652. [24829, 60982], [30311, 60983], [39639, 60984], [40260, 60985],
  8653. [37742, 58859, 60986], [39823, 60987], [34805, 60988], 60989, 0,
  8654. [36087, 60991], [29484, 60992], [38689, 60993], [39856, 60994],
  8655. [13782, 60995], [29362, 60996], [19463, 60997], [31825, 60998],
  8656. [39242, 60999], [24921, 61001], [19460, 61002], [40598, 61003],
  8657. [24957, 61004], 61005, [22367, 61006], [24943, 61007], [25254, 61008],
  8658. [25145, 61009], 0, [14940, 61011], [25058, 61012], [21418, 61013],
  8659. [25444, 61015], [26626, 61016], [13778, 61017], [23895, 61018],
  8660. [36826, 61020], [61021, 167481], 61022, [20697, 61023], [30982, 61025],
  8661. [21298, 61026], [38456, 61027], [61028, 134971], [16485, 61029], 61030,
  8662. [30718, 61031], 61032, [31938, 61033], [61034, 155418], [31962, 61035],
  8663. [31277, 61036], [32870, 61037], [32867, 61038], [32077, 61039],
  8664. [29957, 61040], [29938, 61041], [35220, 61042], [33306, 61043],
  8665. [26380, 61044], [32866, 61045], [61046, 160902], [32859, 61047],
  8666. [29936, 61048], [33027, 61049], [30500, 61050], [35209, 61051],
  8667. [61052, 157644], [30035, 61053], [34729, 61055], [34766, 61056],
  8668. [33224, 61057], [34700, 61058], [35401, 61059], [36013, 61060],
  8669. [35651, 61061], [30507, 61062], [29944, 61063], [34010, 61064],
  8670. [27058, 61066], [36262, 61067], 61068, [35241, 58392, 61069], 0,
  8671. [28089, 61071], [34753, 61072], [61073, 147473], [29927, 61074],
  8672. [15835, 61075], [29046, 61076], [24740, 57702, 61077], [24988, 61078],
  8673. [15569, 61079], 0, [24695, 61081], 61082, [32625, 61083], 0,
  8674. [24809, 61086], [19326, 61087], [57344, 132423], [37595, 57345],
  8675. [57346, 132575], [57347, 147397], [34124, 57348], [17077, 57349],
  8676. [29679, 57350], [20917, 57351], [13897, 57352], [57353, 149826],
  8677. [57354, 166372], [37700, 57355], [57356, 137691], [33518, 57357],
  8678. [57358, 146632], [30780, 57359], [26436, 57360], [25311, 57361],
  8679. [57362, 149811], [57363, 166314], [57364, 131744], [57365, 158643],
  8680. [57366, 135941], [20395, 57367], [57368, 140525], [20488, 57369],
  8681. [57370, 159017], [57371, 162436], [57372, 144896], [57373, 150193],
  8682. [57374, 140563], 0, [57376, 131966], [24484, 57377], [57378, 131968],
  8683. [57379, 131911], [28379, 57380], [57381, 132127], 20702, [20737, 57383],
  8684. [13434, 57384], [20750, 57385], [39020, 57386], [14147, 57387],
  8685. [33814, 57388], [57389, 149924], [57390, 132231], [20832, 57391],
  8686. [57392, 144308], [20842, 57393], [57394, 134143], [57395, 139516],
  8687. [57396, 131813], [57397, 140592], [57398, 132494], [57399, 143923],
  8688. [57400, 137603], [23426, 57401], [34685, 57402], [57403, 132531],
  8689. [57404, 146585], [20914, 57405], [20920, 57406], [40244, 57407],
  8690. [20937, 57408], [20943, 57409], [20945, 57410], [15580, 57411],
  8691. [20947, 57412], [57413, 150182], [20915, 57414], 0, 0, [20973, 57417],
  8692. [33741, 57418], [26942, 57419], [57420, 145197], [24443, 57421],
  8693. [21003, 57422], [21030, 57423], [21052, 57424], [21173, 57425],
  8694. [21079, 57426], [21140, 57427], [21177, 57428], [21189, 57429],
  8695. [31765, 57430], [34114, 57431], [21216, 57432], [34317, 57433],
  8696. [57434, 158483], 0, [57436, 166622], [21833, 57437], [28377, 57438],
  8697. [57439, 147328], [57440, 133460], [57441, 147436], [21299, 57442], 0,
  8698. [57444, 134114], [27851, 57445], [57446, 136998], [26651, 57447],
  8699. [29653, 57448], [24650, 57449], [16042, 57450], [14540, 57451],
  8700. [57452, 136936], [29149, 57453], [17570, 57454], [21357, 57455],
  8701. [21364, 57456], [57457, 165547], [21374, 57458], 0, [57460, 136598],
  8702. [57461, 136723], [30694, 57462], [21395, 57463], [57464, 166555],
  8703. [21408, 57465], [21419, 57466], [21422, 57467], [29607, 57468],
  8704. [57469, 153458], [16217, 57470], [29596, 57471], [21441, 57472],
  8705. [21445, 57473], [27721, 57474], [20041, 57475], [22526, 57476],
  8706. [21465, 57477], [15019, 57478], [57479, 134031], [21472, 57480],
  8707. [57481, 147435], [57482, 142755], [21494, 57483], [57484, 134263],
  8708. [21523, 57485], [28793, 57486], [21803, 57487], [26199, 57488],
  8709. [27995, 57489], [21613, 57490], [57491, 158547], [57492, 134516],
  8710. [21853, 57493], [21647, 57494], [21668, 57495], [18342, 57496],
  8711. [57497, 136973], [57498, 134877], [15796, 57499], [57500, 134477],
  8712. [57501, 166332], [57502, 140952], [21831, 57503], [19693, 57504],
  8713. [21551, 57505], [29719, 57506], [21894, 57507], [21929, 57508], 0,
  8714. [57510, 137431], [57511, 147514], [17746, 57512], [57513, 148533],
  8715. [26291, 57514], [57515, 135348], [22071, 57516], [26317, 57517],
  8716. [57518, 144010], [26276, 57519], 0, [22093, 57521], [22095, 57522],
  8717. [30961, 57523], [22257, 57524], [38791, 57525], [21502, 57526],
  8718. [22272, 57527], [22255, 57528], [22253, 57529], [57530, 166758],
  8719. [13859, 57531], [57532, 135759], [22342, 57533], [57534, 147877],
  8720. [27758, 57535], [28811, 57536], [22338, 57537], [14001, 57538],
  8721. [57539, 158846], [22502, 57540], [57541, 136214], [22531, 57542],
  8722. [57543, 136276], [57544, 148323], [22566, 57545], [57546, 150517], 0,
  8723. [22698, 57548], [13665, 57549], [22752, 57550], [22748, 57551],
  8724. [57552, 135740], [22779, 57553], [23551, 57554], [22339, 57555],
  8725. [57556, 172368], [57557, 148088], [37843, 57558], [13729, 57559],
  8726. [22815, 57560], [26790, 57561], [14019, 57562], [28249, 57563],
  8727. [57564, 136766], [23076, 57565], 0, [57567, 136850], [34053, 57568],
  8728. [22985, 57569], [57570, 134478], [57571, 158849], [57572, 159018],
  8729. [57573, 137180], [23001, 57574], [57575, 137211], [57576, 137138],
  8730. [57577, 159142], [28017, 57578], [57579, 137256], [57580, 136917],
  8731. [23033, 57581], [57582, 159301], [23211, 57583], [23139, 57584],
  8732. [14054, 57585], [57586, 149929], 0, [14088, 57588], [23190, 57589],
  8733. [29797, 57590], [23251, 57591], [57592, 159649], [57593, 140628],
  8734. [57595, 137489], [14130, 57596], [57597, 136888], [24195, 57598],
  8735. [21200, 57599], [23414, 57600], [25992, 57601], [23420, 57602],
  8736. [57603, 162318], [16388, 57604], [18525, 57605], [57606, 131588],
  8737. [23509, 57607], [57609, 137780], [57610, 154060], [57611, 132517],
  8738. [23539, 57612], [23453, 57613], [19728, 57614], [23557, 57615],
  8739. [57616, 138052], [23571, 57617], [29646, 57618], [23572, 57619],
  8740. [57620, 138405], [57621, 158504], [23625, 57622], [18653, 57623],
  8741. [23685, 57624], [23785, 57625], [23791, 57626], [23947, 57627],
  8742. [57628, 138745], [57629, 138807], [23824, 57630], [23832, 57631],
  8743. [23878, 57632], [57633, 138916], [23738, 57634], [24023, 57635],
  8744. [33532, 57636], [14381, 57637], [57638, 149761], [57639, 139337],
  8745. [57640, 139635], [33415, 57641], [14390, 57642], [15298, 57643],
  8746. [24110, 57644], [27274, 57645], 0, 57647, [57648, 148668], [57649, 134355],
  8747. [21414, 57650], [20151, 57651], 0, [21416, 57653], [57654, 137073],
  8748. [24073, 57655], 57656, [57657, 164994], [24313, 57658], [24315, 57659],
  8749. [14496, 57660], [24316, 57661], [26686, 57662], [37915, 57663],
  8750. [24333, 57664], [57665, 131521], [57666, 194708], [15070, 57667],
  8751. [57669, 135994], [24378, 57670], [57671, 157832], [57672, 140240],
  8752. [57674, 140401], [24419, 57675], [57677, 159342], [24434, 57678],
  8753. [37696, 57679], [57680, 166454], [24487, 57681], [23990, 57682],
  8754. [15711, 57683], [57684, 152144], [57685, 139114], [57686, 159992],
  8755. [57687, 140904], [37334, 57688], [57689, 131742], [57690, 166441],
  8756. [24625, 57691], [26245, 57692], [14691, 57694], [15815, 57695],
  8757. [13881, 57696], [22416, 57697], [57698, 141236], [31089, 57699],
  8758. [15936, 57700], [24734, 57701], 0, 0, [57704, 149890], [57705, 149903],
  8759. [57706, 162387], [29860, 57707], [20705, 57708], [23200, 57709],
  8760. [24932, 57710], [24898, 57712], [57713, 194726], [57714, 159442],
  8761. [24961, 57715], [20980, 57716], [57717, 132694], [24967, 57718],
  8762. [23466, 57719], [57720, 147383], [57721, 141407], [25043, 57722],
  8763. [57723, 166813], [57724, 170333], [25040, 57725], [14642, 57726],
  8764. [57727, 141696], [57728, 141505], [24611, 57729], [24924, 57730],
  8765. [25886, 57731], [25483, 57732], [57733, 131352], [25285, 57734],
  8766. [57735, 137072], [25301, 57736], [57737, 142861], [25452, 57738],
  8767. [57739, 149983], [14871, 57740], [25656, 57741], [25592, 57742],
  8768. [57743, 136078], [57744, 137212], [28554, 57746], [57747, 142902], 0,
  8769. [57750, 153373], [25825, 57751], [25829, 57752], [38011, 57753],
  8770. [14950, 57754], [25658, 57755], [14935, 57756], [25933, 57757],
  8771. [28438, 57758], [57759, 150056], [57760, 150051], [25989, 57761],
  8772. [25965, 57762], [25951, 57763], 0, [26037, 57765], [57766, 149824],
  8773. [19255, 57767], [26065, 57768], [16600, 57769], [57770, 137257], 57771,
  8774. [26083, 57772], [24543, 57773], [57774, 144384], [26136, 57775],
  8775. [57776, 143863], [57777, 143864], [26180, 57778], [57779, 143780],
  8776. [57780, 143781], [26187, 57781], [57782, 134773], [26215, 57783],
  8777. [57784, 152038], [26227, 57785], 0, [57788, 143921], [57789, 165364],
  8778. [57790, 143816], [57791, 152339], [30661, 57792], [57793, 141559],
  8779. [39332, 57794], [26370, 57795], [57796, 148380], [57797, 150049],
  8780. [27130, 57799], [57800, 145346], 0, [26471, 57802], [26466, 57803],
  8781. [57804, 147917], [57805, 168173], [26583, 57806], [17641, 57807],
  8782. [26658, 57808], [28240, 57809], [37436, 57810], [26625, 57811],
  8783. [57812, 144358], [57813, 159136], [26717, 57814], [57815, 144495],
  8784. [27105, 57816], [27147, 57817], [57818, 166623], [26995, 57819],
  8785. [26819, 57820], [57821, 144845], [26881, 57822], [26880, 57823],
  8786. [14849, 57825], [57826, 144956], [15232, 57827], [26540, 57828],
  8787. [26977, 57829], [57830, 166474], [17148, 57831], [26934, 57832],
  8788. [27032, 57833], [15265, 57834], [57835, 132041], [33635, 57836],
  8789. [20624, 57837], [27129, 57838], [57839, 144985], [57840, 139562],
  8790. [27205, 57841], [57842, 145155], [27293, 57843], [15347, 57844],
  8791. [26545, 57845], [27336, 57846], [57847, 168348], [15373, 57848],
  8792. [27421, 57849], [57850, 133411], [24798, 57851, 60308], [27445, 57852],
  8793. [27508, 57853], [57854, 141261], [28341, 57855], [57856, 146139], 0,
  8794. [57858, 137560], [14144, 57859], [21537, 57860], [57861, 146266],
  8795. [27617, 57862], [57863, 147196], [27612, 57864], [27703, 57865],
  8796. [57866, 140427], [57867, 149745], [57868, 158545], [27738, 57869],
  8797. [33318, 57870], [27769, 57871], [57872, 146876], [17605, 57873],
  8798. [57874, 146877], [57875, 147876], [57876, 149772], [57877, 149760],
  8799. [57878, 146633], [14053, 57879], [15595, 57880], [57881, 134450],
  8800. [39811, 57882], [57883, 143865], [57884, 140433], [32655, 57885],
  8801. [26679, 57886], [57887, 159013], [57888, 159137], [57889, 159211],
  8802. [28054, 57890], [27996, 57891], [28284, 57892], [28420, 57893],
  8803. [57894, 149887], [57895, 147589], [57896, 159346], [34099, 57897],
  8804. [57898, 159604], [20935, 57899], 0, 0, [33838, 57902], [57903, 166689], 0,
  8805. [57905, 146991], [29779, 57906], [57907, 147330], [31180, 57908],
  8806. [28239, 57909], [23185, 57910], [57911, 143435], [28664, 57912],
  8807. [14093, 57913], [28573, 57914], [57915, 146992], [28410, 57916],
  8808. [57917, 136343], [57918, 147517], [17749, 57919], [37872, 57920],
  8809. [28484, 57921], [28508, 57922], [15694, 57923], [28532, 57924],
  8810. [57925, 168304], [15675, 57926], [28575, 57927], [57928, 147780],
  8811. [28627, 57929], [57930, 147601], [57931, 147797], [57932, 147513],
  8812. [57933, 147440], [57934, 147380], [57935, 147775], [20959, 57936],
  8813. [57937, 147798], [57938, 147799], [57939, 147776], [57940, 156125],
  8814. [28747, 57941], [28798, 57942], [28839, 57943], 0, [28876, 57945],
  8815. [28885, 57946], [28886, 57947], [28895, 57948], [16644, 57949],
  8816. [15848, 57950], [29108, 57951], [29078, 57952], [57953, 148087],
  8817. [28971, 57954], [28997, 57955], [23176, 57956], [29002, 57957], 0,
  8818. [57960, 148325], [29007, 57961], [37730, 57962], [57963, 148161],
  8819. [28972, 57964], [57965, 148570], [57966, 150055], [57967, 150050],
  8820. [29114, 57968], [57969, 166888], [28861, 57970], [29198, 57971],
  8821. [37954, 57972], [29205, 57973], [22801, 57974], [37955, 57975],
  8822. [29220, 57976], [37697, 57977], [57978, 153093], [29230, 57979],
  8823. [29248, 57980], [57981, 149876], [26813, 57982], [29269, 57983],
  8824. [29271, 57984], [15957, 57985], [57986, 143428], [26637, 57987],
  8825. [28477, 57988], [29314, 57989], 0, [29483, 57991], [57992, 149539],
  8826. [57993, 165931], [18669, 57994], [57995, 165892], [29480, 57996],
  8827. [29486, 57997], [29647, 57998], [29610, 57999], [58000, 134202],
  8828. [58001, 158254], [29641, 58002], [29769, 58003], [58004, 147938],
  8829. [58005, 136935], [58006, 150052], [26147, 58007], [14021, 58008],
  8830. [58009, 149943], [58010, 149901], [58011, 150011], [29687, 58012],
  8831. [29717, 58013], [26883, 58014], [58015, 150054], [29753, 58016],
  8832. [16087, 58018], 0, [58020, 141485], [29792, 58021], [58022, 167602],
  8833. [29767, 58023], [29668, 58024], [29814, 58025], [33721, 58026],
  8834. [29804, 58027], [29812, 58029], [37873, 58030], [27180, 58031],
  8835. [29826, 58032], [18771, 58033], [58034, 150156], [58035, 147807],
  8836. [58036, 150137], [58037, 166799], [23366, 58038], [58039, 166915],
  8837. [58040, 137374], [29896, 58041], [58042, 137608], [29966, 58043],
  8838. [29982, 58045], [58046, 167641], [58047, 137803], [23511, 58048],
  8839. [58049, 167596], [37765, 58050], [30029, 58051], [30026, 58052],
  8840. [30055, 58053], [30062, 58054], [58055, 151426], [16132, 58056],
  8841. [58057, 150803], [30094, 58058], [29789, 58059], [30110, 58060],
  8842. [30132, 58061], [30210, 58062], [30252, 58063], [30289, 58064],
  8843. [30287, 58065], [30319, 58066], 58067, [58068, 156661], [30352, 58069],
  8844. [33263, 58070], [14328, 58071], [58072, 157969], [58073, 157966],
  8845. [30369, 58074], [30373, 58075], [30391, 58076], [30412, 58077],
  8846. [58078, 159647], [33890, 58079], [58080, 151709], [58081, 151933],
  8847. [58082, 138780], [30494, 58083], [30502, 58084], [30528, 58085],
  8848. [25775, 58086], [58087, 152096], [30552, 58088], [58089, 144044],
  8849. [30639, 58090], [58091, 166244], [58092, 166248], [58093, 136897],
  8850. [30708, 58094], 0, [26826, 58098], [30895, 58099], [30919, 58100],
  8851. [30931, 58101], [38565, 58102], [31022, 58103], [58104, 153056],
  8852. [30935, 58105], [31028, 58106], [30897, 58107], [58108, 161292],
  8853. [36792, 58109], [34948, 58110], [58113, 140828], [31110, 58114],
  8854. [35072, 58115], [26882, 58116], [31104, 58117], [58118, 153687],
  8855. [31133, 58119], [58120, 162617], [31036, 58121], [31145, 58122],
  8856. [28202, 58123], [58124, 160038], [16040, 58125], [31174, 58126],
  8857. [58127, 168205], [31188, 58128], 0, [21797, 62526], 0, [62528, 134210],
  8858. [62529, 134421], [62530, 151851], [21904, 62531], [62532, 142534],
  8859. [14828, 62533], [62534, 131905], [36422, 62535], [62536, 150968],
  8860. [62537, 169189], 0, [62539, 164030], [30586, 62540], [62541, 142392],
  8861. [14900, 62542], [18389, 62543], [62544, 164189], [62545, 158194],
  8862. [62546, 151018], [25821, 62547], [62548, 134524], [62549, 135092],
  8863. [62550, 134357], 0, [25741, 62552], [36478, 62553], [62554, 134806], 0,
  8864. [62556, 135012], [62557, 142505], [62558, 164438], [62559, 148691], 0,
  8865. [62561, 134470], [62562, 170573], [62563, 164073], [18420, 62564],
  8866. [62565, 151207], [62566, 142530], [39602, 62567], [14951, 62568],
  8867. [62569, 169460], [16365, 62570], [13574, 62571], [62572, 152263],
  8868. [62573, 169940], 0, [62575, 142660], [40302, 62576], [38933, 62577], 0,
  8869. [17369, 62579], 0, [25780, 62581], [21731, 62582], 0, [62584, 142282], 0,
  8870. [14843, 62586], 0, [62588, 157402], [62589, 157462], [62590, 162208],
  8871. [25834, 62591], [62592, 151634], [62593, 134211], [36456, 62594], 0,
  8872. [62596, 166732], [62597, 132913], 0, [18443, 62599], [62600, 131497],
  8873. [16378, 62601], [22643, 62602], [62603, 142733], 0, [62605, 148936],
  8874. [62606, 132348], [62607, 155799], [62608, 134988], 0, [21881, 62610], 0,
  8875. [17338, 62612], 0, [19124, 62614], [62615, 141926], [62616, 135325],
  8876. [33194, 62617], [39157, 62618], [62619, 134556], [25465, 62620],
  8877. [14846, 62621], [62622, 141173], [36288, 62623], [22177, 62624],
  8878. [25724, 62625], [15939, 62626], 0, [62628, 173569], [62629, 134665],
  8879. [62630, 142031], 0, 0, [62633, 135368], [62634, 145858], [14738, 62635],
  8880. [14854, 62636], [62637, 164507], [13688, 62638], [62639, 155209],
  8881. [62640, 139463], 0, 0, [62643, 142514], [62644, 169760], [13500, 62645],
  8882. [27709, 62646], [62647, 151099], 0, 0, [62650, 161140], [62651, 142987],
  8883. [62652, 139784], [62653, 173659], [62654, 167117], [62655, 134778],
  8884. [62656, 134196], [62683, 161337], [62684, 142286], [62687, 142417],
  8885. [14872, 62689], [62691, 135367], [62693, 173618], [62695, 167122],
  8886. [62696, 167321], [62697, 167114], [38314, 62698], 0, [62706, 161630],
  8887. [28992, 62708], 0, [20822, 62385], 0, [20616, 62487], 0, [13459, 62489],
  8888. [20870, 62491], [24130, 63037], [20997, 62495], [21031, 62436],
  8889. [21113, 62497], 0, [13651, 62504], [21442, 62505], [21343, 62715], 0,
  8890. [21823, 62520], 0, [21976, 59986], [13789, 62722], [22049, 63067], 0,
  8891. [22100, 60044], [60148, 135291], 0, [60153, 135379], 0, [61095, 135934], 0,
  8892. 0, [14265, 60104], [23745, 61099], [23829, 63066], [23894, 63030],
  8893. [14392, 63036], [20097, 62477], [24253, 63038], [14612, 63042],
  8894. [25017, 63050], [25232, 63054], [25368, 63056], [25690, 63063],
  8895. [25745, 62381], [33133, 62709], [33156, 59922], [33171, 59924],
  8896. [26624, 63080], [15292, 63093], [29327, 60517], [29389, 59781], 0,
  8897. [29497, 59785], [30018, 59811], [30172, 59817], [16320, 59818],
  8898. [60278, 151205], [16343, 59820], 0, 30336, [30348, 59824, 151388],
  8899. [16552, 59845], [30777, 59846], [16643, 59855], [31377, 59863],
  8900. [31771, 59876], [31981, 59884], [32659, 62658], [32686, 59892], 0,
  8901. [33535, 59936], [22623, 59981], [34482, 59960], 0, [34699, 59963],
  8902. [35143, 59969], 0, [35369, 59972], 0, [36465, 59988], [60484, 164233],
  8903. [36528, 59990], 0, [37214, 62443], [37260, 62441], [39182, 60051],
  8904. [39196, 60054], 0, 0, [39809, 60066], [40384, 60080], [40339, 60078],
  8905. [40620, 60085], [19857, 60540], 0, 37818, [40571, 60084], [28809, 63148],
  8906. [29512, 59788], 0, [31129, 59858], [36791, 59997], 0, [39234, 60056],
  8907. {s: 193}, 8364, {s: 4}, [12443, 63518], [12444, 63519], [11904, 63520],
  8908. {f: 5, c: 62211}, [62216, 131340], 62217, [62218, 131281], [62219, 131277],
  8909. {f: 2, c: 62220}, [62222, 131275], [62223, 139240], 62224, [62225, 131274],
  8910. {f: 4, c: 62226}, [62230, 131342], {f: 2, c: 62231}, {f: 2, c: 62776},
  8911. [62778, 138177], [62779, 194680], [12205, 38737, 62780], [62781, 131206],
  8912. [20059, 62782], [20155, 62783], [13630, 62784], [23587, 62785],
  8913. [24401, 62786], [24516, 62787], [14586, 62788], [25164, 62789],
  8914. [25909, 62790], [27514, 62791], [27701, 62792], [27706, 62793],
  8915. [28780, 62794], [29227, 62795], [20012, 62796], [29357, 62797],
  8916. [62798, 149737], [32594, 62799], [31035, 62800], [31993, 62801],
  8917. [32595, 62802], [62803, 156266], [13505, 62804], [62806, 156491],
  8918. [32770, 62807], [32896, 62808], [62809, 157202], [62810, 158033],
  8919. [21341, 62811], [34916, 62812], [35265, 62813], [62814, 161970],
  8920. [35744, 62815], [36125, 62816], [38021, 62817], [38264, 62818],
  8921. [38271, 62819], [38376, 62820], [62821, 167439], [38886, 62822],
  8922. [39029, 62823], [39118, 62824], [39134, 62825], [39267, 62826],
  8923. [62827, 170000], [40060, 62828], [40479, 62829], [40644, 62830],
  8924. [27503, 62831], [62832, 63751], [20023, 62833], [62834, 131207],
  8925. [38429, 62835], [25143, 62836], [38050, 62837], [11908, 63521],
  8926. [11910, 63522], [11911, 63523], [11912, 63524], [11914, 63525],
  8927. [11916, 63526], [11917, 63527], [11925, 63528], [11932, 63529],
  8928. [11941, 63531], [11943, 63532], [11946, 63533], [11948, 63534],
  8929. [11950, 63535], [11958, 63536], [11964, 63537], [11966, 63538],
  8930. [11978, 63540], [11980, 63541], [11981, 63542], [11983, 63543],
  8931. [11990, 63544], [11991, 63545], [11998, 63546], [62368, 172969],
  8932. [62369, 135493], [25866, 62371], [20029, 62374], [28381, 62375],
  8933. [40270, 62376], [37343, 62377], [62380, 161589], [20250, 62382],
  8934. [20264, 62383], [20392, 62384], [20852, 62386], [20892, 62387],
  8935. [20964, 62388], [21153, 62389], [21160, 62390], [21307, 62391],
  8936. [21326, 62392], [21457, 62393], [21464, 62394], [22242, 62395],
  8937. [22768, 62396], [22788, 62397], [22791, 62398], [22834, 62399],
  8938. [22836, 62400], [23398, 62401], [23454, 62402], [23455, 62403],
  8939. [23706, 62404], [24198, 62405], [24635, 62406], [25993, 62407],
  8940. [26622, 62408], [26628, 62409], [26725, 62410], [27982, 62411],
  8941. [28860, 62412], [30005, 62413], [32420, 62414], [32428, 62415],
  8942. [32442, 62416], [32455, 62417], [32463, 62418], [32479, 62419],
  8943. [32518, 62420], [32567, 62421], [33402, 62422], [33487, 62423],
  8944. [33647, 62424], [35270, 62425], [35774, 62426], [35810, 62427],
  8945. [36710, 62428], [36711, 62429], [36718, 62430], [29713, 62431],
  8946. [31996, 62432], [32205, 62433], [26950, 62434], [31433, 62435],
  8947. [30904, 62442], [32956, 62444], [36107, 62446], [33014, 62447],
  8948. [62448, 133607], [32927, 62451], [40647, 62452], [19661, 62453],
  8949. [40393, 62454], [40460, 62455], [19518, 62456], [62457, 171510],
  8950. [62458, 159758], [40458, 62459], [62460, 172339], [13761, 62461],
  8951. [28314, 62463], [33342, 62464], [29977, 62465], [18705, 62467],
  8952. [39532, 62468], [39567, 62469], [40857, 62470], [31111, 62471],
  8953. [62472, 164972], [62473, 138698], [62474, 132560], [62475, 142054],
  8954. [20004, 62476], [20096, 62478], [20103, 62479], [20159, 62480],
  8955. [20203, 62481], [20279, 62482], [13388, 62483], [20413, 62484],
  8956. [15944, 62485], [20483, 62486], [13437, 62488], [13477, 62490],
  8957. [22789, 62492], [20955, 62493], [20988, 62494], [20105, 62496],
  8958. [21136, 62498], [21287, 62499], [13767, 62500], [21417, 62501],
  8959. [13649, 62502], [21424, 62503], [21539, 62506], [13677, 62507],
  8960. [13682, 62508], [13953, 62509], [21651, 62510], [21667, 62511],
  8961. [21684, 62512], [21689, 62513], [21712, 62514], [21743, 62515],
  8962. [21784, 62516], [21795, 62517], [21800, 62518], [13720, 62519],
  8963. [13733, 62521], [13759, 62522], [21975, 62523], [13765, 62524],
  8964. [62525, 163204], [16467, 62538], [62551, 135412], [62555, 134155],
  8965. [62574, 161992], [62580, 155813], [62583, 142668], [62585, 135287],
  8966. [62587, 135279], [62595, 139681], [62609, 134550], [16571, 62611],
  8967. [62631, 142537], [22098, 62641], [62642, 134961], [62657, 157724],
  8968. [62659, 135375], [62660, 141315], [62661, 141625], [13819, 62662],
  8969. [62663, 152035], [62664, 134796], [62665, 135053], [62666, 134826],
  8970. [16275, 62667], [62668, 134960], [62669, 134471], [62670, 135503],
  8971. [62671, 134732], [62673, 134827], [62674, 134057], [62675, 134472],
  8972. [62676, 135360], [62677, 135485], [16377, 62678], [62679, 140950],
  8973. [25650, 62680], [62681, 135085], [62682, 144372], [62685, 134526],
  8974. [62686, 134527], [62688, 142421], [62690, 134808], [62692, 134958],
  8975. [62694, 158544], [21708, 62699], [33476, 62700], [21945, 62701],
  8976. [62703, 171715], [39974, 62704], [39606, 62705], [62707, 142830],
  8977. [33004, 62710], [23580, 62711], [62712, 157042], [33076, 62713],
  8978. [14231, 62714], [62716, 164029], [37302, 62717], [62718, 134906],
  8979. [62719, 134671], [62720, 134775], [62721, 134907], [62723, 151019],
  8980. [13833, 62724], [62725, 134358], [22191, 62726], [62727, 141237],
  8981. [62728, 135369], [62729, 134672], [62730, 134776], [62731, 135288],
  8982. [62732, 135496], [62733, 164359], [62734, 136277], [62735, 134777],
  8983. [62736, 151120], [62737, 142756], [23124, 62738], [62739, 135197],
  8984. [62740, 135198], [62741, 135413], [62742, 135414], [22428, 62743],
  8985. [62744, 134673], [62745, 161428], [62746, 164557], [62747, 135093],
  8986. [62748, 134779], [62749, 151934], [14083, 62750], [62751, 135094],
  8987. [62752, 135552], [62753, 152280], [62754, 172733], [62755, 149978],
  8988. [62756, 137274], [62757, 147831], [62758, 164476], [22681, 62759],
  8989. [21096, 62760], [13850, 62761], [62762, 153405], [31666, 62763],
  8990. [23400, 62764], [18432, 62765], [19244, 62766], [40743, 62767],
  8991. [18919, 62768], [39967, 62769], [39821, 62770], [62771, 154484],
  8992. [62772, 143677], [22011, 62773], [13810, 62774], [22153, 62775],
  8993. [23870, 63028], [23880, 63029], [15868, 63031], [14351, 63032],
  8994. [23972, 63033], [23993, 63034], [14368, 63035], [24357, 63039],
  8995. [24451, 63040], [14600, 63041], [14655, 63043], [14669, 63044],
  8996. [24791, 63045], [24893, 63046], [23781, 63047], [14729, 63048],
  8997. [25015, 63049], [25039, 63051], [14776, 63052], [25132, 63053],
  8998. [25317, 63055], [14840, 63057], [22193, 63058], [14851, 63059],
  8999. [25570, 63060], [25595, 63061], [25607, 63062], [14923, 63064],
  9000. [25792, 63065], [40863, 63068], [14999, 63069], [25990, 63070],
  9001. [15037, 63071], [26111, 63072], [26195, 63073], [15090, 63074],
  9002. [26258, 63075], [15138, 63076], [26390, 63077], [15170, 63078],
  9003. [26532, 63079], [15192, 63081], [26698, 63082], [26756, 63083],
  9004. [15218, 63084], [15217, 63085], [15227, 63086], [26889, 63087],
  9005. [26947, 63088], [29276, 63089], [26980, 63090], [27039, 63091],
  9006. [27013, 63092], [27094, 63094], [15325, 63095], [27237, 63096],
  9007. [27252, 63097], [27249, 63098], [27266, 63099], [15340, 63100],
  9008. [27289, 63101], [15346, 63102], [27307, 63103], [27317, 63104],
  9009. [27348, 63105], [27382, 63106], [27521, 63107], [27585, 63108],
  9010. [27626, 63109], [27765, 63110], [27818, 63111], [15563, 63112],
  9011. [27906, 63113], [27910, 63114], [27942, 63115], [28033, 63116],
  9012. [15599, 63117], [28068, 63118], [28081, 63119], [28181, 63120],
  9013. [28184, 63121], [28201, 63122], [28294, 63123], [63124, 166336],
  9014. [28347, 63125], [28386, 63126], [28378, 63127], [40831, 63128],
  9015. [28392, 63129], [28393, 63130], [28452, 63131], [28468, 63132],
  9016. [15686, 63133], [63134, 147265], [28545, 63135], [28606, 63136],
  9017. [15722, 63137], [15733, 63138], [29111, 63139], [23705, 63140],
  9018. [15754, 63141], [28716, 63142], [15761, 63143], [28752, 63144],
  9019. [28756, 63145], [28783, 63146], [28799, 63147], [63149, 131877],
  9020. [17345, 63150], [13809, 63151], [63152, 134872], [13902, 58134],
  9021. [15789, 58172], [58173, 154725], [26237, 58183], [31860, 58188],
  9022. [29837, 58197], [32402, 58215], [17667, 58232], [58260, 151480],
  9023. [58270, 133901], [58277, 158474], [13438, 58311], [58317, 143087],
  9024. [58325, 146613], [58343, 159385], [34673, 58364], [25537, 58385],
  9025. [30583, 58387], [35210, 58390], [58406, 147343], [35660, 58415],
  9026. [58440, 150729], [18730, 58464], [58471, 172052], [58472, 165564],
  9027. [58473, 165121], [15088, 58490], [28815, 58511], [58529, 140922],
  9028. [58637, 158120], [58646, 148043], [26760, 58662], [58664, 139611],
  9029. [40802, 58702], [37830, 58793], [58802, 131967], [37734, 58888],
  9030. [37519, 58901], [34324, 58954], [58986, 173147], [16784, 59010],
  9031. [26511, 59045], [26654, 59048], [14435, 59051], [59077, 149996],
  9032. [15129, 59128], [33942, 59176], [59241, 149858], [14818, 59254],
  9033. [33920, 59259], [17262, 59328], [38769, 59402], [39323, 59427],
  9034. [18733, 59499], [28439, 59703], [59704, 160009], [28838, 59746],
  9035. [59752, 150095], [32357, 59753], [23855, 59755], [15859, 59756],
  9036. [59758, 150109], [59759, 137183], [32164, 59760], [33830, 59761],
  9037. [21637, 59762], [59763, 146170], [59765, 131604], [22398, 59766],
  9038. [59767, 133333], [59768, 132633], [16357, 59769], [59770, 139166],
  9039. [59771, 172726], [28675, 59772], [59773, 168283], [23920, 59774],
  9040. [29583, 59775], [59777, 166489], [59778, 168992], [20424, 59779],
  9041. [32743, 59780], [29456, 59782], [29496, 59784], [29505, 59787],
  9042. [16041, 59789], [29173, 59792], [59793, 149746], [29665, 59794],
  9043. [16074, 59796], [16081, 59798], [29721, 59801], [29726, 59802],
  9044. [29727, 59803], [16098, 59804], [16112, 59805], [16116, 59806],
  9045. [16122, 59807], [29907, 59808], [16142, 59809], [16211, 59810],
  9046. [30061, 59812], [30066, 59813], [30093, 59814], [16252, 59815],
  9047. [30152, 59816], [30285, 59819], [30324, 59821], [16348, 59822],
  9048. [30330, 59823], [29064, 59825], [22051, 59826], [35200, 59827],
  9049. [16413, 59829], [30531, 59830], [16441, 59831], [16453, 59833],
  9050. [13787, 59834], [30616, 59835], [16490, 59836], [16495, 59837],
  9051. [30654, 59839], [30667, 59840], [30744, 59842], [30748, 59844],
  9052. [30791, 59847], [30801, 59848], [30822, 59849], [33864, 59850],
  9053. [59851, 152885], [31027, 59852], [31026, 59854], [16649, 59856],
  9054. [31121, 59857], [31238, 59860], [16743, 59862], [16818, 59864],
  9055. [31420, 59865], [33401, 59866], [16836, 59867], [31439, 59868],
  9056. [31451, 59869], [16847, 59870], [31586, 59872], [31596, 59873],
  9057. [31611, 59874], [31762, 59875], [16992, 59877], [17018, 59878],
  9058. [31867, 59879], [31900, 59880], [17036, 59881], [31928, 59882],
  9059. [17044, 59883], [36755, 59885], [28864, 59886], [59887, 134351],
  9060. [32207, 59888], [32212, 59889], [32208, 59890], [32253, 59891],
  9061. [32692, 59893], [29343, 59894], [17303, 59895], [32800, 59896],
  9062. [32805, 59897], [32814, 59899], [32817, 59900], [32852, 59901],
  9063. [22452, 59903], [28832, 59904], [32951, 59905], [33001, 59906],
  9064. [17389, 59907], [33036, 59908], [33038, 59910], [33042, 59911],
  9065. [33044, 59913], [17409, 59914], [15161, 59915], [33110, 59916],
  9066. [33113, 59917], [33114, 59918], [17427, 59919], [33148, 59921],
  9067. [17445, 59923], [17453, 59925], [33189, 59926], [22511, 59927],
  9068. [33217, 59928], [33252, 59929], [33364, 59930], [17551, 59931],
  9069. [33398, 59933], [33482, 59934], [33496, 59935], [17584, 59937],
  9070. [33623, 59938], [38505, 59939], [33797, 59941], [28917, 59942],
  9071. [33892, 59943], [33928, 59945], [17668, 59946], [33982, 59947],
  9072. [34017, 59948], [34040, 59949], [34064, 59950], [34104, 59951],
  9073. [34130, 59952], [17723, 59953], [34159, 59954], [34160, 59955],
  9074. [34272, 59956], [17783, 59957], [34418, 59958], [34450, 59959],
  9075. [34543, 59961], [38469, 59962], [17926, 59964], [17943, 59965],
  9076. [34990, 59966], [35071, 59967], [35108, 59968], [35217, 59970],
  9077. [59971, 162151], [35384, 59973], [35476, 59974], [35508, 59975],
  9078. [35921, 59976], [36052, 59977], [36082, 59978], [36124, 59979],
  9079. [18328, 59980], [36291, 59982], [18413, 59983], [36410, 59985],
  9080. [22356, 59987], [22005, 59989], [18487, 59991], [36558, 59992],
  9081. [36578, 59993], [36580, 59994], [36589, 59995], [36594, 59996],
  9082. [36801, 59998], [36810, 59999], [36812, 60000], [36915, 60001],
  9083. [18605, 60003], [39136, 60004], [37395, 60005], [18718, 60006],
  9084. [37416, 60007], [37464, 60008], [37483, 60009], [37553, 60010],
  9085. [37550, 60011], [37567, 60012], [37603, 60013], [37611, 60014],
  9086. [37619, 60015], [37620, 60016], [37629, 60017], [37699, 60018],
  9087. [37764, 60019], [37805, 60020], [18757, 60021], [18769, 60022],
  9088. [37911, 60024], [37917, 60026], [37933, 60027], [37950, 60028],
  9089. [18794, 60029], [37972, 60030], [38009, 60031], [38189, 60032],
  9090. [38306, 60033], [18855, 60034], [38388, 60035], [38451, 60036],
  9091. [18917, 60037], [18980, 60039], [38720, 60040], [18997, 60041],
  9092. [38834, 60042], [38850, 60043], [19172, 60045], [39097, 60047],
  9093. [19225, 60048], [39153, 60049], [22596, 60050], [39193, 60052],
  9094. [39223, 60055], [39261, 60057], [39266, 60058], [19312, 60059],
  9095. [39365, 60060], [19357, 60061], [39484, 60062], [39695, 60063],
  9096. [39785, 60065], [39901, 60067], [39921, 60068], [39924, 60069],
  9097. [19565, 60070], [39968, 60071], [14191, 60072], [60073, 138178],
  9098. [40265, 60074], [40702, 60076], [22096, 60077], [40381, 60079],
  9099. [40444, 60081], [38134, 60082], [36790, 60083], [40625, 60086],
  9100. [40637, 60087], [40646, 60088], [38108, 60089], [40674, 60090],
  9101. [40689, 60091], [40696, 60092], [40772, 60094], [60095, 131220],
  9102. [60096, 131767], [60097, 132000], [38083, 60099], [60101, 132311],
  9103. [38081, 60103], [60105, 132565], [60106, 132629], [60107, 132726],
  9104. [60108, 136890], [22359, 60109], [29043, 60110], [60111, 133826],
  9105. [60112, 133837], [60113, 134079], [60115, 194619], [60116, 134091],
  9106. [21662, 60117], [60118, 134139], [60119, 134203], [60120, 134227],
  9107. [60121, 134245], [60122, 134268], [60124, 134285], [60126, 134325],
  9108. [60127, 134365], [60128, 134381], [60129, 134511], [60130, 134578],
  9109. [60131, 134600], [60135, 134660], [60136, 134670], [60137, 134871],
  9110. [60138, 135056], [60139, 134957], [60140, 134771], [60142, 135100],
  9111. [60144, 135260], [60145, 135247], [60146, 135286], [60149, 135304],
  9112. [60150, 135318], [13895, 60151], [60152, 135359], [60154, 135471],
  9113. [60155, 135483], [21348, 60156], [60158, 135907], [60159, 136053],
  9114. [60160, 135990], [60162, 136567], [60163, 136729], [60164, 137155],
  9115. [60165, 137159], [28859, 60167], [60168, 137261], [60169, 137578],
  9116. [60170, 137773], [60171, 137797], [60172, 138282], [60173, 138352],
  9117. [60174, 138412], [60175, 138952], [60177, 138965], [60178, 139029],
  9118. [29080, 60179], [60181, 139333], [27113, 60182], [14024, 60183],
  9119. [60184, 139900], [60185, 140247], [60186, 140282], [60187, 141098],
  9120. [60188, 141425], [60189, 141647], [60191, 141671], [60192, 141715],
  9121. [60193, 142037], [60195, 142056], [60197, 142094], [60199, 142143],
  9122. [60202, 142412], [60204, 142472], [60205, 142519], [60206, 154600],
  9123. [60207, 142600], [60208, 142610], [60209, 142775], [60210, 142741],
  9124. [60211, 142914], [60212, 143220], [60213, 143308], [60214, 143411],
  9125. [60215, 143462], [60216, 144159], [60217, 144350], [60222, 144743],
  9126. [60223, 144883], [60227, 144922], [60228, 145174], [22709, 60231],
  9127. [60234, 146087], [60237, 146961], [60238, 147129], [60243, 147737],
  9128. [60245, 148206], [60246, 148237], [60248, 148276], [60249, 148374],
  9129. [60258, 148484], [60259, 148694], [22408, 60260], [60261, 149108],
  9130. [60263, 149295], [60271, 149522], [60272, 149755], [60273, 150037],
  9131. [60275, 150208], [22885, 60277], [60279, 151430], [60282, 151596],
  9132. [22335, 60284], [60286, 152217], [60287, 152601], [60291, 152646],
  9133. [60292, 152686], [60296, 152895], [60298, 152926], [60300, 152930],
  9134. [60301, 152934], [60302, 153543], [60304, 153693], [60309, 153859],
  9135. [60312, 154286], [60313, 154505], [60314, 154630], [22433, 60316],
  9136. [29009, 60317], [60319, 155906], [60322, 156082], [60325, 156674],
  9137. [60326, 156746], [60330, 156804], [60334, 156808], [60336, 156946],
  9138. [60338, 157119], [60339, 157365], [22201, 60347], [60349, 157436],
  9139. [13848, 60355], [60357, 157593], [60358, 157806], [60360, 157790],
  9140. [60362, 157895], [60366, 157990], [60368, 158009], [60371, 158202],
  9141. [60373, 158253], [60378, 158260], [60379, 158555], [60383, 158621],
  9142. [60385, 158884], [60388, 159150], [60392, 159819], [60393, 160205],
  9143. [60395, 160384], [60396, 160389], [60399, 160395], [60401, 160486],
  9144. [38047, 60404], [60405, 160848], [14009, 60416], [60424, 161740],
  9145. [60425, 161880], [22230, 60426], [60435, 162269], [60441, 162301],
  9146. [60442, 162314], [60443, 162571], [60444, 163174], [60448, 163849],
  9147. [60459, 163875], [60463, 163912], [60466, 163971], [60479, 163984],
  9148. [60480, 164084], [60481, 164142], [60483, 164175], [60485, 164271],
  9149. [60486, 164378], [60487, 164614], [60488, 164655], [60489, 164746],
  9150. [60491, 164968], [60492, 165546], [25574, 60494], [60495, 166230],
  9151. [60498, 166328], [60500, 166375], [60502, 166376], [60503, 166726],
  9152. [60504, 166868], [60506, 166921], [60508, 167877], [60509, 168172],
  9153. [60511, 168208], [60512, 168252], [15863, 60513], [60514, 168286],
  9154. [60515, 150218], [36816, 60516], [60519, 169191], [60521, 169392],
  9155. [60522, 169400], [60523, 169778], [60524, 170193], [60525, 170313],
  9156. [60526, 170346], [60527, 170435], [60528, 170536], [60529, 170766],
  9157. [60530, 171354], [60531, 171419], [32415, 60532], [60533, 171768],
  9158. [60534, 171811], [19620, 60535], [38215, 60536], [60537, 172691],
  9159. [29090, 60538], [60539, 172799], [60542, 173515], [19868, 60543],
  9160. [60544, 134300], [36798, 60545], [36794, 60547], [60548, 140464],
  9161. [36793, 60549], [60550, 150163], [20202, 60555], [60557, 166700],
  9162. [36480, 60560], [60561, 137205], [60563, 166764], [60564, 166809],
  9163. [60566, 157359], [60568, 161365], [60570, 153141], [60571, 153942],
  9164. [20122, 60572], [60573, 155265], [60576, 134765], [60579, 147080],
  9165. [60580, 150686], [60583, 137206], [60584, 137339], [60587, 154698],
  9166. [60589, 152337], [15814, 60590], [60596, 155352], [19996, 60600],
  9167. [60601, 135146], [60602, 134473], [60603, 145082], [60638, 151880],
  9168. [21982, 60644], [34694, 60672], [60676, 135361], [60679, 149254],
  9169. [23440, 60680], [60682, 157843], [60684, 141044], [60685, 163119],
  9170. [60686, 147875], [60687, 163187], [60688, 159440], [60689, 160438],
  9171. [60691, 135641], [60693, 146684], [60694, 173737], [60695, 134828],
  9172. [60698, 138402], [60700, 151490], [60702, 135147], [60706, 142752],
  9173. [60710, 135148], [60711, 134666], [60714, 135149], [60717, 135559],
  9174. [19994, 60721], [19972, 60722], [23309, 60724], [13996, 60727],
  9175. [21373, 60729], [13989, 60730], [22682, 60732], [60733, 150382],
  9176. [22442, 60736], [60737, 154261], [60738, 133497], [60741, 140389],
  9177. [60746, 146686], [60747, 171824], [60749, 151465], [60750, 169374],
  9178. [60753, 146870], [60755, 157619], [60756, 145184], [60759, 147191],
  9179. [60760, 146988], [60785, 143578], [60789, 135849], [22439, 60790],
  9180. [60791, 149859], [60794, 159918], [60801, 137068], [60806, 160100],
  9181. [60809, 159010], [60810, 150242], [39963, 60837], [60838, 149822],
  9182. [15878, 60846], [60881, 159011], [60887, 132092], [60891, 146685],
  9183. [60893, 149785], [22394, 60904], [21722, 60912], [29050, 60928],
  9184. [60949, 150135], [60955, 166490], [60962, 194624], [60976, 137275],
  9185. [61000, 155993], [61014, 144373], [61019, 166850], [61024, 138566],
  9186. [61054, 159441], [13877, 61065], [61084, 166701], [21024, 61088],
  9187. [15384, 61089], [61090, 146631], [61091, 155351], [61092, 161366],
  9188. [61093, 152881], [61094, 137540], [61096, 170243], [61097, 159196],
  9189. [61098, 159917], [61100, 156077], [61101, 166415], [61102, 145015],
  9190. [61103, 131310], [61104, 157766], [61105, 151310], [17762, 61106],
  9191. [23327, 61107], [61108, 156492], [40784, 61109], [40614, 61110],
  9192. [61111, 156267], [20962, 57415], [21314, 57416], [26285, 57520],
  9193. [22620, 57547], [21843, 57566], [15749, 57594], [24928, 57608],
  9194. [18606, 57668], [38845, 57676], [57693, 137335], [24755, 57703],
  9195. [33828, 57711], [38932, 57748], [57749, 147596], [57764, 143486],
  9196. [57787, 138813], [15147, 57798], [15666, 57824], [57857, 132021],
  9197. [28801, 57944], [23708, 57959], [58017, 132547], [14128, 58028],
  9198. [58096, 136054], [58097, 150034], [58111, 166699], [58112, 155779],
  9199. [256, 62233], [193, 62234], [461, 62235], [192, 62236], [274, 62237],
  9200. [201, 62238], [282, 62239], [200, 62240], [332, 62241], [211, 62242],
  9201. [465, 62243], [210, 62244], 62245, [7870, 62246], 62247, [7872, 62248],
  9202. [202, 62249], [257, 62250], [225, 62251], [462, 62252], [224, 62253],
  9203. [593, 62254], [275, 62255], [233, 62256], [283, 62257], [232, 62258],
  9204. [299, 62259], [237, 62260], [464, 62261], [236, 62262], [333, 62263],
  9205. [243, 62264], [466, 62265], [242, 62266], [363, 62267], [250, 62268],
  9206. [468, 62269], [249, 62270], [470, 62271], [472, 62272], [474, 62273],
  9207. [476, 62274], [252, 62275], 62276, [7871, 62277], 62278, [7873, 62279],
  9208. [234, 62280], [609, 62281], [643, 63551], [592, 63552], [603, 63553],
  9209. [596, 63554], [629, 63555], [339, 63556], [248, 63557], [331, 63558],
  9210. [650, 63559], [618, 63560], {f: 2, c: 62282}, [11933, 63530],
  9211. [11974, 63539], [12003, 63547], 20539, 28158, [62841, 171123], 62842,
  9212. [15817, 62843], 34959, [62845, 147790], 28791, 23797, [19232, 62848],
  9213. [62849, 152013], [13657, 62850], [62851, 154928], 24866, [62853, 166450],
  9214. 36775, 37366, 29073, 26393, 29626, [62859, 144001], [62860, 172295],
  9215. [15499, 62861], [62862, 137600], [19216, 62863], 30948, 29698, 20910,
  9216. [62867, 165647], [16393, 62868], 27235, [62870, 172730], [16931, 62871],
  9217. 34319, 31274, [62875, 170311], [62876, 166634], 38741, 28749, 21284,
  9218. [62880, 139390], 37876, 30425, [62883, 166371], 62884, 30685, 20131, 20464,
  9219. 20668, 20015, 20247, 62891, 21556, 32139, 22674, 22736, [62896, 138678],
  9220. 24210, 24217, 24514, [62900, 141074], 25995, [62902, 144377], 26905, 27203,
  9221. [62905, 146531], 27903, 29184, [62909, 148741], 29580, [16091, 62911],
  9222. [62912, 150035], 23317, 29881, 35715, [62916, 154788], [62917, 153237],
  9223. 31379, 31724, 31939, 32364, 33528, 34199, 62924, 34960, 62926, 36537,
  9224. 62928, 36815, 34143, 39392, 37409, 62933, [62934, 167353], [62935, 136255],
  9225. [16497, 62936], [17058, 62937], 23066, 39016, 26475, [17014, 62944], 22333,
  9226. 34262, [62948, 149883], 33471, [62950, 160013], [19585, 62951],
  9227. [62952, 159092], 23931, [62954, 158485], [62955, 159678], {f: 2, c: 62956},
  9228. 23446, 62959, 32347],
  9229. 'Adobe-GB1': [{f: 95, c: 32}, {f: 3, c: 12288}, [183, 12539], 713, 711, 168,
  9230. 12291, 12293, 8212, 65374, 8214, [8230, 8943], {f: 2, c: 8216},
  9231. {f: 2, c: 8220}, {f: 2, c: 12308}, {f: 8, c: 12296}, {f: 2, c: 12310},
  9232. {f: 2, c: 12304}, 177, 215, 247, 8758, {f: 2, c: 8743}, 8721, 8719, 8746,
  9233. 8745, 8712, 8759, 8730, 8869, 8741, 8736, 8978, 8857, 8747, 8750, 8801,
  9234. 8780, 8776, 8765, 8733, 8800, {f: 2, c: 8814}, {f: 2, c: 8804}, 8734, 8757,
  9235. 8756, 9794, 9792, 176, {f: 2, c: 8242}, 8451, 65284, 164, {f: 2, c: 65504},
  9236. 8240, 167, 8470, 9734, 9733, 9675, 9679, 9678, 9671, 9670, 9633, 9632,
  9237. 9651, 9650, 8251, 8594, {f: 2, c: 8592}, 8595, 12307, {f: 20, c: 9352},
  9238. {f: 20, c: 9332}, {f: 10, c: 9312}, {f: 10, c: 12832}, {f: 12, c: 8544},
  9239. {f: 3, c: 65281}, 65509, {f: 89, c: 65285}, 65507, {f: 83, c: 12353},
  9240. {f: 86, c: 12449}, {f: 17, c: 913}, {f: 7, c: 931}, {f: 17, c: 945},
  9241. {f: 7, c: 963}, {f: 7, c: 59277}, {f: 2, c: 65077}, {f: 2, c: 65081},
  9242. {f: 2, c: 65087}, {f: 2, c: 65085}, {f: 4, c: 65089}, {f: 2, c: 59284},
  9243. {f: 2, c: 65083}, {f: 2, c: 65079}, 65073, 59286, {f: 2, c: 65075},
  9244. {f: 6, c: 1040}, 1025, {f: 32, c: 1046}, 1105, {f: 26, c: 1078}, 257, 225,
  9245. 462, 224, 275, 233, 283, 232, 299, 237, 464, 236, 333, 243, 466, 242, 363,
  9246. 250, 468, 249, 470, 472, 474, 476, 252, 234, 593, 7743, 324, 328, 505, 609,
  9247. {f: 37, c: 12549}, 0, {f: 76, c: 9472}, {s: 126}, 21834, 38463, 22467,
  9248. 25384, 21710, 21769, 21696, 30353, 30284, 34108, 30702, 33406, 30861,
  9249. 29233, 38552, 38797, 27688, 23433, 20474, 25353, 26263, 23736, 33018,
  9250. 26696, 32942, 26114, 30414, 20985, 25942, 29100, 32753, 34948, 20658,
  9251. 22885, 25034, 28595, 33453, 25420, 25170, 21485, 21543, 31494,
  9252. [12043, 20843], 30116, 24052, 25300, 36299, 38774, 25226, 32793, 22365,
  9253. 38712, 32610, 29240, [12137, 30333], 26575, 30334, 25670, 20336, 36133,
  9254. 25308, 31255, 26001, 29677, 25644, 25203, 33324, 39041, 26495, 29256,
  9255. 25198, 25292, 20276, 29923, 21322, 21150, 32458, 37030, 24110, 26758,
  9256. 27036, 33152, 32465, 26834, 30917, 34444, 38225, 20621, 35876, 33502,
  9257. 32990, 21253, 35090, 21093, 34180, 38649, 20445, 22561, 39281, 23453,
  9258. 25265, 25253, 26292, 35961, 40077, 29190, 26479, 30865, 24754, 21329,
  9259. 21271, 36744, 32972, 36125, 38049, 20493, 29384, 22791, 24811, 28953,
  9260. 34987, 22868, 33519, 26412, 31528, 23849, 32503, 29997, 27893, 36454,
  9261. 36856, 36924, [12240, 40763], [12112, 27604], 37145, 31508, 24444, 30887,
  9262. 34006, 34109, 27605, 27609, 27606, 24065, 24199, 30201, 38381, 25949,
  9263. 24330, 24517, 36767, 22721, 33218, 36991, 38491, 38829, 36793, 32534,
  9264. 36140, 25153, 20415, 21464, 21342, {f: 2, c: 36776}, 36779, 36941, 26631,
  9265. 24426, 33176, 34920, 40150, 24971, 21035, 30250, 24428, 25996, 28626,
  9266. 28392, 23486, 25672, 20853, 20912, 26564, 19993, 31177, 39292, 28851,
  9267. 30149, 24182, 29627, 33760, 25773, 25320, 38069, 27874, 21338, 21187,
  9268. 25615, 38082, 31636, 20271, 24091, 33334, 33046, 33162, 28196, 27850,
  9269. 39539, 25429, [12056, 21340], 21754, 34917, 22496, 19981, 24067, 27493,
  9270. 31807, 37096, 24598, 25830, 29468, 35009, 26448, 25165, 36130, 30572,
  9271. 36393, 37319, 24425, 33756, 34081, 39184, 21442, 34453, 27531, 24813,
  9272. 24808, 28799, 33485, 33329, 20179, 27815, 34255, 25805, 31961, 27133,
  9273. 26361, 33609, 21397, 31574, 20391, 20876, 27979, 23618, 36461, 25554,
  9274. 21449, 33580, 33590, 26597, 30900, 25661, 23519, 23700, 24046, 35815,
  9275. 25286, 26612, 35962, 25600, 25530, 34633, 39307, 35863, 32544, 38130,
  9276. 20135, 38416, 39076, 26124, 29462, 22330, 23581, 24120, 38271, 20607,
  9277. 32928, [12058, 21378], 25950, 30021, 21809, 20513, 36229, 25220, 38046,
  9278. 26397, 22066, 28526, 24034, 21557, 28818, 36710, 25199, 25764, 25507,
  9279. 24443, 28552, 37108, [12162, 33251], [12192, 36784], 23576, 26216, 24561,
  9280. 27785, 38472, 36225, 34924, 25745, 31216, 22478, 27225, 25104, 21576,
  9281. 20056, 31243, 24809, 28548, 35802, 25215, 36894, 39563, 31204, 21507,
  9282. 30196, 25345, 21273, 27744, 36831, 24347, 39536, 32827, 40831, 20360,
  9283. 23610, [12186, 36196], 32709, 26021, 28861, 20805, 20914, [12173, 34411],
  9284. 23815, 23456, 25277, 37228, 30068, 36364, 31264, 24833, 31609, 20167,
  9285. 32504, 30597, 19985, 33261, 21021, 20986, 27249, 21416, 36487, 38148,
  9286. 38607, 28353, 38500, 26970, 30784, 20648, 30679, 25616, 35302, 22788,
  9287. 25571, 24029, 31359, 26941, 20256, 33337, 21912, 20018, 30126, 31383,
  9288. 24162, 24202, 38383, 21019, 21561, 28810, 25462, 38180, 22402, 26149,
  9289. 26943, 37255, 21767, 28147, 32431, 34850, 25139, 32496, 30133, 33576,
  9290. 30913, 38604, 36766, 24904, 29943, 35789, 27492, 21050, 36176, 27425,
  9291. 32874, 33905, 22257, 21254, 20174, 19995, 20945, 31895, 37259, 31751,
  9292. 20419, 36479, 31713, 31388, 25703, 23828, 20652, 33030, 30209, 31929,
  9293. 28140, 32736, 26449, 23384, [12072, 23544], 30923, 25774, 25619, 25514,
  9294. 25387, 38169, 25645, 36798, 31572, 30249, 25171, [12068, 22823], 21574,
  9295. [12109, 27513], 20643, 25140, 24102, 27526, 20195, 36151, 34955, 24453,
  9296. 36910, 24608, 32829, 25285, 20025, 21333, 37112, 25528, 32966, 26086,
  9297. 27694, 20294, 24814, 28129, 35806, 24377, 34507, 24403, 25377, 20826,
  9298. 33633, 26723, [12049, 20992], 25443, 36424, 20498, 23707, 31095, 23548,
  9299. 21040, 31291, 24764, 36947, 30423, 24503, 24471, 30340, 36460, 28783,
  9300. 30331, 31561, 30634, 20979, 37011, 22564, 20302, 28404, 36842, 25932,
  9301. 31515, 29380, 28068, 32735, 23265, 25269, 24213, 22320, 33922, 31532,
  9302. 24093, 24351, 36882, 32532, 39072, 25474, 28359, 30872, 28857, 20856,
  9303. 38747, 22443, 30005, 20291, 30008, 24215, 24806, 22880, 28096, 27583,
  9304. 30857, 21500, 38613, 20939, 20993, 25481, 21514, 38035, 35843, 36300,
  9305. 29241, 30879, 34678, 36845, 35853, 21472, 19969, 30447, 21486, 38025,
  9306. 39030, [12237, 40718], 38189, 23450, 35746, 20002, 19996, 20908, 33891,
  9307. 25026, 21160, 26635, 20375, 24683, 20923, 27934, 20828, 25238,
  9308. [12099, 26007], 38497, [12182, 35910], 36887, 30168, 37117, 30563, 27602,
  9309. 29322, 29420, 35835, 22581, 30585, 36172, 26460, 38208, 32922, 24230,
  9310. 28193, 22930, 31471, 30701, 38203, 27573, 26029, 32526, 22534, 20817,
  9311. 38431, 23545, 22697, 21544, 36466, 25958, 39039, 22244, 38045, 30462,
  9312. 36929, 25479, 21702, 22810, 22842, 22427, 36530, 26421, 36346, 33333,
  9313. 21057, 24816, 22549, 34558, 23784, 40517, 20420, 39069, 35769, 23077,
  9314. 24694, 21380, 25212, 36943, 37122, 39295, 24681, [12157, 32780],
  9315. [12041, 20799], [12159, 32819], 23572, 39285, 27953, [12038, 20108], 36144,
  9316. 21457, 32602, 31567, 20240, 20047, 38400, 27861, 29648, 34281, 24070,
  9317. 30058, 32763, 27146, 30718, 38034, 32321, 20961, 28902, 21453, 36820,
  9318. 33539, 36137, 29359, 39277, 27867, 22346, 33459, [12101, 26041], 32938,
  9319. 25151, 38450, 22952, 20223, 35775, 32442, 25918, 33778, [12206, 38750],
  9320. 21857, 39134, 32933, 21290, 35837, 21536, 32954, 24223, 27832, 36153,
  9321. 33452, 37210, 21545, 27675, 20998, 32439, 22367, 28954, 27774, 31881,
  9322. 22859, 20221, 24575, 24868, 31914, 20016, 23553, 26539, 34562, 23792,
  9323. 38155, 39118, 30127, 28925, 36898, 20911, 32541, 35773, 22857, 20964,
  9324. 20315, 21542, 22827, 25975, 32932, 23413, 25206, 25282, 36752, 24133,
  9325. 27679, 31526, 20239, 20440, 26381, 28014, 28074, 31119, 34993, 24343,
  9326. 29995, 25242, 36741, 20463, 37340, 26023, 33071, 33105, 24220, 33104,
  9327. 36212, 21103, 35206, 36171, 22797, 20613, 20184, [12201, 38428],
  9328. [12119, 29238], 33145, 36127, 23500, 35747, 38468, 22919, 32538, 21648,
  9329. 22134, 22030, 35813, 25913, 27010, 38041, 30422, 28297, [12082, 24178],
  9330. [12130, 29976], 26438, 26577, 31487, 32925, 36214, 24863, 31174, 25954,
  9331. 36195, 20872, 21018, 38050, 32568, 32923, 32434, 23703, 28207, 26464,
  9332. 31705, 30347, [12220, 39640], 33167, 32660, 31957, 25630, 38224, 31295,
  9333. 21578, 21733, 27468, 25601, [12093, 25096], 40509, 33011, 30105, 21106,
  9334. [12208, 38761], 33883, 26684, 34532, 38401, 38548, 38124, 20010, 21508,
  9335. 32473, 26681, 36319, 32789, 26356, 24218, 32697, 22466, 32831, 26775,
  9336. [12079, 24037], 25915, 21151, 24685, 40858, 20379, 36524, 20844, 23467,
  9337. [12088, 24339], 24041, 27742, 25329, 36129, 20849, 38057, 21246, 27807,
  9338. 33503, 29399, 22434, 26500, 36141, 22815, 36764, 33735, 21653, 31629,
  9339. 20272, 27837, 23396, 22993, [12238, 40723], 21476, 34506, [12219, 39592],
  9340. [12181, 35895], 32929, 25925, 39038, 22266, 38599, 21038, [12128, 29916],
  9341. 21072, 23521, 25346, 35074, 20054, 25296, 24618, 26874, 20851, 23448,
  9342. 20896, 35266, 31649, 39302, 32592, 24815, 28748, 36143, 20809,
  9343. [12084, 24191], 36891, 29808, 35268, 22317, 30789, 24402, 40863, 38394,
  9344. 36712, [12225, 39740], 35809, 30328, 26690, 26588, 36330, 36149, 21053,
  9345. 36746, 28378, 26829, 38149, 37101, 22269, 26524, 35065, 36807, 21704,
  9346. 39608, 23401, 28023, 27686, 20133, 23475, 39559, 37219, 25000, 37039,
  9347. 38889, 21547, 28085, 23506, 20989, 21898, 32597, 32752, 25788, 25421,
  9348. 26097, 25022, 24717, 28938, 27735, 27721, 22831, 26477, 33322, 22741,
  9349. 22158, 35946, 27627, 37085, 22909, 32791, 21495, 28009, 21621, 21917,
  9350. 33655, 33743, 26680, [12146, 31166], 21644, 20309, 21512, 30418, 35977,
  9351. 38402, 27827, 28088, 36203, 35088, 40548, 36154, 22079, [12234, 40657],
  9352. 30165, 24456, 29408, 24680, 21756, 20136, 27178, 34913, 24658, 36720,
  9353. 21700, 28888, 34425, 40511, 27946, 23439, 24344, 32418, 21897, 20399,
  9354. 29492, 21564, 21402, 20505, 21518, 21628, 20046, 24573, 29786, 22774,
  9355. 33899, 32993, 34676, 29392, 31946, 28246, 24359, 34382, 21804, 25252,
  9356. 20114, 27818, 25143, 33457, 21719, 21326, 29502, 28369, 30011, 21010,
  9357. 21270, 35805, 27088, 24458, 24576, 28142, 22351, 27426, 29615, 26707,
  9358. 36824, 32531, 25442, 24739, 21796, 30186, 35938, 28949, 28067, 23462,
  9359. 24187, 33618, 24908, 40644, 30970, 34647, 31783, 30343, 20976, 24822,
  9360. 29004, 26179, 24140, 24653, 35854, 28784, 25381, 36745, 24509, 24674,
  9361. 34516, 22238, 27585, 24724, 24935, 21321, 24800, 26214, 36159, 31229,
  9362. 20250, 28905, 27719, 35763, 35826, 32472, 33636, 26127, 23130, 39746,
  9363. 27985, 28151, 35905, 27963, 20249, [12117, 28779], 33719, 25110, 24785,
  9364. 38669, 36135, 31096, 20987, 22334, 22522, 26426, 30072, 31293, 31215,
  9365. 31637, 32908, 39269, 36857, 28608, 35749, 40481, 23020, 32489, 32521,
  9366. 21513, 26497, 26840, 36753, 31821, 38598, 21450, 24613, 30142, 27762,
  9367. 21363, 23241, 32423, 25380, [12047, 20960], 33034, [12080, 24049], 34015,
  9368. 25216, 20864, 23395, 20238, 31085, 21058, 24760, 27982, 23492, 23490,
  9369. 35745, 35760, 26082, 24524, 38469, 22931, 32487, 32426, 22025, 26551,
  9370. 22841, 20339, 23478, 21152, 33626, 39050, 36158, 30002, 38078, 20551,
  9371. 31292, 20215, 26550, 39550, 23233, 27516, 30417, 22362, 23574, 31546,
  9372. 38388, 29006, 20860, 32937, 33392, 22904, 32516, 33575, 26816, 26604,
  9373. 30897, 30839, 25315, 25441, 31616, 20461, 21098, 20943, 33616, 27099,
  9374. 37492, 36341, 36145, 35265, 38190, 31661, 20214, 20581, 33328, 21073,
  9375. 39279, 28176, 28293, 28071, 24314, 20725, 23004, 23558, 27974, 27743,
  9376. 30086, 33931, 26728, 22870, 35762, 21280, 37233, 38477, 34121, 26898,
  9377. 30977, 28966, 33014, 20132, 37066, 27975, 39556, 23047, 22204, 25605,
  9378. 38128, 30699, 20389, 33050, 29409, [12179, 35282], 39290, 32564, 32478,
  9379. 21119, 25945, 37237, 36735, 36739, 21483, 31382, 25581, 25509, 30342,
  9380. 31224, 34903, 38454, 25130, 21163, 33410, 26708, 26480, 25463, 30571,
  9381. 31469, 27905, 32467, 35299, 22992, 25106, 34249, 33445, 30028, 20511,
  9382. 20171, 30117, 35819, 23626, [12081, 24062], 31563, [12100, 26020],
  9383. [12198, 37329], 20170, 27941, 35167, 32039, 38182, 20165, 35880, 36827,
  9384. 38771, 26187, 31105, 36817, 28908, 28024, 23613, 21170, 33606, 20834,
  9385. 33550, 30555, 26230, 40120, 20140, 24778, 31934, 31923, 32463, 20117,
  9386. 35686, 26223, 39048, 38745, 22659, 25964, 38236, 24452, 30153, 38742,
  9387. 31455, 31454, 20928, 28847, 31384, 25578, 31350, 32416, 29590,
  9388. [12210, 38893], 20037, 28792, 20061, 37202, 21417, 25937, 26087,
  9389. [12165, 33276], 33285, 21646, 23601, 30106, 38816, 25304, 29401, 30141,
  9390. 23621, 39545, 33738, 23616, 21632, 30697, 20030, 27822, 32858, 25298,
  9391. 25454, 24040, 20855, 36317, 36382, 38191, 20465, 21477, 24807, 28844,
  9392. 21095, 25424, 40515, 23071, 20518, 30519, 21367, 32482, 25733, 25899,
  9393. 25225, 25496, 20500, 29237, 35273, 20915, 35776, 32477, 22343, 33740,
  9394. 38055, 20891, 21531, 23803, 20426, 31459, 27994, 37089, 39567, 21888,
  9395. 21654, 21345, 21679, 24320, 25577, 26999, 20975, 24936, 21002, 22570,
  9396. 21208, 22350, 30733, 30475, 24247, 24951, 31968, 25179, 25239, 20130,
  9397. 28821, 32771, 25335, 28900, 38752, 22391, 33499, 26607, 26869, 30933,
  9398. 39063, 31185, 22771, 21683, 21487, 28212, 20811, 21051, 23458, 35838,
  9399. 32943, 21827, 22438, 24691, 22353, 21549, 31354, 24656, 23380, 25511,
  9400. 25248, [12061, 21475], 25187, 23495, 26543, 21741, 31391, 33510, 37239,
  9401. 24211, 35044, 22840, 22446, 25358, 36328, 33007, 22359, 31607, 20393,
  9402. 24555, 23485, 27454, 21281, 31568, 29378, 26694, 30719, 30518, 26103,
  9403. 20917, 20111, 30420, 23743, 31397, 33909, 22862, 39745, 20608, 39304,
  9404. 24871, 28291, 22372, 26118, 25414, 22256, 25324, 25193, 24275, 38420,
  9405. 22403, 25289, 21895, 34593, 33098, 36771, 21862, 33713, 26469, 36182,
  9406. 34013, 23146, 26639, 25318, 31726, 38417, 20848, 28572, 35888, 25597,
  9407. 35272, 25042, 32518, 28866, 28389, 29701, 27028, 29436, 24266, 37070,
  9408. 26391, 28010, 25438, 21171, 29282, [12156, 32769], 20332, 23013, 37226,
  9409. 28889, 28061, 21202, 20048, 38647, 38253, 34174, 30922, 32047, 20769,
  9410. 22418, 25794, 32907, 31867, 27882, 26865, 26974, 20919, 21400, 26792,
  9411. 29313, 40654, 31729, 29432, 31163, 28435, 29702, 26446, [12197, 37324],
  9412. 40100, 31036, 33673, 33620, 21519, 26647, 20029, 21385, 21169, 30782,
  9413. 21382, 21033, 20616, 20363, 20432, 30178, [12148, 31435], 31890, 27813,
  9414. [12202, 38582], [12050, 21147], 29827, 21737, 20457, 32852, 33714, 36830,
  9415. 38256, 24265, 24604, 28063, 24088, 25947, 33080, 38142, 24651, 28860,
  9416. 32451, 31918, 20937, 26753, 31921, 33391, 20004, 36742, 37327, 26238,
  9417. 20142, 35845, 25769, 32842, 20698, 30103, 29134, 23525, 36797, 28518,
  9418. 20102, 25730, 38243, 24278, 26009, 21015, 35010, 28872, 21155, 29454,
  9419. 29747, 26519, 30967, 38678, 20020, 37051, 40158, 28107, 20955, 36161,
  9420. 21533, 25294, 29618, 33777, 38646, 40836, 38083, 20278, 32666, 20940,
  9421. 28789, 38517, 23725, 39046, 21478, 20196, 28316, 29705, 27060, 30827,
  9422. 39311, 30041, 21016, 30244, 27969, 26611, 20845, 40857, 32843, 21657,
  9423. 31548, 31423, 38534, 22404, 25314, 38471, 27004, 23044, 25602, 31699,
  9424. 28431, 38475, 33446, 21346, 39045, 24208, 28809, 25523, 21348, 34383,
  9425. 40065, 40595, 30860, 38706, 36335, 36162, [12229, 40575], 28510, 31108,
  9426. 24405, 38470, 25134, 39540, 21525, 38109, 20387, 26053, 23653, 23649,
  9427. 32533, 34385, 27695, 24459, 29575, 28388, 32511, 23782, 25371, 23402,
  9428. 28390, 21365, 20081, 25504, 30053, 25249, 36718, 20262, 20177, 27814,
  9429. 32438, 35770, 33821, 34746, 32599, 36923, 38179, 31657, 39585, 35064,
  9430. 33853, 27931, 39558, 32476, 22920, [12231, 40635], 29595, 30721, 34434,
  9431. 39532, 39554, 22043, 21527, 22475, 20080, 40614, 21334, 36808, 33033,
  9432. 30610, 39314, 34542, 28385, 34067, 26364, 24930, 28459, 35881, 33426,
  9433. 33579, 30450, 27667, 24537, 33725, 29483, 33541, 38170, [12113, 27611],
  9434. [12141, 30683], 38086, 21359, 33538, 20882, 24125, 35980, 36152, 20040,
  9435. 29611, 26522, 26757, 37238, 38665, 29028, 27809, 30473, 23186, 38209,
  9436. 27599, 32654, 26151, 23504, 22969, 23194, 38376, 38391, 20204, 33804,
  9437. 33945, 27308, 30431, 38192, 29467, 26790, 23391, 30511, 37274, 38753,
  9438. 31964, 36855, 35868, 24357, [12150, 31859], 31192, 35269, 27852, 34588,
  9439. 23494, 24130, 26825, 30496, 32501, 20885, 20813, 21193, 23081, 32517,
  9440. [12207, 38754], 33495, 25551, 30596, 34256, 31186, 28218, 24217, 22937,
  9441. 34065, 28781, 27665, 25279, [12139, 30399], 25935, 24751, 38397, 26126,
  9442. 34719, 40483, 38125, 21517, 21629, 35884, {f: 2, c: 25720}, 34321, 27169,
  9443. 33180, 30952, 25705, 39764, 25273, 26411, 33707, 22696, 40664, 27819,
  9444. 28448, 23518, 38476, 35851, 29279, 26576, 25287, 29281, 20137, 22982,
  9445. 27597, 22675, 26286, 24149, 21215, 24917, [12106, 26408], [12140, 30446],
  9446. 30566, 29287, 31302, 25343, 21738, 21584, 38048, 37027, 23068, 32435,
  9447. 27670, 20035, 22902, 32784, 22856, 21335, 30007, 38590, 22218, 25376,
  9448. 33041, 24700, 38393, 28118, 21602, 39297, 20869, 23273, 33021, 22958,
  9449. 38675, 20522, 27877, 23612, 25311, 20320, 21311, 33147, 36870, 28346,
  9450. 34091, 25288, 24180, 30910, 25781, 25467, 24565, 23064, 37247, 40479,
  9451. 23615, 25423, 32834, 23421, 21870, 38218, 38221, 28037, 24744, 26592,
  9452. 29406, 20957, 23425, 25319, 27870, [12124, 29275], 25197, 38062, 32445,
  9453. 33043, 27987, 20892, 24324, 22900, 21162, 24594, [12069, 22899], 26262,
  9454. 34384, 30111, 25386, 25062, 31983, 35834, 21734, 27431, 40485, 27572,
  9455. 34261, 21589, 20598, 27812, 21866, 36276, 29228, 24085, 24597, 29750,
  9456. 25293, 25490, 29260, 24472, 28227, 27966, 25856, 28504, 30424, 30928,
  9457. 30460, 30036, 21028, 21467, 20051, 24222, 26049, 32810, 32982, 25243,
  9458. 21638, 21032, 28846, 34957, 36305, 27873, 21624, 32986, 22521, 35060,
  9459. 36180, 38506, 37197, 20329, 27803, 21943, 30406, 30768, 25256, 28921,
  9460. 28558, 24429, 34028, 26842, 30844, 31735, 33192, 26379, 40527, 25447,
  9461. 30896, 22383, 30738, 38713, 25209, 25259, 21128, 29749, 27607, 21860,
  9462. 33086, 30130, [12138, 30382], 21305, 30174, 20731, 23617, 35692, 31687,
  9463. 20559, [12122, 29255], 39575, 39128, 28418, 29922, 31080, 25735, 30629,
  9464. 25340, 39057, 36139, 21697, 32856, 20050, 22378, 33529, 33805, 24179,
  9465. 20973, 29942, 35780, 23631, 22369, 27900, 39047, 23110, 30772, 39748,
  9466. 36843, 31893, 21078, 25169, 38138, 20166, 33670, 33889, 33769, 33970,
  9467. 22484, 26420, 22275, 26222, 28006, 35889, 26333, 28689, 26399, 27450,
  9468. 26646, 25114, 22971, 19971, 20932, 28422, 26578, 27791, 20854, 26827,
  9469. 22855, 27495, 30054, 23822, 33040, 40784, 26071, 31048, 31041, 39569,
  9470. 36215, 23682, 20062, 20225, 21551, 22865, 30732, 22120, [12115, 27668],
  9471. 36804, 24323, 27773, 27875, 35755, 25488, 24688, 27965, 29301, 25190,
  9472. 38030, 38085, 21315, 36801, 31614, 20191, 35878, 20094, 40660, 38065,
  9473. 38067, 21069, 28508, 36963, 27973, 35892, 22545, 23884, [12107, 27424],
  9474. 27465, 26538, 21595, 33108, 32652, 22681, 34103, 24378, 25250, 27207,
  9475. 38201, 25970, 24708, 26725, 30631, 20052, 20392, 24039, 38808, 25772,
  9476. 32728, 23789, 20431, 31373, 20999, 33540, 19988, 24623, 31363, 38054,
  9477. 20405, 20146, 31206, 29748, 21220, 33465, 25810, 31165, 23517, 27777,
  9478. 38738, 36731, 27682, 20542, 21375, 28165, 25806, 26228, 27696, 24773,
  9479. 39031, 35831, 24198, 29756, 31351, 31179, 19992, 37041, 29699, 27714,
  9480. 22234, 37195, 27845, 36235, 21306, 34502, 26354, 36527, 23624, 39537,
  9481. 28192, 21462, 23094, 40843, 36259, 21435, 22280, 39079, 26435, 37275,
  9482. 27849, 20840, 30154, 25331, [12125, 29356], 21048, 21149, 32570, 28820,
  9483. 30264, 21364, 40522, 27063, 30830, 38592, 35033, 32676, 28982, 29123,
  9484. 20873, 26579, 29924, 22756, 25880, 22199, 35753, 39286, 25200, 32469,
  9485. 24825, 28909, 22764, 20161, [12040, 20154], 24525, 38887, 20219, 35748,
  9486. 20995, 22922, 32427, 25172, 20173, [12103, 26085], 25102, 33592, 33993,
  9487. 33635, 34701, 29076, 28342, 23481, 32466, 20887, 25545, 26580,
  9488. [12161, 32905], 33593, 34837, 20754, 23418, 22914, 36785, 20083, 27741,
  9489. [12042, 20837], 35109, 36719, 38446, 34122, 29790, 38160, 38384, 28070,
  9490. 33509, 24369, 25746, 27922, 33832, 33134, 40131, 22622, 36187, 19977,
  9491. 21441, 20254, 25955, 26705, 21971, 20007, 25620, 39578, 25195, 23234,
  9492. 29791, [12170, 33394], 28073, 26862, 20711, 33678, 30722, 26432, 21049,
  9493. 27801, 32433, 20667, 21861, 29022, 31579, 26194, 29642, 33515, 26441,
  9494. [12077, 23665], 21024, 29053, 34923, 38378, 38485, 25797, 36193, 33203,
  9495. 21892, 27733, 25159, 32558, 22674, 20260, 21830, 36175, 26188, 19978,
  9496. 23578, 35059, 26786, 25422, 31245, 28903, 33421, 21242, 38902, 23569,
  9497. 21736, 37045, 32461, 22882, 36170, 34503, [12166, 33292], 33293, 36198,
  9498. 25668, 23556, 24913, 28041, 31038, 35774, 30775, 30003, 21627, 20280,
  9499. [12189, 36523], 28145, 23072, 32453, 31070, 27784, 23457, 23158, 29978,
  9500. 32958, 24910, 28183, 22768, [12131, 29983], 29989, 29298, 21319, 32499,
  9501. 30465, 30427, 21097, 32988, 22307, 24072, 22833, 29422, 26045, 28287,
  9502. 35799, [12075, 23608], 34417, [12055, 21313], [12143, 30707], 25342, 26102,
  9503. 20160, [12215, 39135], 34432, 23454, 35782, 21490, [12142, 30690], 20351,
  9504. 23630, 39542, 22987, 24335, [12144, 31034], [12064, 22763], 19990, 26623,
  9505. 20107, 25325, 35475, 36893, 21183, 26159, 21980, 22124, 36866, 20181,
  9506. 20365, 37322, 39280, [12114, 27663], 24066, 24643, 23460, 35270, 35797,
  9507. 25910, [12095, 25163], [12216, 39318], 23432, 23551, 25480, 21806, 21463,
  9508. 30246, 20861, 34092, 26530, 26803, 27530, 25234, 36755, 21460, 33298,
  9509. 28113, 30095, 20070, 36174, 23408, 29087, 34223, 26257, 26329, 32626,
  9510. 34560, [12233, 40653], [12239, 40736], 23646, 26415, 36848, 26641, 26463,
  9511. 25101, 31446, 22661, 24246, 25968, 28465, 24661, 21047, 32781, 25684,
  9512. 34928, 29993, 24069, 26643, 25332, 38684, 21452, 29245, 35841,
  9513. [12116, 27700], 30561, 31246, 21550, 30636, 39034, 33308, 35828, 30805,
  9514. 26388, 28865, 26031, 25749, 22070, 24605, 31169, 21496, 19997, 27515,
  9515. 32902, 23546, 21987, 22235, 20282, 20284, 39282, 24051, 26494, 32824,
  9516. 24578, 39042, 36865, 23435, 35772, 35829, 25628, 33368, 25822, 22013,
  9517. 33487, 37221, 20439, 32032, 36895, 31903, 20723, 22609, 28335, 23487,
  9518. 35785, 32899, 37240, 33948, 31639, 34429, 38539, 38543, 32485, 39635,
  9519. 30862, 23681, 31319, 36930, 38567, 31071, 23385, 25439, 31499, 34001,
  9520. 26797, 21766, 32553, 29712, 32034, 38145, 25152, 22604, 20182, 23427,
  9521. 22905, 22612, 29549, 25374, 36427, 36367, 32974, 33492, 25260, 21488,
  9522. 27888, 37214, 22826, 24577, 27760, 22349, 25674, 36138, 30251, 28393,
  9523. 22363, 27264, 30192, 28525, 35885, 35848, 22374, 27631, 34962, 30899,
  9524. 25506, 21497, 28845, 27748, 22616, 25642, 22530, 26848, 33179, 21776,
  9525. 31958, 20504, 36538, 28108, 36255, 28907, 25487, 28059, 28372, 32486,
  9526. 33796, 26691, 36867, 28120, 38518, 35752, 22871, 29305, 34276, 33150,
  9527. 30140, 35466, 26799, 21076, 36386, 38161, 25552, 39064, 36420, 21884,
  9528. 20307, 26367, 22159, 24789, 28053, 21059, 23625, 22825, 28155, 22635,
  9529. [12133, 30000], 29980, 24684, 33300, 33094, 25361, 26465, 36834, 30522,
  9530. 36339, 36148, 38081, 24086, 21381, 21548, 28867, 27712, 24311, 20572,
  9531. 20141, 24237, 25402, 33351, 36890, 26704, 37230, 30643, 21516, 38108,
  9532. 24420, 31461, 26742, 25413, 31570, 32479, 30171, 20599, 25237, 22836,
  9533. 36879, 20984, 31171, 31361, 22270, 24466, 36884, 28034, 23648,
  9534. [12063, 22303], 21520, 20820, 28237, 22242, 25512, 39059, 33151, 34581,
  9535. 35114, 36864, 21534, 23663, 33216, 25302, 25176, 33073, 40501, 38464,
  9536. 39534, 39548, 26925, 22949, 25299, 21822, 25366, 21703, 34521, 27964,
  9537. 23043, [12129, 29926], 34972, 27498, 22806, 35916, 24367, 28286, 29609,
  9538. 39037, 20024, 28919, 23436, 30871, 25405, 26202, 30358, 24779, 23451,
  9539. 23113, 19975, 33109, 27754, 29579, 20129, 26505, [12153, 32593], 24448,
  9540. 26106, 26395, 24536, 22916, 23041, 24013, 24494, 21361, 38886, 36829,
  9541. 26693, 22260, 21807, 24799, 20026, 28493, 32500, 33479, 33806, 22996,
  9542. 20255, 20266, 23614, 32428, 26410, 34074, 21619, 30031, 32963, 21890,
  9543. 39759, 20301, 28205, 35859, 23561, 24944, 21355, 30239, 28201, 34442,
  9544. [12098, 25991], 38395, 32441, 21563, 31283, 32010, 38382, 21985, 32705,
  9545. 29934, 25373, 34583, 28065, 31389, 25105, 26017, 21351, 25569, 27779,
  9546. 24043, 21596, 38056, 20044, 27745, 35820, 23627, [12102, 26080], 33436,
  9547. 26791, 21566, 21556, [12111, 27595], 27494, 20116, 25410, 21320, 33310,
  9548. 20237, 20398, 22366, 25098, 38654, 26212, 29289, 21247, 21153, 24735,
  9549. 35823, 26132, 29081, 26512, 35199, 30802, 30717, 26224, 22075, 21560,
  9550. 38177, 29306, 31232, 24687, 24076, 24713, 33181, [12067, 22805], 24796,
  9551. 29060, 28911, 28330, 27728, 29312, 27268, 34989, 24109, 20064, 23219,
  9552. 21916, 38115, 27927, 31995, 38553, 25103, 32454, 30606, 34430, 21283,
  9553. 38686, 36758, 26247, 23777, 20384, 29421, 19979, 21414, 22799, 21523,
  9554. 25472, 38184, 20808, 20185, 40092, 32420, 21688, 36132, 34900, 33335,
  9555. 38386, 28046, 24358, 23244, 26174, 38505, 29616, 29486, 21439, 33146,
  9556. 39301, 32673, 23466, 38519, 38480, 32447, 30456, 21410, 38262,
  9557. [12217, 39321], 31665, 35140, 28248, 20065, 32724, 31077, 35814, 24819,
  9558. 21709, 20139, 39033, 24055, 27233, 20687, 21521, 35937, 33831, 30813,
  9559. 38660, 21066, 21742, 22179, 38144, 28040, 23477, 28102, 26195,
  9560. [12073, 23567], 23389, 26657, 32918, 21880, 31505, 25928, 26964, 20123,
  9561. 27463, 34638, 38795, 21327, 25375, 25658, 37034, 26012, 32961, 35856,
  9562. 20889, 26800, 21368, 34809, 25032, 27844, 27899, 35874, 23633, 34218,
  9563. 33455, 38156, 27427, [12191, 36763], 26032, 24571, [12092, 24515], 20449,
  9564. 34885, 26143, 33125, 29481, 24826, 20852, 21009, 22411, 24418, 37026,
  9565. [12175, 34892], 37266, 24184, 26447, 24615, 22995, 20804, 20982, 33016,
  9566. 21256, 27769, 38596, 29066, 20241, 20462, 32670, 26429, 21957, 38152,
  9567. 31168, 34966, 32483, 22687, 25100, 38656, 34394, 22040, 39035, 24464,
  9568. 35768, 33988, 37207, 21465, 26093, 24207, 30044, 24676, 32110, 23167,
  9569. 32490, 32493, 36713, 21927, 23459, 24748, 26059, [12126, 29572], 36873,
  9570. 30307, 30505, 32474, 38772, 34203, 23398, [12147, 31348], 38634,
  9571. [12174, 34880], 21195, 29071, 24490, 26092, 35810, 23547, 39535, 24033,
  9572. 27529, 27739, 35757, 35759, 36874, 36805, 21387, 25276, 40486, 40493,
  9573. 21568, 20011, 33469, [12123, 29273], 34460, 23830, 34905, 28079, 38597,
  9574. 21713, 20122, 35766, 28937, 21693, 38409, 28895, 28153, 30416, 20005,
  9575. 30740, 34578, 23721, 24310, [12180, 35328], 39068, 38414, 28814, 27839,
  9576. 22852, 25513, 30524, 34893, 28436, 33395, 22576, 29141, 21388, 30746,
  9577. 38593, 21761, 24422, 28976, 23476, 35866, 39564, 27523, 22830, 40495,
  9578. 31207, 26472, 25196, 20335, 30113, [12154, 32650], 27915, 38451, 27687,
  9579. 20208, 30162, 20859, 26679, 28478, 36992, 33136, 22934, 29814, 25671,
  9580. 23591, 36965, 31377, 35875, 23002, 21676, 33280, 33647, 35201, 32768,
  9581. 26928, 22094, 32822, 29239, 37326, 20918, 20063, 39029, 25494, 19994,
  9582. 21494, 26355, 33099, 22812, 28082, [12032, 19968], 22777, 21307, 25558,
  9583. 38129, 20381, 20234, [12176, 34915], 39056, 22839, 36951, 31227, 20202,
  9584. 33008, 30097, 27778, 23452, 23016, 24413, 26885, 34433, 20506, 24050,
  9585. [12036, 20057], 30691, 20197, 33402, 25233, 26131, [12194, 37009], 23673,
  9586. 20159, 24441, 33222, 36920, 32900, 30123, 20134, 35028, 24847, 27589,
  9587. 24518, 20041, 30410, 28322, 35811, 35758, 35850, 35793, 24322, 32764,
  9588. 32716, 32462, 33589, 33643, 22240, 27575, [12211, 38899], 38452, 23035,
  9589. 21535, 38134, 28139, 23493, 39278, 23609, 24341, 38544, 21360, 33521,
  9590. 27185, 23156, 40560, 24212, 32552, 33721, {f: 2, c: 33828}, 33639, 34631,
  9591. 36814, 36194, 30408, 24433, 39062, 30828, 26144, 21727, 25317, 20323,
  9592. 33219, 30152, 24248, 38605, 36362, 34553, 21647, 27891, 28044, 27704,
  9593. 24703, 21191, [12132, 29992], 24189, 20248, 24736, 24551, 23588, 30001,
  9594. 37038, 38080, 29369, 27833, 28216, [12195, 37193], 26377, 21451, 21491,
  9595. 20305, 37321, 35825, [12060, 21448], 24188, 36802, 28132, 20110, 30402,
  9596. 27014, 34398, 24858, 33286, 20313, 20446, 36926, 40060, 24841, 28189,
  9597. 28180, 38533, 20104, 23089, [12204, 38632], 19982, 23679, 31161, 23431,
  9598. 35821, [12155, 32701], [12127, 29577], 22495, 33419, 37057, 21505, 36935,
  9599. 21947, 23786, 24481, 24840, 27442, 29425, 32946, 35465, 28020, 23507,
  9600. 35029, 39044, 35947, 39533, 40499, 28170, 20900, 20803, 22435, 34945,
  9601. 21407, 25588, 36757, 22253, 21592, 22278, 29503, 28304, 32536, 36828,
  9602. 33489, 24895, 24616, 38498, [12104, 26352], 32422, 36234, 36291, 38053,
  9603. 23731, 31908, [12105, 26376], 24742, 38405, 32792, 20113, 37095, 21248,
  9604. 38504, 20801, 36816, 34164, 37213, 26197, 38901, 23381, 21277, 30776,
  9605. 26434, 26685, 21705, 28798, 23472, 36733, 20877, 22312, 21681, 25874,
  9606. 26242, 36190, 36163, 33039, 33900, 36973, 31967, 20991, 34299, 26531,
  9607. 26089, 28577, 34468, 36481, 22122, 36896, 30338, 28790, 29157, 36131,
  9608. 25321, 21017, 27901, 36156, 24590, 22686, 24974, 26366, 36192, 25166,
  9609. 21939, 28195, 26413, 36711, 38113, 38392, 30504, 26629, 27048, 21643,
  9610. 20045, 28856, 35784, 25688, 25995, 23429, 31364, 20538, 23528, 30651,
  9611. 27617, 35449, 31896, 27838, 30415, 26025, 36759, 23853, 23637, 34360,
  9612. 26632, 21344, 25112, 31449, 28251, 32509, 27167, 31456, 24432, 28467,
  9613. 24352, 25484, 28072, 26454, 19976, 24080, 36134, 20183, 32960, 30260,
  9614. 38556, 25307, 26157, 25214, 27836, 36213, 29031, 32617, 20806, 32903,
  9615. 21484, 36974, 25240, 21746, 34544, 36761, 32773, 38167, 34071, 36825,
  9616. 27993, 29645, 26015, 30495, 29956, 30759, 33275, 36126, 38024, 20390,
  9617. 26517, 30137, 35786, 38663, 25391, 38215, 38453, 33976, 25379, 30529,
  9618. 24449, 29424, 20105, 24596, 25972, 25327, 27491, 25919, 24103, 30151,
  9619. 37073, 35777, 33437, 26525, [12096, 25903], 21553, 34584, 30693, 32930,
  9620. 33026, 27713, 20043, 32455, 32844, 30452, 26893, 27542, 25191, 20540,
  9621. 20356, 22336, 25351, [12108, 27490], 36286, 21482, 26088, 32440, 24535,
  9622. 25370, 25527, [12164, 33267], 33268, 32622, 24092, 23769, 21046, 26234,
  9623. 31209, 31258, 36136, 28825, 30164, 28382, 27835, 31378, 20013, 30405,
  9624. 24544, 38047, 34935, 32456, 31181, 32959, 37325, 20210, 20247,
  9625. [12168, 33311], 21608, 24030, 27954, 35788, 31909, 36724, 32920, 24090,
  9626. 21650, 30385, 23449, 26172, 39588, 29664, 26666, 34523, 26417, 29482,
  9627. 35832, 35803, 36880, [12149, 31481], 28891, 29038, 25284, 30633, 22065,
  9628. 20027, 33879, 26609, 21161, 34496, 36142, 38136, 31569, 20303, 27880,
  9629. 31069, 39547, 25235, [12118, 29226], 25341, 19987, 30742, 36716, 25776,
  9630. 36186, 31686, 26729, 24196, 35013, 22918, 25758, 22766, 29366, 26894,
  9631. 38181, 36861, 36184, 22368, 32512, 35846, 20934, 25417, 25305, 21331,
  9632. 26700, 29730, 33537, 37196, 21828, 30528, 28796, 27978, 20857, 21672,
  9633. 36164, 23039, 28363, 28100, 23388, 32043, 20180, 31869, 28371,
  9634. [12070, 23376], [12163, 33258], 28173, 23383, 39683, 26837, 36394, 23447,
  9635. 32508, 24635, 32437, 37049, [12187, 36208], 22863, 25549, 31199,
  9636. [12188, 36275], 21330, 26063, 31062, 35781, 38459, 32452, 38075, 32386,
  9637. 22068, 37257, 26368, 32618, 23562, 36981, 26152, 24038, 20304, 26590,
  9638. 20570, 20316, 22352, 24231, 20109, 19980, 20800, 19984, 24319, 21317,
  9639. 19989, 20120, 19998, [12224, 39730], 23404, 22121, [12033, 20008], 31162,
  9640. [12035, 20031], [12052, 21269], 20039, 22829, [12120, 29243], 21358, 27664,
  9641. 22239, 32996, 39319, 27603, 30590, 40727, [12034, 20022], 20127, 40720,
  9642. 20060, 20073, 20115, 33416, 23387, 21868, 22031, 20164, 21389, 21405,
  9643. 21411, 21413, 21422, 38757, 36189, [12053, 21274], 21493, 21286, 21294,
  9644. 21310, 36188, 21350, 21347, 20994, 21000, 21006, 21037, 21043,
  9645. {f: 2, c: 21055}, 21068, 21086, 21089, 21084, 33967, 21117, 21122, 21121,
  9646. 21136, 21139, [12044, 20866], 32596, 20155, 20163, 20169, 20162, 20200,
  9647. 20193, 20203, 20190, 20251, 20211, 20258, 20324, 20213, 20261, 20263,
  9648. 20233, 20267, 20318, 20327, 25912, 20314, 20317, 20319, 20311, 20274,
  9649. 20285, 20342, 20340, 20369, 20361, 20355, 20367, 20350, 20347, 20394,
  9650. 20348, 20396, 20372, 20454, 20456, 20458, 20421, 20442, 20451, 20444,
  9651. 20433, 20447, 20472, 20521, 20556, 20467, 20524, 20495, 20526, 20525,
  9652. 20478, 20508, 20492, 20517, 20520, 20606, 20547, 20565, 20552, 20558,
  9653. 20588, 20603, 20645, 20647, 20649, 20666, 20694, 20742, 20717, 20716,
  9654. 20710, 20718, 20743, 20747, 20189, 27709, 20312, 20325, 20430,
  9655. [12245, 40864], 27718, 31860, 20846, 24061, 40649, 39320, 20865, 22804,
  9656. [12051, 21241], 21261, 35335, 21264, 20971, 22809, 20821, [12039, 20128],
  9657. 20822, 20147, 34926, 34980, 20149, 33044, 35026, 31104, 23348, 34819,
  9658. 32696, [12046, 20907], 20913, 20925, 20924, 20935, [12045, 20886], 20898,
  9659. 20901, 35744, {f: 2, c: 35750}, 35754, {f: 2, c: 35764}, 35767,
  9660. {f: 2, c: 35778}, 35787, 35791, 35790, {f: 3, c: 35794}, 35798,
  9661. {f: 2, c: 35800}, 35804, {f: 2, c: 35807}, 35812, {f: 2, c: 35816}, 35822,
  9662. 35824, 35827, 35830, 35833, 35836, {f: 2, c: 35839}, 35842, 35844, 35847,
  9663. 35852, 35855, {f: 2, c: 35857}, {f: 3, c: 35860}, 35865, 35867, 35864,
  9664. 35869, {f: 3, c: 35871}, 35877, 35879, {f: 2, c: 35882}, {f: 2, c: 35886},
  9665. {f: 2, c: 35890}, {f: 2, c: 35893}, [12057, 21353], 21370, 38429, 38434,
  9666. 38433, 38449, 38442, 38461, 38460, 38466, 38473, 38484, 38495, 38503,
  9667. 38508, 38514, 38516, 38536, 38541, 38551, 38576, 37015, 37019, 37021,
  9668. 37017, 37036, 37025, 37044, 37043, 37046, 37050, 37048, 37040, 37071,
  9669. 37061, 37054, 37072, 37060, 37063, 37075, 37094, 37090, 37084, 37079,
  9670. 37083, 37099, 37103, 37118, 37124, 37154, 37150, 37155, 37169, 37167,
  9671. 37177, 37187, 37190, 21005, 22850, 21154, {f: 2, c: 21164}, 21182, 21759,
  9672. 21200, 21206, 21232, 21471, 29166, 30669, [12085, 24308], [12048, 20981],
  9673. 20988, [12223, 39727], [12059, 21430], 24321, 30042, 24047, 22348, 22441,
  9674. 22433, 22654, 22716, 22725, 22737, 22313, 22316, 22314, 22323, 22329,
  9675. {f: 2, c: 22318}, 22364, 22331, 22338, 22377, 22405, 22379, 22406, 22396,
  9676. 22395, 22376, 22381, 22390, 22387, 22445, 22436, 22412, 22450, 22479,
  9677. 22439, 22452, 22419, 22432, 22485, 22488, 22490, 22489, 22482, 22456,
  9678. 22516, 22511, 22520, 22500, 22493, 22539, 22541, 22525, 22509, 22528,
  9679. 22558, 22553, 22596, 22560, 22629, 22636, 22657, 22665, 22682, 22656,
  9680. 39336, 40729, 25087, 33401, 33405, 33407, 33423, 33418, 33448, 33412,
  9681. 33422, 33425, 33431, 33433, 33451, 33464, 33470, 33456, 33480, 33482,
  9682. 33507, 33432, 33463, 33454, {f: 2, c: 33483}, 33473, 33449, 33460, 33441,
  9683. 33450, 33439, 33476, 33486, 33444, 33505, 33545, 33527, 33508, 33551,
  9684. 33543, 33500, 33524, 33490, 33496, 33548, 33531, 33491, 33553, 33562,
  9685. 33542, {f: 2, c: 33556}, 33504, 33493, 33564, 33617, {f: 2, c: 33627},
  9686. 33544, 33682, 33596, 33588, 33585, 33691, 33630, 33583, 33615, 33607,
  9687. 33603, 33631, 33600, 33559, 33632, 33581, 33594, 33587, 33638, 33637,
  9688. 33640, 33563, 33641, 33644, 33642, {f: 2, c: 33645}, 33712, 33656,
  9689. {f: 2, c: 33715}, 33696, 33706, 33683, 33692, 33669, 33660, 33718, 33705,
  9690. 33661, 33720, 33659, 33688, 33694, 33704, 33722, 33724, 33729, 33793,
  9691. 33765, 33752, 22535, 33816, 33803, 33757, 33789, 33750, 33820, 33848,
  9692. 33809, 33798, 33748, 33759, 33807, 33795, {f: 2, c: 33784}, 33770, 33733,
  9693. 33728, 33830, 33776, 33761, 33884, 33873, 33882, 33881, 33907,
  9694. {f: 2, c: 33927}, 33914, 33929, 33912, 33852, 33862, 33897, 33910, 33932,
  9695. 33934, 33841, 33901, 33985, 33997, 34000, 34022, 33981, 34003, 33994,
  9696. 33983, 33978, 34016, 33953, 33977, 33972, 33943, 34021, 34019, 34060,
  9697. 29965, 34104, 34032, 34105, 34079, 34106, 34134, 34107, 34047, 34044,
  9698. 34137, 34120, 34152, 34148, 34142, 34170, 30626, 34115, 34162, 34171,
  9699. 34212, 34216, 34183, 34191, 34169, 34222, 34204, 34181, 34233, 34231,
  9700. 34224, 34259, 34241, 34268, 34303, 34343, 34309, 34345, 34326, 34364,
  9701. [12086, 24318], 24328, 22844, 22849, 32823, 22869, 22874, 22872, 21263,
  9702. [12074, 23586], 23589, 23596, 23604, 25164, 25194, 25247, 25275, 25290,
  9703. 25306, 25303, 25326, 25378, 25334, 25401, 25419, 25411, 25517, 25590,
  9704. 25457, 25466, 25486, 25524, 25453, 25516, 25482, 25449, 25518, 25532,
  9705. 25586, 25592, 25568, 25599, 25540, 25566, 25550, 25682, 25542, 25534,
  9706. 25669, 25665, 25611, 25627, 25632, 25612, 25638, 25633, 25694, 25732,
  9707. 25709, 25750, 25722, {f: 2, c: 25783}, 25753, 25786, 25792, 25808, 25815,
  9708. 25828, 25826, 25865, 25893, 25902, [12087, 24331], 24530, 29977, 24337,
  9709. 21343, 21489, 21501, 21481, 21480, 21499, 21522, 21526, 21510, 21579,
  9710. {f: 3, c: 21586}, 21590, 21571, 21537, 21591, 21593, 21539, 21554, 21634,
  9711. 21652, 21623, 21617, 21604, {f: 2, c: 21658}, 21636, 21622, 21606, 21661,
  9712. 21712, 21677, 21698, 21684, 21714, 21671, 21670, {f: 2, c: 21715}, 21618,
  9713. 21667, 21717, 21691, 21695, 21708, {f: 2, c: 21721}, 21724,
  9714. {f: 2, c: 21673}, 21668, 21725, 21711, 21726, 21787, 21735, 21792, 21757,
  9715. 21780, 21747, {f: 2, c: 21794}, 21775, 21777, 21799, 21802, 21863, 21903,
  9716. 21941, 21833, 21869, 21825, 21845, 21823, 21840, 21820, 21815, 21846,
  9717. {f: 3, c: 21877}, 21811, 21808, 21852, 21899, 21970, 21891, 21937, 21945,
  9718. 21896, 21889, 21919, 21886, 21974, 21905, 21883, 21983, {f: 2, c: 21949},
  9719. 21908, 21913, 21994, 22007, 21961, 22047, 21969, {f: 2, c: 21995}, 21972,
  9720. 21990, 21981, 21956, 21999, 21989, {f: 2, c: 22002}, {f: 2, c: 21964},
  9721. 21992, 22005, 21988, 36756, 22046, 22024, 22028, 22017, 22052, 22051,
  9722. 22014, 22016, 22055, 22061, 22104, 22073, 22103, 22060, 22093, 22114,
  9723. 22105, 22108, 22092, 22100, 22150, 22116, 22129, 22123, {f: 2, c: 22139},
  9724. 22149, 22163, 22191, 22228, [12062, 22231], 22237, 22241, 22261, 22251,
  9725. 22265, 22271, 22276, 22282, 22281, 22300, 24079, 24089, 24084, 24081,
  9726. 24113, {f: 2, c: 24123}, 24119, 24132, 24148, 24155, 24158, 24161, 23692,
  9727. 23674, 23693, 23696, 23702, 23688, {f: 2, c: 23704}, 23697, 23706, 23708,
  9728. 23733, 23714, 23741, 23724, 23723, 23729, 23715, 23745, 23735, 23748,
  9729. 23762, 23780, 23755, 23781, {f: 2, c: 23810}, 23847, 23846, 23854, 23844,
  9730. 23838, 23814, 23835, 23896, 23870, 23860, 23869, 23916, 23899, 23919,
  9731. 23901, 23915, 23883, 23882, 23913, 23924, 23938, 23961, 23965, 35955,
  9732. 23991, 24005, [12091, 24435], 24439, 24450, 24455, 24457, 24460, 24469,
  9733. 24473, 24476, 24488, 24493, 24501, 24508, 34914, [12090, 24417], 29357,
  9734. 29360, 29364, {f: 2, c: 29367}, 29379, 29377, 29390, 29389, 29394, 29416,
  9735. 29423, 29417, 29426, 29428, 29431, 29441, 29427, 29443, {f: 2, c: 29434},
  9736. 29463, 29459, 29473, 29450, 29470, 29469, 29461, 29474, 29497, 29477,
  9737. 29484, 29496, 29489, 29520, 29517, 29527, 29536, 29548, 29551, 29566,
  9738. [12167, 33307], 22821, 39143, 22820, [12065, 22786], 39267,
  9739. {f: 6, c: 39271}, 39284, 39287, 39293, 39296, 39300, 39303, 39306, 39309,
  9740. {f: 2, c: 39312}, {f: 3, c: 39315}, 24192, 24209, 24203, 24214, 24229,
  9741. 24224, 24249, 24245, 24254, 24243, 36179, 24274, 24273, 24283, 24296,
  9742. 24298, 33210, 24516, 24521, 24534, 24527, 24579, 24558, 24580, 24545,
  9743. 24548, 24574, {f: 2, c: 24581}, 24554, 24557, 24568, 24601, 24629, 24614,
  9744. 24603, 24591, 24589, 24617, 24619, 24586, 24639, 24609, {f: 2, c: 24696},
  9745. 24699, 24698, 24642, 24682, 24701, 24726, 24730, 24749, 24733, 24707,
  9746. 24722, 24716, 24731, 24812, 24763, 24753, 24797, 24792, 24774, 24794,
  9747. 24756, 24864, 24870, 24853, 24867, 24820, 24832, 24846, 24875, 24906,
  9748. 24949, 25004, 24980, 24999, 25015, 25044, 25077, 24541, 38579, 38377,
  9749. 38379, 38385, 38387, {f: 2, c: 38389}, 38396, 38398, {f: 2, c: 38403},
  9750. 38406, 38408, {f: 4, c: 38410}, 38415, 38418, {f: 3, c: 38421},
  9751. {f: 2, c: 38425}, 20012, [12121, 29247], 25109, 27701, 27732, 27740, 27722,
  9752. 27811, 27781, 27792, 27796, 27788, {f: 2, c: 27752}, 27764, 27766, 27782,
  9753. 27817, 27856, 27860, 27821, {f: 2, c: 27895}, 27889, 27863, 27826, 27872,
  9754. 27862, 27898, 27883, 27886, 27825, 27859, 27887, 27902, 27961, 27943,
  9755. 27916, 27971, 27976, 27911, 27908, 27929, 27918, 27947, 27981, 27950,
  9756. 27957, 27930, 27983, 27986, 27988, 27955, 28049, 28015, 28062, 28064,
  9757. 27998, {f: 2, c: 28051}, 27996, 28000, 28028, 28003, 28186, 28103, 28101,
  9758. 28126, 28174, 28095, 28128, 28177, 28134, 28125, 28121, 28182, 28075,
  9759. 28172, 28078, 28203, 28270, 28238, 28267, 28338, 28255, 28294,
  9760. {f: 2, c: 28243}, 28210, 28197, 28228, 28383, 28337, 28312, 28384, 28461,
  9761. 28386, 28325, 28327, 28349, 28347, 28343, 28375, 28340, 28367, 28303,
  9762. 28354, 28319, 28514, {f: 2, c: 28486}, 28452, 28437, 28409, 28463, 28470,
  9763. 28491, 28532, 28458, 28425, 28457, 28553, 28557, 28556, 28536, 28530,
  9764. 28540, 28538, 28625, 28617, 28583, 28601, 28598, 28610, 28641, 28654,
  9765. 28638, 28640, 28655, 28698, 28707, 28699, 28729, 28725, 28751, 28766,
  9766. [12071, 23424], 23428, 23445, 23443, 23461, 23480, 29999, 39582, 25652,
  9767. 23524, 23534, 35120, 23536, 36423, 35591, 36790, 36819, 36821, 36837,
  9768. 36846, 36836, 36841, 36838, 36851, 36840, 36869, 36868, 36875, 36902,
  9769. 36881, 36877, 36886, 36897, {f: 2, c: 36917}, 36909, 36911, 36932,
  9770. {f: 2, c: 36945}, 36944, 36968, 36952, 36962, 36955, 26297, 36980, 36989,
  9771. 36994, 37000, 36995, 37003, [12089, 24400], 24407, 24406, 24408, 23611,
  9772. 21675, 23632, 23641, 23409, 23651, 23654, 32700, 24362, 24361, 24365,
  9773. 33396, 24380, 39739, [12076, 23662], 22913, 22915, 22925, {f: 2, c: 22953},
  9774. 22947, 22935, 22986, 22955, 22942, 22948, 22994, 22962, 22959, 22999,
  9775. 22974, {f: 2, c: 23045}, 23005, 23048, 23011, 23000, 23033, 23052, 23049,
  9776. 23090, 23092, 23057, 23075, 23059, 23104, 23143, 23114, 23125, 23100,
  9777. 23138, 23157, 33004, 23210, 23195, 23159, 23162, 23230, 23275, 23218,
  9778. 23250, 23252, 23224, 23264, 23267, 23281, 23254, 23270, 23256, 23260,
  9779. 23305, 23319, 23318, 23346, 23351, 23360, 23573, 23580, 23386, 23397,
  9780. 23411, 23377, 23379, 23394, 39541, {f: 2, c: 39543}, 39546, 39551, 39549,
  9781. {f: 2, c: 39552}, 39557, 39560, 39562, 39568, {f: 2, c: 39570}, 39574,
  9782. 39576, {f: 3, c: 39579}, {f: 2, c: 39583}, {f: 2, c: 39586}, 39589, 39591,
  9783. 32415, 32417, 32419, 32421, {f: 2, c: 32424}, 32429, 32432, 32446,
  9784. {f: 3, c: 32448}, 32457, {f: 2, c: 32459}, 32464, 32468, 32471, 32475,
  9785. {f: 2, c: 32480}, 32488, 32491, {f: 2, c: 32494}, {f: 2, c: 32497}, 32525,
  9786. 32502, {f: 2, c: 32506}, 32510, {f: 3, c: 32513}, {f: 2, c: 32519},
  9787. {f: 2, c: 32523}, 32527, {f: 2, c: 32529}, 32535, 32537, 32540, 32539,
  9788. 32543, {f: 7, c: 32545}, {f: 4, c: 32554}, {f: 5, c: 32559}, 32565,
  9789. [12083, 24186], 30079, [12078, 24027], 30014, 37013, 29582, 29585, 29614,
  9790. 29602, 29599, 29647, 29634, 29649, 29623, 29619, 29632, 29641, 29640,
  9791. 29669, 29657, 39036, 29706, 29673, 29671, 29662, 29626, 29682, 29711,
  9792. 29738, 29787, 29734, 29733, 29736, 29744, 29742, 29740, 29723, 29722,
  9793. 29761, 29788, 29783, 29781, 29785, 29815, 29805, 29822, 29852, 29838,
  9794. {f: 2, c: 29824}, 29831, 29835, 29854, {f: 2, c: 29864}, 29840, 29863,
  9795. 29906, 29882, {f: 3, c: 38890}, 26444, 26451, 26462, 26440, 26473, 26533,
  9796. 26503, 26474, 26483, 26520, 26535, 26485, 26536, 26526, 26541, 26507,
  9797. 26487, 26492, 26608, 26633, 26584, 26634, 26601, 26544, 26636, 26585,
  9798. 26549, 26586, 26547, 26589, 26624, 26563, 26552, 26594, 26638, 26561,
  9799. 26621, {f: 2, c: 26674}, {f: 2, c: 26720}, 26702, 26722, 26692, 26724,
  9800. 26755, 26653, 26709, 26726, 26689, 26727, 26688, 26686, 26698, 26697,
  9801. 26665, 26805, 26767, 26740, 26743, 26771, 26731, 26818, 26990, 26876,
  9802. {f: 2, c: 26911}, 26873, 26916, 26864, 26891, 26881, 26967, 26851, 26896,
  9803. 26993, 26937, 26976, 26946, 26973, 27012, 26987, 27008, 27032, 27000,
  9804. 26932, 27084, {f: 2, c: 27015}, 27086, 27017, 26982, 26979, 27001, 27035,
  9805. 27047, 27067, 27051, 27053, 27092, 27057, 27073, 27082, 27103, 27029,
  9806. 27104, 27021, 27135, 27183, 27117, {f: 2, c: 27159}, 27237, 27122, 27204,
  9807. 27198, 27296, 27216, 27227, 27189, 27278, 27257, 27197, 27176, 27224,
  9808. 27260, 27281, 27280, 27305, 27287, 27307, 29495, 29522, {f: 2, c: 27521},
  9809. 27527, 27524, {f: 2, c: 27538}, 27533, {f: 2, c: 27546}, 27553, 27562,
  9810. 36715, 36717, {f: 3, c: 36721}, {f: 2, c: 36725}, 36728, 36727,
  9811. {f: 2, c: 36729}, 36732, 36734, {f: 2, c: 36737}, 36740, 36743, 36747,
  9812. {f: 3, c: 36749}, 36760, 36762, 36558, 25099, 25111, 25115, 25119, 25122,
  9813. 25121, 25125, 25124, 25132, 33255, 29935, 29940, 29951, 29967, 29969,
  9814. 29971, [12097, 25908], {f: 3, c: 26094}, 26122, 26137, 26482, 26115, 26133,
  9815. 26112, 28805, 26359, 26141, 26164, 26161, 26166, 26165, 32774, 26207,
  9816. 26196, 26177, 26191, 26198, 26209, 26199, 26231, 26244, 26252, 26279,
  9817. 26269, 26302, {f: 2, c: 26331}, 26342, 26345, {f: 2, c: 36146}, 36150,
  9818. 36155, 36157, 36160, {f: 2, c: 36165}, {f: 2, c: 36168}, 36167, 36173,
  9819. 36181, 36185, 35271, {f: 3, c: 35274}, {f: 4, c: 35278}, 29294, 29343,
  9820. 29277, 29286, 29295, {f: 2, c: 29310}, 29316, 29323, 29325, 29327, 29330,
  9821. 25352, 25394, 25520, 25663, 25816, 32772, 27626, 27635, 27645, 27637,
  9822. 27641, 27653, 27655, 27654, 27661, 27669, {f: 3, c: 27672}, 27681, 27689,
  9823. 27684, 27690, 27698, 25909, 25941, 25963, 29261, 29266, 29270, 29232,
  9824. 34402, 21014, 32927, 32924, 32915, 32956, 26378, 32957, 32945, 32939,
  9825. 32941, 32948, 32951, {f: 4, c: 32999}, 32987, 32962, 32964, 32985, 32973,
  9826. 32983, 26384, 32989, 33003, 33009, 33012, 33005, {f: 2, c: 33037}, 33010,
  9827. 33020, 26389, 33042, 35930, 33078, 33054, 33068, 33048, 33074, 33096,
  9828. 33100, 33107, 33140, {f: 2, c: 33113}, 33137, 33120, 33129,
  9829. {f: 2, c: 33148}, 33133, 33127, 22605, 23221, 33160, 33154, 33169, 28373,
  9830. 33187, 33194, 33228, 26406, 33226, 33211, 33217, 33190, 27428, 27447,
  9831. 27449, 27459, 27462, 27481, {f: 3, c: 39121}, 39125, {f: 2, c: 39129},
  9832. [12110, 27571], 24384, 27586, 35315, 26000, 40785, 26003, 26044, 26054,
  9833. 26052, 26051, 26060, 26062, 26066, 26070, 28800, 28828, 28822, 28829,
  9834. 28859, 28864, 28855, 28843, 28849, 28904, 28874, 28944, 28947, 28950,
  9835. 28975, 28977, 29043, 29020, 29032, 28997, 29042, 29002, 29048, 29050,
  9836. 29080, 29107, 29109, 29096, 29088, 29152, 29140, 29159, 29177, 29213,
  9837. 29224, 28780, 28952, 29030, 29113, 25150, 25149, 25155, {f: 2, c: 25160},
  9838. 31035, 31040, 31046, 31049, {f: 2, c: 31067}, 31059, 31066, 31074, 31063,
  9839. 31072, 31087, 31079, 31098, 31109, 31114, 31130, 31143, 31155, 24529,
  9840. 24528, 24636, 24669, 24666, 24679, 24641, 24665, 24675, 24747, 24838,
  9841. 24845, 24925, 25001, 24989, 25035, 25041, 25094, 32896, [12160, 32895],
  9842. 27795, 27894, 28156, 30710, 30712, 30720, 30729, {f: 2, c: 30743}, 30737,
  9843. 26027, 30765, {f: 2, c: 30748}, {f: 3, c: 30777}, 30751, 30780, 30757,
  9844. 30764, 30755, 30761, 30798, 30829, {f: 2, c: 30806}, 30758, 30800, 30791,
  9845. 30796, 30826, 30875, 30867, 30874, 30855, 30876, 30881, 30883, 30898,
  9846. 30905, 30885, 30932, 30937, 30921, 30956, 30962, 30981, 30964, 30995,
  9847. 31012, 31006, 31028, 40859, [12235, 40697], {f: 2, c: 40699}, 30449, 30468,
  9848. 30477, 30457, {f: 2, c: 30471}, 30490, 30498, 30489, 30509, 30502, 30517,
  9849. 30520, {f: 2, c: 30544}, 30535, 30531, 30554, 30568, 30562, 30565, 30591,
  9850. 30605, 30589, 30592, 30604, 30609, {f: 2, c: 30623}, 30640, 30645, 30653,
  9851. 30010, 30016, 30030, 30027, 30024, 30043, 30066, 30073, 30083, 32600,
  9852. 32609, 32607, 35400, 32616, 32628, 32625, 32633, 32641, 32638, 30413,
  9853. 30437, 34866, {f: 3, c: 38021}, 38027, 38026, {f: 2, c: 38028},
  9854. {f: 2, c: 38031}, 38036, 38039, 38037, {f: 3, c: 38042}, {f: 2, c: 38051},
  9855. 38059, 38058, 38061, 38060, {f: 2, c: 38063}, 38066, 38068,
  9856. {f: 5, c: 38070}, {f: 2, c: 38076}, 38079, 38084, {f: 7, c: 38088},
  9857. {f: 3, c: 38096}, {f: 3, c: 38101}, 38105, 38104, 38107, {f: 3, c: 38110},
  9858. 38114, {f: 2, c: 38116}, {f: 2, c: 38119}, 38122, 38121, 38123,
  9859. {f: 2, c: 38126}, {f: 3, c: 38131}, 38135, 38137, {f: 2, c: 38140}, 38143,
  9860. 38147, 38146, {f: 2, c: 38150}, {f: 2, c: 38153}, {f: 3, c: 38157},
  9861. {f: 5, c: 38162}, 38168, 38171, {f: 3, c: 38173}, 38178, {f: 2, c: 38186},
  9862. 38185, 38188, {f: 2, c: 38193}, 38196, {f: 3, c: 38198}, 38204,
  9863. {f: 2, c: 38206}, 38210, 38197, {f: 3, c: 38212}, 38217, 38220,
  9864. {f: 2, c: 38222}, {f: 3, c: 38226}, {f: 4, c: 38230}, 38235,
  9865. {f: 2, c: 38238}, 38237, {f: 2, c: 38241}, {f: 9, c: 38244}, 38255,
  9866. {f: 3, c: 38257}, 38202, 30695, 30700, 38601, 31189, 31213, 31203, 31211,
  9867. 31238, 23879, 31235, 31234, 31262, 31252, 31289, 31287, 31313, 40655,
  9868. 39333, 31344, 30344, 30350, 30355, 30361, 30372, 29918, 29920, 29996,
  9869. 40480, 40482, {f: 5, c: 40488}, 40498, 40497, 40502, 40504, 40503,
  9870. {f: 2, c: 40505}, 40510, {f: 2, c: 40513}, 40516, {f: 4, c: 40518},
  9871. {f: 2, c: 40523}, 40526, 40529, 40533, 40535, {f: 3, c: 40538}, 40542,
  9872. 40547, {f: 7, c: 40550}, 40561, 40557, 40563, [12135, 30098], 30100, 30102,
  9873. 30112, 30109, 30124, 30115, {f: 2, c: 30131}, 30136, 30148, 30129, 30128,
  9874. 30147, 30146, 30166, 30157, 30179, 30184, 30182, 30180, 30187, 30183,
  9875. 30211, 30193, 30204, 30207, 30224, 30208, 30213, 30220, 30231, 30218,
  9876. 30245, 30232, 30229, 30233, 30235, 30268, 30242, 30240, 30272, 30253,
  9877. 30256, 30271, 30261, 30275, 30270, 30259, 30285, 30302, 30292, 30300,
  9878. 30294, 30315, 30319, 32714, 31462, {f: 2, c: 31352}, 31360, 31366, 31368,
  9879. 31381, 31398, 31392, 31404, 31400, 31405, 31411, 34916, 34921, 34930,
  9880. 34941, 34943, 34946, 34978, 35014, 34999, 35004, 35017, 35042, 35022,
  9881. 35043, 35045, 35057, 35098, 35068, 35048, 35070, 35056, 35105, 35097,
  9882. 35091, 35099, 35082, 35124, 35115, 35126, 35137, 35174, 35195,
  9883. [12134, 30091], 32997, 30386, 30388, 30684, [12158, 32786], 32788, 32790,
  9884. 32796, 32800, 32802, {f: 3, c: 32805}, 32809, 32808, 32817, 32779, 32821,
  9885. 32835, 32838, 32845, 32850, 32873, 32881, 35203, 39032, 39040, 39043,
  9886. 39049, {f: 2, c: 39052}, 39055, 39060, {f: 2, c: 39066}, {f: 2, c: 39070},
  9887. {f: 2, c: 39073}, {f: 2, c: 39077}, [12172, 34381], 34388, 34412, 34414,
  9888. 34431, 34426, 34428, 34427, 34472, 34445, 34443, 34476, 34461, 34471,
  9889. 34467, 34474, 34451, 34473, 34486, 34500, 34485, 34510, 34480, 34490,
  9890. 34481, 34479, 34505, 34511, 34484, 34537, {f: 2, c: 34545}, 34541, 34547,
  9891. 34512, 34579, 34526, 34548, 34527, 34520, 34513, 34563, 34567, 34552,
  9892. 34568, 34570, 34573, 34569, 34595, 34619, 34590, 34597, 34606, 34586,
  9893. 34622, 34632, 34612, 34609, 34601, 34615, 34623, 34690, 34594,
  9894. {f: 2, c: 34685}, 34683, 34656, 34672, 34636, 34670, 34699, 34643, 34659,
  9895. 34684, 34660, 34649, 34661, 34707, 34735, 34728, 34770, 34758, 34696,
  9896. 34693, 34733, 34711, 34691, 34731, 34789, 34732, 34741, 34739, 34763,
  9897. 34771, 34749, 34769, 34752, 34762, 34779, 34794, 34784, 34798, 34838,
  9898. 34835, 34814, 34826, 34843, 34849, 34873, 34876, [12152, 32566], 32578,
  9899. {f: 2, c: 32580}, 33296, 31482, 31485, 31496, {f: 2, c: 31491}, 31509,
  9900. 31498, 31531, 31503, 31559, 31544, 31530, 31513, 31534, 31537, 31520,
  9901. 31525, 31524, 31539, 31550, 31518, 31576, 31578, 31557, 31605, 31564,
  9902. 31581, 31584, 31598, 31611, 31586, 31602, 31601, 31632, {f: 2, c: 31654},
  9903. 31672, 31660, 31645, 31656, 31621, 31658, 31644, 31650, 31659, 31668,
  9904. 31697, 31681, 31692, 31709, 31706, {f: 2, c: 31717}, 31722, 31756, 31742,
  9905. 31740, 31759, 31766, 31755, 31775, 31786, 31782, 31800, 31809, 31808,
  9906. 33278, {f: 2, c: 33281}, 33284, 33260, 34884, {f: 3, c: 33313}, 33325,
  9907. 33327, 33320, 33323, 33336, 33339, {f: 2, c: 33331}, 33342, 33348, 33353,
  9908. 33355, 33359, 33370, 33375, 33384, 34942, 34949, 34952, 35032, 35039,
  9909. 35166, 32669, 32671, 32679, {f: 2, c: 32687}, 32690, 31868, 25929, 31889,
  9910. 31901, 31900, 31902, 31906, 31922, {f: 2, c: 31932}, 31937, 31943,
  9911. {f: 2, c: 31948}, 31944, 31941, 31959, 31976, [12169, 33390], 26280, 32703,
  9912. 32718, 32725, 32741, 32737, 32742, 32745, 32750, 32755, [12151, 31992],
  9913. 32119, 32166, 32174, 32327, 32411, 40632, 40628, 36211, 36228, 36244,
  9914. 36241, 36273, 36199, 36205, 35911, 35913, 37194, 37200, {f: 2, c: 37198},
  9915. 37220, 37218, 37217, 37232, 37225, 37231, {f: 2, c: 37245}, 37234, 37236,
  9916. 37241, 37260, 37253, 37264, 37261, 37265, {f: 2, c: 37282}, 37290,
  9917. {f: 3, c: 37293}, 37301, 37300, 37306, [12183, 35925], 40574, 36280, 36331,
  9918. 36357, 36441, 36457, 36277, 36287, 36284, 36282, 36292, {f: 2, c: 36310},
  9919. 36314, 36318, {f: 2, c: 36302}, 36315, 36294, 36332, {f: 2, c: 36343},
  9920. 36323, 36345, 36347, 36324, 36361, 36349, 36372, 36381, 36383, 36396,
  9921. 36398, 36387, 36399, 36410, 36416, 36409, 36405, 36413, 36401, 36425,
  9922. {f: 2, c: 36417}, {f: 2, c: 36433}, 36426, 36464, 36470, 36476, 36463,
  9923. 36468, 36485, 36495, 36500, 36496, 36508, 36510, [12184, 35960], 35970,
  9924. 35978, 35973, 35992, 35988, 26011, 35286, 35294, 35290, 35292, 35301,
  9925. 35307, 35311, 35390, 35622, 38739, 38633, 38643, 38639, 38662, 38657,
  9926. 38664, 38671, 38670, 38698, 38701, 38704, 38718, 40832, 40835,
  9927. {f: 6, c: 40837}, 40844, 40702, 40715, 40717, [12203, 38585],
  9928. {f: 2, c: 38588}, 38606, 38610, 30655, 38624, 37518, 37550, 37576, 37694,
  9929. 37738, 37834, 37775, 37950, 37995, 40063, 40066, {f: 4, c: 40069}, 31267,
  9930. 40075, 40078, {f: 3, c: 40080}, {f: 2, c: 40084}, {f: 2, c: 40090},
  9931. {f: 6, c: 40094}, {f: 5, c: 40101}, 40107, {f: 2, c: 40109},
  9932. {f: 8, c: 40112}, {f: 4, c: 40122}, {f: 4, c: 40132}, {f: 7, c: 40138},
  9933. {f: 3, c: 40147}, {f: 3, c: 40151}, {f: 2, c: 40156}, 40159, 40162, 38780,
  9934. 38789, {f: 2, c: 38801}, 38804, 38831, 38827, 38819, 38834, 38836, 39601,
  9935. 39600, 39607, 40536, 39606, 39610, 39612, 39617, 39616, 39621, 39618,
  9936. {f: 2, c: 39627}, 39633, 39749, 39747, 39751, 39753, 39752, 39757, 39761,
  9937. 39144, 39181, 39214, 39253, 39252, [12221, 39647], 39649, 39654, 39663,
  9938. 39659, 39675, 39661, 39673, 39688, 39695, 39699, 39711, 39715,
  9939. {f: 2, c: 40637}, 32315, 40578, {f: 2, c: 40583}, 40587, 40594, 37846,
  9940. 40605, 40607, {f: 3, c: 40667}, 40672, 40671, 40674, 40681, 40679, 40677,
  9941. 40682, 40687, 40738, 40748, 40751, 40761, 40759, {f: 2, c: 40765}, 40772,
  9942. 12295, {s: 13}, 30362, 34297, 31001, 24859, 39599, 35158, 22761, 32631,
  9943. 25850, 25943, 38930, 36774, 32070, 24171, 32129, 37770, 35607, 39165,
  9944. 23542, 22577, 39825, 36649, [12185, 35997], 37575, 29437, 20633, 24970,
  9945. 32179, 31558, 30050, 25987, 24163, 38281, 37002, 32232, 36022, 35722,
  9946. 36783, 36782, 27161, 40009, 30303, 28693, 28657, 36051, 25839, 39173,
  9947. 25765, 37474, 37457, 39361, 35036, 36001, 21443, 34870, 27544, 24922,
  9948. 24920, 29158, 33980, 33369, 20489, 28356, 21408, 20596, 28204, 23652,
  9949. 35435, 25881, 25723, 34796, 39262, 35730, 32399, 37855, 29987, 38369,
  9950. 39019, 22580, 22039, [12199, 38263], 20767, 33144, 24288, 26274, 37396,
  9951. [12190, 36554], 24505, 22645, 38515, 35183, 31281, 25074, 35488, 39425,
  9952. 36978, 39347, [12242, 40786], 29118, 34909, 34802, 23541, 30087, 36490,
  9953. 31820, 32162, 37276, 37604, 38619, 30990, 20786, 35320, 34389, 20659,
  9954. 30241, 38358, 21109, 37656, 32020, 32189, 36781, 35422, 36060, 32880,
  9955. 24478, 21474, 36517, 31428, 37679, 36948, 24118, 36024, 25812, 21934,
  9956. 37170, 25763, 33213, 24986, 35477, 24392, 30070, 25803, 40680, 34153,
  9957. 27284, 25623, 23798, 31153, 23566, 29128, 37159, 25973, 28364, 36958,
  9958. 32224, 39003, 40670, 22666, 38651, 28593, 37347, 35519, 35548, 37336,
  9959. 38914, 37664, 35330, 26481, 21205, 26847, 20941, [12222, 39717], 29346,
  9960. 29544, 35712, 36077, 37709, 37723, 26039, 32222, 38538, 23565, 22136,
  9961. 38931, 37389, 22890, 22702, 40285, 38989, 35355, 24801, 39187, 20818,
  9962. 29246, 39180, 36019, 30332, 32624, 38309, 31020, 37353, 29033, 31684,
  9963. 36009, 39151, 35370, 32033, [12214, 39131], 35513, 24290, 36027, 32027,
  9964. 22707, 22894, 24996, 31966, 35920, 26963, 37586, [12213, 39080], 30219,
  9965. 39342, 32299, 35575, 40179, 33178, 36667, 25771, 36628, 36070, 24489,
  9966. 36000, 35331, 23142, 32283, 35442, 37411, 33995, 24185, 36245, 36123,
  9967. 23713, 21083, 37628, 32177, 23831, 37804, 25841, 40255, 38307, 37499,
  9968. 20491, 32102, 40852, 38799, 36002, 37390, 28317, 27083, 36092, 34865,
  9969. 39015, 21102, 38364, 35264, 39208, 24931, 36011, 24291, 35215, 27512,
  9970. [12244, 40860], 38312, 36556, 35437, 27331, 36020, 21130, 36645, 37707,
  9971. 22283, 36942, 39405, 38867, 28450, 34399, 38305, 40372, 36032, 36703,
  9972. 40251, 32005, 22778, 35703, 28396, 22057, 33775, 30059, 21123, 35441,
  9973. 25079, 22750, 27489, 29872, 36996, 32233, 35594, 25582, 36637, 36036,
  9974. 31330, 26371, 29172, 21295, 35569, 35496, 32362, 33911, 28222, 29554,
  9975. 36008, 31117, 25802, 27231, 31309, 39249, 35663, 40388, 32318, 32221,
  9976. 26997, 36655, 32026, 25824, 24190, 34186, 21137, 28639, 35336, 35352,
  9977. 38555, 32380, 32000, 22846, 33698, 38960, 36040, 37440, 20729, 39381,
  9978. 27570, 30435, 22533, 31627, 38291, 33393, 32216, 32365, 27298, 40572,
  9979. 25536, 25791, 31777, 20745, 34214, 27323, 37970, 36368, 36068,
  9980. [12178, 35211], 37749, 33382, 21133, 39198, 28472, 28666, 28567, 23559,
  9981. 28479, 34083, 27123, 22892, 35611, 37292, 33184, 28550, 39509, 23308,
  9982. 25898, 37496, 30703, 20709, 39171, 32371, 32094, 36686, 36611, 38542,
  9983. 31680, 28500, 32080, 35489, 32202, 37670, 20677, 35641, 36914, 29180,
  9984. 30433, 21185, 33686, 39912, 39514, 32147, 38968, 37857, 24465, 30169,
  9985. 31478, 31998, 33290, 39378, 33289, 25818, 37624, 25084, 21127, 40273,
  9986. 32121, 35258, 35363, 32118, 37406, 36557, 39423, 38283, 20977, 38982,
  9987. 27579, 35506, 22718, 25031, 25715, 24235, 35122, 35463, 22602, 20744,
  9988. 23532, 31014, 26336, 34407, 24011, 31418, 39243, 28528, 25844, 38346,
  9989. 34847, 33240, 33802, 20358, 36084, 34253, 27396, 25876, 31811, 38348,
  9990. 34349, 28734, 35733, 25900, 35261, 25078, 32412, 29211, 28651, 25736,
  9991. 21214, 28551, 27138, 37939, 22744, 39006, 31852, 38626, 28757, 35023,
  9992. 39881, 31150, 40599, 21426, 21237, 31019, 27511, 28701, 38584, 20486,
  9993. 32879, 34030, 36899, 37934, 24976, 28451, 31806, 25986, 33225, 37832,
  9994. 25088, 29001, 32244, 31975, 20841, 36635, 35538, 30274, 36988, 37904,
  9995. 29557, 33256, 37168, 40023, 36035, 40801, 37428, 38728, 23994, 38936,
  9996. 39230, 21129, [12243, 40845], 32894, 22184, 31840, 22751, 25871, 38580,
  9997. 27155, 23105, 25695, 31757, 34310, 30439, 39025, 24300, 29200, 25796,
  9998. 28407, 34396, 39791, 36034, 37682, 38520, 39522, 37569, 23650, 32311,
  9999. 24942, 28670, 32209, 24018, 25891, 23423, 28772, 20098, 25476, 36650,
  10000. 20523, 20374, 28138, 32184, 35542, 34367, 32645, 37007, 38012, 31854,
  10001. 39486, 39409, 32097, 23229, 29802, 30908, 34718, [12218, 39340], 39393,
  10002. 21966, 36023, [12230, 40613], 36067, 36993, 30622, 39237, 34875, 28415,
  10003. 35646, 37672, 37466, 36031, 37762, [12200, 38272], 24758, 20497, 37683,
  10004. 22818, 35598, 24396, 35219, 32191, 32236, 24287, 28357, 25003, 38313,
  10005. 40180, 37528, 35628, 35584, 30045, 37385, 32013, 38627, 25747, 33126,
  10006. 24817, 39719, 39186, 25836, 33193, 25862, 37312, [12227, 40165], 32886,
  10007. 22169, 38007, 37811, 27320, 29552, 23527, 25840, 28632, 37397, 32016,
  10008. 33215, 28611, 36786, 30247, 35582, 27472, 40407, 27590, 22036, 28442,
  10009. 30436, 40848, 36064, 22132, 40300, 39449, 39108, 38971, 36007, 34315,
  10010. 24977, 35413, 28497, 38935, 25778, 37610, 20693, 27192, 35676, 33229,
  10011. [12241, 40778], 39438, 35912, 21843, 27683, 35350, 29309, 37370, 37467,
  10012. 36983, 31805, 35609, 37666, 37463, 28154, 35700, 22649, 27085, 21958,
  10013. 22715, 34196, 25654, 37740, 27211, 21932, 20689, 32761, 31429, 31434,
  10014. 27453, 35242, 23522, 36629, 27691, 20670, 38915, 35531, 24950, 29898,
  10015. 31406, 36264, 21312, 36544, 39493, 40818, 39028, 27402, 21240, 40306,
  10016. 30906, 35731, 39250, 25854, 32350, 29105, 38860, 35469, 32009, 27054,
  10017. 32104, 36575, 37613, 38287, 28516, 28753, 34217, 39955, 36093, 20632,
  10018. 21930, 39479, 25475, 28544, 27578, 32023, 31721, 26348, 38275, 38493,
  10019. 36109, 32341, 20663, 36062, 29138, 32057, 36050, 25448, 25885, 25086,
  10020. 35373, 32051, 23529, 23352, 33102, 28402, 32882, 32361, 21213, 32854,
  10021. 24107, 29509, 28629, 35433, 26178, 34645, 23526, 35672, 39387, 21218,
  10022. 36969, 37323, 39166, 35222, 35430, 22781, 29560, 27166, 36664, 26360,
  10023. 36118, 23660, 34899, 27193, 31466, 25976, 24101, 38617, 35504, 38918,
  10024. 35500, 30889, 29197, 32114, 39164, 39686, 32883, 24939, 38924, 35359,
  10025. 35494, 25851, 34311, 35380, 32901, 38614, 38568, 32143, 27506, 23403,
  10026. 25613, 32302, 29795, 37782, 29562, 25787, 33274, 24907, 25892, 36010,
  10027. 30321, 28760, 22727, 35674, 35527, 22022, 28271, 29145, 28644, 32295,
  10028. 35342, 39472, 35588, 37563, 38988, 39636, 26781, 36028, 37941, 24307,
  10029. 32893, 28916, 37509, 32113, 38957, 22294, 22615, 22296, 38973, 40213,
  10030. 39345, 39389, 27234, 31402, 35178, 24398, 28771, 38929, 33836, 32178,
  10031. [12209, 38859], 36949, 22285, 29234, 28656, 32173, 33894, 20553, 20702,
  10032. 32239, 35586, 34907, 32862, 32011, 31337, 21839, 25790, 34680, 28198,
  10033. 31401, 21978, 37794, 28879, 35491, 28961, 34154, 22626, 38695, 21209,
  10034. 35492, 37675, 29351, 35186, 32722, 37521, 25138, 32048, 34662, 36676,
  10035. 23805, 20448, 29433, 22151, 37697, 39854, 32406, 36066, 37532, 38289,
  10036. 39023, 38570, 29694, 29563, 32291, 39201, 25010, 32171, 38002, 37129,
  10037. 35443, 38911, 38917, 34157, 22210, 37559, 26313, 22063, 21332, 25406,
  10038. 33029, 35559, 23531, 28681, 35613, 37573, 37313, 33288, 37561, 32137,
  10039. 38920, 35377, 32210, 32396, 36562, 25080, 36984, 30316, 32098, 23416,
  10040. 21211, 35426, 23563, 39348, 35347, 35338, 36956, 22739, 40201, 40232,
  10041. 21854, 20126, 35357, 38329, 40573, 22196, 38996, 38331, 33399, 21421,
  10042. 30831, 35578, 39511, 40230, 26954, 25562, 30221, 38525, 30306, 39178,
  10043. 27171, 22575, 35617, 34277, 29242, [12212, 38913], 26989, 33865, 37291,
  10044. 37541, 38948, 36986, 20736, 34811, 34269, 20740, 25014, 32681, 35427,
  10045. 35696, 35516, 35695, 32377, 34093, 38512, 37504, 39154, 38577, 27387,
  10046. 23344, 40441, 25033, 32403, 29801, 34722, 29151, 29074, 34821, 36111,
  10047. 31310, 21938, 25793, 20653, 30320, 36404, 20778, 24962, 37109, 37438,
  10048. 29494, 35480, 36671, 39192, [12226, 39770], 28417, 33287, 23996, 35486,
  10049. 39729, 29508, 35709, 38928, 39341, 40219, 28149, 36677, 22290, 21729,
  10050. 22291, 32227, 36960, 39000, 32004, 36493, 38000, 38322, 38642, 37142,
  10051. 38549, 36939, 34292, 37270, 26248, 38620, 36617, 25890, 26283, 36106,
  10052. 36124, 33247, 38015, 26839, 31432, 36012, 25799, 21063, 28580, 36042,
  10053. 36104, 36555, 37720, 38296, 35408, 40779, 20661, 27656, 30430, 26028,
  10054. 36670, 23940, 26855, 25136, 32187, 24373, 28466, 24115, 36076, 33081,
  10055. 36249, 34756, 36685, 37754, 36889, 35998, 37341, 20597, 35386, 37806,
  10056. 38499, 24128, 30309, 37165, 35657, 32340, 32887, 22519, 34937, 32025,
  10057. 25711, 25842, 24159, 36074, 28399, 37912, 32066, 31278, 33131, 34886,
  10058. 35589, 36600, 30394, 26205, 39519, 35576, 35461, 29165, 30682, 22225,
  10059. 36015, 37956, 31689, 39376, 23560, 30938, 36681, 36090, 27137, 33674,
  10060. 35037, 22941, 22767, 29376, 37648, 36101, 22684, 32180, 35524, 28310,
  10061. 28609, 36039, 28460, 32156, 32317, 32305, 37138, 35419, 32068, 38013,
  10062. 21959, 21401, 21428, 38760, 36107, 21293, 21297, 36094, 21060, 21132,
  10063. 21108, 20660, 20480, 20630, 20757, 20738, 20756, 20796, 20791, 20712,
  10064. 20674, 20795, 20752, 20794, 20681, 31988, 40652, 22213, 40172, 35131,
  10065. 33248, 35329, 35344, 35340, 35349, 35635, 35406, 35365, 35393, 35382,
  10066. 35398, 35412, 35416, 35410, 35462, 35460, 35455, 35440, 35452, 35445,
  10067. 35436, 35438, 35533, 35554, 35425, 35482, 35493, {f: 2, c: 35473}, 35535,
  10068. 35537, 35529, 35547, 35543, 35522, 35510, 35574, 35563, 35604, 35585,
  10069. 35556, 35565, 35580, 35571, 35558, 35566, 35550, 35624, 35740, 35606,
  10070. 35610, 35600, 35627, 35629, 35670, 35673, 35662, 35742, 35691, 35734,
  10071. 38488, 37178, 37140, 37172, 37087, 37174, 37126, 37192, 33467, 21233,
  10072. 24048, 22538, 22745, 22754, 22752, 22746, 22497, 22607, 22550, 22610,
  10073. 22557, 22628, 34188, 34131, 34294, 33703, 33799, 34031, 33511, 34338,
  10074. 34086, 22603, 29026, 34136, 34045, 34126, 34184, 34234, 29334, 28366,
  10075. 34113, 34254, 34130, 33984, 33874, 33892, 33940, 33845, 34207, 34133,
  10076. 40367, 33939, 32264, 34118, 34146, 34078, 39488, 34362, 37795, 34167,
  10077. 34334, 34298, 34308, 34282, 34330, 22889, 23607, 25451, 25718, 25759,
  10078. 25681, 25692, 25779, 25860, 25878, 25847, 25852, 25883, 22064, 22072,
  10079. 22216, 22182, 21764, 21692, 22144, 22109, 22112, 22069, 22006, 22118,
  10080. 22130, 22156, 22117, 22044, 22062, 21993, 22038, 22208, 22029, 22195,
  10081. 22209, 22127, 36705, 22198, 22165, 22279, 24131, 24172, 24152, 24151,
  10082. 23943, 23796, 23888, 23852, 23975, 23968, 23959, 23821, 23992, 23937,
  10083. 24020, 24480, 29559, 29505, 29546, 29499, 29547, 29568, 29564, 39136,
  10084. 39219, 39145, 39228, {f: 2, c: 39146}, 39149, 39156, 39177, 39185, 39195,
  10085. 39223, 39231, 39235, {f: 3, c: 39240}, 39244, 39266, 24289, 36065, 25082,
  10086. 25006, 24938, 24894, 24757, 24884, 25036, 24927, 25064, 24827, 24887,
  10087. 24818, 24947, 24860, 24978, 38274, 38278, 38344, 38286, 38292, 38284,
  10088. 38373, 38317, 38315, 39726, 38316, 38334, 38326, 39721, 38335, 38333,
  10089. 38332, 38339, 38347, 38356, 38352, 38357, 38366, 28739, 28505, 28711,
  10090. 28696, 28668, 28039, 28025, 28254, 28590, 28687, 28408, 28527, 28150,
  10091. 28543, 28678, 28576, 28683, 28775, 28740, 28677, 28535, 28704, 28703,
  10092. 28722, 28712, 28765, 39467, 36999, 36885, 37008, 23656, 24371, 23285,
  10093. 23255, 23296, 23149, 23304, 23372, 23207, 23291, 23307, 23329, 23338,
  10094. 23321, 39380, 39391, 39385, 39478, 39515, 39377, 39384, 39501, 39498,
  10095. 39394, 39530, 39439, 39437, 39429, 39490, 39469, 39446, 39489, 39470,
  10096. 39480, {f: 2, c: 39491}, 39503, 39525, 39524, 31993, 32006, 32002,
  10097. {f: 2, c: 32007}, 32394, 32028, 32021, 32019, 32058, 32050, 32049, 32272,
  10098. 32060, 32064, 32063, 32093, 32078, 32115, 32134, 32131, 32136, 32190,
  10099. 32186, 32203, 32212, 32196, 32158, 32172, 32185, 32163, 32176, 32199,
  10100. 32217, 32215, 32249, 32242, 32354, 32230, 32246, 32241, 32267, 32225,
  10101. 32265, 32285, 32287, 32286, 32301, 32266, 32273, 32381, 32313, 32309,
  10102. 32306, 32326, 32325, 32392, 32346, 32338, 32366, 32382, 32368, 32367,
  10103. 32408, 29859, 29771, 29903, 38922, 29885, 29759, 29833, 29862, 29908,
  10104. 29914, 38873, 38878, 38876, 27050, 27370, 26776, 26838, 27141, 26783,
  10105. 27355, 27379, 27368, 27359, 27273, 26895, 27208, 26984, 27071, 27194,
  10106. 27292, 27410, 27422, 27357, 27111, 27407, 27414, 27372, 27354, 27384,
  10107. 27315, 27367, 27299, 27347, 27358, 27556, 27550, 27566, 27563, 27567,
  10108. 36564, 36571, 36594, 36603, 36708, 36601, 36604, 36587, 36580, 36706,
  10109. 36602, 36606, 36618, 36615, 36613, 36626, 36646, {f: 2, c: 36638}, 36636,
  10110. 36659, 36678, 36692, 25108, 25127, 29964, 26311, 26308, 26249, 26326,
  10111. 36033, 36016, 36026, 36029, 36100, 36018, 36037, 36112, 36049, 36058,
  10112. 36053, 36075, 36071, 36091, 35224, 35244, 35233, 35263, 35238, 35247,
  10113. 35250, 35255, 27647, 27660, 27692, 29272, 26407, 33110, 33242, 33051,
  10114. 33214, 33121, 33231, 27487, {f: 2, c: 39086}, 39094, 39100, 39110, 39112,
  10115. 36674, 40783, 26005, 29036, 29010, 29079, 29121, 29148, 29182, 31152,
  10116. 31118, 31146, 25055, 24932, 25059, 25095, 28585, 30959, 30893, 30824,
  10117. 30904, 31018, 31025, 30820, 30973, 30951, 30947, 40853, 30616, 30558,
  10118. 30652, 32646, 32648, {f: 3, c: 37330}, 37337, 37335, 37333, 37367, 37351,
  10119. 37348, 37702, 37365, 37369, 37384, 37414, 37445, 37393, 37392, 37377,
  10120. 37415, 37380, 37413, 37376, 37434, 37478, 37431, 37427, 37461, 37437,
  10121. 37432, 37470, {f: 2, c: 37484}, 37439, 37984, 37424, 37449, 37448, 37453,
  10122. 37422, 37433, 37944, 37548, 37536, 37498, 37546, 37614, 37583, 37891,
  10123. 37603, 37946, 37553, 37542, 37799, 37526, 37580, 37545, 37877, 37523,
  10124. 37503, 37801, 37530, 37658, 37547, 37507, 37899, 37544, 37539, 37906,
  10125. 37688, 37617, 37847, 37605, 37616, 37615, 37608, 37564, 37597, 37622,
  10126. {f: 2, c: 37926}, 37571, 37599, 37606, 37650, 37638, 37737, 37659, 37696,
  10127. 37633, 37653, 37678, 37699, {f: 2, c: 37639}, 37663, 37657, 37733, 37703,
  10128. 37750, 37716, 37732, 37802, 37744, 37764, 37860, 37848, 37928, 37767,
  10129. 37836, 37784, 37816, 37823, 37798, 37808, 37813, 37964, 37858,
  10130. {f: 2, c: 37852}, 37837, 37854, 37827, 37831, 37841, 37908, 37917, 37879,
  10131. 37989, 37907, 37997, 37920, 38009, 37881, 37913, 37962, 37938, 37951,
  10132. 37972, 37987, 37758, 31329, 40169, 40182, 40199, 40198, 40227, 40327,
  10133. 40469, 40221, 40223, 40421, 40239, 40409, 40240, 40258, 40478, 40275,
  10134. 40477, 40288, 40274, 40435, 40284, 40289, 40339, 40298, 40303, 40329,
  10135. 40344, 40346, 40384, 40357, 40361, 40386, 40380, 40474, 40403, 40410,
  10136. 40431, 40422, 40434, 40440, 40460, 40442, 40475, 30308, 30296, 30311,
  10137. 30210, {f: 2, c: 30278}, 30281, 30238, 30267, {f: 2, c: 30317}, 30313,
  10138. 30322, 31431, 31414, 35168, 35123, 35165, 35143, 35128, 35172, 30392,
  10139. 32814, 32812, 32889, 32885, 38919, {f: 2, c: 38926}, 38945, 38940, 28481,
  10140. 38950, 38967, 38990, 38995, 39027, 39010, 39001, 39013, 39020, 39024,
  10141. 34787, 34822, 34566, 34851, 34806, 34554, 34799, 34692, 34832, 34760,
  10142. 34833, 34747, 34766, 32588, 31716, 31591, 31849, 31731, 31744, 31691,
  10143. 31836, 31774, 31787, 31779, 31850, 31839, 33380, 33387, 35018, 32677,
  10144. 31986, 31990, 31965, 32310, 40617, 36274, 37317, 37315, 40570, 36489,
  10145. 36428, 36498, 36474, 36437, 36506, 36491, 36499, 36497, 36513, 36451,
  10146. 36522, 36518, 35316, 35318, 38746, 38722, 38717, 38724, 40788, 40799,
  10147. 40793, 40800, 40796, 40806, 40812, 40810, 40823, [12236, 40701], 40703,
  10148. 40713, 35726, 38014, 37864, 39799, 39796, 39809, 39811, 39822, 40056,
  10149. 31308, 39826, 40031, 39824, 39853, 39834, 39850, 39838, 40045, 39851,
  10150. 39837, 40024, 39873, 40058, 39985, 39993, 39971, 39991, 39872, 39882,
  10151. 39879, 39933, 39894, {f: 2, c: 39914}, 39905, 39908, 39911, 39901, 39906,
  10152. 39920, 39899, 39924, 39892, 40029, 39944, 39952, 39949, 39954, 39945,
  10153. 39935, 39968, 39986, 39981, 39976, 39973, 39977, 39987, 39998, 40008,
  10154. 39995, 39989, 40005, 40022, 40020, 40018, 40039, 38851, 38845, 38857,
  10155. 40379, 39631, 39638, 39637, 39768, 39758, 39255, 39260, 39714, 40695,
  10156. 40690, 35180, 38342, 37686, 24390, 34068, 32404, 40803, 22137, 40725,
  10157. 22081, 39662, 35079, 31296, 39091, 38308, 39693, 36852, 24409, 31339,
  10158. 39138, 20642, 34193, 20760, 25458, 21067, 30543, 32397, 26310, 30637,
  10159. [12228, 40565], 22217, 40692, 28635, 25054, 30663, 28720, 40629, 34890,
  10160. 38370, 38854, 31844, 32308, 38822, 40623, 22220, 39089, 27311, 32590,
  10161. 31984, 20418, 32363, 40569, 22190, 39706, 33903, 31142, 31858, 39634,
  10162. 38587, 32251, 35069, 30787, {f: 10, c: 8560}, {f: 2, c: 714}, 729, 8211,
  10163. 8213, 8229, 8245, 8453, 8457, {f: 4, c: 8598}, 8725, 8735, 8739, 8786,
  10164. {f: 2, c: 8806}, 8895, {f: 36, c: 9552}, {f: 15, c: 9601}, {f: 3, c: 9619},
  10165. {f: 2, c: 9660}, {f: 4, c: 9698}, 9737, 8853, 12306, {f: 2, c: 12317},
  10166. {f: 9, c: 12321}, 12963, {f: 2, c: 13198}, {f: 3, c: 13212}, 13217, 13252,
  10167. 13262, {f: 2, c: 13265}, 13269, 65072, 65506, 65508, 8481, 12849, 8208,
  10168. 12540, {f: 2, c: 12443}, {f: 2, c: 12541}, 12294, {f: 2, c: 12445},
  10169. {f: 10, c: 65097}, {f: 4, c: 65108}, {f: 14, c: 65113}, {f: 4, c: 65128},
  10170. 12350, {f: 12, c: 12272}, 19970, {f: 3, c: 19972}, 19983, 19986, 19991,
  10171. {f: 3, c: 19999}, 20003, 20006, 20009, {f: 2, c: 20014}, 20017, 20019,
  10172. 20021, 20023, 20028, {f: 3, c: 20032}, 20036, 20038, 20042, 20049, 20053,
  10173. 20055, {f: 2, c: 20058}, {f: 4, c: 20066}, {f: 2, c: 20071},
  10174. {f: 6, c: 20074}, 20082, {f: 10, c: 20084}, {f: 3, c: 20095},
  10175. {f: 2, c: 20099}, [12037, 20101], 20103, 20106, 20112, {f: 2, c: 20118},
  10176. 20121, {f: 2, c: 20124}, 20131, 20138, {f: 3, c: 20143}, 20148,
  10177. {f: 4, c: 20150}, {f: 3, c: 20156}, 20168, 20172, {f: 2, c: 20175}, 20178,
  10178. {f: 3, c: 20186}, 20192, 20194, {f: 2, c: 20198}, 20201, {f: 3, c: 20205},
  10179. 20209, 20212, {f: 3, c: 20216}, 20220, 20222, 20224, {f: 7, c: 20226},
  10180. {f: 2, c: 20235}, {f: 5, c: 20242}, {f: 2, c: 20252}, 20257, 20259,
  10181. {f: 2, c: 20264}, {f: 3, c: 20268}, 20273, 20275, 20277, 20279, 20281,
  10182. 20283, {f: 5, c: 20286}, {f: 2, c: 20292}, {f: 6, c: 20295}, 20306, 20308,
  10183. 20310, {f: 2, c: 20321}, 20326, 20328, {f: 2, c: 20330}, {f: 2, c: 20333},
  10184. {f: 2, c: 20337}, 20341, {f: 4, c: 20343}, 20349, {f: 3, c: 20352}, 20357,
  10185. 20359, 20362, 20364, 20366, 20368, {f: 2, c: 20370}, 20373,
  10186. {f: 3, c: 20376}, 20380, {f: 2, c: 20382}, {f: 2, c: 20385}, 20388, 20395,
  10187. 20397, {f: 5, c: 20400}, {f: 9, c: 20406}, {f: 2, c: 20416},
  10188. {f: 4, c: 20422}, {f: 3, c: 20427}, {f: 5, c: 20434}, 20441, 20443, 20450,
  10189. {f: 2, c: 20452}, 20455, {f: 2, c: 20459}, 20464, 20466, {f: 4, c: 20468},
  10190. 20473, {f: 3, c: 20475}, 20479, {f: 5, c: 20481}, {f: 2, c: 20487}, 20490,
  10191. 20494, 20496, 20499, {f: 3, c: 20501}, 20507, {f: 2, c: 20509}, 20512,
  10192. {f: 3, c: 20514}, 20519, {f: 11, c: 20527}, 20539, 20541, {f: 4, c: 20543},
  10193. {f: 3, c: 20548}, {f: 2, c: 20554}, 20557, {f: 5, c: 20560},
  10194. {f: 4, c: 20566}, 20571, {f: 8, c: 20573}, {f: 6, c: 20582},
  10195. {f: 7, c: 20589}, {f: 3, c: 20600}, {f: 2, c: 20604}, {f: 4, c: 20609},
  10196. {f: 2, c: 20614}, {f: 4, c: 20617}, {f: 8, c: 20622}, 20631,
  10197. {f: 8, c: 20634}, 20644, 20646, {f: 2, c: 20650}, {f: 4, c: 20654}, 20662,
  10198. {f: 2, c: 20664}, {f: 2, c: 20668}, {f: 3, c: 20671}, {f: 2, c: 20675},
  10199. {f: 3, c: 20678}, {f: 5, c: 20682}, 20688, {f: 3, c: 20690},
  10200. {f: 3, c: 20695}, {f: 3, c: 20699}, {f: 6, c: 20703}, {f: 3, c: 20713},
  10201. {f: 4, c: 20719}, 20724, {f: 3, c: 20726}, 20730, {f: 4, c: 20732}, 20737,
  10202. 20739, 20741, 20746, {f: 4, c: 20748}, 20753, 20755, {f: 2, c: 20758},
  10203. {f: 6, c: 20761}, 20768, {f: 8, c: 20770}, {f: 7, c: 20779},
  10204. {f: 4, c: 20787}, {f: 2, c: 20792}, {f: 2, c: 20797}, 20802, 20807, 20810,
  10205. 20812, {f: 3, c: 20814}, 20819, {f: 3, c: 20823}, 20827, {f: 5, c: 20829},
  10206. {f: 2, c: 20835}, {f: 2, c: 20838}, 20842, 20847, 20850, 20858,
  10207. {f: 2, c: 20862}, {f: 2, c: 20867}, {f: 2, c: 20870}, {f: 2, c: 20874},
  10208. {f: 4, c: 20878}, {f: 2, c: 20883}, 20888, 20890, {f: 3, c: 20893}, 20897,
  10209. 20899, {f: 5, c: 20902}, {f: 2, c: 20909}, 20916, {f: 3, c: 20920},
  10210. {f: 2, c: 20926}, {f: 3, c: 20929}, 20933, 20936, 20938, 20942, 20944,
  10211. {f: 9, c: 20946}, 20956, {f: 2, c: 20958}, {f: 2, c: 20962},
  10212. {f: 6, c: 20965}, 20972, 20974, 20978, 20980, 20983, 20990,
  10213. {f: 2, c: 20996}, 21001, {f: 2, c: 21003}, {f: 2, c: 21007},
  10214. {f: 3, c: 21011}, 21020, {f: 2, c: 21022}, {f: 3, c: 21025},
  10215. {f: 3, c: 21029}, 21034, 21036, 21039, {f: 2, c: 21041}, {f: 2, c: 21044},
  10216. 21052, 21054, {f: 2, c: 21061}, {f: 2, c: 21064}, {f: 2, c: 21070},
  10217. {f: 2, c: 21074}, 21077, {f: 4, c: 21079}, 21085, {f: 2, c: 21087},
  10218. {f: 3, c: 21090}, 21094, 21096, {f: 3, c: 21099}, {f: 2, c: 21104}, 21107,
  10219. {f: 7, c: 21110}, 21118, 21120, {f: 3, c: 21124}, 21131, {f: 2, c: 21134},
  10220. 21138, {f: 7, c: 21140}, 21148, {f: 4, c: 21156}, {f: 3, c: 21166},
  10221. {f: 10, c: 21172}, 21184, 21186, {f: 3, c: 21188}, 21192, 21194,
  10222. {f: 4, c: 21196}, 21201, {f: 2, c: 21203}, 21207, 21210, 21212,
  10223. {f: 2, c: 21216}, 21219, {f: 11, c: 21221}, {f: 3, c: 21234},
  10224. {f: 2, c: 21238}, {f: 3, c: 21243}, {f: 4, c: 21249}, 21255,
  10225. {f: 4, c: 21257}, 21262, {f: 4, c: 21265}, 21272, {f: 2, c: 21275},
  10226. {f: 2, c: 21278}, 21282, {f: 2, c: 21284}, {f: 3, c: 21287},
  10227. {f: 2, c: 21291}, 21296, {f: 6, c: 21298}, [12054, 21304],
  10228. {f: 2, c: 21308}, 21314, 21316, 21318, {f: 3, c: 21323}, 21328,
  10229. {f: 2, c: 21336}, 21339, 21341, 21349, 21352, 21354, {f: 2, c: 21356},
  10230. 21362, 21366, 21369, {f: 4, c: 21371}, {f: 2, c: 21376}, 21379,
  10231. {f: 2, c: 21383}, 21386, {f: 7, c: 21390}, {f: 2, c: 21398},
  10232. {f: 2, c: 21403}, 21406, 21409, 21412, 21415, {f: 3, c: 21418},
  10233. {f: 3, c: 21423}, 21427, 21429, {f: 4, c: 21431}, {f: 3, c: 21436}, 21440,
  10234. {f: 4, c: 21444}, {f: 3, c: 21454}, {f: 2, c: 21458}, 21461, 21466,
  10235. {f: 3, c: 21468}, 21473, 21479, 21492, 21498, {f: 3, c: 21502}, 21506,
  10236. 21509, 21511, 21515, 21524, {f: 3, c: 21528}, 21532, 21538,
  10237. {f: 2, c: 21540}, 21546, 21552, 21555, {f: 2, c: 21558}, 21562, 21565,
  10238. 21567, {f: 2, c: 21569}, {f: 2, c: 21572}, 21575, 21577, {f: 4, c: 21580},
  10239. 21585, 21594, {f: 5, c: 21597}, 21603, 21605, 21607, {f: 8, c: 21609},
  10240. 21620, {f: 2, c: 21625}, {f: 2, c: 21630}, 21633, 21635, 21637,
  10241. {f: 4, c: 21639}, 21645, 21649, 21651, {f: 2, c: 21655}, 21660,
  10242. {f: 5, c: 21662}, 21669, 21678, 21680, 21682, {f: 3, c: 21685},
  10243. {f: 2, c: 21689}, 21694, 21699, 21701, {f: 2, c: 21706}, 21718, 21720,
  10244. 21723, 21728, {f: 3, c: 21730}, {f: 2, c: 21739}, {f: 3, c: 21743},
  10245. {f: 6, c: 21748}, 21755, 21758, 21760, {f: 2, c: 21762}, 21765, 21768,
  10246. {f: 5, c: 21770}, {f: 2, c: 21778}, {f: 6, c: 21781}, {f: 4, c: 21788},
  10247. 21793, {f: 2, c: 21797}, {f: 2, c: 21800}, 21803, 21805, 21810,
  10248. {f: 3, c: 21812}, {f: 4, c: 21816}, 21821, 21824, 21826, 21829,
  10249. {f: 2, c: 21831}, {f: 4, c: 21835}, {f: 2, c: 21841}, 21844,
  10250. {f: 5, c: 21847}, 21853, {f: 2, c: 21855}, {f: 2, c: 21858},
  10251. {f: 2, c: 21864}, 21867, {f: 6, c: 21871}, {f: 2, c: 21881}, 21885, 21887,
  10252. {f: 2, c: 21893}, {f: 3, c: 21900}, 21904, {f: 2, c: 21906},
  10253. {f: 3, c: 21909}, {f: 2, c: 21914}, 21918, {f: 7, c: 21920},
  10254. {f: 2, c: 21928}, 21931, 21933, {f: 2, c: 21935}, 21940, 21942, 21944,
  10255. 21946, 21948, {f: 5, c: 21951}, 21960, {f: 2, c: 21962}, {f: 2, c: 21967},
  10256. 21973, {f: 3, c: 21975}, 21979, 21982, 21984, 21986, 21991,
  10257. {f: 2, c: 21997}, {f: 2, c: 22000}, 22004, {f: 5, c: 22008}, 22015,
  10258. {f: 4, c: 22018}, 22023, {f: 2, c: 22026}, {f: 4, c: 22032}, 22037,
  10259. {f: 2, c: 22041}, 22045, {f: 3, c: 22048}, {f: 2, c: 22053}, 22056,
  10260. {f: 2, c: 22058}, 22067, 22071, 22074, {f: 3, c: 22076}, 22080,
  10261. {f: 10, c: 22082}, {f: 5, c: 22095}, {f: 2, c: 22101}, {f: 2, c: 22106},
  10262. {f: 2, c: 22110}, 22113, 22115, 22119, {f: 2, c: 22125}, 22128, 22131,
  10263. 22133, 22135, 22138, {f: 3, c: 22141}, {f: 4, c: 22145}, {f: 4, c: 22152},
  10264. 22157, {f: 3, c: 22160}, 22164, {f: 3, c: 22166}, {f: 9, c: 22170},
  10265. {f: 2, c: 22180}, 22183, {f: 5, c: 22185}, {f: 3, c: 22192}, 22197,
  10266. {f: 4, c: 22200}, {f: 3, c: 22205}, {f: 2, c: 22211}, {f: 2, c: 22214},
  10267. 22219, {f: 4, c: 22221}, {f: 2, c: 22226}, {f: 2, c: 22229},
  10268. {f: 2, c: 22232}, 22236, 22243, {f: 6, c: 22245}, 22252, {f: 2, c: 22254},
  10269. {f: 2, c: 22258}, {f: 3, c: 22262}, {f: 2, c: 22267}, {f: 3, c: 22272},
  10270. 22277, 22284, {f: 4, c: 22286}, {f: 2, c: 22292}, 22295, {f: 3, c: 22297},
  10271. {f: 2, c: 22301}, {f: 3, c: 22304}, {f: 4, c: 22308}, 22315,
  10272. {f: 2, c: 22321}, {f: 5, c: 22324}, {f: 2, c: 22332}, 22335, 22337,
  10273. {f: 4, c: 22339}, {f: 2, c: 22344}, 22347, {f: 5, c: 22354},
  10274. {f: 2, c: 22360}, {f: 2, c: 22370}, 22373, 22375, 22380, 22382,
  10275. {f: 3, c: 22384}, {f: 2, c: 22388}, {f: 3, c: 22392}, {f: 5, c: 22397},
  10276. {f: 4, c: 22407}, {f: 5, c: 22413}, {f: 7, c: 22420}, {f: 4, c: 22428},
  10277. 22437, 22440, 22442, 22444, {f: 3, c: 22447}, 22451, {f: 3, c: 22453},
  10278. {f: 9, c: 22457}, {f: 7, c: 22468}, {f: 2, c: 22476}, {f: 2, c: 22480},
  10279. 22483, {f: 2, c: 22486}, {f: 2, c: 22491}, 22494, {f: 2, c: 22498},
  10280. {f: 8, c: 22501}, 22510, {f: 4, c: 22512}, {f: 2, c: 22517},
  10281. {f: 2, c: 22523}, {f: 2, c: 22526}, 22529, {f: 2, c: 22531},
  10282. {f: 2, c: 22536}, 22540, {f: 3, c: 22542}, {f: 3, c: 22546},
  10283. {f: 2, c: 22551}, {f: 3, c: 22554}, 22559, {f: 2, c: 22562},
  10284. {f: 5, c: 22565}, {f: 4, c: 22571}, {f: 2, c: 22578}, {f: 14, c: 22582},
  10285. {f: 5, c: 22597}, 22606, 22608, 22611, {f: 2, c: 22613}, {f: 5, c: 22617},
  10286. {f: 3, c: 22623}, 22627, {f: 5, c: 22630}, {f: 8, c: 22637},
  10287. {f: 3, c: 22646}, {f: 4, c: 22650}, 22655, 22658, 22660, {f: 3, c: 22662},
  10288. {f: 7, c: 22667}, {f: 5, c: 22676}, 22683, 22685, {f: 8, c: 22688},
  10289. {f: 4, c: 22698}, {f: 4, c: 22703}, {f: 7, c: 22708}, 22717,
  10290. {f: 2, c: 22719}, {f: 3, c: 22722}, 22726, {f: 9, c: 22728}, 22738, 22740,
  10291. {f: 2, c: 22742}, {f: 3, c: 22747}, 22753, 22755, {f: 4, c: 22757}, 22762,
  10292. 22765, {f: 2, c: 22769}, {f: 2, c: 22772}, {f: 2, c: 22775},
  10293. {f: 2, c: 22779}, {f: 4, c: 22782}, 22787, {f: 2, c: 22789},
  10294. {f: 2, c: 22792}, [12066, 22794], {f: 2, c: 22795}, 22798,
  10295. {f: 4, c: 22800}, {f: 2, c: 22807}, 22811, {f: 2, c: 22813},
  10296. {f: 2, c: 22816}, 22819, 22822, 22824, 22828, 22832, {f: 2, c: 22834},
  10297. {f: 2, c: 22837}, 22843, 22845, {f: 2, c: 22847}, 22851, {f: 2, c: 22853},
  10298. 22858, {f: 2, c: 22860}, 22864, {f: 2, c: 22866}, 22873, {f: 5, c: 22875},
  10299. 22881, {f: 2, c: 22883}, {f: 3, c: 22886}, 22891, 22893, {f: 4, c: 22895},
  10300. 22901, 22903, {f: 3, c: 22906}, {f: 3, c: 22910}, 22917, 22921,
  10301. {f: 2, c: 22923}, {f: 4, c: 22926}, {f: 2, c: 22932}, 22936,
  10302. {f: 3, c: 22938}, {f: 4, c: 22943}, {f: 2, c: 22950}, {f: 2, c: 22956},
  10303. {f: 2, c: 22960}, {f: 6, c: 22963}, 22970, {f: 2, c: 22972},
  10304. {f: 7, c: 22975}, {f: 3, c: 22983}, {f: 4, c: 22988}, {f: 2, c: 22997},
  10305. 23001, 23003, {f: 5, c: 23006}, 23012, {f: 2, c: 23014}, {f: 3, c: 23017},
  10306. {f: 12, c: 23021}, 23034, {f: 3, c: 23036}, 23040, 23042, {f: 2, c: 23050},
  10307. {f: 4, c: 23053}, 23058, {f: 4, c: 23060}, {f: 3, c: 23065},
  10308. {f: 2, c: 23069}, {f: 2, c: 23073}, 23076, {f: 3, c: 23078},
  10309. {f: 7, c: 23082}, 23091, 23093, {f: 5, c: 23095}, {f: 3, c: 23101},
  10310. {f: 4, c: 23106}, {f: 2, c: 23111}, {f: 10, c: 23115}, {f: 4, c: 23126},
  10311. {f: 7, c: 23131}, {f: 3, c: 23139}, {f: 2, c: 23144}, {f: 2, c: 23147},
  10312. {f: 6, c: 23150}, {f: 2, c: 23160}, {f: 4, c: 23163}, {f: 18, c: 23168},
  10313. {f: 7, c: 23187}, {f: 11, c: 23196}, {f: 2, c: 23208}, {f: 7, c: 23211},
  10314. 23220, {f: 2, c: 23222}, {f: 4, c: 23225}, {f: 2, c: 23231},
  10315. {f: 6, c: 23235}, {f: 2, c: 23242}, {f: 5, c: 23245}, 23251, 23253,
  10316. {f: 3, c: 23257}, {f: 3, c: 23261}, 23266, {f: 2, c: 23268},
  10317. {f: 2, c: 23271}, 23274, {f: 5, c: 23276}, {f: 3, c: 23282},
  10318. {f: 5, c: 23286}, {f: 4, c: 23292}, {f: 7, c: 23297}, 23306,
  10319. {f: 9, c: 23309}, 23320, {f: 7, c: 23322}, {f: 8, c: 23330},
  10320. {f: 5, c: 23339}, 23345, 23347, {f: 2, c: 23349}, {f: 7, c: 23353},
  10321. {f: 11, c: 23361}, {f: 3, c: 23373}, 23378, 23382, 23390, {f: 2, c: 23392},
  10322. {f: 2, c: 23399}, {f: 3, c: 23405}, 23410, 23412, {f: 2, c: 23414}, 23417,
  10323. {f: 2, c: 23419}, 23422, 23426, 23430, 23434, {f: 2, c: 23437},
  10324. {f: 3, c: 23440}, 23444, 23446, 23455, {f: 3, c: 23463}, {f: 4, c: 23468},
  10325. {f: 2, c: 23473}, 23479, {f: 3, c: 23482}, {f: 2, c: 23488}, 23491,
  10326. {f: 4, c: 23496}, {f: 3, c: 23501}, 23505, {f: 9, c: 23508}, 23520, 23523,
  10327. 23530, 23533, 23535, {f: 4, c: 23537}, 23543, {f: 2, c: 23549}, 23552,
  10328. {f: 2, c: 23554}, 23557, 23564, 23568, {f: 2, c: 23570}, 23575, 23577,
  10329. 23579, {f: 4, c: 23582}, 23587, 23590, {f: 4, c: 23592}, {f: 4, c: 23597},
  10330. {f: 2, c: 23602}, {f: 2, c: 23605}, {f: 2, c: 23619}, {f: 2, c: 23622},
  10331. {f: 2, c: 23628}, {f: 3, c: 23634}, {f: 3, c: 23638}, {f: 4, c: 23642},
  10332. 23647, 23655, {f: 3, c: 23657}, 23661, 23664, {f: 7, c: 23666},
  10333. {f: 4, c: 23675}, 23680, {f: 5, c: 23683}, {f: 3, c: 23689},
  10334. {f: 2, c: 23694}, {f: 2, c: 23698}, 23701, {f: 4, c: 23709},
  10335. {f: 5, c: 23716}, 23722, {f: 3, c: 23726}, 23730, 23732, 23734,
  10336. {f: 4, c: 23737}, 23742, 23744, {f: 2, c: 23746}, {f: 6, c: 23749},
  10337. {f: 6, c: 23756}, {f: 6, c: 23763}, {f: 7, c: 23770}, {f: 2, c: 23778},
  10338. 23783, 23785, {f: 2, c: 23787}, {f: 2, c: 23790}, {f: 3, c: 23793}, 23797,
  10339. {f: 4, c: 23799}, 23804, {f: 4, c: 23806}, {f: 2, c: 23812},
  10340. {f: 5, c: 23816}, {f: 5, c: 23823}, 23829, {f: 3, c: 23832},
  10341. {f: 2, c: 23836}, {f: 5, c: 23839}, 23845, 23848, {f: 2, c: 23850},
  10342. {f: 5, c: 23855}, {f: 8, c: 23861}, {f: 8, c: 23871}, {f: 2, c: 23880},
  10343. {f: 3, c: 23885}, {f: 7, c: 23889}, {f: 2, c: 23897}, 23900,
  10344. {f: 11, c: 23902}, 23914, {f: 2, c: 23917}, {f: 4, c: 23920},
  10345. {f: 12, c: 23925}, 23939, {f: 2, c: 23941}, {f: 15, c: 23944}, 23960,
  10346. {f: 3, c: 23962}, {f: 2, c: 23966}, {f: 6, c: 23969}, {f: 15, c: 23976},
  10347. 23993, 23995, {f: 8, c: 23997}, {f: 5, c: 24006}, 24012, {f: 4, c: 24014},
  10348. 24019, {f: 6, c: 24021}, 24028, {f: 2, c: 24031}, {f: 2, c: 24035}, 24042,
  10349. {f: 2, c: 24044}, {f: 2, c: 24053}, {f: 5, c: 24056}, {f: 2, c: 24063},
  10350. 24068, 24071, {f: 3, c: 24073}, {f: 2, c: 24077}, {f: 2, c: 24082}, 24087,
  10351. {f: 7, c: 24094}, {f: 3, c: 24104}, 24108, {f: 2, c: 24111}, 24114,
  10352. {f: 2, c: 24116}, {f: 2, c: 24121}, {f: 2, c: 24126}, 24129,
  10353. {f: 6, c: 24134}, {f: 7, c: 24141}, 24150, {f: 2, c: 24153},
  10354. {f: 2, c: 24156}, 24160, {f: 7, c: 24164}, {f: 5, c: 24173}, 24181, 24183,
  10355. {f: 3, c: 24193}, 24197, {f: 2, c: 24200}, {f: 3, c: 24204}, 24210, 24216,
  10356. 24219, 24221, {f: 4, c: 24225}, {f: 3, c: 24232}, 24236, {f: 5, c: 24238},
  10357. 24244, {f: 4, c: 24250}, {f: 10, c: 24255}, {f: 6, c: 24267},
  10358. {f: 2, c: 24276}, {f: 4, c: 24279}, {f: 3, c: 24284}, {f: 4, c: 24292},
  10359. 24297, 24299, {f: 6, c: 24301}, 24309, {f: 2, c: 24312}, {f: 3, c: 24315},
  10360. {f: 3, c: 24325}, 24329, {f: 3, c: 24332}, 24336, 24338, 24340, 24342,
  10361. {f: 2, c: 24345}, {f: 3, c: 24348}, {f: 4, c: 24353}, 24360,
  10362. {f: 2, c: 24363}, 24366, 24368, 24370, 24372, {f: 3, c: 24374}, 24379,
  10363. {f: 3, c: 24381}, {f: 5, c: 24385}, 24391, {f: 3, c: 24393}, 24397, 24399,
  10364. 24401, 24404, {f: 3, c: 24410}, {f: 3, c: 24414}, 24419, 24421,
  10365. {f: 2, c: 24423}, 24427, {f: 2, c: 24430}, 24434, {f: 3, c: 24436}, 24440,
  10366. 24442, {f: 3, c: 24445}, 24451, 24454, {f: 3, c: 24461}, {f: 2, c: 24467},
  10367. 24470, {f: 2, c: 24474}, 24477, 24479, {f: 6, c: 24482}, {f: 2, c: 24491},
  10368. {f: 6, c: 24495}, 24502, 24504, {f: 2, c: 24506}, {f: 5, c: 24510},
  10369. {f: 2, c: 24519}, {f: 2, c: 24522}, 24526, {f: 3, c: 24531},
  10370. {f: 3, c: 24538}, {f: 2, c: 24542}, {f: 2, c: 24546}, {f: 2, c: 24549},
  10371. {f: 2, c: 24552}, 24556, {f: 2, c: 24559}, {f: 3, c: 24562},
  10372. {f: 2, c: 24566}, {f: 2, c: 24569}, 24572, {f: 3, c: 24583},
  10373. {f: 2, c: 24587}, {f: 2, c: 24592}, 24595, {f: 2, c: 24599}, 24602,
  10374. {f: 2, c: 24606}, {f: 3, c: 24610}, {f: 3, c: 24620}, {f: 5, c: 24624},
  10375. {f: 5, c: 24630}, {f: 2, c: 24637}, 24640, {f: 7, c: 24644}, 24652,
  10376. {f: 2, c: 24654}, 24657, {f: 2, c: 24659}, {f: 3, c: 24662},
  10377. {f: 2, c: 24667}, {f: 4, c: 24670}, {f: 2, c: 24677}, 24686,
  10378. {f: 2, c: 24689}, {f: 2, c: 24692}, 24695, 24702, {f: 3, c: 24704},
  10379. {f: 4, c: 24709}, {f: 2, c: 24714}, {f: 4, c: 24718}, 24723, 24725,
  10380. {f: 3, c: 24727}, 24732, 24734, {f: 2, c: 24737}, {f: 2, c: 24740}, 24743,
  10381. {f: 2, c: 24745}, 24750, 24752, 24755, 24759, {f: 2, c: 24761},
  10382. {f: 8, c: 24765}, {f: 3, c: 24775}, {f: 5, c: 24780}, {f: 3, c: 24786},
  10383. {f: 2, c: 24790}, 24793, 24795, 24798, {f: 4, c: 24802}, 24810, 24821,
  10384. {f: 2, c: 24823}, {f: 4, c: 24828}, {f: 4, c: 24834}, 24839,
  10385. {f: 3, c: 24842}, {f: 5, c: 24848}, {f: 4, c: 24854}, {f: 2, c: 24861},
  10386. {f: 2, c: 24865}, 24869, {f: 3, c: 24872}, {f: 8, c: 24876},
  10387. {f: 2, c: 24885}, {f: 6, c: 24888}, {f: 8, c: 24896}, 24905, 24909,
  10388. {f: 2, c: 24911}, {f: 3, c: 24914}, {f: 2, c: 24918}, 24921,
  10389. {f: 2, c: 24923}, 24926, {f: 2, c: 24928}, {f: 2, c: 24933}, 24937,
  10390. {f: 2, c: 24940}, 24943, {f: 2, c: 24945}, 24948, {f: 10, c: 24952},
  10391. {f: 7, c: 24963}, {f: 2, c: 24972}, 24975, 24979, {f: 5, c: 24981},
  10392. {f: 2, c: 24987}, {f: 6, c: 24990}, {f: 2, c: 24997}, 25002, 25005,
  10393. {f: 3, c: 25007}, {f: 3, c: 25011}, {f: 6, c: 25016}, {f: 3, c: 25023},
  10394. {f: 4, c: 25027}, {f: 4, c: 25037}, 25043, {f: 9, c: 25045},
  10395. {f: 3, c: 25056}, {f: 2, c: 25060}, 25063, {f: 9, c: 25065},
  10396. {f: 2, c: 25075}, 25081, 25083, 25085, {f: 5, c: 25089}, 25097, 25107,
  10397. 25113, {f: 3, c: 25116}, 25120, 25123, 25126, {f: 2, c: 25128}, 25131,
  10398. 25133, 25135, 25137, 25141, [12094, 25142], {f: 5, c: 25144}, 25154,
  10399. {f: 3, c: 25156}, 25162, {f: 2, c: 25167}, {f: 3, c: 25173},
  10400. {f: 2, c: 25177}, {f: 7, c: 25180}, {f: 2, c: 25188}, 25192,
  10401. {f: 2, c: 25201}, {f: 2, c: 25204}, {f: 2, c: 25207}, {f: 2, c: 25210},
  10402. 25213, {f: 3, c: 25217}, {f: 4, c: 25221}, {f: 6, c: 25227}, 25236, 25241,
  10403. {f: 3, c: 25244}, 25251, {f: 2, c: 25254}, {f: 2, c: 25257},
  10404. {f: 4, c: 25261}, {f: 3, c: 25266}, {f: 3, c: 25270}, 25274, 25278,
  10405. {f: 2, c: 25280}, 25283, 25291, 25295, 25297, 25301, {f: 2, c: 25309},
  10406. {f: 2, c: 25312}, 25316, {f: 2, c: 25322}, 25328, 25330, 25333,
  10407. {f: 4, c: 25336}, 25344, {f: 4, c: 25347}, {f: 4, c: 25354},
  10408. {f: 2, c: 25359}, {f: 4, c: 25362}, {f: 3, c: 25367}, 25372,
  10409. {f: 2, c: 25382}, 25385, {f: 3, c: 25388}, {f: 2, c: 25392},
  10410. {f: 6, c: 25395}, {f: 2, c: 25403}, {f: 3, c: 25407}, 25412,
  10411. {f: 2, c: 25415}, 25418, {f: 4, c: 25425}, {f: 8, c: 25430}, 25440,
  10412. {f: 3, c: 25444}, 25450, 25452, {f: 2, c: 25455}, {f: 3, c: 25459},
  10413. {f: 2, c: 25464}, {f: 4, c: 25468}, 25473, {f: 2, c: 25477}, 25483, 25485,
  10414. 25489, {f: 3, c: 25491}, 25495, {f: 7, c: 25497}, 25505, 25508, 25510,
  10415. 25515, 25519, {f: 2, c: 25521}, {f: 2, c: 25525}, 25529, 25531, 25533,
  10416. 25535, {f: 3, c: 25537}, 25541, {f: 2, c: 25543}, {f: 3, c: 25546}, 25553,
  10417. {f: 3, c: 25555}, {f: 3, c: 25559}, {f: 3, c: 25563}, 25567, 25570,
  10418. {f: 5, c: 25572}, {f: 2, c: 25579}, {f: 3, c: 25583}, 25587, 25589, 25591,
  10419. {f: 4, c: 25593}, 25598, {f: 2, c: 25603}, {f: 5, c: 25606}, 25614,
  10420. {f: 2, c: 25617}, {f: 2, c: 25621}, {f: 3, c: 25624}, 25629, 25631,
  10421. {f: 4, c: 25634}, {f: 3, c: 25639}, 25643, {f: 6, c: 25646}, 25653,
  10422. {f: 3, c: 25655}, {f: 2, c: 25659}, 25662, 25664, {f: 2, c: 25666}, 25673,
  10423. {f: 6, c: 25675}, 25683, {f: 3, c: 25685}, {f: 3, c: 25689}, 25693,
  10424. {f: 7, c: 25696}, 25704, {f: 3, c: 25706}, 25710, {f: 3, c: 25712},
  10425. {f: 2, c: 25716}, 25719, {f: 6, c: 25724}, 25731, 25734, {f: 8, c: 25737},
  10426. 25748, {f: 2, c: 25751}, {f: 4, c: 25754}, {f: 3, c: 25760},
  10427. {f: 3, c: 25766}, 25770, 25775, 25777, 25780, 25782, 25785, 25789, 25795,
  10428. 25798, {f: 2, c: 25800}, 25804, 25807, 25809, 25811, {f: 2, c: 25813},
  10429. 25817, {f: 3, c: 25819}, 25823, 25825, 25827, 25829, {f: 5, c: 25831},
  10430. {f: 2, c: 25837}, 25843, {f: 2, c: 25845}, {f: 2, c: 25848}, 25853, 25855,
  10431. {f: 3, c: 25857}, 25861, {f: 2, c: 25863}, {f: 5, c: 25866},
  10432. {f: 2, c: 25872}, 25875, 25877, 25879, 25882, 25884, {f: 4, c: 25886},
  10433. {f: 4, c: 25894}, 25901, {f: 4, c: 25904}, 25911, 25914, {f: 2, c: 25916},
  10434. {f: 5, c: 25920}, {f: 2, c: 25926}, {f: 2, c: 25930}, {f: 2, c: 25933},
  10435. 25936, {f: 3, c: 25938}, 25944, 25946, 25948, {f: 3, c: 25951},
  10436. {f: 2, c: 25956}, {f: 4, c: 25959}, {f: 3, c: 25965}, 25969, 25971, 25974,
  10437. {f: 9, c: 25977}, {f: 3, c: 25988}, {f: 3, c: 25992}, {f: 3, c: 25997},
  10438. 26002, 26004, 26006, 26008, 26010, {f: 2, c: 26013}, 26016,
  10439. {f: 2, c: 26018}, 26022, 26024, 26026, 26030, {f: 6, c: 26033}, 26040,
  10440. {f: 2, c: 26042}, {f: 3, c: 26046}, 26050, {f: 4, c: 26055}, 26061,
  10441. {f: 2, c: 26064}, {f: 3, c: 26067}, {f: 8, c: 26072}, 26081,
  10442. {f: 2, c: 26083}, {f: 2, c: 26090}, {f: 4, c: 26098}, {f: 2, c: 26104},
  10443. {f: 5, c: 26107}, 26113, {f: 2, c: 26116}, {f: 3, c: 26119}, 26123, 26125,
  10444. {f: 3, c: 26128}, {f: 3, c: 26134}, {f: 3, c: 26138}, 26142,
  10445. {f: 4, c: 26145}, 26150, {f: 4, c: 26153}, 26158, 26160, {f: 2, c: 26162},
  10446. {f: 5, c: 26167}, 26173, {f: 2, c: 26175}, {f: 7, c: 26180},
  10447. {f: 2, c: 26189}, {f: 2, c: 26192}, {f: 2, c: 26200}, {f: 2, c: 26203},
  10448. 26206, 26208, {f: 2, c: 26210}, 26213, 26215, {f: 5, c: 26217},
  10449. {f: 3, c: 26225}, 26229, {f: 2, c: 26232}, {f: 3, c: 26235},
  10450. {f: 3, c: 26239}, 26243, {f: 2, c: 26245}, {f: 2, c: 26250},
  10451. {f: 4, c: 26253}, {f: 4, c: 26258}, {f: 5, c: 26264}, {f: 4, c: 26270},
  10452. {f: 4, c: 26275}, {f: 2, c: 26281}, {f: 2, c: 26284}, {f: 5, c: 26287},
  10453. {f: 4, c: 26293}, {f: 4, c: 26298}, {f: 5, c: 26303}, 26309, 26312,
  10454. {f: 12, c: 26314}, {f: 2, c: 26327}, 26330, {f: 2, c: 26334},
  10455. {f: 5, c: 26337}, {f: 2, c: 26343}, {f: 2, c: 26346}, {f: 3, c: 26349},
  10456. 26353, {f: 2, c: 26357}, {f: 2, c: 26362}, 26365, {f: 2, c: 26369},
  10457. {f: 4, c: 26372}, 26380, {f: 2, c: 26382}, {f: 3, c: 26385}, 26390,
  10458. {f: 3, c: 26392}, 26396, 26398, {f: 6, c: 26400}, 26409, 26414, 26416,
  10459. {f: 2, c: 26418}, {f: 4, c: 26422}, {f: 2, c: 26427}, {f: 2, c: 26430},
  10460. 26433, {f: 2, c: 26436}, 26439, {f: 2, c: 26442}, 26445, 26450,
  10461. {f: 2, c: 26452}, {f: 5, c: 26455}, 26461, {f: 3, c: 26466},
  10462. {f: 2, c: 26470}, {f: 2, c: 26475}, 26478, 26484, 26486, {f: 4, c: 26488},
  10463. 26493, 26496, {f: 2, c: 26498}, {f: 2, c: 26501}, 26504, 26506,
  10464. {f: 4, c: 26508}, {f: 4, c: 26513}, 26518, 26521, 26523, {f: 3, c: 26527},
  10465. 26532, 26534, 26537, 26540, 26542, {f: 2, c: 26545}, 26548,
  10466. {f: 8, c: 26553}, 26562, {f: 10, c: 26565}, {f: 3, c: 26581}, 26587, 26591,
  10467. 26593, {f: 2, c: 26595}, {f: 3, c: 26598}, {f: 2, c: 26602},
  10468. {f: 2, c: 26605}, 26610, {f: 8, c: 26613}, 26622, {f: 4, c: 26625}, 26630,
  10469. 26637, 26640, 26642, {f: 2, c: 26644}, {f: 5, c: 26648}, {f: 3, c: 26654},
  10470. {f: 7, c: 26658}, {f: 7, c: 26667}, {f: 3, c: 26676}, {f: 2, c: 26682},
  10471. 26687, 26695, 26699, 26701, 26703, 26706, {f: 10, c: 26710}, 26730,
  10472. {f: 8, c: 26732}, 26741, {f: 9, c: 26744}, 26754, 26756, {f: 8, c: 26759},
  10473. {f: 3, c: 26768}, {f: 3, c: 26772}, {f: 4, c: 26777}, 26782,
  10474. {f: 2, c: 26784}, {f: 3, c: 26787}, {f: 4, c: 26793}, 26798,
  10475. {f: 2, c: 26801}, 26804, {f: 10, c: 26806}, 26817, {f: 6, c: 26819}, 26826,
  10476. 26828, {f: 4, c: 26830}, {f: 2, c: 26835}, 26841, {f: 4, c: 26843},
  10477. {f: 2, c: 26849}, {f: 3, c: 26852}, {f: 6, c: 26856}, 26863,
  10478. {f: 3, c: 26866}, {f: 3, c: 26870}, 26875, {f: 4, c: 26877},
  10479. {f: 3, c: 26882}, {f: 5, c: 26886}, 26892, 26897, {f: 12, c: 26899},
  10480. {f: 3, c: 26913}, {f: 8, c: 26917}, {f: 2, c: 26926}, {f: 3, c: 26929},
  10481. {f: 4, c: 26933}, {f: 3, c: 26938}, 26942, {f: 2, c: 26944},
  10482. {f: 7, c: 26947}, {f: 8, c: 26955}, {f: 2, c: 26965}, {f: 2, c: 26968},
  10483. {f: 2, c: 26971}, 26975, {f: 2, c: 26977}, {f: 2, c: 26980}, 26983,
  10484. {f: 2, c: 26985}, 26988, {f: 2, c: 26991}, {f: 3, c: 26994}, 26998,
  10485. {f: 2, c: 27002}, {f: 3, c: 27005}, 27009, 27011, 27013, {f: 3, c: 27018},
  10486. {f: 6, c: 27022}, {f: 2, c: 27030}, {f: 2, c: 27033}, {f: 10, c: 27037},
  10487. 27049, 27052, {f: 2, c: 27055}, {f: 2, c: 27058}, {f: 2, c: 27061},
  10488. {f: 3, c: 27064}, {f: 3, c: 27068}, 27072, {f: 8, c: 27074}, 27087,
  10489. {f: 3, c: 27089}, {f: 6, c: 27093}, {f: 3, c: 27100}, {f: 6, c: 27105},
  10490. {f: 5, c: 27112}, {f: 4, c: 27118}, {f: 9, c: 27124}, 27134, 27136,
  10491. {f: 2, c: 27139}, {f: 4, c: 27142}, {f: 8, c: 27147}, {f: 3, c: 27156},
  10492. {f: 4, c: 27162}, 27168, 27170, {f: 4, c: 27172}, 27177, {f: 4, c: 27179},
  10493. 27184, {f: 3, c: 27186}, {f: 2, c: 27190}, {f: 2, c: 27195},
  10494. {f: 5, c: 27199}, {f: 2, c: 27205}, {f: 2, c: 27209}, {f: 4, c: 27212},
  10495. {f: 7, c: 27217}, 27226, {f: 3, c: 27228}, 27232, {f: 2, c: 27235},
  10496. {f: 11, c: 27238}, {f: 7, c: 27250}, {f: 2, c: 27258}, {f: 3, c: 27261},
  10497. {f: 3, c: 27265}, {f: 4, c: 27269}, {f: 4, c: 27274}, 27279,
  10498. {f: 2, c: 27282}, {f: 2, c: 27285}, {f: 4, c: 27288}, {f: 3, c: 27293},
  10499. 27297, {f: 5, c: 27300}, 27306, {f: 2, c: 27309}, {f: 3, c: 27312},
  10500. {f: 4, c: 27316}, {f: 2, c: 27321}, {f: 7, c: 27324}, {f: 15, c: 27332},
  10501. {f: 6, c: 27348}, 27356, {f: 7, c: 27360}, 27369, 27371, {f: 6, c: 27373},
  10502. {f: 4, c: 27380}, {f: 2, c: 27385}, {f: 8, c: 27388}, {f: 5, c: 27397},
  10503. {f: 4, c: 27403}, {f: 2, c: 27408}, {f: 3, c: 27411}, {f: 7, c: 27415},
  10504. 27423, {f: 2, c: 27429}, {f: 10, c: 27432}, {f: 4, c: 27443}, 27448,
  10505. {f: 2, c: 27451}, {f: 4, c: 27455}, {f: 2, c: 27460}, 27464,
  10506. {f: 2, c: 27466}, {f: 3, c: 27469}, {f: 8, c: 27473}, {f: 5, c: 27482},
  10507. 27488, {f: 2, c: 27496}, {f: 7, c: 27499}, {f: 4, c: 27507}, 27514,
  10508. {f: 4, c: 27517}, 27525, 27528, 27532, {f: 4, c: 27534}, {f: 2, c: 27540},
  10509. 27543, 27545, {f: 2, c: 27548}, {f: 2, c: 27551}, {f: 2, c: 27554},
  10510. {f: 5, c: 27557}, {f: 2, c: 27564}, {f: 2, c: 27568}, 27574,
  10511. {f: 2, c: 27576}, {f: 3, c: 27580}, 27584, {f: 2, c: 27587},
  10512. {f: 4, c: 27591}, 27596, 27598, {f: 2, c: 27600}, 27608, 27610,
  10513. {f: 5, c: 27612}, {f: 8, c: 27618}, {f: 3, c: 27628}, {f: 3, c: 27632},
  10514. 27636, {f: 3, c: 27638}, {f: 3, c: 27642}, 27646, {f: 5, c: 27648},
  10515. {f: 3, c: 27657}, 27662, 27666, 27671, {f: 3, c: 27676}, 27680, 27685,
  10516. 27693, 27697, 27699, {f: 2, c: 27702}, {f: 4, c: 27705}, {f: 2, c: 27710},
  10517. {f: 3, c: 27715}, 27720, {f: 5, c: 27723}, {f: 3, c: 27729}, 27734,
  10518. {f: 3, c: 27736}, {f: 2, c: 27746}, {f: 3, c: 27749}, {f: 5, c: 27755},
  10519. 27761, 27763, 27765, {f: 2, c: 27767}, {f: 3, c: 27770}, {f: 2, c: 27775},
  10520. 27780, 27783, {f: 2, c: 27786}, {f: 2, c: 27789}, {f: 2, c: 27793},
  10521. {f: 4, c: 27797}, 27802, {f: 3, c: 27804}, 27808, 27810, 27816, 27820,
  10522. {f: 2, c: 27823}, {f: 4, c: 27828}, 27834, {f: 4, c: 27840},
  10523. {f: 3, c: 27846}, 27851, {f: 3, c: 27853}, {f: 2, c: 27857},
  10524. {f: 3, c: 27864}, {f: 2, c: 27868}, 27871, 27876, {f: 2, c: 27878}, 27881,
  10525. {f: 2, c: 27884}, 27890, 27892, 27897, {f: 2, c: 27903}, {f: 2, c: 27906},
  10526. {f: 2, c: 27909}, {f: 3, c: 27912}, 27917, {f: 3, c: 27919},
  10527. {f: 4, c: 27923}, 27928, {f: 2, c: 27932}, {f: 6, c: 27935}, 27942,
  10528. {f: 2, c: 27944}, {f: 2, c: 27948}, {f: 2, c: 27951}, 27956,
  10529. {f: 3, c: 27958}, 27962, {f: 2, c: 27967}, 27970, 27972, 27977, 27980,
  10530. 27984, {f: 4, c: 27989}, 27995, 27997, 27999, {f: 2, c: 28001},
  10531. {f: 2, c: 28004}, {f: 2, c: 28007}, {f: 3, c: 28011}, {f: 4, c: 28016},
  10532. {f: 2, c: 28021}, {f: 2, c: 28026}, {f: 5, c: 28029}, {f: 2, c: 28035},
  10533. 28038, {f: 2, c: 28042}, 28045, {f: 2, c: 28047}, 28050, {f: 5, c: 28054},
  10534. 28060, 28066, 28069, {f: 2, c: 28076}, {f: 2, c: 28080}, {f: 2, c: 28083},
  10535. {f: 2, c: 28086}, {f: 6, c: 28089}, {f: 3, c: 28097}, {f: 3, c: 28104},
  10536. {f: 4, c: 28109}, {f: 4, c: 28114}, 28119, {f: 3, c: 28122}, 28127,
  10537. {f: 2, c: 28130}, 28133, {f: 3, c: 28135}, 28141, {f: 2, c: 28143}, 28146,
  10538. 28148, 28152, {f: 8, c: 28157}, {f: 4, c: 28166}, 28171, 28175,
  10539. {f: 2, c: 28178}, 28181, {f: 2, c: 28184}, {f: 2, c: 28187},
  10540. {f: 2, c: 28190}, 28194, {f: 2, c: 28199}, 28202, 28206, {f: 2, c: 28208},
  10541. 28211, {f: 3, c: 28213}, 28217, {f: 3, c: 28219}, {f: 4, c: 28223},
  10542. {f: 8, c: 28229}, {f: 4, c: 28239}, 28245, 28247, {f: 2, c: 28249},
  10543. {f: 2, c: 28252}, {f: 11, c: 28256}, {f: 2, c: 28268}, {f: 14, c: 28272},
  10544. {f: 3, c: 28288}, 28292, {f: 2, c: 28295}, {f: 5, c: 28298},
  10545. {f: 5, c: 28305}, 28311, {f: 3, c: 28313}, 28318, {f: 2, c: 28320},
  10546. {f: 2, c: 28323}, 28326, {f: 2, c: 28328}, {f: 4, c: 28331}, 28336, 28339,
  10547. 28341, {f: 2, c: 28344}, 28348, {f: 3, c: 28350}, 28355, 28358,
  10548. {f: 3, c: 28360}, 28365, 28368, 28370, 28374, {f: 2, c: 28376},
  10549. {f: 3, c: 28379}, 28387, 28391, {f: 2, c: 28394}, {f: 2, c: 28397},
  10550. {f: 2, c: 28400}, 28403, {f: 2, c: 28405}, {f: 5, c: 28410}, 28416,
  10551. {f: 3, c: 28419}, {f: 2, c: 28423}, {f: 5, c: 28426}, {f: 3, c: 28432},
  10552. {f: 4, c: 28438}, {f: 5, c: 28443}, 28449, {f: 4, c: 28453}, 28462, 28464,
  10553. {f: 2, c: 28468}, 28471, {f: 5, c: 28473}, 28480, {f: 4, c: 28482},
  10554. {f: 3, c: 28488}, 28492, {f: 3, c: 28494}, {f: 2, c: 28498},
  10555. {f: 3, c: 28501}, {f: 2, c: 28506}, 28509, {f: 3, c: 28511}, 28515, 28517,
  10556. {f: 6, c: 28519}, 28529, 28531, {f: 2, c: 28533}, 28537, 28539,
  10557. {f: 2, c: 28541}, {f: 3, c: 28545}, 28549, {f: 2, c: 28554},
  10558. {f: 8, c: 28559}, {f: 4, c: 28568}, {f: 3, c: 28573}, {f: 2, c: 28578},
  10559. {f: 2, c: 28581}, 28584, {f: 4, c: 28586}, {f: 2, c: 28591}, 28594,
  10560. {f: 2, c: 28596}, {f: 2, c: 28599}, {f: 6, c: 28602}, {f: 5, c: 28612},
  10561. {f: 7, c: 28618}, {f: 2, c: 28627}, {f: 2, c: 28630}, {f: 2, c: 28633},
  10562. {f: 2, c: 28636}, {f: 2, c: 28642}, {f: 6, c: 28645}, {f: 2, c: 28652},
  10563. {f: 8, c: 28658}, 28667, 28669, {f: 6, c: 28671}, {f: 2, c: 28679}, 28682,
  10564. {f: 3, c: 28684}, 28688, {f: 3, c: 28690}, {f: 2, c: 28694}, 28697, 28700,
  10565. 28702, {f: 2, c: 28705}, {f: 3, c: 28708}, {f: 7, c: 28713}, 28721,
  10566. {f: 2, c: 28723}, {f: 3, c: 28726}, {f: 4, c: 28730}, {f: 4, c: 28735},
  10567. {f: 7, c: 28741}, {f: 2, c: 28749}, 28752, {f: 3, c: 28754},
  10568. {f: 2, c: 28758}, {f: 4, c: 28761}, {f: 4, c: 28767}, {f: 2, c: 28773},
  10569. {f: 3, c: 28776}, 28782, {f: 4, c: 28785}, 28791, {f: 3, c: 28793}, 28797,
  10570. {f: 4, c: 28801}, {f: 3, c: 28806}, {f: 3, c: 28811}, {f: 3, c: 28815},
  10571. 28819, {f: 2, c: 28823}, {f: 2, c: 28826}, {f: 13, c: 28830}, 28848, 28850,
  10572. {f: 3, c: 28852}, 28858, {f: 2, c: 28862}, {f: 4, c: 28868}, 28873,
  10573. {f: 4, c: 28875}, {f: 8, c: 28880}, 28890, {f: 3, c: 28892},
  10574. {f: 4, c: 28896}, 28901, 28906, 28910, {f: 4, c: 28912}, {f: 2, c: 28917},
  10575. 28920, {f: 3, c: 28922}, {f: 11, c: 28926}, {f: 5, c: 28939},
  10576. {f: 2, c: 28945}, 28948, 28951, {f: 6, c: 28955}, {f: 4, c: 28962},
  10577. {f: 8, c: 28967}, {f: 4, c: 28978}, {f: 14, c: 28983}, {f: 3, c: 28998},
  10578. 29003, 29005, {f: 3, c: 29007}, {f: 9, c: 29011}, 29021, {f: 3, c: 29023},
  10579. 29027, 29029, {f: 2, c: 29034}, 29037, {f: 3, c: 29039}, {f: 4, c: 29044},
  10580. 29049, {f: 2, c: 29051}, {f: 6, c: 29054}, {f: 5, c: 29061},
  10581. {f: 4, c: 29067}, {f: 2, c: 29072}, 29075, {f: 2, c: 29077},
  10582. {f: 5, c: 29082}, {f: 7, c: 29089}, {f: 3, c: 29097}, {f: 4, c: 29101},
  10583. 29106, 29108, {f: 3, c: 29110}, {f: 4, c: 29114}, {f: 2, c: 29119}, 29122,
  10584. {f: 4, c: 29124}, {f: 5, c: 29129}, {f: 3, c: 29135}, 29139,
  10585. {f: 3, c: 29142}, {f: 2, c: 29146}, {f: 2, c: 29149}, {f: 4, c: 29153},
  10586. {f: 5, c: 29160}, {f: 5, c: 29167}, {f: 4, c: 29173}, {f: 2, c: 29178},
  10587. 29181, {f: 7, c: 29183}, {f: 6, c: 29191}, {f: 2, c: 29198},
  10588. {f: 10, c: 29201}, 29212, {f: 10, c: 29214}, 29225, 29227,
  10589. {f: 3, c: 29229}, {f: 2, c: 29235}, 29244, {f: 7, c: 29248},
  10590. {f: 3, c: 29257}, {f: 4, c: 29262}, {f: 3, c: 29267}, 29271, 29274, 29276,
  10591. 29278, 29280, {f: 3, c: 29283}, 29288, {f: 4, c: 29290}, {f: 2, c: 29296},
  10592. {f: 2, c: 29299}, {f: 3, c: 29302}, {f: 2, c: 29307}, {f: 2, c: 29314},
  10593. {f: 5, c: 29317}, 29324, 29326, {f: 2, c: 29328}, {f: 3, c: 29331},
  10594. {f: 8, c: 29335}, {f: 2, c: 29344}, {f: 4, c: 29347}, {f: 4, c: 29352},
  10595. 29358, {f: 3, c: 29361}, 29365, {f: 6, c: 29370}, {f: 3, c: 29381},
  10596. {f: 4, c: 29385}, 29391, 29393, {f: 4, c: 29395}, 29400, {f: 4, c: 29402},
  10597. 29407, {f: 6, c: 29410}, {f: 2, c: 29418}, {f: 2, c: 29429},
  10598. {f: 3, c: 29438}, 29442, {f: 6, c: 29444}, {f: 3, c: 29451},
  10599. {f: 4, c: 29455}, 29460, {f: 3, c: 29464}, {f: 2, c: 29471},
  10600. {f: 2, c: 29475}, {f: 3, c: 29478}, 29485, {f: 2, c: 29487},
  10601. {f: 2, c: 29490}, 29493, 29498, {f: 2, c: 29500}, 29504, {f: 2, c: 29506},
  10602. {f: 7, c: 29510}, {f: 2, c: 29518}, 29521, {f: 4, c: 29523},
  10603. {f: 8, c: 29528}, {f: 7, c: 29537}, 29545, 29550, 29553, {f: 2, c: 29555},
  10604. 29558, 29561, 29565, 29567, {f: 3, c: 29569}, {f: 2, c: 29573}, 29576,
  10605. 29578, {f: 2, c: 29580}, {f: 2, c: 29583}, {f: 4, c: 29586},
  10606. {f: 4, c: 29591}, {f: 3, c: 29596}, {f: 2, c: 29600}, {f: 6, c: 29603},
  10607. 29610, {f: 2, c: 29612}, 29617, {f: 3, c: 29620}, {f: 2, c: 29624},
  10608. {f: 4, c: 29628}, 29633, {f: 5, c: 29635}, {f: 2, c: 29643}, 29646,
  10609. {f: 7, c: 29650}, {f: 4, c: 29658}, 29663, {f: 4, c: 29665}, 29670, 29672,
  10610. {f: 3, c: 29674}, {f: 4, c: 29678}, {f: 11, c: 29683}, {f: 4, c: 29695},
  10611. 29700, {f: 2, c: 29703}, {f: 4, c: 29707}, {f: 9, c: 29713},
  10612. {f: 6, c: 29724}, {f: 2, c: 29731}, 29735, 29737, 29739, 29741, 29743,
  10613. {f: 2, c: 29745}, {f: 5, c: 29751}, {f: 2, c: 29757}, 29760,
  10614. {f: 9, c: 29762}, {f: 9, c: 29772}, 29782, 29784, 29789, {f: 3, c: 29792},
  10615. {f: 5, c: 29796}, {f: 2, c: 29803}, {f: 2, c: 29806}, {f: 5, c: 29809},
  10616. {f: 6, c: 29816}, 29823, 29826, {f: 3, c: 29828}, 29832, 29834,
  10617. {f: 2, c: 29836}, 29839, {f: 11, c: 29841}, 29853, {f: 4, c: 29855},
  10618. {f: 2, c: 29860}, {f: 6, c: 29866}, {f: 9, c: 29873}, {f: 2, c: 29883},
  10619. {f: 12, c: 29886}, {f: 4, c: 29899}, {f: 2, c: 29904}, 29907,
  10620. {f: 5, c: 29909}, 29915, 29917, 29919, 29921, 29925, {f: 7, c: 29927},
  10621. {f: 4, c: 29936}, 29941, {f: 7, c: 29944}, {f: 4, c: 29952},
  10622. {f: 7, c: 29957}, 29966, 29968, 29970, {f: 4, c: 29972}, 29979,
  10623. {f: 2, c: 29981}, {f: 3, c: 29984}, 29988, {f: 2, c: 29990}, 29994, 29998,
  10624. 30004, 30006, 30009, {f: 2, c: 30012}, 30015, {f: 4, c: 30017},
  10625. {f: 2, c: 30022}, {f: 2, c: 30025}, 30029, {f: 4, c: 30032},
  10626. {f: 4, c: 30037}, {f: 4, c: 30046}, {f: 2, c: 30051}, {f: 3, c: 30055},
  10627. {f: 6, c: 30060}, 30067, 30069, 30071, {f: 5, c: 30074}, {f: 3, c: 30080},
  10628. {f: 2, c: 30084}, {f: 3, c: 30088}, {f: 3, c: 30092}, 30096, 30099, 30101,
  10629. 30104, {f: 2, c: 30107}, 30110, 30114, {f: 5, c: 30118}, 30125,
  10630. {f: 2, c: 30134}, {f: 2, c: 30138}, {f: 3, c: 30143}, 30150,
  10631. {f: 2, c: 30155}, {f: 4, c: 30158}, 30163, 30167, 30170, {f: 2, c: 30172},
  10632. {f: 3, c: 30175}, 30181, 30185, {f: 4, c: 30188}, {f: 2, c: 30194},
  10633. {f: 4, c: 30197}, {f: 2, c: 30202}, {f: 2, c: 30205}, 30212,
  10634. {f: 4, c: 30214}, {f: 2, c: 30222}, {f: 4, c: 30225}, 30230, 30234,
  10635. {f: 2, c: 30236}, 30243, 30248, 30252, {f: 2, c: 30254}, {f: 2, c: 30257},
  10636. {f: 2, c: 30262}, {f: 2, c: 30265}, 30269, 30273, {f: 2, c: 30276}, 30280,
  10637. {f: 2, c: 30282}, {f: 6, c: 30286}, 30293, 30295, {f: 3, c: 30297}, 30301,
  10638. {f: 2, c: 30304}, 30310, 30312, 30314, {f: 3, c: 30323}, [12136, 30326],
  10639. 30327, {f: 2, c: 30329}, {f: 3, c: 30335}, 30339, 30341, {f: 2, c: 30345},
  10640. {f: 2, c: 30348}, {f: 2, c: 30351}, 30354, {f: 2, c: 30356},
  10641. {f: 2, c: 30359}, {f: 9, c: 30363}, {f: 9, c: 30373}, {f: 2, c: 30383},
  10642. 30387, {f: 3, c: 30389}, 30393, {f: 4, c: 30395}, {f: 2, c: 30400},
  10643. {f: 2, c: 30403}, 30407, 30409, {f: 2, c: 30411}, 30419, 30421,
  10644. {f: 2, c: 30425}, {f: 2, c: 30428}, 30432, 30434, 30438, {f: 6, c: 30440},
  10645. 30448, 30451, {f: 3, c: 30453}, {f: 2, c: 30458}, 30461, {f: 2, c: 30463},
  10646. {f: 2, c: 30466}, {f: 2, c: 30469}, 30474, 30476, {f: 11, c: 30478},
  10647. {f: 4, c: 30491}, 30497, {f: 3, c: 30499}, 30503, {f: 3, c: 30506}, 30510,
  10648. {f: 5, c: 30512}, 30521, 30523, {f: 3, c: 30525}, 30530, {f: 3, c: 30532},
  10649. {f: 7, c: 30536}, {f: 8, c: 30546}, {f: 2, c: 30556}, {f: 2, c: 30559},
  10650. 30564, 30567, {f: 2, c: 30569}, {f: 12, c: 30573}, {f: 3, c: 30586},
  10651. {f: 3, c: 30593}, {f: 6, c: 30598}, {f: 2, c: 30607}, {f: 5, c: 30611},
  10652. {f: 5, c: 30617}, 30625, {f: 2, c: 30627}, 30630, 30632, 30635,
  10653. {f: 2, c: 30638}, {f: 2, c: 30641}, 30644, {f: 5, c: 30646}, 30654,
  10654. {f: 7, c: 30656}, {f: 5, c: 30664}, {f: 9, c: 30670}, {f: 2, c: 30680},
  10655. {f: 5, c: 30685}, 30692, 30694, 30696, 30698, {f: 3, c: 30704},
  10656. {f: 2, c: 30708}, 30711, {f: 4, c: 30713}, {f: 6, c: 30723},
  10657. {f: 2, c: 30730}, {f: 3, c: 30734}, 30739, 30741, 30745, 30747, 30750,
  10658. {f: 3, c: 30752}, 30756, 30760, {f: 2, c: 30762}, {f: 2, c: 30766},
  10659. {f: 3, c: 30769}, {f: 2, c: 30773}, 30781, 30783, {f: 2, c: 30785}, 30788,
  10660. 30790, {f: 4, c: 30792}, 30797, 30799, 30801, {f: 2, c: 30803},
  10661. {f: 5, c: 30808}, {f: 6, c: 30814}, {f: 3, c: 30821}, 30825,
  10662. {f: 7, c: 30832}, {f: 4, c: 30840}, {f: 10, c: 30845}, 30856,
  10663. {f: 2, c: 30858}, {f: 2, c: 30863}, 30866, {f: 3, c: 30868}, 30873,
  10664. {f: 2, c: 30877}, 30880, 30882, 30884, 30886, 30888, {f: 3, c: 30890},
  10665. {f: 2, c: 30894}, {f: 3, c: 30901}, 30907, 30909, {f: 2, c: 30911},
  10666. {f: 3, c: 30914}, {f: 3, c: 30918}, {f: 4, c: 30924}, {f: 3, c: 30929},
  10667. {f: 3, c: 30934}, {f: 8, c: 30939}, {f: 3, c: 30948}, {f: 3, c: 30953},
  10668. {f: 2, c: 30957}, {f: 2, c: 30960}, 30963, {f: 2, c: 30965},
  10669. {f: 2, c: 30968}, {f: 2, c: 30971}, {f: 3, c: 30974}, {f: 3, c: 30978},
  10670. {f: 8, c: 30982}, {f: 4, c: 30991}, {f: 5, c: 30996}, {f: 4, c: 31002},
  10671. {f: 5, c: 31007}, 31013, {f: 3, c: 31015}, {f: 4, c: 31021},
  10672. {f: 2, c: 31026}, {f: 5, c: 31029}, 31037, 31039, {f: 4, c: 31042}, 31047,
  10673. {f: 9, c: 31050}, {f: 2, c: 31060}, {f: 2, c: 31064}, 31073,
  10674. {f: 2, c: 31075}, 31078, {f: 4, c: 31081}, 31086, {f: 7, c: 31088}, 31097,
  10675. {f: 5, c: 31099}, {f: 2, c: 31106}, {f: 4, c: 31110}, {f: 2, c: 31115},
  10676. {f: 10, c: 31120}, {f: 11, c: 31131}, {f: 2, c: 31144}, {f: 3, c: 31147},
  10677. 31151, 31154, {f: 4, c: 31156}, [12145, 31160], 31164, 31167, 31170,
  10678. {f: 2, c: 31172}, {f: 2, c: 31175}, 31178, 31180, {f: 3, c: 31182},
  10679. {f: 2, c: 31187}, {f: 2, c: 31190}, {f: 6, c: 31193}, {f: 3, c: 31200},
  10680. 31205, 31208, 31210, 31212, 31214, {f: 7, c: 31217}, {f: 2, c: 31225},
  10681. 31228, {f: 2, c: 31230}, 31233, {f: 2, c: 31236}, {f: 4, c: 31239}, 31244,
  10682. {f: 5, c: 31247}, {f: 2, c: 31253}, {f: 2, c: 31256}, {f: 3, c: 31259},
  10683. 31263, {f: 2, c: 31265}, {f: 10, c: 31268}, {f: 2, c: 31279}, 31282,
  10684. {f: 3, c: 31284}, 31288, 31290, 31294, {f: 5, c: 31297}, {f: 5, c: 31303},
  10685. {f: 2, c: 31311}, {f: 5, c: 31314}, {f: 9, c: 31320}, {f: 6, c: 31331},
  10686. 31338, {f: 4, c: 31340}, {f: 3, c: 31345}, 31349, {f: 4, c: 31355}, 31362,
  10687. 31365, 31367, {f: 4, c: 31369}, {f: 3, c: 31374}, {f: 2, c: 31379},
  10688. {f: 3, c: 31385}, 31390, {f: 4, c: 31393}, 31399, 31403, {f: 4, c: 31407},
  10689. {f: 2, c: 31412}, {f: 3, c: 31415}, {f: 4, c: 31419}, {f: 4, c: 31424},
  10690. 31430, 31433, {f: 10, c: 31436}, {f: 2, c: 31447}, {f: 4, c: 31450},
  10691. {f: 2, c: 31457}, 31460, {f: 3, c: 31463}, {f: 2, c: 31467}, 31470,
  10692. {f: 6, c: 31472}, {f: 2, c: 31479}, {f: 2, c: 31483}, 31486,
  10693. {f: 3, c: 31488}, 31493, 31495, 31497, {f: 3, c: 31500}, 31504,
  10694. {f: 2, c: 31506}, {f: 3, c: 31510}, 31514, {f: 2, c: 31516}, 31519,
  10695. {f: 3, c: 31521}, 31527, 31529, 31533, {f: 2, c: 31535}, 31538,
  10696. {f: 4, c: 31540}, 31545, 31547, 31549, {f: 6, c: 31551}, 31560, 31562,
  10697. {f: 2, c: 31565}, 31571, 31573, 31575, 31577, 31580, {f: 2, c: 31582},
  10698. 31585, {f: 4, c: 31587}, {f: 6, c: 31592}, {f: 2, c: 31599},
  10699. {f: 2, c: 31603}, 31606, 31608, 31610, {f: 2, c: 31612}, 31615,
  10700. {f: 4, c: 31617}, {f: 5, c: 31622}, 31628, {f: 2, c: 31630},
  10701. {f: 3, c: 31633}, 31638, {f: 4, c: 31640}, {f: 3, c: 31646},
  10702. {f: 3, c: 31651}, {f: 3, c: 31662}, {f: 2, c: 31666}, {f: 3, c: 31669},
  10703. {f: 7, c: 31673}, {f: 2, c: 31682}, 31685, 31688, 31690, {f: 4, c: 31693},
  10704. 31698, {f: 5, c: 31700}, {f: 2, c: 31707}, {f: 3, c: 31710},
  10705. {f: 2, c: 31714}, {f: 2, c: 31719}, {f: 3, c: 31723}, {f: 2, c: 31727},
  10706. 31730, {f: 3, c: 31732}, {f: 4, c: 31736}, 31741, 31743, {f: 6, c: 31745},
  10707. {f: 3, c: 31752}, 31758, {f: 6, c: 31760}, {f: 7, c: 31767}, 31776, 31778,
  10708. {f: 2, c: 31780}, {f: 2, c: 31784}, {f: 12, c: 31788}, {f: 4, c: 31801},
  10709. 31810, {f: 8, c: 31812}, {f: 14, c: 31822}, {f: 2, c: 31837},
  10710. {f: 3, c: 31841}, {f: 4, c: 31845}, 31851, 31853, {f: 3, c: 31855},
  10711. {f: 6, c: 31861}, {f: 11, c: 31870}, {f: 7, c: 31882}, {f: 2, c: 31891},
  10712. 31894, {f: 3, c: 31897}, {f: 2, c: 31904}, 31907, {f: 4, c: 31910},
  10713. {f: 3, c: 31915}, {f: 2, c: 31919}, {f: 5, c: 31924}, {f: 2, c: 31930},
  10714. {f: 2, c: 31935}, {f: 3, c: 31938}, 31942, 31945, 31947, {f: 7, c: 31950},
  10715. 31960, {f: 2, c: 31962}, {f: 6, c: 31969}, {f: 6, c: 31977}, 31985, 31987,
  10716. 31989, 31991, 31994, {f: 2, c: 31996}, 31999, 32001, 32003, 32012,
  10717. {f: 2, c: 32014}, {f: 2, c: 32017}, 32022, 32024, {f: 3, c: 32029},
  10718. {f: 4, c: 32035}, {f: 3, c: 32040}, {f: 3, c: 32044}, {f: 5, c: 32052},
  10719. 32059, {f: 2, c: 32061}, 32065, 32067, 32069, {f: 7, c: 32071}, 32079,
  10720. {f: 12, c: 32081}, {f: 2, c: 32095}, {f: 3, c: 32099}, 32103,
  10721. {f: 5, c: 32105}, {f: 2, c: 32111}, {f: 2, c: 32116}, 32120,
  10722. {f: 7, c: 32122}, 32130, {f: 2, c: 32132}, 32135, {f: 5, c: 32138},
  10723. {f: 3, c: 32144}, {f: 8, c: 32148}, 32157, {f: 3, c: 32159},
  10724. {f: 2, c: 32164}, {f: 4, c: 32167}, 32175, {f: 3, c: 32181}, 32188,
  10725. {f: 4, c: 32192}, {f: 2, c: 32197}, {f: 2, c: 32200}, {f: 5, c: 32204},
  10726. 32211, {f: 2, c: 32213}, {f: 3, c: 32218}, 32223, 32226, {f: 2, c: 32228},
  10727. 32231, {f: 2, c: 32234}, {f: 2, c: 32237}, 32240, 32243, 32245,
  10728. {f: 2, c: 32247}, 32250, {f: 12, c: 32252}, {f: 4, c: 32268},
  10729. {f: 9, c: 32274}, 32284, {f: 3, c: 32288}, {f: 3, c: 32292},
  10730. {f: 3, c: 32296}, 32300, {f: 2, c: 32303}, 32307, 32312, 32314, 32316,
  10731. {f: 2, c: 32319}, {f: 3, c: 32322}, {f: 10, c: 32328}, 32339,
  10732. {f: 4, c: 32342}, {f: 3, c: 32347}, {f: 3, c: 32351}, {f: 6, c: 32355},
  10733. 32364, {f: 2, c: 32369}, {f: 5, c: 32372}, {f: 2, c: 32378},
  10734. {f: 3, c: 32383}, {f: 5, c: 32387}, 32393, 32395, 32398, {f: 3, c: 32400},
  10735. 32405, 32407, {f: 2, c: 32409}, {f: 2, c: 32413}, 32430, 32436,
  10736. {f: 2, c: 32443}, 32470, 32484, 32492, 32505, 32522, 32528, 32542, 32567,
  10737. 32569, {f: 7, c: 32571}, 32579, {f: 6, c: 32582}, 32589, 32591,
  10738. {f: 2, c: 32594}, 32598, 32601, {f: 4, c: 32603}, 32608, {f: 5, c: 32611},
  10739. {f: 3, c: 32619}, 32623, 32627, {f: 2, c: 32629}, 32632, {f: 4, c: 32634},
  10740. {f: 2, c: 32639}, {f: 3, c: 32642}, 32647, 32649, 32651, 32653,
  10741. {f: 5, c: 32655}, {f: 5, c: 32661}, {f: 2, c: 32667}, 32672,
  10742. {f: 2, c: 32674}, 32678, 32680, {f: 5, c: 32682}, 32689, {f: 5, c: 32691},
  10743. {f: 2, c: 32698}, 32702, 32704, {f: 3, c: 32706}, {f: 4, c: 32710}, 32715,
  10744. 32717, {f: 3, c: 32719}, 32723, {f: 2, c: 32726}, {f: 6, c: 32729},
  10745. {f: 3, c: 32738}, {f: 2, c: 32743}, {f: 4, c: 32746}, 32751, 32754,
  10746. {f: 5, c: 32756}, 32762, {f: 3, c: 32765}, 32770, {f: 4, c: 32775},
  10747. {f: 2, c: 32782}, 32785, 32787, {f: 2, c: 32794}, {f: 3, c: 32797}, 32801,
  10748. {f: 2, c: 32803}, 32811, 32813, {f: 2, c: 32815}, 32818, 32820,
  10749. {f: 2, c: 32825}, 32828, 32830, {f: 2, c: 32832}, {f: 2, c: 32836},
  10750. {f: 3, c: 32839}, {f: 4, c: 32846}, 32851, 32853, 32855, 32857,
  10751. {f: 3, c: 32859}, {f: 10, c: 32863}, {f: 4, c: 32875}, 32884, 32888,
  10752. {f: 3, c: 32890}, {f: 2, c: 32897}, 32904, 32906, {f: 6, c: 32909},
  10753. {f: 2, c: 32916}, 32919, 32921, 32926, 32931, {f: 3, c: 32934}, 32940,
  10754. 32944, 32947, {f: 2, c: 32949}, {f: 2, c: 32952}, 32955, 32965,
  10755. {f: 5, c: 32967}, {f: 7, c: 32975}, 32984, {f: 2, c: 32991},
  10756. {f: 2, c: 32994}, 32998, 33006, 33013, 33015, 33017, 33019,
  10757. {f: 4, c: 33022}, {f: 2, c: 33027}, {f: 2, c: 33031}, {f: 2, c: 33035},
  10758. 33045, 33047, 33049, {f: 2, c: 33052}, {f: 13, c: 33055}, {f: 2, c: 33069},
  10759. 33072, {f: 3, c: 33075}, 33079, {f: 4, c: 33082}, {f: 7, c: 33087}, 33095,
  10760. 33097, 33101, 33103, 33106, {f: 2, c: 33111}, {f: 5, c: 33115},
  10761. {f: 3, c: 33122}, 33128, 33130, 33132, 33135, {f: 2, c: 33138},
  10762. {f: 3, c: 33141}, 33153, {f: 5, c: 33155}, 33161, {f: 4, c: 33163}, 33168,
  10763. {f: 6, c: 33170}, 33177, {f: 2, c: 33182}, {f: 2, c: 33185},
  10764. {f: 2, c: 33188}, 33191, {f: 8, c: 33195}, {f: 6, c: 33204}, 33212,
  10765. {f: 2, c: 33220}, {f: 2, c: 33223}, 33227, 33230, {f: 8, c: 33232}, 33241,
  10766. {f: 4, c: 33243}, {f: 2, c: 33249}, {f: 3, c: 33252}, 33257, 33259,
  10767. {f: 5, c: 33262}, {f: 5, c: 33269}, 33277, 33279, 33283, 33291,
  10768. {f: 2, c: 33294}, 33297, 33299, {f: 6, c: 33301}, 33309, 33312,
  10769. {f: 4, c: 33316}, 33321, 33326, 33330, 33338, {f: 2, c: 33340},
  10770. {f: 5, c: 33343}, {f: 2, c: 33349}, 33352, 33354, {f: 3, c: 33356},
  10771. {f: 8, c: 33360}, {f: 4, c: 33371}, {f: 4, c: 33376}, 33381, 33383,
  10772. {f: 2, c: 33385}, {f: 2, c: 33388}, {f: 2, c: 33397}, [12171, 33400],
  10773. {f: 2, c: 33403}, {f: 2, c: 33408}, 33411, {f: 3, c: 33413}, 33417, 33420,
  10774. 33424, {f: 4, c: 33427}, {f: 2, c: 33434}, 33438, 33440, {f: 2, c: 33442},
  10775. 33447, 33458, {f: 2, c: 33461}, 33466, 33468, {f: 2, c: 33471},
  10776. {f: 2, c: 33474}, {f: 2, c: 33477}, 33481, 33488, 33494, {f: 2, c: 33497},
  10777. 33501, 33506, {f: 3, c: 33512}, {f: 3, c: 33516}, 33520, {f: 2, c: 33522},
  10778. {f: 2, c: 33525}, 33528, 33530, {f: 5, c: 33532}, {f: 2, c: 33546}, 33549,
  10779. 33552, {f: 2, c: 33554}, 33558, {f: 2, c: 33560}, {f: 10, c: 33565},
  10780. {f: 2, c: 33577}, 33582, 33584, 33586, 33591, 33595, {f: 3, c: 33597},
  10781. {f: 2, c: 33601}, {f: 2, c: 33604}, 33608, {f: 5, c: 33610}, 33619,
  10782. {f: 5, c: 33621}, 33629, 33634, {f: 7, c: 33648}, {f: 2, c: 33657},
  10783. {f: 7, c: 33662}, {f: 2, c: 33671}, {f: 3, c: 33675}, {f: 3, c: 33679},
  10784. {f: 2, c: 33684}, 33687, {f: 2, c: 33689}, 33693, 33695, 33697,
  10785. {f: 4, c: 33699}, {f: 4, c: 33708}, 33717, 33723, {f: 2, c: 33726},
  10786. {f: 3, c: 33730}, 33734, {f: 2, c: 33736}, 33739, {f: 2, c: 33741},
  10787. {f: 4, c: 33744}, 33749, 33751, {f: 3, c: 33753}, 33758, {f: 3, c: 33762},
  10788. {f: 3, c: 33766}, {f: 4, c: 33771}, {f: 5, c: 33779}, {f: 3, c: 33786},
  10789. {f: 3, c: 33790}, 33794, 33797, {f: 2, c: 33800}, 33808, {f: 6, c: 33810},
  10790. {f: 3, c: 33817}, {f: 6, c: 33822}, {f: 3, c: 33833}, {f: 4, c: 33837},
  10791. {f: 3, c: 33842}, {f: 2, c: 33846}, {f: 3, c: 33849}, {f: 8, c: 33854},
  10792. {f: 2, c: 33863}, {f: 7, c: 33866}, {f: 4, c: 33875}, 33880,
  10793. {f: 4, c: 33885}, 33890, 33893, {f: 2, c: 33895}, 33898, 33902, 33904,
  10794. 33906, 33908, 33913, {f: 7, c: 33915}, {f: 4, c: 33923}, 33930, 33933,
  10795. {f: 4, c: 33935}, {f: 2, c: 33941}, 33944, {f: 2, c: 33946},
  10796. {f: 4, c: 33949}, {f: 13, c: 33954}, {f: 2, c: 33968}, 33971,
  10797. {f: 3, c: 33973}, 33979, 33982, {f: 2, c: 33986}, {f: 4, c: 33989}, 33996,
  10798. {f: 2, c: 33998}, 34002, {f: 2, c: 34004}, {f: 6, c: 34007}, 34014,
  10799. {f: 2, c: 34017}, 34020, {f: 5, c: 34023}, 34029, {f: 11, c: 34033}, 34046,
  10800. {f: 12, c: 34048}, {f: 4, c: 34061}, 34066, {f: 2, c: 34069},
  10801. {f: 2, c: 34072}, {f: 3, c: 34075}, 34080, 34082, {f: 2, c: 34084},
  10802. {f: 4, c: 34087}, {f: 9, c: 34094}, {f: 3, c: 34110}, 34114,
  10803. {f: 2, c: 34116}, 34119, {f: 3, c: 34123}, {f: 3, c: 34127}, 34132, 34135,
  10804. {f: 4, c: 34138}, {f: 3, c: 34143}, 34147, {f: 3, c: 34149},
  10805. {f: 2, c: 34155}, {f: 4, c: 34158}, 34163, {f: 2, c: 34165}, 34168,
  10806. {f: 2, c: 34172}, {f: 5, c: 34175}, 34182, 34185, 34187, {f: 2, c: 34189},
  10807. 34192, {f: 2, c: 34194}, {f: 6, c: 34197}, {f: 2, c: 34205},
  10808. {f: 4, c: 34208}, 34213, 34215, {f: 3, c: 34219}, {f: 6, c: 34225}, 34232,
  10809. {f: 6, c: 34235}, {f: 7, c: 34242}, {f: 3, c: 34250}, {f: 2, c: 34257},
  10810. 34260, {f: 6, c: 34262}, {f: 6, c: 34270}, {f: 3, c: 34278},
  10811. {f: 9, c: 34283}, 34293, {f: 2, c: 34295}, {f: 3, c: 34300},
  10812. {f: 4, c: 34304}, {f: 3, c: 34312}, {f: 5, c: 34316}, {f: 4, c: 34322},
  10813. {f: 3, c: 34327}, {f: 3, c: 34331}, {f: 3, c: 34335}, {f: 4, c: 34339},
  10814. 34344, {f: 3, c: 34346}, {f: 10, c: 34350}, 34361, 34363, {f: 2, c: 34365},
  10815. {f: 13, c: 34368}, {f: 2, c: 34386}, {f: 4, c: 34390}, 34395, 34397,
  10816. {f: 2, c: 34400}, {f: 4, c: 34403}, {f: 3, c: 34408}, 34413,
  10817. {f: 2, c: 34415}, {f: 7, c: 34418}, {f: 7, c: 34435}, {f: 5, c: 34446},
  10818. 34452, {f: 6, c: 34454}, {f: 5, c: 34462}, {f: 2, c: 34469}, 34475,
  10819. {f: 2, c: 34477}, {f: 2, c: 34482}, {f: 3, c: 34487}, {f: 5, c: 34491},
  10820. {f: 3, c: 34497}, 34501, 34504, {f: 2, c: 34508}, {f: 2, c: 34514},
  10821. {f: 3, c: 34517}, 34522, {f: 2, c: 34524}, {f: 4, c: 34528},
  10822. {f: 4, c: 34533}, {f: 3, c: 34538}, 34543, {f: 3, c: 34549},
  10823. {f: 3, c: 34555}, 34559, 34561, {f: 2, c: 34564}, {f: 2, c: 34571},
  10824. {f: 4, c: 34574}, 34580, 34582, 34585, 34587, 34589, {f: 2, c: 34591},
  10825. 34596, {f: 3, c: 34598}, {f: 4, c: 34602}, {f: 2, c: 34607},
  10826. {f: 2, c: 34610}, {f: 2, c: 34613}, {f: 3, c: 34616}, {f: 2, c: 34620},
  10827. {f: 7, c: 34624}, {f: 2, c: 34634}, 34637, {f: 4, c: 34639}, 34644, 34646,
  10828. 34648, {f: 6, c: 34650}, {f: 2, c: 34657}, {f: 7, c: 34663}, 34671,
  10829. {f: 3, c: 34673}, 34677, 34679, {f: 2, c: 34681}, {f: 3, c: 34687},
  10830. {f: 2, c: 34694}, {f: 2, c: 34697}, 34700, {f: 5, c: 34702},
  10831. {f: 3, c: 34708}, {f: 6, c: 34712}, {f: 2, c: 34720}, {f: 5, c: 34723},
  10832. {f: 2, c: 34729}, 34734, {f: 3, c: 34736}, 34740, {f: 4, c: 34742}, 34748,
  10833. {f: 2, c: 34750}, {f: 3, c: 34753}, 34757, 34759, 34761, {f: 2, c: 34764},
  10834. {f: 2, c: 34767}, {f: 7, c: 34772}, {f: 4, c: 34780}, {f: 2, c: 34785},
  10835. 34788, {f: 4, c: 34790}, 34795, 34797, {f: 2, c: 34800}, {f: 3, c: 34803},
  10836. {f: 2, c: 34807}, 34810, {f: 2, c: 34812}, {f: 4, c: 34815}, 34820,
  10837. {f: 3, c: 34823}, {f: 5, c: 34827}, 34834, 34836, {f: 4, c: 34839},
  10838. {f: 3, c: 34844}, 34848, {f: 13, c: 34852}, {f: 3, c: 34867},
  10839. {f: 2, c: 34871}, 34874, {f: 3, c: 34877}, {f: 3, c: 34881},
  10840. {f: 3, c: 34887}, 34891, {f: 5, c: 34894}, {f: 2, c: 34901}, 34904, 34906,
  10841. 34908, {f: 3, c: 34910}, {f: 2, c: 34918}, 34922, 34925, 34927, 34929,
  10842. {f: 4, c: 34931}, 34936, {f: 3, c: 34938}, 34944, 34947, {f: 2, c: 34950},
  10843. {f: 2, c: 34953}, 34956, {f: 4, c: 34958}, {f: 3, c: 34963},
  10844. {f: 5, c: 34967}, {f: 5, c: 34973}, 34979, {f: 6, c: 34981}, 34988,
  10845. {f: 3, c: 34990}, {f: 5, c: 34994}, {f: 4, c: 35000}, {f: 4, c: 35005},
  10846. {f: 2, c: 35011}, {f: 2, c: 35015}, {f: 3, c: 35019}, {f: 2, c: 35024},
  10847. 35027, {f: 2, c: 35030}, {f: 2, c: 35034}, 35038, {f: 2, c: 35040},
  10848. {f: 2, c: 35046}, {f: 7, c: 35049}, 35058, {f: 3, c: 35061},
  10849. {f: 2, c: 35066}, {f: 3, c: 35071}, {f: 4, c: 35075}, {f: 2, c: 35080},
  10850. {f: 5, c: 35083}, 35089, {f: 5, c: 35092}, {f: 5, c: 35100},
  10851. {f: 3, c: 35106}, {f: 4, c: 35110}, {f: 4, c: 35116}, 35121, 35125, 35127,
  10852. {f: 2, c: 35129}, {f: 5, c: 35132}, {f: 2, c: 35138}, {f: 2, c: 35141},
  10853. {f: 14, c: 35144}, {f: 6, c: 35159}, {f: 3, c: 35169}, 35173,
  10854. {f: 3, c: 35175}, 35179, {f: 2, c: 35181}, {f: 2, c: 35184},
  10855. {f: 8, c: 35187}, {f: 2, c: 35196}, [12177, 35198], 35200, 35202,
  10856. {f: 2, c: 35204}, {f: 4, c: 35207}, {f: 3, c: 35212}, {f: 3, c: 35216},
  10857. {f: 2, c: 35220}, 35223, {f: 8, c: 35225}, {f: 4, c: 35234},
  10858. {f: 3, c: 35239}, 35243, {f: 2, c: 35245}, {f: 2, c: 35248},
  10859. {f: 4, c: 35251}, {f: 2, c: 35256}, {f: 2, c: 35259}, 35262, 35267, 35277,
  10860. {f: 3, c: 35283}, {f: 3, c: 35287}, 35291, 35293, {f: 4, c: 35295}, 35300,
  10861. {f: 4, c: 35303}, {f: 3, c: 35308}, {f: 3, c: 35312}, 35317, 35319,
  10862. {f: 7, c: 35321}, {f: 3, c: 35332}, 35337, 35339, 35341, 35343,
  10863. {f: 2, c: 35345}, 35348, 35351, {f: 2, c: 35353}, 35356, 35358,
  10864. {f: 3, c: 35360}, 35364, {f: 4, c: 35366}, {f: 2, c: 35371},
  10865. {f: 3, c: 35374}, {f: 2, c: 35378}, 35381, {f: 3, c: 35383},
  10866. {f: 3, c: 35387}, {f: 2, c: 35391}, {f: 4, c: 35394}, 35399,
  10867. {f: 5, c: 35401}, 35407, 35409, 35411, {f: 2, c: 35414}, {f: 2, c: 35417},
  10868. {f: 2, c: 35420}, {f: 2, c: 35423}, {f: 2, c: 35428}, {f: 2, c: 35431},
  10869. 35434, 35439, 35444, {f: 3, c: 35446}, {f: 2, c: 35450}, {f: 2, c: 35453},
  10870. {f: 4, c: 35456}, 35464, {f: 2, c: 35467}, {f: 3, c: 35470}, 35476,
  10871. {f: 2, c: 35478}, 35481, {f: 3, c: 35483}, 35487, 35490, 35495,
  10872. {f: 3, c: 35497}, {f: 3, c: 35501}, 35505, {f: 3, c: 35507},
  10873. {f: 2, c: 35511}, {f: 2, c: 35514}, {f: 2, c: 35517}, {f: 2, c: 35520},
  10874. 35523, {f: 2, c: 35525}, 35528, 35530, 35532, 35534, 35536,
  10875. {f: 3, c: 35539}, {f: 3, c: 35544}, 35549, {f: 3, c: 35551}, 35555, 35557,
  10876. {f: 3, c: 35560}, 35564, {f: 2, c: 35567}, 35570, {f: 2, c: 35572}, 35577,
  10877. 35579, 35581, 35583, 35587, 35590, {f: 2, c: 35592}, {f: 3, c: 35595},
  10878. 35599, {f: 3, c: 35601}, 35605, 35608, 35612, {f: 3, c: 35614},
  10879. {f: 4, c: 35618}, 35623, {f: 2, c: 35625}, {f: 5, c: 35630},
  10880. {f: 5, c: 35636}, {f: 4, c: 35642}, {f: 10, c: 35647}, {f: 4, c: 35658},
  10881. {f: 6, c: 35664}, 35671, 35675, {f: 9, c: 35677}, {f: 4, c: 35687},
  10882. {f: 2, c: 35693}, {f: 3, c: 35697}, {f: 2, c: 35701}, {f: 5, c: 35704},
  10883. {f: 2, c: 35710}, {f: 9, c: 35713}, {f: 3, c: 35723}, {f: 3, c: 35727},
  10884. 35732, {f: 5, c: 35735}, 35741, 35743, 35756, 35761, 35771, 35783, 35792,
  10885. 35818, 35849, 35870, {f: 9, c: 35896}, {f: 4, c: 35906}, {f: 2, c: 35914},
  10886. {f: 3, c: 35917}, {f: 4, c: 35921}, {f: 4, c: 35926}, {f: 6, c: 35931},
  10887. {f: 7, c: 35939}, {f: 7, c: 35948}, {f: 4, c: 35956}, {f: 7, c: 35963},
  10888. {f: 2, c: 35971}, {f: 3, c: 35974}, 35979, {f: 7, c: 35981},
  10889. {f: 3, c: 35989}, {f: 4, c: 35993}, 35999, {f: 4, c: 36003},
  10890. {f: 2, c: 36013}, 36017, 36021, 36025, 36030, 36038, 36041,
  10891. {f: 6, c: 36043}, 36052, {f: 4, c: 36054}, 36059, 36061, 36063, 36069,
  10892. {f: 2, c: 36072}, {f: 6, c: 36078}, {f: 5, c: 36085}, {f: 5, c: 36095},
  10893. {f: 2, c: 36102}, 36105, 36108, 36110, {f: 5, c: 36113}, {f: 4, c: 36119},
  10894. 36128, {f: 2, c: 36177}, 36183, 36191, 36197, {f: 3, c: 36200}, 36204,
  10895. {f: 2, c: 36206}, {f: 2, c: 36209}, {f: 9, c: 36216}, {f: 2, c: 36226},
  10896. {f: 4, c: 36230}, {f: 5, c: 36236}, {f: 2, c: 36242}, {f: 3, c: 36246},
  10897. {f: 5, c: 36250}, {f: 3, c: 36256}, {f: 4, c: 36260}, {f: 8, c: 36265},
  10898. {f: 2, c: 36278}, 36281, 36283, 36285, {f: 3, c: 36288}, 36293,
  10899. {f: 4, c: 36295}, 36301, 36304, {f: 4, c: 36306}, {f: 2, c: 36312}, 36316,
  10900. {f: 3, c: 36320}, {f: 3, c: 36325}, 36329, {f: 2, c: 36333},
  10901. {f: 3, c: 36336}, 36340, 36342, 36348, {f: 7, c: 36350}, {f: 3, c: 36358},
  10902. 36363, {f: 2, c: 36365}, {f: 3, c: 36369}, {f: 8, c: 36373},
  10903. {f: 2, c: 36384}, {f: 5, c: 36388}, 36395, 36397, 36400, {f: 2, c: 36402},
  10904. {f: 3, c: 36406}, {f: 2, c: 36411}, {f: 2, c: 36414}, 36419,
  10905. {f: 2, c: 36421}, {f: 4, c: 36429}, {f: 2, c: 36435}, {f: 3, c: 36438},
  10906. {f: 9, c: 36442}, {f: 2, c: 36452}, {f: 2, c: 36455}, {f: 2, c: 36458},
  10907. 36462, 36465, 36467, 36469, {f: 3, c: 36471}, 36475, {f: 2, c: 36477},
  10908. 36480, {f: 3, c: 36482}, 36486, 36488, 36492, 36494, {f: 5, c: 36501},
  10909. 36507, 36509, {f: 2, c: 36511}, {f: 3, c: 36514}, {f: 3, c: 36519},
  10910. {f: 2, c: 36525}, {f: 2, c: 36528}, {f: 7, c: 36531}, {f: 5, c: 36539},
  10911. {f: 9, c: 36545}, {f: 3, c: 36559}, 36563, {f: 6, c: 36565},
  10912. {f: 3, c: 36572}, {f: 4, c: 36576}, {f: 6, c: 36581}, {f: 6, c: 36588},
  10913. {f: 5, c: 36595}, 36605, {f: 4, c: 36607}, 36612, 36614, 36616,
  10914. {f: 7, c: 36619}, 36627, {f: 5, c: 36630}, {f: 5, c: 36640},
  10915. {f: 2, c: 36647}, {f: 4, c: 36651}, {f: 3, c: 36656}, {f: 4, c: 36660},
  10916. {f: 2, c: 36665}, {f: 2, c: 36668}, {f: 2, c: 36672}, 36675,
  10917. {f: 2, c: 36679}, {f: 3, c: 36682}, {f: 5, c: 36687}, {f: 10, c: 36693},
  10918. 36704, 36707, 36709, 36714, 36736, 36748, 36754, 36765, {f: 3, c: 36768},
  10919. {f: 2, c: 36772}, 36775, 36778, 36780, {f: 2, c: 36787}, [12193, 36789],
  10920. {f: 2, c: 36791}, {f: 3, c: 36794}, {f: 2, c: 36799}, 36803, 36806,
  10921. {f: 5, c: 36809}, 36815, 36818, {f: 2, c: 36822}, 36826, {f: 2, c: 36832},
  10922. 36835, 36839, 36844, 36847, {f: 2, c: 36849}, {f: 2, c: 36853},
  10923. {f: 3, c: 36858}, {f: 2, c: 36862}, {f: 2, c: 36871}, 36876, 36878, 36883,
  10924. 36888, 36892, {f: 2, c: 36900}, {f: 6, c: 36903}, {f: 2, c: 36912},
  10925. {f: 2, c: 36915}, 36919, {f: 2, c: 36921}, 36925, {f: 2, c: 36927}, 36931,
  10926. {f: 2, c: 36933}, {f: 3, c: 36936}, 36940, 36950, {f: 2, c: 36953}, 36957,
  10927. 36959, 36961, 36964, {f: 2, c: 36966}, {f: 3, c: 36970}, {f: 3, c: 36975},
  10928. 36979, 36982, 36985, 36987, 36990, {f: 2, c: 36997}, 37001,
  10929. {f: 3, c: 37004}, 37010, 37012, 37014, 37016, 37018, 37020,
  10930. {f: 3, c: 37022}, {f: 2, c: 37028}, {f: 3, c: 37031}, 37035, 37037, 37042,
  10931. 37047, {f: 2, c: 37052}, {f: 2, c: 37055}, {f: 2, c: 37058}, 37062,
  10932. {f: 2, c: 37064}, {f: 3, c: 37067}, 37074, {f: 3, c: 37076},
  10933. {f: 3, c: 37080}, 37086, 37088, {f: 3, c: 37091}, {f: 2, c: 37097}, 37100,
  10934. 37102, {f: 4, c: 37104}, {f: 2, c: 37110}, {f: 4, c: 37113},
  10935. {f: 3, c: 37119}, 37123, 37125, {f: 2, c: 37127}, {f: 8, c: 37130}, 37139,
  10936. 37141, {f: 2, c: 37143}, {f: 4, c: 37146}, {f: 3, c: 37151},
  10937. {f: 3, c: 37156}, {f: 5, c: 37160}, 37166, 37171, 37173, {f: 2, c: 37175},
  10938. {f: 8, c: 37179}, {f: 2, c: 37188}, 37191, 37201, {f: 4, c: 37203},
  10939. {f: 2, c: 37208}, {f: 2, c: 37211}, {f: 2, c: 37215}, {f: 3, c: 37222},
  10940. 37227, 37229, 37235, {f: 3, c: 37242}, {f: 5, c: 37248}, 37254, 37256,
  10941. 37258, {f: 2, c: 37262}, {f: 3, c: 37267}, {f: 3, c: 37271},
  10942. {f: 5, c: 37277}, {f: 6, c: 37284}, {f: 4, c: 37296}, {f: 4, c: 37302},
  10943. {f: 5, c: 37307}, 37314, 37316, [12196, 37318], 37320, 37328, 37334,
  10944. {f: 2, c: 37338}, {f: 5, c: 37342}, {f: 2, c: 37349}, 37352,
  10945. {f: 11, c: 37354}, 37366, 37368, {f: 5, c: 37371}, {f: 2, c: 37378},
  10946. {f: 3, c: 37381}, {f: 3, c: 37386}, 37391, {f: 2, c: 37394},
  10947. {f: 8, c: 37398}, {f: 4, c: 37407}, 37412, {f: 6, c: 37416}, 37423,
  10948. {f: 2, c: 37425}, {f: 2, c: 37429}, {f: 2, c: 37435}, {f: 4, c: 37441},
  10949. {f: 2, c: 37446}, {f: 3, c: 37450}, {f: 3, c: 37454}, {f: 3, c: 37458},
  10950. 37462, {f: 2, c: 37464}, {f: 2, c: 37468}, {f: 3, c: 37471},
  10951. {f: 3, c: 37475}, {f: 5, c: 37479}, {f: 6, c: 37486}, {f: 3, c: 37493},
  10952. 37497, {f: 3, c: 37500}, {f: 2, c: 37505}, 37508, {f: 8, c: 37510},
  10953. {f: 2, c: 37519}, 37522, {f: 2, c: 37524}, 37527, 37529, 37531,
  10954. {f: 3, c: 37533}, {f: 2, c: 37537}, 37540, 37543, 37549, {f: 2, c: 37551},
  10955. {f: 5, c: 37554}, 37560, 37562, {f: 4, c: 37565}, 37570, 37572, 37574,
  10956. {f: 3, c: 37577}, {f: 2, c: 37581}, {f: 2, c: 37584}, {f: 10, c: 37587},
  10957. 37598, {f: 3, c: 37600}, 37607, 37609, {f: 2, c: 37611}, {f: 4, c: 37618},
  10958. 37623, {f: 3, c: 37625}, {f: 4, c: 37629}, {f: 4, c: 37634},
  10959. {f: 7, c: 37641}, 37649, {f: 2, c: 37651}, {f: 2, c: 37654},
  10960. {f: 3, c: 37660}, 37665, {f: 3, c: 37667}, 37671, {f: 2, c: 37673},
  10961. {f: 2, c: 37676}, {f: 2, c: 37680}, {f: 2, c: 37684}, 37687,
  10962. {f: 5, c: 37689}, 37695, 37698, {f: 2, c: 37700}, {f: 3, c: 37704}, 37708,
  10963. {f: 6, c: 37710}, {f: 3, c: 37717}, {f: 2, c: 37721}, {f: 8, c: 37724},
  10964. {f: 3, c: 37734}, 37739, {f: 3, c: 37741}, {f: 4, c: 37745},
  10965. {f: 3, c: 37751}, {f: 3, c: 37755}, {f: 3, c: 37759}, 37763,
  10966. {f: 2, c: 37765}, {f: 2, c: 37768}, {f: 4, c: 37771}, {f: 6, c: 37776},
  10967. 37783, {f: 9, c: 37785}, {f: 2, c: 37796}, 37800, 37803, 37805, 37807,
  10968. {f: 2, c: 37809}, 37812, {f: 2, c: 37814}, {f: 6, c: 37817},
  10969. {f: 3, c: 37824}, {f: 3, c: 37828}, 37833, 37835, {f: 3, c: 37838},
  10970. {f: 4, c: 37842}, {f: 3, c: 37849}, 37856, 37859, {f: 3, c: 37861},
  10971. {f: 12, c: 37865}, 37878, 37880, {f: 9, c: 37882}, {f: 7, c: 37892},
  10972. {f: 4, c: 37900}, 37905, {f: 3, c: 37909}, {f: 3, c: 37914},
  10973. {f: 2, c: 37918}, {f: 5, c: 37921}, {f: 5, c: 37929}, {f: 3, c: 37935},
  10974. 37940, {f: 2, c: 37942}, 37945, {f: 3, c: 37947}, {f: 4, c: 37952},
  10975. {f: 5, c: 37957}, 37963, {f: 5, c: 37965}, 37971, {f: 11, c: 37973},
  10976. {f: 2, c: 37985}, 37988, {f: 5, c: 37990}, 37996, {f: 2, c: 37998}, 38001,
  10977. {f: 4, c: 38003}, 38008, {f: 2, c: 38010}, {f: 5, c: 38016}, 38033, 38038,
  10978. 38040, 38087, 38095, {f: 2, c: 38099}, 38106, 38118, 38139, 38172, 38176,
  10979. 38183, 38195, 38205, 38211, 38216, 38219, 38229, 38234, 38240, 38254,
  10980. {f: 2, c: 38260}, {f: 7, c: 38264}, 38273, {f: 2, c: 38276},
  10981. {f: 2, c: 38279}, 38282, 38285, 38288, 38290, {f: 3, c: 38293},
  10982. {f: 8, c: 38297}, 38306, {f: 2, c: 38310}, 38314, {f: 4, c: 38318},
  10983. {f: 3, c: 38323}, {f: 2, c: 38327}, 38330, {f: 3, c: 38336},
  10984. {f: 2, c: 38340}, 38343, 38345, {f: 3, c: 38349}, {f: 3, c: 38353},
  10985. {f: 5, c: 38359}, 38365, {f: 2, c: 38367}, {f: 2, c: 38371},
  10986. {f: 2, c: 38374}, 38380, 38399, 38407, 38419, 38424, 38427, 38430, 38432,
  10987. {f: 7, c: 38435}, {f: 3, c: 38443}, {f: 2, c: 38447}, {f: 4, c: 38455},
  10988. 38462, 38465, 38467, 38474, {f: 2, c: 38478}, {f: 3, c: 38481},
  10989. {f: 2, c: 38486}, {f: 2, c: 38489}, 38492, 38494, 38496, {f: 2, c: 38501},
  10990. 38507, {f: 3, c: 38509}, 38513, {f: 4, c: 38521}, {f: 7, c: 38526}, 38535,
  10991. 38537, 38540, {f: 3, c: 38545}, 38550, 38554, {f: 10, c: 38557}, 38569,
  10992. {f: 5, c: 38571}, 38578, 38581, 38583, 38586, 38591, {f: 2, c: 38594},
  10993. 38600, {f: 2, c: 38602}, {f: 2, c: 38608}, {f: 2, c: 38611},
  10994. {f: 2, c: 38615}, 38618, {f: 3, c: 38621}, 38625, {f: 4, c: 38628},
  10995. {f: 4, c: 38635}, {f: 2, c: 38640}, {f: 2, c: 38644}, 38648, 38650,
  10996. {f: 2, c: 38652}, 38655, {f: 2, c: 38658}, 38661, {f: 3, c: 38666},
  10997. {f: 3, c: 38672}, {f: 2, c: 38676}, {f: 5, c: 38679}, 38685,
  10998. {f: 8, c: 38687}, {f: 2, c: 38696}, {f: 2, c: 38699}, {f: 2, c: 38702},
  10999. 38705, {f: 5, c: 38707}, {f: 3, c: 38714}, {f: 3, c: 38719}, 38723,
  11000. {f: 3, c: 38725}, {f: 8, c: 38729}, [12205, 38737], {f: 2, c: 38740},
  11001. {f: 2, c: 38743}, {f: 2, c: 38748}, 38751, {f: 2, c: 38755},
  11002. {f: 2, c: 38758}, {f: 9, c: 38762}, 38773, {f: 5, c: 38775},
  11003. {f: 8, c: 38781}, {f: 5, c: 38790}, 38796, 38798, 38800, 38803,
  11004. {f: 3, c: 38805}, {f: 7, c: 38809}, {f: 2, c: 38817}, {f: 2, c: 38820},
  11005. {f: 4, c: 38823}, 38828, 38830, {f: 2, c: 38832}, 38835, {f: 8, c: 38837},
  11006. {f: 5, c: 38846}, {f: 2, c: 38852}, {f: 2, c: 38855}, 38858,
  11007. {f: 6, c: 38861}, {f: 5, c: 38868}, {f: 2, c: 38874}, 38877,
  11008. {f: 7, c: 38879}, 38888, {f: 5, c: 38894}, 38900, {f: 8, c: 38903}, 38912,
  11009. 38916, 38921, 38923, 38925, {f: 3, c: 38932}, {f: 3, c: 38937},
  11010. {f: 4, c: 38941}, {f: 2, c: 38946}, 38949, {f: 6, c: 38951},
  11011. {f: 2, c: 38958}, {f: 6, c: 38961}, {f: 2, c: 38969}, 38972,
  11012. {f: 8, c: 38974}, {f: 5, c: 38983}, {f: 4, c: 38991}, {f: 3, c: 38997},
  11013. 39002, {f: 2, c: 39004}, {f: 3, c: 39007}, {f: 2, c: 39011}, 39014,
  11014. {f: 3, c: 39016}, {f: 2, c: 39021}, 39026, 39051, 39054, 39058, 39061,
  11015. 39065, 39075, {f: 5, c: 39081}, 39088, 39090, {f: 2, c: 39092},
  11016. {f: 5, c: 39095}, {f: 7, c: 39101}, 39109, 39111, {f: 5, c: 39113},
  11017. {f: 2, c: 39119}, 39124, {f: 2, c: 39126}, {f: 2, c: 39132}, 39137,
  11018. {f: 4, c: 39139}, 39148, 39150, {f: 2, c: 39152}, 39155, {f: 7, c: 39157},
  11019. {f: 4, c: 39167}, 39172, {f: 3, c: 39174}, 39179, {f: 2, c: 39182},
  11020. {f: 4, c: 39188}, {f: 2, c: 39193}, {f: 2, c: 39196}, {f: 2, c: 39199},
  11021. {f: 6, c: 39202}, {f: 5, c: 39209}, {f: 4, c: 39215}, {f: 3, c: 39220},
  11022. {f: 4, c: 39224}, 39229, {f: 3, c: 39232}, 39236, {f: 2, c: 39238},
  11023. {f: 4, c: 39245}, 39251, 39254, {f: 4, c: 39256}, 39261, {f: 3, c: 39263},
  11024. 39268, 39270, 39283, {f: 2, c: 39288}, 39291, 39294, {f: 2, c: 39298},
  11025. 39305, 39308, 39310, {f: 11, c: 39322}, {f: 2, c: 39334}, {f: 3, c: 39337},
  11026. {f: 2, c: 39343}, 39346, {f: 12, c: 39349}, {f: 14, c: 39362}, 39379,
  11027. {f: 2, c: 39382}, 39386, 39388, 39390, 39392, {f: 10, c: 39395},
  11028. {f: 3, c: 39406}, {f: 13, c: 39410}, 39424, {f: 3, c: 39426},
  11029. {f: 7, c: 39430}, {f: 6, c: 39440}, {f: 2, c: 39447}, {f: 17, c: 39450},
  11030. 39468, 39471, {f: 5, c: 39473}, {f: 5, c: 39481}, 39487, {f: 4, c: 39494},
  11031. {f: 2, c: 39499}, 39502, {f: 5, c: 39504}, 39510, {f: 2, c: 39512},
  11032. {f: 3, c: 39516}, {f: 2, c: 39520}, 39523, {f: 4, c: 39526}, 39531, 39538,
  11033. 39555, 39561, {f: 2, c: 39565}, {f: 2, c: 39572}, 39577, 39590,
  11034. {f: 6, c: 39593}, {f: 4, c: 39602}, 39609, 39611, {f: 3, c: 39613},
  11035. {f: 2, c: 39619}, {f: 5, c: 39622}, {f: 2, c: 39629}, 39632, 39639,
  11036. {f: 6, c: 39641}, 39648, {f: 4, c: 39650}, {f: 4, c: 39655}, 39660,
  11037. {f: 9, c: 39664}, 39674, {f: 7, c: 39676}, {f: 2, c: 39684}, 39687,
  11038. {f: 4, c: 39689}, 39694, {f: 3, c: 39696}, {f: 6, c: 39700},
  11039. {f: 4, c: 39707}, {f: 2, c: 39712}, 39716, 39718, 39720, {f: 4, c: 39722},
  11040. 39728, {f: 8, c: 39731}, {f: 4, c: 39741}, 39750, {f: 3, c: 39754}, 39760,
  11041. {f: 2, c: 39762}, {f: 3, c: 39765}, 39769, {f: 20, c: 39771},
  11042. {f: 4, c: 39792}, {f: 2, c: 39797}, {f: 9, c: 39800}, 39810,
  11043. {f: 10, c: 39812}, 39823, {f: 7, c: 39827}, {f: 2, c: 39835},
  11044. {f: 11, c: 39839}, 39852, {f: 17, c: 39855}, {f: 5, c: 39874}, 39880,
  11045. {f: 9, c: 39883}, 39893, {f: 4, c: 39895}, 39900, {f: 3, c: 39902}, 39907,
  11046. {f: 2, c: 39909}, 39913, {f: 4, c: 39916}, {f: 3, c: 39921},
  11047. {f: 8, c: 39925}, 39934, {f: 8, c: 39936}, {f: 3, c: 39946},
  11048. {f: 2, c: 39950}, 39953, {f: 12, c: 39956}, {f: 2, c: 39969}, 39972,
  11049. {f: 2, c: 39974}, {f: 3, c: 39978}, {f: 3, c: 39982}, 39988, 39990, 39992,
  11050. 39994, {f: 2, c: 39996}, {f: 6, c: 39999}, {f: 2, c: 40006},
  11051. {f: 8, c: 40010}, 40019, 40021, {f: 4, c: 40025}, 40030, {f: 7, c: 40032},
  11052. {f: 5, c: 40040}, {f: 10, c: 40046}, 40057, 40059, {f: 2, c: 40061}, 40064,
  11053. {f: 2, c: 40067}, {f: 2, c: 40073}, 40076, 40079, 40083, {f: 4, c: 40086},
  11054. 40093, 40106, 40108, 40111, 40121, {f: 5, c: 40126}, {f: 2, c: 40136},
  11055. {f: 2, c: 40145}, {f: 2, c: 40154}, {f: 2, c: 40160}, {f: 2, c: 40163},
  11056. {f: 3, c: 40166}, {f: 2, c: 40170}, {f: 6, c: 40173}, 40181,
  11057. {f: 15, c: 40183}, 40200, {f: 11, c: 40202}, {f: 5, c: 40214}, 40220,
  11058. 40222, {f: 3, c: 40224}, {f: 2, c: 40228}, 40231, {f: 6, c: 40233},
  11059. {f: 10, c: 40241}, {f: 3, c: 40252}, {f: 2, c: 40256}, {f: 14, c: 40259},
  11060. {f: 8, c: 40276}, {f: 2, c: 40286}, {f: 8, c: 40290}, 40299,
  11061. {f: 2, c: 40301}, {f: 2, c: 40304}, {f: 20, c: 40307}, 40328,
  11062. {f: 9, c: 40330}, {f: 4, c: 40340}, 40345, {f: 10, c: 40347},
  11063. {f: 3, c: 40358}, {f: 5, c: 40362}, {f: 4, c: 40368}, {f: 6, c: 40373},
  11064. {f: 3, c: 40381}, 40385, 40387, {f: 14, c: 40389}, {f: 3, c: 40404}, 40408,
  11065. {f: 10, c: 40411}, {f: 8, c: 40423}, {f: 2, c: 40432}, {f: 4, c: 40436},
  11066. {f: 17, c: 40443}, {f: 8, c: 40461}, {f: 4, c: 40470}, 40476, 40484, 40487,
  11067. 40494, 40496, 40500, {f: 2, c: 40507}, 40512, 40525, 40528,
  11068. {f: 3, c: 40530}, 40534, 40537, 40541, {f: 4, c: 40543}, 40549,
  11069. {f: 2, c: 40558}, 40562, 40564, {f: 3, c: 40566}, 40571, {f: 2, c: 40576},
  11070. {f: 4, c: 40579}, {f: 2, c: 40585}, {f: 6, c: 40588}, {f: 3, c: 40596},
  11071. {f: 5, c: 40600}, 40606, {f: 5, c: 40608}, {f: 2, c: 40615},
  11072. {f: 5, c: 40618}, {f: 4, c: 40624}, {f: 2, c: 40630}, {f: 2, c: 40633},
  11073. 40636, {f: 4, c: 40639}, [12232, 40643], {f: 4, c: 40645},
  11074. {f: 2, c: 40650}, 40656, {f: 2, c: 40658}, {f: 3, c: 40661},
  11075. {f: 2, c: 40665}, 40673, {f: 2, c: 40675}, 40678, {f: 4, c: 40683},
  11076. {f: 2, c: 40688}, 40691, {f: 2, c: 40693}, 40696, 40698, {f: 9, c: 40704},
  11077. 40714, 40716, 40719, {f: 2, c: 40721}, 40724, 40726, 40728,
  11078. {f: 6, c: 40730}, 40737, {f: 9, c: 40739}, {f: 2, c: 40749},
  11079. {f: 7, c: 40752}, 40760, 40762, 40764, {f: 5, c: 40767}, {f: 5, c: 40773},
  11080. {f: 3, c: 40780}, 40787, {f: 4, c: 40789}, {f: 2, c: 40794},
  11081. {f: 2, c: 40797}, 40802, {f: 2, c: 40804}, {f: 3, c: 40807}, 40811,
  11082. {f: 5, c: 40813}, {f: 4, c: 40819}, {f: 7, c: 40824}, {f: 2, c: 40833},
  11083. {f: 2, c: 40846}, {f: 3, c: 40849}, {f: 3, c: 40854}, {f: 2, c: 40861},
  11084. {f: 5, c: 40865}, 63788, {f: 3, c: 64013}, 64017, {f: 2, c: 64019}, 64024,
  11085. {f: 3, c: 64031}, {f: 2, c: 64035}, {f: 3, c: 64039}, 11905,
  11086. [59414, 131207], [59415, 131209], [59416, 131276], 11908, 13427, 13383,
  11087. 11912, 11915, 59422, 13726, 13850, 13838, 11916, 11927, 14702, 14616,
  11088. 59430, 14799, 14815, 14963, 14800, {f: 2, c: 59435}, 15182, 15470, 15584,
  11089. 11943, [59441, 136663], 59442, 11946, 16470, 16735, 11950, 17207, 11955,
  11090. {f: 2, c: 11958}, [59451, 141711], 17329, 17324, 11963, 17373, 17622,
  11091. 18017, 17996, [59459, 132361], 18211, 18217, 18300, 18317, 11978, 18759,
  11092. 18810, 18813, {f: 2, c: 18818}, {f: 2, c: 18821}, 18847, 18843, 18871,
  11093. 18870, [59476, 133533], [59477, 147966], 19619, {f: 3, c: 19615}, 19575,
  11094. 19618, {f: 7, c: 19731}, 19886, 59492, {s: 226}, 8364, 165, 0, 0, 12351,
  11095. {s: 17}, 12436, {s: 14}, 12535, 12537, 12536, 12538, 0, {f: 3, c: 12339},
  11096. {f: 3, c: 12344}, {f: 3, c: 12586}, {f: 24, c: 12704}, 11904,
  11097. {f: 2, c: 11906}, {f: 3, c: 11909}, {f: 2, c: 11913}, {f: 10, c: 11917},
  11098. {f: 2, c: 11928}, {f: 12, c: 11931}, {f: 2, c: 11944}, {f: 3, c: 11947},
  11099. {f: 4, c: 11951}, {f: 2, c: 11956}, {f: 3, c: 11960}, {f: 14, c: 11964},
  11100. {f: 41, c: 11979}, {f: 71, c: 13312}, {f: 43, c: 13384},
  11101. {f: 298, c: 13428}, {f: 111, c: 13727}, {f: 11, c: 13839},
  11102. {f: 765, c: 13851}, {f: 85, c: 14617}, {f: 96, c: 14703},
  11103. {f: 14, c: 14801}, {f: 147, c: 14816}, {f: 218, c: 14964},
  11104. {f: 287, c: 15183}, {f: 113, c: 15471}, {f: 885, c: 15585},
  11105. {f: 264, c: 16471}, {f: 471, c: 16736}, {f: 116, c: 17208},
  11106. {f: 4, c: 17325}, {f: 43, c: 17330}, {f: 248, c: 17374},
  11107. {f: 373, c: 17623}, {f: 20, c: 17997}, {f: 193, c: 18018},
  11108. {f: 5, c: 18212}, {f: 82, c: 18218}, {f: 16, c: 18301}, {f: 441, c: 18318},
  11109. {f: 50, c: 18760}, {f: 2, c: 18811}, {f: 4, c: 18814}, 18820,
  11110. {f: 20, c: 18823}, {f: 3, c: 18844}, {f: 22, c: 18848}, {f: 703, c: 18872},
  11111. {f: 39, c: 19576}, {f: 111, c: 19620}, {f: 148, c: 19738},
  11112. {f: 7, c: 19887}]
  11113. };
  11114. var DEFAULT_ICON_SIZE = 22; // px
  11115. var SUPPORTED_TYPES = ['Link', 'Text', 'Widget'];
  11116. var Annotation = (function AnnotationClosure() {
  11117. // 12.5.5: Algorithm: Appearance streams
  11118. function getTransformMatrix(rect, bbox, matrix) {
  11119. var bounds = Util.getAxialAlignedBoundingBox(bbox, matrix);
  11120. var minX = bounds[0];
  11121. var minY = bounds[1];
  11122. var maxX = bounds[2];
  11123. var maxY = bounds[3];
  11124. if (minX === maxX || minY === maxY) {
  11125. // From real-life file, bbox was [0, 0, 0, 0]. In this case,
  11126. // just apply the transform for rect
  11127. return [1, 0, 0, 1, rect[0], rect[1]];
  11128. }
  11129. var xRatio = (rect[2] - rect[0]) / (maxX - minX);
  11130. var yRatio = (rect[3] - rect[1]) / (maxY - minY);
  11131. return [
  11132. xRatio,
  11133. 0,
  11134. 0,
  11135. yRatio,
  11136. rect[0] - minX * xRatio,
  11137. rect[1] - minY * yRatio
  11138. ];
  11139. }
  11140. function getDefaultAppearance(dict) {
  11141. var appearanceState = dict.get('AP');
  11142. if (!isDict(appearanceState)) {
  11143. return;
  11144. }
  11145. var appearance;
  11146. var appearances = appearanceState.get('N');
  11147. if (isDict(appearances)) {
  11148. var as = dict.get('AS');
  11149. if (as && appearances.has(as.name)) {
  11150. appearance = appearances.get(as.name);
  11151. }
  11152. } else {
  11153. appearance = appearances;
  11154. }
  11155. return appearance;
  11156. }
  11157. function Annotation(params) {
  11158. var dict = params.dict;
  11159. var data = this.data = {};
  11160. data.subtype = dict.get('Subtype').name;
  11161. var rect = dict.get('Rect') || [0, 0, 0, 0];
  11162. data.rect = Util.normalizeRect(rect);
  11163. data.annotationFlags = dict.get('F');
  11164. var color = dict.get('C');
  11165. if (isArray(color) && color.length === 3) {
  11166. // TODO(mack): currently only supporting rgb; need support different
  11167. // colorspaces
  11168. data.color = color;
  11169. } else {
  11170. data.color = [0, 0, 0];
  11171. }
  11172. // Some types of annotations have border style dict which has more
  11173. // info than the border array
  11174. if (dict.has('BS')) {
  11175. var borderStyle = dict.get('BS');
  11176. data.borderWidth = borderStyle.has('W') ? borderStyle.get('W') : 1;
  11177. } else {
  11178. var borderArray = dict.get('Border') || [0, 0, 1];
  11179. data.borderWidth = borderArray[2] || 0;
  11180. // TODO: implement proper support for annotations with line dash patterns.
  11181. var dashArray = borderArray[3];
  11182. if (data.borderWidth > 0 && dashArray) {
  11183. if (!isArray(dashArray)) {
  11184. // Ignore the border if dashArray is not actually an array,
  11185. // this is consistent with the behaviour in Adobe Reader.
  11186. data.borderWidth = 0;
  11187. } else {
  11188. var dashArrayLength = dashArray.length;
  11189. if (dashArrayLength > 0) {
  11190. // According to the PDF specification: the elements in a dashArray
  11191. // shall be numbers that are nonnegative and not all equal to zero.
  11192. var isInvalid = false;
  11193. var numPositive = 0;
  11194. for (var i = 0; i < dashArrayLength; i++) {
  11195. var validNumber = (+dashArray[i] >= 0);
  11196. if (!validNumber) {
  11197. isInvalid = true;
  11198. break;
  11199. } else if (dashArray[i] > 0) {
  11200. numPositive++;
  11201. }
  11202. }
  11203. if (isInvalid || numPositive === 0) {
  11204. data.borderWidth = 0;
  11205. }
  11206. }
  11207. }
  11208. }
  11209. }
  11210. this.appearance = getDefaultAppearance(dict);
  11211. data.hasAppearance = !!this.appearance;
  11212. data.id = params.ref.num;
  11213. }
  11214. Annotation.prototype = {
  11215. getData: function Annotation_getData() {
  11216. return this.data;
  11217. },
  11218. isInvisible: function Annotation_isInvisible() {
  11219. var data = this.data;
  11220. if (data && SUPPORTED_TYPES.indexOf(data.subtype) !== -1) {
  11221. return false;
  11222. } else {
  11223. return !!(data &&
  11224. data.annotationFlags && // Default: not invisible
  11225. data.annotationFlags & 0x1); // Invisible
  11226. }
  11227. },
  11228. isViewable: function Annotation_isViewable() {
  11229. var data = this.data;
  11230. return !!(!this.isInvisible() &&
  11231. data &&
  11232. (!data.annotationFlags ||
  11233. !(data.annotationFlags & 0x22)) && // Hidden or NoView
  11234. data.rect); // rectangle is necessary
  11235. },
  11236. isPrintable: function Annotation_isPrintable() {
  11237. var data = this.data;
  11238. return !!(!this.isInvisible() &&
  11239. data &&
  11240. data.annotationFlags && // Default: not printable
  11241. data.annotationFlags & 0x4 && // Print
  11242. !(data.annotationFlags & 0x2) && // Hidden
  11243. data.rect); // rectangle is necessary
  11244. },
  11245. loadResources: function Annotation_loadResources(keys) {
  11246. return new Promise(function (resolve, reject) {
  11247. this.appearance.dict.getAsync('Resources').then(function (resources) {
  11248. if (!resources) {
  11249. resolve();
  11250. return;
  11251. }
  11252. var objectLoader = new ObjectLoader(resources.map,
  11253. keys,
  11254. resources.xref);
  11255. objectLoader.load().then(function() {
  11256. resolve(resources);
  11257. }, reject);
  11258. }, reject);
  11259. }.bind(this));
  11260. },
  11261. getOperatorList: function Annotation_getOperatorList(evaluator) {
  11262. if (!this.appearance) {
  11263. return Promise.resolve(new OperatorList());
  11264. }
  11265. var data = this.data;
  11266. var appearanceDict = this.appearance.dict;
  11267. var resourcesPromise = this.loadResources([
  11268. 'ExtGState',
  11269. 'ColorSpace',
  11270. 'Pattern',
  11271. 'Shading',
  11272. 'XObject',
  11273. 'Font'
  11274. // ProcSet
  11275. // Properties
  11276. ]);
  11277. var bbox = appearanceDict.get('BBox') || [0, 0, 1, 1];
  11278. var matrix = appearanceDict.get('Matrix') || [1, 0, 0, 1, 0 ,0];
  11279. var transform = getTransformMatrix(data.rect, bbox, matrix);
  11280. var self = this;
  11281. return resourcesPromise.then(function(resources) {
  11282. var opList = new OperatorList();
  11283. opList.addOp(OPS.beginAnnotation, [data.rect, transform, matrix]);
  11284. return evaluator.getOperatorList(self.appearance, resources, opList).
  11285. then(function () {
  11286. opList.addOp(OPS.endAnnotation, []);
  11287. self.appearance.reset();
  11288. return opList;
  11289. });
  11290. });
  11291. }
  11292. };
  11293. Annotation.getConstructor =
  11294. function Annotation_getConstructor(subtype, fieldType) {
  11295. if (!subtype) {
  11296. return;
  11297. }
  11298. // TODO(mack): Implement FreeText annotations
  11299. if (subtype === 'Link') {
  11300. return LinkAnnotation;
  11301. } else if (subtype === 'Text') {
  11302. return TextAnnotation;
  11303. } else if (subtype === 'Widget') {
  11304. if (!fieldType) {
  11305. return;
  11306. }
  11307. if (fieldType === 'Tx') {
  11308. return TextWidgetAnnotation;
  11309. } else {
  11310. return WidgetAnnotation;
  11311. }
  11312. } else {
  11313. return Annotation;
  11314. }
  11315. };
  11316. Annotation.fromRef = function Annotation_fromRef(xref, ref) {
  11317. var dict = xref.fetchIfRef(ref);
  11318. if (!isDict(dict)) {
  11319. return;
  11320. }
  11321. var subtype = dict.get('Subtype');
  11322. subtype = isName(subtype) ? subtype.name : '';
  11323. if (!subtype) {
  11324. return;
  11325. }
  11326. var fieldType = Util.getInheritableProperty(dict, 'FT');
  11327. fieldType = isName(fieldType) ? fieldType.name : '';
  11328. var Constructor = Annotation.getConstructor(subtype, fieldType);
  11329. if (!Constructor) {
  11330. return;
  11331. }
  11332. var params = {
  11333. dict: dict,
  11334. ref: ref,
  11335. };
  11336. var annotation = new Constructor(params);
  11337. if (annotation.isViewable() || annotation.isPrintable()) {
  11338. return annotation;
  11339. } else {
  11340. if (SUPPORTED_TYPES.indexOf(subtype) === -1) {
  11341. warn('unimplemented annotation type: ' + subtype);
  11342. }
  11343. }
  11344. };
  11345. Annotation.appendToOperatorList = function Annotation_appendToOperatorList(
  11346. annotations, opList, pdfManager, partialEvaluator, intent) {
  11347. function reject(e) {
  11348. annotationsReadyCapability.reject(e);
  11349. }
  11350. var annotationsReadyCapability = createPromiseCapability();
  11351. var annotationPromises = [];
  11352. for (var i = 0, n = annotations.length; i < n; ++i) {
  11353. if (intent === 'display' && annotations[i].isViewable() ||
  11354. intent === 'print' && annotations[i].isPrintable()) {
  11355. annotationPromises.push(
  11356. annotations[i].getOperatorList(partialEvaluator));
  11357. }
  11358. }
  11359. Promise.all(annotationPromises).then(function(datas) {
  11360. opList.addOp(OPS.beginAnnotations, []);
  11361. for (var i = 0, n = datas.length; i < n; ++i) {
  11362. var annotOpList = datas[i];
  11363. opList.addOpList(annotOpList);
  11364. }
  11365. opList.addOp(OPS.endAnnotations, []);
  11366. annotationsReadyCapability.resolve();
  11367. }, reject);
  11368. return annotationsReadyCapability.promise;
  11369. };
  11370. return Annotation;
  11371. })();
  11372. var WidgetAnnotation = (function WidgetAnnotationClosure() {
  11373. function WidgetAnnotation(params) {
  11374. Annotation.call(this, params);
  11375. var dict = params.dict;
  11376. var data = this.data;
  11377. data.fieldValue = stringToPDFString(
  11378. Util.getInheritableProperty(dict, 'V') || '');
  11379. data.alternativeText = stringToPDFString(dict.get('TU') || '');
  11380. data.defaultAppearance = Util.getInheritableProperty(dict, 'DA') || '';
  11381. var fieldType = Util.getInheritableProperty(dict, 'FT');
  11382. data.fieldType = isName(fieldType) ? fieldType.name : '';
  11383. data.fieldFlags = Util.getInheritableProperty(dict, 'Ff') || 0;
  11384. this.fieldResources = Util.getInheritableProperty(dict, 'DR') || Dict.empty;
  11385. // Building the full field name by collecting the field and
  11386. // its ancestors 'T' data and joining them using '.'.
  11387. var fieldName = [];
  11388. var namedItem = dict;
  11389. var ref = params.ref;
  11390. while (namedItem) {
  11391. var parent = namedItem.get('Parent');
  11392. var parentRef = namedItem.getRaw('Parent');
  11393. var name = namedItem.get('T');
  11394. if (name) {
  11395. fieldName.unshift(stringToPDFString(name));
  11396. } else {
  11397. // The field name is absent, that means more than one field
  11398. // with the same name may exist. Replacing the empty name
  11399. // with the '`' plus index in the parent's 'Kids' array.
  11400. // This is not in the PDF spec but necessary to id the
  11401. // the input controls.
  11402. var kids = parent.get('Kids');
  11403. var j, jj;
  11404. for (j = 0, jj = kids.length; j < jj; j++) {
  11405. var kidRef = kids[j];
  11406. if (kidRef.num == ref.num && kidRef.gen == ref.gen) {
  11407. break;
  11408. }
  11409. }
  11410. fieldName.unshift('`' + j);
  11411. }
  11412. namedItem = parent;
  11413. ref = parentRef;
  11414. }
  11415. data.fullName = fieldName.join('.');
  11416. }
  11417. var parent = Annotation.prototype;
  11418. Util.inherit(WidgetAnnotation, Annotation, {
  11419. isViewable: function WidgetAnnotation_isViewable() {
  11420. if (this.data.fieldType === 'Sig') {
  11421. warn('unimplemented annotation type: Widget signature');
  11422. return false;
  11423. }
  11424. return parent.isViewable.call(this);
  11425. }
  11426. });
  11427. return WidgetAnnotation;
  11428. })();
  11429. var TextWidgetAnnotation = (function TextWidgetAnnotationClosure() {
  11430. function TextWidgetAnnotation(params) {
  11431. WidgetAnnotation.call(this, params);
  11432. this.data.textAlignment = Util.getInheritableProperty(params.dict, 'Q');
  11433. this.data.annotationType = AnnotationType.WIDGET;
  11434. this.data.hasHtml = !this.data.hasAppearance && !!this.data.fieldValue;
  11435. }
  11436. Util.inherit(TextWidgetAnnotation, WidgetAnnotation, {
  11437. getOperatorList: function TextWidgetAnnotation_getOperatorList(evaluator) {
  11438. if (this.appearance) {
  11439. return Annotation.prototype.getOperatorList.call(this, evaluator);
  11440. }
  11441. var opList = new OperatorList();
  11442. var data = this.data;
  11443. // Even if there is an appearance stream, ignore it. This is the
  11444. // behaviour used by Adobe Reader.
  11445. if (!data.defaultAppearance) {
  11446. return Promise.resolve(opList);
  11447. }
  11448. var stream = new Stream(stringToBytes(data.defaultAppearance));
  11449. return evaluator.getOperatorList(stream, this.fieldResources, opList).
  11450. then(function () {
  11451. return opList;
  11452. });
  11453. }
  11454. });
  11455. return TextWidgetAnnotation;
  11456. })();
  11457. var InteractiveAnnotation = (function InteractiveAnnotationClosure() {
  11458. function InteractiveAnnotation(params) {
  11459. Annotation.call(this, params);
  11460. this.data.hasHtml = true;
  11461. }
  11462. Util.inherit(InteractiveAnnotation, Annotation, { });
  11463. return InteractiveAnnotation;
  11464. })();
  11465. var TextAnnotation = (function TextAnnotationClosure() {
  11466. function TextAnnotation(params) {
  11467. InteractiveAnnotation.call(this, params);
  11468. var dict = params.dict;
  11469. var data = this.data;
  11470. var content = dict.get('Contents');
  11471. var title = dict.get('T');
  11472. data.annotationType = AnnotationType.TEXT;
  11473. data.content = stringToPDFString(content || '');
  11474. data.title = stringToPDFString(title || '');
  11475. if (data.hasAppearance) {
  11476. data.name = 'NoIcon';
  11477. } else {
  11478. data.rect[1] = data.rect[3] - DEFAULT_ICON_SIZE;
  11479. data.rect[2] = data.rect[0] + DEFAULT_ICON_SIZE;
  11480. data.name = dict.has('Name') ? dict.get('Name').name : 'Note';
  11481. }
  11482. if (dict.has('C')) {
  11483. data.hasBgColor = true;
  11484. }
  11485. }
  11486. Util.inherit(TextAnnotation, InteractiveAnnotation, { });
  11487. return TextAnnotation;
  11488. })();
  11489. var LinkAnnotation = (function LinkAnnotationClosure() {
  11490. function LinkAnnotation(params) {
  11491. InteractiveAnnotation.call(this, params);
  11492. var dict = params.dict;
  11493. var data = this.data;
  11494. data.annotationType = AnnotationType.LINK;
  11495. var action = dict.get('A');
  11496. if (action) {
  11497. var linkType = action.get('S').name;
  11498. if (linkType === 'URI') {
  11499. var url = action.get('URI');
  11500. if (isName(url)) {
  11501. // Some bad PDFs do not put parentheses around relative URLs.
  11502. url = '/' + url.name;
  11503. } else if (url) {
  11504. url = addDefaultProtocolToUrl(url);
  11505. }
  11506. // TODO: pdf spec mentions urls can be relative to a Base
  11507. // entry in the dictionary.
  11508. if (!isValidUrl(url, false)) {
  11509. url = '';
  11510. }
  11511. data.url = url;
  11512. } else if (linkType === 'GoTo') {
  11513. data.dest = action.get('D');
  11514. } else if (linkType === 'GoToR') {
  11515. var urlDict = action.get('F');
  11516. if (isDict(urlDict)) {
  11517. // We assume that the 'url' is a Filspec dictionary
  11518. // and fetch the url without checking any further
  11519. url = urlDict.get('F') || '';
  11520. }
  11521. // TODO: pdf reference says that GoToR
  11522. // can also have 'NewWindow' attribute
  11523. if (!isValidUrl(url, false)) {
  11524. url = '';
  11525. }
  11526. data.url = url;
  11527. data.dest = action.get('D');
  11528. } else if (linkType === 'Named') {
  11529. data.action = action.get('N').name;
  11530. } else {
  11531. warn('unrecognized link type: ' + linkType);
  11532. }
  11533. } else if (dict.has('Dest')) {
  11534. // simple destination link
  11535. var dest = dict.get('Dest');
  11536. data.dest = isName(dest) ? dest.name : dest;
  11537. }
  11538. }
  11539. // Lets URLs beginning with 'www.' default to using the 'http://' protocol.
  11540. function addDefaultProtocolToUrl(url) {
  11541. if (url && url.indexOf('www.') === 0) {
  11542. return ('http://' + url);
  11543. }
  11544. return url;
  11545. }
  11546. Util.inherit(LinkAnnotation, InteractiveAnnotation, {
  11547. hasOperatorList: function LinkAnnotation_hasOperatorList() {
  11548. return false;
  11549. }
  11550. });
  11551. return LinkAnnotation;
  11552. })();
  11553. var PDFFunction = (function PDFFunctionClosure() {
  11554. var CONSTRUCT_SAMPLED = 0;
  11555. var CONSTRUCT_INTERPOLATED = 2;
  11556. var CONSTRUCT_STICHED = 3;
  11557. var CONSTRUCT_POSTSCRIPT = 4;
  11558. return {
  11559. getSampleArray: function PDFFunction_getSampleArray(size, outputSize, bps,
  11560. str) {
  11561. var i, ii;
  11562. var length = 1;
  11563. for (i = 0, ii = size.length; i < ii; i++) {
  11564. length *= size[i];
  11565. }
  11566. length *= outputSize;
  11567. var array = [];
  11568. var codeSize = 0;
  11569. var codeBuf = 0;
  11570. // 32 is a valid bps so shifting won't work
  11571. var sampleMul = 1.0 / (Math.pow(2.0, bps) - 1);
  11572. var strBytes = str.getBytes((length * bps + 7) / 8);
  11573. var strIdx = 0;
  11574. for (i = 0; i < length; i++) {
  11575. while (codeSize < bps) {
  11576. codeBuf <<= 8;
  11577. codeBuf |= strBytes[strIdx++];
  11578. codeSize += 8;
  11579. }
  11580. codeSize -= bps;
  11581. array.push((codeBuf >> codeSize) * sampleMul);
  11582. codeBuf &= (1 << codeSize) - 1;
  11583. }
  11584. return array;
  11585. },
  11586. getIR: function PDFFunction_getIR(xref, fn) {
  11587. var dict = fn.dict;
  11588. if (!dict) {
  11589. dict = fn;
  11590. }
  11591. var types = [this.constructSampled,
  11592. null,
  11593. this.constructInterpolated,
  11594. this.constructStiched,
  11595. this.constructPostScript];
  11596. var typeNum = dict.get('FunctionType');
  11597. var typeFn = types[typeNum];
  11598. if (!typeFn) {
  11599. error('Unknown type of function');
  11600. }
  11601. return typeFn.call(this, fn, dict, xref);
  11602. },
  11603. fromIR: function PDFFunction_fromIR(IR) {
  11604. var type = IR[0];
  11605. switch (type) {
  11606. case CONSTRUCT_SAMPLED:
  11607. return this.constructSampledFromIR(IR);
  11608. case CONSTRUCT_INTERPOLATED:
  11609. return this.constructInterpolatedFromIR(IR);
  11610. case CONSTRUCT_STICHED:
  11611. return this.constructStichedFromIR(IR);
  11612. //case CONSTRUCT_POSTSCRIPT:
  11613. default:
  11614. return this.constructPostScriptFromIR(IR);
  11615. }
  11616. },
  11617. parse: function PDFFunction_parse(xref, fn) {
  11618. var IR = this.getIR(xref, fn);
  11619. return this.fromIR(IR);
  11620. },
  11621. constructSampled: function PDFFunction_constructSampled(str, dict) {
  11622. function toMultiArray(arr) {
  11623. var inputLength = arr.length;
  11624. var out = [];
  11625. var index = 0;
  11626. for (var i = 0; i < inputLength; i += 2) {
  11627. out[index] = [arr[i], arr[i + 1]];
  11628. ++index;
  11629. }
  11630. return out;
  11631. }
  11632. var domain = dict.get('Domain');
  11633. var range = dict.get('Range');
  11634. if (!domain || !range) {
  11635. error('No domain or range');
  11636. }
  11637. var inputSize = domain.length / 2;
  11638. var outputSize = range.length / 2;
  11639. domain = toMultiArray(domain);
  11640. range = toMultiArray(range);
  11641. var size = dict.get('Size');
  11642. var bps = dict.get('BitsPerSample');
  11643. var order = dict.get('Order') || 1;
  11644. if (order !== 1) {
  11645. // No description how cubic spline interpolation works in PDF32000:2008
  11646. // As in poppler, ignoring order, linear interpolation may work as good
  11647. info('No support for cubic spline interpolation: ' + order);
  11648. }
  11649. var encode = dict.get('Encode');
  11650. if (!encode) {
  11651. encode = [];
  11652. for (var i = 0; i < inputSize; ++i) {
  11653. encode.push(0);
  11654. encode.push(size[i] - 1);
  11655. }
  11656. }
  11657. encode = toMultiArray(encode);
  11658. var decode = dict.get('Decode');
  11659. if (!decode) {
  11660. decode = range;
  11661. } else {
  11662. decode = toMultiArray(decode);
  11663. }
  11664. var samples = this.getSampleArray(size, outputSize, bps, str);
  11665. return [
  11666. CONSTRUCT_SAMPLED, inputSize, domain, encode, decode, samples, size,
  11667. outputSize, Math.pow(2, bps) - 1, range
  11668. ];
  11669. },
  11670. constructSampledFromIR: function PDFFunction_constructSampledFromIR(IR) {
  11671. // See chapter 3, page 109 of the PDF reference
  11672. function interpolate(x, xmin, xmax, ymin, ymax) {
  11673. return ymin + ((x - xmin) * ((ymax - ymin) / (xmax - xmin)));
  11674. }
  11675. return function constructSampledFromIRResult(args) {
  11676. // See chapter 3, page 110 of the PDF reference.
  11677. var m = IR[1];
  11678. var domain = IR[2];
  11679. var encode = IR[3];
  11680. var decode = IR[4];
  11681. var samples = IR[5];
  11682. var size = IR[6];
  11683. var n = IR[7];
  11684. //var mask = IR[8];
  11685. var range = IR[9];
  11686. if (m != args.length) {
  11687. error('Incorrect number of arguments: ' + m + ' != ' +
  11688. args.length);
  11689. }
  11690. var x = args;
  11691. // Building the cube vertices: its part and sample index
  11692. // http://rjwagner49.com/Mathematics/Interpolation.pdf
  11693. var cubeVertices = 1 << m;
  11694. var cubeN = new Float64Array(cubeVertices);
  11695. var cubeVertex = new Uint32Array(cubeVertices);
  11696. var i, j;
  11697. for (j = 0; j < cubeVertices; j++) {
  11698. cubeN[j] = 1;
  11699. }
  11700. var k = n, pos = 1;
  11701. // Map x_i to y_j for 0 <= i < m using the sampled function.
  11702. for (i = 0; i < m; ++i) {
  11703. // x_i' = min(max(x_i, Domain_2i), Domain_2i+1)
  11704. var domain_2i = domain[i][0];
  11705. var domain_2i_1 = domain[i][1];
  11706. var xi = Math.min(Math.max(x[i], domain_2i), domain_2i_1);
  11707. // e_i = Interpolate(x_i', Domain_2i, Domain_2i+1,
  11708. // Encode_2i, Encode_2i+1)
  11709. var e = interpolate(xi, domain_2i, domain_2i_1,
  11710. encode[i][0], encode[i][1]);
  11711. // e_i' = min(max(e_i, 0), Size_i - 1)
  11712. var size_i = size[i];
  11713. e = Math.min(Math.max(e, 0), size_i - 1);
  11714. // Adjusting the cube: N and vertex sample index
  11715. var e0 = e < size_i - 1 ? Math.floor(e) : e - 1; // e1 = e0 + 1;
  11716. var n0 = e0 + 1 - e; // (e1 - e) / (e1 - e0);
  11717. var n1 = e - e0; // (e - e0) / (e1 - e0);
  11718. var offset0 = e0 * k;
  11719. var offset1 = offset0 + k; // e1 * k
  11720. for (j = 0; j < cubeVertices; j++) {
  11721. if (j & pos) {
  11722. cubeN[j] *= n1;
  11723. cubeVertex[j] += offset1;
  11724. } else {
  11725. cubeN[j] *= n0;
  11726. cubeVertex[j] += offset0;
  11727. }
  11728. }
  11729. k *= size_i;
  11730. pos <<= 1;
  11731. }
  11732. var y = new Float64Array(n);
  11733. for (j = 0; j < n; ++j) {
  11734. // Sum all cube vertices' samples portions
  11735. var rj = 0;
  11736. for (i = 0; i < cubeVertices; i++) {
  11737. rj += samples[cubeVertex[i] + j] * cubeN[i];
  11738. }
  11739. // r_j' = Interpolate(r_j, 0, 2^BitsPerSample - 1,
  11740. // Decode_2j, Decode_2j+1)
  11741. rj = interpolate(rj, 0, 1, decode[j][0], decode[j][1]);
  11742. // y_j = min(max(r_j, range_2j), range_2j+1)
  11743. y[j] = Math.min(Math.max(rj, range[j][0]), range[j][1]);
  11744. }
  11745. return y;
  11746. };
  11747. },
  11748. constructInterpolated: function PDFFunction_constructInterpolated(str,
  11749. dict) {
  11750. var c0 = dict.get('C0') || [0];
  11751. var c1 = dict.get('C1') || [1];
  11752. var n = dict.get('N');
  11753. if (!isArray(c0) || !isArray(c1)) {
  11754. error('Illegal dictionary for interpolated function');
  11755. }
  11756. var length = c0.length;
  11757. var diff = [];
  11758. for (var i = 0; i < length; ++i) {
  11759. diff.push(c1[i] - c0[i]);
  11760. }
  11761. return [CONSTRUCT_INTERPOLATED, c0, diff, n];
  11762. },
  11763. constructInterpolatedFromIR:
  11764. function PDFFunction_constructInterpolatedFromIR(IR) {
  11765. var c0 = IR[1];
  11766. var diff = IR[2];
  11767. var n = IR[3];
  11768. var length = diff.length;
  11769. return function constructInterpolatedFromIRResult(args) {
  11770. var x = n == 1 ? args[0] : Math.pow(args[0], n);
  11771. var out = [];
  11772. for (var j = 0; j < length; ++j) {
  11773. out.push(c0[j] + (x * diff[j]));
  11774. }
  11775. return out;
  11776. };
  11777. },
  11778. constructStiched: function PDFFunction_constructStiched(fn, dict, xref) {
  11779. var domain = dict.get('Domain');
  11780. if (!domain) {
  11781. error('No domain');
  11782. }
  11783. var inputSize = domain.length / 2;
  11784. if (inputSize != 1) {
  11785. error('Bad domain for stiched function');
  11786. }
  11787. var fnRefs = dict.get('Functions');
  11788. var fns = [];
  11789. for (var i = 0, ii = fnRefs.length; i < ii; ++i) {
  11790. fns.push(PDFFunction.getIR(xref, xref.fetchIfRef(fnRefs[i])));
  11791. }
  11792. var bounds = dict.get('Bounds');
  11793. var encode = dict.get('Encode');
  11794. return [CONSTRUCT_STICHED, domain, bounds, encode, fns];
  11795. },
  11796. constructStichedFromIR: function PDFFunction_constructStichedFromIR(IR) {
  11797. var domain = IR[1];
  11798. var bounds = IR[2];
  11799. var encode = IR[3];
  11800. var fnsIR = IR[4];
  11801. var fns = [];
  11802. for (var i = 0, ii = fnsIR.length; i < ii; i++) {
  11803. fns.push(PDFFunction.fromIR(fnsIR[i]));
  11804. }
  11805. return function constructStichedFromIRResult(args) {
  11806. var clip = function constructStichedFromIRClip(v, min, max) {
  11807. if (v > max) {
  11808. v = max;
  11809. } else if (v < min) {
  11810. v = min;
  11811. }
  11812. return v;
  11813. };
  11814. // clip to domain
  11815. var v = clip(args[0], domain[0], domain[1]);
  11816. // calulate which bound the value is in
  11817. for (var i = 0, ii = bounds.length; i < ii; ++i) {
  11818. if (v < bounds[i]) {
  11819. break;
  11820. }
  11821. }
  11822. // encode value into domain of function
  11823. var dmin = domain[0];
  11824. if (i > 0) {
  11825. dmin = bounds[i - 1];
  11826. }
  11827. var dmax = domain[1];
  11828. if (i < bounds.length) {
  11829. dmax = bounds[i];
  11830. }
  11831. var rmin = encode[2 * i];
  11832. var rmax = encode[2 * i + 1];
  11833. var v2 = rmin + (v - dmin) * (rmax - rmin) / (dmax - dmin);
  11834. // call the appropriate function
  11835. return fns[i]([v2]);
  11836. };
  11837. },
  11838. constructPostScript: function PDFFunction_constructPostScript(fn, dict,
  11839. xref) {
  11840. var domain = dict.get('Domain');
  11841. var range = dict.get('Range');
  11842. if (!domain) {
  11843. error('No domain.');
  11844. }
  11845. if (!range) {
  11846. error('No range.');
  11847. }
  11848. var lexer = new PostScriptLexer(fn);
  11849. var parser = new PostScriptParser(lexer);
  11850. var code = parser.parse();
  11851. return [CONSTRUCT_POSTSCRIPT, domain, range, code];
  11852. },
  11853. constructPostScriptFromIR: function PDFFunction_constructPostScriptFromIR(
  11854. IR) {
  11855. var domain = IR[1];
  11856. var range = IR[2];
  11857. var code = IR[3];
  11858. var numOutputs = range.length >> 1;
  11859. var numInputs = domain.length >> 1;
  11860. var evaluator = new PostScriptEvaluator(code);
  11861. // Cache the values for a big speed up, the cache size is limited though
  11862. // since the number of possible values can be huge from a PS function.
  11863. var cache = {};
  11864. // The MAX_CACHE_SIZE is set to ~4x the maximum number of distinct values
  11865. // seen in our tests.
  11866. var MAX_CACHE_SIZE = 2048 * 4;
  11867. var cache_available = MAX_CACHE_SIZE;
  11868. return function constructPostScriptFromIRResult(args) {
  11869. var i, value;
  11870. var key = '';
  11871. var input = new Array(numInputs);
  11872. for (i = 0; i < numInputs; i++) {
  11873. value = args[i];
  11874. input[i] = value;
  11875. key += value + '_';
  11876. }
  11877. var cachedValue = cache[key];
  11878. if (cachedValue !== undefined) {
  11879. return cachedValue;
  11880. }
  11881. var output = new Array(numOutputs);
  11882. var stack = evaluator.execute(input);
  11883. var stackIndex = stack.length - numOutputs;
  11884. for (i = 0; i < numOutputs; i++) {
  11885. value = stack[stackIndex + i];
  11886. var bound = range[i * 2];
  11887. if (value < bound) {
  11888. value = bound;
  11889. } else {
  11890. bound = range[i * 2 +1];
  11891. if (value > bound) {
  11892. value = bound;
  11893. }
  11894. }
  11895. output[i] = value;
  11896. }
  11897. if (cache_available > 0) {
  11898. cache_available--;
  11899. cache[key] = output;
  11900. }
  11901. return output;
  11902. };
  11903. }
  11904. };
  11905. })();
  11906. function isPDFFunction(v) {
  11907. var fnDict;
  11908. if (typeof v != 'object') {
  11909. return false;
  11910. } else if (isDict(v)) {
  11911. fnDict = v;
  11912. } else if (isStream(v)) {
  11913. fnDict = v.dict;
  11914. } else {
  11915. return false;
  11916. }
  11917. return fnDict.has('FunctionType');
  11918. }
  11919. var PostScriptStack = (function PostScriptStackClosure() {
  11920. var MAX_STACK_SIZE = 100;
  11921. function PostScriptStack(initialStack) {
  11922. this.stack = initialStack || [];
  11923. }
  11924. PostScriptStack.prototype = {
  11925. push: function PostScriptStack_push(value) {
  11926. if (this.stack.length >= MAX_STACK_SIZE) {
  11927. error('PostScript function stack overflow.');
  11928. }
  11929. this.stack.push(value);
  11930. },
  11931. pop: function PostScriptStack_pop() {
  11932. if (this.stack.length <= 0) {
  11933. error('PostScript function stack underflow.');
  11934. }
  11935. return this.stack.pop();
  11936. },
  11937. copy: function PostScriptStack_copy(n) {
  11938. if (this.stack.length + n >= MAX_STACK_SIZE) {
  11939. error('PostScript function stack overflow.');
  11940. }
  11941. var stack = this.stack;
  11942. for (var i = stack.length - n, j = n - 1; j >= 0; j--, i++) {
  11943. stack.push(stack[i]);
  11944. }
  11945. },
  11946. index: function PostScriptStack_index(n) {
  11947. this.push(this.stack[this.stack.length - n - 1]);
  11948. },
  11949. // rotate the last n stack elements p times
  11950. roll: function PostScriptStack_roll(n, p) {
  11951. var stack = this.stack;
  11952. var l = stack.length - n;
  11953. var r = stack.length - 1, c = l + (p - Math.floor(p / n) * n), i, j, t;
  11954. for (i = l, j = r; i < j; i++, j--) {
  11955. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  11956. }
  11957. for (i = l, j = c - 1; i < j; i++, j--) {
  11958. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  11959. }
  11960. for (i = c, j = r; i < j; i++, j--) {
  11961. t = stack[i]; stack[i] = stack[j]; stack[j] = t;
  11962. }
  11963. }
  11964. };
  11965. return PostScriptStack;
  11966. })();
  11967. var PostScriptEvaluator = (function PostScriptEvaluatorClosure() {
  11968. function PostScriptEvaluator(operators) {
  11969. this.operators = operators;
  11970. }
  11971. PostScriptEvaluator.prototype = {
  11972. execute: function PostScriptEvaluator_execute(initialStack) {
  11973. var stack = new PostScriptStack(initialStack);
  11974. var counter = 0;
  11975. var operators = this.operators;
  11976. var length = operators.length;
  11977. var operator, a, b;
  11978. while (counter < length) {
  11979. operator = operators[counter++];
  11980. if (typeof operator == 'number') {
  11981. // Operator is really an operand and should be pushed to the stack.
  11982. stack.push(operator);
  11983. continue;
  11984. }
  11985. switch (operator) {
  11986. // non standard ps operators
  11987. case 'jz': // jump if false
  11988. b = stack.pop();
  11989. a = stack.pop();
  11990. if (!a) {
  11991. counter = b;
  11992. }
  11993. break;
  11994. case 'j': // jump
  11995. a = stack.pop();
  11996. counter = a;
  11997. break;
  11998. // all ps operators in alphabetical order (excluding if/ifelse)
  11999. case 'abs':
  12000. a = stack.pop();
  12001. stack.push(Math.abs(a));
  12002. break;
  12003. case 'add':
  12004. b = stack.pop();
  12005. a = stack.pop();
  12006. stack.push(a + b);
  12007. break;
  12008. case 'and':
  12009. b = stack.pop();
  12010. a = stack.pop();
  12011. if (isBool(a) && isBool(b)) {
  12012. stack.push(a && b);
  12013. } else {
  12014. stack.push(a & b);
  12015. }
  12016. break;
  12017. case 'atan':
  12018. a = stack.pop();
  12019. stack.push(Math.atan(a));
  12020. break;
  12021. case 'bitshift':
  12022. b = stack.pop();
  12023. a = stack.pop();
  12024. if (a > 0) {
  12025. stack.push(a << b);
  12026. } else {
  12027. stack.push(a >> b);
  12028. }
  12029. break;
  12030. case 'ceiling':
  12031. a = stack.pop();
  12032. stack.push(Math.ceil(a));
  12033. break;
  12034. case 'copy':
  12035. a = stack.pop();
  12036. stack.copy(a);
  12037. break;
  12038. case 'cos':
  12039. a = stack.pop();
  12040. stack.push(Math.cos(a));
  12041. break;
  12042. case 'cvi':
  12043. a = stack.pop() | 0;
  12044. stack.push(a);
  12045. break;
  12046. case 'cvr':
  12047. // noop
  12048. break;
  12049. case 'div':
  12050. b = stack.pop();
  12051. a = stack.pop();
  12052. stack.push(a / b);
  12053. break;
  12054. case 'dup':
  12055. stack.copy(1);
  12056. break;
  12057. case 'eq':
  12058. b = stack.pop();
  12059. a = stack.pop();
  12060. stack.push(a == b);
  12061. break;
  12062. case 'exch':
  12063. stack.roll(2, 1);
  12064. break;
  12065. case 'exp':
  12066. b = stack.pop();
  12067. a = stack.pop();
  12068. stack.push(Math.pow(a, b));
  12069. break;
  12070. case 'false':
  12071. stack.push(false);
  12072. break;
  12073. case 'floor':
  12074. a = stack.pop();
  12075. stack.push(Math.floor(a));
  12076. break;
  12077. case 'ge':
  12078. b = stack.pop();
  12079. a = stack.pop();
  12080. stack.push(a >= b);
  12081. break;
  12082. case 'gt':
  12083. b = stack.pop();
  12084. a = stack.pop();
  12085. stack.push(a > b);
  12086. break;
  12087. case 'idiv':
  12088. b = stack.pop();
  12089. a = stack.pop();
  12090. stack.push((a / b) | 0);
  12091. break;
  12092. case 'index':
  12093. a = stack.pop();
  12094. stack.index(a);
  12095. break;
  12096. case 'le':
  12097. b = stack.pop();
  12098. a = stack.pop();
  12099. stack.push(a <= b);
  12100. break;
  12101. case 'ln':
  12102. a = stack.pop();
  12103. stack.push(Math.log(a));
  12104. break;
  12105. case 'log':
  12106. a = stack.pop();
  12107. stack.push(Math.log(a) / Math.LN10);
  12108. break;
  12109. case 'lt':
  12110. b = stack.pop();
  12111. a = stack.pop();
  12112. stack.push(a < b);
  12113. break;
  12114. case 'mod':
  12115. b = stack.pop();
  12116. a = stack.pop();
  12117. stack.push(a % b);
  12118. break;
  12119. case 'mul':
  12120. b = stack.pop();
  12121. a = stack.pop();
  12122. stack.push(a * b);
  12123. break;
  12124. case 'ne':
  12125. b = stack.pop();
  12126. a = stack.pop();
  12127. stack.push(a != b);
  12128. break;
  12129. case 'neg':
  12130. a = stack.pop();
  12131. stack.push(-a);
  12132. break;
  12133. case 'not':
  12134. a = stack.pop();
  12135. if (isBool(a)) {
  12136. stack.push(!a);
  12137. } else {
  12138. stack.push(~a);
  12139. }
  12140. break;
  12141. case 'or':
  12142. b = stack.pop();
  12143. a = stack.pop();
  12144. if (isBool(a) && isBool(b)) {
  12145. stack.push(a || b);
  12146. } else {
  12147. stack.push(a | b);
  12148. }
  12149. break;
  12150. case 'pop':
  12151. stack.pop();
  12152. break;
  12153. case 'roll':
  12154. b = stack.pop();
  12155. a = stack.pop();
  12156. stack.roll(a, b);
  12157. break;
  12158. case 'round':
  12159. a = stack.pop();
  12160. stack.push(Math.round(a));
  12161. break;
  12162. case 'sin':
  12163. a = stack.pop();
  12164. stack.push(Math.sin(a));
  12165. break;
  12166. case 'sqrt':
  12167. a = stack.pop();
  12168. stack.push(Math.sqrt(a));
  12169. break;
  12170. case 'sub':
  12171. b = stack.pop();
  12172. a = stack.pop();
  12173. stack.push(a - b);
  12174. break;
  12175. case 'true':
  12176. stack.push(true);
  12177. break;
  12178. case 'truncate':
  12179. a = stack.pop();
  12180. a = a < 0 ? Math.ceil(a) : Math.floor(a);
  12181. stack.push(a);
  12182. break;
  12183. case 'xor':
  12184. b = stack.pop();
  12185. a = stack.pop();
  12186. if (isBool(a) && isBool(b)) {
  12187. stack.push(a != b);
  12188. } else {
  12189. stack.push(a ^ b);
  12190. }
  12191. break;
  12192. default:
  12193. error('Unknown operator ' + operator);
  12194. break;
  12195. }
  12196. }
  12197. return stack.stack;
  12198. }
  12199. };
  12200. return PostScriptEvaluator;
  12201. })();
  12202. var ColorSpace = (function ColorSpaceClosure() {
  12203. // Constructor should define this.numComps, this.defaultColor, this.name
  12204. function ColorSpace() {
  12205. error('should not call ColorSpace constructor');
  12206. }
  12207. ColorSpace.prototype = {
  12208. /**
  12209. * Converts the color value to the RGB color. The color components are
  12210. * located in the src array starting from the srcOffset. Returns the array
  12211. * of the rgb components, each value ranging from [0,255].
  12212. */
  12213. getRgb: function ColorSpace_getRgb(src, srcOffset) {
  12214. var rgb = new Uint8Array(3);
  12215. this.getRgbItem(src, srcOffset, rgb, 0);
  12216. return rgb;
  12217. },
  12218. /**
  12219. * Converts the color value to the RGB color, similar to the getRgb method.
  12220. * The result placed into the dest array starting from the destOffset.
  12221. */
  12222. getRgbItem: function ColorSpace_getRgbItem(src, srcOffset,
  12223. dest, destOffset) {
  12224. error('Should not call ColorSpace.getRgbItem');
  12225. },
  12226. /**
  12227. * Converts the specified number of the color values to the RGB colors.
  12228. * The colors are located in the src array starting from the srcOffset.
  12229. * The result is placed into the dest array starting from the destOffset.
  12230. * The src array items shall be in [0,2^bits) range, the dest array items
  12231. * will be in [0,255] range. alpha01 indicates how many alpha components
  12232. * there are in the dest array; it will be either 0 (RGB array) or 1 (RGBA
  12233. * array).
  12234. */
  12235. getRgbBuffer: function ColorSpace_getRgbBuffer(src, srcOffset, count,
  12236. dest, destOffset, bits,
  12237. alpha01) {
  12238. error('Should not call ColorSpace.getRgbBuffer');
  12239. },
  12240. /**
  12241. * Determines the number of bytes required to store the result of the
  12242. * conversion done by the getRgbBuffer method. As in getRgbBuffer,
  12243. * |alpha01| is either 0 (RGB output) or 1 (RGBA output).
  12244. */
  12245. getOutputLength: function ColorSpace_getOutputLength(inputLength,
  12246. alpha01) {
  12247. error('Should not call ColorSpace.getOutputLength');
  12248. },
  12249. /**
  12250. * Returns true if source data will be equal the result/output data.
  12251. */
  12252. isPassthrough: function ColorSpace_isPassthrough(bits) {
  12253. return false;
  12254. },
  12255. /**
  12256. * Fills in the RGB colors in the destination buffer. alpha01 indicates
  12257. * how many alpha components there are in the dest array; it will be either
  12258. * 0 (RGB array) or 1 (RGBA array).
  12259. */
  12260. fillRgb: function ColorSpace_fillRgb(dest, originalWidth,
  12261. originalHeight, width, height,
  12262. actualHeight, bpc, comps, alpha01) {
  12263. var count = originalWidth * originalHeight;
  12264. var rgbBuf = null;
  12265. var numComponentColors = 1 << bpc;
  12266. var needsResizing = originalHeight != height || originalWidth != width;
  12267. var i, ii;
  12268. if (this.isPassthrough(bpc)) {
  12269. rgbBuf = comps;
  12270. } else if (this.numComps === 1 && count > numComponentColors &&
  12271. this.name !== 'DeviceGray' && this.name !== 'DeviceRGB') {
  12272. // Optimization: create a color map when there is just one component and
  12273. // we are converting more colors than the size of the color map. We
  12274. // don't build the map if the colorspace is gray or rgb since those
  12275. // methods are faster than building a map. This mainly offers big speed
  12276. // ups for indexed and alternate colorspaces.
  12277. //
  12278. // TODO it may be worth while to cache the color map. While running
  12279. // testing I never hit a cache so I will leave that out for now (perhaps
  12280. // we are reparsing colorspaces too much?).
  12281. var allColors = bpc <= 8 ? new Uint8Array(numComponentColors) :
  12282. new Uint16Array(numComponentColors);
  12283. var key;
  12284. for (i = 0; i < numComponentColors; i++) {
  12285. allColors[i] = i;
  12286. }
  12287. var colorMap = new Uint8Array(numComponentColors * 3);
  12288. this.getRgbBuffer(allColors, 0, numComponentColors, colorMap, 0, bpc,
  12289. /* alpha01 = */ 0);
  12290. var destPos, rgbPos;
  12291. if (!needsResizing) {
  12292. // Fill in the RGB values directly into |dest|.
  12293. destPos = 0;
  12294. for (i = 0; i < count; ++i) {
  12295. key = comps[i] * 3;
  12296. dest[destPos++] = colorMap[key];
  12297. dest[destPos++] = colorMap[key + 1];
  12298. dest[destPos++] = colorMap[key + 2];
  12299. destPos += alpha01;
  12300. }
  12301. } else {
  12302. rgbBuf = new Uint8Array(count * 3);
  12303. rgbPos = 0;
  12304. for (i = 0; i < count; ++i) {
  12305. key = comps[i] * 3;
  12306. rgbBuf[rgbPos++] = colorMap[key];
  12307. rgbBuf[rgbPos++] = colorMap[key + 1];
  12308. rgbBuf[rgbPos++] = colorMap[key + 2];
  12309. }
  12310. }
  12311. } else {
  12312. if (!needsResizing) {
  12313. // Fill in the RGB values directly into |dest|.
  12314. this.getRgbBuffer(comps, 0, width * actualHeight, dest, 0, bpc,
  12315. alpha01);
  12316. } else {
  12317. rgbBuf = new Uint8Array(count * 3);
  12318. this.getRgbBuffer(comps, 0, count, rgbBuf, 0, bpc,
  12319. /* alpha01 = */ 0);
  12320. }
  12321. }
  12322. if (rgbBuf) {
  12323. if (needsResizing) {
  12324. PDFImage.resize(rgbBuf, bpc, 3, originalWidth, originalHeight, width,
  12325. height, dest, alpha01);
  12326. } else {
  12327. rgbPos = 0;
  12328. destPos = 0;
  12329. for (i = 0, ii = width * actualHeight; i < ii; i++) {
  12330. dest[destPos++] = rgbBuf[rgbPos++];
  12331. dest[destPos++] = rgbBuf[rgbPos++];
  12332. dest[destPos++] = rgbBuf[rgbPos++];
  12333. destPos += alpha01;
  12334. }
  12335. }
  12336. }
  12337. },
  12338. /**
  12339. * True if the colorspace has components in the default range of [0, 1].
  12340. * This should be true for all colorspaces except for lab color spaces
  12341. * which are [0,100], [-128, 127], [-128, 127].
  12342. */
  12343. usesZeroToOneRange: true
  12344. };
  12345. ColorSpace.parse = function ColorSpace_parse(cs, xref, res) {
  12346. var IR = ColorSpace.parseToIR(cs, xref, res);
  12347. if (IR instanceof AlternateCS) {
  12348. return IR;
  12349. }
  12350. return ColorSpace.fromIR(IR);
  12351. };
  12352. ColorSpace.fromIR = function ColorSpace_fromIR(IR) {
  12353. var name = isArray(IR) ? IR[0] : IR;
  12354. var whitePoint, blackPoint;
  12355. switch (name) {
  12356. case 'DeviceGrayCS':
  12357. return this.singletons.gray;
  12358. case 'DeviceRgbCS':
  12359. return this.singletons.rgb;
  12360. case 'DeviceCmykCS':
  12361. return this.singletons.cmyk;
  12362. case 'CalGrayCS':
  12363. whitePoint = IR[1].WhitePoint;
  12364. blackPoint = IR[1].BlackPoint;
  12365. var gamma = IR[1].Gamma;
  12366. return new CalGrayCS(whitePoint, blackPoint, gamma);
  12367. case 'PatternCS':
  12368. var basePatternCS = IR[1];
  12369. if (basePatternCS) {
  12370. basePatternCS = ColorSpace.fromIR(basePatternCS);
  12371. }
  12372. return new PatternCS(basePatternCS);
  12373. case 'IndexedCS':
  12374. var baseIndexedCS = IR[1];
  12375. var hiVal = IR[2];
  12376. var lookup = IR[3];
  12377. return new IndexedCS(ColorSpace.fromIR(baseIndexedCS), hiVal, lookup);
  12378. case 'AlternateCS':
  12379. var numComps = IR[1];
  12380. var alt = IR[2];
  12381. var tintFnIR = IR[3];
  12382. return new AlternateCS(numComps, ColorSpace.fromIR(alt),
  12383. PDFFunction.fromIR(tintFnIR));
  12384. case 'LabCS':
  12385. whitePoint = IR[1].WhitePoint;
  12386. blackPoint = IR[1].BlackPoint;
  12387. var range = IR[1].Range;
  12388. return new LabCS(whitePoint, blackPoint, range);
  12389. default:
  12390. error('Unkown name ' + name);
  12391. }
  12392. return null;
  12393. };
  12394. ColorSpace.parseToIR = function ColorSpace_parseToIR(cs, xref, res) {
  12395. if (isName(cs)) {
  12396. var colorSpaces = res.get('ColorSpace');
  12397. if (isDict(colorSpaces)) {
  12398. var refcs = colorSpaces.get(cs.name);
  12399. if (refcs) {
  12400. cs = refcs;
  12401. }
  12402. }
  12403. }
  12404. cs = xref.fetchIfRef(cs);
  12405. var mode;
  12406. if (isName(cs)) {
  12407. mode = cs.name;
  12408. this.mode = mode;
  12409. switch (mode) {
  12410. case 'DeviceGray':
  12411. case 'G':
  12412. return 'DeviceGrayCS';
  12413. case 'DeviceRGB':
  12414. case 'RGB':
  12415. return 'DeviceRgbCS';
  12416. case 'DeviceCMYK':
  12417. case 'CMYK':
  12418. return 'DeviceCmykCS';
  12419. case 'Pattern':
  12420. return ['PatternCS', null];
  12421. default:
  12422. error('unrecognized colorspace ' + mode);
  12423. }
  12424. } else if (isArray(cs)) {
  12425. mode = cs[0].name;
  12426. this.mode = mode;
  12427. var numComps, params;
  12428. switch (mode) {
  12429. case 'DeviceGray':
  12430. case 'G':
  12431. return 'DeviceGrayCS';
  12432. case 'DeviceRGB':
  12433. case 'RGB':
  12434. return 'DeviceRgbCS';
  12435. case 'DeviceCMYK':
  12436. case 'CMYK':
  12437. return 'DeviceCmykCS';
  12438. case 'CalGray':
  12439. params = cs[1].getAll();
  12440. return ['CalGrayCS', params];
  12441. case 'CalRGB':
  12442. return 'DeviceRgbCS';
  12443. case 'ICCBased':
  12444. var stream = xref.fetchIfRef(cs[1]);
  12445. var dict = stream.dict;
  12446. numComps = dict.get('N');
  12447. if (numComps == 1) {
  12448. return 'DeviceGrayCS';
  12449. } else if (numComps == 3) {
  12450. return 'DeviceRgbCS';
  12451. } else if (numComps == 4) {
  12452. return 'DeviceCmykCS';
  12453. }
  12454. break;
  12455. case 'Pattern':
  12456. var basePatternCS = cs[1];
  12457. if (basePatternCS) {
  12458. basePatternCS = ColorSpace.parseToIR(basePatternCS, xref, res);
  12459. }
  12460. return ['PatternCS', basePatternCS];
  12461. case 'Indexed':
  12462. case 'I':
  12463. var baseIndexedCS = ColorSpace.parseToIR(cs[1], xref, res);
  12464. var hiVal = cs[2] + 1;
  12465. var lookup = xref.fetchIfRef(cs[3]);
  12466. if (isStream(lookup)) {
  12467. lookup = lookup.getBytes();
  12468. }
  12469. return ['IndexedCS', baseIndexedCS, hiVal, lookup];
  12470. case 'Separation':
  12471. case 'DeviceN':
  12472. var name = cs[1];
  12473. numComps = 1;
  12474. if (isName(name)) {
  12475. numComps = 1;
  12476. } else if (isArray(name)) {
  12477. numComps = name.length;
  12478. }
  12479. var alt = ColorSpace.parseToIR(cs[2], xref, res);
  12480. var tintFnIR = PDFFunction.getIR(xref, xref.fetchIfRef(cs[3]));
  12481. return ['AlternateCS', numComps, alt, tintFnIR];
  12482. case 'Lab':
  12483. params = cs[1].getAll();
  12484. return ['LabCS', params];
  12485. default:
  12486. error('unimplemented color space object "' + mode + '"');
  12487. }
  12488. } else {
  12489. error('unrecognized color space object: "' + cs + '"');
  12490. }
  12491. return null;
  12492. };
  12493. /**
  12494. * Checks if a decode map matches the default decode map for a color space.
  12495. * This handles the general decode maps where there are two values per
  12496. * component. e.g. [0, 1, 0, 1, 0, 1] for a RGB color.
  12497. * This does not handle Lab, Indexed, or Pattern decode maps since they are
  12498. * slightly different.
  12499. * @param {Array} decode Decode map (usually from an image).
  12500. * @param {Number} n Number of components the color space has.
  12501. */
  12502. ColorSpace.isDefaultDecode = function ColorSpace_isDefaultDecode(decode, n) {
  12503. if (!decode) {
  12504. return true;
  12505. }
  12506. if (n * 2 !== decode.length) {
  12507. warn('The decode map is not the correct length');
  12508. return true;
  12509. }
  12510. for (var i = 0, ii = decode.length; i < ii; i += 2) {
  12511. if (decode[i] !== 0 || decode[i + 1] != 1) {
  12512. return false;
  12513. }
  12514. }
  12515. return true;
  12516. };
  12517. ColorSpace.singletons = {
  12518. get gray() {
  12519. return shadow(this, 'gray', new DeviceGrayCS());
  12520. },
  12521. get rgb() {
  12522. return shadow(this, 'rgb', new DeviceRgbCS());
  12523. },
  12524. get cmyk() {
  12525. return shadow(this, 'cmyk', new DeviceCmykCS());
  12526. }
  12527. };
  12528. return ColorSpace;
  12529. })();
  12530. /**
  12531. * Alternate color space handles both Separation and DeviceN color spaces. A
  12532. * Separation color space is actually just a DeviceN with one color component.
  12533. * Both color spaces use a tinting function to convert colors to a base color
  12534. * space.
  12535. */
  12536. var AlternateCS = (function AlternateCSClosure() {
  12537. function AlternateCS(numComps, base, tintFn) {
  12538. this.name = 'Alternate';
  12539. this.numComps = numComps;
  12540. this.defaultColor = new Float32Array(numComps);
  12541. for (var i = 0; i < numComps; ++i) {
  12542. this.defaultColor[i] = 1;
  12543. }
  12544. this.base = base;
  12545. this.tintFn = tintFn;
  12546. }
  12547. AlternateCS.prototype = {
  12548. getRgb: ColorSpace.prototype.getRgb,
  12549. getRgbItem: function AlternateCS_getRgbItem(src, srcOffset,
  12550. dest, destOffset) {
  12551. var baseNumComps = this.base.numComps;
  12552. var input = 'subarray' in src ?
  12553. src.subarray(srcOffset, srcOffset + this.numComps) :
  12554. Array.prototype.slice.call(src, srcOffset, srcOffset + this.numComps);
  12555. var tinted = this.tintFn(input);
  12556. this.base.getRgbItem(tinted, 0, dest, destOffset);
  12557. },
  12558. getRgbBuffer: function AlternateCS_getRgbBuffer(src, srcOffset, count,
  12559. dest, destOffset, bits,
  12560. alpha01) {
  12561. var tinted;
  12562. var tintFn = this.tintFn;
  12563. var base = this.base;
  12564. var scale = 1 / ((1 << bits) - 1);
  12565. var baseNumComps = base.numComps;
  12566. var usesZeroToOneRange = base.usesZeroToOneRange;
  12567. var isPassthrough = (base.isPassthrough(8) || !usesZeroToOneRange) &&
  12568. alpha01 === 0;
  12569. var pos = isPassthrough ? destOffset : 0;
  12570. var baseBuf = isPassthrough ? dest : new Uint8Array(baseNumComps * count);
  12571. var numComps = this.numComps;
  12572. var scaled = new Float32Array(numComps);
  12573. var i, j;
  12574. if (usesZeroToOneRange) {
  12575. for (i = 0; i < count; i++) {
  12576. for (j = 0; j < numComps; j++) {
  12577. scaled[j] = src[srcOffset++] * scale;
  12578. }
  12579. tinted = tintFn(scaled);
  12580. for (j = 0; j < baseNumComps; j++) {
  12581. baseBuf[pos++] = tinted[j] * 255;
  12582. }
  12583. }
  12584. } else {
  12585. for (i = 0; i < count; i++) {
  12586. for (j = 0; j < numComps; j++) {
  12587. scaled[j] = src[srcOffset++] * scale;
  12588. }
  12589. tinted = tintFn(scaled);
  12590. base.getRgbItem(tinted, 0, baseBuf, pos);
  12591. pos += baseNumComps;
  12592. }
  12593. }
  12594. if (!isPassthrough) {
  12595. base.getRgbBuffer(baseBuf, 0, count, dest, destOffset, 8, alpha01);
  12596. }
  12597. },
  12598. getOutputLength: function AlternateCS_getOutputLength(inputLength,
  12599. alpha01) {
  12600. return this.base.getOutputLength(inputLength *
  12601. this.base.numComps / this.numComps,
  12602. alpha01);
  12603. },
  12604. isPassthrough: ColorSpace.prototype.isPassthrough,
  12605. fillRgb: ColorSpace.prototype.fillRgb,
  12606. isDefaultDecode: function AlternateCS_isDefaultDecode(decodeMap) {
  12607. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12608. },
  12609. usesZeroToOneRange: true
  12610. };
  12611. return AlternateCS;
  12612. })();
  12613. var PatternCS = (function PatternCSClosure() {
  12614. function PatternCS(baseCS) {
  12615. this.name = 'Pattern';
  12616. this.base = baseCS;
  12617. }
  12618. PatternCS.prototype = {};
  12619. return PatternCS;
  12620. })();
  12621. var IndexedCS = (function IndexedCSClosure() {
  12622. function IndexedCS(base, highVal, lookup) {
  12623. this.name = 'Indexed';
  12624. this.numComps = 1;
  12625. this.defaultColor = new Uint8Array([0]);
  12626. this.base = base;
  12627. this.highVal = highVal;
  12628. var baseNumComps = base.numComps;
  12629. var length = baseNumComps * highVal;
  12630. var lookupArray;
  12631. if (isStream(lookup)) {
  12632. lookupArray = new Uint8Array(length);
  12633. var bytes = lookup.getBytes(length);
  12634. lookupArray.set(bytes);
  12635. } else if (isString(lookup)) {
  12636. lookupArray = new Uint8Array(length);
  12637. for (var i = 0; i < length; ++i) {
  12638. lookupArray[i] = lookup.charCodeAt(i);
  12639. }
  12640. } else if (lookup instanceof Uint8Array || lookup instanceof Array) {
  12641. lookupArray = lookup;
  12642. } else {
  12643. error('Unrecognized lookup table: ' + lookup);
  12644. }
  12645. this.lookup = lookupArray;
  12646. }
  12647. IndexedCS.prototype = {
  12648. getRgb: ColorSpace.prototype.getRgb,
  12649. getRgbItem: function IndexedCS_getRgbItem(src, srcOffset,
  12650. dest, destOffset) {
  12651. var numComps = this.base.numComps;
  12652. var start = src[srcOffset] * numComps;
  12653. this.base.getRgbItem(this.lookup, start, dest, destOffset);
  12654. },
  12655. getRgbBuffer: function IndexedCS_getRgbBuffer(src, srcOffset, count,
  12656. dest, destOffset, bits,
  12657. alpha01) {
  12658. var base = this.base;
  12659. var numComps = base.numComps;
  12660. var outputDelta = base.getOutputLength(numComps, alpha01);
  12661. var lookup = this.lookup;
  12662. for (var i = 0; i < count; ++i) {
  12663. var lookupPos = src[srcOffset++] * numComps;
  12664. base.getRgbBuffer(lookup, lookupPos, 1, dest, destOffset, 8, alpha01);
  12665. destOffset += outputDelta;
  12666. }
  12667. },
  12668. getOutputLength: function IndexedCS_getOutputLength(inputLength, alpha01) {
  12669. return this.base.getOutputLength(inputLength * this.base.numComps,
  12670. alpha01);
  12671. },
  12672. isPassthrough: ColorSpace.prototype.isPassthrough,
  12673. fillRgb: ColorSpace.prototype.fillRgb,
  12674. isDefaultDecode: function IndexedCS_isDefaultDecode(decodeMap) {
  12675. // indexed color maps shouldn't be changed
  12676. return true;
  12677. },
  12678. usesZeroToOneRange: true
  12679. };
  12680. return IndexedCS;
  12681. })();
  12682. var DeviceGrayCS = (function DeviceGrayCSClosure() {
  12683. function DeviceGrayCS() {
  12684. this.name = 'DeviceGray';
  12685. this.numComps = 1;
  12686. this.defaultColor = new Float32Array([0]);
  12687. }
  12688. DeviceGrayCS.prototype = {
  12689. getRgb: ColorSpace.prototype.getRgb,
  12690. getRgbItem: function DeviceGrayCS_getRgbItem(src, srcOffset,
  12691. dest, destOffset) {
  12692. var c = (src[srcOffset] * 255) | 0;
  12693. c = c < 0 ? 0 : c > 255 ? 255 : c;
  12694. dest[destOffset] = dest[destOffset + 1] = dest[destOffset + 2] = c;
  12695. },
  12696. getRgbBuffer: function DeviceGrayCS_getRgbBuffer(src, srcOffset, count,
  12697. dest, destOffset, bits,
  12698. alpha01) {
  12699. var scale = 255 / ((1 << bits) - 1);
  12700. var j = srcOffset, q = destOffset;
  12701. for (var i = 0; i < count; ++i) {
  12702. var c = (scale * src[j++]) | 0;
  12703. dest[q++] = c;
  12704. dest[q++] = c;
  12705. dest[q++] = c;
  12706. q += alpha01;
  12707. }
  12708. },
  12709. getOutputLength: function DeviceGrayCS_getOutputLength(inputLength,
  12710. alpha01) {
  12711. return inputLength * (3 + alpha01);
  12712. },
  12713. isPassthrough: ColorSpace.prototype.isPassthrough,
  12714. fillRgb: ColorSpace.prototype.fillRgb,
  12715. isDefaultDecode: function DeviceGrayCS_isDefaultDecode(decodeMap) {
  12716. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12717. },
  12718. usesZeroToOneRange: true
  12719. };
  12720. return DeviceGrayCS;
  12721. })();
  12722. var DeviceRgbCS = (function DeviceRgbCSClosure() {
  12723. function DeviceRgbCS() {
  12724. this.name = 'DeviceRGB';
  12725. this.numComps = 3;
  12726. this.defaultColor = new Float32Array([0, 0, 0]);
  12727. }
  12728. DeviceRgbCS.prototype = {
  12729. getRgb: ColorSpace.prototype.getRgb,
  12730. getRgbItem: function DeviceRgbCS_getRgbItem(src, srcOffset,
  12731. dest, destOffset) {
  12732. var r = (src[srcOffset] * 255) | 0;
  12733. var g = (src[srcOffset + 1] * 255) | 0;
  12734. var b = (src[srcOffset + 2] * 255) | 0;
  12735. dest[destOffset] = r < 0 ? 0 : r > 255 ? 255 : r;
  12736. dest[destOffset + 1] = g < 0 ? 0 : g > 255 ? 255 : g;
  12737. dest[destOffset + 2] = b < 0 ? 0 : b > 255 ? 255 : b;
  12738. },
  12739. getRgbBuffer: function DeviceRgbCS_getRgbBuffer(src, srcOffset, count,
  12740. dest, destOffset, bits,
  12741. alpha01) {
  12742. if (bits === 8 && alpha01 === 0) {
  12743. dest.set(src.subarray(srcOffset, srcOffset + count * 3), destOffset);
  12744. return;
  12745. }
  12746. var scale = 255 / ((1 << bits) - 1);
  12747. var j = srcOffset, q = destOffset;
  12748. for (var i = 0; i < count; ++i) {
  12749. dest[q++] = (scale * src[j++]) | 0;
  12750. dest[q++] = (scale * src[j++]) | 0;
  12751. dest[q++] = (scale * src[j++]) | 0;
  12752. q += alpha01;
  12753. }
  12754. },
  12755. getOutputLength: function DeviceRgbCS_getOutputLength(inputLength,
  12756. alpha01) {
  12757. return (inputLength * (3 + alpha01) / 3) | 0;
  12758. },
  12759. isPassthrough: function DeviceRgbCS_isPassthrough(bits) {
  12760. return bits == 8;
  12761. },
  12762. fillRgb: ColorSpace.prototype.fillRgb,
  12763. isDefaultDecode: function DeviceRgbCS_isDefaultDecode(decodeMap) {
  12764. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12765. },
  12766. usesZeroToOneRange: true
  12767. };
  12768. return DeviceRgbCS;
  12769. })();
  12770. var DeviceCmykCS = (function DeviceCmykCSClosure() {
  12771. // The coefficients below was found using numerical analysis: the method of
  12772. // steepest descent for the sum((f_i - color_value_i)^2) for r/g/b colors,
  12773. // where color_value is the tabular value from the table of sampled RGB colors
  12774. // from CMYK US Web Coated (SWOP) colorspace, and f_i is the corresponding
  12775. // CMYK color conversion using the estimation below:
  12776. // f(A, B,.. N) = Acc+Bcm+Ccy+Dck+c+Fmm+Gmy+Hmk+Im+Jyy+Kyk+Ly+Mkk+Nk+255
  12777. function convertToRgb(src, srcOffset, srcScale, dest, destOffset) {
  12778. var c = src[srcOffset + 0] * srcScale;
  12779. var m = src[srcOffset + 1] * srcScale;
  12780. var y = src[srcOffset + 2] * srcScale;
  12781. var k = src[srcOffset + 3] * srcScale;
  12782. var r =
  12783. (c * (-4.387332384609988 * c + 54.48615194189176 * m +
  12784. 18.82290502165302 * y + 212.25662451639585 * k +
  12785. -285.2331026137004) +
  12786. m * (1.7149763477362134 * m - 5.6096736904047315 * y +
  12787. -17.873870861415444 * k - 5.497006427196366) +
  12788. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  12789. 17.5119270841813) +
  12790. k * (-21.86122147463605 * k - 189.48180835922747) + 255) | 0;
  12791. var g =
  12792. (c * (8.841041422036149 * c + 60.118027045597366 * m +
  12793. 6.871425592049007 * y + 31.159100130055922 * k +
  12794. -79.2970844816548) +
  12795. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  12796. 131.35250912493976 * k - 190.9453302588951) +
  12797. y * (4.444339102852739 * y + 9.8632861493405 * k - 24.86741582555878) +
  12798. k * (-20.737325471181034 * k - 187.80453709719578) + 255) | 0;
  12799. var b =
  12800. (c * (0.8842522430003296 * c + 8.078677503112928 * m +
  12801. 30.89978309703729 * y - 0.23883238689178934 * k +
  12802. -14.183576799673286) +
  12803. m * (10.49593273432072 * m + 63.02378494754052 * y +
  12804. 50.606957656360734 * k - 112.23884253719248) +
  12805. y * (0.03296041114873217 * y + 115.60384449646641 * k +
  12806. -193.58209356861505) +
  12807. k * (-22.33816807309886 * k - 180.12613974708367) + 255) | 0;
  12808. dest[destOffset] = r > 255 ? 255 : r < 0 ? 0 : r;
  12809. dest[destOffset + 1] = g > 255 ? 255 : g < 0 ? 0 : g;
  12810. dest[destOffset + 2] = b > 255 ? 255 : b < 0 ? 0 : b;
  12811. }
  12812. function DeviceCmykCS() {
  12813. this.name = 'DeviceCMYK';
  12814. this.numComps = 4;
  12815. this.defaultColor = new Float32Array([0, 0, 0, 1]);
  12816. }
  12817. DeviceCmykCS.prototype = {
  12818. getRgb: ColorSpace.prototype.getRgb,
  12819. getRgbItem: function DeviceCmykCS_getRgbItem(src, srcOffset,
  12820. dest, destOffset) {
  12821. convertToRgb(src, srcOffset, 1, dest, destOffset);
  12822. },
  12823. getRgbBuffer: function DeviceCmykCS_getRgbBuffer(src, srcOffset, count,
  12824. dest, destOffset, bits,
  12825. alpha01) {
  12826. var scale = 1 / ((1 << bits) - 1);
  12827. for (var i = 0; i < count; i++) {
  12828. convertToRgb(src, srcOffset, scale, dest, destOffset);
  12829. srcOffset += 4;
  12830. destOffset += 3 + alpha01;
  12831. }
  12832. },
  12833. getOutputLength: function DeviceCmykCS_getOutputLength(inputLength,
  12834. alpha01) {
  12835. return (inputLength / 4 * (3 + alpha01)) | 0;
  12836. },
  12837. isPassthrough: ColorSpace.prototype.isPassthrough,
  12838. fillRgb: ColorSpace.prototype.fillRgb,
  12839. isDefaultDecode: function DeviceCmykCS_isDefaultDecode(decodeMap) {
  12840. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12841. },
  12842. usesZeroToOneRange: true
  12843. };
  12844. return DeviceCmykCS;
  12845. })();
  12846. //
  12847. // CalGrayCS: Based on "PDF Reference, Sixth Ed", p.245
  12848. //
  12849. var CalGrayCS = (function CalGrayCSClosure() {
  12850. function CalGrayCS(whitePoint, blackPoint, gamma) {
  12851. this.name = 'CalGray';
  12852. this.numComps = 1;
  12853. this.defaultColor = new Float32Array([0]);
  12854. if (!whitePoint) {
  12855. error('WhitePoint missing - required for color space CalGray');
  12856. }
  12857. blackPoint = blackPoint || [0, 0, 0];
  12858. gamma = gamma || 1;
  12859. // Translate arguments to spec variables.
  12860. this.XW = whitePoint[0];
  12861. this.YW = whitePoint[1];
  12862. this.ZW = whitePoint[2];
  12863. this.XB = blackPoint[0];
  12864. this.YB = blackPoint[1];
  12865. this.ZB = blackPoint[2];
  12866. this.G = gamma;
  12867. // Validate variables as per spec.
  12868. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  12869. error('Invalid WhitePoint components for ' + this.name +
  12870. ', no fallback available');
  12871. }
  12872. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  12873. info('Invalid BlackPoint for ' + this.name + ', falling back to default');
  12874. this.XB = this.YB = this.ZB = 0;
  12875. }
  12876. if (this.XB !== 0 || this.YB !== 0 || this.ZB !== 0) {
  12877. warn(this.name + ', BlackPoint: XB: ' + this.XB + ', YB: ' + this.YB +
  12878. ', ZB: ' + this.ZB + ', only default values are supported.');
  12879. }
  12880. if (this.G < 1) {
  12881. info('Invalid Gamma: ' + this.G + ' for ' + this.name +
  12882. ', falling back to default');
  12883. this.G = 1;
  12884. }
  12885. }
  12886. function convertToRgb(cs, src, srcOffset, dest, destOffset, scale) {
  12887. // A represents a gray component of a calibrated gray space.
  12888. // A <---> AG in the spec
  12889. var A = src[srcOffset] * scale;
  12890. var AG = Math.pow(A, cs.G);
  12891. // Computes L as per spec. ( = cs.YW * AG )
  12892. // Except if other than default BlackPoint values are used.
  12893. var L = cs.YW * AG;
  12894. // http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html, Ch 4.
  12895. // Convert values to rgb range [0, 255].
  12896. var val = Math.max(295.8 * Math.pow(L, 0.333333333333333333) - 40.8, 0) | 0;
  12897. dest[destOffset] = val;
  12898. dest[destOffset + 1] = val;
  12899. dest[destOffset + 2] = val;
  12900. }
  12901. CalGrayCS.prototype = {
  12902. getRgb: ColorSpace.prototype.getRgb,
  12903. getRgbItem: function CalGrayCS_getRgbItem(src, srcOffset,
  12904. dest, destOffset) {
  12905. convertToRgb(this, src, srcOffset, dest, destOffset, 1);
  12906. },
  12907. getRgbBuffer: function CalGrayCS_getRgbBuffer(src, srcOffset, count,
  12908. dest, destOffset, bits,
  12909. alpha01) {
  12910. var scale = 1 / ((1 << bits) - 1);
  12911. for (var i = 0; i < count; ++i) {
  12912. convertToRgb(this, src, srcOffset, dest, destOffset, scale);
  12913. srcOffset += 1;
  12914. destOffset += 3 + alpha01;
  12915. }
  12916. },
  12917. getOutputLength: function CalGrayCS_getOutputLength(inputLength, alpha01) {
  12918. return inputLength * (3 + alpha01);
  12919. },
  12920. isPassthrough: ColorSpace.prototype.isPassthrough,
  12921. fillRgb: ColorSpace.prototype.fillRgb,
  12922. isDefaultDecode: function CalGrayCS_isDefaultDecode(decodeMap) {
  12923. return ColorSpace.isDefaultDecode(decodeMap, this.numComps);
  12924. },
  12925. usesZeroToOneRange: true
  12926. };
  12927. return CalGrayCS;
  12928. })();
  12929. //
  12930. // LabCS: Based on "PDF Reference, Sixth Ed", p.250
  12931. //
  12932. var LabCS = (function LabCSClosure() {
  12933. function LabCS(whitePoint, blackPoint, range) {
  12934. this.name = 'Lab';
  12935. this.numComps = 3;
  12936. this.defaultColor = new Float32Array([0, 0, 0]);
  12937. if (!whitePoint) {
  12938. error('WhitePoint missing - required for color space Lab');
  12939. }
  12940. blackPoint = blackPoint || [0, 0, 0];
  12941. range = range || [-100, 100, -100, 100];
  12942. // Translate args to spec variables
  12943. this.XW = whitePoint[0];
  12944. this.YW = whitePoint[1];
  12945. this.ZW = whitePoint[2];
  12946. this.amin = range[0];
  12947. this.amax = range[1];
  12948. this.bmin = range[2];
  12949. this.bmax = range[3];
  12950. // These are here just for completeness - the spec doesn't offer any
  12951. // formulas that use BlackPoint in Lab
  12952. this.XB = blackPoint[0];
  12953. this.YB = blackPoint[1];
  12954. this.ZB = blackPoint[2];
  12955. // Validate vars as per spec
  12956. if (this.XW < 0 || this.ZW < 0 || this.YW !== 1) {
  12957. error('Invalid WhitePoint components, no fallback available');
  12958. }
  12959. if (this.XB < 0 || this.YB < 0 || this.ZB < 0) {
  12960. info('Invalid BlackPoint, falling back to default');
  12961. this.XB = this.YB = this.ZB = 0;
  12962. }
  12963. if (this.amin > this.amax || this.bmin > this.bmax) {
  12964. info('Invalid Range, falling back to defaults');
  12965. this.amin = -100;
  12966. this.amax = 100;
  12967. this.bmin = -100;
  12968. this.bmax = 100;
  12969. }
  12970. }
  12971. // Function g(x) from spec
  12972. function fn_g(x) {
  12973. if (x >= 6 / 29) {
  12974. return x * x * x;
  12975. } else {
  12976. return (108 / 841) * (x - 4 / 29);
  12977. }
  12978. }
  12979. function decode(value, high1, low2, high2) {
  12980. return low2 + (value) * (high2 - low2) / (high1);
  12981. }
  12982. // If decoding is needed maxVal should be 2^bits per component - 1.
  12983. function convertToRgb(cs, src, srcOffset, maxVal, dest, destOffset) {
  12984. // XXX: Lab input is in the range of [0, 100], [amin, amax], [bmin, bmax]
  12985. // not the usual [0, 1]. If a command like setFillColor is used the src
  12986. // values will already be within the correct range. However, if we are
  12987. // converting an image we have to map the values to the correct range given
  12988. // above.
  12989. // Ls,as,bs <---> L*,a*,b* in the spec
  12990. var Ls = src[srcOffset];
  12991. var as = src[srcOffset + 1];
  12992. var bs = src[srcOffset + 2];
  12993. if (maxVal !== false) {
  12994. Ls = decode(Ls, maxVal, 0, 100);
  12995. as = decode(as, maxVal, cs.amin, cs.amax);
  12996. bs = decode(bs, maxVal, cs.bmin, cs.bmax);
  12997. }
  12998. // Adjust limits of 'as' and 'bs'
  12999. as = as > cs.amax ? cs.amax : as < cs.amin ? cs.amin : as;
  13000. bs = bs > cs.bmax ? cs.bmax : bs < cs.bmin ? cs.bmin : bs;
  13001. // Computes intermediate variables X,Y,Z as per spec
  13002. var M = (Ls + 16) / 116;
  13003. var L = M + (as / 500);
  13004. var N = M - (bs / 200);
  13005. var X = cs.XW * fn_g(L);
  13006. var Y = cs.YW * fn_g(M);
  13007. var Z = cs.ZW * fn_g(N);
  13008. var r, g, b;
  13009. // Using different conversions for D50 and D65 white points,
  13010. // per http://www.color.org/srgb.pdf
  13011. if (cs.ZW < 1) {
  13012. // Assuming D50 (X=0.9642, Y=1.00, Z=0.8249)
  13013. r = X * 3.1339 + Y * -1.6170 + Z * -0.4906;
  13014. g = X * -0.9785 + Y * 1.9160 + Z * 0.0333;
  13015. b = X * 0.0720 + Y * -0.2290 + Z * 1.4057;
  13016. } else {
  13017. // Assuming D65 (X=0.9505, Y=1.00, Z=1.0888)
  13018. r = X * 3.2406 + Y * -1.5372 + Z * -0.4986;
  13019. g = X * -0.9689 + Y * 1.8758 + Z * 0.0415;
  13020. b = X * 0.0557 + Y * -0.2040 + Z * 1.0570;
  13021. }
  13022. // clamp color values to [0,1] range then convert to [0,255] range.
  13023. dest[destOffset] = r <= 0 ? 0 : r >= 1 ? 255 : Math.sqrt(r) * 255 | 0;
  13024. dest[destOffset + 1] = g <= 0 ? 0 : g >= 1 ? 255 : Math.sqrt(g) * 255 | 0;
  13025. dest[destOffset + 2] = b <= 0 ? 0 : b >= 1 ? 255 : Math.sqrt(b) * 255 | 0;
  13026. }
  13027. LabCS.prototype = {
  13028. getRgb: ColorSpace.prototype.getRgb,
  13029. getRgbItem: function LabCS_getRgbItem(src, srcOffset, dest, destOffset) {
  13030. convertToRgb(this, src, srcOffset, false, dest, destOffset);
  13031. },
  13032. getRgbBuffer: function LabCS_getRgbBuffer(src, srcOffset, count,
  13033. dest, destOffset, bits,
  13034. alpha01) {
  13035. var maxVal = (1 << bits) - 1;
  13036. for (var i = 0; i < count; i++) {
  13037. convertToRgb(this, src, srcOffset, maxVal, dest, destOffset);
  13038. srcOffset += 3;
  13039. destOffset += 3 + alpha01;
  13040. }
  13041. },
  13042. getOutputLength: function LabCS_getOutputLength(inputLength, alpha01) {
  13043. return (inputLength * (3 + alpha01) / 3) | 0;
  13044. },
  13045. isPassthrough: ColorSpace.prototype.isPassthrough,
  13046. isDefaultDecode: function LabCS_isDefaultDecode(decodeMap) {
  13047. // XXX: Decoding is handled with the lab conversion because of the strange
  13048. // ranges that are used.
  13049. return true;
  13050. },
  13051. usesZeroToOneRange: false
  13052. };
  13053. return LabCS;
  13054. })();
  13055. var ARCFourCipher = (function ARCFourCipherClosure() {
  13056. function ARCFourCipher(key) {
  13057. this.a = 0;
  13058. this.b = 0;
  13059. var s = new Uint8Array(256);
  13060. var i, j = 0, tmp, keyLength = key.length;
  13061. for (i = 0; i < 256; ++i) {
  13062. s[i] = i;
  13063. }
  13064. for (i = 0; i < 256; ++i) {
  13065. tmp = s[i];
  13066. j = (j + tmp + key[i % keyLength]) & 0xFF;
  13067. s[i] = s[j];
  13068. s[j] = tmp;
  13069. }
  13070. this.s = s;
  13071. }
  13072. ARCFourCipher.prototype = {
  13073. encryptBlock: function ARCFourCipher_encryptBlock(data) {
  13074. var i, n = data.length, tmp, tmp2;
  13075. var a = this.a, b = this.b, s = this.s;
  13076. var output = new Uint8Array(n);
  13077. for (i = 0; i < n; ++i) {
  13078. a = (a + 1) & 0xFF;
  13079. tmp = s[a];
  13080. b = (b + tmp) & 0xFF;
  13081. tmp2 = s[b];
  13082. s[a] = tmp2;
  13083. s[b] = tmp;
  13084. output[i] = data[i] ^ s[(tmp + tmp2) & 0xFF];
  13085. }
  13086. this.a = a;
  13087. this.b = b;
  13088. return output;
  13089. }
  13090. };
  13091. ARCFourCipher.prototype.decryptBlock = ARCFourCipher.prototype.encryptBlock;
  13092. return ARCFourCipher;
  13093. })();
  13094. var calculateMD5 = (function calculateMD5Closure() {
  13095. var r = new Uint8Array([
  13096. 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,
  13097. 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20,
  13098. 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23,
  13099. 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]);
  13100. var k = new Int32Array([
  13101. -680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426,
  13102. -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162,
  13103. 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632,
  13104. 643717713, -373897302, -701558691, 38016083, -660478335, -405537848,
  13105. 568446438, -1019803690, -187363961, 1163531501, -1444681467, -51403784,
  13106. 1735328473, -1926607734, -378558, -2022574463, 1839030562, -35309556,
  13107. -1530992060, 1272893353, -155497632, -1094730640, 681279174, -358537222,
  13108. -722521979, 76029189, -640364487, -421815835, 530742520, -995338651,
  13109. -198630844, 1126891415, -1416354905, -57434055, 1700485571, -1894986606,
  13110. -1051523, -2054922799, 1873313359, -30611744, -1560198380, 1309151649,
  13111. -145523070, -1120210379, 718787259, -343485551]);
  13112. function hash(data, offset, length) {
  13113. var h0 = 1732584193, h1 = -271733879, h2 = -1732584194, h3 = 271733878;
  13114. // pre-processing
  13115. var paddedLength = (length + 72) & ~63; // data + 9 extra bytes
  13116. var padded = new Uint8Array(paddedLength);
  13117. var i, j, n;
  13118. for (i = 0; i < length; ++i) {
  13119. padded[i] = data[offset++];
  13120. }
  13121. padded[i++] = 0x80;
  13122. n = paddedLength - 8;
  13123. while (i < n) {
  13124. padded[i++] = 0;
  13125. }
  13126. padded[i++] = (length << 3) & 0xFF;
  13127. padded[i++] = (length >> 5) & 0xFF;
  13128. padded[i++] = (length >> 13) & 0xFF;
  13129. padded[i++] = (length >> 21) & 0xFF;
  13130. padded[i++] = (length >>> 29) & 0xFF;
  13131. padded[i++] = 0;
  13132. padded[i++] = 0;
  13133. padded[i++] = 0;
  13134. var w = new Int32Array(16);
  13135. for (i = 0; i < paddedLength;) {
  13136. for (j = 0; j < 16; ++j, i += 4) {
  13137. w[j] = (padded[i] | (padded[i + 1] << 8) |
  13138. (padded[i + 2] << 16) | (padded[i + 3] << 24));
  13139. }
  13140. var a = h0, b = h1, c = h2, d = h3, f, g;
  13141. for (j = 0; j < 64; ++j) {
  13142. if (j < 16) {
  13143. f = (b & c) | ((~b) & d);
  13144. g = j;
  13145. } else if (j < 32) {
  13146. f = (d & b) | ((~d) & c);
  13147. g = (5 * j + 1) & 15;
  13148. } else if (j < 48) {
  13149. f = b ^ c ^ d;
  13150. g = (3 * j + 5) & 15;
  13151. } else {
  13152. f = c ^ (b | (~d));
  13153. g = (7 * j) & 15;
  13154. }
  13155. var tmp = d, rotateArg = (a + f + k[j] + w[g]) | 0, rotate = r[j];
  13156. d = c;
  13157. c = b;
  13158. b = (b + ((rotateArg << rotate) | (rotateArg >>> (32 - rotate)))) | 0;
  13159. a = tmp;
  13160. }
  13161. h0 = (h0 + a) | 0;
  13162. h1 = (h1 + b) | 0;
  13163. h2 = (h2 + c) | 0;
  13164. h3 = (h3 + d) | 0;
  13165. }
  13166. return new Uint8Array([
  13167. h0 & 0xFF, (h0 >> 8) & 0xFF, (h0 >> 16) & 0xFF, (h0 >>> 24) & 0xFF,
  13168. h1 & 0xFF, (h1 >> 8) & 0xFF, (h1 >> 16) & 0xFF, (h1 >>> 24) & 0xFF,
  13169. h2 & 0xFF, (h2 >> 8) & 0xFF, (h2 >> 16) & 0xFF, (h2 >>> 24) & 0xFF,
  13170. h3 & 0xFF, (h3 >> 8) & 0xFF, (h3 >> 16) & 0xFF, (h3 >>> 24) & 0xFF
  13171. ]);
  13172. }
  13173. return hash;
  13174. })();
  13175. var Word64 = (function Word64Closure() {
  13176. function Word64(highInteger, lowInteger) {
  13177. this.high = highInteger | 0;
  13178. this.low = lowInteger | 0;
  13179. }
  13180. Word64.prototype = {
  13181. and: function Word64_and(word) {
  13182. this.high &= word.high;
  13183. this.low &= word.low;
  13184. },
  13185. xor: function Word64_xor(word) {
  13186. this.high ^= word.high;
  13187. this.low ^= word.low;
  13188. },
  13189. or: function Word64_or(word) {
  13190. this.high |= word.high;
  13191. this.low |= word.low;
  13192. },
  13193. shiftRight: function Word64_shiftRight(places) {
  13194. if (places >= 32) {
  13195. this.low = (this.high >>> (places - 32)) | 0;
  13196. this.high = 0;
  13197. } else {
  13198. this.low = (this.low >>> places) | (this.high << (32 - places));
  13199. this.high = (this.high >>> places) | 0;
  13200. }
  13201. },
  13202. shiftLeft: function Word64_shiftLeft(places) {
  13203. if (places >= 32) {
  13204. this.high = this.low << (places - 32);
  13205. this.low = 0;
  13206. } else {
  13207. this.high = (this.high << places) | (this.low >>> (32 - places));
  13208. this.low = this.low << places;
  13209. }
  13210. },
  13211. rotateRight: function Word64_rotateRight(places) {
  13212. var low, high;
  13213. if (places & 32) {
  13214. high = this.low;
  13215. low = this.high;
  13216. } else {
  13217. low = this.low;
  13218. high = this.high;
  13219. }
  13220. places &= 31;
  13221. this.low = (low >>> places) | (high << (32 - places));
  13222. this.high = (high >>> places) | (low << (32 - places));
  13223. },
  13224. not: function Word64_not() {
  13225. this.high = ~this.high;
  13226. this.low = ~this.low;
  13227. },
  13228. add: function Word64_add(word) {
  13229. var lowAdd = (this.low >>> 0) + (word.low >>> 0);
  13230. var highAdd = (this.high >>> 0) + (word.high >>> 0);
  13231. if (lowAdd > 0xFFFFFFFF) {
  13232. highAdd += 1;
  13233. }
  13234. this.low = lowAdd | 0;
  13235. this.high = highAdd | 0;
  13236. },
  13237. copyTo: function Word64_copyTo(bytes, offset) {
  13238. bytes[offset] = (this.high >>> 24) & 0xFF;
  13239. bytes[offset + 1] = (this.high >> 16) & 0xFF;
  13240. bytes[offset + 2] = (this.high >> 8) & 0xFF;
  13241. bytes[offset + 3] = this.high & 0xFF;
  13242. bytes[offset + 4] = (this.low >>> 24) & 0xFF;
  13243. bytes[offset + 5] = (this.low >> 16) & 0xFF;
  13244. bytes[offset + 6] = (this.low >> 8) & 0xFF;
  13245. bytes[offset + 7] = this.low & 0xFF;
  13246. },
  13247. assign: function Word64_assign(word) {
  13248. this.high = word.high;
  13249. this.low = word.low;
  13250. }
  13251. };
  13252. return Word64;
  13253. })();
  13254. var calculateSHA256 = (function calculateSHA256Closure() {
  13255. function rotr(x, n) {
  13256. return (x >>> n) | (x << 32 - n);
  13257. }
  13258. function ch(x, y, z) {
  13259. return (x & y) ^ (~x & z);
  13260. }
  13261. function maj(x, y, z) {
  13262. return (x & y) ^ (x & z) ^ (y & z);
  13263. }
  13264. function sigma(x) {
  13265. return rotr(x, 2) ^ rotr(x, 13) ^ rotr(x, 22);
  13266. }
  13267. function sigmaPrime(x) {
  13268. return rotr(x, 6) ^ rotr(x, 11) ^ rotr(x, 25);
  13269. }
  13270. function littleSigma(x) {
  13271. return rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3;
  13272. }
  13273. function littleSigmaPrime(x) {
  13274. return rotr(x, 17) ^ rotr(x, 19) ^ x >>> 10;
  13275. }
  13276. var k = [0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
  13277. 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
  13278. 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,
  13279. 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
  13280. 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,
  13281. 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
  13282. 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,
  13283. 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
  13284. 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,
  13285. 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
  13286. 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,
  13287. 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
  13288. 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,
  13289. 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
  13290. 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,
  13291. 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2];
  13292. function hash(data, offset, length) {
  13293. // initial hash values
  13294. var h0 = 0x6a09e667, h1 = 0xbb67ae85, h2 = 0x3c6ef372,
  13295. h3 = 0xa54ff53a, h4 = 0x510e527f, h5 = 0x9b05688c,
  13296. h6 = 0x1f83d9ab, h7 = 0x5be0cd19;
  13297. // pre-processing
  13298. var paddedLength = Math.ceil((length + 9) / 64) * 64;
  13299. var padded = new Uint8Array(paddedLength);
  13300. var i, j, n;
  13301. for (i = 0; i < length; ++i) {
  13302. padded[i] = data[offset++];
  13303. }
  13304. padded[i++] = 0x80;
  13305. n = paddedLength - 8;
  13306. while (i < n) {
  13307. padded[i++] = 0;
  13308. }
  13309. padded[i++] = 0;
  13310. padded[i++] = 0;
  13311. padded[i++] = 0;
  13312. padded[i++] = (length >>> 29) & 0xFF;
  13313. padded[i++] = (length >> 21) & 0xFF;
  13314. padded[i++] = (length >> 13) & 0xFF;
  13315. padded[i++] = (length >> 5) & 0xFF;
  13316. padded[i++] = (length << 3) & 0xFF;
  13317. var w = new Uint32Array(64);
  13318. // for each 512 bit block
  13319. for (i = 0; i < paddedLength;) {
  13320. for (j = 0; j < 16; ++j) {
  13321. w[j] = (padded[i] << 24 | (padded[i + 1] << 16) |
  13322. (padded[i + 2] << 8) | (padded[i + 3]));
  13323. i += 4;
  13324. }
  13325. for (j = 16; j < 64; ++j) {
  13326. w[j] = littleSigmaPrime(w[j - 2]) + w[j - 7] +
  13327. littleSigma(w[j - 15]) + w[j - 16] | 0;
  13328. }
  13329. var a = h0, b = h1, c = h2, d = h3, e = h4,
  13330. f = h5, g = h6, h = h7, t1, t2;
  13331. for (j = 0; j < 64; ++j) {
  13332. t1 = h + sigmaPrime(e) + ch(e, f, g) + k[j] + w[j];
  13333. t2 = sigma(a) + maj(a, b, c);
  13334. h = g;
  13335. g = f;
  13336. f = e;
  13337. e = (d + t1) | 0;
  13338. d = c;
  13339. c = b;
  13340. b = a;
  13341. a = (t1 + t2) | 0;
  13342. }
  13343. h0 = (h0 + a) | 0;
  13344. h1 = (h1 + b) | 0;
  13345. h2 = (h2 + c) | 0;
  13346. h3 = (h3 + d) | 0;
  13347. h4 = (h4 + e) | 0;
  13348. h5 = (h5 + f) | 0;
  13349. h6 = (h6 + g) | 0;
  13350. h7 = (h7 + h) | 0;
  13351. }
  13352. return new Uint8Array([
  13353. (h0 >> 24) & 0xFF, (h0 >> 16) & 0xFF, (h0 >> 8) & 0xFF, (h0) & 0xFF,
  13354. (h1 >> 24) & 0xFF, (h1 >> 16) & 0xFF, (h1 >> 8) & 0xFF, (h1) & 0xFF,
  13355. (h2 >> 24) & 0xFF, (h2 >> 16) & 0xFF, (h2 >> 8) & 0xFF, (h2) & 0xFF,
  13356. (h3 >> 24) & 0xFF, (h3 >> 16) & 0xFF, (h3 >> 8) & 0xFF, (h3) & 0xFF,
  13357. (h4 >> 24) & 0xFF, (h4 >> 16) & 0xFF, (h4 >> 8) & 0xFF, (h4) & 0xFF,
  13358. (h5 >> 24) & 0xFF, (h5 >> 16) & 0xFF, (h5 >> 8) & 0xFF, (h5) & 0xFF,
  13359. (h6 >> 24) & 0xFF, (h6 >> 16) & 0xFF, (h6 >> 8) & 0xFF, (h6) & 0xFF,
  13360. (h7 >> 24) & 0xFF, (h7 >> 16) & 0xFF, (h7 >> 8) & 0xFF, (h7) & 0xFF
  13361. ]);
  13362. }
  13363. return hash;
  13364. })();
  13365. var calculateSHA512 = (function calculateSHA512Closure() {
  13366. function ch(result, x, y, z, tmp) {
  13367. result.assign(x);
  13368. result.and(y);
  13369. tmp.assign(x);
  13370. tmp.not();
  13371. tmp.and(z);
  13372. result.xor(tmp);
  13373. }
  13374. function maj(result, x, y, z, tmp) {
  13375. result.assign(x);
  13376. result.and(y);
  13377. tmp.assign(x);
  13378. tmp.and(z);
  13379. result.xor(tmp);
  13380. tmp.assign(y);
  13381. tmp.and(z);
  13382. result.xor(tmp);
  13383. }
  13384. function sigma(result, x, tmp) {
  13385. result.assign(x);
  13386. result.rotateRight(28);
  13387. tmp.assign(x);
  13388. tmp.rotateRight(34);
  13389. result.xor(tmp);
  13390. tmp.assign(x);
  13391. tmp.rotateRight(39);
  13392. result.xor(tmp);
  13393. }
  13394. function sigmaPrime(result, x, tmp) {
  13395. result.assign(x);
  13396. result.rotateRight(14);
  13397. tmp.assign(x);
  13398. tmp.rotateRight(18);
  13399. result.xor(tmp);
  13400. tmp.assign(x);
  13401. tmp.rotateRight(41);
  13402. result.xor(tmp);
  13403. }
  13404. function littleSigma(result, x, tmp) {
  13405. result.assign(x);
  13406. result.rotateRight(1);
  13407. tmp.assign(x);
  13408. tmp.rotateRight(8);
  13409. result.xor(tmp);
  13410. tmp.assign(x);
  13411. tmp.shiftRight(7);
  13412. result.xor(tmp);
  13413. }
  13414. function littleSigmaPrime(result, x, tmp) {
  13415. result.assign(x);
  13416. result.rotateRight(19);
  13417. tmp.assign(x);
  13418. tmp.rotateRight(61);
  13419. result.xor(tmp);
  13420. tmp.assign(x);
  13421. tmp.shiftRight(6);
  13422. result.xor(tmp);
  13423. }
  13424. var k = [
  13425. new Word64(0x428a2f98, 0xd728ae22), new Word64(0x71374491, 0x23ef65cd),
  13426. new Word64(0xb5c0fbcf, 0xec4d3b2f), new Word64(0xe9b5dba5, 0x8189dbbc),
  13427. new Word64(0x3956c25b, 0xf348b538), new Word64(0x59f111f1, 0xb605d019),
  13428. new Word64(0x923f82a4, 0xaf194f9b), new Word64(0xab1c5ed5, 0xda6d8118),
  13429. new Word64(0xd807aa98, 0xa3030242), new Word64(0x12835b01, 0x45706fbe),
  13430. new Word64(0x243185be, 0x4ee4b28c), new Word64(0x550c7dc3, 0xd5ffb4e2),
  13431. new Word64(0x72be5d74, 0xf27b896f), new Word64(0x80deb1fe, 0x3b1696b1),
  13432. new Word64(0x9bdc06a7, 0x25c71235), new Word64(0xc19bf174, 0xcf692694),
  13433. new Word64(0xe49b69c1, 0x9ef14ad2), new Word64(0xefbe4786, 0x384f25e3),
  13434. new Word64(0x0fc19dc6, 0x8b8cd5b5), new Word64(0x240ca1cc, 0x77ac9c65),
  13435. new Word64(0x2de92c6f, 0x592b0275), new Word64(0x4a7484aa, 0x6ea6e483),
  13436. new Word64(0x5cb0a9dc, 0xbd41fbd4), new Word64(0x76f988da, 0x831153b5),
  13437. new Word64(0x983e5152, 0xee66dfab), new Word64(0xa831c66d, 0x2db43210),
  13438. new Word64(0xb00327c8, 0x98fb213f), new Word64(0xbf597fc7, 0xbeef0ee4),
  13439. new Word64(0xc6e00bf3, 0x3da88fc2), new Word64(0xd5a79147, 0x930aa725),
  13440. new Word64(0x06ca6351, 0xe003826f), new Word64(0x14292967, 0x0a0e6e70),
  13441. new Word64(0x27b70a85, 0x46d22ffc), new Word64(0x2e1b2138, 0x5c26c926),
  13442. new Word64(0x4d2c6dfc, 0x5ac42aed), new Word64(0x53380d13, 0x9d95b3df),
  13443. new Word64(0x650a7354, 0x8baf63de), new Word64(0x766a0abb, 0x3c77b2a8),
  13444. new Word64(0x81c2c92e, 0x47edaee6), new Word64(0x92722c85, 0x1482353b),
  13445. new Word64(0xa2bfe8a1, 0x4cf10364), new Word64(0xa81a664b, 0xbc423001),
  13446. new Word64(0xc24b8b70, 0xd0f89791), new Word64(0xc76c51a3, 0x0654be30),
  13447. new Word64(0xd192e819, 0xd6ef5218), new Word64(0xd6990624, 0x5565a910),
  13448. new Word64(0xf40e3585, 0x5771202a), new Word64(0x106aa070, 0x32bbd1b8),
  13449. new Word64(0x19a4c116, 0xb8d2d0c8), new Word64(0x1e376c08, 0x5141ab53),
  13450. new Word64(0x2748774c, 0xdf8eeb99), new Word64(0x34b0bcb5, 0xe19b48a8),
  13451. new Word64(0x391c0cb3, 0xc5c95a63), new Word64(0x4ed8aa4a, 0xe3418acb),
  13452. new Word64(0x5b9cca4f, 0x7763e373), new Word64(0x682e6ff3, 0xd6b2b8a3),
  13453. new Word64(0x748f82ee, 0x5defb2fc), new Word64(0x78a5636f, 0x43172f60),
  13454. new Word64(0x84c87814, 0xa1f0ab72), new Word64(0x8cc70208, 0x1a6439ec),
  13455. new Word64(0x90befffa, 0x23631e28), new Word64(0xa4506ceb, 0xde82bde9),
  13456. new Word64(0xbef9a3f7, 0xb2c67915), new Word64(0xc67178f2, 0xe372532b),
  13457. new Word64(0xca273ece, 0xea26619c), new Word64(0xd186b8c7, 0x21c0c207),
  13458. new Word64(0xeada7dd6, 0xcde0eb1e), new Word64(0xf57d4f7f, 0xee6ed178),
  13459. new Word64(0x06f067aa, 0x72176fba), new Word64(0x0a637dc5, 0xa2c898a6),
  13460. new Word64(0x113f9804, 0xbef90dae), new Word64(0x1b710b35, 0x131c471b),
  13461. new Word64(0x28db77f5, 0x23047d84), new Word64(0x32caab7b, 0x40c72493),
  13462. new Word64(0x3c9ebe0a, 0x15c9bebc), new Word64(0x431d67c4, 0x9c100d4c),
  13463. new Word64(0x4cc5d4be, 0xcb3e42b6), new Word64(0x597f299c, 0xfc657e2a),
  13464. new Word64(0x5fcb6fab, 0x3ad6faec), new Word64(0x6c44198c, 0x4a475817)];
  13465. function hash(data, offset, length, mode384) {
  13466. mode384 = !!mode384;
  13467. // initial hash values
  13468. var h0, h1, h2, h3, h4, h5, h6, h7;
  13469. if (!mode384) {
  13470. h0 = new Word64(0x6a09e667, 0xf3bcc908);
  13471. h1 = new Word64(0xbb67ae85, 0x84caa73b);
  13472. h2 = new Word64(0x3c6ef372, 0xfe94f82b);
  13473. h3 = new Word64(0xa54ff53a, 0x5f1d36f1);
  13474. h4 = new Word64(0x510e527f, 0xade682d1);
  13475. h5 = new Word64(0x9b05688c, 0x2b3e6c1f);
  13476. h6 = new Word64(0x1f83d9ab, 0xfb41bd6b);
  13477. h7 = new Word64(0x5be0cd19, 0x137e2179);
  13478. }
  13479. else {
  13480. // SHA384 is exactly the same
  13481. // except with different starting values and a trimmed result
  13482. h0 = new Word64(0xcbbb9d5d, 0xc1059ed8);
  13483. h1 = new Word64(0x629a292a, 0x367cd507);
  13484. h2 = new Word64(0x9159015a, 0x3070dd17);
  13485. h3 = new Word64(0x152fecd8, 0xf70e5939);
  13486. h4 = new Word64(0x67332667, 0xffc00b31);
  13487. h5 = new Word64(0x8eb44a87, 0x68581511);
  13488. h6 = new Word64(0xdb0c2e0d, 0x64f98fa7);
  13489. h7 = new Word64(0x47b5481d, 0xbefa4fa4);
  13490. }
  13491. // pre-processing
  13492. var paddedLength = Math.ceil((length + 17) / 128) * 128;
  13493. var padded = new Uint8Array(paddedLength);
  13494. var i, j, n;
  13495. for (i = 0; i < length; ++i) {
  13496. padded[i] = data[offset++];
  13497. }
  13498. padded[i++] = 0x80;
  13499. n = paddedLength - 16;
  13500. while (i < n) {
  13501. padded[i++] = 0;
  13502. }
  13503. padded[i++] = 0;
  13504. padded[i++] = 0;
  13505. padded[i++] = 0;
  13506. padded[i++] = 0;
  13507. padded[i++] = 0;
  13508. padded[i++] = 0;
  13509. padded[i++] = 0;
  13510. padded[i++] = 0;
  13511. padded[i++] = 0;
  13512. padded[i++] = 0;
  13513. padded[i++] = 0;
  13514. padded[i++] = (length >>> 29) & 0xFF;
  13515. padded[i++] = (length >> 21) & 0xFF;
  13516. padded[i++] = (length >> 13) & 0xFF;
  13517. padded[i++] = (length >> 5) & 0xFF;
  13518. padded[i++] = (length << 3) & 0xFF;
  13519. var w = new Array(80);
  13520. for (i = 0; i < 80; i++) {
  13521. w[i] = new Word64(0, 0);
  13522. }
  13523. var a = new Word64(0, 0), b = new Word64(0, 0), c = new Word64(0, 0);
  13524. var d = new Word64(0, 0), e = new Word64(0, 0), f = new Word64(0, 0);
  13525. var g = new Word64(0, 0), h = new Word64(0, 0);
  13526. var t1 = new Word64(0, 0), t2 = new Word64(0, 0);
  13527. var tmp1 = new Word64(0, 0), tmp2 = new Word64(0, 0), tmp3;
  13528. // for each 1024 bit block
  13529. for (i = 0; i < paddedLength;) {
  13530. for (j = 0; j < 16; ++j) {
  13531. w[j].high = (padded[i] << 24) | (padded[i + 1] << 16) |
  13532. (padded[i + 2] << 8) | (padded[i + 3]);
  13533. w[j].low = (padded[i + 4]) << 24 | (padded[i + 5]) << 16 |
  13534. (padded[i + 6]) << 8 | (padded[i + 7]);
  13535. i += 8;
  13536. }
  13537. for (j = 16; j < 80; ++j) {
  13538. tmp3 = w[j];
  13539. littleSigmaPrime(tmp3, w[j - 2], tmp2);
  13540. tmp3.add(w[j - 7]);
  13541. littleSigma(tmp1, w[j - 15], tmp2);
  13542. tmp3.add(tmp1);
  13543. tmp3.add(w[j - 16]);
  13544. }
  13545. a.assign(h0); b.assign(h1); c.assign(h2); d.assign(h3);
  13546. e.assign(h4); f.assign(h5); g.assign(h6); h.assign(h7);
  13547. for (j = 0; j < 80; ++j) {
  13548. t1.assign(h);
  13549. sigmaPrime(tmp1, e, tmp2);
  13550. t1.add(tmp1);
  13551. ch(tmp1, e, f, g, tmp2);
  13552. t1.add(tmp1);
  13553. t1.add(k[j]);
  13554. t1.add(w[j]);
  13555. sigma(t2, a, tmp2);
  13556. maj(tmp1, a, b, c, tmp2);
  13557. t2.add(tmp1);
  13558. tmp3 = h;
  13559. h = g;
  13560. g = f;
  13561. f = e;
  13562. d.add(t1);
  13563. e = d;
  13564. d = c;
  13565. c = b;
  13566. b = a;
  13567. tmp3.assign(t1);
  13568. tmp3.add(t2);
  13569. a = tmp3;
  13570. }
  13571. h0.add(a);
  13572. h1.add(b);
  13573. h2.add(c);
  13574. h3.add(d);
  13575. h4.add(e);
  13576. h5.add(f);
  13577. h6.add(g);
  13578. h7.add(h);
  13579. }
  13580. var result;
  13581. if (!mode384) {
  13582. result = new Uint8Array(64);
  13583. h0.copyTo(result,0);
  13584. h1.copyTo(result,8);
  13585. h2.copyTo(result,16);
  13586. h3.copyTo(result,24);
  13587. h4.copyTo(result,32);
  13588. h5.copyTo(result,40);
  13589. h6.copyTo(result,48);
  13590. h7.copyTo(result,56);
  13591. }
  13592. else {
  13593. result = new Uint8Array(48);
  13594. h0.copyTo(result,0);
  13595. h1.copyTo(result,8);
  13596. h2.copyTo(result,16);
  13597. h3.copyTo(result,24);
  13598. h4.copyTo(result,32);
  13599. h5.copyTo(result,40);
  13600. }
  13601. return result;
  13602. }
  13603. return hash;
  13604. })();
  13605. var calculateSHA384 = (function calculateSHA384Closure() {
  13606. function hash(data, offset, length) {
  13607. return calculateSHA512(data, offset, length, true);
  13608. }
  13609. return hash;
  13610. })();
  13611. var NullCipher = (function NullCipherClosure() {
  13612. function NullCipher() {
  13613. }
  13614. NullCipher.prototype = {
  13615. decryptBlock: function NullCipher_decryptBlock(data) {
  13616. return data;
  13617. }
  13618. };
  13619. return NullCipher;
  13620. })();
  13621. var AES128Cipher = (function AES128CipherClosure() {
  13622. var rcon = new Uint8Array([
  13623. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13624. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13625. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13626. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13627. 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
  13628. 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6,
  13629. 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72,
  13630. 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc,
  13631. 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10,
  13632. 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e,
  13633. 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5,
  13634. 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94,
  13635. 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02,
  13636. 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d,
  13637. 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d,
  13638. 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f,
  13639. 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb,
  13640. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  13641. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  13642. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  13643. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  13644. 0x74, 0xe8, 0xcb, 0x8d]);
  13645. var s = new Uint8Array([
  13646. 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b,
  13647. 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
  13648. 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26,
  13649. 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15,
  13650. 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2,
  13651. 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0,
  13652. 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed,
  13653. 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf,
  13654. 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f,
  13655. 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5,
  13656. 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec,
  13657. 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73,
  13658. 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14,
  13659. 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c,
  13660. 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d,
  13661. 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08,
  13662. 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f,
  13663. 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e,
  13664. 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11,
  13665. 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf,
  13666. 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f,
  13667. 0xb0, 0x54, 0xbb, 0x16]);
  13668. var inv_s = new Uint8Array([
  13669. 0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, 0xbf, 0x40, 0xa3, 0x9e,
  13670. 0x81, 0xf3, 0xd7, 0xfb, 0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87,
  13671. 0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb, 0x54, 0x7b, 0x94, 0x32,
  13672. 0xa6, 0xc2, 0x23, 0x3d, 0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e,
  13673. 0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2, 0x76, 0x5b, 0xa2, 0x49,
  13674. 0x6d, 0x8b, 0xd1, 0x25, 0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16,
  13675. 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92, 0x6c, 0x70, 0x48, 0x50,
  13676. 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84,
  13677. 0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0x58, 0x05,
  13678. 0xb8, 0xb3, 0x45, 0x06, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02,
  13679. 0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41,
  13680. 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73,
  13681. 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8,
  13682. 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89,
  13683. 0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b,
  13684. 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4,
  13685. 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59,
  13686. 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d,
  13687. 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d,
  13688. 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61,
  13689. 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63,
  13690. 0x55, 0x21, 0x0c, 0x7d]);
  13691. var mixCol = new Uint8Array(256);
  13692. for (var i = 0; i < 256; i++) {
  13693. if (i < 128) {
  13694. mixCol[i] = i << 1;
  13695. } else {
  13696. mixCol[i] = (i << 1) ^ 0x1b;
  13697. }
  13698. }
  13699. var mix = new Uint32Array([
  13700. 0x00000000, 0x0e090d0b, 0x1c121a16, 0x121b171d, 0x3824342c, 0x362d3927,
  13701. 0x24362e3a, 0x2a3f2331, 0x70486858, 0x7e416553, 0x6c5a724e, 0x62537f45,
  13702. 0x486c5c74, 0x4665517f, 0x547e4662, 0x5a774b69, 0xe090d0b0, 0xee99ddbb,
  13703. 0xfc82caa6, 0xf28bc7ad, 0xd8b4e49c, 0xd6bde997, 0xc4a6fe8a, 0xcaaff381,
  13704. 0x90d8b8e8, 0x9ed1b5e3, 0x8ccaa2fe, 0x82c3aff5, 0xa8fc8cc4, 0xa6f581cf,
  13705. 0xb4ee96d2, 0xbae79bd9, 0xdb3bbb7b, 0xd532b670, 0xc729a16d, 0xc920ac66,
  13706. 0xe31f8f57, 0xed16825c, 0xff0d9541, 0xf104984a, 0xab73d323, 0xa57ade28,
  13707. 0xb761c935, 0xb968c43e, 0x9357e70f, 0x9d5eea04, 0x8f45fd19, 0x814cf012,
  13708. 0x3bab6bcb, 0x35a266c0, 0x27b971dd, 0x29b07cd6, 0x038f5fe7, 0x0d8652ec,
  13709. 0x1f9d45f1, 0x119448fa, 0x4be30393, 0x45ea0e98, 0x57f11985, 0x59f8148e,
  13710. 0x73c737bf, 0x7dce3ab4, 0x6fd52da9, 0x61dc20a2, 0xad766df6, 0xa37f60fd,
  13711. 0xb16477e0, 0xbf6d7aeb, 0x955259da, 0x9b5b54d1, 0x894043cc, 0x87494ec7,
  13712. 0xdd3e05ae, 0xd33708a5, 0xc12c1fb8, 0xcf2512b3, 0xe51a3182, 0xeb133c89,
  13713. 0xf9082b94, 0xf701269f, 0x4de6bd46, 0x43efb04d, 0x51f4a750, 0x5ffdaa5b,
  13714. 0x75c2896a, 0x7bcb8461, 0x69d0937c, 0x67d99e77, 0x3daed51e, 0x33a7d815,
  13715. 0x21bccf08, 0x2fb5c203, 0x058ae132, 0x0b83ec39, 0x1998fb24, 0x1791f62f,
  13716. 0x764dd68d, 0x7844db86, 0x6a5fcc9b, 0x6456c190, 0x4e69e2a1, 0x4060efaa,
  13717. 0x527bf8b7, 0x5c72f5bc, 0x0605bed5, 0x080cb3de, 0x1a17a4c3, 0x141ea9c8,
  13718. 0x3e218af9, 0x302887f2, 0x223390ef, 0x2c3a9de4, 0x96dd063d, 0x98d40b36,
  13719. 0x8acf1c2b, 0x84c61120, 0xaef93211, 0xa0f03f1a, 0xb2eb2807, 0xbce2250c,
  13720. 0xe6956e65, 0xe89c636e, 0xfa877473, 0xf48e7978, 0xdeb15a49, 0xd0b85742,
  13721. 0xc2a3405f, 0xccaa4d54, 0x41ecdaf7, 0x4fe5d7fc, 0x5dfec0e1, 0x53f7cdea,
  13722. 0x79c8eedb, 0x77c1e3d0, 0x65daf4cd, 0x6bd3f9c6, 0x31a4b2af, 0x3fadbfa4,
  13723. 0x2db6a8b9, 0x23bfa5b2, 0x09808683, 0x07898b88, 0x15929c95, 0x1b9b919e,
  13724. 0xa17c0a47, 0xaf75074c, 0xbd6e1051, 0xb3671d5a, 0x99583e6b, 0x97513360,
  13725. 0x854a247d, 0x8b432976, 0xd134621f, 0xdf3d6f14, 0xcd267809, 0xc32f7502,
  13726. 0xe9105633, 0xe7195b38, 0xf5024c25, 0xfb0b412e, 0x9ad7618c, 0x94de6c87,
  13727. 0x86c57b9a, 0x88cc7691, 0xa2f355a0, 0xacfa58ab, 0xbee14fb6, 0xb0e842bd,
  13728. 0xea9f09d4, 0xe49604df, 0xf68d13c2, 0xf8841ec9, 0xd2bb3df8, 0xdcb230f3,
  13729. 0xcea927ee, 0xc0a02ae5, 0x7a47b13c, 0x744ebc37, 0x6655ab2a, 0x685ca621,
  13730. 0x42638510, 0x4c6a881b, 0x5e719f06, 0x5078920d, 0x0a0fd964, 0x0406d46f,
  13731. 0x161dc372, 0x1814ce79, 0x322bed48, 0x3c22e043, 0x2e39f75e, 0x2030fa55,
  13732. 0xec9ab701, 0xe293ba0a, 0xf088ad17, 0xfe81a01c, 0xd4be832d, 0xdab78e26,
  13733. 0xc8ac993b, 0xc6a59430, 0x9cd2df59, 0x92dbd252, 0x80c0c54f, 0x8ec9c844,
  13734. 0xa4f6eb75, 0xaaffe67e, 0xb8e4f163, 0xb6edfc68, 0x0c0a67b1, 0x02036aba,
  13735. 0x10187da7, 0x1e1170ac, 0x342e539d, 0x3a275e96, 0x283c498b, 0x26354480,
  13736. 0x7c420fe9, 0x724b02e2, 0x605015ff, 0x6e5918f4, 0x44663bc5, 0x4a6f36ce,
  13737. 0x587421d3, 0x567d2cd8, 0x37a10c7a, 0x39a80171, 0x2bb3166c, 0x25ba1b67,
  13738. 0x0f853856, 0x018c355d, 0x13972240, 0x1d9e2f4b, 0x47e96422, 0x49e06929,
  13739. 0x5bfb7e34, 0x55f2733f, 0x7fcd500e, 0x71c45d05, 0x63df4a18, 0x6dd64713,
  13740. 0xd731dcca, 0xd938d1c1, 0xcb23c6dc, 0xc52acbd7, 0xef15e8e6, 0xe11ce5ed,
  13741. 0xf307f2f0, 0xfd0efffb, 0xa779b492, 0xa970b999, 0xbb6bae84, 0xb562a38f,
  13742. 0x9f5d80be, 0x91548db5, 0x834f9aa8, 0x8d4697a3]);
  13743. function expandKey128(cipherKey) {
  13744. var b = 176, result = new Uint8Array(b);
  13745. result.set(cipherKey);
  13746. for (var j = 16, i = 1; j < b; ++i) {
  13747. // RotWord
  13748. var t1 = result[j - 3], t2 = result[j - 2],
  13749. t3 = result[j - 1], t4 = result[j - 4];
  13750. // SubWord
  13751. t1 = s[t1];
  13752. t2 = s[t2];
  13753. t3 = s[t3];
  13754. t4 = s[t4];
  13755. // Rcon
  13756. t1 = t1 ^ rcon[i];
  13757. for (var n = 0; n < 4; ++n) {
  13758. result[j] = (t1 ^= result[j - 16]);
  13759. j++;
  13760. result[j] = (t2 ^= result[j - 16]);
  13761. j++;
  13762. result[j] = (t3 ^= result[j - 16]);
  13763. j++;
  13764. result[j] = (t4 ^= result[j - 16]);
  13765. j++;
  13766. }
  13767. }
  13768. return result;
  13769. }
  13770. function decrypt128(input, key) {
  13771. var state = new Uint8Array(16);
  13772. state.set(input);
  13773. var i, j, k;
  13774. var t, u, v;
  13775. // AddRoundKey
  13776. for (j = 0, k = 160; j < 16; ++j, ++k) {
  13777. state[j] ^= key[k];
  13778. }
  13779. for (i = 9; i >= 1; --i) {
  13780. // InvShiftRows
  13781. t = state[13];
  13782. state[13] = state[9];
  13783. state[9] = state[5];
  13784. state[5] = state[1];
  13785. state[1] = t;
  13786. t = state[14];
  13787. u = state[10];
  13788. state[14] = state[6];
  13789. state[10] = state[2];
  13790. state[6] = t;
  13791. state[2] = u;
  13792. t = state[15];
  13793. u = state[11];
  13794. v = state[7];
  13795. state[15] = state[3];
  13796. state[11] = t;
  13797. state[7] = u;
  13798. state[3] = v;
  13799. // InvSubBytes
  13800. for (j = 0; j < 16; ++j) {
  13801. state[j] = inv_s[state[j]];
  13802. }
  13803. // AddRoundKey
  13804. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  13805. state[j] ^= key[k];
  13806. }
  13807. // InvMixColumns
  13808. for (j = 0; j < 16; j += 4) {
  13809. var s0 = mix[state[j]], s1 = mix[state[j + 1]],
  13810. s2 = mix[state[j + 2]], s3 = mix[state[j + 3]];
  13811. t = (s0 ^ (s1 >>> 8) ^ (s1 << 24) ^ (s2 >>> 16) ^ (s2 << 16) ^
  13812. (s3 >>> 24) ^ (s3 << 8));
  13813. state[j] = (t >>> 24) & 0xFF;
  13814. state[j + 1] = (t >> 16) & 0xFF;
  13815. state[j + 2] = (t >> 8) & 0xFF;
  13816. state[j + 3] = t & 0xFF;
  13817. }
  13818. }
  13819. // InvShiftRows
  13820. t = state[13];
  13821. state[13] = state[9];
  13822. state[9] = state[5];
  13823. state[5] = state[1];
  13824. state[1] = t;
  13825. t = state[14];
  13826. u = state[10];
  13827. state[14] = state[6];
  13828. state[10] = state[2];
  13829. state[6] = t;
  13830. state[2] = u;
  13831. t = state[15];
  13832. u = state[11];
  13833. v = state[7];
  13834. state[15] = state[3];
  13835. state[11] = t;
  13836. state[7] = u;
  13837. state[3] = v;
  13838. for (j = 0; j < 16; ++j) {
  13839. // InvSubBytes
  13840. state[j] = inv_s[state[j]];
  13841. // AddRoundKey
  13842. state[j] ^= key[j];
  13843. }
  13844. return state;
  13845. }
  13846. function encrypt128(input, key) {
  13847. var t, u, v, k;
  13848. var state = new Uint8Array(16);
  13849. state.set(input);
  13850. for (j = 0; j < 16; ++j) {
  13851. // AddRoundKey
  13852. state[j] ^= key[j];
  13853. }
  13854. for (i = 1; i < 10; i++) {
  13855. //SubBytes
  13856. for (j = 0; j < 16; ++j) {
  13857. state[j] = s[state[j]];
  13858. }
  13859. //ShiftRows
  13860. v = state[1];
  13861. state[1] = state[5];
  13862. state[5] = state[9];
  13863. state[9] = state[13];
  13864. state[13] = v;
  13865. v = state[2];
  13866. u = state[6];
  13867. state[2] = state[10];
  13868. state[6] = state[14];
  13869. state[10] = v;
  13870. state[14] = u;
  13871. v = state[3];
  13872. u = state[7];
  13873. t = state[11];
  13874. state[3] = state[15];
  13875. state[7] = v;
  13876. state[11] = u;
  13877. state[15] = t;
  13878. //MixColumns
  13879. for (var j = 0; j < 16; j += 4) {
  13880. var s0 = state[j + 0], s1 = state[j + 1];
  13881. var s2 = state[j + 2], s3 = state[j + 3];
  13882. t = s0 ^ s1 ^ s2 ^ s3;
  13883. state[j + 0] ^= t ^ mixCol[s0 ^ s1];
  13884. state[j + 1] ^= t ^ mixCol[s1 ^ s2];
  13885. state[j + 2] ^= t ^ mixCol[s2 ^ s3];
  13886. state[j + 3] ^= t ^ mixCol[s3 ^ s0];
  13887. }
  13888. //AddRoundKey
  13889. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  13890. state[j] ^= key[k];
  13891. }
  13892. }
  13893. //SubBytes
  13894. for (j = 0; j < 16; ++j) {
  13895. state[j] = s[state[j]];
  13896. }
  13897. //ShiftRows
  13898. v = state[1];
  13899. state[1] = state[5];
  13900. state[5] = state[9];
  13901. state[9] = state[13];
  13902. state[13] = v;
  13903. v = state[2];
  13904. u = state[6];
  13905. state[2] = state[10];
  13906. state[6] = state[14];
  13907. state[10] = v;
  13908. state[14] = u;
  13909. v = state[3];
  13910. u = state[7];
  13911. t = state[11];
  13912. state[3] = state[15];
  13913. state[7] = v;
  13914. state[11] = u;
  13915. state[15] = t;
  13916. //AddRoundKey
  13917. for (j = 0, k = 160; j < 16; ++j, ++k) {
  13918. state[j] ^= key[k];
  13919. }
  13920. return state;
  13921. }
  13922. function AES128Cipher(key) {
  13923. this.key = expandKey128(key);
  13924. this.buffer = new Uint8Array(16);
  13925. this.bufferPosition = 0;
  13926. }
  13927. function decryptBlock2(data, finalize) {
  13928. var i, j, ii, sourceLength = data.length,
  13929. buffer = this.buffer, bufferLength = this.bufferPosition,
  13930. result = [], iv = this.iv;
  13931. for (i = 0; i < sourceLength; ++i) {
  13932. buffer[bufferLength] = data[i];
  13933. ++bufferLength;
  13934. if (bufferLength < 16) {
  13935. continue;
  13936. }
  13937. // buffer is full, decrypting
  13938. var plain = decrypt128(buffer, this.key);
  13939. // xor-ing the IV vector to get plain text
  13940. for (j = 0; j < 16; ++j) {
  13941. plain[j] ^= iv[j];
  13942. }
  13943. iv = buffer;
  13944. result.push(plain);
  13945. buffer = new Uint8Array(16);
  13946. bufferLength = 0;
  13947. }
  13948. // saving incomplete buffer
  13949. this.buffer = buffer;
  13950. this.bufferLength = bufferLength;
  13951. this.iv = iv;
  13952. if (result.length === 0) {
  13953. return new Uint8Array([]);
  13954. }
  13955. // combining plain text blocks into one
  13956. var outputLength = 16 * result.length;
  13957. if (finalize) {
  13958. // undo a padding that is described in RFC 2898
  13959. var lastBlock = result[result.length - 1];
  13960. outputLength -= lastBlock[15];
  13961. result[result.length - 1] = lastBlock.subarray(0, 16 - lastBlock[15]);
  13962. }
  13963. var output = new Uint8Array(outputLength);
  13964. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  13965. output.set(result[i], j);
  13966. }
  13967. return output;
  13968. }
  13969. AES128Cipher.prototype = {
  13970. decryptBlock: function AES128Cipher_decryptBlock(data, finalize) {
  13971. var i, sourceLength = data.length;
  13972. var buffer = this.buffer, bufferLength = this.bufferPosition;
  13973. // waiting for IV values -- they are at the start of the stream
  13974. for (i = 0; bufferLength < 16 && i < sourceLength; ++i, ++bufferLength) {
  13975. buffer[bufferLength] = data[i];
  13976. }
  13977. if (bufferLength < 16) {
  13978. // need more data
  13979. this.bufferLength = bufferLength;
  13980. return new Uint8Array([]);
  13981. }
  13982. this.iv = buffer;
  13983. this.buffer = new Uint8Array(16);
  13984. this.bufferLength = 0;
  13985. // starting decryption
  13986. this.decryptBlock = decryptBlock2;
  13987. return this.decryptBlock(data.subarray(16), finalize);
  13988. },
  13989. encrypt: function AES128Cipher_encrypt(data, iv) {
  13990. var i, j, ii, sourceLength = data.length,
  13991. buffer = this.buffer, bufferLength = this.bufferPosition,
  13992. result = [];
  13993. if (!iv) {
  13994. iv = new Uint8Array(16);
  13995. }
  13996. for (i = 0; i < sourceLength; ++i) {
  13997. buffer[bufferLength] = data[i];
  13998. ++bufferLength;
  13999. if (bufferLength < 16) {
  14000. continue;
  14001. }
  14002. for (j = 0; j < 16; ++j) {
  14003. buffer[j] ^= iv[j];
  14004. }
  14005. // buffer is full, encrypting
  14006. var cipher = encrypt128(buffer, this.key);
  14007. iv = cipher;
  14008. result.push(cipher);
  14009. buffer = new Uint8Array(16);
  14010. bufferLength = 0;
  14011. }
  14012. // saving incomplete buffer
  14013. this.buffer = buffer;
  14014. this.bufferLength = bufferLength;
  14015. this.iv = iv;
  14016. if (result.length === 0) {
  14017. return new Uint8Array([]);
  14018. }
  14019. // combining plain text blocks into one
  14020. var outputLength = 16 * result.length;
  14021. var output = new Uint8Array(outputLength);
  14022. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  14023. output.set(result[i], j);
  14024. }
  14025. return output;
  14026. }
  14027. };
  14028. return AES128Cipher;
  14029. })();
  14030. var AES256Cipher = (function AES256CipherClosure() {
  14031. var rcon = new Uint8Array([
  14032. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  14033. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  14034. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  14035. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  14036. 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
  14037. 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6,
  14038. 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72,
  14039. 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc,
  14040. 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10,
  14041. 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e,
  14042. 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5,
  14043. 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94,
  14044. 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb, 0x8d, 0x01, 0x02,
  14045. 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d,
  14046. 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d,
  14047. 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd, 0x61, 0xc2, 0x9f,
  14048. 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a, 0x74, 0xe8, 0xcb,
  14049. 0x8d, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c,
  14050. 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a,
  14051. 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91, 0x39, 0x72, 0xe4, 0xd3, 0xbd,
  14052. 0x61, 0xc2, 0x9f, 0x25, 0x4a, 0x94, 0x33, 0x66, 0xcc, 0x83, 0x1d, 0x3a,
  14053. 0x74, 0xe8, 0xcb, 0x8d]);
  14054. var s = new Uint8Array([
  14055. 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b,
  14056. 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
  14057. 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26,
  14058. 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15,
  14059. 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2,
  14060. 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0,
  14061. 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed,
  14062. 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf,
  14063. 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f,
  14064. 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5,
  14065. 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec,
  14066. 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73,
  14067. 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14,
  14068. 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c,
  14069. 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d,
  14070. 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08,
  14071. 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f,
  14072. 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e,
  14073. 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11,
  14074. 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf,
  14075. 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f,
  14076. 0xb0, 0x54, 0xbb, 0x16]);
  14077. var inv_s = new Uint8Array([
  14078. 0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, 0xbf, 0x40, 0xa3, 0x9e,
  14079. 0x81, 0xf3, 0xd7, 0xfb, 0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87,
  14080. 0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb, 0x54, 0x7b, 0x94, 0x32,
  14081. 0xa6, 0xc2, 0x23, 0x3d, 0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e,
  14082. 0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2, 0x76, 0x5b, 0xa2, 0x49,
  14083. 0x6d, 0x8b, 0xd1, 0x25, 0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16,
  14084. 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92, 0x6c, 0x70, 0x48, 0x50,
  14085. 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84,
  14086. 0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0x58, 0x05,
  14087. 0xb8, 0xb3, 0x45, 0x06, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02,
  14088. 0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41,
  14089. 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73,
  14090. 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8,
  14091. 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89,
  14092. 0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b,
  14093. 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4,
  14094. 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59,
  14095. 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d,
  14096. 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d,
  14097. 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61,
  14098. 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63,
  14099. 0x55, 0x21, 0x0c, 0x7d]);
  14100. var mixCol = new Uint8Array(256);
  14101. for (var i = 0; i < 256; i++) {
  14102. if (i < 128) {
  14103. mixCol[i] = i << 1;
  14104. } else {
  14105. mixCol[i] = (i << 1) ^ 0x1b;
  14106. }
  14107. }
  14108. var mix = new Uint32Array([
  14109. 0x00000000, 0x0e090d0b, 0x1c121a16, 0x121b171d, 0x3824342c, 0x362d3927,
  14110. 0x24362e3a, 0x2a3f2331, 0x70486858, 0x7e416553, 0x6c5a724e, 0x62537f45,
  14111. 0x486c5c74, 0x4665517f, 0x547e4662, 0x5a774b69, 0xe090d0b0, 0xee99ddbb,
  14112. 0xfc82caa6, 0xf28bc7ad, 0xd8b4e49c, 0xd6bde997, 0xc4a6fe8a, 0xcaaff381,
  14113. 0x90d8b8e8, 0x9ed1b5e3, 0x8ccaa2fe, 0x82c3aff5, 0xa8fc8cc4, 0xa6f581cf,
  14114. 0xb4ee96d2, 0xbae79bd9, 0xdb3bbb7b, 0xd532b670, 0xc729a16d, 0xc920ac66,
  14115. 0xe31f8f57, 0xed16825c, 0xff0d9541, 0xf104984a, 0xab73d323, 0xa57ade28,
  14116. 0xb761c935, 0xb968c43e, 0x9357e70f, 0x9d5eea04, 0x8f45fd19, 0x814cf012,
  14117. 0x3bab6bcb, 0x35a266c0, 0x27b971dd, 0x29b07cd6, 0x038f5fe7, 0x0d8652ec,
  14118. 0x1f9d45f1, 0x119448fa, 0x4be30393, 0x45ea0e98, 0x57f11985, 0x59f8148e,
  14119. 0x73c737bf, 0x7dce3ab4, 0x6fd52da9, 0x61dc20a2, 0xad766df6, 0xa37f60fd,
  14120. 0xb16477e0, 0xbf6d7aeb, 0x955259da, 0x9b5b54d1, 0x894043cc, 0x87494ec7,
  14121. 0xdd3e05ae, 0xd33708a5, 0xc12c1fb8, 0xcf2512b3, 0xe51a3182, 0xeb133c89,
  14122. 0xf9082b94, 0xf701269f, 0x4de6bd46, 0x43efb04d, 0x51f4a750, 0x5ffdaa5b,
  14123. 0x75c2896a, 0x7bcb8461, 0x69d0937c, 0x67d99e77, 0x3daed51e, 0x33a7d815,
  14124. 0x21bccf08, 0x2fb5c203, 0x058ae132, 0x0b83ec39, 0x1998fb24, 0x1791f62f,
  14125. 0x764dd68d, 0x7844db86, 0x6a5fcc9b, 0x6456c190, 0x4e69e2a1, 0x4060efaa,
  14126. 0x527bf8b7, 0x5c72f5bc, 0x0605bed5, 0x080cb3de, 0x1a17a4c3, 0x141ea9c8,
  14127. 0x3e218af9, 0x302887f2, 0x223390ef, 0x2c3a9de4, 0x96dd063d, 0x98d40b36,
  14128. 0x8acf1c2b, 0x84c61120, 0xaef93211, 0xa0f03f1a, 0xb2eb2807, 0xbce2250c,
  14129. 0xe6956e65, 0xe89c636e, 0xfa877473, 0xf48e7978, 0xdeb15a49, 0xd0b85742,
  14130. 0xc2a3405f, 0xccaa4d54, 0x41ecdaf7, 0x4fe5d7fc, 0x5dfec0e1, 0x53f7cdea,
  14131. 0x79c8eedb, 0x77c1e3d0, 0x65daf4cd, 0x6bd3f9c6, 0x31a4b2af, 0x3fadbfa4,
  14132. 0x2db6a8b9, 0x23bfa5b2, 0x09808683, 0x07898b88, 0x15929c95, 0x1b9b919e,
  14133. 0xa17c0a47, 0xaf75074c, 0xbd6e1051, 0xb3671d5a, 0x99583e6b, 0x97513360,
  14134. 0x854a247d, 0x8b432976, 0xd134621f, 0xdf3d6f14, 0xcd267809, 0xc32f7502,
  14135. 0xe9105633, 0xe7195b38, 0xf5024c25, 0xfb0b412e, 0x9ad7618c, 0x94de6c87,
  14136. 0x86c57b9a, 0x88cc7691, 0xa2f355a0, 0xacfa58ab, 0xbee14fb6, 0xb0e842bd,
  14137. 0xea9f09d4, 0xe49604df, 0xf68d13c2, 0xf8841ec9, 0xd2bb3df8, 0xdcb230f3,
  14138. 0xcea927ee, 0xc0a02ae5, 0x7a47b13c, 0x744ebc37, 0x6655ab2a, 0x685ca621,
  14139. 0x42638510, 0x4c6a881b, 0x5e719f06, 0x5078920d, 0x0a0fd964, 0x0406d46f,
  14140. 0x161dc372, 0x1814ce79, 0x322bed48, 0x3c22e043, 0x2e39f75e, 0x2030fa55,
  14141. 0xec9ab701, 0xe293ba0a, 0xf088ad17, 0xfe81a01c, 0xd4be832d, 0xdab78e26,
  14142. 0xc8ac993b, 0xc6a59430, 0x9cd2df59, 0x92dbd252, 0x80c0c54f, 0x8ec9c844,
  14143. 0xa4f6eb75, 0xaaffe67e, 0xb8e4f163, 0xb6edfc68, 0x0c0a67b1, 0x02036aba,
  14144. 0x10187da7, 0x1e1170ac, 0x342e539d, 0x3a275e96, 0x283c498b, 0x26354480,
  14145. 0x7c420fe9, 0x724b02e2, 0x605015ff, 0x6e5918f4, 0x44663bc5, 0x4a6f36ce,
  14146. 0x587421d3, 0x567d2cd8, 0x37a10c7a, 0x39a80171, 0x2bb3166c, 0x25ba1b67,
  14147. 0x0f853856, 0x018c355d, 0x13972240, 0x1d9e2f4b, 0x47e96422, 0x49e06929,
  14148. 0x5bfb7e34, 0x55f2733f, 0x7fcd500e, 0x71c45d05, 0x63df4a18, 0x6dd64713,
  14149. 0xd731dcca, 0xd938d1c1, 0xcb23c6dc, 0xc52acbd7, 0xef15e8e6, 0xe11ce5ed,
  14150. 0xf307f2f0, 0xfd0efffb, 0xa779b492, 0xa970b999, 0xbb6bae84, 0xb562a38f,
  14151. 0x9f5d80be, 0x91548db5, 0x834f9aa8, 0x8d4697a3]);
  14152. function expandKey256(cipherKey) {
  14153. var b = 240, result = new Uint8Array(b);
  14154. var r = 1;
  14155. result.set(cipherKey);
  14156. for (var j = 32, i = 1; j < b; ++i) {
  14157. if (j % 32 === 16) {
  14158. t1 = s[t1];
  14159. t2 = s[t2];
  14160. t3 = s[t3];
  14161. t4 = s[t4];
  14162. } else if (j % 32 === 0) {
  14163. // RotWord
  14164. var t1 = result[j - 3], t2 = result[j - 2],
  14165. t3 = result[j - 1], t4 = result[j - 4];
  14166. // SubWord
  14167. t1 = s[t1];
  14168. t2 = s[t2];
  14169. t3 = s[t3];
  14170. t4 = s[t4];
  14171. // Rcon
  14172. t1 = t1 ^ r;
  14173. if ((r <<= 1) >= 256) {
  14174. r = (r ^ 0x1b) & 0xFF;
  14175. }
  14176. }
  14177. for (var n = 0; n < 4; ++n) {
  14178. result[j] = (t1 ^= result[j - 32]);
  14179. j++;
  14180. result[j] = (t2 ^= result[j - 32]);
  14181. j++;
  14182. result[j] = (t3 ^= result[j - 32]);
  14183. j++;
  14184. result[j] = (t4 ^= result[j - 32]);
  14185. j++;
  14186. }
  14187. }
  14188. return result;
  14189. }
  14190. function decrypt256(input, key) {
  14191. var state = new Uint8Array(16);
  14192. state.set(input);
  14193. var i, j, k;
  14194. var t, u, v;
  14195. // AddRoundKey
  14196. for (j = 0, k = 224; j < 16; ++j, ++k) {
  14197. state[j] ^= key[k];
  14198. }
  14199. for (i = 13; i >= 1; --i) {
  14200. // InvShiftRows
  14201. t = state[13];
  14202. state[13] = state[9];
  14203. state[9] = state[5];
  14204. state[5] = state[1];
  14205. state[1] = t;
  14206. t = state[14];
  14207. u = state[10];
  14208. state[14] = state[6];
  14209. state[10] = state[2];
  14210. state[6] = t;
  14211. state[2] = u;
  14212. t = state[15];
  14213. u = state[11];
  14214. v = state[7];
  14215. state[15] = state[3];
  14216. state[11] = t;
  14217. state[7] = u;
  14218. state[3] = v;
  14219. // InvSubBytes
  14220. for (j = 0; j < 16; ++j) {
  14221. state[j] = inv_s[state[j]];
  14222. }
  14223. // AddRoundKey
  14224. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  14225. state[j] ^= key[k];
  14226. }
  14227. // InvMixColumns
  14228. for (j = 0; j < 16; j += 4) {
  14229. var s0 = mix[state[j]], s1 = mix[state[j + 1]],
  14230. s2 = mix[state[j + 2]], s3 = mix[state[j + 3]];
  14231. t = (s0 ^ (s1 >>> 8) ^ (s1 << 24) ^ (s2 >>> 16) ^ (s2 << 16) ^
  14232. (s3 >>> 24) ^ (s3 << 8));
  14233. state[j] = (t >>> 24) & 0xFF;
  14234. state[j + 1] = (t >> 16) & 0xFF;
  14235. state[j + 2] = (t >> 8) & 0xFF;
  14236. state[j + 3] = t & 0xFF;
  14237. }
  14238. }
  14239. // InvShiftRows
  14240. t = state[13];
  14241. state[13] = state[9];
  14242. state[9] = state[5];
  14243. state[5] = state[1];
  14244. state[1] = t;
  14245. t = state[14];
  14246. u = state[10];
  14247. state[14] = state[6];
  14248. state[10] = state[2];
  14249. state[6] = t;
  14250. state[2] = u;
  14251. t = state[15];
  14252. u = state[11];
  14253. v = state[7];
  14254. state[15] = state[3];
  14255. state[11] = t;
  14256. state[7] = u;
  14257. state[3] = v;
  14258. for (j = 0; j < 16; ++j) {
  14259. // InvSubBytes
  14260. state[j] = inv_s[state[j]];
  14261. // AddRoundKey
  14262. state[j] ^= key[j];
  14263. }
  14264. return state;
  14265. }
  14266. function encrypt256(input, key) {
  14267. var t, u, v, k;
  14268. var state = new Uint8Array(16);
  14269. state.set(input);
  14270. for (j = 0; j < 16; ++j) {
  14271. // AddRoundKey
  14272. state[j] ^= key[j];
  14273. }
  14274. for (i = 1; i < 14; i++) {
  14275. //SubBytes
  14276. for (j = 0; j < 16; ++j) {
  14277. state[j] = s[state[j]];
  14278. }
  14279. //ShiftRows
  14280. v = state[1];
  14281. state[1] = state[5];
  14282. state[5] = state[9];
  14283. state[9] = state[13];
  14284. state[13] = v;
  14285. v = state[2];
  14286. u = state[6];
  14287. state[2] = state[10];
  14288. state[6] = state[14];
  14289. state[10] = v;
  14290. state[14] = u;
  14291. v = state[3];
  14292. u = state[7];
  14293. t = state[11];
  14294. state[3] = state[15];
  14295. state[7] = v;
  14296. state[11] = u;
  14297. state[15] = t;
  14298. //MixColumns
  14299. for (var j = 0; j < 16; j += 4) {
  14300. var s0 = state[j + 0], s1 = state[j + 1];
  14301. var s2 = state[j + 2], s3 = state[j + 3];
  14302. t = s0 ^ s1 ^ s2 ^ s3;
  14303. state[j + 0] ^= t ^ mixCol[s0 ^ s1];
  14304. state[j + 1] ^= t ^ mixCol[s1 ^ s2];
  14305. state[j + 2] ^= t ^ mixCol[s2 ^ s3];
  14306. state[j + 3] ^= t ^ mixCol[s3 ^ s0];
  14307. }
  14308. //AddRoundKey
  14309. for (j = 0, k = i * 16; j < 16; ++j, ++k) {
  14310. state[j] ^= key[k];
  14311. }
  14312. }
  14313. //SubBytes
  14314. for (j = 0; j < 16; ++j) {
  14315. state[j] = s[state[j]];
  14316. }
  14317. //ShiftRows
  14318. v = state[1];
  14319. state[1] = state[5];
  14320. state[5] = state[9];
  14321. state[9] = state[13];
  14322. state[13] = v;
  14323. v = state[2];
  14324. u = state[6];
  14325. state[2] = state[10];
  14326. state[6] = state[14];
  14327. state[10] = v;
  14328. state[14] = u;
  14329. v = state[3];
  14330. u = state[7];
  14331. t = state[11];
  14332. state[3] = state[15];
  14333. state[7] = v;
  14334. state[11] = u;
  14335. state[15] = t;
  14336. //AddRoundKey
  14337. for (j = 0, k = 224; j < 16; ++j, ++k) {
  14338. state[j] ^= key[k];
  14339. }
  14340. return state;
  14341. }
  14342. function AES256Cipher(key) {
  14343. this.key = expandKey256(key);
  14344. this.buffer = new Uint8Array(16);
  14345. this.bufferPosition = 0;
  14346. }
  14347. function decryptBlock2(data, finalize) {
  14348. var i, j, ii, sourceLength = data.length,
  14349. buffer = this.buffer, bufferLength = this.bufferPosition,
  14350. result = [], iv = this.iv;
  14351. for (i = 0; i < sourceLength; ++i) {
  14352. buffer[bufferLength] = data[i];
  14353. ++bufferLength;
  14354. if (bufferLength < 16) {
  14355. continue;
  14356. }
  14357. // buffer is full, encrypting
  14358. var plain = decrypt256(buffer, this.key);
  14359. // xor-ing the IV vector to get plain text
  14360. for (j = 0; j < 16; ++j) {
  14361. plain[j] ^= iv[j];
  14362. }
  14363. iv = buffer;
  14364. result.push(plain);
  14365. buffer = new Uint8Array(16);
  14366. bufferLength = 0;
  14367. }
  14368. // saving incomplete buffer
  14369. this.buffer = buffer;
  14370. this.bufferLength = bufferLength;
  14371. this.iv = iv;
  14372. if (result.length === 0) {
  14373. return new Uint8Array([]);
  14374. }
  14375. // combining plain text blocks into one
  14376. var outputLength = 16 * result.length;
  14377. if (finalize) {
  14378. // undo a padding that is described in RFC 2898
  14379. var lastBlock = result[result.length - 1];
  14380. outputLength -= lastBlock[15];
  14381. result[result.length - 1] = lastBlock.subarray(0, 16 - lastBlock[15]);
  14382. }
  14383. var output = new Uint8Array(outputLength);
  14384. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  14385. output.set(result[i], j);
  14386. }
  14387. return output;
  14388. }
  14389. AES256Cipher.prototype = {
  14390. decryptBlock: function AES256Cipher_decryptBlock(data, finalize, iv) {
  14391. var i, sourceLength = data.length;
  14392. var buffer = this.buffer, bufferLength = this.bufferPosition;
  14393. // if not supplied an IV wait for IV values
  14394. // they are at the start of the stream
  14395. if (iv) {
  14396. this.iv = iv;
  14397. } else {
  14398. for (i = 0; bufferLength < 16 &&
  14399. i < sourceLength; ++i, ++bufferLength) {
  14400. buffer[bufferLength] = data[i];
  14401. }
  14402. if (bufferLength < 16) {
  14403. //need more data
  14404. this.bufferLength = bufferLength;
  14405. return new Uint8Array([]);
  14406. }
  14407. this.iv = buffer;
  14408. data = data.subarray(16);
  14409. }
  14410. this.buffer = new Uint8Array(16);
  14411. this.bufferLength = 0;
  14412. // starting decryption
  14413. this.decryptBlock = decryptBlock2;
  14414. return this.decryptBlock(data, finalize);
  14415. },
  14416. encrypt: function AES256Cipher_encrypt(data, iv) {
  14417. var i, j, ii, sourceLength = data.length,
  14418. buffer = this.buffer, bufferLength = this.bufferPosition,
  14419. result = [];
  14420. if (!iv) {
  14421. iv = new Uint8Array(16);
  14422. }
  14423. for (i = 0; i < sourceLength; ++i) {
  14424. buffer[bufferLength] = data[i];
  14425. ++bufferLength;
  14426. if (bufferLength < 16) {
  14427. continue;
  14428. }
  14429. for (j = 0; j < 16; ++j) {
  14430. buffer[j] ^= iv[j];
  14431. }
  14432. // buffer is full, encrypting
  14433. var cipher = encrypt256(buffer, this.key);
  14434. this.iv = cipher;
  14435. result.push(cipher);
  14436. buffer = new Uint8Array(16);
  14437. bufferLength = 0;
  14438. }
  14439. // saving incomplete buffer
  14440. this.buffer = buffer;
  14441. this.bufferLength = bufferLength;
  14442. this.iv = iv;
  14443. if (result.length === 0) {
  14444. return new Uint8Array([]);
  14445. }
  14446. // combining plain text blocks into one
  14447. var outputLength = 16 * result.length;
  14448. var output = new Uint8Array(outputLength);
  14449. for (i = 0, j = 0, ii = result.length; i < ii; ++i, j += 16) {
  14450. output.set(result[i], j);
  14451. }
  14452. return output;
  14453. }
  14454. };
  14455. return AES256Cipher;
  14456. })();
  14457. var PDF17 = (function PDF17Closure() {
  14458. function compareByteArrays(array1, array2) {
  14459. if (array1.length !== array2.length) {
  14460. return false;
  14461. }
  14462. for (var i = 0; i < array1.length; i++) {
  14463. if (array1[i] !== array2[i]) {
  14464. return false;
  14465. }
  14466. }
  14467. return true;
  14468. }
  14469. function PDF17() {
  14470. }
  14471. PDF17.prototype = {
  14472. checkOwnerPassword: function PDF17_checkOwnerPassword(password,
  14473. ownerValidationSalt,
  14474. userBytes,
  14475. ownerPassword) {
  14476. var hashData = new Uint8Array(password.length + 56);
  14477. hashData.set(password, 0);
  14478. hashData.set(ownerValidationSalt, password.length);
  14479. hashData.set(userBytes, password.length + ownerValidationSalt.length);
  14480. var result = calculateSHA256(hashData, 0, hashData.length);
  14481. return compareByteArrays(result, ownerPassword);
  14482. },
  14483. checkUserPassword: function PDF17_checkUserPassword(password,
  14484. userValidationSalt,
  14485. userPassword) {
  14486. var hashData = new Uint8Array(password.length + 8);
  14487. hashData.set(password, 0);
  14488. hashData.set(userValidationSalt, password.length);
  14489. var result = calculateSHA256(hashData, 0, hashData.length);
  14490. return compareByteArrays(result, userPassword);
  14491. },
  14492. getOwnerKey: function PDF17_getOwnerKey(password, ownerKeySalt, userBytes,
  14493. ownerEncryption) {
  14494. var hashData = new Uint8Array(password.length + 56);
  14495. hashData.set(password, 0);
  14496. hashData.set(ownerKeySalt, password.length);
  14497. hashData.set(userBytes, password.length + ownerKeySalt.length);
  14498. var key = calculateSHA256(hashData, 0, hashData.length);
  14499. var cipher = new AES256Cipher(key);
  14500. return cipher.decryptBlock(ownerEncryption,
  14501. false,
  14502. new Uint8Array(16));
  14503. },
  14504. getUserKey: function PDF17_getUserKey(password, userKeySalt,
  14505. userEncryption) {
  14506. var hashData = new Uint8Array(password.length + 8);
  14507. hashData.set(password, 0);
  14508. hashData.set(userKeySalt, password.length);
  14509. //key is the decryption key for the UE string
  14510. var key = calculateSHA256(hashData, 0, hashData.length);
  14511. var cipher = new AES256Cipher(key);
  14512. return cipher.decryptBlock(userEncryption,
  14513. false,
  14514. new Uint8Array(16));
  14515. }
  14516. };
  14517. return PDF17;
  14518. })();
  14519. var PDF20 = (function PDF20Closure() {
  14520. function concatArrays(array1, array2) {
  14521. var t = new Uint8Array(array1.length + array2.length);
  14522. t.set(array1, 0);
  14523. t.set(array2, array1.length);
  14524. return t;
  14525. }
  14526. function calculatePDF20Hash(password, input, userBytes) {
  14527. //This refers to Algorithm 2.B as defined in ISO 32000-2
  14528. var k = calculateSHA256(input, 0, input.length).subarray(0, 32);
  14529. var e = [0];
  14530. var i = 0;
  14531. while (i < 64 || e[e.length - 1] > i - 32) {
  14532. var arrayLength = password.length + k.length + userBytes.length;
  14533. var k1 = new Uint8Array(arrayLength * 64);
  14534. var array = concatArrays(password, k);
  14535. array = concatArrays(array, userBytes);
  14536. for (var j = 0, pos = 0; j < 64; j++, pos += arrayLength) {
  14537. k1.set(array, pos);
  14538. }
  14539. //AES128 CBC NO PADDING with
  14540. //first 16 bytes of k as the key and the second 16 as the iv.
  14541. var cipher = new AES128Cipher(k.subarray(0, 16));
  14542. e = cipher.encrypt(k1, k.subarray(16, 32));
  14543. //Now we have to take the first 16 bytes of an unsigned
  14544. //big endian integer... and compute the remainder
  14545. //modulo 3.... That is a fairly large number and
  14546. //JavaScript isn't going to handle that well...
  14547. //So we're using a trick that allows us to perform
  14548. //modulo math byte by byte
  14549. var remainder = 0;
  14550. for (var z = 0; z < 16; z++) {
  14551. remainder *= (256 % 3);
  14552. remainder %= 3;
  14553. remainder += ((e[z] >>> 0) % 3);
  14554. remainder %= 3;
  14555. }
  14556. if (remainder === 0) {
  14557. k = calculateSHA256(e, 0, e.length);
  14558. }
  14559. else if (remainder === 1) {
  14560. k = calculateSHA384(e, 0, e.length);
  14561. }
  14562. else if (remainder === 2) {
  14563. k = calculateSHA512(e, 0, e.length);
  14564. }
  14565. i++;
  14566. }
  14567. return k.subarray(0, 32);
  14568. }
  14569. function PDF20() {
  14570. }
  14571. function compareByteArrays(array1, array2) {
  14572. if (array1.length !== array2.length) {
  14573. return false;
  14574. }
  14575. for (var i = 0; i < array1.length; i++) {
  14576. if (array1[i] !== array2[i]) {
  14577. return false;
  14578. }
  14579. }
  14580. return true;
  14581. }
  14582. PDF20.prototype = {
  14583. hash: function PDF20_hash(password, concatBytes, userBytes) {
  14584. return calculatePDF20Hash(password, concatBytes, userBytes);
  14585. },
  14586. checkOwnerPassword: function PDF20_checkOwnerPassword(password,
  14587. ownerValidationSalt,
  14588. userBytes,
  14589. ownerPassword) {
  14590. var hashData = new Uint8Array(password.length + 56);
  14591. hashData.set(password, 0);
  14592. hashData.set(ownerValidationSalt, password.length);
  14593. hashData.set(userBytes, password.length + ownerValidationSalt.length);
  14594. var result = calculatePDF20Hash(password, hashData, userBytes);
  14595. return compareByteArrays(result, ownerPassword);
  14596. },
  14597. checkUserPassword: function PDF20_checkUserPassword(password,
  14598. userValidationSalt,
  14599. userPassword) {
  14600. var hashData = new Uint8Array(password.length + 8);
  14601. hashData.set(password, 0);
  14602. hashData.set(userValidationSalt, password.length);
  14603. var result = calculatePDF20Hash(password, hashData, []);
  14604. return compareByteArrays(result, userPassword);
  14605. },
  14606. getOwnerKey: function PDF20_getOwnerKey(password, ownerKeySalt, userBytes,
  14607. ownerEncryption) {
  14608. var hashData = new Uint8Array(password.length + 56);
  14609. hashData.set(password, 0);
  14610. hashData.set(ownerKeySalt, password.length);
  14611. hashData.set(userBytes, password.length + ownerKeySalt.length);
  14612. var key = calculatePDF20Hash(password, hashData, userBytes);
  14613. var cipher = new AES256Cipher(key);
  14614. return cipher.decryptBlock(ownerEncryption,
  14615. false,
  14616. new Uint8Array(16));
  14617. },
  14618. getUserKey: function PDF20_getUserKey(password, userKeySalt,
  14619. userEncryption) {
  14620. var hashData = new Uint8Array(password.length + 8);
  14621. hashData.set(password, 0);
  14622. hashData.set(userKeySalt, password.length);
  14623. //key is the decryption key for the UE string
  14624. var key = calculatePDF20Hash(password, hashData, []);
  14625. var cipher = new AES256Cipher(key);
  14626. return cipher.decryptBlock(userEncryption,
  14627. false,
  14628. new Uint8Array(16));
  14629. }
  14630. };
  14631. return PDF20;
  14632. })();
  14633. var CipherTransform = (function CipherTransformClosure() {
  14634. function CipherTransform(stringCipherConstructor, streamCipherConstructor) {
  14635. this.stringCipherConstructor = stringCipherConstructor;
  14636. this.streamCipherConstructor = streamCipherConstructor;
  14637. }
  14638. CipherTransform.prototype = {
  14639. createStream: function CipherTransform_createStream(stream, length) {
  14640. var cipher = new this.streamCipherConstructor();
  14641. return new DecryptStream(stream, length,
  14642. function cipherTransformDecryptStream(data, finalize) {
  14643. return cipher.decryptBlock(data, finalize);
  14644. }
  14645. );
  14646. },
  14647. decryptString: function CipherTransform_decryptString(s) {
  14648. var cipher = new this.stringCipherConstructor();
  14649. var data = stringToBytes(s);
  14650. data = cipher.decryptBlock(data, true);
  14651. return bytesToString(data);
  14652. }
  14653. };
  14654. return CipherTransform;
  14655. })();
  14656. var CipherTransformFactory = (function CipherTransformFactoryClosure() {
  14657. var defaultPasswordBytes = new Uint8Array([
  14658. 0x28, 0xBF, 0x4E, 0x5E, 0x4E, 0x75, 0x8A, 0x41,
  14659. 0x64, 0x00, 0x4E, 0x56, 0xFF, 0xFA, 0x01, 0x08,
  14660. 0x2E, 0x2E, 0x00, 0xB6, 0xD0, 0x68, 0x3E, 0x80,
  14661. 0x2F, 0x0C, 0xA9, 0xFE, 0x64, 0x53, 0x69, 0x7A]);
  14662. function createEncryptionKey20(revision, password, ownerPassword,
  14663. ownerValidationSalt, ownerKeySalt, uBytes,
  14664. userPassword, userValidationSalt, userKeySalt,
  14665. ownerEncryption, userEncryption, perms) {
  14666. if (password) {
  14667. var passwordLength = Math.min(127, password.length);
  14668. password = password.subarray(0, passwordLength);
  14669. } else {
  14670. password = [];
  14671. }
  14672. var pdfAlgorithm;
  14673. if (revision === 6) {
  14674. pdfAlgorithm = new PDF20();
  14675. } else {
  14676. pdfAlgorithm = new PDF17();
  14677. }
  14678. if (pdfAlgorithm) {
  14679. if (pdfAlgorithm.checkUserPassword(password, userValidationSalt,
  14680. userPassword)) {
  14681. return pdfAlgorithm.getUserKey(password, userKeySalt, userEncryption);
  14682. } else if (pdfAlgorithm.checkOwnerPassword(password, ownerValidationSalt,
  14683. uBytes,
  14684. ownerPassword)) {
  14685. return pdfAlgorithm.getOwnerKey(password, ownerKeySalt, uBytes,
  14686. ownerEncryption);
  14687. }
  14688. }
  14689. return null;
  14690. }
  14691. function prepareKeyData(fileId, password, ownerPassword, userPassword,
  14692. flags, revision, keyLength, encryptMetadata) {
  14693. var hashDataSize = 40 + ownerPassword.length + fileId.length;
  14694. var hashData = new Uint8Array(hashDataSize), i = 0, j, n;
  14695. if (password) {
  14696. n = Math.min(32, password.length);
  14697. for (; i < n; ++i) {
  14698. hashData[i] = password[i];
  14699. }
  14700. }
  14701. j = 0;
  14702. while (i < 32) {
  14703. hashData[i++] = defaultPasswordBytes[j++];
  14704. }
  14705. // as now the padded password in the hashData[0..i]
  14706. for (j = 0, n = ownerPassword.length; j < n; ++j) {
  14707. hashData[i++] = ownerPassword[j];
  14708. }
  14709. hashData[i++] = flags & 0xFF;
  14710. hashData[i++] = (flags >> 8) & 0xFF;
  14711. hashData[i++] = (flags >> 16) & 0xFF;
  14712. hashData[i++] = (flags >>> 24) & 0xFF;
  14713. for (j = 0, n = fileId.length; j < n; ++j) {
  14714. hashData[i++] = fileId[j];
  14715. }
  14716. if (revision >= 4 && !encryptMetadata) {
  14717. hashData[i++] = 0xFF;
  14718. hashData[i++] = 0xFF;
  14719. hashData[i++] = 0xFF;
  14720. hashData[i++] = 0xFF;
  14721. }
  14722. var hash = calculateMD5(hashData, 0, i);
  14723. var keyLengthInBytes = keyLength >> 3;
  14724. if (revision >= 3) {
  14725. for (j = 0; j < 50; ++j) {
  14726. hash = calculateMD5(hash, 0, keyLengthInBytes);
  14727. }
  14728. }
  14729. var encryptionKey = hash.subarray(0, keyLengthInBytes);
  14730. var cipher, checkData;
  14731. if (revision >= 3) {
  14732. for (i = 0; i < 32; ++i) {
  14733. hashData[i] = defaultPasswordBytes[i];
  14734. }
  14735. for (j = 0, n = fileId.length; j < n; ++j) {
  14736. hashData[i++] = fileId[j];
  14737. }
  14738. cipher = new ARCFourCipher(encryptionKey);
  14739. checkData = cipher.encryptBlock(calculateMD5(hashData, 0, i));
  14740. n = encryptionKey.length;
  14741. var derivedKey = new Uint8Array(n), k;
  14742. for (j = 1; j <= 19; ++j) {
  14743. for (k = 0; k < n; ++k) {
  14744. derivedKey[k] = encryptionKey[k] ^ j;
  14745. }
  14746. cipher = new ARCFourCipher(derivedKey);
  14747. checkData = cipher.encryptBlock(checkData);
  14748. }
  14749. for (j = 0, n = checkData.length; j < n; ++j) {
  14750. if (userPassword[j] !== checkData[j]) {
  14751. return null;
  14752. }
  14753. }
  14754. } else {
  14755. cipher = new ARCFourCipher(encryptionKey);
  14756. checkData = cipher.encryptBlock(defaultPasswordBytes);
  14757. for (j = 0, n = checkData.length; j < n; ++j) {
  14758. if (userPassword[j] !== checkData[j]) {
  14759. return null;
  14760. }
  14761. }
  14762. }
  14763. return encryptionKey;
  14764. }
  14765. function decodeUserPassword(password, ownerPassword, revision, keyLength) {
  14766. var hashData = new Uint8Array(32), i = 0, j, n;
  14767. n = Math.min(32, password.length);
  14768. for (; i < n; ++i) {
  14769. hashData[i] = password[i];
  14770. }
  14771. j = 0;
  14772. while (i < 32) {
  14773. hashData[i++] = defaultPasswordBytes[j++];
  14774. }
  14775. var hash = calculateMD5(hashData, 0, i);
  14776. var keyLengthInBytes = keyLength >> 3;
  14777. if (revision >= 3) {
  14778. for (j = 0; j < 50; ++j) {
  14779. hash = calculateMD5(hash, 0, hash.length);
  14780. }
  14781. }
  14782. var cipher, userPassword;
  14783. if (revision >= 3) {
  14784. userPassword = ownerPassword;
  14785. var derivedKey = new Uint8Array(keyLengthInBytes), k;
  14786. for (j = 19; j >= 0; j--) {
  14787. for (k = 0; k < keyLengthInBytes; ++k) {
  14788. derivedKey[k] = hash[k] ^ j;
  14789. }
  14790. cipher = new ARCFourCipher(derivedKey);
  14791. userPassword = cipher.encryptBlock(userPassword);
  14792. }
  14793. } else {
  14794. cipher = new ARCFourCipher(hash.subarray(0, keyLengthInBytes));
  14795. userPassword = cipher.encryptBlock(ownerPassword);
  14796. }
  14797. return userPassword;
  14798. }
  14799. var identityName = Name.get('Identity');
  14800. function CipherTransformFactory(dict, fileId, password) {
  14801. var filter = dict.get('Filter');
  14802. if (!isName(filter) || filter.name !== 'Standard') {
  14803. error('unknown encryption method');
  14804. }
  14805. this.dict = dict;
  14806. var algorithm = dict.get('V');
  14807. if (!isInt(algorithm) ||
  14808. (algorithm !== 1 && algorithm !== 2 && algorithm !== 4 &&
  14809. algorithm !== 5)) {
  14810. error('unsupported encryption algorithm');
  14811. }
  14812. this.algorithm = algorithm;
  14813. var keyLength = dict.get('Length') || 40;
  14814. if (!isInt(keyLength) ||
  14815. keyLength < 40 || (keyLength % 8) !== 0) {
  14816. error('invalid key length');
  14817. }
  14818. // prepare keys
  14819. var ownerPassword = stringToBytes(dict.get('O')).subarray(0, 32);
  14820. var userPassword = stringToBytes(dict.get('U')).subarray(0, 32);
  14821. var flags = dict.get('P');
  14822. var revision = dict.get('R');
  14823. // meaningful when V is 4 or 5
  14824. var encryptMetadata = ((algorithm === 4 || algorithm === 5) &&
  14825. dict.get('EncryptMetadata') !== false);
  14826. this.encryptMetadata = encryptMetadata;
  14827. var fileIdBytes = stringToBytes(fileId);
  14828. var passwordBytes;
  14829. if (password) {
  14830. passwordBytes = stringToBytes(password);
  14831. }
  14832. var encryptionKey;
  14833. if (algorithm !== 5) {
  14834. encryptionKey = prepareKeyData(fileIdBytes, passwordBytes,
  14835. ownerPassword, userPassword, flags,
  14836. revision, keyLength, encryptMetadata);
  14837. }
  14838. else {
  14839. var ownerValidationSalt = stringToBytes(dict.get('O')).subarray(32, 40);
  14840. var ownerKeySalt = stringToBytes(dict.get('O')).subarray(40, 48);
  14841. var uBytes = stringToBytes(dict.get('U')).subarray(0, 48);
  14842. var userValidationSalt = stringToBytes(dict.get('U')).subarray(32, 40);
  14843. var userKeySalt = stringToBytes(dict.get('U')).subarray(40, 48);
  14844. var ownerEncryption = stringToBytes(dict.get('OE'));
  14845. var userEncryption = stringToBytes(dict.get('UE'));
  14846. var perms = stringToBytes(dict.get('Perms'));
  14847. encryptionKey =
  14848. createEncryptionKey20(revision, passwordBytes,
  14849. ownerPassword, ownerValidationSalt,
  14850. ownerKeySalt, uBytes,
  14851. userPassword, userValidationSalt,
  14852. userKeySalt, ownerEncryption,
  14853. userEncryption, perms);
  14854. }
  14855. if (!encryptionKey && !password) {
  14856. throw new PasswordException('No password given',
  14857. PasswordResponses.NEED_PASSWORD);
  14858. } else if (!encryptionKey && password) {
  14859. // Attempting use the password as an owner password
  14860. var decodedPassword = decodeUserPassword(passwordBytes, ownerPassword,
  14861. revision, keyLength);
  14862. encryptionKey = prepareKeyData(fileIdBytes, decodedPassword,
  14863. ownerPassword, userPassword, flags,
  14864. revision, keyLength, encryptMetadata);
  14865. }
  14866. if (!encryptionKey) {
  14867. throw new PasswordException('Incorrect Password',
  14868. PasswordResponses.INCORRECT_PASSWORD);
  14869. }
  14870. this.encryptionKey = encryptionKey;
  14871. if (algorithm >= 4) {
  14872. this.cf = dict.get('CF');
  14873. this.stmf = dict.get('StmF') || identityName;
  14874. this.strf = dict.get('StrF') || identityName;
  14875. this.eff = dict.get('EFF') || this.strf;
  14876. }
  14877. }
  14878. function buildObjectKey(num, gen, encryptionKey, isAes) {
  14879. var key = new Uint8Array(encryptionKey.length + 9), i, n;
  14880. for (i = 0, n = encryptionKey.length; i < n; ++i) {
  14881. key[i] = encryptionKey[i];
  14882. }
  14883. key[i++] = num & 0xFF;
  14884. key[i++] = (num >> 8) & 0xFF;
  14885. key[i++] = (num >> 16) & 0xFF;
  14886. key[i++] = gen & 0xFF;
  14887. key[i++] = (gen >> 8) & 0xFF;
  14888. if (isAes) {
  14889. key[i++] = 0x73;
  14890. key[i++] = 0x41;
  14891. key[i++] = 0x6C;
  14892. key[i++] = 0x54;
  14893. }
  14894. var hash = calculateMD5(key, 0, i);
  14895. return hash.subarray(0, Math.min(encryptionKey.length + 5, 16));
  14896. }
  14897. function buildCipherConstructor(cf, name, num, gen, key) {
  14898. var cryptFilter = cf.get(name.name);
  14899. var cfm;
  14900. if (cryptFilter !== null && cryptFilter !== undefined) {
  14901. cfm = cryptFilter.get('CFM');
  14902. }
  14903. if (!cfm || cfm.name === 'None') {
  14904. return function cipherTransformFactoryBuildCipherConstructorNone() {
  14905. return new NullCipher();
  14906. };
  14907. }
  14908. if ('V2' === cfm.name) {
  14909. return function cipherTransformFactoryBuildCipherConstructorV2() {
  14910. return new ARCFourCipher(buildObjectKey(num, gen, key, false));
  14911. };
  14912. }
  14913. if ('AESV2' === cfm.name) {
  14914. return function cipherTransformFactoryBuildCipherConstructorAESV2() {
  14915. return new AES128Cipher(buildObjectKey(num, gen, key, true));
  14916. };
  14917. }
  14918. if ('AESV3' === cfm.name) {
  14919. return function cipherTransformFactoryBuildCipherConstructorAESV3() {
  14920. return new AES256Cipher(key);
  14921. };
  14922. }
  14923. error('Unknown crypto method');
  14924. }
  14925. CipherTransformFactory.prototype = {
  14926. createCipherTransform:
  14927. function CipherTransformFactory_createCipherTransform(num, gen) {
  14928. if (this.algorithm === 4 || this.algorithm === 5) {
  14929. return new CipherTransform(
  14930. buildCipherConstructor(this.cf, this.stmf,
  14931. num, gen, this.encryptionKey),
  14932. buildCipherConstructor(this.cf, this.strf,
  14933. num, gen, this.encryptionKey));
  14934. }
  14935. // algorithms 1 and 2
  14936. var key = buildObjectKey(num, gen, this.encryptionKey, false);
  14937. var cipherConstructor = function buildCipherCipherConstructor() {
  14938. return new ARCFourCipher(key);
  14939. };
  14940. return new CipherTransform(cipherConstructor, cipherConstructor);
  14941. }
  14942. };
  14943. return CipherTransformFactory;
  14944. })();
  14945. var PatternType = {
  14946. FUNCTION_BASED: 1,
  14947. AXIAL: 2,
  14948. RADIAL: 3,
  14949. FREE_FORM_MESH: 4,
  14950. LATTICE_FORM_MESH: 5,
  14951. COONS_PATCH_MESH: 6,
  14952. TENSOR_PATCH_MESH: 7
  14953. };
  14954. var Pattern = (function PatternClosure() {
  14955. // Constructor should define this.getPattern
  14956. function Pattern() {
  14957. error('should not call Pattern constructor');
  14958. }
  14959. Pattern.prototype = {
  14960. // Input: current Canvas context
  14961. // Output: the appropriate fillStyle or strokeStyle
  14962. getPattern: function Pattern_getPattern(ctx) {
  14963. error('Should not call Pattern.getStyle: ' + ctx);
  14964. }
  14965. };
  14966. Pattern.parseShading = function Pattern_parseShading(shading, matrix, xref,
  14967. res) {
  14968. var dict = isStream(shading) ? shading.dict : shading;
  14969. var type = dict.get('ShadingType');
  14970. switch (type) {
  14971. case PatternType.AXIAL:
  14972. case PatternType.RADIAL:
  14973. // Both radial and axial shadings are handled by RadialAxial shading.
  14974. return new Shadings.RadialAxial(dict, matrix, xref, res);
  14975. case PatternType.FREE_FORM_MESH:
  14976. case PatternType.LATTICE_FORM_MESH:
  14977. case PatternType.COONS_PATCH_MESH:
  14978. case PatternType.TENSOR_PATCH_MESH:
  14979. return new Shadings.Mesh(shading, matrix, xref, res);
  14980. default:
  14981. UnsupportedManager.notify(UNSUPPORTED_FEATURES.shadingPattern);
  14982. return new Shadings.Dummy();
  14983. }
  14984. };
  14985. return Pattern;
  14986. })();
  14987. var Shadings = {};
  14988. // A small number to offset the first/last color stops so we can insert ones to
  14989. // support extend. Number.MIN_VALUE appears to be too small and breaks the
  14990. // extend. 1e-7 works in FF but chrome seems to use an even smaller sized number
  14991. // internally so we have to go bigger.
  14992. Shadings.SMALL_NUMBER = 1e-2;
  14993. // Radial and axial shading have very similar implementations
  14994. // If needed, the implementations can be broken into two classes
  14995. Shadings.RadialAxial = (function RadialAxialClosure() {
  14996. function RadialAxial(dict, matrix, xref, res) {
  14997. this.matrix = matrix;
  14998. this.coordsArr = dict.get('Coords');
  14999. this.shadingType = dict.get('ShadingType');
  15000. this.type = 'Pattern';
  15001. var cs = dict.get('ColorSpace', 'CS');
  15002. cs = ColorSpace.parse(cs, xref, res);
  15003. this.cs = cs;
  15004. var t0 = 0.0, t1 = 1.0;
  15005. if (dict.has('Domain')) {
  15006. var domainArr = dict.get('Domain');
  15007. t0 = domainArr[0];
  15008. t1 = domainArr[1];
  15009. }
  15010. var extendStart = false, extendEnd = false;
  15011. if (dict.has('Extend')) {
  15012. var extendArr = dict.get('Extend');
  15013. extendStart = extendArr[0];
  15014. extendEnd = extendArr[1];
  15015. }
  15016. if (this.shadingType === PatternType.RADIAL &&
  15017. (!extendStart || !extendEnd)) {
  15018. // Radial gradient only currently works if either circle is fully within
  15019. // the other circle.
  15020. var x1 = this.coordsArr[0];
  15021. var y1 = this.coordsArr[1];
  15022. var r1 = this.coordsArr[2];
  15023. var x2 = this.coordsArr[3];
  15024. var y2 = this.coordsArr[4];
  15025. var r2 = this.coordsArr[5];
  15026. var distance = Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
  15027. if (r1 <= r2 + distance &&
  15028. r2 <= r1 + distance) {
  15029. warn('Unsupported radial gradient.');
  15030. }
  15031. }
  15032. this.extendStart = extendStart;
  15033. this.extendEnd = extendEnd;
  15034. var fnObj = dict.get('Function');
  15035. var fn;
  15036. if (isArray(fnObj)) {
  15037. var fnArray = [];
  15038. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  15039. var obj = xref.fetchIfRef(fnObj[j]);
  15040. if (!isPDFFunction(obj)) {
  15041. error('Invalid function');
  15042. }
  15043. fnArray.push(PDFFunction.parse(xref, obj));
  15044. }
  15045. fn = function radialAxialColorFunction(arg) {
  15046. var out = [];
  15047. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  15048. out.push(fnArray[i](arg)[0]);
  15049. }
  15050. return out;
  15051. };
  15052. } else {
  15053. if (!isPDFFunction(fnObj)) {
  15054. error('Invalid function');
  15055. }
  15056. fn = PDFFunction.parse(xref, fnObj);
  15057. }
  15058. // 10 samples seems good enough for now, but probably won't work
  15059. // if there are sharp color changes. Ideally, we would implement
  15060. // the spec faithfully and add lossless optimizations.
  15061. var diff = t1 - t0;
  15062. var step = diff / 10;
  15063. var colorStops = this.colorStops = [];
  15064. // Protect against bad domains so we don't end up in an infinte loop below.
  15065. if (t0 >= t1 || step <= 0) {
  15066. // Acrobat doesn't seem to handle these cases so we'll ignore for
  15067. // now.
  15068. info('Bad shading domain.');
  15069. return;
  15070. }
  15071. var rgbColor;
  15072. for (var i = t0; i <= t1; i += step) {
  15073. rgbColor = cs.getRgb(fn([i]), 0);
  15074. var cssColor = Util.makeCssRgb(rgbColor);
  15075. colorStops.push([(i - t0) / diff, cssColor]);
  15076. }
  15077. var background = 'transparent';
  15078. if (dict.has('Background')) {
  15079. rgbColor = cs.getRgb(dict.get('Background'), 0);
  15080. background = Util.makeCssRgb(rgbColor);
  15081. }
  15082. if (!extendStart) {
  15083. // Insert a color stop at the front and offset the first real color stop
  15084. // so it doesn't conflict with the one we insert.
  15085. colorStops.unshift([0, background]);
  15086. colorStops[1][0] += Shadings.SMALL_NUMBER;
  15087. }
  15088. if (!extendEnd) {
  15089. // Same idea as above in extendStart but for the end.
  15090. colorStops[colorStops.length - 1][0] -= Shadings.SMALL_NUMBER;
  15091. colorStops.push([1, background]);
  15092. }
  15093. this.colorStops = colorStops;
  15094. }
  15095. RadialAxial.prototype = {
  15096. getIR: function RadialAxial_getIR() {
  15097. var coordsArr = this.coordsArr;
  15098. var shadingType = this.shadingType;
  15099. var type, p0, p1, r0, r1;
  15100. if (shadingType == PatternType.AXIAL) {
  15101. p0 = [coordsArr[0], coordsArr[1]];
  15102. p1 = [coordsArr[2], coordsArr[3]];
  15103. r0 = null;
  15104. r1 = null;
  15105. type = 'axial';
  15106. } else if (shadingType == PatternType.RADIAL) {
  15107. p0 = [coordsArr[0], coordsArr[1]];
  15108. p1 = [coordsArr[3], coordsArr[4]];
  15109. r0 = coordsArr[2];
  15110. r1 = coordsArr[5];
  15111. type = 'radial';
  15112. } else {
  15113. error('getPattern type unknown: ' + shadingType);
  15114. }
  15115. var matrix = this.matrix;
  15116. if (matrix) {
  15117. p0 = Util.applyTransform(p0, matrix);
  15118. p1 = Util.applyTransform(p1, matrix);
  15119. }
  15120. return ['RadialAxial', type, this.colorStops, p0, p1, r0, r1];
  15121. }
  15122. };
  15123. return RadialAxial;
  15124. })();
  15125. // All mesh shading. For now, they will be presented as set of the triangles
  15126. // to be drawn on the canvas and rgb color for each vertex.
  15127. Shadings.Mesh = (function MeshClosure() {
  15128. function MeshStreamReader(stream, context) {
  15129. this.stream = stream;
  15130. this.context = context;
  15131. this.buffer = 0;
  15132. this.bufferLength = 0;
  15133. }
  15134. MeshStreamReader.prototype = {
  15135. get hasData() {
  15136. if (this.stream.end) {
  15137. return this.stream.pos < this.stream.end;
  15138. }
  15139. if (this.bufferLength > 0) {
  15140. return true;
  15141. }
  15142. var nextByte = this.stream.getByte();
  15143. if (nextByte < 0) {
  15144. return false;
  15145. }
  15146. this.buffer = nextByte;
  15147. this.bufferLength = 8;
  15148. return true;
  15149. },
  15150. readBits: function MeshStreamReader_readBits(n) {
  15151. var buffer = this.buffer;
  15152. var bufferLength = this.bufferLength;
  15153. if (n === 32) {
  15154. if (bufferLength === 0) {
  15155. return ((this.stream.getByte() << 24) |
  15156. (this.stream.getByte() << 16) | (this.stream.getByte() << 8) |
  15157. this.stream.getByte()) >>> 0;
  15158. }
  15159. buffer = (buffer << 24) | (this.stream.getByte() << 16) |
  15160. (this.stream.getByte() << 8) | this.stream.getByte();
  15161. var nextByte = this.stream.getByte();
  15162. this.buffer = nextByte & ((1 << bufferLength) - 1);
  15163. return ((buffer << (8 - bufferLength)) |
  15164. ((nextByte & 0xFF) >> bufferLength)) >>> 0;
  15165. }
  15166. if (n === 8 && bufferLength === 0) {
  15167. return this.stream.getByte();
  15168. }
  15169. while (bufferLength < n) {
  15170. buffer = (buffer << 8) | this.stream.getByte();
  15171. bufferLength += 8;
  15172. }
  15173. bufferLength -= n;
  15174. this.bufferLength = bufferLength;
  15175. this.buffer = buffer & ((1 << bufferLength) - 1);
  15176. return buffer >> bufferLength;
  15177. },
  15178. align: function MeshStreamReader_align() {
  15179. this.buffer = 0;
  15180. this.bufferLength = 0;
  15181. },
  15182. readFlag: function MeshStreamReader_readFlag() {
  15183. return this.readBits(this.context.bitsPerFlag);
  15184. },
  15185. readCoordinate: function MeshStreamReader_readCoordinate() {
  15186. var bitsPerCoordinate = this.context.bitsPerCoordinate;
  15187. var xi = this.readBits(bitsPerCoordinate);
  15188. var yi = this.readBits(bitsPerCoordinate);
  15189. var decode = this.context.decode;
  15190. var scale = bitsPerCoordinate < 32 ? 1 / ((1 << bitsPerCoordinate) - 1) :
  15191. 2.3283064365386963e-10; // 2 ^ -32
  15192. return [
  15193. xi * scale * (decode[1] - decode[0]) + decode[0],
  15194. yi * scale * (decode[3] - decode[2]) + decode[2]
  15195. ];
  15196. },
  15197. readComponents: function MeshStreamReader_readComponents() {
  15198. var numComps = this.context.numComps;
  15199. var bitsPerComponent = this.context.bitsPerComponent;
  15200. var scale = bitsPerComponent < 32 ? 1 / ((1 << bitsPerComponent) - 1) :
  15201. 2.3283064365386963e-10; // 2 ^ -32
  15202. var decode = this.context.decode;
  15203. var components = [];
  15204. for (var i = 0, j = 4; i < numComps; i++, j += 2) {
  15205. var ci = this.readBits(bitsPerComponent);
  15206. components.push(ci * scale * (decode[j + 1] - decode[j]) + decode[j]);
  15207. }
  15208. if (this.context.colorFn) {
  15209. components = this.context.colorFn(components);
  15210. }
  15211. return this.context.colorSpace.getRgb(components, 0);
  15212. }
  15213. };
  15214. function decodeType4Shading(mesh, reader) {
  15215. var coords = mesh.coords;
  15216. var colors = mesh.colors;
  15217. var operators = [];
  15218. var ps = []; // not maintaining cs since that will match ps
  15219. var verticesLeft = 0; // assuming we have all data to start a new triangle
  15220. while (reader.hasData) {
  15221. var f = reader.readFlag();
  15222. var coord = reader.readCoordinate();
  15223. var color = reader.readComponents();
  15224. if (verticesLeft === 0) { // ignoring flags if we started a triangle
  15225. assert(0 <= f && f <= 2, 'Unknown type4 flag');
  15226. switch (f) {
  15227. case 0:
  15228. verticesLeft = 3;
  15229. break;
  15230. case 1:
  15231. ps.push(ps[ps.length - 2], ps[ps.length - 1]);
  15232. verticesLeft = 1;
  15233. break;
  15234. case 2:
  15235. ps.push(ps[ps.length - 3], ps[ps.length - 1]);
  15236. verticesLeft = 1;
  15237. break;
  15238. }
  15239. operators.push(f);
  15240. }
  15241. ps.push(coords.length);
  15242. coords.push(coord);
  15243. colors.push(color);
  15244. verticesLeft--;
  15245. reader.align();
  15246. }
  15247. var psPacked = new Int32Array(ps);
  15248. mesh.figures.push({
  15249. type: 'triangles',
  15250. coords: psPacked,
  15251. colors: psPacked
  15252. });
  15253. }
  15254. function decodeType5Shading(mesh, reader, verticesPerRow) {
  15255. var coords = mesh.coords;
  15256. var colors = mesh.colors;
  15257. var ps = []; // not maintaining cs since that will match ps
  15258. while (reader.hasData) {
  15259. var coord = reader.readCoordinate();
  15260. var color = reader.readComponents();
  15261. ps.push(coords.length);
  15262. coords.push(coord);
  15263. colors.push(color);
  15264. }
  15265. var psPacked = new Int32Array(ps);
  15266. mesh.figures.push({
  15267. type: 'lattice',
  15268. coords: psPacked,
  15269. colors: psPacked,
  15270. verticesPerRow: verticesPerRow
  15271. });
  15272. }
  15273. var MIN_SPLIT_PATCH_CHUNKS_AMOUNT = 3;
  15274. var MAX_SPLIT_PATCH_CHUNKS_AMOUNT = 20;
  15275. var TRIANGLE_DENSITY = 20; // count of triangles per entire mesh bounds
  15276. var getB = (function getBClosure() {
  15277. function buildB(count) {
  15278. var lut = [];
  15279. for (var i = 0; i <= count; i++) {
  15280. var t = i / count, t_ = 1 - t;
  15281. lut.push(new Float32Array([t_ * t_ * t_, 3 * t * t_ * t_,
  15282. 3 * t * t * t_, t * t * t]));
  15283. }
  15284. return lut;
  15285. }
  15286. var cache = [];
  15287. return function getB(count) {
  15288. if (!cache[count]) {
  15289. cache[count] = buildB(count);
  15290. }
  15291. return cache[count];
  15292. };
  15293. })();
  15294. function buildFigureFromPatch(mesh, index) {
  15295. var figure = mesh.figures[index];
  15296. assert(figure.type === 'patch', 'Unexpected patch mesh figure');
  15297. var coords = mesh.coords, colors = mesh.colors;
  15298. var pi = figure.coords;
  15299. var ci = figure.colors;
  15300. var figureMinX = Math.min(coords[pi[0]][0], coords[pi[3]][0],
  15301. coords[pi[12]][0], coords[pi[15]][0]);
  15302. var figureMinY = Math.min(coords[pi[0]][1], coords[pi[3]][1],
  15303. coords[pi[12]][1], coords[pi[15]][1]);
  15304. var figureMaxX = Math.max(coords[pi[0]][0], coords[pi[3]][0],
  15305. coords[pi[12]][0], coords[pi[15]][0]);
  15306. var figureMaxY = Math.max(coords[pi[0]][1], coords[pi[3]][1],
  15307. coords[pi[12]][1], coords[pi[15]][1]);
  15308. var splitXBy = Math.ceil((figureMaxX - figureMinX) * TRIANGLE_DENSITY /
  15309. (mesh.bounds[2] - mesh.bounds[0]));
  15310. splitXBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  15311. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitXBy));
  15312. var splitYBy = Math.ceil((figureMaxY - figureMinY) * TRIANGLE_DENSITY /
  15313. (mesh.bounds[3] - mesh.bounds[1]));
  15314. splitYBy = Math.max(MIN_SPLIT_PATCH_CHUNKS_AMOUNT,
  15315. Math.min(MAX_SPLIT_PATCH_CHUNKS_AMOUNT, splitYBy));
  15316. var verticesPerRow = splitXBy + 1;
  15317. var figureCoords = new Int32Array((splitYBy + 1) * verticesPerRow);
  15318. var figureColors = new Int32Array((splitYBy + 1) * verticesPerRow);
  15319. var k = 0;
  15320. var cl = new Uint8Array(3), cr = new Uint8Array(3);
  15321. var c0 = colors[ci[0]], c1 = colors[ci[1]],
  15322. c2 = colors[ci[2]], c3 = colors[ci[3]];
  15323. var bRow = getB(splitYBy), bCol = getB(splitXBy);
  15324. for (var row = 0; row <= splitYBy; row++) {
  15325. cl[0] = ((c0[0] * (splitYBy - row) + c2[0] * row) / splitYBy) | 0;
  15326. cl[1] = ((c0[1] * (splitYBy - row) + c2[1] * row) / splitYBy) | 0;
  15327. cl[2] = ((c0[2] * (splitYBy - row) + c2[2] * row) / splitYBy) | 0;
  15328. cr[0] = ((c1[0] * (splitYBy - row) + c3[0] * row) / splitYBy) | 0;
  15329. cr[1] = ((c1[1] * (splitYBy - row) + c3[1] * row) / splitYBy) | 0;
  15330. cr[2] = ((c1[2] * (splitYBy - row) + c3[2] * row) / splitYBy) | 0;
  15331. for (var col = 0; col <= splitXBy; col++, k++) {
  15332. if ((row === 0 || row === splitYBy) &&
  15333. (col === 0 || col === splitXBy)) {
  15334. continue;
  15335. }
  15336. var x = 0, y = 0;
  15337. var q = 0;
  15338. for (var i = 0; i <= 3; i++) {
  15339. for (var j = 0; j <= 3; j++, q++) {
  15340. var m = bRow[row][i] * bCol[col][j];
  15341. x += coords[pi[q]][0] * m;
  15342. y += coords[pi[q]][1] * m;
  15343. }
  15344. }
  15345. figureCoords[k] = coords.length;
  15346. coords.push([x, y]);
  15347. figureColors[k] = colors.length;
  15348. var newColor = new Uint8Array(3);
  15349. newColor[0] = ((cl[0] * (splitXBy - col) + cr[0] * col) / splitXBy) | 0;
  15350. newColor[1] = ((cl[1] * (splitXBy - col) + cr[1] * col) / splitXBy) | 0;
  15351. newColor[2] = ((cl[2] * (splitXBy - col) + cr[2] * col) / splitXBy) | 0;
  15352. colors.push(newColor);
  15353. }
  15354. }
  15355. figureCoords[0] = pi[0];
  15356. figureColors[0] = ci[0];
  15357. figureCoords[splitXBy] = pi[3];
  15358. figureColors[splitXBy] = ci[1];
  15359. figureCoords[verticesPerRow * splitYBy] = pi[12];
  15360. figureColors[verticesPerRow * splitYBy] = ci[2];
  15361. figureCoords[verticesPerRow * splitYBy + splitXBy] = pi[15];
  15362. figureColors[verticesPerRow * splitYBy + splitXBy] = ci[3];
  15363. mesh.figures[index] = {
  15364. type: 'lattice',
  15365. coords: figureCoords,
  15366. colors: figureColors,
  15367. verticesPerRow: verticesPerRow
  15368. };
  15369. }
  15370. function decodeType6Shading(mesh, reader) {
  15371. // A special case of Type 7. The p11, p12, p21, p22 automatically filled
  15372. var coords = mesh.coords;
  15373. var colors = mesh.colors;
  15374. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  15375. var cs = new Int32Array(4); // c00, c30, c03, c33
  15376. while (reader.hasData) {
  15377. var f = reader.readFlag();
  15378. assert(0 <= f && f <= 3, 'Unknown type6 flag');
  15379. var i, ii;
  15380. var pi = coords.length;
  15381. for (i = 0, ii = (f !== 0 ? 8 : 12); i < ii; i++) {
  15382. coords.push(reader.readCoordinate());
  15383. }
  15384. var ci = colors.length;
  15385. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  15386. colors.push(reader.readComponents());
  15387. }
  15388. var tmp1, tmp2, tmp3, tmp4;
  15389. switch (f) {
  15390. case 0:
  15391. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  15392. ps[ 8] = pi + 2; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  15393. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 8;
  15394. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  15395. cs[2] = ci + 1; cs[3] = ci + 2;
  15396. cs[0] = ci; cs[1] = ci + 3;
  15397. break;
  15398. case 1:
  15399. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  15400. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  15401. ps[ 8] = pi + 6; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 1;
  15402. ps[ 4] = pi + 7; /* calculated below */ ps[ 7] = pi;
  15403. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  15404. tmp1 = cs[2]; tmp2 = cs[3];
  15405. cs[2] = ci + 1; cs[3] = ci;
  15406. cs[0] = tmp1; cs[1] = tmp2;
  15407. break;
  15408. case 2:
  15409. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  15410. ps[ 8] = ps[11]; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 4;
  15411. ps[ 4] = ps[7]; /* calculated below */ ps[ 7] = pi + 3;
  15412. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  15413. cs[2] = cs[3]; cs[3] = ci + 1;
  15414. cs[0] = cs[1]; cs[1] = ci;
  15415. break;
  15416. case 3:
  15417. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  15418. ps[ 8] = pi; /* values for 5, 6, 9, 10 are */ ps[11] = pi + 7;
  15419. ps[ 4] = pi + 1; /* calculated below */ ps[ 7] = pi + 6;
  15420. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  15421. cs[2] = cs[0]; cs[3] = cs[1];
  15422. cs[0] = ci; cs[1] = ci + 1;
  15423. break;
  15424. }
  15425. // set p11, p12, p21, p22
  15426. ps[5] = coords.length;
  15427. coords.push([
  15428. (-4 * coords[ps[0]][0] - coords[ps[15]][0] +
  15429. 6 * (coords[ps[4]][0] + coords[ps[1]][0]) -
  15430. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  15431. 3 * (coords[ps[13]][0] + coords[ps[7]][0])) / 9,
  15432. (-4 * coords[ps[0]][1] - coords[ps[15]][1] +
  15433. 6 * (coords[ps[4]][1] + coords[ps[1]][1]) -
  15434. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  15435. 3 * (coords[ps[13]][1] + coords[ps[7]][1])) / 9
  15436. ]);
  15437. ps[6] = coords.length;
  15438. coords.push([
  15439. (-4 * coords[ps[3]][0] - coords[ps[12]][0] +
  15440. 6 * (coords[ps[2]][0] + coords[ps[7]][0]) -
  15441. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  15442. 3 * (coords[ps[4]][0] + coords[ps[14]][0])) / 9,
  15443. (-4 * coords[ps[3]][1] - coords[ps[12]][1] +
  15444. 6 * (coords[ps[2]][1] + coords[ps[7]][1]) -
  15445. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  15446. 3 * (coords[ps[4]][1] + coords[ps[14]][1])) / 9
  15447. ]);
  15448. ps[9] = coords.length;
  15449. coords.push([
  15450. (-4 * coords[ps[12]][0] - coords[ps[3]][0] +
  15451. 6 * (coords[ps[8]][0] + coords[ps[13]][0]) -
  15452. 2 * (coords[ps[0]][0] + coords[ps[15]][0]) +
  15453. 3 * (coords[ps[11]][0] + coords[ps[1]][0])) / 9,
  15454. (-4 * coords[ps[12]][1] - coords[ps[3]][1] +
  15455. 6 * (coords[ps[8]][1] + coords[ps[13]][1]) -
  15456. 2 * (coords[ps[0]][1] + coords[ps[15]][1]) +
  15457. 3 * (coords[ps[11]][1] + coords[ps[1]][1])) / 9
  15458. ]);
  15459. ps[10] = coords.length;
  15460. coords.push([
  15461. (-4 * coords[ps[15]][0] - coords[ps[0]][0] +
  15462. 6 * (coords[ps[11]][0] + coords[ps[14]][0]) -
  15463. 2 * (coords[ps[12]][0] + coords[ps[3]][0]) +
  15464. 3 * (coords[ps[2]][0] + coords[ps[8]][0])) / 9,
  15465. (-4 * coords[ps[15]][1] - coords[ps[0]][1] +
  15466. 6 * (coords[ps[11]][1] + coords[ps[14]][1]) -
  15467. 2 * (coords[ps[12]][1] + coords[ps[3]][1]) +
  15468. 3 * (coords[ps[2]][1] + coords[ps[8]][1])) / 9
  15469. ]);
  15470. mesh.figures.push({
  15471. type: 'patch',
  15472. coords: new Int32Array(ps), // making copies of ps and cs
  15473. colors: new Int32Array(cs)
  15474. });
  15475. }
  15476. }
  15477. function decodeType7Shading(mesh, reader) {
  15478. var coords = mesh.coords;
  15479. var colors = mesh.colors;
  15480. var ps = new Int32Array(16); // p00, p10, ..., p30, p01, ..., p33
  15481. var cs = new Int32Array(4); // c00, c30, c03, c33
  15482. while (reader.hasData) {
  15483. var f = reader.readFlag();
  15484. assert(0 <= f && f <= 3, 'Unknown type7 flag');
  15485. var i, ii;
  15486. var pi = coords.length;
  15487. for (i = 0, ii = (f !== 0 ? 12 : 16); i < ii; i++) {
  15488. coords.push(reader.readCoordinate());
  15489. }
  15490. var ci = colors.length;
  15491. for (i = 0, ii = (f !== 0 ? 2 : 4); i < ii; i++) {
  15492. colors.push(reader.readComponents());
  15493. }
  15494. var tmp1, tmp2, tmp3, tmp4;
  15495. switch (f) {
  15496. case 0:
  15497. ps[12] = pi + 3; ps[13] = pi + 4; ps[14] = pi + 5; ps[15] = pi + 6;
  15498. ps[ 8] = pi + 2; ps[ 9] = pi + 13; ps[10] = pi + 14; ps[11] = pi + 7;
  15499. ps[ 4] = pi + 1; ps[ 5] = pi + 12; ps[ 6] = pi + 15; ps[ 7] = pi + 8;
  15500. ps[ 0] = pi; ps[ 1] = pi + 11; ps[ 2] = pi + 10; ps[ 3] = pi + 9;
  15501. cs[2] = ci + 1; cs[3] = ci + 2;
  15502. cs[0] = ci; cs[1] = ci + 3;
  15503. break;
  15504. case 1:
  15505. tmp1 = ps[12]; tmp2 = ps[13]; tmp3 = ps[14]; tmp4 = ps[15];
  15506. ps[12] = pi + 5; ps[13] = pi + 4; ps[14] = pi + 3; ps[15] = pi + 2;
  15507. ps[ 8] = pi + 6; ps[ 9] = pi + 11; ps[10] = pi + 10; ps[11] = pi + 1;
  15508. ps[ 4] = pi + 7; ps[ 5] = pi + 8; ps[ 6] = pi + 9; ps[ 7] = pi;
  15509. ps[ 0] = tmp1; ps[ 1] = tmp2; ps[ 2] = tmp3; ps[ 3] = tmp4;
  15510. tmp1 = cs[2]; tmp2 = cs[3];
  15511. cs[2] = ci + 1; cs[3] = ci;
  15512. cs[0] = tmp1; cs[1] = tmp2;
  15513. break;
  15514. case 2:
  15515. ps[12] = ps[15]; ps[13] = pi + 7; ps[14] = pi + 6; ps[15] = pi + 5;
  15516. ps[ 8] = ps[11]; ps[ 9] = pi + 8; ps[10] = pi + 11; ps[11] = pi + 4;
  15517. ps[ 4] = ps[7]; ps[ 5] = pi + 9; ps[ 6] = pi + 10; ps[ 7] = pi + 3;
  15518. ps[ 0] = ps[3]; ps[ 1] = pi; ps[ 2] = pi + 1; ps[ 3] = pi + 2;
  15519. cs[2] = cs[3]; cs[3] = ci + 1;
  15520. cs[0] = cs[1]; cs[1] = ci;
  15521. break;
  15522. case 3:
  15523. ps[12] = ps[0]; ps[13] = ps[1]; ps[14] = ps[2]; ps[15] = ps[3];
  15524. ps[ 8] = pi; ps[ 9] = pi + 9; ps[10] = pi + 8; ps[11] = pi + 7;
  15525. ps[ 4] = pi + 1; ps[ 5] = pi + 10; ps[ 6] = pi + 11; ps[ 7] = pi + 6;
  15526. ps[ 0] = pi + 2; ps[ 1] = pi + 3; ps[ 2] = pi + 4; ps[ 3] = pi + 5;
  15527. cs[2] = cs[0]; cs[3] = cs[1];
  15528. cs[0] = ci; cs[1] = ci + 1;
  15529. break;
  15530. }
  15531. mesh.figures.push({
  15532. type: 'patch',
  15533. coords: new Int32Array(ps), // making copies of ps and cs
  15534. colors: new Int32Array(cs)
  15535. });
  15536. }
  15537. }
  15538. function updateBounds(mesh) {
  15539. var minX = mesh.coords[0][0], minY = mesh.coords[0][1],
  15540. maxX = minX, maxY = minY;
  15541. for (var i = 1, ii = mesh.coords.length; i < ii; i++) {
  15542. var x = mesh.coords[i][0], y = mesh.coords[i][1];
  15543. minX = minX > x ? x : minX;
  15544. minY = minY > y ? y : minY;
  15545. maxX = maxX < x ? x : maxX;
  15546. maxY = maxY < y ? y : maxY;
  15547. }
  15548. mesh.bounds = [minX, minY, maxX, maxY];
  15549. }
  15550. function packData(mesh) {
  15551. var i, ii, j, jj;
  15552. var coords = mesh.coords;
  15553. var coordsPacked = new Float32Array(coords.length * 2);
  15554. for (i = 0, j = 0, ii = coords.length; i < ii; i++) {
  15555. var xy = coords[i];
  15556. coordsPacked[j++] = xy[0];
  15557. coordsPacked[j++] = xy[1];
  15558. }
  15559. mesh.coords = coordsPacked;
  15560. var colors = mesh.colors;
  15561. var colorsPacked = new Uint8Array(colors.length * 3);
  15562. for (i = 0, j = 0, ii = colors.length; i < ii; i++) {
  15563. var c = colors[i];
  15564. colorsPacked[j++] = c[0];
  15565. colorsPacked[j++] = c[1];
  15566. colorsPacked[j++] = c[2];
  15567. }
  15568. mesh.colors = colorsPacked;
  15569. var figures = mesh.figures;
  15570. for (i = 0, ii = figures.length; i < ii; i++) {
  15571. var figure = figures[i], ps = figure.coords, cs = figure.colors;
  15572. for (j = 0, jj = ps.length; j < jj; j++) {
  15573. ps[j] *= 2;
  15574. cs[j] *= 3;
  15575. }
  15576. }
  15577. }
  15578. function Mesh(stream, matrix, xref, res) {
  15579. assert(isStream(stream), 'Mesh data is not a stream');
  15580. var dict = stream.dict;
  15581. this.matrix = matrix;
  15582. this.shadingType = dict.get('ShadingType');
  15583. this.type = 'Pattern';
  15584. this.bbox = dict.get('BBox');
  15585. var cs = dict.get('ColorSpace', 'CS');
  15586. cs = ColorSpace.parse(cs, xref, res);
  15587. this.cs = cs;
  15588. this.background = dict.has('Background') ?
  15589. cs.getRgb(dict.get('Background'), 0) : null;
  15590. var fnObj = dict.get('Function');
  15591. var fn;
  15592. if (!fnObj) {
  15593. fn = null;
  15594. } else if (isArray(fnObj)) {
  15595. var fnArray = [];
  15596. for (var j = 0, jj = fnObj.length; j < jj; j++) {
  15597. var obj = xref.fetchIfRef(fnObj[j]);
  15598. if (!isPDFFunction(obj)) {
  15599. error('Invalid function');
  15600. }
  15601. fnArray.push(PDFFunction.parse(xref, obj));
  15602. }
  15603. fn = function radialAxialColorFunction(arg) {
  15604. var out = [];
  15605. for (var i = 0, ii = fnArray.length; i < ii; i++) {
  15606. out.push(fnArray[i](arg)[0]);
  15607. }
  15608. return out;
  15609. };
  15610. } else {
  15611. if (!isPDFFunction(fnObj)) {
  15612. error('Invalid function');
  15613. }
  15614. fn = PDFFunction.parse(xref, fnObj);
  15615. }
  15616. this.coords = [];
  15617. this.colors = [];
  15618. this.figures = [];
  15619. var decodeContext = {
  15620. bitsPerCoordinate: dict.get('BitsPerCoordinate'),
  15621. bitsPerComponent: dict.get('BitsPerComponent'),
  15622. bitsPerFlag: dict.get('BitsPerFlag'),
  15623. decode: dict.get('Decode'),
  15624. colorFn: fn,
  15625. colorSpace: cs,
  15626. numComps: fn ? 1 : cs.numComps
  15627. };
  15628. var reader = new MeshStreamReader(stream, decodeContext);
  15629. var patchMesh = false;
  15630. switch (this.shadingType) {
  15631. case PatternType.FREE_FORM_MESH:
  15632. decodeType4Shading(this, reader);
  15633. break;
  15634. case PatternType.LATTICE_FORM_MESH:
  15635. var verticesPerRow = dict.get('VerticesPerRow') | 0;
  15636. assert(verticesPerRow >= 2, 'Invalid VerticesPerRow');
  15637. decodeType5Shading(this, reader, verticesPerRow);
  15638. break;
  15639. case PatternType.COONS_PATCH_MESH:
  15640. decodeType6Shading(this, reader);
  15641. patchMesh = true;
  15642. break;
  15643. case PatternType.TENSOR_PATCH_MESH:
  15644. decodeType7Shading(this, reader);
  15645. patchMesh = true;
  15646. break;
  15647. default:
  15648. error('Unsupported mesh type.');
  15649. break;
  15650. }
  15651. if (patchMesh) {
  15652. // dirty bounds calculation for determining, how dense shall be triangles
  15653. updateBounds(this);
  15654. for (var i = 0, ii = this.figures.length; i < ii; i++) {
  15655. buildFigureFromPatch(this, i);
  15656. }
  15657. }
  15658. // calculate bounds
  15659. updateBounds(this);
  15660. packData(this);
  15661. }
  15662. Mesh.prototype = {
  15663. getIR: function Mesh_getIR() {
  15664. return ['Mesh', this.shadingType, this.coords, this.colors, this.figures,
  15665. this.bounds, this.matrix, this.bbox, this.background];
  15666. }
  15667. };
  15668. return Mesh;
  15669. })();
  15670. Shadings.Dummy = (function DummyClosure() {
  15671. function Dummy() {
  15672. this.type = 'Pattern';
  15673. }
  15674. Dummy.prototype = {
  15675. getIR: function Dummy_getIR() {
  15676. return ['Dummy'];
  15677. }
  15678. };
  15679. return Dummy;
  15680. })();
  15681. function getTilingPatternIR(operatorList, dict, args) {
  15682. var matrix = dict.get('Matrix');
  15683. var bbox = dict.get('BBox');
  15684. var xstep = dict.get('XStep');
  15685. var ystep = dict.get('YStep');
  15686. var paintType = dict.get('PaintType');
  15687. var tilingType = dict.get('TilingType');
  15688. return [
  15689. 'TilingPattern', args, operatorList, matrix, bbox, xstep, ystep,
  15690. paintType, tilingType
  15691. ];
  15692. }
  15693. var PartialEvaluator = (function PartialEvaluatorClosure() {
  15694. function PartialEvaluator(pdfManager, xref, handler, pageIndex,
  15695. uniquePrefix, idCounters, fontCache) {
  15696. this.pdfManager = pdfManager;
  15697. this.xref = xref;
  15698. this.handler = handler;
  15699. this.pageIndex = pageIndex;
  15700. this.uniquePrefix = uniquePrefix;
  15701. this.idCounters = idCounters;
  15702. this.fontCache = fontCache;
  15703. }
  15704. // Trying to minimize Date.now() usage and check every 100 time
  15705. var TIME_SLOT_DURATION_MS = 20;
  15706. var CHECK_TIME_EVERY = 100;
  15707. function TimeSlotManager() {
  15708. this.reset();
  15709. }
  15710. TimeSlotManager.prototype = {
  15711. check: function TimeSlotManager_check() {
  15712. if (++this.checked < CHECK_TIME_EVERY) {
  15713. return false;
  15714. }
  15715. this.checked = 0;
  15716. return this.endTime <= Date.now();
  15717. },
  15718. reset: function TimeSlotManager_reset() {
  15719. this.endTime = Date.now() + TIME_SLOT_DURATION_MS;
  15720. this.checked = 0;
  15721. }
  15722. };
  15723. var deferred = Promise.resolve();
  15724. var TILING_PATTERN = 1, SHADING_PATTERN = 2;
  15725. PartialEvaluator.prototype = {
  15726. hasBlendModes: function PartialEvaluator_hasBlendModes(resources) {
  15727. if (!isDict(resources)) {
  15728. return false;
  15729. }
  15730. var processed = Object.create(null);
  15731. if (resources.objId) {
  15732. processed[resources.objId] = true;
  15733. }
  15734. var nodes = [resources];
  15735. while (nodes.length) {
  15736. var key;
  15737. var node = nodes.shift();
  15738. // First check the current resources for blend modes.
  15739. var graphicStates = node.get('ExtGState');
  15740. if (isDict(graphicStates)) {
  15741. graphicStates = graphicStates.getAll();
  15742. for (key in graphicStates) {
  15743. var graphicState = graphicStates[key];
  15744. var bm = graphicState['BM'];
  15745. if (isName(bm) && bm.name !== 'Normal') {
  15746. return true;
  15747. }
  15748. }
  15749. }
  15750. // Descend into the XObjects to look for more resources and blend modes.
  15751. var xObjects = node.get('XObject');
  15752. if (!isDict(xObjects)) {
  15753. continue;
  15754. }
  15755. xObjects = xObjects.getAll();
  15756. for (key in xObjects) {
  15757. var xObject = xObjects[key];
  15758. if (!isStream(xObject)) {
  15759. continue;
  15760. }
  15761. if (xObject.dict.objId) {
  15762. if (processed[xObject.dict.objId]) {
  15763. // stream has objId and is processed already
  15764. continue;
  15765. }
  15766. processed[xObject.dict.objId] = true;
  15767. }
  15768. var xResources = xObject.dict.get('Resources');
  15769. // Checking objId to detect an infinite loop.
  15770. if (isDict(xResources) &&
  15771. (!xResources.objId || !processed[xResources.objId])) {
  15772. nodes.push(xResources);
  15773. if (xResources.objId) {
  15774. processed[xResources.objId] = true;
  15775. }
  15776. }
  15777. }
  15778. }
  15779. return false;
  15780. },
  15781. buildFormXObject: function PartialEvaluator_buildFormXObject(resources,
  15782. xobj, smask,
  15783. operatorList,
  15784. initialState) {
  15785. var matrix = xobj.dict.get('Matrix');
  15786. var bbox = xobj.dict.get('BBox');
  15787. var group = xobj.dict.get('Group');
  15788. if (group) {
  15789. var groupOptions = {
  15790. matrix: matrix,
  15791. bbox: bbox,
  15792. smask: smask,
  15793. isolated: false,
  15794. knockout: false
  15795. };
  15796. var groupSubtype = group.get('S');
  15797. var colorSpace;
  15798. if (isName(groupSubtype) && groupSubtype.name === 'Transparency') {
  15799. groupOptions.isolated = (group.get('I') || false);
  15800. groupOptions.knockout = (group.get('K') || false);
  15801. colorSpace = (group.has('CS') ?
  15802. ColorSpace.parse(group.get('CS'), this.xref, resources) : null);
  15803. }
  15804. if (smask && smask.backdrop) {
  15805. colorSpace = colorSpace || ColorSpace.singletons.rgb;
  15806. smask.backdrop = colorSpace.getRgb(smask.backdrop, 0);
  15807. }
  15808. operatorList.addOp(OPS.beginGroup, [groupOptions]);
  15809. }
  15810. operatorList.addOp(OPS.paintFormXObjectBegin, [matrix, bbox]);
  15811. return this.getOperatorList(xobj,
  15812. (xobj.dict.get('Resources') || resources), operatorList, initialState).
  15813. then(function () {
  15814. operatorList.addOp(OPS.paintFormXObjectEnd, []);
  15815. if (group) {
  15816. operatorList.addOp(OPS.endGroup, [groupOptions]);
  15817. }
  15818. });
  15819. },
  15820. buildPaintImageXObject:
  15821. function PartialEvaluator_buildPaintImageXObject(resources, image,
  15822. inline, operatorList,
  15823. cacheKey, cache) {
  15824. var self = this;
  15825. var dict = image.dict;
  15826. var w = dict.get('Width', 'W');
  15827. var h = dict.get('Height', 'H');
  15828. if (!(w && isNum(w)) || !(h && isNum(h))) {
  15829. warn('Image dimensions are missing, or not numbers.');
  15830. return;
  15831. }
  15832. if (PDFJS.maxImageSize !== -1 && w * h > PDFJS.maxImageSize) {
  15833. warn('Image exceeded maximum allowed size and was removed.');
  15834. return;
  15835. }
  15836. var imageMask = (dict.get('ImageMask', 'IM') || false);
  15837. var imgData, args;
  15838. if (imageMask) {
  15839. // This depends on a tmpCanvas being filled with the
  15840. // current fillStyle, such that processing the pixel
  15841. // data can't be done here. Instead of creating a
  15842. // complete PDFImage, only read the information needed
  15843. // for later.
  15844. var width = dict.get('Width', 'W');
  15845. var height = dict.get('Height', 'H');
  15846. var bitStrideLength = (width + 7) >> 3;
  15847. var imgArray = image.getBytes(bitStrideLength * height);
  15848. var decode = dict.get('Decode', 'D');
  15849. var inverseDecode = (!!decode && decode[0] > 0);
  15850. imgData = PDFImage.createMask(imgArray, width, height,
  15851. image instanceof DecodeStream,
  15852. inverseDecode);
  15853. imgData.cached = true;
  15854. args = [imgData];
  15855. operatorList.addOp(OPS.paintImageMaskXObject, args);
  15856. if (cacheKey) {
  15857. cache.key = cacheKey;
  15858. cache.fn = OPS.paintImageMaskXObject;
  15859. cache.args = args;
  15860. }
  15861. return;
  15862. }
  15863. var softMask = (dict.get('SMask', 'SM') || false);
  15864. var mask = (dict.get('Mask') || false);
  15865. var SMALL_IMAGE_DIMENSIONS = 200;
  15866. // Inlining small images into the queue as RGB data
  15867. if (inline && !softMask && !mask && !(image instanceof JpegStream) &&
  15868. (w + h) < SMALL_IMAGE_DIMENSIONS) {
  15869. var imageObj = new PDFImage(this.xref, resources, image,
  15870. inline, null, null);
  15871. // We force the use of RGBA_32BPP images here, because we can't handle
  15872. // any other kind.
  15873. imgData = imageObj.createImageData(/* forceRGBA = */ true);
  15874. operatorList.addOp(OPS.paintInlineImageXObject, [imgData]);
  15875. return;
  15876. }
  15877. // If there is no imageMask, create the PDFImage and a lot
  15878. // of image processing can be done here.
  15879. var uniquePrefix = (this.uniquePrefix || '');
  15880. var objId = 'img_' + uniquePrefix + (++this.idCounters.obj);
  15881. operatorList.addDependency(objId);
  15882. args = [objId, w, h];
  15883. if (!softMask && !mask && image instanceof JpegStream &&
  15884. image.isNativelySupported(this.xref, resources)) {
  15885. // These JPEGs don't need any more processing so we can just send it.
  15886. operatorList.addOp(OPS.paintJpegXObject, args);
  15887. this.handler.send('obj',
  15888. [objId, this.pageIndex, 'JpegStream', image.getIR()]);
  15889. return;
  15890. }
  15891. PDFImage.buildImage(self.handler, self.xref, resources, image, inline).
  15892. then(function(imageObj) {
  15893. var imgData = imageObj.createImageData(/* forceRGBA = */ false);
  15894. self.handler.send('obj', [objId, self.pageIndex, 'Image', imgData],
  15895. [imgData.data.buffer]);
  15896. }).then(null, function (reason) {
  15897. warn('Unable to decode image: ' + reason);
  15898. self.handler.send('obj', [objId, self.pageIndex, 'Image', null]);
  15899. });
  15900. operatorList.addOp(OPS.paintImageXObject, args);
  15901. if (cacheKey) {
  15902. cache.key = cacheKey;
  15903. cache.fn = OPS.paintImageXObject;
  15904. cache.args = args;
  15905. }
  15906. },
  15907. handleSMask: function PartialEvaluator_handleSmask(smask, resources,
  15908. operatorList,
  15909. stateManager) {
  15910. var smaskContent = smask.get('G');
  15911. var smaskOptions = {
  15912. subtype: smask.get('S').name,
  15913. backdrop: smask.get('BC')
  15914. };
  15915. return this.buildFormXObject(resources, smaskContent, smaskOptions,
  15916. operatorList, stateManager.state.clone());
  15917. },
  15918. handleTilingType:
  15919. function PartialEvaluator_handleTilingType(fn, args, resources,
  15920. pattern, patternDict,
  15921. operatorList) {
  15922. // Create an IR of the pattern code.
  15923. var tilingOpList = new OperatorList();
  15924. return this.getOperatorList(pattern,
  15925. (patternDict.get('Resources') || resources), tilingOpList).
  15926. then(function () {
  15927. // Add the dependencies to the parent operator list so they are
  15928. // resolved before sub operator list is executed synchronously.
  15929. operatorList.addDependencies(tilingOpList.dependencies);
  15930. operatorList.addOp(fn, getTilingPatternIR({
  15931. fnArray: tilingOpList.fnArray,
  15932. argsArray: tilingOpList.argsArray
  15933. }, patternDict, args));
  15934. });
  15935. },
  15936. handleSetFont:
  15937. function PartialEvaluator_handleSetFont(resources, fontArgs, fontRef,
  15938. operatorList, state) {
  15939. // TODO(mack): Not needed?
  15940. var fontName;
  15941. if (fontArgs) {
  15942. fontArgs = fontArgs.slice();
  15943. fontName = fontArgs[0].name;
  15944. }
  15945. var self = this;
  15946. return this.loadFont(fontName, fontRef, this.xref, resources).then(
  15947. function (translated) {
  15948. if (!translated.font.isType3Font) {
  15949. return translated;
  15950. }
  15951. return translated.loadType3Data(self, resources, operatorList).then(
  15952. function () {
  15953. return translated;
  15954. });
  15955. }).then(function (translated) {
  15956. state.font = translated.font;
  15957. translated.send(self.handler);
  15958. return translated.loadedName;
  15959. });
  15960. },
  15961. handleText: function PartialEvaluator_handleText(chars, state) {
  15962. var font = state.font;
  15963. var glyphs = font.charsToGlyphs(chars);
  15964. var isAddToPathSet = !!(state.textRenderingMode &
  15965. TextRenderingMode.ADD_TO_PATH_FLAG);
  15966. if (font.data && (isAddToPathSet || PDFJS.disableFontFace)) {
  15967. var buildPath = function (fontChar) {
  15968. if (!font.renderer.hasBuiltPath(fontChar)) {
  15969. var path = font.renderer.getPathJs(fontChar);
  15970. this.handler.send('commonobj', [
  15971. font.loadedName + '_path_' + fontChar,
  15972. 'FontPath',
  15973. path
  15974. ]);
  15975. }
  15976. }.bind(this);
  15977. for (var i = 0, ii = glyphs.length; i < ii; i++) {
  15978. var glyph = glyphs[i];
  15979. if (glyph === null) {
  15980. continue;
  15981. }
  15982. buildPath(glyph.fontChar);
  15983. // If the glyph has an accent we need to build a path for its
  15984. // fontChar too, otherwise CanvasGraphics_paintChar will fail.
  15985. var accent = glyph.accent;
  15986. if (accent && accent.fontChar) {
  15987. buildPath(accent.fontChar);
  15988. }
  15989. }
  15990. }
  15991. return glyphs;
  15992. },
  15993. setGState: function PartialEvaluator_setGState(resources, gState,
  15994. operatorList, xref,
  15995. stateManager) {
  15996. // TODO(mack): This should be rewritten so that this function returns
  15997. // what should be added to the queue during each iteration
  15998. function setGStateForKey(gStateObj, key, value) {
  15999. switch (key) {
  16000. case 'Type':
  16001. break;
  16002. case 'LW':
  16003. case 'LC':
  16004. case 'LJ':
  16005. case 'ML':
  16006. case 'D':
  16007. case 'RI':
  16008. case 'FL':
  16009. case 'CA':
  16010. case 'ca':
  16011. gStateObj.push([key, value]);
  16012. break;
  16013. case 'Font':
  16014. promise = promise.then(function () {
  16015. return self.handleSetFont(resources, null, value[0],
  16016. operatorList, stateManager.state).
  16017. then(function (loadedName) {
  16018. operatorList.addDependency(loadedName);
  16019. gStateObj.push([key, [loadedName, value[1]]]);
  16020. });
  16021. });
  16022. break;
  16023. case 'BM':
  16024. gStateObj.push([key, value]);
  16025. break;
  16026. case 'SMask':
  16027. if (isName(value) && value.name === 'None') {
  16028. gStateObj.push([key, false]);
  16029. break;
  16030. }
  16031. var dict = xref.fetchIfRef(value);
  16032. if (isDict(dict)) {
  16033. promise = promise.then(function () {
  16034. return self.handleSMask(dict, resources, operatorList,
  16035. stateManager);
  16036. });
  16037. gStateObj.push([key, true]);
  16038. } else {
  16039. warn('Unsupported SMask type');
  16040. }
  16041. break;
  16042. // Only generate info log messages for the following since
  16043. // they are unlikey to have a big impact on the rendering.
  16044. case 'OP':
  16045. case 'op':
  16046. case 'OPM':
  16047. case 'BG':
  16048. case 'BG2':
  16049. case 'UCR':
  16050. case 'UCR2':
  16051. case 'TR':
  16052. case 'TR2':
  16053. case 'HT':
  16054. case 'SM':
  16055. case 'SA':
  16056. case 'AIS':
  16057. case 'TK':
  16058. // TODO implement these operators.
  16059. info('graphic state operator ' + key);
  16060. break;
  16061. default:
  16062. info('Unknown graphic state operator ' + key);
  16063. break;
  16064. }
  16065. }
  16066. // This array holds the converted/processed state data.
  16067. var gStateObj = [];
  16068. var gStateMap = gState.map;
  16069. var self = this;
  16070. var promise = Promise.resolve();
  16071. for (var key in gStateMap) {
  16072. var value = gStateMap[key];
  16073. setGStateForKey(gStateObj, key, value);
  16074. }
  16075. return promise.then(function () {
  16076. operatorList.addOp(OPS.setGState, [gStateObj]);
  16077. });
  16078. },
  16079. loadFont: function PartialEvaluator_loadFont(fontName, font, xref,
  16080. resources) {
  16081. function errorFont() {
  16082. return Promise.resolve(new TranslatedFont('g_font_error',
  16083. new ErrorFont('Font ' + fontName + ' is not available'), font));
  16084. }
  16085. var fontRef;
  16086. if (font) { // Loading by ref.
  16087. assert(isRef(font));
  16088. fontRef = font;
  16089. } else { // Loading by name.
  16090. var fontRes = resources.get('Font');
  16091. if (fontRes) {
  16092. fontRef = fontRes.getRaw(fontName);
  16093. } else {
  16094. warn('fontRes not available');
  16095. return errorFont();
  16096. }
  16097. }
  16098. if (!fontRef) {
  16099. warn('fontRef not available');
  16100. return errorFont();
  16101. }
  16102. if (this.fontCache.has(fontRef)) {
  16103. return this.fontCache.get(fontRef);
  16104. }
  16105. font = xref.fetchIfRef(fontRef);
  16106. if (!isDict(font)) {
  16107. return errorFont();
  16108. }
  16109. // We are holding font.translated references just for fontRef that are not
  16110. // dictionaries (Dict). See explanation below.
  16111. if (font.translated) {
  16112. return font.translated;
  16113. }
  16114. var fontCapability = createPromiseCapability();
  16115. var preEvaluatedFont = this.preEvaluateFont(font, xref);
  16116. var descriptor = preEvaluatedFont.descriptor;
  16117. var fontID = fontRef.num + '_' + fontRef.gen;
  16118. if (isDict(descriptor)) {
  16119. if (!descriptor.fontAliases) {
  16120. descriptor.fontAliases = Object.create(null);
  16121. }
  16122. var fontAliases = descriptor.fontAliases;
  16123. var hash = preEvaluatedFont.hash;
  16124. if (fontAliases[hash]) {
  16125. var aliasFontRef = fontAliases[hash].aliasRef;
  16126. if (aliasFontRef && this.fontCache.has(aliasFontRef)) {
  16127. this.fontCache.putAlias(fontRef, aliasFontRef);
  16128. return this.fontCache.get(fontRef);
  16129. }
  16130. }
  16131. if (!fontAliases[hash]) {
  16132. fontAliases[hash] = {
  16133. fontID: Font.getFontID()
  16134. };
  16135. }
  16136. fontAliases[hash].aliasRef = fontRef;
  16137. fontID = fontAliases[hash].fontID;
  16138. }
  16139. // Workaround for bad PDF generators that don't reference fonts
  16140. // properly, i.e. by not using an object identifier.
  16141. // Check if the fontRef is a Dict (as opposed to a standard object),
  16142. // in which case we don't cache the font and instead reference it by
  16143. // fontName in font.loadedName below.
  16144. var fontRefIsDict = isDict(fontRef);
  16145. if (!fontRefIsDict) {
  16146. this.fontCache.put(fontRef, fontCapability.promise);
  16147. }
  16148. // Keep track of each font we translated so the caller can
  16149. // load them asynchronously before calling display on a page.
  16150. font.loadedName = 'g_font_' + (fontRefIsDict ?
  16151. fontName.replace(/\W/g, '') : fontID);
  16152. font.translated = fontCapability.promise;
  16153. // TODO move promises into translate font
  16154. var translatedPromise;
  16155. try {
  16156. translatedPromise = Promise.resolve(
  16157. this.translateFont(preEvaluatedFont, xref));
  16158. } catch (e) {
  16159. translatedPromise = Promise.reject(e);
  16160. }
  16161. translatedPromise.then(function (translatedFont) {
  16162. if (translatedFont.fontType !== undefined) {
  16163. var xrefFontStats = xref.stats.fontTypes;
  16164. xrefFontStats[translatedFont.fontType] = true;
  16165. }
  16166. fontCapability.resolve(new TranslatedFont(font.loadedName,
  16167. translatedFont, font));
  16168. }, function (reason) {
  16169. // TODO fontCapability.reject?
  16170. UnsupportedManager.notify(UNSUPPORTED_FEATURES.font);
  16171. try {
  16172. // error, but it's still nice to have font type reported
  16173. var descriptor = preEvaluatedFont.descriptor;
  16174. var fontFile3 = descriptor && descriptor.get('FontFile3');
  16175. var subtype = fontFile3 && fontFile3.get('Subtype');
  16176. var fontType = getFontType(preEvaluatedFont.type,
  16177. subtype && subtype.name);
  16178. var xrefFontStats = xref.stats.fontTypes;
  16179. xrefFontStats[fontType] = true;
  16180. } catch (ex) { }
  16181. fontCapability.resolve(new TranslatedFont(font.loadedName,
  16182. new ErrorFont(reason instanceof Error ? reason.message : reason),
  16183. font));
  16184. });
  16185. return fontCapability.promise;
  16186. },
  16187. buildPath: function PartialEvaluator_buildPath(operatorList, fn, args) {
  16188. var lastIndex = operatorList.length - 1;
  16189. if (lastIndex < 0 ||
  16190. operatorList.fnArray[lastIndex] !== OPS.constructPath) {
  16191. operatorList.addOp(OPS.constructPath, [[fn], args]);
  16192. } else {
  16193. var opArgs = operatorList.argsArray[lastIndex];
  16194. opArgs[0].push(fn);
  16195. Array.prototype.push.apply(opArgs[1], args);
  16196. }
  16197. },
  16198. handleColorN: function PartialEvaluator_handleColorN(operatorList, fn, args,
  16199. cs, patterns, resources, xref) {
  16200. // compile tiling patterns
  16201. var patternName = args[args.length - 1];
  16202. // SCN/scn applies patterns along with normal colors
  16203. var pattern;
  16204. if (isName(patternName) &&
  16205. (pattern = patterns.get(patternName.name))) {
  16206. var dict = (isStream(pattern) ? pattern.dict : pattern);
  16207. var typeNum = dict.get('PatternType');
  16208. if (typeNum === TILING_PATTERN) {
  16209. var color = cs.base ? cs.base.getRgb(args, 0) : null;
  16210. return this.handleTilingType(fn, color, resources, pattern,
  16211. dict, operatorList);
  16212. } else if (typeNum === SHADING_PATTERN) {
  16213. var shading = dict.get('Shading');
  16214. var matrix = dict.get('Matrix');
  16215. pattern = Pattern.parseShading(shading, matrix, xref, resources);
  16216. operatorList.addOp(fn, pattern.getIR());
  16217. return Promise.resolve();
  16218. } else {
  16219. return Promise.reject('Unknown PatternType: ' + typeNum);
  16220. }
  16221. }
  16222. // TODO shall we fail here?
  16223. operatorList.addOp(fn, args);
  16224. return Promise.resolve();
  16225. },
  16226. getOperatorList: function PartialEvaluator_getOperatorList(stream,
  16227. resources,
  16228. operatorList,
  16229. initialState) {
  16230. var self = this;
  16231. var xref = this.xref;
  16232. var imageCache = {};
  16233. assert(operatorList);
  16234. resources = (resources || Dict.empty);
  16235. var xobjs = (resources.get('XObject') || Dict.empty);
  16236. var patterns = (resources.get('Pattern') || Dict.empty);
  16237. var stateManager = new StateManager(initialState || new EvalState());
  16238. var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager);
  16239. var timeSlotManager = new TimeSlotManager();
  16240. return new Promise(function next(resolve, reject) {
  16241. timeSlotManager.reset();
  16242. var stop, operation = {}, i, ii, cs;
  16243. while (!(stop = timeSlotManager.check()) &&
  16244. preprocessor.read(operation)) {
  16245. var args = operation.args;
  16246. var fn = operation.fn;
  16247. switch (fn | 0) {
  16248. case OPS.paintXObject:
  16249. if (args[0].code) {
  16250. break;
  16251. }
  16252. // eagerly compile XForm objects
  16253. var name = args[0].name;
  16254. if (imageCache.key === name) {
  16255. operatorList.addOp(imageCache.fn, imageCache.args);
  16256. args = null;
  16257. continue;
  16258. }
  16259. var xobj = xobjs.get(name);
  16260. if (xobj) {
  16261. assert(isStream(xobj), 'XObject should be a stream');
  16262. var type = xobj.dict.get('Subtype');
  16263. assert(isName(type),
  16264. 'XObject should have a Name subtype');
  16265. if (type.name === 'Form') {
  16266. stateManager.save();
  16267. return self.buildFormXObject(resources, xobj, null,
  16268. operatorList,
  16269. stateManager.state.clone()).
  16270. then(function () {
  16271. stateManager.restore();
  16272. next(resolve, reject);
  16273. }, reject);
  16274. } else if (type.name === 'Image') {
  16275. self.buildPaintImageXObject(resources, xobj, false,
  16276. operatorList, name, imageCache);
  16277. args = null;
  16278. continue;
  16279. } else if (type.name === 'PS') {
  16280. // PostScript XObjects are unused when viewing documents.
  16281. // See section 4.7.1 of Adobe's PDF reference.
  16282. info('Ignored XObject subtype PS');
  16283. continue;
  16284. } else {
  16285. error('Unhandled XObject subtype ' + type.name);
  16286. }
  16287. }
  16288. break;
  16289. case OPS.setFont:
  16290. var fontSize = args[1];
  16291. // eagerly collect all fonts
  16292. return self.handleSetFont(resources, args, null,
  16293. operatorList, stateManager.state).
  16294. then(function (loadedName) {
  16295. operatorList.addDependency(loadedName);
  16296. operatorList.addOp(OPS.setFont, [loadedName, fontSize]);
  16297. next(resolve, reject);
  16298. }, reject);
  16299. case OPS.endInlineImage:
  16300. var cacheKey = args[0].cacheKey;
  16301. if (cacheKey && imageCache.key === cacheKey) {
  16302. operatorList.addOp(imageCache.fn, imageCache.args);
  16303. args = null;
  16304. continue;
  16305. }
  16306. self.buildPaintImageXObject(resources, args[0], true,
  16307. operatorList, cacheKey, imageCache);
  16308. args = null;
  16309. continue;
  16310. case OPS.showText:
  16311. args[0] = self.handleText(args[0], stateManager.state);
  16312. break;
  16313. case OPS.showSpacedText:
  16314. var arr = args[0];
  16315. var combinedGlyphs = [];
  16316. var arrLength = arr.length;
  16317. for (i = 0; i < arrLength; ++i) {
  16318. var arrItem = arr[i];
  16319. if (isString(arrItem)) {
  16320. Array.prototype.push.apply(combinedGlyphs,
  16321. self.handleText(arrItem, stateManager.state));
  16322. } else if (isNum(arrItem)) {
  16323. combinedGlyphs.push(arrItem);
  16324. }
  16325. }
  16326. args[0] = combinedGlyphs;
  16327. fn = OPS.showText;
  16328. break;
  16329. case OPS.nextLineShowText:
  16330. operatorList.addOp(OPS.nextLine);
  16331. args[0] = self.handleText(args[0], stateManager.state);
  16332. fn = OPS.showText;
  16333. break;
  16334. case OPS.nextLineSetSpacingShowText:
  16335. operatorList.addOp(OPS.nextLine);
  16336. operatorList.addOp(OPS.setWordSpacing, [args.shift()]);
  16337. operatorList.addOp(OPS.setCharSpacing, [args.shift()]);
  16338. args[0] = self.handleText(args[0], stateManager.state);
  16339. fn = OPS.showText;
  16340. break;
  16341. case OPS.setTextRenderingMode:
  16342. stateManager.state.textRenderingMode = args[0];
  16343. break;
  16344. case OPS.setFillColorSpace:
  16345. stateManager.state.fillColorSpace =
  16346. ColorSpace.parse(args[0], xref, resources);
  16347. continue;
  16348. case OPS.setStrokeColorSpace:
  16349. stateManager.state.strokeColorSpace =
  16350. ColorSpace.parse(args[0], xref, resources);
  16351. continue;
  16352. case OPS.setFillColor:
  16353. cs = stateManager.state.fillColorSpace;
  16354. args = cs.getRgb(args, 0);
  16355. fn = OPS.setFillRGBColor;
  16356. break;
  16357. case OPS.setStrokeColor:
  16358. cs = stateManager.state.strokeColorSpace;
  16359. args = cs.getRgb(args, 0);
  16360. fn = OPS.setStrokeRGBColor;
  16361. break;
  16362. case OPS.setFillGray:
  16363. stateManager.state.fillColorSpace = ColorSpace.singletons.gray;
  16364. args = ColorSpace.singletons.gray.getRgb(args, 0);
  16365. fn = OPS.setFillRGBColor;
  16366. break;
  16367. case OPS.setStrokeGray:
  16368. stateManager.state.strokeColorSpace = ColorSpace.singletons.gray;
  16369. args = ColorSpace.singletons.gray.getRgb(args, 0);
  16370. fn = OPS.setStrokeRGBColor;
  16371. break;
  16372. case OPS.setFillCMYKColor:
  16373. stateManager.state.fillColorSpace = ColorSpace.singletons.cmyk;
  16374. args = ColorSpace.singletons.cmyk.getRgb(args, 0);
  16375. fn = OPS.setFillRGBColor;
  16376. break;
  16377. case OPS.setStrokeCMYKColor:
  16378. stateManager.state.strokeColorSpace = ColorSpace.singletons.cmyk;
  16379. args = ColorSpace.singletons.cmyk.getRgb(args, 0);
  16380. fn = OPS.setStrokeRGBColor;
  16381. break;
  16382. case OPS.setFillRGBColor:
  16383. stateManager.state.fillColorSpace = ColorSpace.singletons.rgb;
  16384. args = ColorSpace.singletons.rgb.getRgb(args, 0);
  16385. break;
  16386. case OPS.setStrokeRGBColor:
  16387. stateManager.state.strokeColorSpace = ColorSpace.singletons.rgb;
  16388. args = ColorSpace.singletons.rgb.getRgb(args, 0);
  16389. break;
  16390. case OPS.setFillColorN:
  16391. cs = stateManager.state.fillColorSpace;
  16392. if (cs.name === 'Pattern') {
  16393. return self.handleColorN(operatorList, OPS.setFillColorN,
  16394. args, cs, patterns, resources, xref).then(function() {
  16395. next(resolve, reject);
  16396. }, reject);
  16397. }
  16398. args = cs.getRgb(args, 0);
  16399. fn = OPS.setFillRGBColor;
  16400. break;
  16401. case OPS.setStrokeColorN:
  16402. cs = stateManager.state.strokeColorSpace;
  16403. if (cs.name === 'Pattern') {
  16404. return self.handleColorN(operatorList, OPS.setStrokeColorN,
  16405. args, cs, patterns, resources, xref).then(function() {
  16406. next(resolve, reject);
  16407. }, reject);
  16408. }
  16409. args = cs.getRgb(args, 0);
  16410. fn = OPS.setStrokeRGBColor;
  16411. break;
  16412. case OPS.shadingFill:
  16413. var shadingRes = resources.get('Shading');
  16414. if (!shadingRes) {
  16415. error('No shading resource found');
  16416. }
  16417. var shading = shadingRes.get(args[0].name);
  16418. if (!shading) {
  16419. error('No shading object found');
  16420. }
  16421. var shadingFill = Pattern.parseShading(shading, null, xref,
  16422. resources);
  16423. var patternIR = shadingFill.getIR();
  16424. args = [patternIR];
  16425. fn = OPS.shadingFill;
  16426. break;
  16427. case OPS.setGState:
  16428. var dictName = args[0];
  16429. var extGState = resources.get('ExtGState');
  16430. if (!isDict(extGState) || !extGState.has(dictName.name)) {
  16431. break;
  16432. }
  16433. var gState = extGState.get(dictName.name);
  16434. return self.setGState(resources, gState, operatorList, xref,
  16435. stateManager).then(function() {
  16436. next(resolve, reject);
  16437. }, reject);
  16438. case OPS.moveTo:
  16439. case OPS.lineTo:
  16440. case OPS.curveTo:
  16441. case OPS.curveTo2:
  16442. case OPS.curveTo3:
  16443. case OPS.closePath:
  16444. self.buildPath(operatorList, fn, args);
  16445. continue;
  16446. case OPS.rectangle:
  16447. self.buildPath(operatorList, fn, args);
  16448. continue;
  16449. }
  16450. operatorList.addOp(fn, args);
  16451. }
  16452. if (stop) {
  16453. deferred.then(function () {
  16454. next(resolve, reject);
  16455. });
  16456. return;
  16457. }
  16458. // Some PDFs don't close all restores inside object/form.
  16459. // Closing those for them.
  16460. for (i = 0, ii = preprocessor.savedStatesDepth; i < ii; i++) {
  16461. operatorList.addOp(OPS.restore, []);
  16462. }
  16463. resolve();
  16464. });
  16465. },
  16466. getTextContent: function PartialEvaluator_getTextContent(stream, resources,
  16467. stateManager) {
  16468. stateManager = (stateManager || new StateManager(new TextState()));
  16469. var textContent = {
  16470. items: [],
  16471. styles: Object.create(null)
  16472. };
  16473. var bidiTexts = textContent.items;
  16474. var SPACE_FACTOR = 0.35;
  16475. var MULTI_SPACE_FACTOR = 1.5;
  16476. var self = this;
  16477. var xref = this.xref;
  16478. resources = (xref.fetchIfRef(resources) || Dict.empty);
  16479. // The xobj is parsed iff it's needed, e.g. if there is a `DO` cmd.
  16480. var xobjs = null;
  16481. var xobjsCache = {};
  16482. var preprocessor = new EvaluatorPreprocessor(stream, xref, stateManager);
  16483. var textState;
  16484. function newTextChunk() {
  16485. var font = textState.font;
  16486. if (!(font.loadedName in textContent.styles)) {
  16487. textContent.styles[font.loadedName] = {
  16488. fontFamily: font.fallbackName,
  16489. ascent: font.ascent,
  16490. descent: font.descent,
  16491. vertical: font.vertical
  16492. };
  16493. }
  16494. return {
  16495. // |str| is initially an array which we push individual chars to, and
  16496. // then runBidi() overwrites it with the final string.
  16497. str: [],
  16498. dir: null,
  16499. width: 0,
  16500. height: 0,
  16501. transform: null,
  16502. fontName: font.loadedName
  16503. };
  16504. }
  16505. function runBidi(textChunk) {
  16506. var str = textChunk.str.join('');
  16507. var bidiResult = PDFJS.bidi(str, -1, textState.font.vertical);
  16508. textChunk.str = bidiResult.str;
  16509. textChunk.dir = bidiResult.dir;
  16510. return textChunk;
  16511. }
  16512. function handleSetFont(fontName, fontRef) {
  16513. return self.loadFont(fontName, fontRef, xref, resources).
  16514. then(function (translated) {
  16515. textState.font = translated.font;
  16516. textState.fontMatrix = translated.font.fontMatrix ||
  16517. FONT_IDENTITY_MATRIX;
  16518. });
  16519. }
  16520. function buildTextGeometry(chars, textChunk) {
  16521. var font = textState.font;
  16522. textChunk = textChunk || newTextChunk();
  16523. if (!textChunk.transform) {
  16524. // 9.4.4 Text Space Details
  16525. var tsm = [textState.fontSize * textState.textHScale, 0,
  16526. 0, textState.fontSize,
  16527. 0, textState.textRise];
  16528. var trm = textChunk.transform = Util.transform(textState.ctm,
  16529. Util.transform(textState.textMatrix, tsm));
  16530. if (!font.vertical) {
  16531. textChunk.height = Math.sqrt(trm[2] * trm[2] + trm[3] * trm[3]);
  16532. } else {
  16533. textChunk.width = Math.sqrt(trm[0] * trm[0] + trm[1] * trm[1]);
  16534. }
  16535. }
  16536. var width = 0;
  16537. var height = 0;
  16538. var glyphs = font.charsToGlyphs(chars);
  16539. var defaultVMetrics = font.defaultVMetrics;
  16540. for (var i = 0; i < glyphs.length; i++) {
  16541. var glyph = glyphs[i];
  16542. if (!glyph) { // Previous glyph was a space.
  16543. width += textState.wordSpacing * textState.textHScale;
  16544. continue;
  16545. }
  16546. var vMetricX = null;
  16547. var vMetricY = null;
  16548. var glyphWidth = null;
  16549. if (font.vertical) {
  16550. if (glyph.vmetric) {
  16551. glyphWidth = glyph.vmetric[0];
  16552. vMetricX = glyph.vmetric[1];
  16553. vMetricY = glyph.vmetric[2];
  16554. } else {
  16555. glyphWidth = glyph.width;
  16556. vMetricX = glyph.width * 0.5;
  16557. vMetricY = defaultVMetrics[2];
  16558. }
  16559. } else {
  16560. glyphWidth = glyph.width;
  16561. }
  16562. var glyphUnicode = glyph.unicode;
  16563. if (NormalizedUnicodes[glyphUnicode] !== undefined) {
  16564. glyphUnicode = NormalizedUnicodes[glyphUnicode];
  16565. }
  16566. glyphUnicode = reverseIfRtl(glyphUnicode);
  16567. // The following will calculate the x and y of the individual glyphs.
  16568. // if (font.vertical) {
  16569. // tsm[4] -= vMetricX * Math.abs(textState.fontSize) *
  16570. // textState.fontMatrix[0];
  16571. // tsm[5] -= vMetricY * textState.fontSize *
  16572. // textState.fontMatrix[0];
  16573. // }
  16574. // var trm = Util.transform(textState.textMatrix, tsm);
  16575. // var pt = Util.applyTransform([trm[4], trm[5]], textState.ctm);
  16576. // var x = pt[0];
  16577. // var y = pt[1];
  16578. var tx = 0;
  16579. var ty = 0;
  16580. if (!font.vertical) {
  16581. var w0 = glyphWidth * textState.fontMatrix[0];
  16582. tx = (w0 * textState.fontSize + textState.charSpacing) *
  16583. textState.textHScale;
  16584. width += tx;
  16585. } else {
  16586. var w1 = glyphWidth * textState.fontMatrix[0];
  16587. ty = w1 * textState.fontSize + textState.charSpacing;
  16588. height += ty;
  16589. }
  16590. textState.translateTextMatrix(tx, ty);
  16591. textChunk.str.push(glyphUnicode);
  16592. }
  16593. var a = textState.textLineMatrix[0];
  16594. var b = textState.textLineMatrix[1];
  16595. var scaleLineX = Math.sqrt(a * a + b * b);
  16596. a = textState.ctm[0];
  16597. b = textState.ctm[1];
  16598. var scaleCtmX = Math.sqrt(a * a + b * b);
  16599. if (!font.vertical) {
  16600. textChunk.width += width * scaleCtmX * scaleLineX;
  16601. } else {
  16602. textChunk.height += Math.abs(height * scaleCtmX * scaleLineX);
  16603. }
  16604. return textChunk;
  16605. }
  16606. var timeSlotManager = new TimeSlotManager();
  16607. return new Promise(function next(resolve, reject) {
  16608. timeSlotManager.reset();
  16609. var stop, operation = {};
  16610. while (!(stop = timeSlotManager.check()) &&
  16611. (preprocessor.read(operation))) {
  16612. textState = stateManager.state;
  16613. var fn = operation.fn;
  16614. var args = operation.args;
  16615. switch (fn | 0) {
  16616. case OPS.setFont:
  16617. textState.fontSize = args[1];
  16618. return handleSetFont(args[0].name).then(function() {
  16619. next(resolve, reject);
  16620. }, reject);
  16621. case OPS.setTextRise:
  16622. textState.textRise = args[0];
  16623. break;
  16624. case OPS.setHScale:
  16625. textState.textHScale = args[0] / 100;
  16626. break;
  16627. case OPS.setLeading:
  16628. textState.leading = args[0];
  16629. break;
  16630. case OPS.moveText:
  16631. textState.translateTextLineMatrix(args[0], args[1]);
  16632. textState.textMatrix = textState.textLineMatrix.slice();
  16633. break;
  16634. case OPS.setLeadingMoveText:
  16635. textState.leading = -args[1];
  16636. textState.translateTextLineMatrix(args[0], args[1]);
  16637. textState.textMatrix = textState.textLineMatrix.slice();
  16638. break;
  16639. case OPS.nextLine:
  16640. textState.carriageReturn();
  16641. break;
  16642. case OPS.setTextMatrix:
  16643. textState.setTextMatrix(args[0], args[1], args[2], args[3],
  16644. args[4], args[5]);
  16645. textState.setTextLineMatrix(args[0], args[1], args[2], args[3],
  16646. args[4], args[5]);
  16647. break;
  16648. case OPS.setCharSpacing:
  16649. textState.charSpacing = args[0];
  16650. break;
  16651. case OPS.setWordSpacing:
  16652. textState.wordSpacing = args[0];
  16653. break;
  16654. case OPS.beginText:
  16655. textState.textMatrix = IDENTITY_MATRIX.slice();
  16656. textState.textLineMatrix = IDENTITY_MATRIX.slice();
  16657. break;
  16658. case OPS.showSpacedText:
  16659. var items = args[0];
  16660. var textChunk = newTextChunk();
  16661. var offset;
  16662. for (var j = 0, jj = items.length; j < jj; j++) {
  16663. if (typeof items[j] === 'string') {
  16664. buildTextGeometry(items[j], textChunk);
  16665. } else {
  16666. var val = items[j] / 1000;
  16667. if (!textState.font.vertical) {
  16668. offset = -val * textState.fontSize * textState.textHScale *
  16669. textState.textMatrix[0];
  16670. textState.translateTextMatrix(offset, 0);
  16671. textChunk.width += offset;
  16672. } else {
  16673. offset = -val * textState.fontSize *
  16674. textState.textMatrix[3];
  16675. textState.translateTextMatrix(0, offset);
  16676. textChunk.height += offset;
  16677. }
  16678. if (items[j] < 0 && textState.font.spaceWidth > 0) {
  16679. var fakeSpaces = -items[j] / textState.font.spaceWidth;
  16680. if (fakeSpaces > MULTI_SPACE_FACTOR) {
  16681. fakeSpaces = Math.round(fakeSpaces);
  16682. while (fakeSpaces--) {
  16683. textChunk.str.push(' ');
  16684. }
  16685. } else if (fakeSpaces > SPACE_FACTOR) {
  16686. textChunk.str.push(' ');
  16687. }
  16688. }
  16689. }
  16690. }
  16691. bidiTexts.push(runBidi(textChunk));
  16692. break;
  16693. case OPS.showText:
  16694. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  16695. break;
  16696. case OPS.nextLineShowText:
  16697. textState.carriageReturn();
  16698. bidiTexts.push(runBidi(buildTextGeometry(args[0])));
  16699. break;
  16700. case OPS.nextLineSetSpacingShowText:
  16701. textState.wordSpacing = args[0];
  16702. textState.charSpacing = args[1];
  16703. textState.carriageReturn();
  16704. bidiTexts.push(runBidi(buildTextGeometry(args[2])));
  16705. break;
  16706. case OPS.paintXObject:
  16707. if (args[0].code) {
  16708. break;
  16709. }
  16710. if (!xobjs) {
  16711. xobjs = (resources.get('XObject') || Dict.empty);
  16712. }
  16713. var name = args[0].name;
  16714. if (xobjsCache.key === name) {
  16715. if (xobjsCache.texts) {
  16716. Util.appendToArray(bidiTexts, xobjsCache.texts.items);
  16717. Util.extendObj(textContent.styles, xobjsCache.texts.styles);
  16718. }
  16719. break;
  16720. }
  16721. var xobj = xobjs.get(name);
  16722. if (!xobj) {
  16723. break;
  16724. }
  16725. assert(isStream(xobj), 'XObject should be a stream');
  16726. var type = xobj.dict.get('Subtype');
  16727. assert(isName(type),
  16728. 'XObject should have a Name subtype');
  16729. if ('Form' !== type.name) {
  16730. xobjsCache.key = name;
  16731. xobjsCache.texts = null;
  16732. break;
  16733. }
  16734. stateManager.save();
  16735. var matrix = xobj.dict.get('Matrix');
  16736. if (isArray(matrix) && matrix.length === 6) {
  16737. stateManager.transform(matrix);
  16738. }
  16739. return self.getTextContent(xobj,
  16740. xobj.dict.get('Resources') || resources, stateManager).
  16741. then(function (formTextContent) {
  16742. Util.appendToArray(bidiTexts, formTextContent.items);
  16743. Util.extendObj(textContent.styles, formTextContent.styles);
  16744. stateManager.restore();
  16745. xobjsCache.key = name;
  16746. xobjsCache.texts = formTextContent;
  16747. next(resolve, reject);
  16748. }, reject);
  16749. case OPS.setGState:
  16750. var dictName = args[0];
  16751. var extGState = resources.get('ExtGState');
  16752. if (!isDict(extGState) || !extGState.has(dictName.name)) {
  16753. break;
  16754. }
  16755. var gsStateMap = extGState.get(dictName.name);
  16756. var gsStateFont = null;
  16757. for (var key in gsStateMap) {
  16758. if (key === 'Font') {
  16759. assert(!gsStateFont);
  16760. gsStateFont = gsStateMap[key];
  16761. }
  16762. }
  16763. if (gsStateFont) {
  16764. textState.fontSize = gsStateFont[1];
  16765. return handleSetFont(gsStateFont[0]).then(function() {
  16766. next(resolve, reject);
  16767. }, reject);
  16768. }
  16769. break;
  16770. } // switch
  16771. } // while
  16772. if (stop) {
  16773. deferred.then(function () {
  16774. next(resolve, reject);
  16775. });
  16776. return;
  16777. }
  16778. resolve(textContent);
  16779. });
  16780. },
  16781. extractDataStructures: function
  16782. partialEvaluatorExtractDataStructures(dict, baseDict,
  16783. xref, properties) {
  16784. // 9.10.2
  16785. var toUnicode = (dict.get('ToUnicode') || baseDict.get('ToUnicode'));
  16786. if (toUnicode) {
  16787. properties.toUnicode = this.readToUnicode(toUnicode, xref, properties);
  16788. }
  16789. if (properties.composite) {
  16790. // CIDSystemInfo helps to match CID to glyphs
  16791. var cidSystemInfo = dict.get('CIDSystemInfo');
  16792. if (isDict(cidSystemInfo)) {
  16793. properties.cidSystemInfo = {
  16794. registry: cidSystemInfo.get('Registry'),
  16795. ordering: cidSystemInfo.get('Ordering'),
  16796. supplement: cidSystemInfo.get('Supplement')
  16797. };
  16798. }
  16799. var cidToGidMap = dict.get('CIDToGIDMap');
  16800. if (isStream(cidToGidMap)) {
  16801. properties.cidToGidMap = this.readCidToGidMap(cidToGidMap);
  16802. }
  16803. }
  16804. // Based on 9.6.6 of the spec the encoding can come from multiple places
  16805. // and depends on the font type. The base encoding and differences are
  16806. // read here, but the encoding that is actually used is chosen during
  16807. // glyph mapping in the font.
  16808. // TODO: Loading the built in encoding in the font would allow the
  16809. // differences to be merged in here not require us to hold on to it.
  16810. var differences = [];
  16811. var baseEncodingName = null;
  16812. var encoding;
  16813. if (dict.has('Encoding')) {
  16814. encoding = dict.get('Encoding');
  16815. if (isDict(encoding)) {
  16816. baseEncodingName = encoding.get('BaseEncoding');
  16817. baseEncodingName = (isName(baseEncodingName) ?
  16818. baseEncodingName.name : null);
  16819. // Load the differences between the base and original
  16820. if (encoding.has('Differences')) {
  16821. var diffEncoding = encoding.get('Differences');
  16822. var index = 0;
  16823. for (var j = 0, jj = diffEncoding.length; j < jj; j++) {
  16824. var data = diffEncoding[j];
  16825. if (isNum(data)) {
  16826. index = data;
  16827. } else {
  16828. differences[index++] = data.name;
  16829. }
  16830. }
  16831. }
  16832. } else if (isName(encoding)) {
  16833. baseEncodingName = encoding.name;
  16834. } else {
  16835. error('Encoding is not a Name nor a Dict');
  16836. }
  16837. // According to table 114 if the encoding is a named encoding it must be
  16838. // one of these predefined encodings.
  16839. if ((baseEncodingName !== 'MacRomanEncoding' &&
  16840. baseEncodingName !== 'MacExpertEncoding' &&
  16841. baseEncodingName !== 'WinAnsiEncoding')) {
  16842. baseEncodingName = null;
  16843. }
  16844. }
  16845. if (baseEncodingName) {
  16846. properties.defaultEncoding = Encodings[baseEncodingName].slice();
  16847. } else {
  16848. encoding = (properties.type === 'TrueType' ?
  16849. Encodings.WinAnsiEncoding : Encodings.StandardEncoding);
  16850. // The Symbolic attribute can be misused for regular fonts
  16851. // Heuristic: we have to check if the font is a standard one also
  16852. if (!!(properties.flags & FontFlags.Symbolic)) {
  16853. encoding = (!properties.file && /Symbol/i.test(properties.name) ?
  16854. Encodings.SymbolSetEncoding :
  16855. Encodings.MacRomanEncoding);
  16856. }
  16857. properties.defaultEncoding = encoding;
  16858. }
  16859. properties.differences = differences;
  16860. properties.baseEncodingName = baseEncodingName;
  16861. properties.dict = dict;
  16862. },
  16863. readToUnicode: function PartialEvaluator_readToUnicode(toUnicode) {
  16864. var cmapObj = toUnicode;
  16865. if (isName(cmapObj)) {
  16866. return CMapFactory.create(cmapObj).map;
  16867. } else if (isStream(cmapObj)) {
  16868. var cmap = CMapFactory.create(cmapObj).map;
  16869. // Convert UTF-16BE
  16870. // NOTE: cmap can be a sparse array, so use forEach instead of for(;;)
  16871. // to iterate over all keys.
  16872. cmap.forEach(function(token, i) {
  16873. var str = [];
  16874. for (var k = 0; k < token.length; k += 2) {
  16875. var w1 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  16876. if ((w1 & 0xF800) !== 0xD800) { // w1 < 0xD800 || w1 > 0xDFFF
  16877. str.push(w1);
  16878. continue;
  16879. }
  16880. k += 2;
  16881. var w2 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
  16882. str.push(((w1 & 0x3ff) << 10) + (w2 & 0x3ff) + 0x10000);
  16883. }
  16884. cmap[i] = String.fromCharCode.apply(String, str);
  16885. });
  16886. return cmap;
  16887. }
  16888. return null;
  16889. },
  16890. readCidToGidMap: function PartialEvaluator_readCidToGidMap(cidToGidStream) {
  16891. // Extract the encoding from the CIDToGIDMap
  16892. var glyphsData = cidToGidStream.getBytes();
  16893. // Set encoding 0 to later verify the font has an encoding
  16894. var result = [];
  16895. for (var j = 0, jj = glyphsData.length; j < jj; j++) {
  16896. var glyphID = (glyphsData[j++] << 8) | glyphsData[j];
  16897. if (glyphID === 0) {
  16898. continue;
  16899. }
  16900. var code = j >> 1;
  16901. result[code] = glyphID;
  16902. }
  16903. return result;
  16904. },
  16905. extractWidths: function PartialEvaluator_extractWidths(dict, xref,
  16906. descriptor,
  16907. properties) {
  16908. var glyphsWidths = [];
  16909. var defaultWidth = 0;
  16910. var glyphsVMetrics = [];
  16911. var defaultVMetrics;
  16912. var i, ii, j, jj, start, code, widths;
  16913. if (properties.composite) {
  16914. defaultWidth = dict.get('DW') || 1000;
  16915. widths = dict.get('W');
  16916. if (widths) {
  16917. for (i = 0, ii = widths.length; i < ii; i++) {
  16918. start = widths[i++];
  16919. code = xref.fetchIfRef(widths[i]);
  16920. if (isArray(code)) {
  16921. for (j = 0, jj = code.length; j < jj; j++) {
  16922. glyphsWidths[start++] = code[j];
  16923. }
  16924. } else {
  16925. var width = widths[++i];
  16926. for (j = start; j <= code; j++) {
  16927. glyphsWidths[j] = width;
  16928. }
  16929. }
  16930. }
  16931. }
  16932. if (properties.vertical) {
  16933. var vmetrics = (dict.get('DW2') || [880, -1000]);
  16934. defaultVMetrics = [vmetrics[1], defaultWidth * 0.5, vmetrics[0]];
  16935. vmetrics = dict.get('W2');
  16936. if (vmetrics) {
  16937. for (i = 0, ii = vmetrics.length; i < ii; i++) {
  16938. start = vmetrics[i++];
  16939. code = xref.fetchIfRef(vmetrics[i]);
  16940. if (isArray(code)) {
  16941. for (j = 0, jj = code.length; j < jj; j++) {
  16942. glyphsVMetrics[start++] = [code[j++], code[j++], code[j]];
  16943. }
  16944. } else {
  16945. var vmetric = [vmetrics[++i], vmetrics[++i], vmetrics[++i]];
  16946. for (j = start; j <= code; j++) {
  16947. glyphsVMetrics[j] = vmetric;
  16948. }
  16949. }
  16950. }
  16951. }
  16952. }
  16953. } else {
  16954. var firstChar = properties.firstChar;
  16955. widths = dict.get('Widths');
  16956. if (widths) {
  16957. j = firstChar;
  16958. for (i = 0, ii = widths.length; i < ii; i++) {
  16959. glyphsWidths[j++] = widths[i];
  16960. }
  16961. defaultWidth = (parseFloat(descriptor.get('MissingWidth')) || 0);
  16962. } else {
  16963. // Trying get the BaseFont metrics (see comment above).
  16964. var baseFontName = dict.get('BaseFont');
  16965. if (isName(baseFontName)) {
  16966. var metrics = this.getBaseFontMetrics(baseFontName.name);
  16967. glyphsWidths = this.buildCharCodeToWidth(metrics.widths,
  16968. properties);
  16969. defaultWidth = metrics.defaultWidth;
  16970. }
  16971. }
  16972. }
  16973. // Heuristic: detection of monospace font by checking all non-zero widths
  16974. var isMonospace = true;
  16975. var firstWidth = defaultWidth;
  16976. for (var glyph in glyphsWidths) {
  16977. var glyphWidth = glyphsWidths[glyph];
  16978. if (!glyphWidth) {
  16979. continue;
  16980. }
  16981. if (!firstWidth) {
  16982. firstWidth = glyphWidth;
  16983. continue;
  16984. }
  16985. if (firstWidth != glyphWidth) {
  16986. isMonospace = false;
  16987. break;
  16988. }
  16989. }
  16990. if (isMonospace) {
  16991. properties.flags |= FontFlags.FixedPitch;
  16992. }
  16993. properties.defaultWidth = defaultWidth;
  16994. properties.widths = glyphsWidths;
  16995. properties.defaultVMetrics = defaultVMetrics;
  16996. properties.vmetrics = glyphsVMetrics;
  16997. },
  16998. isSerifFont: function PartialEvaluator_isSerifFont(baseFontName) {
  16999. // Simulating descriptor flags attribute
  17000. var fontNameWoStyle = baseFontName.split('-')[0];
  17001. return (fontNameWoStyle in serifFonts) ||
  17002. (fontNameWoStyle.search(/serif/gi) !== -1);
  17003. },
  17004. getBaseFontMetrics: function PartialEvaluator_getBaseFontMetrics(name) {
  17005. var defaultWidth = 0;
  17006. var widths = [];
  17007. var monospace = false;
  17008. var lookupName = (stdFontMap[name] || name);
  17009. if (!(lookupName in Metrics)) {
  17010. // Use default fonts for looking up font metrics if the passed
  17011. // font is not a base font
  17012. if (this.isSerifFont(name)) {
  17013. lookupName = 'Times-Roman';
  17014. } else {
  17015. lookupName = 'Helvetica';
  17016. }
  17017. }
  17018. var glyphWidths = Metrics[lookupName];
  17019. if (isNum(glyphWidths)) {
  17020. defaultWidth = glyphWidths;
  17021. monospace = true;
  17022. } else {
  17023. widths = glyphWidths;
  17024. }
  17025. return {
  17026. defaultWidth: defaultWidth,
  17027. monospace: monospace,
  17028. widths: widths
  17029. };
  17030. },
  17031. buildCharCodeToWidth:
  17032. function PartialEvaluator_bulildCharCodeToWidth(widthsByGlyphName,
  17033. properties) {
  17034. var widths = Object.create(null);
  17035. var differences = properties.differences;
  17036. var encoding = properties.defaultEncoding;
  17037. for (var charCode = 0; charCode < 256; charCode++) {
  17038. if (charCode in differences &&
  17039. widthsByGlyphName[differences[charCode]]) {
  17040. widths[charCode] = widthsByGlyphName[differences[charCode]];
  17041. continue;
  17042. }
  17043. if (charCode in encoding && widthsByGlyphName[encoding[charCode]]) {
  17044. widths[charCode] = widthsByGlyphName[encoding[charCode]];
  17045. continue;
  17046. }
  17047. }
  17048. return widths;
  17049. },
  17050. preEvaluateFont: function PartialEvaluator_preEvaluateFont(dict, xref) {
  17051. var baseDict = dict;
  17052. var type = dict.get('Subtype');
  17053. assert(isName(type), 'invalid font Subtype');
  17054. var composite = false;
  17055. var uint8array;
  17056. if (type.name === 'Type0') {
  17057. // If font is a composite
  17058. // - get the descendant font
  17059. // - set the type according to the descendant font
  17060. // - get the FontDescriptor from the descendant font
  17061. var df = dict.get('DescendantFonts');
  17062. if (!df) {
  17063. error('Descendant fonts are not specified');
  17064. }
  17065. dict = (isArray(df) ? xref.fetchIfRef(df[0]) : df);
  17066. type = dict.get('Subtype');
  17067. assert(isName(type), 'invalid font Subtype');
  17068. composite = true;
  17069. }
  17070. var descriptor = dict.get('FontDescriptor');
  17071. if (descriptor) {
  17072. var hash = new MurmurHash3_64();
  17073. var encoding = baseDict.getRaw('Encoding');
  17074. if (isName(encoding)) {
  17075. hash.update(encoding.name);
  17076. } else if (isRef(encoding)) {
  17077. hash.update(encoding.num + '_' + encoding.gen);
  17078. }
  17079. var toUnicode = dict.get('ToUnicode') || baseDict.get('ToUnicode');
  17080. if (isStream(toUnicode)) {
  17081. var stream = toUnicode.str || toUnicode;
  17082. uint8array = stream.buffer ?
  17083. new Uint8Array(stream.buffer.buffer, 0, stream.bufferLength) :
  17084. new Uint8Array(stream.bytes.buffer,
  17085. stream.start, stream.end - stream.start);
  17086. hash.update(uint8array);
  17087. } else if (isName(toUnicode)) {
  17088. hash.update(toUnicode.name);
  17089. }
  17090. var widths = dict.get('Widths') || baseDict.get('Widths');
  17091. if (widths) {
  17092. uint8array = new Uint8Array(new Uint32Array(widths).buffer);
  17093. hash.update(uint8array);
  17094. }
  17095. }
  17096. return {
  17097. descriptor: descriptor,
  17098. dict: dict,
  17099. baseDict: baseDict,
  17100. composite: composite,
  17101. type: type.name,
  17102. hash: hash ? hash.hexdigest() : ''
  17103. };
  17104. },
  17105. translateFont: function PartialEvaluator_translateFont(preEvaluatedFont,
  17106. xref) {
  17107. var baseDict = preEvaluatedFont.baseDict;
  17108. var dict = preEvaluatedFont.dict;
  17109. var composite = preEvaluatedFont.composite;
  17110. var descriptor = preEvaluatedFont.descriptor;
  17111. var type = preEvaluatedFont.type;
  17112. var maxCharIndex = (composite ? 0xFFFF : 0xFF);
  17113. var properties;
  17114. if (!descriptor) {
  17115. if (type === 'Type3') {
  17116. // FontDescriptor is only required for Type3 fonts when the document
  17117. // is a tagged pdf. Create a barbebones one to get by.
  17118. descriptor = new Dict(null);
  17119. descriptor.set('FontName', Name.get(type));
  17120. } else {
  17121. // Before PDF 1.5 if the font was one of the base 14 fonts, having a
  17122. // FontDescriptor was not required.
  17123. // This case is here for compatibility.
  17124. var baseFontName = dict.get('BaseFont');
  17125. if (!isName(baseFontName)) {
  17126. error('Base font is not specified');
  17127. }
  17128. // Using base font name as a font name.
  17129. baseFontName = baseFontName.name.replace(/[,_]/g, '-');
  17130. var metrics = this.getBaseFontMetrics(baseFontName);
  17131. // Simulating descriptor flags attribute
  17132. var fontNameWoStyle = baseFontName.split('-')[0];
  17133. var flags =
  17134. (this.isSerifFont(fontNameWoStyle) ? FontFlags.Serif : 0) |
  17135. (metrics.monospace ? FontFlags.FixedPitch : 0) |
  17136. (symbolsFonts[fontNameWoStyle] ? FontFlags.Symbolic :
  17137. FontFlags.Nonsymbolic);
  17138. properties = {
  17139. type: type,
  17140. name: baseFontName,
  17141. widths: metrics.widths,
  17142. defaultWidth: metrics.defaultWidth,
  17143. flags: flags,
  17144. firstChar: 0,
  17145. lastChar: maxCharIndex
  17146. };
  17147. this.extractDataStructures(dict, dict, xref, properties);
  17148. properties.widths = this.buildCharCodeToWidth(metrics.widths,
  17149. properties);
  17150. return new Font(baseFontName, null, properties);
  17151. }
  17152. }
  17153. // According to the spec if 'FontDescriptor' is declared, 'FirstChar',
  17154. // 'LastChar' and 'Widths' should exist too, but some PDF encoders seem
  17155. // to ignore this rule when a variant of a standart font is used.
  17156. // TODO Fill the width array depending on which of the base font this is
  17157. // a variant.
  17158. var firstChar = (dict.get('FirstChar') || 0);
  17159. var lastChar = (dict.get('LastChar') || maxCharIndex);
  17160. var fontName = descriptor.get('FontName');
  17161. var baseFont = dict.get('BaseFont');
  17162. // Some bad PDFs have a string as the font name.
  17163. if (isString(fontName)) {
  17164. fontName = Name.get(fontName);
  17165. }
  17166. if (isString(baseFont)) {
  17167. baseFont = Name.get(baseFont);
  17168. }
  17169. if (type !== 'Type3') {
  17170. var fontNameStr = fontName && fontName.name;
  17171. var baseFontStr = baseFont && baseFont.name;
  17172. if (fontNameStr !== baseFontStr) {
  17173. info('The FontDescriptor\'s FontName is "' + fontNameStr +
  17174. '" but should be the same as the Font\'s BaseFont "' +
  17175. baseFontStr + '"');
  17176. // Workaround for cases where e.g. fontNameStr = 'Arial' and
  17177. // baseFontStr = 'Arial,Bold' (needed when no font file is embedded).
  17178. if (fontNameStr && baseFontStr &&
  17179. baseFontStr.indexOf(fontNameStr) === 0) {
  17180. fontName = baseFont;
  17181. }
  17182. }
  17183. }
  17184. fontName = (fontName || baseFont);
  17185. assert(isName(fontName), 'invalid font name');
  17186. var fontFile = descriptor.get('FontFile', 'FontFile2', 'FontFile3');
  17187. if (fontFile) {
  17188. if (fontFile.dict) {
  17189. var subtype = fontFile.dict.get('Subtype');
  17190. if (subtype) {
  17191. subtype = subtype.name;
  17192. }
  17193. var length1 = fontFile.dict.get('Length1');
  17194. var length2 = fontFile.dict.get('Length2');
  17195. }
  17196. }
  17197. properties = {
  17198. type: type,
  17199. name: fontName.name,
  17200. subtype: subtype,
  17201. file: fontFile,
  17202. length1: length1,
  17203. length2: length2,
  17204. loadedName: baseDict.loadedName,
  17205. composite: composite,
  17206. wideChars: composite,
  17207. fixedPitch: false,
  17208. fontMatrix: (dict.get('FontMatrix') || FONT_IDENTITY_MATRIX),
  17209. firstChar: firstChar || 0,
  17210. lastChar: (lastChar || maxCharIndex),
  17211. bbox: descriptor.get('FontBBox'),
  17212. ascent: descriptor.get('Ascent'),
  17213. descent: descriptor.get('Descent'),
  17214. xHeight: descriptor.get('XHeight'),
  17215. capHeight: descriptor.get('CapHeight'),
  17216. flags: descriptor.get('Flags'),
  17217. italicAngle: descriptor.get('ItalicAngle'),
  17218. coded: false
  17219. };
  17220. if (composite) {
  17221. var cidEncoding = baseDict.get('Encoding');
  17222. if (isName(cidEncoding)) {
  17223. properties.cidEncoding = cidEncoding.name;
  17224. }
  17225. properties.cMap = CMapFactory.create(cidEncoding,
  17226. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  17227. properties.vertical = properties.cMap.vertical;
  17228. }
  17229. this.extractDataStructures(dict, baseDict, xref, properties);
  17230. this.extractWidths(dict, xref, descriptor, properties);
  17231. if (type === 'Type3') {
  17232. properties.isType3Font = true;
  17233. }
  17234. return new Font(fontName.name, fontFile, properties);
  17235. }
  17236. };
  17237. return PartialEvaluator;
  17238. })();
  17239. var TranslatedFont = (function TranslatedFontClosure() {
  17240. function TranslatedFont(loadedName, font, dict) {
  17241. this.loadedName = loadedName;
  17242. this.font = font;
  17243. this.dict = dict;
  17244. this.type3Loaded = null;
  17245. this.sent = false;
  17246. }
  17247. TranslatedFont.prototype = {
  17248. send: function (handler) {
  17249. if (this.sent) {
  17250. return;
  17251. }
  17252. var fontData = this.font.exportData();
  17253. handler.send('commonobj', [
  17254. this.loadedName,
  17255. 'Font',
  17256. fontData
  17257. ]);
  17258. this.sent = true;
  17259. },
  17260. loadType3Data: function (evaluator, resources, parentOperatorList) {
  17261. assert(this.font.isType3Font);
  17262. if (this.type3Loaded) {
  17263. return this.type3Loaded;
  17264. }
  17265. var translatedFont = this.font;
  17266. var loadCharProcsPromise = Promise.resolve();
  17267. var charProcs = this.dict.get('CharProcs').getAll();
  17268. var fontResources = this.dict.get('Resources') || resources;
  17269. var charProcKeys = Object.keys(charProcs);
  17270. var charProcOperatorList = {};
  17271. for (var i = 0, n = charProcKeys.length; i < n; ++i) {
  17272. loadCharProcsPromise = loadCharProcsPromise.then(function (key) {
  17273. var glyphStream = charProcs[key];
  17274. var operatorList = new OperatorList();
  17275. return evaluator.getOperatorList(glyphStream, fontResources,
  17276. operatorList).
  17277. then(function () {
  17278. charProcOperatorList[key] = operatorList.getIR();
  17279. // Add the dependencies to the parent operator list so they are
  17280. // resolved before sub operator list is executed synchronously.
  17281. parentOperatorList.addDependencies(operatorList.dependencies);
  17282. });
  17283. }.bind(this, charProcKeys[i]));
  17284. }
  17285. this.type3Loaded = loadCharProcsPromise.then(function () {
  17286. translatedFont.charProcOperatorList = charProcOperatorList;
  17287. });
  17288. return this.type3Loaded;
  17289. }
  17290. };
  17291. return TranslatedFont;
  17292. })();
  17293. var OperatorList = (function OperatorListClosure() {
  17294. var CHUNK_SIZE = 1000;
  17295. var CHUNK_SIZE_ABOUT = CHUNK_SIZE - 5; // close to chunk size
  17296. function getTransfers(queue) {
  17297. var transfers = [];
  17298. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  17299. for (var i = 0, ii = queue.length; i < ii; i++) {
  17300. switch (fnArray[i]) {
  17301. case OPS.paintInlineImageXObject:
  17302. case OPS.paintInlineImageXObjectGroup:
  17303. case OPS.paintImageMaskXObject:
  17304. var arg = argsArray[i][0]; // first param in imgData
  17305. if (!arg.cached) {
  17306. transfers.push(arg.data.buffer);
  17307. }
  17308. break;
  17309. }
  17310. }
  17311. return transfers;
  17312. }
  17313. function OperatorList(intent, messageHandler, pageIndex) {
  17314. this.messageHandler = messageHandler;
  17315. this.fnArray = [];
  17316. this.argsArray = [];
  17317. this.dependencies = {};
  17318. this.pageIndex = pageIndex;
  17319. this.intent = intent;
  17320. }
  17321. OperatorList.prototype = {
  17322. get length() {
  17323. return this.argsArray.length;
  17324. },
  17325. addOp: function(fn, args) {
  17326. this.fnArray.push(fn);
  17327. this.argsArray.push(args);
  17328. if (this.messageHandler) {
  17329. if (this.fnArray.length >= CHUNK_SIZE) {
  17330. this.flush();
  17331. } else if (this.fnArray.length >= CHUNK_SIZE_ABOUT &&
  17332. (fn === OPS.restore || fn === OPS.endText)) {
  17333. // heuristic to flush on boundary of restore or endText
  17334. this.flush();
  17335. }
  17336. }
  17337. },
  17338. addDependency: function(dependency) {
  17339. if (dependency in this.dependencies) {
  17340. return;
  17341. }
  17342. this.dependencies[dependency] = true;
  17343. this.addOp(OPS.dependency, [dependency]);
  17344. },
  17345. addDependencies: function(dependencies) {
  17346. for (var key in dependencies) {
  17347. this.addDependency(key);
  17348. }
  17349. },
  17350. addOpList: function(opList) {
  17351. Util.extendObj(this.dependencies, opList.dependencies);
  17352. for (var i = 0, ii = opList.length; i < ii; i++) {
  17353. this.addOp(opList.fnArray[i], opList.argsArray[i]);
  17354. }
  17355. },
  17356. getIR: function() {
  17357. return {
  17358. fnArray: this.fnArray,
  17359. argsArray: this.argsArray,
  17360. length: this.length
  17361. };
  17362. },
  17363. flush: function(lastChunk) {
  17364. new QueueOptimizer().optimize(this);
  17365. var transfers = getTransfers(this);
  17366. this.messageHandler.send('RenderPageChunk', {
  17367. operatorList: {
  17368. fnArray: this.fnArray,
  17369. argsArray: this.argsArray,
  17370. lastChunk: lastChunk,
  17371. length: this.length
  17372. },
  17373. pageIndex: this.pageIndex,
  17374. intent: this.intent
  17375. }, transfers);
  17376. this.dependencies = {};
  17377. this.fnArray.length = 0;
  17378. this.argsArray.length = 0;
  17379. }
  17380. };
  17381. return OperatorList;
  17382. })();
  17383. var StateManager = (function StateManagerClosure() {
  17384. function StateManager(initialState) {
  17385. this.state = initialState;
  17386. this.stateStack = [];
  17387. }
  17388. StateManager.prototype = {
  17389. save: function () {
  17390. var old = this.state;
  17391. this.stateStack.push(this.state);
  17392. this.state = old.clone();
  17393. },
  17394. restore: function () {
  17395. var prev = this.stateStack.pop();
  17396. if (prev) {
  17397. this.state = prev;
  17398. }
  17399. },
  17400. transform: function (args) {
  17401. this.state.ctm = Util.transform(this.state.ctm, args);
  17402. }
  17403. };
  17404. return StateManager;
  17405. })();
  17406. var TextState = (function TextStateClosure() {
  17407. function TextState() {
  17408. this.ctm = new Float32Array(IDENTITY_MATRIX);
  17409. this.fontSize = 0;
  17410. this.font = null;
  17411. this.fontMatrix = FONT_IDENTITY_MATRIX;
  17412. this.textMatrix = IDENTITY_MATRIX.slice();
  17413. this.textLineMatrix = IDENTITY_MATRIX.slice();
  17414. this.charSpacing = 0;
  17415. this.wordSpacing = 0;
  17416. this.leading = 0;
  17417. this.textHScale = 1;
  17418. this.textRise = 0;
  17419. }
  17420. TextState.prototype = {
  17421. setTextMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  17422. var m = this.textMatrix;
  17423. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  17424. },
  17425. setTextLineMatrix: function TextState_setTextMatrix(a, b, c, d, e, f) {
  17426. var m = this.textLineMatrix;
  17427. m[0] = a; m[1] = b; m[2] = c; m[3] = d; m[4] = e; m[5] = f;
  17428. },
  17429. translateTextMatrix: function TextState_translateTextMatrix(x, y) {
  17430. var m = this.textMatrix;
  17431. m[4] = m[0] * x + m[2] * y + m[4];
  17432. m[5] = m[1] * x + m[3] * y + m[5];
  17433. },
  17434. translateTextLineMatrix: function TextState_translateTextMatrix(x, y) {
  17435. var m = this.textLineMatrix;
  17436. m[4] = m[0] * x + m[2] * y + m[4];
  17437. m[5] = m[1] * x + m[3] * y + m[5];
  17438. },
  17439. calcRenderMatrix: function TextState_calcRendeMatrix(ctm) {
  17440. // 9.4.4 Text Space Details
  17441. var tsm = [this.fontSize * this.textHScale, 0,
  17442. 0, this.fontSize,
  17443. 0, this.textRise];
  17444. return Util.transform(ctm, Util.transform(this.textMatrix, tsm));
  17445. },
  17446. carriageReturn: function TextState_carriageReturn() {
  17447. this.translateTextLineMatrix(0, -this.leading);
  17448. this.textMatrix = this.textLineMatrix.slice();
  17449. },
  17450. clone: function TextState_clone() {
  17451. var clone = Object.create(this);
  17452. clone.textMatrix = this.textMatrix.slice();
  17453. clone.textLineMatrix = this.textLineMatrix.slice();
  17454. clone.fontMatrix = this.fontMatrix.slice();
  17455. return clone;
  17456. }
  17457. };
  17458. return TextState;
  17459. })();
  17460. var EvalState = (function EvalStateClosure() {
  17461. function EvalState() {
  17462. this.ctm = new Float32Array(IDENTITY_MATRIX);
  17463. this.font = null;
  17464. this.textRenderingMode = TextRenderingMode.FILL;
  17465. this.fillColorSpace = ColorSpace.singletons.gray;
  17466. this.strokeColorSpace = ColorSpace.singletons.gray;
  17467. }
  17468. EvalState.prototype = {
  17469. clone: function CanvasExtraState_clone() {
  17470. return Object.create(this);
  17471. },
  17472. };
  17473. return EvalState;
  17474. })();
  17475. var EvaluatorPreprocessor = (function EvaluatorPreprocessorClosure() {
  17476. // Specifies properties for each command
  17477. //
  17478. // If variableArgs === true: [0, `numArgs`] expected
  17479. // If variableArgs === false: exactly `numArgs` expected
  17480. var OP_MAP = {
  17481. // Graphic state
  17482. w: { id: OPS.setLineWidth, numArgs: 1, variableArgs: false },
  17483. J: { id: OPS.setLineCap, numArgs: 1, variableArgs: false },
  17484. j: { id: OPS.setLineJoin, numArgs: 1, variableArgs: false },
  17485. M: { id: OPS.setMiterLimit, numArgs: 1, variableArgs: false },
  17486. d: { id: OPS.setDash, numArgs: 2, variableArgs: false },
  17487. ri: { id: OPS.setRenderingIntent, numArgs: 1, variableArgs: false },
  17488. i: { id: OPS.setFlatness, numArgs: 1, variableArgs: false },
  17489. gs: { id: OPS.setGState, numArgs: 1, variableArgs: false },
  17490. q: { id: OPS.save, numArgs: 0, variableArgs: false },
  17491. Q: { id: OPS.restore, numArgs: 0, variableArgs: false },
  17492. cm: { id: OPS.transform, numArgs: 6, variableArgs: false },
  17493. // Path
  17494. m: { id: OPS.moveTo, numArgs: 2, variableArgs: false },
  17495. l: { id: OPS.lineTo, numArgs: 2, variableArgs: false },
  17496. c: { id: OPS.curveTo, numArgs: 6, variableArgs: false },
  17497. v: { id: OPS.curveTo2, numArgs: 4, variableArgs: false },
  17498. y: { id: OPS.curveTo3, numArgs: 4, variableArgs: false },
  17499. h: { id: OPS.closePath, numArgs: 0, variableArgs: false },
  17500. re: { id: OPS.rectangle, numArgs: 4, variableArgs: false },
  17501. S: { id: OPS.stroke, numArgs: 0, variableArgs: false },
  17502. s: { id: OPS.closeStroke, numArgs: 0, variableArgs: false },
  17503. f: { id: OPS.fill, numArgs: 0, variableArgs: false },
  17504. F: { id: OPS.fill, numArgs: 0, variableArgs: false },
  17505. 'f*': { id: OPS.eoFill, numArgs: 0, variableArgs: false },
  17506. B: { id: OPS.fillStroke, numArgs: 0, variableArgs: false },
  17507. 'B*': { id: OPS.eoFillStroke, numArgs: 0, variableArgs: false },
  17508. b: { id: OPS.closeFillStroke, numArgs: 0, variableArgs: false },
  17509. 'b*': { id: OPS.closeEOFillStroke, numArgs: 0, variableArgs: false },
  17510. n: { id: OPS.endPath, numArgs: 0, variableArgs: false },
  17511. // Clipping
  17512. W: { id: OPS.clip, numArgs: 0, variableArgs: false },
  17513. 'W*': { id: OPS.eoClip, numArgs: 0, variableArgs: false },
  17514. // Text
  17515. BT: { id: OPS.beginText, numArgs: 0, variableArgs: false },
  17516. ET: { id: OPS.endText, numArgs: 0, variableArgs: false },
  17517. Tc: { id: OPS.setCharSpacing, numArgs: 1, variableArgs: false },
  17518. Tw: { id: OPS.setWordSpacing, numArgs: 1, variableArgs: false },
  17519. Tz: { id: OPS.setHScale, numArgs: 1, variableArgs: false },
  17520. TL: { id: OPS.setLeading, numArgs: 1, variableArgs: false },
  17521. Tf: { id: OPS.setFont, numArgs: 2, variableArgs: false },
  17522. Tr: { id: OPS.setTextRenderingMode, numArgs: 1, variableArgs: false },
  17523. Ts: { id: OPS.setTextRise, numArgs: 1, variableArgs: false },
  17524. Td: { id: OPS.moveText, numArgs: 2, variableArgs: false },
  17525. TD: { id: OPS.setLeadingMoveText, numArgs: 2, variableArgs: false },
  17526. Tm: { id: OPS.setTextMatrix, numArgs: 6, variableArgs: false },
  17527. 'T*': { id: OPS.nextLine, numArgs: 0, variableArgs: false },
  17528. Tj: { id: OPS.showText, numArgs: 1, variableArgs: false },
  17529. TJ: { id: OPS.showSpacedText, numArgs: 1, variableArgs: false },
  17530. '\'': { id: OPS.nextLineShowText, numArgs: 1, variableArgs: false },
  17531. '"': { id: OPS.nextLineSetSpacingShowText, numArgs: 3,
  17532. variableArgs: false },
  17533. // Type3 fonts
  17534. d0: { id: OPS.setCharWidth, numArgs: 2, variableArgs: false },
  17535. d1: { id: OPS.setCharWidthAndBounds, numArgs: 6, variableArgs: false },
  17536. // Color
  17537. CS: { id: OPS.setStrokeColorSpace, numArgs: 1, variableArgs: false },
  17538. cs: { id: OPS.setFillColorSpace, numArgs: 1, variableArgs: false },
  17539. SC: { id: OPS.setStrokeColor, numArgs: 4, variableArgs: true },
  17540. SCN: { id: OPS.setStrokeColorN, numArgs: 33, variableArgs: true },
  17541. sc: { id: OPS.setFillColor, numArgs: 4, variableArgs: true },
  17542. scn: { id: OPS.setFillColorN, numArgs: 33, variableArgs: true },
  17543. G: { id: OPS.setStrokeGray, numArgs: 1, variableArgs: false },
  17544. g: { id: OPS.setFillGray, numArgs: 1, variableArgs: false },
  17545. RG: { id: OPS.setStrokeRGBColor, numArgs: 3, variableArgs: false },
  17546. rg: { id: OPS.setFillRGBColor, numArgs: 3, variableArgs: false },
  17547. K: { id: OPS.setStrokeCMYKColor, numArgs: 4, variableArgs: false },
  17548. k: { id: OPS.setFillCMYKColor, numArgs: 4, variableArgs: false },
  17549. // Shading
  17550. sh: { id: OPS.shadingFill, numArgs: 1, variableArgs: false },
  17551. // Images
  17552. BI: { id: OPS.beginInlineImage, numArgs: 0, variableArgs: false },
  17553. ID: { id: OPS.beginImageData, numArgs: 0, variableArgs: false },
  17554. EI: { id: OPS.endInlineImage, numArgs: 1, variableArgs: false },
  17555. // XObjects
  17556. Do: { id: OPS.paintXObject, numArgs: 1, variableArgs: false },
  17557. MP: { id: OPS.markPoint, numArgs: 1, variableArgs: false },
  17558. DP: { id: OPS.markPointProps, numArgs: 2, variableArgs: false },
  17559. BMC: { id: OPS.beginMarkedContent, numArgs: 1, variableArgs: false },
  17560. BDC: { id: OPS.beginMarkedContentProps, numArgs: 2,
  17561. variableArgs: false },
  17562. EMC: { id: OPS.endMarkedContent, numArgs: 0, variableArgs: false },
  17563. // Compatibility
  17564. BX: { id: OPS.beginCompat, numArgs: 0, variableArgs: false },
  17565. EX: { id: OPS.endCompat, numArgs: 0, variableArgs: false },
  17566. // (reserved partial commands for the lexer)
  17567. BM: null,
  17568. BD: null,
  17569. 'true': null,
  17570. fa: null,
  17571. fal: null,
  17572. fals: null,
  17573. 'false': null,
  17574. nu: null,
  17575. nul: null,
  17576. 'null': null
  17577. };
  17578. function EvaluatorPreprocessor(stream, xref, stateManager) {
  17579. // TODO(mduan): pass array of knownCommands rather than OP_MAP
  17580. // dictionary
  17581. this.parser = new Parser(new Lexer(stream, OP_MAP), false, xref);
  17582. this.stateManager = stateManager;
  17583. this.nonProcessedArgs = [];
  17584. }
  17585. EvaluatorPreprocessor.prototype = {
  17586. get savedStatesDepth() {
  17587. return this.stateManager.stateStack.length;
  17588. },
  17589. read: function EvaluatorPreprocessor_read(operation) {
  17590. // We use an array to represent args, except we use |null| to represent
  17591. // no args because it's more compact than an empty array.
  17592. var args = null;
  17593. while (true) {
  17594. var obj = this.parser.getObj();
  17595. if (isCmd(obj)) {
  17596. var cmd = obj.cmd;
  17597. // Check that the command is valid
  17598. var opSpec = OP_MAP[cmd];
  17599. if (!opSpec) {
  17600. warn('Unknown command "' + cmd + '"');
  17601. continue;
  17602. }
  17603. var fn = opSpec.id;
  17604. var numArgs = opSpec.numArgs;
  17605. if (!opSpec.variableArgs) {
  17606. // Postscript commands can be nested, e.g. /F2 /GS2 gs 5.711 Tf
  17607. var argsLength = args !== null ? args.length : 0;
  17608. if (argsLength !== numArgs) {
  17609. var nonProcessedArgs = this.nonProcessedArgs;
  17610. while (argsLength > numArgs) {
  17611. nonProcessedArgs.push(args.shift());
  17612. argsLength--;
  17613. }
  17614. while (argsLength < numArgs && nonProcessedArgs.length !== 0) {
  17615. if (!args) {
  17616. args = [];
  17617. }
  17618. args.unshift(nonProcessedArgs.pop());
  17619. argsLength++;
  17620. }
  17621. }
  17622. if (argsLength < numArgs) {
  17623. // If we receive too few args, it's not possible to possible
  17624. // to execute the command, so skip the command
  17625. info('Command ' + fn + ': because expected ' +
  17626. numArgs + ' args, but received ' + argsLength +
  17627. ' args; skipping');
  17628. args = null;
  17629. continue;
  17630. }
  17631. } else if (argsLength > numArgs) {
  17632. info('Command ' + fn + ': expected [0,' + numArgs +
  17633. '] args, but received ' + argsLength + ' args');
  17634. }
  17635. // TODO figure out how to type-check vararg functions
  17636. this.preprocessCommand(fn, args);
  17637. operation.fn = fn;
  17638. operation.args = args;
  17639. return true;
  17640. } else {
  17641. if (isEOF(obj)) {
  17642. return false; // no more commands
  17643. }
  17644. // argument
  17645. if (obj !== null) {
  17646. if (!args) {
  17647. args = [];
  17648. }
  17649. args.push((obj instanceof Dict ? obj.getAll() : obj));
  17650. assert(args.length <= 33, 'Too many arguments');
  17651. }
  17652. }
  17653. }
  17654. },
  17655. preprocessCommand:
  17656. function EvaluatorPreprocessor_preprocessCommand(fn, args) {
  17657. switch (fn | 0) {
  17658. case OPS.save:
  17659. this.stateManager.save();
  17660. break;
  17661. case OPS.restore:
  17662. this.stateManager.restore();
  17663. break;
  17664. case OPS.transform:
  17665. this.stateManager.transform(args);
  17666. break;
  17667. }
  17668. }
  17669. };
  17670. return EvaluatorPreprocessor;
  17671. })();
  17672. var QueueOptimizer = (function QueueOptimizerClosure() {
  17673. function addState(parentState, pattern, fn) {
  17674. var state = parentState;
  17675. for (var i = 0, ii = pattern.length - 1; i < ii; i++) {
  17676. var item = pattern[i];
  17677. state = (state[item] || (state[item] = []));
  17678. }
  17679. state[pattern[pattern.length - 1]] = fn;
  17680. }
  17681. function handlePaintSolidColorImageMask(index, count, fnArray, argsArray) {
  17682. // Handles special case of mainly LaTeX documents which
  17683. // use image masks to draw lines with the current fill style.
  17684. // 'count' groups of (save, transform, paintImageMaskXObject, restore)+
  17685. // have been found at index.
  17686. for (var i = 0; i < count; i++) {
  17687. var arg = argsArray[index + 4 * i + 2];
  17688. var imageMask = arg.length === 1 && arg[0];
  17689. if (imageMask && imageMask.width === 1 && imageMask.height === 1 &&
  17690. (!imageMask.data.length || (imageMask.data.length === 1 &&
  17691. imageMask.data[0] === 0))) {
  17692. fnArray[index + 4 * i + 2] = OPS.paintSolidColorImageMask;
  17693. continue;
  17694. }
  17695. break;
  17696. }
  17697. return count - i;
  17698. }
  17699. var InitialState = [];
  17700. addState(InitialState,
  17701. [OPS.save, OPS.transform, OPS.paintInlineImageXObject, OPS.restore],
  17702. function foundInlineImageGroup(context) {
  17703. // grouping paintInlineImageXObject's into paintInlineImageXObjectGroup
  17704. // searching for (save, transform, paintInlineImageXObject, restore)+
  17705. var MIN_IMAGES_IN_INLINE_IMAGES_BLOCK = 10;
  17706. var MAX_IMAGES_IN_INLINE_IMAGES_BLOCK = 200;
  17707. var MAX_WIDTH = 1000;
  17708. var IMAGE_PADDING = 1;
  17709. var fnArray = context.fnArray, argsArray = context.argsArray;
  17710. var j = context.currentOperation - 3, i = j + 4;
  17711. var ii = fnArray.length;
  17712. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  17713. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_INLINE_IMAGES_BLOCK);
  17714. if (count < MIN_IMAGES_IN_INLINE_IMAGES_BLOCK) {
  17715. context.currentOperation = i - 1;
  17716. return;
  17717. }
  17718. // assuming that heights of those image is too small (~1 pixel)
  17719. // packing as much as possible by lines
  17720. var maxX = 0;
  17721. var map = [], maxLineHeight = 0;
  17722. var currentX = IMAGE_PADDING, currentY = IMAGE_PADDING;
  17723. var q;
  17724. for (q = 0; q < count; q++) {
  17725. var transform = argsArray[j + (q << 2) + 1];
  17726. var img = argsArray[j + (q << 2) + 2][0];
  17727. if (currentX + img.width > MAX_WIDTH) {
  17728. // starting new line
  17729. maxX = Math.max(maxX, currentX);
  17730. currentY += maxLineHeight + 2 * IMAGE_PADDING;
  17731. currentX = 0;
  17732. maxLineHeight = 0;
  17733. }
  17734. map.push({
  17735. transform: transform,
  17736. x: currentX, y: currentY,
  17737. w: img.width, h: img.height
  17738. });
  17739. currentX += img.width + 2 * IMAGE_PADDING;
  17740. maxLineHeight = Math.max(maxLineHeight, img.height);
  17741. }
  17742. var imgWidth = Math.max(maxX, currentX) + IMAGE_PADDING;
  17743. var imgHeight = currentY + maxLineHeight + IMAGE_PADDING;
  17744. var imgData = new Uint8Array(imgWidth * imgHeight * 4);
  17745. var imgRowSize = imgWidth << 2;
  17746. for (q = 0; q < count; q++) {
  17747. var data = argsArray[j + (q << 2) + 2][0].data;
  17748. // copy image by lines and extends pixels into padding
  17749. var rowSize = map[q].w << 2;
  17750. var dataOffset = 0;
  17751. var offset = (map[q].x + map[q].y * imgWidth) << 2;
  17752. imgData.set(data.subarray(0, rowSize), offset - imgRowSize);
  17753. for (var k = 0, kk = map[q].h; k < kk; k++) {
  17754. imgData.set(data.subarray(dataOffset, dataOffset + rowSize), offset);
  17755. dataOffset += rowSize;
  17756. offset += imgRowSize;
  17757. }
  17758. imgData.set(data.subarray(dataOffset - rowSize, dataOffset), offset);
  17759. while (offset >= 0) {
  17760. data[offset - 4] = data[offset];
  17761. data[offset - 3] = data[offset + 1];
  17762. data[offset - 2] = data[offset + 2];
  17763. data[offset - 1] = data[offset + 3];
  17764. data[offset + rowSize] = data[offset + rowSize - 4];
  17765. data[offset + rowSize + 1] = data[offset + rowSize - 3];
  17766. data[offset + rowSize + 2] = data[offset + rowSize - 2];
  17767. data[offset + rowSize + 3] = data[offset + rowSize - 1];
  17768. offset -= imgRowSize;
  17769. }
  17770. }
  17771. // replacing queue items
  17772. fnArray.splice(j, count * 4, OPS.paintInlineImageXObjectGroup);
  17773. argsArray.splice(j, count * 4,
  17774. [{ width: imgWidth, height: imgHeight, kind: ImageKind.RGBA_32BPP,
  17775. data: imgData }, map]);
  17776. context.currentOperation = j;
  17777. });
  17778. addState(InitialState,
  17779. [OPS.save, OPS.transform, OPS.paintImageMaskXObject, OPS.restore],
  17780. function foundImageMaskGroup(context) {
  17781. // grouping paintImageMaskXObject's into paintImageMaskXObjectGroup
  17782. // searching for (save, transform, paintImageMaskXObject, restore)+
  17783. var MIN_IMAGES_IN_MASKS_BLOCK = 10;
  17784. var MAX_IMAGES_IN_MASKS_BLOCK = 100;
  17785. var MAX_SAME_IMAGES_IN_MASKS_BLOCK = 1000;
  17786. var fnArray = context.fnArray, argsArray = context.argsArray;
  17787. var j = context.currentOperation - 3, i = j + 4;
  17788. var ii = fnArray.length, q;
  17789. for (; i < ii && fnArray[i - 4] === fnArray[i]; i++) {}
  17790. var count = (i - j) >> 2;
  17791. count = handlePaintSolidColorImageMask(j, count, fnArray, argsArray);
  17792. if (count < MIN_IMAGES_IN_MASKS_BLOCK) {
  17793. context.currentOperation = i - 1;
  17794. return;
  17795. }
  17796. var isSameImage = false;
  17797. var transformArgs;
  17798. if (argsArray[j + 1][1] === 0 && argsArray[j + 1][2] === 0) {
  17799. i = j + 4;
  17800. isSameImage = true;
  17801. for (q = 1; q < count; q++, i += 4) {
  17802. var prevTransformArgs = argsArray[i - 3];
  17803. transformArgs = argsArray[i + 1];
  17804. if (argsArray[i - 2][0] !== argsArray[i + 2][0] ||
  17805. prevTransformArgs[0] !== transformArgs[0] ||
  17806. prevTransformArgs[1] !== transformArgs[1] ||
  17807. prevTransformArgs[2] !== transformArgs[2] ||
  17808. prevTransformArgs[3] !== transformArgs[3]) {
  17809. if (q < MIN_IMAGES_IN_MASKS_BLOCK) {
  17810. isSameImage = false;
  17811. } else {
  17812. count = q;
  17813. }
  17814. break; // different image or transform
  17815. }
  17816. }
  17817. }
  17818. if (isSameImage) {
  17819. count = Math.min(count, MAX_SAME_IMAGES_IN_MASKS_BLOCK);
  17820. var positions = new Float32Array(count * 2);
  17821. i = j + 1;
  17822. for (q = 0; q < count; q++) {
  17823. transformArgs = argsArray[i];
  17824. positions[(q << 1)] = transformArgs[4];
  17825. positions[(q << 1) + 1] = transformArgs[5];
  17826. i += 4;
  17827. }
  17828. // replacing queue items
  17829. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectRepeat);
  17830. argsArray.splice(j, count * 4, [argsArray[j + 2][0],
  17831. argsArray[j + 1][0], argsArray[j + 1][3], positions]);
  17832. context.currentOperation = j;
  17833. } else {
  17834. count = Math.min(count, MAX_IMAGES_IN_MASKS_BLOCK);
  17835. var images = [];
  17836. for (q = 0; q < count; q++) {
  17837. transformArgs = argsArray[j + (q << 2) + 1];
  17838. var maskParams = argsArray[j + (q << 2) + 2][0];
  17839. images.push({ data: maskParams.data, width: maskParams.width,
  17840. height: maskParams.height,
  17841. transform: transformArgs });
  17842. }
  17843. // replacing queue items
  17844. fnArray.splice(j, count * 4, OPS.paintImageMaskXObjectGroup);
  17845. argsArray.splice(j, count * 4, [images]);
  17846. context.currentOperation = j;
  17847. }
  17848. });
  17849. addState(InitialState,
  17850. [OPS.save, OPS.transform, OPS.paintImageXObject, OPS.restore],
  17851. function (context) {
  17852. var MIN_IMAGES_IN_BLOCK = 3;
  17853. var MAX_IMAGES_IN_BLOCK = 1000;
  17854. var fnArray = context.fnArray, argsArray = context.argsArray;
  17855. var j = context.currentOperation - 3, i = j + 4;
  17856. if (argsArray[j + 1][1] !== 0 || argsArray[j + 1][2] !== 0) {
  17857. return;
  17858. }
  17859. var ii = fnArray.length;
  17860. var transformArgs;
  17861. for (; i + 3 < ii && fnArray[i - 4] === fnArray[i]; i += 4) {
  17862. if (fnArray[i - 3] !== fnArray[i + 1] ||
  17863. fnArray[i - 2] !== fnArray[i + 2] ||
  17864. fnArray[i - 1] !== fnArray[i + 3]) {
  17865. break;
  17866. }
  17867. if (argsArray[i - 2][0] !== argsArray[i + 2][0]) {
  17868. break; // different image
  17869. }
  17870. var prevTransformArgs = argsArray[i - 3];
  17871. transformArgs = argsArray[i + 1];
  17872. if (prevTransformArgs[0] !== transformArgs[0] ||
  17873. prevTransformArgs[1] !== transformArgs[1] ||
  17874. prevTransformArgs[2] !== transformArgs[2] ||
  17875. prevTransformArgs[3] !== transformArgs[3]) {
  17876. break; // different transform
  17877. }
  17878. }
  17879. var count = Math.min((i - j) >> 2, MAX_IMAGES_IN_BLOCK);
  17880. if (count < MIN_IMAGES_IN_BLOCK) {
  17881. context.currentOperation = i - 1;
  17882. return;
  17883. }
  17884. var positions = new Float32Array(count * 2);
  17885. i = j + 1;
  17886. for (var q = 0; q < count; q++) {
  17887. transformArgs = argsArray[i];
  17888. positions[(q << 1)] = transformArgs[4];
  17889. positions[(q << 1) + 1] = transformArgs[5];
  17890. i += 4;
  17891. }
  17892. var args = [argsArray[j + 2][0], argsArray[j + 1][0],
  17893. argsArray[j + 1][3], positions];
  17894. // replacing queue items
  17895. fnArray.splice(j, count * 4, OPS.paintImageXObjectRepeat);
  17896. argsArray.splice(j, count * 4, args);
  17897. context.currentOperation = j;
  17898. });
  17899. addState(InitialState,
  17900. [OPS.beginText, OPS.setFont, OPS.setTextMatrix, OPS.showText, OPS.endText],
  17901. function (context) {
  17902. // moving single chars with same font into beginText/endText groups
  17903. // searching for (beginText, setFont, setTextMatrix, showText, endText)+
  17904. var MIN_CHARS_IN_BLOCK = 3;
  17905. var MAX_CHARS_IN_BLOCK = 1000;
  17906. var fnArray = context.fnArray, argsArray = context.argsArray;
  17907. var j = context.currentOperation - 4, i = j + 5;
  17908. var ii = fnArray.length;
  17909. for (; i < ii && fnArray[i - 5] === fnArray[i]; i++) {
  17910. if (fnArray[i] === OPS.setFont) {
  17911. if (argsArray[i - 5][0] !== argsArray[i][0] ||
  17912. argsArray[i - 5][1] !== argsArray[i][1]) {
  17913. break;
  17914. }
  17915. }
  17916. }
  17917. var count = Math.min(((i - j) / 5) | 0, MAX_CHARS_IN_BLOCK);
  17918. if (count < MIN_CHARS_IN_BLOCK) {
  17919. context.currentOperation = i - 1;
  17920. return;
  17921. }
  17922. if (j >= 4 && fnArray[j - 4] === fnArray[j + 1] &&
  17923. fnArray[j - 3] === fnArray[j + 2] &&
  17924. fnArray[j - 2] === fnArray[j + 3] &&
  17925. fnArray[j - 1] === fnArray[j + 4] &&
  17926. argsArray[j - 4][0] === argsArray[j + 1][0] &&
  17927. argsArray[j - 4][1] === argsArray[j + 1][1]) {
  17928. // extending one block ahead (very first block might have 'dependency')
  17929. count++;
  17930. j -= 5;
  17931. }
  17932. var k = j + 7;
  17933. i = j + 4;
  17934. for (var q = 1; q < count; q++) {
  17935. fnArray[i] = fnArray[k];
  17936. argsArray[i] = argsArray[k];
  17937. fnArray[i + 1] = fnArray[k + 1];
  17938. argsArray[i + 1] = argsArray[k + 1];
  17939. i += 2;
  17940. k += 5;
  17941. }
  17942. var removed = (count - 1) * 3;
  17943. fnArray.splice(i, removed);
  17944. argsArray.splice(i, removed);
  17945. context.currentOperation = i;
  17946. });
  17947. function QueueOptimizer() {}
  17948. QueueOptimizer.prototype = {
  17949. optimize: function QueueOptimizer_optimize(queue) {
  17950. var fnArray = queue.fnArray, argsArray = queue.argsArray;
  17951. var context = {
  17952. currentOperation: 0,
  17953. fnArray: fnArray,
  17954. argsArray: argsArray
  17955. };
  17956. var i, ii = argsArray.length;
  17957. var state;
  17958. for (i = 0; i < ii; i++) {
  17959. state = (state || InitialState)[fnArray[i]];
  17960. if (typeof state === 'function') { // we found some handler
  17961. context.currentOperation = i;
  17962. state = state(context);
  17963. i = context.currentOperation;
  17964. ii = context.fnArray.length;
  17965. }
  17966. }
  17967. }
  17968. };
  17969. return QueueOptimizer;
  17970. })();
  17971. var BUILT_IN_CMAPS = [
  17972. // << Start unicode maps.
  17973. 'Adobe-GB1-UCS2',
  17974. 'Adobe-CNS1-UCS2',
  17975. 'Adobe-Japan1-UCS2',
  17976. 'Adobe-Korea1-UCS2',
  17977. // >> End unicode maps.
  17978. '78-EUC-H',
  17979. '78-EUC-V',
  17980. '78-H',
  17981. '78-RKSJ-H',
  17982. '78-RKSJ-V',
  17983. '78-V',
  17984. '78ms-RKSJ-H',
  17985. '78ms-RKSJ-V',
  17986. '83pv-RKSJ-H',
  17987. '90ms-RKSJ-H',
  17988. '90ms-RKSJ-V',
  17989. '90msp-RKSJ-H',
  17990. '90msp-RKSJ-V',
  17991. '90pv-RKSJ-H',
  17992. '90pv-RKSJ-V',
  17993. 'Add-H',
  17994. 'Add-RKSJ-H',
  17995. 'Add-RKSJ-V',
  17996. 'Add-V',
  17997. 'Adobe-CNS1-0',
  17998. 'Adobe-CNS1-1',
  17999. 'Adobe-CNS1-2',
  18000. 'Adobe-CNS1-3',
  18001. 'Adobe-CNS1-4',
  18002. 'Adobe-CNS1-5',
  18003. 'Adobe-CNS1-6',
  18004. 'Adobe-GB1-0',
  18005. 'Adobe-GB1-1',
  18006. 'Adobe-GB1-2',
  18007. 'Adobe-GB1-3',
  18008. 'Adobe-GB1-4',
  18009. 'Adobe-GB1-5',
  18010. 'Adobe-Japan1-0',
  18011. 'Adobe-Japan1-1',
  18012. 'Adobe-Japan1-2',
  18013. 'Adobe-Japan1-3',
  18014. 'Adobe-Japan1-4',
  18015. 'Adobe-Japan1-5',
  18016. 'Adobe-Japan1-6',
  18017. 'Adobe-Korea1-0',
  18018. 'Adobe-Korea1-1',
  18019. 'Adobe-Korea1-2',
  18020. 'B5-H',
  18021. 'B5-V',
  18022. 'B5pc-H',
  18023. 'B5pc-V',
  18024. 'CNS-EUC-H',
  18025. 'CNS-EUC-V',
  18026. 'CNS1-H',
  18027. 'CNS1-V',
  18028. 'CNS2-H',
  18029. 'CNS2-V',
  18030. 'ETHK-B5-H',
  18031. 'ETHK-B5-V',
  18032. 'ETen-B5-H',
  18033. 'ETen-B5-V',
  18034. 'ETenms-B5-H',
  18035. 'ETenms-B5-V',
  18036. 'EUC-H',
  18037. 'EUC-V',
  18038. 'Ext-H',
  18039. 'Ext-RKSJ-H',
  18040. 'Ext-RKSJ-V',
  18041. 'Ext-V',
  18042. 'GB-EUC-H',
  18043. 'GB-EUC-V',
  18044. 'GB-H',
  18045. 'GB-V',
  18046. 'GBK-EUC-H',
  18047. 'GBK-EUC-V',
  18048. 'GBK2K-H',
  18049. 'GBK2K-V',
  18050. 'GBKp-EUC-H',
  18051. 'GBKp-EUC-V',
  18052. 'GBT-EUC-H',
  18053. 'GBT-EUC-V',
  18054. 'GBT-H',
  18055. 'GBT-V',
  18056. 'GBTpc-EUC-H',
  18057. 'GBTpc-EUC-V',
  18058. 'GBpc-EUC-H',
  18059. 'GBpc-EUC-V',
  18060. 'H',
  18061. 'HKdla-B5-H',
  18062. 'HKdla-B5-V',
  18063. 'HKdlb-B5-H',
  18064. 'HKdlb-B5-V',
  18065. 'HKgccs-B5-H',
  18066. 'HKgccs-B5-V',
  18067. 'HKm314-B5-H',
  18068. 'HKm314-B5-V',
  18069. 'HKm471-B5-H',
  18070. 'HKm471-B5-V',
  18071. 'HKscs-B5-H',
  18072. 'HKscs-B5-V',
  18073. 'Hankaku',
  18074. 'Hiragana',
  18075. 'KSC-EUC-H',
  18076. 'KSC-EUC-V',
  18077. 'KSC-H',
  18078. 'KSC-Johab-H',
  18079. 'KSC-Johab-V',
  18080. 'KSC-V',
  18081. 'KSCms-UHC-H',
  18082. 'KSCms-UHC-HW-H',
  18083. 'KSCms-UHC-HW-V',
  18084. 'KSCms-UHC-V',
  18085. 'KSCpc-EUC-H',
  18086. 'KSCpc-EUC-V',
  18087. 'Katakana',
  18088. 'NWP-H',
  18089. 'NWP-V',
  18090. 'RKSJ-H',
  18091. 'RKSJ-V',
  18092. 'Roman',
  18093. 'UniCNS-UCS2-H',
  18094. 'UniCNS-UCS2-V',
  18095. 'UniCNS-UTF16-H',
  18096. 'UniCNS-UTF16-V',
  18097. 'UniCNS-UTF32-H',
  18098. 'UniCNS-UTF32-V',
  18099. 'UniCNS-UTF8-H',
  18100. 'UniCNS-UTF8-V',
  18101. 'UniGB-UCS2-H',
  18102. 'UniGB-UCS2-V',
  18103. 'UniGB-UTF16-H',
  18104. 'UniGB-UTF16-V',
  18105. 'UniGB-UTF32-H',
  18106. 'UniGB-UTF32-V',
  18107. 'UniGB-UTF8-H',
  18108. 'UniGB-UTF8-V',
  18109. 'UniJIS-UCS2-H',
  18110. 'UniJIS-UCS2-HW-H',
  18111. 'UniJIS-UCS2-HW-V',
  18112. 'UniJIS-UCS2-V',
  18113. 'UniJIS-UTF16-H',
  18114. 'UniJIS-UTF16-V',
  18115. 'UniJIS-UTF32-H',
  18116. 'UniJIS-UTF32-V',
  18117. 'UniJIS-UTF8-H',
  18118. 'UniJIS-UTF8-V',
  18119. 'UniJIS2004-UTF16-H',
  18120. 'UniJIS2004-UTF16-V',
  18121. 'UniJIS2004-UTF32-H',
  18122. 'UniJIS2004-UTF32-V',
  18123. 'UniJIS2004-UTF8-H',
  18124. 'UniJIS2004-UTF8-V',
  18125. 'UniJISPro-UCS2-HW-V',
  18126. 'UniJISPro-UCS2-V',
  18127. 'UniJISPro-UTF8-V',
  18128. 'UniJISX0213-UTF32-H',
  18129. 'UniJISX0213-UTF32-V',
  18130. 'UniJISX02132004-UTF32-H',
  18131. 'UniJISX02132004-UTF32-V',
  18132. 'UniKS-UCS2-H',
  18133. 'UniKS-UCS2-V',
  18134. 'UniKS-UTF16-H',
  18135. 'UniKS-UTF16-V',
  18136. 'UniKS-UTF32-H',
  18137. 'UniKS-UTF32-V',
  18138. 'UniKS-UTF8-H',
  18139. 'UniKS-UTF8-V',
  18140. 'V',
  18141. 'WP-Symbol'];
  18142. // CMap, not to be confused with TrueType's cmap.
  18143. var CMap = (function CMapClosure() {
  18144. function CMap(builtInCMap) {
  18145. // Codespace ranges are stored as follows:
  18146. // [[1BytePairs], [2BytePairs], [3BytePairs], [4BytePairs]]
  18147. // where nBytePairs are ranges e.g. [low1, high1, low2, high2, ...]
  18148. this.codespaceRanges = [[], [], [], []];
  18149. this.numCodespaceRanges = 0;
  18150. this.map = [];
  18151. this.vertical = false;
  18152. this.useCMap = null;
  18153. this.builtInCMap = builtInCMap;
  18154. }
  18155. CMap.prototype = {
  18156. addCodespaceRange: function(n, low, high) {
  18157. this.codespaceRanges[n - 1].push(low, high);
  18158. this.numCodespaceRanges++;
  18159. },
  18160. mapRange: function(low, high, dstLow) {
  18161. var lastByte = dstLow.length - 1;
  18162. while (low <= high) {
  18163. this.map[low] = dstLow;
  18164. // Only the last byte has to be incremented.
  18165. dstLow = dstLow.substr(0, lastByte) +
  18166. String.fromCharCode(dstLow.charCodeAt(lastByte) + 1);
  18167. ++low;
  18168. }
  18169. },
  18170. mapRangeToArray: function(low, high, array) {
  18171. var i = 0, ii = array.length;
  18172. while (low <= high && i < ii) {
  18173. this.map[low] = array[i++];
  18174. ++low;
  18175. }
  18176. },
  18177. mapOne: function(src, dst) {
  18178. this.map[src] = dst;
  18179. },
  18180. lookup: function(code) {
  18181. return this.map[code];
  18182. },
  18183. readCharCode: function(str, offset) {
  18184. var c = 0;
  18185. var codespaceRanges = this.codespaceRanges;
  18186. var codespaceRangesLen = this.codespaceRanges.length;
  18187. // 9.7.6.2 CMap Mapping
  18188. // The code length is at most 4.
  18189. for (var n = 0; n < codespaceRangesLen; n++) {
  18190. c = ((c << 8) | str.charCodeAt(offset + n)) >>> 0;
  18191. // Check each codespace range to see if it falls within.
  18192. var codespaceRange = codespaceRanges[n];
  18193. for (var k = 0, kk = codespaceRange.length; k < kk;) {
  18194. var low = codespaceRange[k++];
  18195. var high = codespaceRange[k++];
  18196. if (c >= low && c <= high) {
  18197. return [c, n + 1];
  18198. }
  18199. }
  18200. }
  18201. return [0, 1];
  18202. }
  18203. };
  18204. return CMap;
  18205. })();
  18206. var IdentityCMap = (function IdentityCMapClosure() {
  18207. function IdentityCMap(vertical, n) {
  18208. CMap.call(this);
  18209. this.vertical = vertical;
  18210. this.addCodespaceRange(n, 0, 0xffff);
  18211. this.mapRange(0, 0xffff, '\u0000');
  18212. }
  18213. Util.inherit(IdentityCMap, CMap, {});
  18214. return IdentityCMap;
  18215. })();
  18216. var BinaryCMapReader = (function BinaryCMapReaderClosure() {
  18217. function fetchBinaryData(url) {
  18218. var nonBinaryRequest = PDFJS.disableWorker;
  18219. var request = new XMLHttpRequest();
  18220. request.open('GET', url, false);
  18221. if (!nonBinaryRequest) {
  18222. try {
  18223. request.responseType = 'arraybuffer';
  18224. nonBinaryRequest = request.responseType !== 'arraybuffer';
  18225. } catch (e) {
  18226. nonBinaryRequest = true;
  18227. }
  18228. }
  18229. if (nonBinaryRequest && request.overrideMimeType) {
  18230. request.overrideMimeType('text/plain; charset=x-user-defined');
  18231. }
  18232. request.send(null);
  18233. if (request.status === 0 && /^https?:/i.test(url)) {
  18234. error('Unable to get binary cMap at: ' + url);
  18235. }
  18236. if (nonBinaryRequest) {
  18237. var data = Array.prototype.map.call(request.responseText, function (ch) {
  18238. return ch.charCodeAt(0) & 255;
  18239. });
  18240. return new Uint8Array(data);
  18241. }
  18242. return new Uint8Array(request.response);
  18243. }
  18244. function hexToInt(a, size) {
  18245. var n = 0;
  18246. for (var i = 0; i <= size; i++) {
  18247. n = (n << 8) | a[i];
  18248. }
  18249. return n >>> 0;
  18250. }
  18251. function hexToStr(a, size) {
  18252. return String.fromCharCode.apply(null, a.subarray(0, size + 1));
  18253. }
  18254. function addHex(a, b, size) {
  18255. var c = 0;
  18256. for (var i = size; i >= 0; i--) {
  18257. c += a[i] + b[i];
  18258. a[i] = c & 255;
  18259. c >>= 8;
  18260. }
  18261. }
  18262. function incHex(a, size) {
  18263. var c = 1;
  18264. for (var i = size; i >= 0 && c > 0; i--) {
  18265. c += a[i];
  18266. a[i] = c & 255;
  18267. c >>= 8;
  18268. }
  18269. }
  18270. var MAX_NUM_SIZE = 16;
  18271. var MAX_ENCODED_NUM_SIZE = 19; // ceil(MAX_NUM_SIZE * 7 / 8)
  18272. function BinaryCMapStream(data) {
  18273. this.buffer = data;
  18274. this.pos = 0;
  18275. this.end = data.length;
  18276. this.tmpBuf = new Uint8Array(MAX_ENCODED_NUM_SIZE);
  18277. }
  18278. BinaryCMapStream.prototype = {
  18279. readByte: function () {
  18280. if (this.pos >= this.end) {
  18281. return -1;
  18282. }
  18283. return this.buffer[this.pos++];
  18284. },
  18285. readNumber: function () {
  18286. var n = 0;
  18287. var last;
  18288. do {
  18289. var b = this.readByte();
  18290. if (b < 0) {
  18291. error('unexpected EOF in bcmap');
  18292. }
  18293. last = !(b & 0x80);
  18294. n = (n << 7) | (b & 0x7F);
  18295. } while (!last);
  18296. return n;
  18297. },
  18298. readSigned: function () {
  18299. var n = this.readNumber();
  18300. return (n & 1) ? ~(n >>> 1) : n >>> 1;
  18301. },
  18302. readHex: function (num, size) {
  18303. num.set(this.buffer.subarray(this.pos,
  18304. this.pos + size + 1));
  18305. this.pos += size + 1;
  18306. },
  18307. readHexNumber: function (num, size) {
  18308. var last;
  18309. var stack = this.tmpBuf, sp = 0;
  18310. do {
  18311. var b = this.readByte();
  18312. if (b < 0) {
  18313. error('unexpected EOF in bcmap');
  18314. }
  18315. last = !(b & 0x80);
  18316. stack[sp++] = b & 0x7F;
  18317. } while (!last);
  18318. var i = size, buffer = 0, bufferSize = 0;
  18319. while (i >= 0) {
  18320. while (bufferSize < 8 && stack.length > 0) {
  18321. buffer = (stack[--sp] << bufferSize) | buffer;
  18322. bufferSize += 7;
  18323. }
  18324. num[i] = buffer & 255;
  18325. i--;
  18326. buffer >>= 8;
  18327. bufferSize -= 8;
  18328. }
  18329. },
  18330. readHexSigned: function (num, size) {
  18331. this.readHexNumber(num, size);
  18332. var sign = num[size] & 1 ? 255 : 0;
  18333. var c = 0;
  18334. for (var i = 0; i <= size; i++) {
  18335. c = ((c & 1) << 8) | num[i];
  18336. num[i] = (c >> 1) ^ sign;
  18337. }
  18338. },
  18339. readString: function () {
  18340. var len = this.readNumber();
  18341. var s = '';
  18342. for (var i = 0; i < len; i++) {
  18343. s += String.fromCharCode(this.readNumber());
  18344. }
  18345. return s;
  18346. }
  18347. };
  18348. function processBinaryCMap(url, cMap, extend) {
  18349. var data = fetchBinaryData(url);
  18350. var stream = new BinaryCMapStream(data);
  18351. var header = stream.readByte();
  18352. cMap.vertical = !!(header & 1);
  18353. var useCMap = null;
  18354. var start = new Uint8Array(MAX_NUM_SIZE);
  18355. var end = new Uint8Array(MAX_NUM_SIZE);
  18356. var char = new Uint8Array(MAX_NUM_SIZE);
  18357. var charCode = new Uint8Array(MAX_NUM_SIZE);
  18358. var tmp = new Uint8Array(MAX_NUM_SIZE);
  18359. var code;
  18360. var b;
  18361. while ((b = stream.readByte()) >= 0) {
  18362. var type = b >> 5;
  18363. if (type === 7) { // metadata, e.g. comment or usecmap
  18364. switch (b & 0x1F) {
  18365. case 0:
  18366. stream.readString(); // skipping comment
  18367. break;
  18368. case 1:
  18369. useCMap = stream.readString();
  18370. break;
  18371. }
  18372. continue;
  18373. }
  18374. var sequence = !!(b & 0x10);
  18375. var dataSize = b & 15;
  18376. assert(dataSize + 1 <= MAX_NUM_SIZE);
  18377. var ucs2DataSize = 1;
  18378. var subitemsCount = stream.readNumber();
  18379. var i;
  18380. switch (type) {
  18381. case 0: // codespacerange
  18382. stream.readHex(start, dataSize);
  18383. stream.readHexNumber(end, dataSize);
  18384. addHex(end, start, dataSize);
  18385. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  18386. hexToInt(end, dataSize));
  18387. for (i = 1; i < subitemsCount; i++) {
  18388. incHex(end, dataSize);
  18389. stream.readHexNumber(start, dataSize);
  18390. addHex(start, end, dataSize);
  18391. stream.readHexNumber(end, dataSize);
  18392. addHex(end, start, dataSize);
  18393. cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize),
  18394. hexToInt(end, dataSize));
  18395. }
  18396. break;
  18397. case 1: // notdefrange
  18398. stream.readHex(start, dataSize);
  18399. stream.readHexNumber(end, dataSize);
  18400. addHex(end, start, dataSize);
  18401. code = stream.readNumber();
  18402. // undefined range, skipping
  18403. for (i = 1; i < subitemsCount; i++) {
  18404. incHex(end, dataSize);
  18405. stream.readHexNumber(start, dataSize);
  18406. addHex(start, end, dataSize);
  18407. stream.readHexNumber(end, dataSize);
  18408. addHex(end, start, dataSize);
  18409. code = stream.readNumber();
  18410. // nop
  18411. }
  18412. break;
  18413. case 2: // cidchar
  18414. stream.readHex(char, dataSize);
  18415. code = stream.readNumber();
  18416. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  18417. for (i = 1; i < subitemsCount; i++) {
  18418. incHex(char, dataSize);
  18419. if (!sequence) {
  18420. stream.readHexNumber(tmp, dataSize);
  18421. addHex(char, tmp, dataSize);
  18422. }
  18423. code = stream.readSigned() + (code + 1);
  18424. cMap.mapOne(hexToInt(char, dataSize), String.fromCharCode(code));
  18425. }
  18426. break;
  18427. case 3: // cidrange
  18428. stream.readHex(start, dataSize);
  18429. stream.readHexNumber(end, dataSize);
  18430. addHex(end, start, dataSize);
  18431. code = stream.readNumber();
  18432. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  18433. String.fromCharCode(code));
  18434. for (i = 1; i < subitemsCount; i++) {
  18435. incHex(end, dataSize);
  18436. if (!sequence) {
  18437. stream.readHexNumber(start, dataSize);
  18438. addHex(start, end, dataSize);
  18439. } else {
  18440. start.set(end);
  18441. }
  18442. stream.readHexNumber(end, dataSize);
  18443. addHex(end, start, dataSize);
  18444. code = stream.readNumber();
  18445. cMap.mapRange(hexToInt(start, dataSize), hexToInt(end, dataSize),
  18446. String.fromCharCode(code));
  18447. }
  18448. break;
  18449. case 4: // bfchar
  18450. stream.readHex(char, ucs2DataSize);
  18451. stream.readHex(charCode, dataSize);
  18452. cMap.mapOne(hexToInt(char, ucs2DataSize),
  18453. hexToStr(charCode, dataSize));
  18454. for (i = 1; i < subitemsCount; i++) {
  18455. incHex(char, ucs2DataSize);
  18456. if (!sequence) {
  18457. stream.readHexNumber(tmp, ucs2DataSize);
  18458. addHex(char, tmp, ucs2DataSize);
  18459. }
  18460. incHex(charCode, dataSize);
  18461. stream.readHexSigned(tmp, dataSize);
  18462. addHex(charCode, tmp, dataSize);
  18463. cMap.mapOne(hexToInt(char, ucs2DataSize),
  18464. hexToStr(charCode, dataSize));
  18465. }
  18466. break;
  18467. case 5: // bfrange
  18468. stream.readHex(start, ucs2DataSize);
  18469. stream.readHexNumber(end, ucs2DataSize);
  18470. addHex(end, start, ucs2DataSize);
  18471. stream.readHex(charCode, dataSize);
  18472. cMap.mapRange(hexToInt(start, ucs2DataSize),
  18473. hexToInt(end, ucs2DataSize),
  18474. hexToStr(charCode, dataSize));
  18475. for (i = 1; i < subitemsCount; i++) {
  18476. incHex(end, ucs2DataSize);
  18477. if (!sequence) {
  18478. stream.readHexNumber(start, ucs2DataSize);
  18479. addHex(start, end, ucs2DataSize);
  18480. } else {
  18481. start.set(end);
  18482. }
  18483. stream.readHexNumber(end, ucs2DataSize);
  18484. addHex(end, start, ucs2DataSize);
  18485. stream.readHex(charCode, dataSize);
  18486. cMap.mapRange(hexToInt(start, ucs2DataSize),
  18487. hexToInt(end, ucs2DataSize),
  18488. hexToStr(charCode, dataSize));
  18489. }
  18490. break;
  18491. default:
  18492. error('Unknown type: ' + type);
  18493. break;
  18494. }
  18495. }
  18496. if (useCMap) {
  18497. extend(useCMap);
  18498. }
  18499. return cMap;
  18500. }
  18501. function BinaryCMapReader() {}
  18502. BinaryCMapReader.prototype = {
  18503. read: processBinaryCMap
  18504. };
  18505. return BinaryCMapReader;
  18506. })();
  18507. var CMapFactory = (function CMapFactoryClosure() {
  18508. function strToInt(str) {
  18509. var a = 0;
  18510. for (var i = 0; i < str.length; i++) {
  18511. a = (a << 8) | str.charCodeAt(i);
  18512. }
  18513. return a >>> 0;
  18514. }
  18515. function expectString(obj) {
  18516. if (!isString(obj)) {
  18517. error('Malformed CMap: expected string.');
  18518. }
  18519. }
  18520. function expectInt(obj) {
  18521. if (!isInt(obj)) {
  18522. error('Malformed CMap: expected int.');
  18523. }
  18524. }
  18525. function parseBfChar(cMap, lexer) {
  18526. while (true) {
  18527. var obj = lexer.getObj();
  18528. if (isEOF(obj)) {
  18529. break;
  18530. }
  18531. if (isCmd(obj, 'endbfchar')) {
  18532. return;
  18533. }
  18534. expectString(obj);
  18535. var src = strToInt(obj);
  18536. obj = lexer.getObj();
  18537. // TODO are /dstName used?
  18538. expectString(obj);
  18539. var dst = obj;
  18540. cMap.mapOne(src, dst);
  18541. }
  18542. }
  18543. function parseBfRange(cMap, lexer) {
  18544. while (true) {
  18545. var obj = lexer.getObj();
  18546. if (isEOF(obj)) {
  18547. break;
  18548. }
  18549. if (isCmd(obj, 'endbfrange')) {
  18550. return;
  18551. }
  18552. expectString(obj);
  18553. var low = strToInt(obj);
  18554. obj = lexer.getObj();
  18555. expectString(obj);
  18556. var high = strToInt(obj);
  18557. obj = lexer.getObj();
  18558. if (isInt(obj) || isString(obj)) {
  18559. var dstLow = isInt(obj) ? String.fromCharCode(obj) : obj;
  18560. cMap.mapRange(low, high, dstLow);
  18561. } else if (isCmd(obj, '[')) {
  18562. obj = lexer.getObj();
  18563. var array = [];
  18564. while (!isCmd(obj, ']') && !isEOF(obj)) {
  18565. array.push(obj);
  18566. obj = lexer.getObj();
  18567. }
  18568. cMap.mapRangeToArray(low, high, array);
  18569. } else {
  18570. break;
  18571. }
  18572. }
  18573. error('Invalid bf range.');
  18574. }
  18575. function parseCidChar(cMap, lexer) {
  18576. while (true) {
  18577. var obj = lexer.getObj();
  18578. if (isEOF(obj)) {
  18579. break;
  18580. }
  18581. if (isCmd(obj, 'endcidchar')) {
  18582. return;
  18583. }
  18584. expectString(obj);
  18585. var src = strToInt(obj);
  18586. obj = lexer.getObj();
  18587. expectInt(obj);
  18588. var dst = String.fromCharCode(obj);
  18589. cMap.mapOne(src, dst);
  18590. }
  18591. }
  18592. function parseCidRange(cMap, lexer) {
  18593. while (true) {
  18594. var obj = lexer.getObj();
  18595. if (isEOF(obj)) {
  18596. break;
  18597. }
  18598. if (isCmd(obj, 'endcidrange')) {
  18599. return;
  18600. }
  18601. expectString(obj);
  18602. var low = strToInt(obj);
  18603. obj = lexer.getObj();
  18604. expectString(obj);
  18605. var high = strToInt(obj);
  18606. obj = lexer.getObj();
  18607. expectInt(obj);
  18608. var dstLow = String.fromCharCode(obj);
  18609. cMap.mapRange(low, high, dstLow);
  18610. }
  18611. }
  18612. function parseCodespaceRange(cMap, lexer) {
  18613. while (true) {
  18614. var obj = lexer.getObj();
  18615. if (isEOF(obj)) {
  18616. break;
  18617. }
  18618. if (isCmd(obj, 'endcodespacerange')) {
  18619. return;
  18620. }
  18621. if (!isString(obj)) {
  18622. break;
  18623. }
  18624. var low = strToInt(obj);
  18625. obj = lexer.getObj();
  18626. if (!isString(obj)) {
  18627. break;
  18628. }
  18629. var high = strToInt(obj);
  18630. cMap.addCodespaceRange(obj.length, low, high);
  18631. }
  18632. error('Invalid codespace range.');
  18633. }
  18634. function parseWMode(cMap, lexer) {
  18635. var obj = lexer.getObj();
  18636. if (isInt(obj)) {
  18637. cMap.vertical = !!obj;
  18638. }
  18639. }
  18640. function parseCMap(cMap, lexer, builtInCMapParams, useCMap) {
  18641. var previous;
  18642. var embededUseCMap;
  18643. objLoop: while (true) {
  18644. var obj = lexer.getObj();
  18645. if (isEOF(obj)) {
  18646. break;
  18647. } else if (isName(obj)) {
  18648. if (obj.name === 'WMode') {
  18649. parseWMode(cMap, lexer);
  18650. }
  18651. previous = obj;
  18652. } else if (isCmd(obj)) {
  18653. switch (obj.cmd) {
  18654. case 'endcmap':
  18655. break objLoop;
  18656. case 'usecmap':
  18657. if (isName(previous)) {
  18658. embededUseCMap = previous.name;
  18659. }
  18660. break;
  18661. case 'begincodespacerange':
  18662. parseCodespaceRange(cMap, lexer);
  18663. break;
  18664. case 'beginbfchar':
  18665. parseBfChar(cMap, lexer);
  18666. break;
  18667. case 'begincidchar':
  18668. parseCidChar(cMap, lexer);
  18669. break;
  18670. case 'beginbfrange':
  18671. parseBfRange(cMap, lexer);
  18672. break;
  18673. case 'begincidrange':
  18674. parseCidRange(cMap, lexer);
  18675. break;
  18676. }
  18677. }
  18678. }
  18679. if (!useCMap && embededUseCMap) {
  18680. // Load the usecmap definition from the file only if there wasn't one
  18681. // specified.
  18682. useCMap = embededUseCMap;
  18683. }
  18684. if (useCMap) {
  18685. extendCMap(cMap, builtInCMapParams, useCMap);
  18686. }
  18687. }
  18688. function extendCMap(cMap, builtInCMapParams, useCMap) {
  18689. cMap.useCMap = createBuiltInCMap(useCMap, builtInCMapParams);
  18690. // If there aren't any code space ranges defined clone all the parent ones
  18691. // into this cMap.
  18692. if (cMap.numCodespaceRanges === 0) {
  18693. var useCodespaceRanges = cMap.useCMap.codespaceRanges;
  18694. for (var i = 0; i < useCodespaceRanges.length; i++) {
  18695. cMap.codespaceRanges[i] = useCodespaceRanges[i].slice();
  18696. }
  18697. cMap.numCodespaceRanges = cMap.useCMap.numCodespaceRanges;
  18698. }
  18699. // Merge the map into the current one, making sure not to override
  18700. // any previously defined entries.
  18701. for (var key in cMap.useCMap.map) {
  18702. if (key in cMap.map) {
  18703. continue;
  18704. }
  18705. cMap.map[key] = cMap.useCMap.map[key];
  18706. }
  18707. }
  18708. function parseBinaryCMap(name, builtInCMapParams) {
  18709. var url = builtInCMapParams.url + name + '.bcmap';
  18710. var cMap = new CMap(true);
  18711. new BinaryCMapReader().read(url, cMap, function (useCMap) {
  18712. extendCMap(cMap, builtInCMapParams, useCMap);
  18713. });
  18714. return cMap;
  18715. }
  18716. function createBuiltInCMap(name, builtInCMapParams) {
  18717. if (name === 'Identity-H') {
  18718. return new IdentityCMap(false, 2);
  18719. } else if (name === 'Identity-V') {
  18720. return new IdentityCMap(true, 2);
  18721. }
  18722. if (BUILT_IN_CMAPS.indexOf(name) === -1) {
  18723. error('Unknown cMap name: ' + name);
  18724. }
  18725. assert (builtInCMapParams, 'buildin cmap parameters are not provided');
  18726. if (builtInCMapParams.packed) {
  18727. return parseBinaryCMap(name, builtInCMapParams);
  18728. }
  18729. var request = new XMLHttpRequest();
  18730. var url = builtInCMapParams.url + name;
  18731. request.open('GET', url, false);
  18732. request.send(null);
  18733. if (request.status === 0 && /^https?:/i.test(url)) {
  18734. error('Unable to get cMap at: ' + url);
  18735. }
  18736. var cMap = new CMap(true);
  18737. var lexer = new Lexer(new StringStream(request.responseText));
  18738. parseCMap(cMap, lexer, builtInCMapParams, null);
  18739. return cMap;
  18740. }
  18741. return {
  18742. create: function (encoding, builtInCMapParams, useCMap) {
  18743. if (isName(encoding)) {
  18744. return createBuiltInCMap(encoding.name, builtInCMapParams);
  18745. } else if (isStream(encoding)) {
  18746. var cMap = new CMap();
  18747. var lexer = new Lexer(encoding);
  18748. try {
  18749. parseCMap(cMap, lexer, builtInCMapParams, useCMap);
  18750. } catch (e) {
  18751. warn('Invalid CMap data. ' + e);
  18752. }
  18753. return cMap;
  18754. }
  18755. error('Encoding required.');
  18756. }
  18757. };
  18758. })();
  18759. // Unicode Private Use Area
  18760. var PRIVATE_USE_OFFSET_START = 0xE000;
  18761. var PRIVATE_USE_OFFSET_END = 0xF8FF;
  18762. var SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = false;
  18763. // PDF Glyph Space Units are one Thousandth of a TextSpace Unit
  18764. // except for Type 3 fonts
  18765. var PDF_GLYPH_SPACE_UNITS = 1000;
  18766. // Hinting is currently disabled due to unknown problems on windows
  18767. // in tracemonkey and various other pdfs with type1 fonts.
  18768. var HINTING_ENABLED = false;
  18769. // Accented charactars are not displayed properly on windows, using this flag
  18770. // to control analysis of seac charstrings.
  18771. var SEAC_ANALYSIS_ENABLED = false;
  18772. var FontFlags = {
  18773. FixedPitch: 1,
  18774. Serif: 2,
  18775. Symbolic: 4,
  18776. Script: 8,
  18777. Nonsymbolic: 32,
  18778. Italic: 64,
  18779. AllCap: 65536,
  18780. SmallCap: 131072,
  18781. ForceBold: 262144
  18782. };
  18783. var Encodings = {
  18784. ExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18785. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18786. 'space', 'exclamsmall', 'Hungarumlautsmall', '', 'dollaroldstyle',
  18787. 'dollarsuperior', 'ampersandsmall', 'Acutesmall', 'parenleftsuperior',
  18788. 'parenrightsuperior', 'twodotenleader', 'onedotenleader', 'comma',
  18789. 'hyphen', 'period', 'fraction', 'zerooldstyle', 'oneoldstyle',
  18790. 'twooldstyle', 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle',
  18791. 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'colon',
  18792. 'semicolon', 'commasuperior', 'threequartersemdash', 'periodsuperior',
  18793. 'questionsmall', '', 'asuperior', 'bsuperior', 'centsuperior', 'dsuperior',
  18794. 'esuperior', '', '', 'isuperior', '', '', 'lsuperior', 'msuperior',
  18795. 'nsuperior', 'osuperior', '', '', 'rsuperior', 'ssuperior', 'tsuperior',
  18796. '', 'ff', 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '',
  18797. 'parenrightinferior', 'Circumflexsmall', 'hyphensuperior', 'Gravesmall',
  18798. 'Asmall', 'Bsmall', 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall',
  18799. 'Hsmall', 'Ismall', 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall',
  18800. 'Osmall', 'Psmall', 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall',
  18801. 'Vsmall', 'Wsmall', 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary',
  18802. 'onefitted', 'rupiah', 'Tildesmall', '', '', '', '', '', '', '', '', '',
  18803. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18804. '', '', '', '', '', '', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  18805. '', '', 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall',
  18806. 'Caronsmall', '', 'Dotaccentsmall', '', '', 'Macronsmall', '', '',
  18807. 'figuredash', 'hypheninferior', '', '', 'Ogoneksmall', 'Ringsmall',
  18808. 'Cedillasmall', '', '', '', 'onequarter', 'onehalf', 'threequarters',
  18809. 'questiondownsmall', 'oneeighth', 'threeeighths', 'fiveeighths',
  18810. 'seveneighths', 'onethird', 'twothirds', '', '', 'zerosuperior',
  18811. 'onesuperior', 'twosuperior', 'threesuperior', 'foursuperior',
  18812. 'fivesuperior', 'sixsuperior', 'sevensuperior', 'eightsuperior',
  18813. 'ninesuperior', 'zeroinferior', 'oneinferior', 'twoinferior',
  18814. 'threeinferior', 'fourinferior', 'fiveinferior', 'sixinferior',
  18815. 'seveninferior', 'eightinferior', 'nineinferior', 'centinferior',
  18816. 'dollarinferior', 'periodinferior', 'commainferior', 'Agravesmall',
  18817. 'Aacutesmall', 'Acircumflexsmall', 'Atildesmall', 'Adieresissmall',
  18818. 'Aringsmall', 'AEsmall', 'Ccedillasmall', 'Egravesmall', 'Eacutesmall',
  18819. 'Ecircumflexsmall', 'Edieresissmall', 'Igravesmall', 'Iacutesmall',
  18820. 'Icircumflexsmall', 'Idieresissmall', 'Ethsmall', 'Ntildesmall',
  18821. 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall', 'Otildesmall',
  18822. 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall', 'Uacutesmall',
  18823. 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall', 'Thornsmall',
  18824. 'Ydieresissmall'],
  18825. MacExpertEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18826. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18827. 'space', 'exclamsmall', 'Hungarumlautsmall', 'centoldstyle',
  18828. 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall', 'Acutesmall',
  18829. 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  18830. 'onedotenleader', 'comma', 'hyphen', 'period', 'fraction', 'zerooldstyle',
  18831. 'oneoldstyle', 'twooldstyle', 'threeoldstyle', 'fouroldstyle',
  18832. 'fiveoldstyle', 'sixoldstyle', 'sevenoldstyle', 'eightoldstyle',
  18833. 'nineoldstyle', 'colon', 'semicolon', '', 'threequartersemdash', '',
  18834. 'questionsmall', '', '', '', '', 'Ethsmall', '', '', 'onequarter',
  18835. 'onehalf', 'threequarters', 'oneeighth', 'threeeighths', 'fiveeighths',
  18836. 'seveneighths', 'onethird', 'twothirds', '', '', '', '', '', '', 'ff',
  18837. 'fi', 'fl', 'ffi', 'ffl', 'parenleftinferior', '', 'parenrightinferior',
  18838. 'Circumflexsmall', 'hypheninferior', 'Gravesmall', 'Asmall', 'Bsmall',
  18839. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  18840. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  18841. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  18842. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  18843. 'Tildesmall', '', '', 'asuperior', 'centsuperior', '', '', '', '',
  18844. 'Aacutesmall', 'Agravesmall', 'Acircumflexsmall', 'Adieresissmall',
  18845. 'Atildesmall', 'Aringsmall', 'Ccedillasmall', 'Eacutesmall', 'Egravesmall',
  18846. 'Ecircumflexsmall', 'Edieresissmall', 'Iacutesmall', 'Igravesmall',
  18847. 'Icircumflexsmall', 'Idieresissmall', 'Ntildesmall', 'Oacutesmall',
  18848. 'Ogravesmall', 'Ocircumflexsmall', 'Odieresissmall', 'Otildesmall',
  18849. 'Uacutesmall', 'Ugravesmall', 'Ucircumflexsmall', 'Udieresissmall', '',
  18850. 'eightsuperior', 'fourinferior', 'threeinferior', 'sixinferior',
  18851. 'eightinferior', 'seveninferior', 'Scaronsmall', '', 'centinferior',
  18852. 'twoinferior', '', 'Dieresissmall', '', 'Caronsmall', 'osuperior',
  18853. 'fiveinferior', '', 'commainferior', 'periodinferior', 'Yacutesmall', '',
  18854. 'dollarinferior', '', 'Thornsmall', '', 'nineinferior', 'zeroinferior',
  18855. 'Zcaronsmall', 'AEsmall', 'Oslashsmall', 'questiondownsmall',
  18856. 'oneinferior', 'Lslashsmall', '', '', '', '', '', '', 'Cedillasmall', '',
  18857. '', '', '', '', 'OEsmall', 'figuredash', 'hyphensuperior', '', '', '', '',
  18858. 'exclamdownsmall', '', 'Ydieresissmall', '', 'onesuperior', 'twosuperior',
  18859. 'threesuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  18860. 'sevensuperior', 'ninesuperior', 'zerosuperior', '', 'esuperior',
  18861. 'rsuperior', 'tsuperior', '', '', 'isuperior', 'ssuperior', 'dsuperior',
  18862. '', '', '', '', '', 'lsuperior', 'Ogoneksmall', 'Brevesmall',
  18863. 'Macronsmall', 'bsuperior', 'nsuperior', 'msuperior', 'commasuperior',
  18864. 'periodsuperior', 'Dotaccentsmall', 'Ringsmall'],
  18865. MacRomanEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18866. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18867. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  18868. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  18869. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  18870. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  18871. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  18872. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  18873. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  18874. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  18875. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  18876. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', '',
  18877. 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde', 'Odieresis',
  18878. 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis', 'atilde',
  18879. 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  18880. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute',
  18881. 'ograve', 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave',
  18882. 'ucircumflex', 'udieresis', 'dagger', 'degree', 'cent', 'sterling',
  18883. 'section', 'bullet', 'paragraph', 'germandbls', 'registered', 'copyright',
  18884. 'trademark', 'acute', 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity',
  18885. 'plusminus', 'lessequal', 'greaterequal', 'yen', 'mu', 'partialdiff',
  18886. 'summation', 'product', 'pi', 'integral', 'ordfeminine', 'ordmasculine',
  18887. 'Omega', 'ae', 'oslash', 'questiondown', 'exclamdown', 'logicalnot',
  18888. 'radical', 'florin', 'approxequal', 'Delta', 'guillemotleft',
  18889. 'guillemotright', 'ellipsis', 'space', 'Agrave', 'Atilde', 'Otilde', 'OE',
  18890. 'oe', 'endash', 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft',
  18891. 'quoteright', 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction',
  18892. 'currency', 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl',
  18893. 'periodcentered', 'quotesinglbase', 'quotedblbase', 'perthousand',
  18894. 'Acircumflex', 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute',
  18895. 'Icircumflex', 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple',
  18896. 'Ograve', 'Uacute', 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex',
  18897. 'tilde', 'macron', 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut',
  18898. 'ogonek', 'caron'],
  18899. StandardEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18900. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18901. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  18902. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  18903. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  18904. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  18905. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  18906. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  18907. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  18908. 'asciicircum', 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f',
  18909. 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u',
  18910. 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  18911. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18912. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 'exclamdown',
  18913. 'cent', 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  18914. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  18915. 'guilsinglright', 'fi', 'fl', '', 'endash', 'dagger', 'daggerdbl',
  18916. 'periodcentered', '', 'paragraph', 'bullet', 'quotesinglbase',
  18917. 'quotedblbase', 'quotedblright', 'guillemotright', 'ellipsis',
  18918. 'perthousand', '', 'questiondown', '', 'grave', 'acute', 'circumflex',
  18919. 'tilde', 'macron', 'breve', 'dotaccent', 'dieresis', '', 'ring', 'cedilla',
  18920. '', 'hungarumlaut', 'ogonek', 'caron', 'emdash', '', '', '', '', '', '',
  18921. '', '', '', '', '', '', '', '', '', '', 'AE', '', 'ordfeminine', '', '',
  18922. '', '', 'Lslash', 'Oslash', 'OE', 'ordmasculine', '', '', '', '', '', 'ae',
  18923. '', '', '', 'dotlessi', '', '', 'lslash', 'oslash', 'oe', 'germandbls'],
  18924. WinAnsiEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18925. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18926. 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  18927. 'ampersand', 'quotesingle', 'parenleft', 'parenright', 'asterisk', 'plus',
  18928. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three',
  18929. 'four', 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon',
  18930. 'less', 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F',
  18931. 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U',
  18932. 'V', 'W', 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright',
  18933. 'asciicircum', 'underscore', 'grave', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
  18934. 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
  18935. 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright', 'asciitilde',
  18936. 'bullet', 'Euro', 'bullet', 'quotesinglbase', 'florin', 'quotedblbase',
  18937. 'ellipsis', 'dagger', 'daggerdbl', 'circumflex', 'perthousand', 'Scaron',
  18938. 'guilsinglleft', 'OE', 'bullet', 'Zcaron', 'bullet', 'bullet', 'quoteleft',
  18939. 'quoteright', 'quotedblleft', 'quotedblright', 'bullet', 'endash',
  18940. 'emdash', 'tilde', 'trademark', 'scaron', 'guilsinglright', 'oe', 'bullet',
  18941. 'zcaron', 'Ydieresis', 'space', 'exclamdown', 'cent', 'sterling',
  18942. 'currency', 'yen', 'brokenbar', 'section', 'dieresis', 'copyright',
  18943. 'ordfeminine', 'guillemotleft', 'logicalnot', 'hyphen', 'registered',
  18944. 'macron', 'degree', 'plusminus', 'twosuperior', 'threesuperior', 'acute',
  18945. 'mu', 'paragraph', 'periodcentered', 'cedilla', 'onesuperior',
  18946. 'ordmasculine', 'guillemotright', 'onequarter', 'onehalf', 'threequarters',
  18947. 'questiondown', 'Agrave', 'Aacute', 'Acircumflex', 'Atilde', 'Adieresis',
  18948. 'Aring', 'AE', 'Ccedilla', 'Egrave', 'Eacute', 'Ecircumflex', 'Edieresis',
  18949. 'Igrave', 'Iacute', 'Icircumflex', 'Idieresis', 'Eth', 'Ntilde', 'Ograve',
  18950. 'Oacute', 'Ocircumflex', 'Otilde', 'Odieresis', 'multiply', 'Oslash',
  18951. 'Ugrave', 'Uacute', 'Ucircumflex', 'Udieresis', 'Yacute', 'Thorn',
  18952. 'germandbls', 'agrave', 'aacute', 'acircumflex', 'atilde', 'adieresis',
  18953. 'aring', 'ae', 'ccedilla', 'egrave', 'eacute', 'ecircumflex', 'edieresis',
  18954. 'igrave', 'iacute', 'icircumflex', 'idieresis', 'eth', 'ntilde', 'ograve',
  18955. 'oacute', 'ocircumflex', 'otilde', 'odieresis', 'divide', 'oslash',
  18956. 'ugrave', 'uacute', 'ucircumflex', 'udieresis', 'yacute', 'thorn',
  18957. 'ydieresis'],
  18958. SymbolSetEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18959. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18960. 'space', 'exclam', 'universal', 'numbersign', 'existential', 'percent',
  18961. 'ampersand', 'suchthat', 'parenleft', 'parenright', 'asteriskmath', 'plus',
  18962. 'comma', 'minus', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  18963. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  18964. 'equal', 'greater', 'question', 'congruent', 'Alpha', 'Beta', 'Chi',
  18965. 'Delta', 'Epsilon', 'Phi', 'Gamma', 'Eta', 'Iota', 'theta1', 'Kappa',
  18966. 'Lambda', 'Mu', 'Nu', 'Omicron', 'Pi', 'Theta', 'Rho', 'Sigma', 'Tau',
  18967. 'Upsilon', 'sigma1', 'Omega', 'Xi', 'Psi', 'Zeta', 'bracketleft',
  18968. 'therefore', 'bracketright', 'perpendicular', 'underscore', 'radicalex',
  18969. 'alpha', 'beta', 'chi', 'delta', 'epsilon', 'phi', 'gamma', 'eta', 'iota',
  18970. 'phi1', 'kappa', 'lambda', 'mu', 'nu', 'omicron', 'pi', 'theta', 'rho',
  18971. 'sigma', 'tau', 'upsilon', 'omega1', 'omega', 'xi', 'psi', 'zeta',
  18972. 'braceleft', 'bar', 'braceright', 'similar', '', '', '', '', '', '', '',
  18973. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18974. '', '', '', '', '', '', '', 'Euro', 'Upsilon1', 'minute', 'lessequal',
  18975. 'fraction', 'infinity', 'florin', 'club', 'diamond', 'heart', 'spade',
  18976. 'arrowboth', 'arrowleft', 'arrowup', 'arrowright', 'arrowdown', 'degree',
  18977. 'plusminus', 'second', 'greaterequal', 'multiply', 'proportional',
  18978. 'partialdiff', 'bullet', 'divide', 'notequal', 'equivalence',
  18979. 'approxequal', 'ellipsis', 'arrowvertex', 'arrowhorizex', 'carriagereturn',
  18980. 'aleph', 'Ifraktur', 'Rfraktur', 'weierstrass', 'circlemultiply',
  18981. 'circleplus', 'emptyset', 'intersection', 'union', 'propersuperset',
  18982. 'reflexsuperset', 'notsubset', 'propersubset', 'reflexsubset', 'element',
  18983. 'notelement', 'angle', 'gradient', 'registerserif', 'copyrightserif',
  18984. 'trademarkserif', 'product', 'radical', 'dotmath', 'logicalnot',
  18985. 'logicaland', 'logicalor', 'arrowdblboth', 'arrowdblleft', 'arrowdblup',
  18986. 'arrowdblright', 'arrowdbldown', 'lozenge', 'angleleft', 'registersans',
  18987. 'copyrightsans', 'trademarksans', 'summation', 'parenlefttp',
  18988. 'parenleftex', 'parenleftbt', 'bracketlefttp', 'bracketleftex',
  18989. 'bracketleftbt', 'bracelefttp', 'braceleftmid', 'braceleftbt', 'braceex',
  18990. '', 'angleright', 'integral', 'integraltp', 'integralex', 'integralbt',
  18991. 'parenrighttp', 'parenrightex', 'parenrightbt', 'bracketrighttp',
  18992. 'bracketrightex', 'bracketrightbt', 'bracerighttp', 'bracerightmid',
  18993. 'bracerightbt'],
  18994. zapfDingbatsEncoding: ['', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18995. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  18996. 'space', 'a1', 'a2', 'a202', 'a3', 'a4', 'a5', 'a119', 'a118', 'a117',
  18997. 'a11', 'a12', 'a13', 'a14', 'a15', 'a16', 'a105', 'a17', 'a18', 'a19',
  18998. 'a20', 'a21', 'a22', 'a23', 'a24', 'a25', 'a26', 'a27', 'a28', 'a6', 'a7',
  18999. 'a8', 'a9', 'a10', 'a29', 'a30', 'a31', 'a32', 'a33', 'a34', 'a35', 'a36',
  19000. 'a37', 'a38', 'a39', 'a40', 'a41', 'a42', 'a43', 'a44', 'a45', 'a46',
  19001. 'a47', 'a48', 'a49', 'a50', 'a51', 'a52', 'a53', 'a54', 'a55', 'a56',
  19002. 'a57', 'a58', 'a59', 'a60', 'a61', 'a62', 'a63', 'a64', 'a65', 'a66',
  19003. 'a67', 'a68', 'a69', 'a70', 'a71', 'a72', 'a73', 'a74', 'a203', 'a75',
  19004. 'a204', 'a76', 'a77', 'a78', 'a79', 'a81', 'a82', 'a83', 'a84', 'a97',
  19005. 'a98', 'a99', 'a100', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19006. '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  19007. '', '', 'a101', 'a102', 'a103', 'a104', 'a106', 'a107', 'a108', 'a112',
  19008. 'a111', 'a110', 'a109', 'a120', 'a121', 'a122', 'a123', 'a124', 'a125',
  19009. 'a126', 'a127', 'a128', 'a129', 'a130', 'a131', 'a132', 'a133', 'a134',
  19010. 'a135', 'a136', 'a137', 'a138', 'a139', 'a140', 'a141', 'a142', 'a143',
  19011. 'a144', 'a145', 'a146', 'a147', 'a148', 'a149', 'a150', 'a151', 'a152',
  19012. 'a153', 'a154', 'a155', 'a156', 'a157', 'a158', 'a159', 'a160', 'a161',
  19013. 'a163', 'a164', 'a196', 'a165', 'a192', 'a166', 'a167', 'a168', 'a169',
  19014. 'a170', 'a171', 'a172', 'a173', 'a162', 'a174', 'a175', 'a176', 'a177',
  19015. 'a178', 'a179', 'a193', 'a180', 'a199', 'a181', 'a200', 'a182', '', 'a201',
  19016. 'a183', 'a184', 'a197', 'a185', 'a194', 'a198', 'a186', 'a195', 'a187',
  19017. 'a188', 'a189', 'a190', 'a191']
  19018. };
  19019. /**
  19020. * Hold a map of decoded fonts and of the standard fourteen Type1
  19021. * fonts and their acronyms.
  19022. */
  19023. var stdFontMap = {
  19024. 'ArialNarrow': 'Helvetica',
  19025. 'ArialNarrow-Bold': 'Helvetica-Bold',
  19026. 'ArialNarrow-BoldItalic': 'Helvetica-BoldOblique',
  19027. 'ArialNarrow-Italic': 'Helvetica-Oblique',
  19028. 'ArialBlack': 'Helvetica',
  19029. 'ArialBlack-Bold': 'Helvetica-Bold',
  19030. 'ArialBlack-BoldItalic': 'Helvetica-BoldOblique',
  19031. 'ArialBlack-Italic': 'Helvetica-Oblique',
  19032. 'Arial': 'Helvetica',
  19033. 'Arial-Bold': 'Helvetica-Bold',
  19034. 'Arial-BoldItalic': 'Helvetica-BoldOblique',
  19035. 'Arial-Italic': 'Helvetica-Oblique',
  19036. 'Arial-BoldItalicMT': 'Helvetica-BoldOblique',
  19037. 'Arial-BoldMT': 'Helvetica-Bold',
  19038. 'Arial-ItalicMT': 'Helvetica-Oblique',
  19039. 'ArialMT': 'Helvetica',
  19040. 'Courier-Bold': 'Courier-Bold',
  19041. 'Courier-BoldItalic': 'Courier-BoldOblique',
  19042. 'Courier-Italic': 'Courier-Oblique',
  19043. 'CourierNew': 'Courier',
  19044. 'CourierNew-Bold': 'Courier-Bold',
  19045. 'CourierNew-BoldItalic': 'Courier-BoldOblique',
  19046. 'CourierNew-Italic': 'Courier-Oblique',
  19047. 'CourierNewPS-BoldItalicMT': 'Courier-BoldOblique',
  19048. 'CourierNewPS-BoldMT': 'Courier-Bold',
  19049. 'CourierNewPS-ItalicMT': 'Courier-Oblique',
  19050. 'CourierNewPSMT': 'Courier',
  19051. 'Helvetica-Bold': 'Helvetica-Bold',
  19052. 'Helvetica-BoldItalic': 'Helvetica-BoldOblique',
  19053. 'Helvetica-Italic': 'Helvetica-Oblique',
  19054. 'Symbol-Bold': 'Symbol',
  19055. 'Symbol-BoldItalic': 'Symbol',
  19056. 'Symbol-Italic': 'Symbol',
  19057. 'TimesNewRoman': 'Times-Roman',
  19058. 'TimesNewRoman-Bold': 'Times-Bold',
  19059. 'TimesNewRoman-BoldItalic': 'Times-BoldItalic',
  19060. 'TimesNewRoman-Italic': 'Times-Italic',
  19061. 'TimesNewRomanPS': 'Times-Roman',
  19062. 'TimesNewRomanPS-Bold': 'Times-Bold',
  19063. 'TimesNewRomanPS-BoldItalic': 'Times-BoldItalic',
  19064. 'TimesNewRomanPS-BoldItalicMT': 'Times-BoldItalic',
  19065. 'TimesNewRomanPS-BoldMT': 'Times-Bold',
  19066. 'TimesNewRomanPS-Italic': 'Times-Italic',
  19067. 'TimesNewRomanPS-ItalicMT': 'Times-Italic',
  19068. 'TimesNewRomanPSMT': 'Times-Roman',
  19069. 'TimesNewRomanPSMT-Bold': 'Times-Bold',
  19070. 'TimesNewRomanPSMT-BoldItalic': 'Times-BoldItalic',
  19071. 'TimesNewRomanPSMT-Italic': 'Times-Italic'
  19072. };
  19073. /**
  19074. * Holds the map of the non-standard fonts that might be included as a standard
  19075. * fonts without glyph data.
  19076. */
  19077. var nonStdFontMap = {
  19078. 'ComicSansMS': 'Comic Sans MS',
  19079. 'ComicSansMS-Bold': 'Comic Sans MS-Bold',
  19080. 'ComicSansMS-BoldItalic': 'Comic Sans MS-BoldItalic',
  19081. 'ComicSansMS-Italic': 'Comic Sans MS-Italic',
  19082. 'LucidaConsole': 'Courier',
  19083. 'LucidaConsole-Bold': 'Courier-Bold',
  19084. 'LucidaConsole-BoldItalic': 'Courier-BoldOblique',
  19085. 'LucidaConsole-Italic': 'Courier-Oblique',
  19086. 'MS-Gothic': 'MS Gothic',
  19087. 'MS-Gothic-Bold': 'MS Gothic-Bold',
  19088. 'MS-Gothic-BoldItalic': 'MS Gothic-BoldItalic',
  19089. 'MS-Gothic-Italic': 'MS Gothic-Italic',
  19090. 'MS-Mincho': 'MS Mincho',
  19091. 'MS-Mincho-Bold': 'MS Mincho-Bold',
  19092. 'MS-Mincho-BoldItalic': 'MS Mincho-BoldItalic',
  19093. 'MS-Mincho-Italic': 'MS Mincho-Italic',
  19094. 'MS-PGothic': 'MS PGothic',
  19095. 'MS-PGothic-Bold': 'MS PGothic-Bold',
  19096. 'MS-PGothic-BoldItalic': 'MS PGothic-BoldItalic',
  19097. 'MS-PGothic-Italic': 'MS PGothic-Italic',
  19098. 'MS-PMincho': 'MS PMincho',
  19099. 'MS-PMincho-Bold': 'MS PMincho-Bold',
  19100. 'MS-PMincho-BoldItalic': 'MS PMincho-BoldItalic',
  19101. 'MS-PMincho-Italic': 'MS PMincho-Italic'
  19102. };
  19103. var serifFonts = {
  19104. 'Adobe Jenson': true, 'Adobe Text': true, 'Albertus': true,
  19105. 'Aldus': true, 'Alexandria': true, 'Algerian': true,
  19106. 'American Typewriter': true, 'Antiqua': true, 'Apex': true,
  19107. 'Arno': true, 'Aster': true, 'Aurora': true,
  19108. 'Baskerville': true, 'Bell': true, 'Bembo': true,
  19109. 'Bembo Schoolbook': true, 'Benguiat': true, 'Berkeley Old Style': true,
  19110. 'Bernhard Modern': true, 'Berthold City': true, 'Bodoni': true,
  19111. 'Bauer Bodoni': true, 'Book Antiqua': true, 'Bookman': true,
  19112. 'Bordeaux Roman': true, 'Californian FB': true, 'Calisto': true,
  19113. 'Calvert': true, 'Capitals': true, 'Cambria': true,
  19114. 'Cartier': true, 'Caslon': true, 'Catull': true,
  19115. 'Centaur': true, 'Century Old Style': true, 'Century Schoolbook': true,
  19116. 'Chaparral': true, 'Charis SIL': true, 'Cheltenham': true,
  19117. 'Cholla Slab': true, 'Clarendon': true, 'Clearface': true,
  19118. 'Cochin': true, 'Colonna': true, 'Computer Modern': true,
  19119. 'Concrete Roman': true, 'Constantia': true, 'Cooper Black': true,
  19120. 'Corona': true, 'Ecotype': true, 'Egyptienne': true,
  19121. 'Elephant': true, 'Excelsior': true, 'Fairfield': true,
  19122. 'FF Scala': true, 'Folkard': true, 'Footlight': true,
  19123. 'FreeSerif': true, 'Friz Quadrata': true, 'Garamond': true,
  19124. 'Gentium': true, 'Georgia': true, 'Gloucester': true,
  19125. 'Goudy Old Style': true, 'Goudy Schoolbook': true, 'Goudy Pro Font': true,
  19126. 'Granjon': true, 'Guardian Egyptian': true, 'Heather': true,
  19127. 'Hercules': true, 'High Tower Text': true, 'Hiroshige': true,
  19128. 'Hoefler Text': true, 'Humana Serif': true, 'Imprint': true,
  19129. 'Ionic No. 5': true, 'Janson': true, 'Joanna': true,
  19130. 'Korinna': true, 'Lexicon': true, 'Liberation Serif': true,
  19131. 'Linux Libertine': true, 'Literaturnaya': true, 'Lucida': true,
  19132. 'Lucida Bright': true, 'Melior': true, 'Memphis': true,
  19133. 'Miller': true, 'Minion': true, 'Modern': true,
  19134. 'Mona Lisa': true, 'Mrs Eaves': true, 'MS Serif': true,
  19135. 'Museo Slab': true, 'New York': true, 'Nimbus Roman': true,
  19136. 'NPS Rawlinson Roadway': true, 'Palatino': true, 'Perpetua': true,
  19137. 'Plantin': true, 'Plantin Schoolbook': true, 'Playbill': true,
  19138. 'Poor Richard': true, 'Rawlinson Roadway': true, 'Renault': true,
  19139. 'Requiem': true, 'Rockwell': true, 'Roman': true,
  19140. 'Rotis Serif': true, 'Sabon': true, 'Scala': true,
  19141. 'Seagull': true, 'Sistina': true, 'Souvenir': true,
  19142. 'STIX': true, 'Stone Informal': true, 'Stone Serif': true,
  19143. 'Sylfaen': true, 'Times': true, 'Trajan': true,
  19144. 'Trinité': true, 'Trump Mediaeval': true, 'Utopia': true,
  19145. 'Vale Type': true, 'Bitstream Vera': true, 'Vera Serif': true,
  19146. 'Versailles': true, 'Wanted': true, 'Weiss': true,
  19147. 'Wide Latin': true, 'Windsor': true, 'XITS': true
  19148. };
  19149. var symbolsFonts = {
  19150. 'Dingbats': true, 'Symbol': true, 'ZapfDingbats': true
  19151. };
  19152. // Glyph map for well-known standard fonts. Sometimes Ghostscript uses CID fonts
  19153. // but does not embed the CID to GID mapping. The mapping is incomplete for all
  19154. // glyphs, but common for some set of the standard fonts.
  19155. var GlyphMapForStandardFonts = {
  19156. '2': 10, '3': 32, '4': 33, '5': 34, '6': 35, '7': 36, '8': 37, '9': 38,
  19157. '10': 39, '11': 40, '12': 41, '13': 42, '14': 43, '15': 44, '16': 45,
  19158. '17': 46, '18': 47, '19': 48, '20': 49, '21': 50, '22': 51, '23': 52,
  19159. '24': 53, '25': 54, '26': 55, '27': 56, '28': 57, '29': 58, '30': 894,
  19160. '31': 60, '32': 61, '33': 62, '34': 63, '35': 64, '36': 65, '37': 66,
  19161. '38': 67, '39': 68, '40': 69, '41': 70, '42': 71, '43': 72, '44': 73,
  19162. '45': 74, '46': 75, '47': 76, '48': 77, '49': 78, '50': 79, '51': 80,
  19163. '52': 81, '53': 82, '54': 83, '55': 84, '56': 85, '57': 86, '58': 87,
  19164. '59': 88, '60': 89, '61': 90, '62': 91, '63': 92, '64': 93, '65': 94,
  19165. '66': 95, '67': 96, '68': 97, '69': 98, '70': 99, '71': 100, '72': 101,
  19166. '73': 102, '74': 103, '75': 104, '76': 105, '77': 106, '78': 107, '79': 108,
  19167. '80': 109, '81': 110, '82': 111, '83': 112, '84': 113, '85': 114, '86': 115,
  19168. '87': 116, '88': 117, '89': 118, '90': 119, '91': 120, '92': 121, '93': 122,
  19169. '94': 123, '95': 124, '96': 125, '97': 126, '98': 196, '99': 197, '100': 199,
  19170. '101': 201, '102': 209, '103': 214, '104': 220, '105': 225, '106': 224,
  19171. '107': 226, '108': 228, '109': 227, '110': 229, '111': 231, '112': 233,
  19172. '113': 232, '114': 234, '115': 235, '116': 237, '117': 236, '118': 238,
  19173. '119': 239, '120': 241, '121': 243, '122': 242, '123': 244, '124': 246,
  19174. '125': 245, '126': 250, '127': 249, '128': 251, '129': 252, '130': 8224,
  19175. '131': 176, '132': 162, '133': 163, '134': 167, '135': 8226, '136': 182,
  19176. '137': 223, '138': 174, '139': 169, '140': 8482, '141': 180, '142': 168,
  19177. '143': 8800, '144': 198, '145': 216, '146': 8734, '147': 177, '148': 8804,
  19178. '149': 8805, '150': 165, '151': 181, '152': 8706, '153': 8721, '154': 8719,
  19179. '156': 8747, '157': 170, '158': 186, '159': 8486, '160': 230, '161': 248,
  19180. '162': 191, '163': 161, '164': 172, '165': 8730, '166': 402, '167': 8776,
  19181. '168': 8710, '169': 171, '170': 187, '171': 8230, '210': 218, '223': 711,
  19182. '227': 353, '229': 382, '234': 253, '253': 268, '254': 269, '258': 258,
  19183. '268': 283, '269': 313, '278': 328, '284': 345, '292': 367, '305': 963,
  19184. '306': 964, '307': 966, '308': 8215, '309': 8252, '310': 8319, '311': 8359,
  19185. '312': 8592, '313': 8593, '337': 9552, '493': 1039, '494': 1040, '705': 1524,
  19186. '706': 8362, '710': 64288, '711': 64298, '759': 1617, '761': 1776,
  19187. '763': 1778, '775': 1652, '777': 1764, '778': 1780, '779': 1781, '780': 1782,
  19188. '782': 771, '783': 64726, '786': 8363, '788': 8532, '790': 768, '791': 769,
  19189. '792': 768, '795': 803, '797': 64336, '798': 64337, '799': 64342,
  19190. '800': 64343, '801': 64344, '802': 64345, '803': 64362, '804': 64363,
  19191. '805': 64364, '2424': 7821, '2425': 7822, '2426': 7823, '2427': 7824,
  19192. '2428': 7825, '2429': 7826, '2430': 7827, '2433': 7682, '2678': 8045,
  19193. '2679': 8046, '2830': 1552, '2838': 686, '2840': 751, '2842': 753,
  19194. '2843': 754, '2844': 755, '2846': 757, '2856': 767, '2857': 848, '2858': 849,
  19195. '2862': 853, '2863': 854, '2864': 855, '2865': 861, '2866': 862, '2906': 7460,
  19196. '2908': 7462, '2909': 7463, '2910': 7464, '2912': 7466, '2913': 7467,
  19197. '2914': 7468, '2916': 7470, '2917': 7471, '2918': 7472, '2920': 7474,
  19198. '2921': 7475, '2922': 7476, '2924': 7478, '2925': 7479, '2926': 7480,
  19199. '2928': 7482, '2929': 7483, '2930': 7484, '2932': 7486, '2933': 7487,
  19200. '2934': 7488, '2936': 7490, '2937': 7491, '2938': 7492, '2940': 7494,
  19201. '2941': 7495, '2942': 7496, '2944': 7498, '2946': 7500, '2948': 7502,
  19202. '2950': 7504, '2951': 7505, '2952': 7506, '2954': 7508, '2955': 7509,
  19203. '2956': 7510, '2958': 7512, '2959': 7513, '2960': 7514, '2962': 7516,
  19204. '2963': 7517, '2964': 7518, '2966': 7520, '2967': 7521, '2968': 7522,
  19205. '2970': 7524, '2971': 7525, '2972': 7526, '2974': 7528, '2975': 7529,
  19206. '2976': 7530, '2978': 1537, '2979': 1538, '2980': 1539, '2982': 1549,
  19207. '2983': 1551, '2984': 1552, '2986': 1554, '2987': 1555, '2988': 1556,
  19208. '2990': 1623, '2991': 1624, '2995': 1775, '2999': 1791, '3002': 64290,
  19209. '3003': 64291, '3004': 64292, '3006': 64294, '3007': 64295, '3008': 64296,
  19210. '3011': 1900, '3014': 8223, '3015': 8244, '3017': 7532, '3018': 7533,
  19211. '3019': 7534, '3075': 7590, '3076': 7591, '3079': 7594, '3080': 7595,
  19212. '3083': 7598, '3084': 7599, '3087': 7602, '3088': 7603, '3091': 7606,
  19213. '3092': 7607, '3095': 7610, '3096': 7611, '3099': 7614, '3100': 7615,
  19214. '3103': 7618, '3104': 7619, '3107': 8337, '3108': 8338, '3116': 1884,
  19215. '3119': 1885, '3120': 1885, '3123': 1886, '3124': 1886, '3127': 1887,
  19216. '3128': 1887, '3131': 1888, '3132': 1888, '3135': 1889, '3136': 1889,
  19217. '3139': 1890, '3140': 1890, '3143': 1891, '3144': 1891, '3147': 1892,
  19218. '3148': 1892, '3153': 580, '3154': 581, '3157': 584, '3158': 585, '3161': 588,
  19219. '3162': 589, '3165': 891, '3166': 892, '3169': 1274, '3170': 1275,
  19220. '3173': 1278, '3174': 1279, '3181': 7622, '3182': 7623, '3282': 11799,
  19221. '3316': 578, '3379': 42785, '3393': 1159, '3416': 8377
  19222. };
  19223. // Some characters, e.g. copyrightserif, mapped to the private use area and
  19224. // might not be displayed using standard fonts. Mapping/hacking well-known chars
  19225. // to the similar equivalents in the normal characters range.
  19226. function mapSpecialUnicodeValues(code) {
  19227. if (code >= 0xFFF0 && code <= 0xFFFF) { // Specials unicode block.
  19228. return 0;
  19229. }
  19230. switch (code) {
  19231. case 0xF8E9: // copyrightsans
  19232. case 0xF6D9: // copyrightserif
  19233. return 0x00A9; // copyright
  19234. case 0xF8E8: // registersans
  19235. case 0xF6DA: // registerserif
  19236. return 0x00AE; // registered
  19237. case 0xF8EA: // trademarksans
  19238. case 0xF6DB: // trademarkserif
  19239. return 0x2122; // trademark
  19240. default:
  19241. return code;
  19242. }
  19243. }
  19244. var UnicodeRanges = [
  19245. { 'begin': 0x0000, 'end': 0x007F }, // Basic Latin
  19246. { 'begin': 0x0080, 'end': 0x00FF }, // Latin-1 Supplement
  19247. { 'begin': 0x0100, 'end': 0x017F }, // Latin Extended-A
  19248. { 'begin': 0x0180, 'end': 0x024F }, // Latin Extended-B
  19249. { 'begin': 0x0250, 'end': 0x02AF }, // IPA Extensions
  19250. { 'begin': 0x02B0, 'end': 0x02FF }, // Spacing Modifier Letters
  19251. { 'begin': 0x0300, 'end': 0x036F }, // Combining Diacritical Marks
  19252. { 'begin': 0x0370, 'end': 0x03FF }, // Greek and Coptic
  19253. { 'begin': 0x2C80, 'end': 0x2CFF }, // Coptic
  19254. { 'begin': 0x0400, 'end': 0x04FF }, // Cyrillic
  19255. { 'begin': 0x0530, 'end': 0x058F }, // Armenian
  19256. { 'begin': 0x0590, 'end': 0x05FF }, // Hebrew
  19257. { 'begin': 0xA500, 'end': 0xA63F }, // Vai
  19258. { 'begin': 0x0600, 'end': 0x06FF }, // Arabic
  19259. { 'begin': 0x07C0, 'end': 0x07FF }, // NKo
  19260. { 'begin': 0x0900, 'end': 0x097F }, // Devanagari
  19261. { 'begin': 0x0980, 'end': 0x09FF }, // Bengali
  19262. { 'begin': 0x0A00, 'end': 0x0A7F }, // Gurmukhi
  19263. { 'begin': 0x0A80, 'end': 0x0AFF }, // Gujarati
  19264. { 'begin': 0x0B00, 'end': 0x0B7F }, // Oriya
  19265. { 'begin': 0x0B80, 'end': 0x0BFF }, // Tamil
  19266. { 'begin': 0x0C00, 'end': 0x0C7F }, // Telugu
  19267. { 'begin': 0x0C80, 'end': 0x0CFF }, // Kannada
  19268. { 'begin': 0x0D00, 'end': 0x0D7F }, // Malayalam
  19269. { 'begin': 0x0E00, 'end': 0x0E7F }, // Thai
  19270. { 'begin': 0x0E80, 'end': 0x0EFF }, // Lao
  19271. { 'begin': 0x10A0, 'end': 0x10FF }, // Georgian
  19272. { 'begin': 0x1B00, 'end': 0x1B7F }, // Balinese
  19273. { 'begin': 0x1100, 'end': 0x11FF }, // Hangul Jamo
  19274. { 'begin': 0x1E00, 'end': 0x1EFF }, // Latin Extended Additional
  19275. { 'begin': 0x1F00, 'end': 0x1FFF }, // Greek Extended
  19276. { 'begin': 0x2000, 'end': 0x206F }, // General Punctuation
  19277. { 'begin': 0x2070, 'end': 0x209F }, // Superscripts And Subscripts
  19278. { 'begin': 0x20A0, 'end': 0x20CF }, // Currency Symbol
  19279. { 'begin': 0x20D0, 'end': 0x20FF }, // Combining Diacritical Marks For Symbols
  19280. { 'begin': 0x2100, 'end': 0x214F }, // Letterlike Symbols
  19281. { 'begin': 0x2150, 'end': 0x218F }, // Number Forms
  19282. { 'begin': 0x2190, 'end': 0x21FF }, // Arrows
  19283. { 'begin': 0x2200, 'end': 0x22FF }, // Mathematical Operators
  19284. { 'begin': 0x2300, 'end': 0x23FF }, // Miscellaneous Technical
  19285. { 'begin': 0x2400, 'end': 0x243F }, // Control Pictures
  19286. { 'begin': 0x2440, 'end': 0x245F }, // Optical Character Recognition
  19287. { 'begin': 0x2460, 'end': 0x24FF }, // Enclosed Alphanumerics
  19288. { 'begin': 0x2500, 'end': 0x257F }, // Box Drawing
  19289. { 'begin': 0x2580, 'end': 0x259F }, // Block Elements
  19290. { 'begin': 0x25A0, 'end': 0x25FF }, // Geometric Shapes
  19291. { 'begin': 0x2600, 'end': 0x26FF }, // Miscellaneous Symbols
  19292. { 'begin': 0x2700, 'end': 0x27BF }, // Dingbats
  19293. { 'begin': 0x3000, 'end': 0x303F }, // CJK Symbols And Punctuation
  19294. { 'begin': 0x3040, 'end': 0x309F }, // Hiragana
  19295. { 'begin': 0x30A0, 'end': 0x30FF }, // Katakana
  19296. { 'begin': 0x3100, 'end': 0x312F }, // Bopomofo
  19297. { 'begin': 0x3130, 'end': 0x318F }, // Hangul Compatibility Jamo
  19298. { 'begin': 0xA840, 'end': 0xA87F }, // Phags-pa
  19299. { 'begin': 0x3200, 'end': 0x32FF }, // Enclosed CJK Letters And Months
  19300. { 'begin': 0x3300, 'end': 0x33FF }, // CJK Compatibility
  19301. { 'begin': 0xAC00, 'end': 0xD7AF }, // Hangul Syllables
  19302. { 'begin': 0xD800, 'end': 0xDFFF }, // Non-Plane 0 *
  19303. { 'begin': 0x10900, 'end': 0x1091F }, // Phoenicia
  19304. { 'begin': 0x4E00, 'end': 0x9FFF }, // CJK Unified Ideographs
  19305. { 'begin': 0xE000, 'end': 0xF8FF }, // Private Use Area (plane 0)
  19306. { 'begin': 0x31C0, 'end': 0x31EF }, // CJK Strokes
  19307. { 'begin': 0xFB00, 'end': 0xFB4F }, // Alphabetic Presentation Forms
  19308. { 'begin': 0xFB50, 'end': 0xFDFF }, // Arabic Presentation Forms-A
  19309. { 'begin': 0xFE20, 'end': 0xFE2F }, // Combining Half Marks
  19310. { 'begin': 0xFE10, 'end': 0xFE1F }, // Vertical Forms
  19311. { 'begin': 0xFE50, 'end': 0xFE6F }, // Small Form Variants
  19312. { 'begin': 0xFE70, 'end': 0xFEFF }, // Arabic Presentation Forms-B
  19313. { 'begin': 0xFF00, 'end': 0xFFEF }, // Halfwidth And Fullwidth Forms
  19314. { 'begin': 0xFFF0, 'end': 0xFFFF }, // Specials
  19315. { 'begin': 0x0F00, 'end': 0x0FFF }, // Tibetan
  19316. { 'begin': 0x0700, 'end': 0x074F }, // Syriac
  19317. { 'begin': 0x0780, 'end': 0x07BF }, // Thaana
  19318. { 'begin': 0x0D80, 'end': 0x0DFF }, // Sinhala
  19319. { 'begin': 0x1000, 'end': 0x109F }, // Myanmar
  19320. { 'begin': 0x1200, 'end': 0x137F }, // Ethiopic
  19321. { 'begin': 0x13A0, 'end': 0x13FF }, // Cherokee
  19322. { 'begin': 0x1400, 'end': 0x167F }, // Unified Canadian Aboriginal Syllabics
  19323. { 'begin': 0x1680, 'end': 0x169F }, // Ogham
  19324. { 'begin': 0x16A0, 'end': 0x16FF }, // Runic
  19325. { 'begin': 0x1780, 'end': 0x17FF }, // Khmer
  19326. { 'begin': 0x1800, 'end': 0x18AF }, // Mongolian
  19327. { 'begin': 0x2800, 'end': 0x28FF }, // Braille Patterns
  19328. { 'begin': 0xA000, 'end': 0xA48F }, // Yi Syllables
  19329. { 'begin': 0x1700, 'end': 0x171F }, // Tagalog
  19330. { 'begin': 0x10300, 'end': 0x1032F }, // Old Italic
  19331. { 'begin': 0x10330, 'end': 0x1034F }, // Gothic
  19332. { 'begin': 0x10400, 'end': 0x1044F }, // Deseret
  19333. { 'begin': 0x1D000, 'end': 0x1D0FF }, // Byzantine Musical Symbols
  19334. { 'begin': 0x1D400, 'end': 0x1D7FF }, // Mathematical Alphanumeric Symbols
  19335. { 'begin': 0xFF000, 'end': 0xFFFFD }, // Private Use (plane 15)
  19336. { 'begin': 0xFE00, 'end': 0xFE0F }, // Variation Selectors
  19337. { 'begin': 0xE0000, 'end': 0xE007F }, // Tags
  19338. { 'begin': 0x1900, 'end': 0x194F }, // Limbu
  19339. { 'begin': 0x1950, 'end': 0x197F }, // Tai Le
  19340. { 'begin': 0x1980, 'end': 0x19DF }, // New Tai Lue
  19341. { 'begin': 0x1A00, 'end': 0x1A1F }, // Buginese
  19342. { 'begin': 0x2C00, 'end': 0x2C5F }, // Glagolitic
  19343. { 'begin': 0x2D30, 'end': 0x2D7F }, // Tifinagh
  19344. { 'begin': 0x4DC0, 'end': 0x4DFF }, // Yijing Hexagram Symbols
  19345. { 'begin': 0xA800, 'end': 0xA82F }, // Syloti Nagri
  19346. { 'begin': 0x10000, 'end': 0x1007F }, // Linear B Syllabary
  19347. { 'begin': 0x10140, 'end': 0x1018F }, // Ancient Greek Numbers
  19348. { 'begin': 0x10380, 'end': 0x1039F }, // Ugaritic
  19349. { 'begin': 0x103A0, 'end': 0x103DF }, // Old Persian
  19350. { 'begin': 0x10450, 'end': 0x1047F }, // Shavian
  19351. { 'begin': 0x10480, 'end': 0x104AF }, // Osmanya
  19352. { 'begin': 0x10800, 'end': 0x1083F }, // Cypriot Syllabary
  19353. { 'begin': 0x10A00, 'end': 0x10A5F }, // Kharoshthi
  19354. { 'begin': 0x1D300, 'end': 0x1D35F }, // Tai Xuan Jing Symbols
  19355. { 'begin': 0x12000, 'end': 0x123FF }, // Cuneiform
  19356. { 'begin': 0x1D360, 'end': 0x1D37F }, // Counting Rod Numerals
  19357. { 'begin': 0x1B80, 'end': 0x1BBF }, // Sundanese
  19358. { 'begin': 0x1C00, 'end': 0x1C4F }, // Lepcha
  19359. { 'begin': 0x1C50, 'end': 0x1C7F }, // Ol Chiki
  19360. { 'begin': 0xA880, 'end': 0xA8DF }, // Saurashtra
  19361. { 'begin': 0xA900, 'end': 0xA92F }, // Kayah Li
  19362. { 'begin': 0xA930, 'end': 0xA95F }, // Rejang
  19363. { 'begin': 0xAA00, 'end': 0xAA5F }, // Cham
  19364. { 'begin': 0x10190, 'end': 0x101CF }, // Ancient Symbols
  19365. { 'begin': 0x101D0, 'end': 0x101FF }, // Phaistos Disc
  19366. { 'begin': 0x102A0, 'end': 0x102DF }, // Carian
  19367. { 'begin': 0x1F030, 'end': 0x1F09F } // Domino Tiles
  19368. ];
  19369. var MacStandardGlyphOrdering = [
  19370. '.notdef', '.null', 'nonmarkingreturn', 'space', 'exclam', 'quotedbl',
  19371. 'numbersign', 'dollar', 'percent', 'ampersand', 'quotesingle', 'parenleft',
  19372. 'parenright', 'asterisk', 'plus', 'comma', 'hyphen', 'period', 'slash',
  19373. 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight',
  19374. 'nine', 'colon', 'semicolon', 'less', 'equal', 'greater', 'question', 'at',
  19375. 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
  19376. 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'bracketleft',
  19377. 'backslash', 'bracketright', 'asciicircum', 'underscore', 'grave', 'a', 'b',
  19378. 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q',
  19379. 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'braceleft', 'bar', 'braceright',
  19380. 'asciitilde', 'Adieresis', 'Aring', 'Ccedilla', 'Eacute', 'Ntilde',
  19381. 'Odieresis', 'Udieresis', 'aacute', 'agrave', 'acircumflex', 'adieresis',
  19382. 'atilde', 'aring', 'ccedilla', 'eacute', 'egrave', 'ecircumflex', 'edieresis',
  19383. 'iacute', 'igrave', 'icircumflex', 'idieresis', 'ntilde', 'oacute', 'ograve',
  19384. 'ocircumflex', 'odieresis', 'otilde', 'uacute', 'ugrave', 'ucircumflex',
  19385. 'udieresis', 'dagger', 'degree', 'cent', 'sterling', 'section', 'bullet',
  19386. 'paragraph', 'germandbls', 'registered', 'copyright', 'trademark', 'acute',
  19387. 'dieresis', 'notequal', 'AE', 'Oslash', 'infinity', 'plusminus', 'lessequal',
  19388. 'greaterequal', 'yen', 'mu', 'partialdiff', 'summation', 'product', 'pi',
  19389. 'integral', 'ordfeminine', 'ordmasculine', 'Omega', 'ae', 'oslash',
  19390. 'questiondown', 'exclamdown', 'logicalnot', 'radical', 'florin',
  19391. 'approxequal', 'Delta', 'guillemotleft', 'guillemotright', 'ellipsis',
  19392. 'nonbreakingspace', 'Agrave', 'Atilde', 'Otilde', 'OE', 'oe', 'endash',
  19393. 'emdash', 'quotedblleft', 'quotedblright', 'quoteleft', 'quoteright',
  19394. 'divide', 'lozenge', 'ydieresis', 'Ydieresis', 'fraction', 'currency',
  19395. 'guilsinglleft', 'guilsinglright', 'fi', 'fl', 'daggerdbl', 'periodcentered',
  19396. 'quotesinglbase', 'quotedblbase', 'perthousand', 'Acircumflex',
  19397. 'Ecircumflex', 'Aacute', 'Edieresis', 'Egrave', 'Iacute', 'Icircumflex',
  19398. 'Idieresis', 'Igrave', 'Oacute', 'Ocircumflex', 'apple', 'Ograve', 'Uacute',
  19399. 'Ucircumflex', 'Ugrave', 'dotlessi', 'circumflex', 'tilde', 'macron',
  19400. 'breve', 'dotaccent', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron',
  19401. 'Lslash', 'lslash', 'Scaron', 'scaron', 'Zcaron', 'zcaron', 'brokenbar',
  19402. 'Eth', 'eth', 'Yacute', 'yacute', 'Thorn', 'thorn', 'minus', 'multiply',
  19403. 'onesuperior', 'twosuperior', 'threesuperior', 'onehalf', 'onequarter',
  19404. 'threequarters', 'franc', 'Gbreve', 'gbreve', 'Idotaccent', 'Scedilla',
  19405. 'scedilla', 'Cacute', 'cacute', 'Ccaron', 'ccaron', 'dcroat'];
  19406. function getUnicodeRangeFor(value) {
  19407. for (var i = 0, ii = UnicodeRanges.length; i < ii; i++) {
  19408. var range = UnicodeRanges[i];
  19409. if (value >= range.begin && value < range.end) {
  19410. return i;
  19411. }
  19412. }
  19413. return -1;
  19414. }
  19415. function isRTLRangeFor(value) {
  19416. var range = UnicodeRanges[13];
  19417. if (value >= range.begin && value < range.end) {
  19418. return true;
  19419. }
  19420. range = UnicodeRanges[11];
  19421. if (value >= range.begin && value < range.end) {
  19422. return true;
  19423. }
  19424. return false;
  19425. }
  19426. // The normalization table is obtained by filtering the Unicode characters
  19427. // database with <compat> entries.
  19428. var NormalizedUnicodes = {
  19429. '\u00A8': '\u0020\u0308',
  19430. '\u00AF': '\u0020\u0304',
  19431. '\u00B4': '\u0020\u0301',
  19432. '\u00B5': '\u03BC',
  19433. '\u00B8': '\u0020\u0327',
  19434. '\u0132': '\u0049\u004A',
  19435. '\u0133': '\u0069\u006A',
  19436. '\u013F': '\u004C\u00B7',
  19437. '\u0140': '\u006C\u00B7',
  19438. '\u0149': '\u02BC\u006E',
  19439. '\u017F': '\u0073',
  19440. '\u01C4': '\u0044\u017D',
  19441. '\u01C5': '\u0044\u017E',
  19442. '\u01C6': '\u0064\u017E',
  19443. '\u01C7': '\u004C\u004A',
  19444. '\u01C8': '\u004C\u006A',
  19445. '\u01C9': '\u006C\u006A',
  19446. '\u01CA': '\u004E\u004A',
  19447. '\u01CB': '\u004E\u006A',
  19448. '\u01CC': '\u006E\u006A',
  19449. '\u01F1': '\u0044\u005A',
  19450. '\u01F2': '\u0044\u007A',
  19451. '\u01F3': '\u0064\u007A',
  19452. '\u02D8': '\u0020\u0306',
  19453. '\u02D9': '\u0020\u0307',
  19454. '\u02DA': '\u0020\u030A',
  19455. '\u02DB': '\u0020\u0328',
  19456. '\u02DC': '\u0020\u0303',
  19457. '\u02DD': '\u0020\u030B',
  19458. '\u037A': '\u0020\u0345',
  19459. '\u0384': '\u0020\u0301',
  19460. '\u03D0': '\u03B2',
  19461. '\u03D1': '\u03B8',
  19462. '\u03D2': '\u03A5',
  19463. '\u03D5': '\u03C6',
  19464. '\u03D6': '\u03C0',
  19465. '\u03F0': '\u03BA',
  19466. '\u03F1': '\u03C1',
  19467. '\u03F2': '\u03C2',
  19468. '\u03F4': '\u0398',
  19469. '\u03F5': '\u03B5',
  19470. '\u03F9': '\u03A3',
  19471. '\u0587': '\u0565\u0582',
  19472. '\u0675': '\u0627\u0674',
  19473. '\u0676': '\u0648\u0674',
  19474. '\u0677': '\u06C7\u0674',
  19475. '\u0678': '\u064A\u0674',
  19476. '\u0E33': '\u0E4D\u0E32',
  19477. '\u0EB3': '\u0ECD\u0EB2',
  19478. '\u0EDC': '\u0EAB\u0E99',
  19479. '\u0EDD': '\u0EAB\u0EA1',
  19480. '\u0F77': '\u0FB2\u0F81',
  19481. '\u0F79': '\u0FB3\u0F81',
  19482. '\u1E9A': '\u0061\u02BE',
  19483. '\u1FBD': '\u0020\u0313',
  19484. '\u1FBF': '\u0020\u0313',
  19485. '\u1FC0': '\u0020\u0342',
  19486. '\u1FFE': '\u0020\u0314',
  19487. '\u2002': '\u0020',
  19488. '\u2003': '\u0020',
  19489. '\u2004': '\u0020',
  19490. '\u2005': '\u0020',
  19491. '\u2006': '\u0020',
  19492. '\u2008': '\u0020',
  19493. '\u2009': '\u0020',
  19494. '\u200A': '\u0020',
  19495. '\u2017': '\u0020\u0333',
  19496. '\u2024': '\u002E',
  19497. '\u2025': '\u002E\u002E',
  19498. '\u2026': '\u002E\u002E\u002E',
  19499. '\u2033': '\u2032\u2032',
  19500. '\u2034': '\u2032\u2032\u2032',
  19501. '\u2036': '\u2035\u2035',
  19502. '\u2037': '\u2035\u2035\u2035',
  19503. '\u203C': '\u0021\u0021',
  19504. '\u203E': '\u0020\u0305',
  19505. '\u2047': '\u003F\u003F',
  19506. '\u2048': '\u003F\u0021',
  19507. '\u2049': '\u0021\u003F',
  19508. '\u2057': '\u2032\u2032\u2032\u2032',
  19509. '\u205F': '\u0020',
  19510. '\u20A8': '\u0052\u0073',
  19511. '\u2100': '\u0061\u002F\u0063',
  19512. '\u2101': '\u0061\u002F\u0073',
  19513. '\u2103': '\u00B0\u0043',
  19514. '\u2105': '\u0063\u002F\u006F',
  19515. '\u2106': '\u0063\u002F\u0075',
  19516. '\u2107': '\u0190',
  19517. '\u2109': '\u00B0\u0046',
  19518. '\u2116': '\u004E\u006F',
  19519. '\u2121': '\u0054\u0045\u004C',
  19520. '\u2135': '\u05D0',
  19521. '\u2136': '\u05D1',
  19522. '\u2137': '\u05D2',
  19523. '\u2138': '\u05D3',
  19524. '\u213B': '\u0046\u0041\u0058',
  19525. '\u2160': '\u0049',
  19526. '\u2161': '\u0049\u0049',
  19527. '\u2162': '\u0049\u0049\u0049',
  19528. '\u2163': '\u0049\u0056',
  19529. '\u2164': '\u0056',
  19530. '\u2165': '\u0056\u0049',
  19531. '\u2166': '\u0056\u0049\u0049',
  19532. '\u2167': '\u0056\u0049\u0049\u0049',
  19533. '\u2168': '\u0049\u0058',
  19534. '\u2169': '\u0058',
  19535. '\u216A': '\u0058\u0049',
  19536. '\u216B': '\u0058\u0049\u0049',
  19537. '\u216C': '\u004C',
  19538. '\u216D': '\u0043',
  19539. '\u216E': '\u0044',
  19540. '\u216F': '\u004D',
  19541. '\u2170': '\u0069',
  19542. '\u2171': '\u0069\u0069',
  19543. '\u2172': '\u0069\u0069\u0069',
  19544. '\u2173': '\u0069\u0076',
  19545. '\u2174': '\u0076',
  19546. '\u2175': '\u0076\u0069',
  19547. '\u2176': '\u0076\u0069\u0069',
  19548. '\u2177': '\u0076\u0069\u0069\u0069',
  19549. '\u2178': '\u0069\u0078',
  19550. '\u2179': '\u0078',
  19551. '\u217A': '\u0078\u0069',
  19552. '\u217B': '\u0078\u0069\u0069',
  19553. '\u217C': '\u006C',
  19554. '\u217D': '\u0063',
  19555. '\u217E': '\u0064',
  19556. '\u217F': '\u006D',
  19557. '\u222C': '\u222B\u222B',
  19558. '\u222D': '\u222B\u222B\u222B',
  19559. '\u222F': '\u222E\u222E',
  19560. '\u2230': '\u222E\u222E\u222E',
  19561. '\u2474': '\u0028\u0031\u0029',
  19562. '\u2475': '\u0028\u0032\u0029',
  19563. '\u2476': '\u0028\u0033\u0029',
  19564. '\u2477': '\u0028\u0034\u0029',
  19565. '\u2478': '\u0028\u0035\u0029',
  19566. '\u2479': '\u0028\u0036\u0029',
  19567. '\u247A': '\u0028\u0037\u0029',
  19568. '\u247B': '\u0028\u0038\u0029',
  19569. '\u247C': '\u0028\u0039\u0029',
  19570. '\u247D': '\u0028\u0031\u0030\u0029',
  19571. '\u247E': '\u0028\u0031\u0031\u0029',
  19572. '\u247F': '\u0028\u0031\u0032\u0029',
  19573. '\u2480': '\u0028\u0031\u0033\u0029',
  19574. '\u2481': '\u0028\u0031\u0034\u0029',
  19575. '\u2482': '\u0028\u0031\u0035\u0029',
  19576. '\u2483': '\u0028\u0031\u0036\u0029',
  19577. '\u2484': '\u0028\u0031\u0037\u0029',
  19578. '\u2485': '\u0028\u0031\u0038\u0029',
  19579. '\u2486': '\u0028\u0031\u0039\u0029',
  19580. '\u2487': '\u0028\u0032\u0030\u0029',
  19581. '\u2488': '\u0031\u002E',
  19582. '\u2489': '\u0032\u002E',
  19583. '\u248A': '\u0033\u002E',
  19584. '\u248B': '\u0034\u002E',
  19585. '\u248C': '\u0035\u002E',
  19586. '\u248D': '\u0036\u002E',
  19587. '\u248E': '\u0037\u002E',
  19588. '\u248F': '\u0038\u002E',
  19589. '\u2490': '\u0039\u002E',
  19590. '\u2491': '\u0031\u0030\u002E',
  19591. '\u2492': '\u0031\u0031\u002E',
  19592. '\u2493': '\u0031\u0032\u002E',
  19593. '\u2494': '\u0031\u0033\u002E',
  19594. '\u2495': '\u0031\u0034\u002E',
  19595. '\u2496': '\u0031\u0035\u002E',
  19596. '\u2497': '\u0031\u0036\u002E',
  19597. '\u2498': '\u0031\u0037\u002E',
  19598. '\u2499': '\u0031\u0038\u002E',
  19599. '\u249A': '\u0031\u0039\u002E',
  19600. '\u249B': '\u0032\u0030\u002E',
  19601. '\u249C': '\u0028\u0061\u0029',
  19602. '\u249D': '\u0028\u0062\u0029',
  19603. '\u249E': '\u0028\u0063\u0029',
  19604. '\u249F': '\u0028\u0064\u0029',
  19605. '\u24A0': '\u0028\u0065\u0029',
  19606. '\u24A1': '\u0028\u0066\u0029',
  19607. '\u24A2': '\u0028\u0067\u0029',
  19608. '\u24A3': '\u0028\u0068\u0029',
  19609. '\u24A4': '\u0028\u0069\u0029',
  19610. '\u24A5': '\u0028\u006A\u0029',
  19611. '\u24A6': '\u0028\u006B\u0029',
  19612. '\u24A7': '\u0028\u006C\u0029',
  19613. '\u24A8': '\u0028\u006D\u0029',
  19614. '\u24A9': '\u0028\u006E\u0029',
  19615. '\u24AA': '\u0028\u006F\u0029',
  19616. '\u24AB': '\u0028\u0070\u0029',
  19617. '\u24AC': '\u0028\u0071\u0029',
  19618. '\u24AD': '\u0028\u0072\u0029',
  19619. '\u24AE': '\u0028\u0073\u0029',
  19620. '\u24AF': '\u0028\u0074\u0029',
  19621. '\u24B0': '\u0028\u0075\u0029',
  19622. '\u24B1': '\u0028\u0076\u0029',
  19623. '\u24B2': '\u0028\u0077\u0029',
  19624. '\u24B3': '\u0028\u0078\u0029',
  19625. '\u24B4': '\u0028\u0079\u0029',
  19626. '\u24B5': '\u0028\u007A\u0029',
  19627. '\u2A0C': '\u222B\u222B\u222B\u222B',
  19628. '\u2A74': '\u003A\u003A\u003D',
  19629. '\u2A75': '\u003D\u003D',
  19630. '\u2A76': '\u003D\u003D\u003D',
  19631. '\u2E9F': '\u6BCD',
  19632. '\u2EF3': '\u9F9F',
  19633. '\u2F00': '\u4E00',
  19634. '\u2F01': '\u4E28',
  19635. '\u2F02': '\u4E36',
  19636. '\u2F03': '\u4E3F',
  19637. '\u2F04': '\u4E59',
  19638. '\u2F05': '\u4E85',
  19639. '\u2F06': '\u4E8C',
  19640. '\u2F07': '\u4EA0',
  19641. '\u2F08': '\u4EBA',
  19642. '\u2F09': '\u513F',
  19643. '\u2F0A': '\u5165',
  19644. '\u2F0B': '\u516B',
  19645. '\u2F0C': '\u5182',
  19646. '\u2F0D': '\u5196',
  19647. '\u2F0E': '\u51AB',
  19648. '\u2F0F': '\u51E0',
  19649. '\u2F10': '\u51F5',
  19650. '\u2F11': '\u5200',
  19651. '\u2F12': '\u529B',
  19652. '\u2F13': '\u52F9',
  19653. '\u2F14': '\u5315',
  19654. '\u2F15': '\u531A',
  19655. '\u2F16': '\u5338',
  19656. '\u2F17': '\u5341',
  19657. '\u2F18': '\u535C',
  19658. '\u2F19': '\u5369',
  19659. '\u2F1A': '\u5382',
  19660. '\u2F1B': '\u53B6',
  19661. '\u2F1C': '\u53C8',
  19662. '\u2F1D': '\u53E3',
  19663. '\u2F1E': '\u56D7',
  19664. '\u2F1F': '\u571F',
  19665. '\u2F20': '\u58EB',
  19666. '\u2F21': '\u5902',
  19667. '\u2F22': '\u590A',
  19668. '\u2F23': '\u5915',
  19669. '\u2F24': '\u5927',
  19670. '\u2F25': '\u5973',
  19671. '\u2F26': '\u5B50',
  19672. '\u2F27': '\u5B80',
  19673. '\u2F28': '\u5BF8',
  19674. '\u2F29': '\u5C0F',
  19675. '\u2F2A': '\u5C22',
  19676. '\u2F2B': '\u5C38',
  19677. '\u2F2C': '\u5C6E',
  19678. '\u2F2D': '\u5C71',
  19679. '\u2F2E': '\u5DDB',
  19680. '\u2F2F': '\u5DE5',
  19681. '\u2F30': '\u5DF1',
  19682. '\u2F31': '\u5DFE',
  19683. '\u2F32': '\u5E72',
  19684. '\u2F33': '\u5E7A',
  19685. '\u2F34': '\u5E7F',
  19686. '\u2F35': '\u5EF4',
  19687. '\u2F36': '\u5EFE',
  19688. '\u2F37': '\u5F0B',
  19689. '\u2F38': '\u5F13',
  19690. '\u2F39': '\u5F50',
  19691. '\u2F3A': '\u5F61',
  19692. '\u2F3B': '\u5F73',
  19693. '\u2F3C': '\u5FC3',
  19694. '\u2F3D': '\u6208',
  19695. '\u2F3E': '\u6236',
  19696. '\u2F3F': '\u624B',
  19697. '\u2F40': '\u652F',
  19698. '\u2F41': '\u6534',
  19699. '\u2F42': '\u6587',
  19700. '\u2F43': '\u6597',
  19701. '\u2F44': '\u65A4',
  19702. '\u2F45': '\u65B9',
  19703. '\u2F46': '\u65E0',
  19704. '\u2F47': '\u65E5',
  19705. '\u2F48': '\u66F0',
  19706. '\u2F49': '\u6708',
  19707. '\u2F4A': '\u6728',
  19708. '\u2F4B': '\u6B20',
  19709. '\u2F4C': '\u6B62',
  19710. '\u2F4D': '\u6B79',
  19711. '\u2F4E': '\u6BB3',
  19712. '\u2F4F': '\u6BCB',
  19713. '\u2F50': '\u6BD4',
  19714. '\u2F51': '\u6BDB',
  19715. '\u2F52': '\u6C0F',
  19716. '\u2F53': '\u6C14',
  19717. '\u2F54': '\u6C34',
  19718. '\u2F55': '\u706B',
  19719. '\u2F56': '\u722A',
  19720. '\u2F57': '\u7236',
  19721. '\u2F58': '\u723B',
  19722. '\u2F59': '\u723F',
  19723. '\u2F5A': '\u7247',
  19724. '\u2F5B': '\u7259',
  19725. '\u2F5C': '\u725B',
  19726. '\u2F5D': '\u72AC',
  19727. '\u2F5E': '\u7384',
  19728. '\u2F5F': '\u7389',
  19729. '\u2F60': '\u74DC',
  19730. '\u2F61': '\u74E6',
  19731. '\u2F62': '\u7518',
  19732. '\u2F63': '\u751F',
  19733. '\u2F64': '\u7528',
  19734. '\u2F65': '\u7530',
  19735. '\u2F66': '\u758B',
  19736. '\u2F67': '\u7592',
  19737. '\u2F68': '\u7676',
  19738. '\u2F69': '\u767D',
  19739. '\u2F6A': '\u76AE',
  19740. '\u2F6B': '\u76BF',
  19741. '\u2F6C': '\u76EE',
  19742. '\u2F6D': '\u77DB',
  19743. '\u2F6E': '\u77E2',
  19744. '\u2F6F': '\u77F3',
  19745. '\u2F70': '\u793A',
  19746. '\u2F71': '\u79B8',
  19747. '\u2F72': '\u79BE',
  19748. '\u2F73': '\u7A74',
  19749. '\u2F74': '\u7ACB',
  19750. '\u2F75': '\u7AF9',
  19751. '\u2F76': '\u7C73',
  19752. '\u2F77': '\u7CF8',
  19753. '\u2F78': '\u7F36',
  19754. '\u2F79': '\u7F51',
  19755. '\u2F7A': '\u7F8A',
  19756. '\u2F7B': '\u7FBD',
  19757. '\u2F7C': '\u8001',
  19758. '\u2F7D': '\u800C',
  19759. '\u2F7E': '\u8012',
  19760. '\u2F7F': '\u8033',
  19761. '\u2F80': '\u807F',
  19762. '\u2F81': '\u8089',
  19763. '\u2F82': '\u81E3',
  19764. '\u2F83': '\u81EA',
  19765. '\u2F84': '\u81F3',
  19766. '\u2F85': '\u81FC',
  19767. '\u2F86': '\u820C',
  19768. '\u2F87': '\u821B',
  19769. '\u2F88': '\u821F',
  19770. '\u2F89': '\u826E',
  19771. '\u2F8A': '\u8272',
  19772. '\u2F8B': '\u8278',
  19773. '\u2F8C': '\u864D',
  19774. '\u2F8D': '\u866B',
  19775. '\u2F8E': '\u8840',
  19776. '\u2F8F': '\u884C',
  19777. '\u2F90': '\u8863',
  19778. '\u2F91': '\u897E',
  19779. '\u2F92': '\u898B',
  19780. '\u2F93': '\u89D2',
  19781. '\u2F94': '\u8A00',
  19782. '\u2F95': '\u8C37',
  19783. '\u2F96': '\u8C46',
  19784. '\u2F97': '\u8C55',
  19785. '\u2F98': '\u8C78',
  19786. '\u2F99': '\u8C9D',
  19787. '\u2F9A': '\u8D64',
  19788. '\u2F9B': '\u8D70',
  19789. '\u2F9C': '\u8DB3',
  19790. '\u2F9D': '\u8EAB',
  19791. '\u2F9E': '\u8ECA',
  19792. '\u2F9F': '\u8F9B',
  19793. '\u2FA0': '\u8FB0',
  19794. '\u2FA1': '\u8FB5',
  19795. '\u2FA2': '\u9091',
  19796. '\u2FA3': '\u9149',
  19797. '\u2FA4': '\u91C6',
  19798. '\u2FA5': '\u91CC',
  19799. '\u2FA6': '\u91D1',
  19800. '\u2FA7': '\u9577',
  19801. '\u2FA8': '\u9580',
  19802. '\u2FA9': '\u961C',
  19803. '\u2FAA': '\u96B6',
  19804. '\u2FAB': '\u96B9',
  19805. '\u2FAC': '\u96E8',
  19806. '\u2FAD': '\u9751',
  19807. '\u2FAE': '\u975E',
  19808. '\u2FAF': '\u9762',
  19809. '\u2FB0': '\u9769',
  19810. '\u2FB1': '\u97CB',
  19811. '\u2FB2': '\u97ED',
  19812. '\u2FB3': '\u97F3',
  19813. '\u2FB4': '\u9801',
  19814. '\u2FB5': '\u98A8',
  19815. '\u2FB6': '\u98DB',
  19816. '\u2FB7': '\u98DF',
  19817. '\u2FB8': '\u9996',
  19818. '\u2FB9': '\u9999',
  19819. '\u2FBA': '\u99AC',
  19820. '\u2FBB': '\u9AA8',
  19821. '\u2FBC': '\u9AD8',
  19822. '\u2FBD': '\u9ADF',
  19823. '\u2FBE': '\u9B25',
  19824. '\u2FBF': '\u9B2F',
  19825. '\u2FC0': '\u9B32',
  19826. '\u2FC1': '\u9B3C',
  19827. '\u2FC2': '\u9B5A',
  19828. '\u2FC3': '\u9CE5',
  19829. '\u2FC4': '\u9E75',
  19830. '\u2FC5': '\u9E7F',
  19831. '\u2FC6': '\u9EA5',
  19832. '\u2FC7': '\u9EBB',
  19833. '\u2FC8': '\u9EC3',
  19834. '\u2FC9': '\u9ECD',
  19835. '\u2FCA': '\u9ED1',
  19836. '\u2FCB': '\u9EF9',
  19837. '\u2FCC': '\u9EFD',
  19838. '\u2FCD': '\u9F0E',
  19839. '\u2FCE': '\u9F13',
  19840. '\u2FCF': '\u9F20',
  19841. '\u2FD0': '\u9F3B',
  19842. '\u2FD1': '\u9F4A',
  19843. '\u2FD2': '\u9F52',
  19844. '\u2FD3': '\u9F8D',
  19845. '\u2FD4': '\u9F9C',
  19846. '\u2FD5': '\u9FA0',
  19847. '\u3036': '\u3012',
  19848. '\u3038': '\u5341',
  19849. '\u3039': '\u5344',
  19850. '\u303A': '\u5345',
  19851. '\u309B': '\u0020\u3099',
  19852. '\u309C': '\u0020\u309A',
  19853. '\u3131': '\u1100',
  19854. '\u3132': '\u1101',
  19855. '\u3133': '\u11AA',
  19856. '\u3134': '\u1102',
  19857. '\u3135': '\u11AC',
  19858. '\u3136': '\u11AD',
  19859. '\u3137': '\u1103',
  19860. '\u3138': '\u1104',
  19861. '\u3139': '\u1105',
  19862. '\u313A': '\u11B0',
  19863. '\u313B': '\u11B1',
  19864. '\u313C': '\u11B2',
  19865. '\u313D': '\u11B3',
  19866. '\u313E': '\u11B4',
  19867. '\u313F': '\u11B5',
  19868. '\u3140': '\u111A',
  19869. '\u3141': '\u1106',
  19870. '\u3142': '\u1107',
  19871. '\u3143': '\u1108',
  19872. '\u3144': '\u1121',
  19873. '\u3145': '\u1109',
  19874. '\u3146': '\u110A',
  19875. '\u3147': '\u110B',
  19876. '\u3148': '\u110C',
  19877. '\u3149': '\u110D',
  19878. '\u314A': '\u110E',
  19879. '\u314B': '\u110F',
  19880. '\u314C': '\u1110',
  19881. '\u314D': '\u1111',
  19882. '\u314E': '\u1112',
  19883. '\u314F': '\u1161',
  19884. '\u3150': '\u1162',
  19885. '\u3151': '\u1163',
  19886. '\u3152': '\u1164',
  19887. '\u3153': '\u1165',
  19888. '\u3154': '\u1166',
  19889. '\u3155': '\u1167',
  19890. '\u3156': '\u1168',
  19891. '\u3157': '\u1169',
  19892. '\u3158': '\u116A',
  19893. '\u3159': '\u116B',
  19894. '\u315A': '\u116C',
  19895. '\u315B': '\u116D',
  19896. '\u315C': '\u116E',
  19897. '\u315D': '\u116F',
  19898. '\u315E': '\u1170',
  19899. '\u315F': '\u1171',
  19900. '\u3160': '\u1172',
  19901. '\u3161': '\u1173',
  19902. '\u3162': '\u1174',
  19903. '\u3163': '\u1175',
  19904. '\u3164': '\u1160',
  19905. '\u3165': '\u1114',
  19906. '\u3166': '\u1115',
  19907. '\u3167': '\u11C7',
  19908. '\u3168': '\u11C8',
  19909. '\u3169': '\u11CC',
  19910. '\u316A': '\u11CE',
  19911. '\u316B': '\u11D3',
  19912. '\u316C': '\u11D7',
  19913. '\u316D': '\u11D9',
  19914. '\u316E': '\u111C',
  19915. '\u316F': '\u11DD',
  19916. '\u3170': '\u11DF',
  19917. '\u3171': '\u111D',
  19918. '\u3172': '\u111E',
  19919. '\u3173': '\u1120',
  19920. '\u3174': '\u1122',
  19921. '\u3175': '\u1123',
  19922. '\u3176': '\u1127',
  19923. '\u3177': '\u1129',
  19924. '\u3178': '\u112B',
  19925. '\u3179': '\u112C',
  19926. '\u317A': '\u112D',
  19927. '\u317B': '\u112E',
  19928. '\u317C': '\u112F',
  19929. '\u317D': '\u1132',
  19930. '\u317E': '\u1136',
  19931. '\u317F': '\u1140',
  19932. '\u3180': '\u1147',
  19933. '\u3181': '\u114C',
  19934. '\u3182': '\u11F1',
  19935. '\u3183': '\u11F2',
  19936. '\u3184': '\u1157',
  19937. '\u3185': '\u1158',
  19938. '\u3186': '\u1159',
  19939. '\u3187': '\u1184',
  19940. '\u3188': '\u1185',
  19941. '\u3189': '\u1188',
  19942. '\u318A': '\u1191',
  19943. '\u318B': '\u1192',
  19944. '\u318C': '\u1194',
  19945. '\u318D': '\u119E',
  19946. '\u318E': '\u11A1',
  19947. '\u3200': '\u0028\u1100\u0029',
  19948. '\u3201': '\u0028\u1102\u0029',
  19949. '\u3202': '\u0028\u1103\u0029',
  19950. '\u3203': '\u0028\u1105\u0029',
  19951. '\u3204': '\u0028\u1106\u0029',
  19952. '\u3205': '\u0028\u1107\u0029',
  19953. '\u3206': '\u0028\u1109\u0029',
  19954. '\u3207': '\u0028\u110B\u0029',
  19955. '\u3208': '\u0028\u110C\u0029',
  19956. '\u3209': '\u0028\u110E\u0029',
  19957. '\u320A': '\u0028\u110F\u0029',
  19958. '\u320B': '\u0028\u1110\u0029',
  19959. '\u320C': '\u0028\u1111\u0029',
  19960. '\u320D': '\u0028\u1112\u0029',
  19961. '\u320E': '\u0028\u1100\u1161\u0029',
  19962. '\u320F': '\u0028\u1102\u1161\u0029',
  19963. '\u3210': '\u0028\u1103\u1161\u0029',
  19964. '\u3211': '\u0028\u1105\u1161\u0029',
  19965. '\u3212': '\u0028\u1106\u1161\u0029',
  19966. '\u3213': '\u0028\u1107\u1161\u0029',
  19967. '\u3214': '\u0028\u1109\u1161\u0029',
  19968. '\u3215': '\u0028\u110B\u1161\u0029',
  19969. '\u3216': '\u0028\u110C\u1161\u0029',
  19970. '\u3217': '\u0028\u110E\u1161\u0029',
  19971. '\u3218': '\u0028\u110F\u1161\u0029',
  19972. '\u3219': '\u0028\u1110\u1161\u0029',
  19973. '\u321A': '\u0028\u1111\u1161\u0029',
  19974. '\u321B': '\u0028\u1112\u1161\u0029',
  19975. '\u321C': '\u0028\u110C\u116E\u0029',
  19976. '\u321D': '\u0028\u110B\u1169\u110C\u1165\u11AB\u0029',
  19977. '\u321E': '\u0028\u110B\u1169\u1112\u116E\u0029',
  19978. '\u3220': '\u0028\u4E00\u0029',
  19979. '\u3221': '\u0028\u4E8C\u0029',
  19980. '\u3222': '\u0028\u4E09\u0029',
  19981. '\u3223': '\u0028\u56DB\u0029',
  19982. '\u3224': '\u0028\u4E94\u0029',
  19983. '\u3225': '\u0028\u516D\u0029',
  19984. '\u3226': '\u0028\u4E03\u0029',
  19985. '\u3227': '\u0028\u516B\u0029',
  19986. '\u3228': '\u0028\u4E5D\u0029',
  19987. '\u3229': '\u0028\u5341\u0029',
  19988. '\u322A': '\u0028\u6708\u0029',
  19989. '\u322B': '\u0028\u706B\u0029',
  19990. '\u322C': '\u0028\u6C34\u0029',
  19991. '\u322D': '\u0028\u6728\u0029',
  19992. '\u322E': '\u0028\u91D1\u0029',
  19993. '\u322F': '\u0028\u571F\u0029',
  19994. '\u3230': '\u0028\u65E5\u0029',
  19995. '\u3231': '\u0028\u682A\u0029',
  19996. '\u3232': '\u0028\u6709\u0029',
  19997. '\u3233': '\u0028\u793E\u0029',
  19998. '\u3234': '\u0028\u540D\u0029',
  19999. '\u3235': '\u0028\u7279\u0029',
  20000. '\u3236': '\u0028\u8CA1\u0029',
  20001. '\u3237': '\u0028\u795D\u0029',
  20002. '\u3238': '\u0028\u52B4\u0029',
  20003. '\u3239': '\u0028\u4EE3\u0029',
  20004. '\u323A': '\u0028\u547C\u0029',
  20005. '\u323B': '\u0028\u5B66\u0029',
  20006. '\u323C': '\u0028\u76E3\u0029',
  20007. '\u323D': '\u0028\u4F01\u0029',
  20008. '\u323E': '\u0028\u8CC7\u0029',
  20009. '\u323F': '\u0028\u5354\u0029',
  20010. '\u3240': '\u0028\u796D\u0029',
  20011. '\u3241': '\u0028\u4F11\u0029',
  20012. '\u3242': '\u0028\u81EA\u0029',
  20013. '\u3243': '\u0028\u81F3\u0029',
  20014. '\u32C0': '\u0031\u6708',
  20015. '\u32C1': '\u0032\u6708',
  20016. '\u32C2': '\u0033\u6708',
  20017. '\u32C3': '\u0034\u6708',
  20018. '\u32C4': '\u0035\u6708',
  20019. '\u32C5': '\u0036\u6708',
  20020. '\u32C6': '\u0037\u6708',
  20021. '\u32C7': '\u0038\u6708',
  20022. '\u32C8': '\u0039\u6708',
  20023. '\u32C9': '\u0031\u0030\u6708',
  20024. '\u32CA': '\u0031\u0031\u6708',
  20025. '\u32CB': '\u0031\u0032\u6708',
  20026. '\u3358': '\u0030\u70B9',
  20027. '\u3359': '\u0031\u70B9',
  20028. '\u335A': '\u0032\u70B9',
  20029. '\u335B': '\u0033\u70B9',
  20030. '\u335C': '\u0034\u70B9',
  20031. '\u335D': '\u0035\u70B9',
  20032. '\u335E': '\u0036\u70B9',
  20033. '\u335F': '\u0037\u70B9',
  20034. '\u3360': '\u0038\u70B9',
  20035. '\u3361': '\u0039\u70B9',
  20036. '\u3362': '\u0031\u0030\u70B9',
  20037. '\u3363': '\u0031\u0031\u70B9',
  20038. '\u3364': '\u0031\u0032\u70B9',
  20039. '\u3365': '\u0031\u0033\u70B9',
  20040. '\u3366': '\u0031\u0034\u70B9',
  20041. '\u3367': '\u0031\u0035\u70B9',
  20042. '\u3368': '\u0031\u0036\u70B9',
  20043. '\u3369': '\u0031\u0037\u70B9',
  20044. '\u336A': '\u0031\u0038\u70B9',
  20045. '\u336B': '\u0031\u0039\u70B9',
  20046. '\u336C': '\u0032\u0030\u70B9',
  20047. '\u336D': '\u0032\u0031\u70B9',
  20048. '\u336E': '\u0032\u0032\u70B9',
  20049. '\u336F': '\u0032\u0033\u70B9',
  20050. '\u3370': '\u0032\u0034\u70B9',
  20051. '\u33E0': '\u0031\u65E5',
  20052. '\u33E1': '\u0032\u65E5',
  20053. '\u33E2': '\u0033\u65E5',
  20054. '\u33E3': '\u0034\u65E5',
  20055. '\u33E4': '\u0035\u65E5',
  20056. '\u33E5': '\u0036\u65E5',
  20057. '\u33E6': '\u0037\u65E5',
  20058. '\u33E7': '\u0038\u65E5',
  20059. '\u33E8': '\u0039\u65E5',
  20060. '\u33E9': '\u0031\u0030\u65E5',
  20061. '\u33EA': '\u0031\u0031\u65E5',
  20062. '\u33EB': '\u0031\u0032\u65E5',
  20063. '\u33EC': '\u0031\u0033\u65E5',
  20064. '\u33ED': '\u0031\u0034\u65E5',
  20065. '\u33EE': '\u0031\u0035\u65E5',
  20066. '\u33EF': '\u0031\u0036\u65E5',
  20067. '\u33F0': '\u0031\u0037\u65E5',
  20068. '\u33F1': '\u0031\u0038\u65E5',
  20069. '\u33F2': '\u0031\u0039\u65E5',
  20070. '\u33F3': '\u0032\u0030\u65E5',
  20071. '\u33F4': '\u0032\u0031\u65E5',
  20072. '\u33F5': '\u0032\u0032\u65E5',
  20073. '\u33F6': '\u0032\u0033\u65E5',
  20074. '\u33F7': '\u0032\u0034\u65E5',
  20075. '\u33F8': '\u0032\u0035\u65E5',
  20076. '\u33F9': '\u0032\u0036\u65E5',
  20077. '\u33FA': '\u0032\u0037\u65E5',
  20078. '\u33FB': '\u0032\u0038\u65E5',
  20079. '\u33FC': '\u0032\u0039\u65E5',
  20080. '\u33FD': '\u0033\u0030\u65E5',
  20081. '\u33FE': '\u0033\u0031\u65E5',
  20082. '\uFB00': '\u0066\u0066',
  20083. '\uFB01': '\u0066\u0069',
  20084. '\uFB02': '\u0066\u006C',
  20085. '\uFB03': '\u0066\u0066\u0069',
  20086. '\uFB04': '\u0066\u0066\u006C',
  20087. '\uFB05': '\u017F\u0074',
  20088. '\uFB06': '\u0073\u0074',
  20089. '\uFB13': '\u0574\u0576',
  20090. '\uFB14': '\u0574\u0565',
  20091. '\uFB15': '\u0574\u056B',
  20092. '\uFB16': '\u057E\u0576',
  20093. '\uFB17': '\u0574\u056D',
  20094. '\uFB4F': '\u05D0\u05DC',
  20095. '\uFB50': '\u0671',
  20096. '\uFB51': '\u0671',
  20097. '\uFB52': '\u067B',
  20098. '\uFB53': '\u067B',
  20099. '\uFB54': '\u067B',
  20100. '\uFB55': '\u067B',
  20101. '\uFB56': '\u067E',
  20102. '\uFB57': '\u067E',
  20103. '\uFB58': '\u067E',
  20104. '\uFB59': '\u067E',
  20105. '\uFB5A': '\u0680',
  20106. '\uFB5B': '\u0680',
  20107. '\uFB5C': '\u0680',
  20108. '\uFB5D': '\u0680',
  20109. '\uFB5E': '\u067A',
  20110. '\uFB5F': '\u067A',
  20111. '\uFB60': '\u067A',
  20112. '\uFB61': '\u067A',
  20113. '\uFB62': '\u067F',
  20114. '\uFB63': '\u067F',
  20115. '\uFB64': '\u067F',
  20116. '\uFB65': '\u067F',
  20117. '\uFB66': '\u0679',
  20118. '\uFB67': '\u0679',
  20119. '\uFB68': '\u0679',
  20120. '\uFB69': '\u0679',
  20121. '\uFB6A': '\u06A4',
  20122. '\uFB6B': '\u06A4',
  20123. '\uFB6C': '\u06A4',
  20124. '\uFB6D': '\u06A4',
  20125. '\uFB6E': '\u06A6',
  20126. '\uFB6F': '\u06A6',
  20127. '\uFB70': '\u06A6',
  20128. '\uFB71': '\u06A6',
  20129. '\uFB72': '\u0684',
  20130. '\uFB73': '\u0684',
  20131. '\uFB74': '\u0684',
  20132. '\uFB75': '\u0684',
  20133. '\uFB76': '\u0683',
  20134. '\uFB77': '\u0683',
  20135. '\uFB78': '\u0683',
  20136. '\uFB79': '\u0683',
  20137. '\uFB7A': '\u0686',
  20138. '\uFB7B': '\u0686',
  20139. '\uFB7C': '\u0686',
  20140. '\uFB7D': '\u0686',
  20141. '\uFB7E': '\u0687',
  20142. '\uFB7F': '\u0687',
  20143. '\uFB80': '\u0687',
  20144. '\uFB81': '\u0687',
  20145. '\uFB82': '\u068D',
  20146. '\uFB83': '\u068D',
  20147. '\uFB84': '\u068C',
  20148. '\uFB85': '\u068C',
  20149. '\uFB86': '\u068E',
  20150. '\uFB87': '\u068E',
  20151. '\uFB88': '\u0688',
  20152. '\uFB89': '\u0688',
  20153. '\uFB8A': '\u0698',
  20154. '\uFB8B': '\u0698',
  20155. '\uFB8C': '\u0691',
  20156. '\uFB8D': '\u0691',
  20157. '\uFB8E': '\u06A9',
  20158. '\uFB8F': '\u06A9',
  20159. '\uFB90': '\u06A9',
  20160. '\uFB91': '\u06A9',
  20161. '\uFB92': '\u06AF',
  20162. '\uFB93': '\u06AF',
  20163. '\uFB94': '\u06AF',
  20164. '\uFB95': '\u06AF',
  20165. '\uFB96': '\u06B3',
  20166. '\uFB97': '\u06B3',
  20167. '\uFB98': '\u06B3',
  20168. '\uFB99': '\u06B3',
  20169. '\uFB9A': '\u06B1',
  20170. '\uFB9B': '\u06B1',
  20171. '\uFB9C': '\u06B1',
  20172. '\uFB9D': '\u06B1',
  20173. '\uFB9E': '\u06BA',
  20174. '\uFB9F': '\u06BA',
  20175. '\uFBA0': '\u06BB',
  20176. '\uFBA1': '\u06BB',
  20177. '\uFBA2': '\u06BB',
  20178. '\uFBA3': '\u06BB',
  20179. '\uFBA4': '\u06C0',
  20180. '\uFBA5': '\u06C0',
  20181. '\uFBA6': '\u06C1',
  20182. '\uFBA7': '\u06C1',
  20183. '\uFBA8': '\u06C1',
  20184. '\uFBA9': '\u06C1',
  20185. '\uFBAA': '\u06BE',
  20186. '\uFBAB': '\u06BE',
  20187. '\uFBAC': '\u06BE',
  20188. '\uFBAD': '\u06BE',
  20189. '\uFBAE': '\u06D2',
  20190. '\uFBAF': '\u06D2',
  20191. '\uFBB0': '\u06D3',
  20192. '\uFBB1': '\u06D3',
  20193. '\uFBD3': '\u06AD',
  20194. '\uFBD4': '\u06AD',
  20195. '\uFBD5': '\u06AD',
  20196. '\uFBD6': '\u06AD',
  20197. '\uFBD7': '\u06C7',
  20198. '\uFBD8': '\u06C7',
  20199. '\uFBD9': '\u06C6',
  20200. '\uFBDA': '\u06C6',
  20201. '\uFBDB': '\u06C8',
  20202. '\uFBDC': '\u06C8',
  20203. '\uFBDD': '\u0677',
  20204. '\uFBDE': '\u06CB',
  20205. '\uFBDF': '\u06CB',
  20206. '\uFBE0': '\u06C5',
  20207. '\uFBE1': '\u06C5',
  20208. '\uFBE2': '\u06C9',
  20209. '\uFBE3': '\u06C9',
  20210. '\uFBE4': '\u06D0',
  20211. '\uFBE5': '\u06D0',
  20212. '\uFBE6': '\u06D0',
  20213. '\uFBE7': '\u06D0',
  20214. '\uFBE8': '\u0649',
  20215. '\uFBE9': '\u0649',
  20216. '\uFBEA': '\u0626\u0627',
  20217. '\uFBEB': '\u0626\u0627',
  20218. '\uFBEC': '\u0626\u06D5',
  20219. '\uFBED': '\u0626\u06D5',
  20220. '\uFBEE': '\u0626\u0648',
  20221. '\uFBEF': '\u0626\u0648',
  20222. '\uFBF0': '\u0626\u06C7',
  20223. '\uFBF1': '\u0626\u06C7',
  20224. '\uFBF2': '\u0626\u06C6',
  20225. '\uFBF3': '\u0626\u06C6',
  20226. '\uFBF4': '\u0626\u06C8',
  20227. '\uFBF5': '\u0626\u06C8',
  20228. '\uFBF6': '\u0626\u06D0',
  20229. '\uFBF7': '\u0626\u06D0',
  20230. '\uFBF8': '\u0626\u06D0',
  20231. '\uFBF9': '\u0626\u0649',
  20232. '\uFBFA': '\u0626\u0649',
  20233. '\uFBFB': '\u0626\u0649',
  20234. '\uFBFC': '\u06CC',
  20235. '\uFBFD': '\u06CC',
  20236. '\uFBFE': '\u06CC',
  20237. '\uFBFF': '\u06CC',
  20238. '\uFC00': '\u0626\u062C',
  20239. '\uFC01': '\u0626\u062D',
  20240. '\uFC02': '\u0626\u0645',
  20241. '\uFC03': '\u0626\u0649',
  20242. '\uFC04': '\u0626\u064A',
  20243. '\uFC05': '\u0628\u062C',
  20244. '\uFC06': '\u0628\u062D',
  20245. '\uFC07': '\u0628\u062E',
  20246. '\uFC08': '\u0628\u0645',
  20247. '\uFC09': '\u0628\u0649',
  20248. '\uFC0A': '\u0628\u064A',
  20249. '\uFC0B': '\u062A\u062C',
  20250. '\uFC0C': '\u062A\u062D',
  20251. '\uFC0D': '\u062A\u062E',
  20252. '\uFC0E': '\u062A\u0645',
  20253. '\uFC0F': '\u062A\u0649',
  20254. '\uFC10': '\u062A\u064A',
  20255. '\uFC11': '\u062B\u062C',
  20256. '\uFC12': '\u062B\u0645',
  20257. '\uFC13': '\u062B\u0649',
  20258. '\uFC14': '\u062B\u064A',
  20259. '\uFC15': '\u062C\u062D',
  20260. '\uFC16': '\u062C\u0645',
  20261. '\uFC17': '\u062D\u062C',
  20262. '\uFC18': '\u062D\u0645',
  20263. '\uFC19': '\u062E\u062C',
  20264. '\uFC1A': '\u062E\u062D',
  20265. '\uFC1B': '\u062E\u0645',
  20266. '\uFC1C': '\u0633\u062C',
  20267. '\uFC1D': '\u0633\u062D',
  20268. '\uFC1E': '\u0633\u062E',
  20269. '\uFC1F': '\u0633\u0645',
  20270. '\uFC20': '\u0635\u062D',
  20271. '\uFC21': '\u0635\u0645',
  20272. '\uFC22': '\u0636\u062C',
  20273. '\uFC23': '\u0636\u062D',
  20274. '\uFC24': '\u0636\u062E',
  20275. '\uFC25': '\u0636\u0645',
  20276. '\uFC26': '\u0637\u062D',
  20277. '\uFC27': '\u0637\u0645',
  20278. '\uFC28': '\u0638\u0645',
  20279. '\uFC29': '\u0639\u062C',
  20280. '\uFC2A': '\u0639\u0645',
  20281. '\uFC2B': '\u063A\u062C',
  20282. '\uFC2C': '\u063A\u0645',
  20283. '\uFC2D': '\u0641\u062C',
  20284. '\uFC2E': '\u0641\u062D',
  20285. '\uFC2F': '\u0641\u062E',
  20286. '\uFC30': '\u0641\u0645',
  20287. '\uFC31': '\u0641\u0649',
  20288. '\uFC32': '\u0641\u064A',
  20289. '\uFC33': '\u0642\u062D',
  20290. '\uFC34': '\u0642\u0645',
  20291. '\uFC35': '\u0642\u0649',
  20292. '\uFC36': '\u0642\u064A',
  20293. '\uFC37': '\u0643\u0627',
  20294. '\uFC38': '\u0643\u062C',
  20295. '\uFC39': '\u0643\u062D',
  20296. '\uFC3A': '\u0643\u062E',
  20297. '\uFC3B': '\u0643\u0644',
  20298. '\uFC3C': '\u0643\u0645',
  20299. '\uFC3D': '\u0643\u0649',
  20300. '\uFC3E': '\u0643\u064A',
  20301. '\uFC3F': '\u0644\u062C',
  20302. '\uFC40': '\u0644\u062D',
  20303. '\uFC41': '\u0644\u062E',
  20304. '\uFC42': '\u0644\u0645',
  20305. '\uFC43': '\u0644\u0649',
  20306. '\uFC44': '\u0644\u064A',
  20307. '\uFC45': '\u0645\u062C',
  20308. '\uFC46': '\u0645\u062D',
  20309. '\uFC47': '\u0645\u062E',
  20310. '\uFC48': '\u0645\u0645',
  20311. '\uFC49': '\u0645\u0649',
  20312. '\uFC4A': '\u0645\u064A',
  20313. '\uFC4B': '\u0646\u062C',
  20314. '\uFC4C': '\u0646\u062D',
  20315. '\uFC4D': '\u0646\u062E',
  20316. '\uFC4E': '\u0646\u0645',
  20317. '\uFC4F': '\u0646\u0649',
  20318. '\uFC50': '\u0646\u064A',
  20319. '\uFC51': '\u0647\u062C',
  20320. '\uFC52': '\u0647\u0645',
  20321. '\uFC53': '\u0647\u0649',
  20322. '\uFC54': '\u0647\u064A',
  20323. '\uFC55': '\u064A\u062C',
  20324. '\uFC56': '\u064A\u062D',
  20325. '\uFC57': '\u064A\u062E',
  20326. '\uFC58': '\u064A\u0645',
  20327. '\uFC59': '\u064A\u0649',
  20328. '\uFC5A': '\u064A\u064A',
  20329. '\uFC5B': '\u0630\u0670',
  20330. '\uFC5C': '\u0631\u0670',
  20331. '\uFC5D': '\u0649\u0670',
  20332. '\uFC5E': '\u0020\u064C\u0651',
  20333. '\uFC5F': '\u0020\u064D\u0651',
  20334. '\uFC60': '\u0020\u064E\u0651',
  20335. '\uFC61': '\u0020\u064F\u0651',
  20336. '\uFC62': '\u0020\u0650\u0651',
  20337. '\uFC63': '\u0020\u0651\u0670',
  20338. '\uFC64': '\u0626\u0631',
  20339. '\uFC65': '\u0626\u0632',
  20340. '\uFC66': '\u0626\u0645',
  20341. '\uFC67': '\u0626\u0646',
  20342. '\uFC68': '\u0626\u0649',
  20343. '\uFC69': '\u0626\u064A',
  20344. '\uFC6A': '\u0628\u0631',
  20345. '\uFC6B': '\u0628\u0632',
  20346. '\uFC6C': '\u0628\u0645',
  20347. '\uFC6D': '\u0628\u0646',
  20348. '\uFC6E': '\u0628\u0649',
  20349. '\uFC6F': '\u0628\u064A',
  20350. '\uFC70': '\u062A\u0631',
  20351. '\uFC71': '\u062A\u0632',
  20352. '\uFC72': '\u062A\u0645',
  20353. '\uFC73': '\u062A\u0646',
  20354. '\uFC74': '\u062A\u0649',
  20355. '\uFC75': '\u062A\u064A',
  20356. '\uFC76': '\u062B\u0631',
  20357. '\uFC77': '\u062B\u0632',
  20358. '\uFC78': '\u062B\u0645',
  20359. '\uFC79': '\u062B\u0646',
  20360. '\uFC7A': '\u062B\u0649',
  20361. '\uFC7B': '\u062B\u064A',
  20362. '\uFC7C': '\u0641\u0649',
  20363. '\uFC7D': '\u0641\u064A',
  20364. '\uFC7E': '\u0642\u0649',
  20365. '\uFC7F': '\u0642\u064A',
  20366. '\uFC80': '\u0643\u0627',
  20367. '\uFC81': '\u0643\u0644',
  20368. '\uFC82': '\u0643\u0645',
  20369. '\uFC83': '\u0643\u0649',
  20370. '\uFC84': '\u0643\u064A',
  20371. '\uFC85': '\u0644\u0645',
  20372. '\uFC86': '\u0644\u0649',
  20373. '\uFC87': '\u0644\u064A',
  20374. '\uFC88': '\u0645\u0627',
  20375. '\uFC89': '\u0645\u0645',
  20376. '\uFC8A': '\u0646\u0631',
  20377. '\uFC8B': '\u0646\u0632',
  20378. '\uFC8C': '\u0646\u0645',
  20379. '\uFC8D': '\u0646\u0646',
  20380. '\uFC8E': '\u0646\u0649',
  20381. '\uFC8F': '\u0646\u064A',
  20382. '\uFC90': '\u0649\u0670',
  20383. '\uFC91': '\u064A\u0631',
  20384. '\uFC92': '\u064A\u0632',
  20385. '\uFC93': '\u064A\u0645',
  20386. '\uFC94': '\u064A\u0646',
  20387. '\uFC95': '\u064A\u0649',
  20388. '\uFC96': '\u064A\u064A',
  20389. '\uFC97': '\u0626\u062C',
  20390. '\uFC98': '\u0626\u062D',
  20391. '\uFC99': '\u0626\u062E',
  20392. '\uFC9A': '\u0626\u0645',
  20393. '\uFC9B': '\u0626\u0647',
  20394. '\uFC9C': '\u0628\u062C',
  20395. '\uFC9D': '\u0628\u062D',
  20396. '\uFC9E': '\u0628\u062E',
  20397. '\uFC9F': '\u0628\u0645',
  20398. '\uFCA0': '\u0628\u0647',
  20399. '\uFCA1': '\u062A\u062C',
  20400. '\uFCA2': '\u062A\u062D',
  20401. '\uFCA3': '\u062A\u062E',
  20402. '\uFCA4': '\u062A\u0645',
  20403. '\uFCA5': '\u062A\u0647',
  20404. '\uFCA6': '\u062B\u0645',
  20405. '\uFCA7': '\u062C\u062D',
  20406. '\uFCA8': '\u062C\u0645',
  20407. '\uFCA9': '\u062D\u062C',
  20408. '\uFCAA': '\u062D\u0645',
  20409. '\uFCAB': '\u062E\u062C',
  20410. '\uFCAC': '\u062E\u0645',
  20411. '\uFCAD': '\u0633\u062C',
  20412. '\uFCAE': '\u0633\u062D',
  20413. '\uFCAF': '\u0633\u062E',
  20414. '\uFCB0': '\u0633\u0645',
  20415. '\uFCB1': '\u0635\u062D',
  20416. '\uFCB2': '\u0635\u062E',
  20417. '\uFCB3': '\u0635\u0645',
  20418. '\uFCB4': '\u0636\u062C',
  20419. '\uFCB5': '\u0636\u062D',
  20420. '\uFCB6': '\u0636\u062E',
  20421. '\uFCB7': '\u0636\u0645',
  20422. '\uFCB8': '\u0637\u062D',
  20423. '\uFCB9': '\u0638\u0645',
  20424. '\uFCBA': '\u0639\u062C',
  20425. '\uFCBB': '\u0639\u0645',
  20426. '\uFCBC': '\u063A\u062C',
  20427. '\uFCBD': '\u063A\u0645',
  20428. '\uFCBE': '\u0641\u062C',
  20429. '\uFCBF': '\u0641\u062D',
  20430. '\uFCC0': '\u0641\u062E',
  20431. '\uFCC1': '\u0641\u0645',
  20432. '\uFCC2': '\u0642\u062D',
  20433. '\uFCC3': '\u0642\u0645',
  20434. '\uFCC4': '\u0643\u062C',
  20435. '\uFCC5': '\u0643\u062D',
  20436. '\uFCC6': '\u0643\u062E',
  20437. '\uFCC7': '\u0643\u0644',
  20438. '\uFCC8': '\u0643\u0645',
  20439. '\uFCC9': '\u0644\u062C',
  20440. '\uFCCA': '\u0644\u062D',
  20441. '\uFCCB': '\u0644\u062E',
  20442. '\uFCCC': '\u0644\u0645',
  20443. '\uFCCD': '\u0644\u0647',
  20444. '\uFCCE': '\u0645\u062C',
  20445. '\uFCCF': '\u0645\u062D',
  20446. '\uFCD0': '\u0645\u062E',
  20447. '\uFCD1': '\u0645\u0645',
  20448. '\uFCD2': '\u0646\u062C',
  20449. '\uFCD3': '\u0646\u062D',
  20450. '\uFCD4': '\u0646\u062E',
  20451. '\uFCD5': '\u0646\u0645',
  20452. '\uFCD6': '\u0646\u0647',
  20453. '\uFCD7': '\u0647\u062C',
  20454. '\uFCD8': '\u0647\u0645',
  20455. '\uFCD9': '\u0647\u0670',
  20456. '\uFCDA': '\u064A\u062C',
  20457. '\uFCDB': '\u064A\u062D',
  20458. '\uFCDC': '\u064A\u062E',
  20459. '\uFCDD': '\u064A\u0645',
  20460. '\uFCDE': '\u064A\u0647',
  20461. '\uFCDF': '\u0626\u0645',
  20462. '\uFCE0': '\u0626\u0647',
  20463. '\uFCE1': '\u0628\u0645',
  20464. '\uFCE2': '\u0628\u0647',
  20465. '\uFCE3': '\u062A\u0645',
  20466. '\uFCE4': '\u062A\u0647',
  20467. '\uFCE5': '\u062B\u0645',
  20468. '\uFCE6': '\u062B\u0647',
  20469. '\uFCE7': '\u0633\u0645',
  20470. '\uFCE8': '\u0633\u0647',
  20471. '\uFCE9': '\u0634\u0645',
  20472. '\uFCEA': '\u0634\u0647',
  20473. '\uFCEB': '\u0643\u0644',
  20474. '\uFCEC': '\u0643\u0645',
  20475. '\uFCED': '\u0644\u0645',
  20476. '\uFCEE': '\u0646\u0645',
  20477. '\uFCEF': '\u0646\u0647',
  20478. '\uFCF0': '\u064A\u0645',
  20479. '\uFCF1': '\u064A\u0647',
  20480. '\uFCF2': '\u0640\u064E\u0651',
  20481. '\uFCF3': '\u0640\u064F\u0651',
  20482. '\uFCF4': '\u0640\u0650\u0651',
  20483. '\uFCF5': '\u0637\u0649',
  20484. '\uFCF6': '\u0637\u064A',
  20485. '\uFCF7': '\u0639\u0649',
  20486. '\uFCF8': '\u0639\u064A',
  20487. '\uFCF9': '\u063A\u0649',
  20488. '\uFCFA': '\u063A\u064A',
  20489. '\uFCFB': '\u0633\u0649',
  20490. '\uFCFC': '\u0633\u064A',
  20491. '\uFCFD': '\u0634\u0649',
  20492. '\uFCFE': '\u0634\u064A',
  20493. '\uFCFF': '\u062D\u0649',
  20494. '\uFD00': '\u062D\u064A',
  20495. '\uFD01': '\u062C\u0649',
  20496. '\uFD02': '\u062C\u064A',
  20497. '\uFD03': '\u062E\u0649',
  20498. '\uFD04': '\u062E\u064A',
  20499. '\uFD05': '\u0635\u0649',
  20500. '\uFD06': '\u0635\u064A',
  20501. '\uFD07': '\u0636\u0649',
  20502. '\uFD08': '\u0636\u064A',
  20503. '\uFD09': '\u0634\u062C',
  20504. '\uFD0A': '\u0634\u062D',
  20505. '\uFD0B': '\u0634\u062E',
  20506. '\uFD0C': '\u0634\u0645',
  20507. '\uFD0D': '\u0634\u0631',
  20508. '\uFD0E': '\u0633\u0631',
  20509. '\uFD0F': '\u0635\u0631',
  20510. '\uFD10': '\u0636\u0631',
  20511. '\uFD11': '\u0637\u0649',
  20512. '\uFD12': '\u0637\u064A',
  20513. '\uFD13': '\u0639\u0649',
  20514. '\uFD14': '\u0639\u064A',
  20515. '\uFD15': '\u063A\u0649',
  20516. '\uFD16': '\u063A\u064A',
  20517. '\uFD17': '\u0633\u0649',
  20518. '\uFD18': '\u0633\u064A',
  20519. '\uFD19': '\u0634\u0649',
  20520. '\uFD1A': '\u0634\u064A',
  20521. '\uFD1B': '\u062D\u0649',
  20522. '\uFD1C': '\u062D\u064A',
  20523. '\uFD1D': '\u062C\u0649',
  20524. '\uFD1E': '\u062C\u064A',
  20525. '\uFD1F': '\u062E\u0649',
  20526. '\uFD20': '\u062E\u064A',
  20527. '\uFD21': '\u0635\u0649',
  20528. '\uFD22': '\u0635\u064A',
  20529. '\uFD23': '\u0636\u0649',
  20530. '\uFD24': '\u0636\u064A',
  20531. '\uFD25': '\u0634\u062C',
  20532. '\uFD26': '\u0634\u062D',
  20533. '\uFD27': '\u0634\u062E',
  20534. '\uFD28': '\u0634\u0645',
  20535. '\uFD29': '\u0634\u0631',
  20536. '\uFD2A': '\u0633\u0631',
  20537. '\uFD2B': '\u0635\u0631',
  20538. '\uFD2C': '\u0636\u0631',
  20539. '\uFD2D': '\u0634\u062C',
  20540. '\uFD2E': '\u0634\u062D',
  20541. '\uFD2F': '\u0634\u062E',
  20542. '\uFD30': '\u0634\u0645',
  20543. '\uFD31': '\u0633\u0647',
  20544. '\uFD32': '\u0634\u0647',
  20545. '\uFD33': '\u0637\u0645',
  20546. '\uFD34': '\u0633\u062C',
  20547. '\uFD35': '\u0633\u062D',
  20548. '\uFD36': '\u0633\u062E',
  20549. '\uFD37': '\u0634\u062C',
  20550. '\uFD38': '\u0634\u062D',
  20551. '\uFD39': '\u0634\u062E',
  20552. '\uFD3A': '\u0637\u0645',
  20553. '\uFD3B': '\u0638\u0645',
  20554. '\uFD3C': '\u0627\u064B',
  20555. '\uFD3D': '\u0627\u064B',
  20556. '\uFD50': '\u062A\u062C\u0645',
  20557. '\uFD51': '\u062A\u062D\u062C',
  20558. '\uFD52': '\u062A\u062D\u062C',
  20559. '\uFD53': '\u062A\u062D\u0645',
  20560. '\uFD54': '\u062A\u062E\u0645',
  20561. '\uFD55': '\u062A\u0645\u062C',
  20562. '\uFD56': '\u062A\u0645\u062D',
  20563. '\uFD57': '\u062A\u0645\u062E',
  20564. '\uFD58': '\u062C\u0645\u062D',
  20565. '\uFD59': '\u062C\u0645\u062D',
  20566. '\uFD5A': '\u062D\u0645\u064A',
  20567. '\uFD5B': '\u062D\u0645\u0649',
  20568. '\uFD5C': '\u0633\u062D\u062C',
  20569. '\uFD5D': '\u0633\u062C\u062D',
  20570. '\uFD5E': '\u0633\u062C\u0649',
  20571. '\uFD5F': '\u0633\u0645\u062D',
  20572. '\uFD60': '\u0633\u0645\u062D',
  20573. '\uFD61': '\u0633\u0645\u062C',
  20574. '\uFD62': '\u0633\u0645\u0645',
  20575. '\uFD63': '\u0633\u0645\u0645',
  20576. '\uFD64': '\u0635\u062D\u062D',
  20577. '\uFD65': '\u0635\u062D\u062D',
  20578. '\uFD66': '\u0635\u0645\u0645',
  20579. '\uFD67': '\u0634\u062D\u0645',
  20580. '\uFD68': '\u0634\u062D\u0645',
  20581. '\uFD69': '\u0634\u062C\u064A',
  20582. '\uFD6A': '\u0634\u0645\u062E',
  20583. '\uFD6B': '\u0634\u0645\u062E',
  20584. '\uFD6C': '\u0634\u0645\u0645',
  20585. '\uFD6D': '\u0634\u0645\u0645',
  20586. '\uFD6E': '\u0636\u062D\u0649',
  20587. '\uFD6F': '\u0636\u062E\u0645',
  20588. '\uFD70': '\u0636\u062E\u0645',
  20589. '\uFD71': '\u0637\u0645\u062D',
  20590. '\uFD72': '\u0637\u0645\u062D',
  20591. '\uFD73': '\u0637\u0645\u0645',
  20592. '\uFD74': '\u0637\u0645\u064A',
  20593. '\uFD75': '\u0639\u062C\u0645',
  20594. '\uFD76': '\u0639\u0645\u0645',
  20595. '\uFD77': '\u0639\u0645\u0645',
  20596. '\uFD78': '\u0639\u0645\u0649',
  20597. '\uFD79': '\u063A\u0645\u0645',
  20598. '\uFD7A': '\u063A\u0645\u064A',
  20599. '\uFD7B': '\u063A\u0645\u0649',
  20600. '\uFD7C': '\u0641\u062E\u0645',
  20601. '\uFD7D': '\u0641\u062E\u0645',
  20602. '\uFD7E': '\u0642\u0645\u062D',
  20603. '\uFD7F': '\u0642\u0645\u0645',
  20604. '\uFD80': '\u0644\u062D\u0645',
  20605. '\uFD81': '\u0644\u062D\u064A',
  20606. '\uFD82': '\u0644\u062D\u0649',
  20607. '\uFD83': '\u0644\u062C\u062C',
  20608. '\uFD84': '\u0644\u062C\u062C',
  20609. '\uFD85': '\u0644\u062E\u0645',
  20610. '\uFD86': '\u0644\u062E\u0645',
  20611. '\uFD87': '\u0644\u0645\u062D',
  20612. '\uFD88': '\u0644\u0645\u062D',
  20613. '\uFD89': '\u0645\u062D\u062C',
  20614. '\uFD8A': '\u0645\u062D\u0645',
  20615. '\uFD8B': '\u0645\u062D\u064A',
  20616. '\uFD8C': '\u0645\u062C\u062D',
  20617. '\uFD8D': '\u0645\u062C\u0645',
  20618. '\uFD8E': '\u0645\u062E\u062C',
  20619. '\uFD8F': '\u0645\u062E\u0645',
  20620. '\uFD92': '\u0645\u062C\u062E',
  20621. '\uFD93': '\u0647\u0645\u062C',
  20622. '\uFD94': '\u0647\u0645\u0645',
  20623. '\uFD95': '\u0646\u062D\u0645',
  20624. '\uFD96': '\u0646\u062D\u0649',
  20625. '\uFD97': '\u0646\u062C\u0645',
  20626. '\uFD98': '\u0646\u062C\u0645',
  20627. '\uFD99': '\u0646\u062C\u0649',
  20628. '\uFD9A': '\u0646\u0645\u064A',
  20629. '\uFD9B': '\u0646\u0645\u0649',
  20630. '\uFD9C': '\u064A\u0645\u0645',
  20631. '\uFD9D': '\u064A\u0645\u0645',
  20632. '\uFD9E': '\u0628\u062E\u064A',
  20633. '\uFD9F': '\u062A\u062C\u064A',
  20634. '\uFDA0': '\u062A\u062C\u0649',
  20635. '\uFDA1': '\u062A\u062E\u064A',
  20636. '\uFDA2': '\u062A\u062E\u0649',
  20637. '\uFDA3': '\u062A\u0645\u064A',
  20638. '\uFDA4': '\u062A\u0645\u0649',
  20639. '\uFDA5': '\u062C\u0645\u064A',
  20640. '\uFDA6': '\u062C\u062D\u0649',
  20641. '\uFDA7': '\u062C\u0645\u0649',
  20642. '\uFDA8': '\u0633\u062E\u0649',
  20643. '\uFDA9': '\u0635\u062D\u064A',
  20644. '\uFDAA': '\u0634\u062D\u064A',
  20645. '\uFDAB': '\u0636\u062D\u064A',
  20646. '\uFDAC': '\u0644\u062C\u064A',
  20647. '\uFDAD': '\u0644\u0645\u064A',
  20648. '\uFDAE': '\u064A\u062D\u064A',
  20649. '\uFDAF': '\u064A\u062C\u064A',
  20650. '\uFDB0': '\u064A\u0645\u064A',
  20651. '\uFDB1': '\u0645\u0645\u064A',
  20652. '\uFDB2': '\u0642\u0645\u064A',
  20653. '\uFDB3': '\u0646\u062D\u064A',
  20654. '\uFDB4': '\u0642\u0645\u062D',
  20655. '\uFDB5': '\u0644\u062D\u0645',
  20656. '\uFDB6': '\u0639\u0645\u064A',
  20657. '\uFDB7': '\u0643\u0645\u064A',
  20658. '\uFDB8': '\u0646\u062C\u062D',
  20659. '\uFDB9': '\u0645\u062E\u064A',
  20660. '\uFDBA': '\u0644\u062C\u0645',
  20661. '\uFDBB': '\u0643\u0645\u0645',
  20662. '\uFDBC': '\u0644\u062C\u0645',
  20663. '\uFDBD': '\u0646\u062C\u062D',
  20664. '\uFDBE': '\u062C\u062D\u064A',
  20665. '\uFDBF': '\u062D\u062C\u064A',
  20666. '\uFDC0': '\u0645\u062C\u064A',
  20667. '\uFDC1': '\u0641\u0645\u064A',
  20668. '\uFDC2': '\u0628\u062D\u064A',
  20669. '\uFDC3': '\u0643\u0645\u0645',
  20670. '\uFDC4': '\u0639\u062C\u0645',
  20671. '\uFDC5': '\u0635\u0645\u0645',
  20672. '\uFDC6': '\u0633\u062E\u064A',
  20673. '\uFDC7': '\u0646\u062C\u064A',
  20674. '\uFE49': '\u203E',
  20675. '\uFE4A': '\u203E',
  20676. '\uFE4B': '\u203E',
  20677. '\uFE4C': '\u203E',
  20678. '\uFE4D': '\u005F',
  20679. '\uFE4E': '\u005F',
  20680. '\uFE4F': '\u005F',
  20681. '\uFE80': '\u0621',
  20682. '\uFE81': '\u0622',
  20683. '\uFE82': '\u0622',
  20684. '\uFE83': '\u0623',
  20685. '\uFE84': '\u0623',
  20686. '\uFE85': '\u0624',
  20687. '\uFE86': '\u0624',
  20688. '\uFE87': '\u0625',
  20689. '\uFE88': '\u0625',
  20690. '\uFE89': '\u0626',
  20691. '\uFE8A': '\u0626',
  20692. '\uFE8B': '\u0626',
  20693. '\uFE8C': '\u0626',
  20694. '\uFE8D': '\u0627',
  20695. '\uFE8E': '\u0627',
  20696. '\uFE8F': '\u0628',
  20697. '\uFE90': '\u0628',
  20698. '\uFE91': '\u0628',
  20699. '\uFE92': '\u0628',
  20700. '\uFE93': '\u0629',
  20701. '\uFE94': '\u0629',
  20702. '\uFE95': '\u062A',
  20703. '\uFE96': '\u062A',
  20704. '\uFE97': '\u062A',
  20705. '\uFE98': '\u062A',
  20706. '\uFE99': '\u062B',
  20707. '\uFE9A': '\u062B',
  20708. '\uFE9B': '\u062B',
  20709. '\uFE9C': '\u062B',
  20710. '\uFE9D': '\u062C',
  20711. '\uFE9E': '\u062C',
  20712. '\uFE9F': '\u062C',
  20713. '\uFEA0': '\u062C',
  20714. '\uFEA1': '\u062D',
  20715. '\uFEA2': '\u062D',
  20716. '\uFEA3': '\u062D',
  20717. '\uFEA4': '\u062D',
  20718. '\uFEA5': '\u062E',
  20719. '\uFEA6': '\u062E',
  20720. '\uFEA7': '\u062E',
  20721. '\uFEA8': '\u062E',
  20722. '\uFEA9': '\u062F',
  20723. '\uFEAA': '\u062F',
  20724. '\uFEAB': '\u0630',
  20725. '\uFEAC': '\u0630',
  20726. '\uFEAD': '\u0631',
  20727. '\uFEAE': '\u0631',
  20728. '\uFEAF': '\u0632',
  20729. '\uFEB0': '\u0632',
  20730. '\uFEB1': '\u0633',
  20731. '\uFEB2': '\u0633',
  20732. '\uFEB3': '\u0633',
  20733. '\uFEB4': '\u0633',
  20734. '\uFEB5': '\u0634',
  20735. '\uFEB6': '\u0634',
  20736. '\uFEB7': '\u0634',
  20737. '\uFEB8': '\u0634',
  20738. '\uFEB9': '\u0635',
  20739. '\uFEBA': '\u0635',
  20740. '\uFEBB': '\u0635',
  20741. '\uFEBC': '\u0635',
  20742. '\uFEBD': '\u0636',
  20743. '\uFEBE': '\u0636',
  20744. '\uFEBF': '\u0636',
  20745. '\uFEC0': '\u0636',
  20746. '\uFEC1': '\u0637',
  20747. '\uFEC2': '\u0637',
  20748. '\uFEC3': '\u0637',
  20749. '\uFEC4': '\u0637',
  20750. '\uFEC5': '\u0638',
  20751. '\uFEC6': '\u0638',
  20752. '\uFEC7': '\u0638',
  20753. '\uFEC8': '\u0638',
  20754. '\uFEC9': '\u0639',
  20755. '\uFECA': '\u0639',
  20756. '\uFECB': '\u0639',
  20757. '\uFECC': '\u0639',
  20758. '\uFECD': '\u063A',
  20759. '\uFECE': '\u063A',
  20760. '\uFECF': '\u063A',
  20761. '\uFED0': '\u063A',
  20762. '\uFED1': '\u0641',
  20763. '\uFED2': '\u0641',
  20764. '\uFED3': '\u0641',
  20765. '\uFED4': '\u0641',
  20766. '\uFED5': '\u0642',
  20767. '\uFED6': '\u0642',
  20768. '\uFED7': '\u0642',
  20769. '\uFED8': '\u0642',
  20770. '\uFED9': '\u0643',
  20771. '\uFEDA': '\u0643',
  20772. '\uFEDB': '\u0643',
  20773. '\uFEDC': '\u0643',
  20774. '\uFEDD': '\u0644',
  20775. '\uFEDE': '\u0644',
  20776. '\uFEDF': '\u0644',
  20777. '\uFEE0': '\u0644',
  20778. '\uFEE1': '\u0645',
  20779. '\uFEE2': '\u0645',
  20780. '\uFEE3': '\u0645',
  20781. '\uFEE4': '\u0645',
  20782. '\uFEE5': '\u0646',
  20783. '\uFEE6': '\u0646',
  20784. '\uFEE7': '\u0646',
  20785. '\uFEE8': '\u0646',
  20786. '\uFEE9': '\u0647',
  20787. '\uFEEA': '\u0647',
  20788. '\uFEEB': '\u0647',
  20789. '\uFEEC': '\u0647',
  20790. '\uFEED': '\u0648',
  20791. '\uFEEE': '\u0648',
  20792. '\uFEEF': '\u0649',
  20793. '\uFEF0': '\u0649',
  20794. '\uFEF1': '\u064A',
  20795. '\uFEF2': '\u064A',
  20796. '\uFEF3': '\u064A',
  20797. '\uFEF4': '\u064A',
  20798. '\uFEF5': '\u0644\u0622',
  20799. '\uFEF6': '\u0644\u0622',
  20800. '\uFEF7': '\u0644\u0623',
  20801. '\uFEF8': '\u0644\u0623',
  20802. '\uFEF9': '\u0644\u0625',
  20803. '\uFEFA': '\u0644\u0625',
  20804. '\uFEFB': '\u0644\u0627',
  20805. '\uFEFC': '\u0644\u0627'
  20806. };
  20807. function reverseIfRtl(chars) {
  20808. var charsLength = chars.length;
  20809. //reverse an arabic ligature
  20810. if (charsLength <= 1 || !isRTLRangeFor(chars.charCodeAt(0))) {
  20811. return chars;
  20812. }
  20813. var s = '';
  20814. for (var ii = charsLength - 1; ii >= 0; ii--) {
  20815. s += chars[ii];
  20816. }
  20817. return s;
  20818. }
  20819. function adjustWidths(properties) {
  20820. if (properties.fontMatrix[0] === FONT_IDENTITY_MATRIX[0]) {
  20821. return;
  20822. }
  20823. // adjusting width to fontMatrix scale
  20824. var scale = 0.001 / properties.fontMatrix[0];
  20825. var glyphsWidths = properties.widths;
  20826. for (var glyph in glyphsWidths) {
  20827. glyphsWidths[glyph] *= scale;
  20828. }
  20829. properties.defaultWidth *= scale;
  20830. }
  20831. function getFontType(type, subtype) {
  20832. switch (type) {
  20833. case 'Type1':
  20834. return subtype === 'Type1C' ? FontType.TYPE1C : FontType.TYPE1;
  20835. case 'CIDFontType0':
  20836. return subtype === 'CIDFontType0C' ? FontType.CIDFONTTYPE0C :
  20837. FontType.CIDFONTTYPE0;
  20838. case 'OpenType':
  20839. return FontType.OPENTYPE;
  20840. case 'TrueType':
  20841. return FontType.TRUETYPE;
  20842. case 'CIDFontType2':
  20843. return FontType.CIDFONTTYPE2;
  20844. case 'MMType1':
  20845. return FontType.MMTYPE1;
  20846. case 'Type0':
  20847. return FontType.TYPE0;
  20848. default:
  20849. return FontType.UNKNOWN;
  20850. }
  20851. }
  20852. var Glyph = (function GlyphClosure() {
  20853. function Glyph(fontChar, unicode, accent, width, vmetric, operatorListId) {
  20854. this.fontChar = fontChar;
  20855. this.unicode = unicode;
  20856. this.accent = accent;
  20857. this.width = width;
  20858. this.vmetric = vmetric;
  20859. this.operatorListId = operatorListId;
  20860. }
  20861. Glyph.prototype.matchesForCache =
  20862. function(fontChar, unicode, accent, width, vmetric, operatorListId) {
  20863. return this.fontChar === fontChar &&
  20864. this.unicode === unicode &&
  20865. this.accent === accent &&
  20866. this.width === width &&
  20867. this.vmetric === vmetric &&
  20868. this.operatorListId === operatorListId;
  20869. };
  20870. return Glyph;
  20871. })();
  20872. /**
  20873. * 'Font' is the class the outside world should use, it encapsulate all the font
  20874. * decoding logics whatever type it is (assuming the font type is supported).
  20875. *
  20876. * For example to read a Type1 font and to attach it to the document:
  20877. * var type1Font = new Font("MyFontName", binaryFile, propertiesObject);
  20878. * type1Font.bind();
  20879. */
  20880. var Font = (function FontClosure() {
  20881. function Font(name, file, properties) {
  20882. var charCode, glyphName;
  20883. this.name = name;
  20884. this.loadedName = properties.loadedName;
  20885. this.isType3Font = properties.isType3Font;
  20886. this.sizes = [];
  20887. this.glyphCache = {};
  20888. var names = name.split('+');
  20889. names = names.length > 1 ? names[1] : names[0];
  20890. names = names.split(/[-,_]/g)[0];
  20891. this.isSerifFont = !!(properties.flags & FontFlags.Serif);
  20892. this.isSymbolicFont = !!(properties.flags & FontFlags.Symbolic);
  20893. this.isMonospace = !!(properties.flags & FontFlags.FixedPitch);
  20894. var type = properties.type;
  20895. var subtype = properties.subtype;
  20896. this.type = type;
  20897. this.fallbackName = (this.isMonospace ? 'monospace' :
  20898. (this.isSerifFont ? 'serif' : 'sans-serif'));
  20899. this.differences = properties.differences;
  20900. this.widths = properties.widths;
  20901. this.defaultWidth = properties.defaultWidth;
  20902. this.composite = properties.composite;
  20903. this.wideChars = properties.wideChars;
  20904. this.cMap = properties.cMap;
  20905. this.ascent = properties.ascent / PDF_GLYPH_SPACE_UNITS;
  20906. this.descent = properties.descent / PDF_GLYPH_SPACE_UNITS;
  20907. this.fontMatrix = properties.fontMatrix;
  20908. var unicode = this.buildToUnicode(properties);
  20909. this.toUnicode = properties.toUnicode = unicode.toUnicode;
  20910. this.isIdentityUnicode = properties.isIdentityUnicode = unicode.isIdentity;
  20911. this.toFontChar = [];
  20912. if (properties.type == 'Type3') {
  20913. for (charCode = 0; charCode < 256; charCode++) {
  20914. this.toFontChar[charCode] = (this.differences[charCode] ||
  20915. properties.defaultEncoding[charCode]);
  20916. }
  20917. this.fontType = FontType.TYPE3;
  20918. return;
  20919. }
  20920. this.cidEncoding = properties.cidEncoding;
  20921. this.vertical = properties.vertical;
  20922. if (this.vertical) {
  20923. this.vmetrics = properties.vmetrics;
  20924. this.defaultVMetrics = properties.defaultVMetrics;
  20925. }
  20926. if (!file || file.isEmpty) {
  20927. if (file) {
  20928. // Some bad PDF generators will include empty font files,
  20929. // attempting to recover by assuming that no file exists.
  20930. warn('Font file is empty in "' + name + '" (' + this.loadedName + ')');
  20931. }
  20932. this.missingFile = true;
  20933. // The file data is not specified. Trying to fix the font name
  20934. // to be used with the canvas.font.
  20935. var fontName = name.replace(/[,_]/g, '-');
  20936. var isStandardFont = fontName in stdFontMap;
  20937. fontName = stdFontMap[fontName] || nonStdFontMap[fontName] || fontName;
  20938. this.bold = (fontName.search(/bold/gi) != -1);
  20939. this.italic = ((fontName.search(/oblique/gi) != -1) ||
  20940. (fontName.search(/italic/gi) != -1));
  20941. // Use 'name' instead of 'fontName' here because the original
  20942. // name ArialBlack for example will be replaced by Helvetica.
  20943. this.black = (name.search(/Black/g) != -1);
  20944. // if at least one width is present, remeasure all chars when exists
  20945. this.remeasure = Object.keys(this.widths).length > 0;
  20946. if (isStandardFont && type === 'CIDFontType2' &&
  20947. properties.cidEncoding.indexOf('Identity-') === 0) {
  20948. // Standard fonts might be embedded as CID font without glyph mapping.
  20949. // Building one based on GlyphMapForStandardFonts.
  20950. var map = [];
  20951. for (var code in GlyphMapForStandardFonts) {
  20952. map[+code] = GlyphMapForStandardFonts[code];
  20953. }
  20954. this.toFontChar = map;
  20955. this.toUnicode = map;
  20956. } else if (/Symbol/i.test(fontName)) {
  20957. var symbols = Encodings.SymbolSetEncoding;
  20958. for (charCode in symbols) {
  20959. var fontChar = GlyphsUnicode[symbols[charCode]];
  20960. if (!fontChar) {
  20961. continue;
  20962. }
  20963. this.toFontChar[charCode] = fontChar;
  20964. }
  20965. } else if (isStandardFont) {
  20966. this.toFontChar = [];
  20967. for (charCode in properties.defaultEncoding) {
  20968. glyphName = (properties.differences[charCode] ||
  20969. properties.defaultEncoding[charCode]);
  20970. this.toFontChar[charCode] = GlyphsUnicode[glyphName];
  20971. }
  20972. } else {
  20973. var unicodeCharCode, notCidFont = (type.indexOf('CIDFontType') === -1);
  20974. for (charCode in this.toUnicode) {
  20975. unicodeCharCode = this.toUnicode[charCode].charCodeAt(0);
  20976. if (notCidFont) {
  20977. glyphName = (properties.differences[charCode] ||
  20978. properties.defaultEncoding[charCode]);
  20979. unicodeCharCode = (GlyphsUnicode[glyphName] || unicodeCharCode);
  20980. }
  20981. this.toFontChar[charCode] = unicodeCharCode;
  20982. }
  20983. }
  20984. this.loadedName = fontName.split('-')[0];
  20985. this.loading = false;
  20986. this.fontType = getFontType(type, subtype);
  20987. return;
  20988. }
  20989. // Some fonts might use wrong font types for Type1C or CIDFontType0C
  20990. if (subtype == 'Type1C' && (type != 'Type1' && type != 'MMType1')) {
  20991. // Some TrueType fonts by mistake claim Type1C
  20992. if (isTrueTypeFile(file)) {
  20993. subtype = 'TrueType';
  20994. } else {
  20995. type = 'Type1';
  20996. }
  20997. }
  20998. if (subtype == 'CIDFontType0C' && type != 'CIDFontType0') {
  20999. type = 'CIDFontType0';
  21000. }
  21001. // XXX: Temporarily change the type for open type so we trigger a warning.
  21002. // This should be removed when we add support for open type.
  21003. if (subtype === 'OpenType') {
  21004. type = 'OpenType';
  21005. }
  21006. var data;
  21007. switch (type) {
  21008. case 'Type1':
  21009. case 'CIDFontType0':
  21010. this.mimetype = 'font/opentype';
  21011. var cff = (subtype === 'Type1C' || subtype === 'CIDFontType0C') ?
  21012. new CFFFont(file, properties) : new Type1Font(name, file, properties);
  21013. adjustWidths(properties);
  21014. // Wrap the CFF data inside an OTF font file
  21015. data = this.convert(name, cff, properties);
  21016. break;
  21017. case 'OpenType':
  21018. case 'TrueType':
  21019. case 'CIDFontType2':
  21020. this.mimetype = 'font/opentype';
  21021. // Repair the TrueType file. It is can be damaged in the point of
  21022. // view of the sanitizer
  21023. data = this.checkAndRepair(name, file, properties);
  21024. if (this.isOpenType) {
  21025. type = 'OpenType';
  21026. }
  21027. break;
  21028. default:
  21029. error('Font ' + type + ' is not supported');
  21030. break;
  21031. }
  21032. this.data = data;
  21033. this.fontType = getFontType(type, subtype);
  21034. // Transfer some properties again that could change during font conversion
  21035. this.fontMatrix = properties.fontMatrix;
  21036. this.widths = properties.widths;
  21037. this.defaultWidth = properties.defaultWidth;
  21038. this.encoding = properties.baseEncoding;
  21039. this.seacMap = properties.seacMap;
  21040. this.loading = true;
  21041. }
  21042. Font.getFontID = (function () {
  21043. var ID = 1;
  21044. return function Font_getFontID() {
  21045. return String(ID++);
  21046. };
  21047. })();
  21048. function int16(b0, b1) {
  21049. return (b0 << 8) + b1;
  21050. }
  21051. function int32(b0, b1, b2, b3) {
  21052. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  21053. }
  21054. function getMaxPower2(number) {
  21055. var maxPower = 0;
  21056. var value = number;
  21057. while (value >= 2) {
  21058. value /= 2;
  21059. maxPower++;
  21060. }
  21061. value = 2;
  21062. for (var i = 1; i < maxPower; i++) {
  21063. value *= 2;
  21064. }
  21065. return value;
  21066. }
  21067. function string16(value) {
  21068. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  21069. }
  21070. function safeString16(value) {
  21071. // clamp value to the 16-bit int range
  21072. value = (value > 0x7FFF ? 0x7FFF : (value < -0x8000 ? -0x8000 : value));
  21073. return String.fromCharCode((value >> 8) & 0xff, value & 0xff);
  21074. }
  21075. function createOpenTypeHeader(sfnt, file, numTables) {
  21076. // Windows hates the Mac TrueType sfnt version number
  21077. if (sfnt == 'true') {
  21078. sfnt = string32(0x00010000);
  21079. }
  21080. // sfnt version (4 bytes)
  21081. var header = sfnt;
  21082. // numTables (2 bytes)
  21083. header += string16(numTables);
  21084. // searchRange (2 bytes)
  21085. var tablesMaxPower2 = getMaxPower2(numTables);
  21086. var searchRange = tablesMaxPower2 * 16;
  21087. header += string16(searchRange);
  21088. // entrySelector (2 bytes)
  21089. header += string16(Math.log(tablesMaxPower2) / Math.log(2));
  21090. // rangeShift (2 bytes)
  21091. header += string16(numTables * 16 - searchRange);
  21092. file.file += header;
  21093. file.virtualOffset += header.length;
  21094. }
  21095. function createTableEntry(file, tag, data) {
  21096. // offset
  21097. var offset = file.virtualOffset;
  21098. // length
  21099. var length = data.length;
  21100. // Per spec tables must be 4-bytes align so add padding as needed
  21101. while (data.length & 3) {
  21102. data.push(0x00);
  21103. }
  21104. while (file.virtualOffset & 3) {
  21105. file.virtualOffset++;
  21106. }
  21107. // checksum
  21108. var checksum = 0, n = data.length;
  21109. for (var i = 0; i < n; i += 4) {
  21110. checksum = (checksum + int32(data[i], data[i + 1], data[i + 2],
  21111. data[i + 3])) | 0;
  21112. }
  21113. var tableEntry = (tag + string32(checksum) +
  21114. string32(offset) + string32(length));
  21115. file.file += tableEntry;
  21116. file.virtualOffset += data.length;
  21117. }
  21118. function isTrueTypeFile(file) {
  21119. var header = file.peekBytes(4);
  21120. return readUint32(header, 0) === 0x00010000;
  21121. }
  21122. /**
  21123. * Rebuilds the char code to glyph ID map by trying to replace the char codes
  21124. * with their unicode value. It also moves char codes that are in known
  21125. * problematic locations.
  21126. * @return {Object} Two properties:
  21127. * 'toFontChar' - maps original char codes(the value that will be read
  21128. * from commands such as show text) to the char codes that will be used in the
  21129. * font that we build
  21130. * 'charCodeToGlyphId' - maps the new font char codes to glyph ids
  21131. */
  21132. function adjustMapping(charCodeToGlyphId, properties) {
  21133. var toUnicode = properties.toUnicode;
  21134. var isSymbolic = !!(properties.flags & FontFlags.Symbolic);
  21135. var isIdentityUnicode = properties.isIdentityUnicode;
  21136. var isCidFontType2 = (properties.type === 'CIDFontType2');
  21137. var newMap = Object.create(null);
  21138. var toFontChar = [];
  21139. var usedFontCharCodes = [];
  21140. var nextAvailableFontCharCode = PRIVATE_USE_OFFSET_START;
  21141. for (var originalCharCode in charCodeToGlyphId) {
  21142. originalCharCode |= 0;
  21143. var glyphId = charCodeToGlyphId[originalCharCode];
  21144. var fontCharCode = originalCharCode;
  21145. // First try to map the value to a unicode position if a non identity map
  21146. // was created.
  21147. if (!isIdentityUnicode) {
  21148. if (toUnicode[originalCharCode] !== undefined) {
  21149. var unicode = toUnicode[fontCharCode];
  21150. // TODO: Try to map ligatures to the correct spot.
  21151. if (unicode.length === 1) {
  21152. fontCharCode = unicode.charCodeAt(0);
  21153. }
  21154. } else if (isCidFontType2) {
  21155. // For CIDFontType2, move characters not present in toUnicode
  21156. // to the private use area (fixes bug 1028735 and issue 4881).
  21157. fontCharCode = nextAvailableFontCharCode;
  21158. }
  21159. }
  21160. // Try to move control characters, special characters and already mapped
  21161. // characters to the private use area since they will not be drawn by
  21162. // canvas if left in their current position. Also, move characters if the
  21163. // font was symbolic and there is only an identity unicode map since the
  21164. // characters probably aren't in the correct position (fixes an issue
  21165. // with firefox and thuluthfont).
  21166. if ((usedFontCharCodes[fontCharCode] !== undefined ||
  21167. fontCharCode <= 0x1f || // Control chars
  21168. fontCharCode === 0x7F || // Control char
  21169. fontCharCode === 0xAD || // Soft hyphen
  21170. (fontCharCode >= 0x80 && fontCharCode <= 0x9F) || // Control chars
  21171. // Prevent drawing characters in the specials unicode block.
  21172. (fontCharCode >= 0xFFF0 && fontCharCode <= 0xFFFF) ||
  21173. (isSymbolic && isIdentityUnicode)) &&
  21174. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END) { // Room left.
  21175. // Loop to try and find a free spot in the private use area.
  21176. do {
  21177. fontCharCode = nextAvailableFontCharCode++;
  21178. if (SKIP_PRIVATE_USE_RANGE_F000_TO_F01F && fontCharCode === 0xF000) {
  21179. fontCharCode = 0xF020;
  21180. nextAvailableFontCharCode = fontCharCode + 1;
  21181. }
  21182. } while (usedFontCharCodes[fontCharCode] !== undefined &&
  21183. nextAvailableFontCharCode <= PRIVATE_USE_OFFSET_END);
  21184. }
  21185. newMap[fontCharCode] = glyphId;
  21186. toFontChar[originalCharCode] = fontCharCode;
  21187. usedFontCharCodes[fontCharCode] = true;
  21188. }
  21189. return {
  21190. toFontChar: toFontChar,
  21191. charCodeToGlyphId: newMap,
  21192. nextAvailableFontCharCode: nextAvailableFontCharCode
  21193. };
  21194. }
  21195. function getRanges(glyphs) {
  21196. // Array.sort() sorts by characters, not numerically, so convert to an
  21197. // array of characters.
  21198. var codes = [];
  21199. for (var charCode in glyphs) {
  21200. codes.push({ fontCharCode: charCode | 0, glyphId: glyphs[charCode] });
  21201. }
  21202. codes.sort(function fontGetRangesSort(a, b) {
  21203. return a.fontCharCode - b.fontCharCode;
  21204. });
  21205. // Split the sorted codes into ranges.
  21206. var ranges = [];
  21207. var length = codes.length;
  21208. for (var n = 0; n < length; ) {
  21209. var start = codes[n].fontCharCode;
  21210. var codeIndices = [codes[n].glyphId];
  21211. ++n;
  21212. var end = start;
  21213. while (n < length && end + 1 == codes[n].fontCharCode) {
  21214. codeIndices.push(codes[n].glyphId);
  21215. ++end;
  21216. ++n;
  21217. if (end === 0xFFFF) {
  21218. break;
  21219. }
  21220. }
  21221. ranges.push([start, end, codeIndices]);
  21222. }
  21223. return ranges;
  21224. }
  21225. function createCmapTable(glyphs) {
  21226. var ranges = getRanges(glyphs);
  21227. var numTables = ranges[ranges.length - 1][1] > 0xFFFF ? 2 : 1;
  21228. var cmap = '\x00\x00' + // version
  21229. string16(numTables) + // numTables
  21230. '\x00\x03' + // platformID
  21231. '\x00\x01' + // encodingID
  21232. string32(4 + numTables * 8); // start of the table record
  21233. var i, ii, j, jj;
  21234. for (i = ranges.length - 1; i >= 0; --i) {
  21235. if (ranges[i][0] <= 0xFFFF) { break; }
  21236. }
  21237. var bmpLength = i + 1;
  21238. if (ranges[i][0] < 0xFFFF && ranges[i][1] === 0xFFFF) {
  21239. ranges[i][1] = 0xFFFE;
  21240. }
  21241. var trailingRangesCount = ranges[i][1] < 0xFFFF ? 1 : 0;
  21242. var segCount = bmpLength + trailingRangesCount;
  21243. var segCount2 = segCount * 2;
  21244. var searchRange = getMaxPower2(segCount) * 2;
  21245. var searchEntry = Math.log(segCount) / Math.log(2);
  21246. var rangeShift = 2 * segCount - searchRange;
  21247. // Fill up the 4 parallel arrays describing the segments.
  21248. var startCount = '';
  21249. var endCount = '';
  21250. var idDeltas = '';
  21251. var idRangeOffsets = '';
  21252. var glyphsIds = '';
  21253. var bias = 0;
  21254. var range, start, end, codes;
  21255. for (i = 0, ii = bmpLength; i < ii; i++) {
  21256. range = ranges[i];
  21257. start = range[0];
  21258. end = range[1];
  21259. startCount += string16(start);
  21260. endCount += string16(end);
  21261. codes = range[2];
  21262. var contiguous = true;
  21263. for (j = 1, jj = codes.length; j < jj; ++j) {
  21264. if (codes[j] !== codes[j - 1] + 1) {
  21265. contiguous = false;
  21266. break;
  21267. }
  21268. }
  21269. if (!contiguous) {
  21270. var offset = (segCount - i) * 2 + bias * 2;
  21271. bias += (end - start + 1);
  21272. idDeltas += string16(0);
  21273. idRangeOffsets += string16(offset);
  21274. for (j = 0, jj = codes.length; j < jj; ++j) {
  21275. glyphsIds += string16(codes[j]);
  21276. }
  21277. } else {
  21278. var startCode = codes[0];
  21279. idDeltas += string16((startCode - start) & 0xFFFF);
  21280. idRangeOffsets += string16(0);
  21281. }
  21282. }
  21283. if (trailingRangesCount > 0) {
  21284. endCount += '\xFF\xFF';
  21285. startCount += '\xFF\xFF';
  21286. idDeltas += '\x00\x01';
  21287. idRangeOffsets += '\x00\x00';
  21288. }
  21289. var format314 = '\x00\x00' + // language
  21290. string16(segCount2) +
  21291. string16(searchRange) +
  21292. string16(searchEntry) +
  21293. string16(rangeShift) +
  21294. endCount + '\x00\x00' + startCount +
  21295. idDeltas + idRangeOffsets + glyphsIds;
  21296. var format31012 = '';
  21297. var header31012 = '';
  21298. if (numTables > 1) {
  21299. cmap += '\x00\x03' + // platformID
  21300. '\x00\x0A' + // encodingID
  21301. string32(4 + numTables * 8 +
  21302. 4 + format314.length); // start of the table record
  21303. format31012 = '';
  21304. for (i = 0, ii = ranges.length; i < ii; i++) {
  21305. range = ranges[i];
  21306. start = range[0];
  21307. codes = range[2];
  21308. var code = codes[0];
  21309. for (j = 1, jj = codes.length; j < jj; ++j) {
  21310. if (codes[j] !== codes[j - 1] + 1) {
  21311. end = range[0] + j - 1;
  21312. format31012 += string32(start) + // startCharCode
  21313. string32(end) + // endCharCode
  21314. string32(code); // startGlyphID
  21315. start = end + 1;
  21316. code = codes[j];
  21317. }
  21318. }
  21319. format31012 += string32(start) + // startCharCode
  21320. string32(range[1]) + // endCharCode
  21321. string32(code); // startGlyphID
  21322. }
  21323. header31012 = '\x00\x0C' + // format
  21324. '\x00\x00' + // reserved
  21325. string32(format31012.length + 16) + // length
  21326. '\x00\x00\x00\x00' + // language
  21327. string32(format31012.length / 12); // nGroups
  21328. }
  21329. return stringToArray(cmap +
  21330. '\x00\x04' + // format
  21331. string16(format314.length + 4) + // length
  21332. format314 + header31012 + format31012);
  21333. }
  21334. function validateOS2Table(os2) {
  21335. var stream = new Stream(os2.data);
  21336. var version = stream.getUint16();
  21337. // TODO verify all OS/2 tables fields, but currently we validate only those
  21338. // that give us issues
  21339. stream.getBytes(60); // skipping type, misc sizes, panose, unicode ranges
  21340. var selection = stream.getUint16();
  21341. if (version < 4 && (selection & 0x0300)) {
  21342. return false;
  21343. }
  21344. var firstChar = stream.getUint16();
  21345. var lastChar = stream.getUint16();
  21346. if (firstChar > lastChar) {
  21347. return false;
  21348. }
  21349. stream.getBytes(6); // skipping sTypoAscender/Descender/LineGap
  21350. var usWinAscent = stream.getUint16();
  21351. if (usWinAscent === 0) { // makes font unreadable by windows
  21352. return false;
  21353. }
  21354. // OS/2 appears to be valid, resetting some fields
  21355. os2.data[8] = os2.data[9] = 0; // IE rejects fonts if fsType != 0
  21356. return true;
  21357. }
  21358. function createOS2Table(properties, charstrings, override) {
  21359. override = override || {
  21360. unitsPerEm: 0,
  21361. yMax: 0,
  21362. yMin: 0,
  21363. ascent: 0,
  21364. descent: 0
  21365. };
  21366. var ulUnicodeRange1 = 0;
  21367. var ulUnicodeRange2 = 0;
  21368. var ulUnicodeRange3 = 0;
  21369. var ulUnicodeRange4 = 0;
  21370. var firstCharIndex = null;
  21371. var lastCharIndex = 0;
  21372. if (charstrings) {
  21373. for (var code in charstrings) {
  21374. code |= 0;
  21375. if (firstCharIndex > code || !firstCharIndex) {
  21376. firstCharIndex = code;
  21377. }
  21378. if (lastCharIndex < code) {
  21379. lastCharIndex = code;
  21380. }
  21381. var position = getUnicodeRangeFor(code);
  21382. if (position < 32) {
  21383. ulUnicodeRange1 |= 1 << position;
  21384. } else if (position < 64) {
  21385. ulUnicodeRange2 |= 1 << position - 32;
  21386. } else if (position < 96) {
  21387. ulUnicodeRange3 |= 1 << position - 64;
  21388. } else if (position < 123) {
  21389. ulUnicodeRange4 |= 1 << position - 96;
  21390. } else {
  21391. error('Unicode ranges Bits > 123 are reserved for internal usage');
  21392. }
  21393. }
  21394. } else {
  21395. // TODO
  21396. firstCharIndex = 0;
  21397. lastCharIndex = 255;
  21398. }
  21399. var bbox = properties.bbox || [0, 0, 0, 0];
  21400. var unitsPerEm = (override.unitsPerEm ||
  21401. 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0]);
  21402. // if the font units differ to the PDF glyph space units
  21403. // then scale up the values
  21404. var scale = (properties.ascentScaled ? 1.0 :
  21405. unitsPerEm / PDF_GLYPH_SPACE_UNITS);
  21406. var typoAscent = (override.ascent ||
  21407. Math.round(scale * (properties.ascent || bbox[3])));
  21408. var typoDescent = (override.descent ||
  21409. Math.round(scale * (properties.descent || bbox[1])));
  21410. if (typoDescent > 0 && properties.descent > 0 && bbox[1] < 0) {
  21411. typoDescent = -typoDescent; // fixing incorrect descent
  21412. }
  21413. var winAscent = override.yMax || typoAscent;
  21414. var winDescent = -override.yMin || -typoDescent;
  21415. return '\x00\x03' + // version
  21416. '\x02\x24' + // xAvgCharWidth
  21417. '\x01\xF4' + // usWeightClass
  21418. '\x00\x05' + // usWidthClass
  21419. '\x00\x00' + // fstype (0 to let the font loads via font-face on IE)
  21420. '\x02\x8A' + // ySubscriptXSize
  21421. '\x02\xBB' + // ySubscriptYSize
  21422. '\x00\x00' + // ySubscriptXOffset
  21423. '\x00\x8C' + // ySubscriptYOffset
  21424. '\x02\x8A' + // ySuperScriptXSize
  21425. '\x02\xBB' + // ySuperScriptYSize
  21426. '\x00\x00' + // ySuperScriptXOffset
  21427. '\x01\xDF' + // ySuperScriptYOffset
  21428. '\x00\x31' + // yStrikeOutSize
  21429. '\x01\x02' + // yStrikeOutPosition
  21430. '\x00\x00' + // sFamilyClass
  21431. '\x00\x00\x06' +
  21432. String.fromCharCode(properties.fixedPitch ? 0x09 : 0x00) +
  21433. '\x00\x00\x00\x00\x00\x00' + // Panose
  21434. string32(ulUnicodeRange1) + // ulUnicodeRange1 (Bits 0-31)
  21435. string32(ulUnicodeRange2) + // ulUnicodeRange2 (Bits 32-63)
  21436. string32(ulUnicodeRange3) + // ulUnicodeRange3 (Bits 64-95)
  21437. string32(ulUnicodeRange4) + // ulUnicodeRange4 (Bits 96-127)
  21438. '\x2A\x32\x31\x2A' + // achVendID
  21439. string16(properties.italicAngle ? 1 : 0) + // fsSelection
  21440. string16(firstCharIndex ||
  21441. properties.firstChar) + // usFirstCharIndex
  21442. string16(lastCharIndex || properties.lastChar) + // usLastCharIndex
  21443. string16(typoAscent) + // sTypoAscender
  21444. string16(typoDescent) + // sTypoDescender
  21445. '\x00\x64' + // sTypoLineGap (7%-10% of the unitsPerEM value)
  21446. string16(winAscent) + // usWinAscent
  21447. string16(winDescent) + // usWinDescent
  21448. '\x00\x00\x00\x00' + // ulCodePageRange1 (Bits 0-31)
  21449. '\x00\x00\x00\x00' + // ulCodePageRange2 (Bits 32-63)
  21450. string16(properties.xHeight) + // sxHeight
  21451. string16(properties.capHeight) + // sCapHeight
  21452. string16(0) + // usDefaultChar
  21453. string16(firstCharIndex || properties.firstChar) + // usBreakChar
  21454. '\x00\x03'; // usMaxContext
  21455. }
  21456. function createPostTable(properties) {
  21457. var angle = Math.floor(properties.italicAngle * (Math.pow(2, 16)));
  21458. return ('\x00\x03\x00\x00' + // Version number
  21459. string32(angle) + // italicAngle
  21460. '\x00\x00' + // underlinePosition
  21461. '\x00\x00' + // underlineThickness
  21462. string32(properties.fixedPitch) + // isFixedPitch
  21463. '\x00\x00\x00\x00' + // minMemType42
  21464. '\x00\x00\x00\x00' + // maxMemType42
  21465. '\x00\x00\x00\x00' + // minMemType1
  21466. '\x00\x00\x00\x00'); // maxMemType1
  21467. }
  21468. function createNameTable(name, proto) {
  21469. if (!proto) {
  21470. proto = [[], []]; // no strings and unicode strings
  21471. }
  21472. var strings = [
  21473. proto[0][0] || 'Original licence', // 0.Copyright
  21474. proto[0][1] || name, // 1.Font family
  21475. proto[0][2] || 'Unknown', // 2.Font subfamily (font weight)
  21476. proto[0][3] || 'uniqueID', // 3.Unique ID
  21477. proto[0][4] || name, // 4.Full font name
  21478. proto[0][5] || 'Version 0.11', // 5.Version
  21479. proto[0][6] || '', // 6.Postscript name
  21480. proto[0][7] || 'Unknown', // 7.Trademark
  21481. proto[0][8] || 'Unknown', // 8.Manufacturer
  21482. proto[0][9] || 'Unknown' // 9.Designer
  21483. ];
  21484. // Mac want 1-byte per character strings while Windows want
  21485. // 2-bytes per character, so duplicate the names table
  21486. var stringsUnicode = [];
  21487. var i, ii, j, jj, str;
  21488. for (i = 0, ii = strings.length; i < ii; i++) {
  21489. str = proto[1][i] || strings[i];
  21490. var strBufUnicode = [];
  21491. for (j = 0, jj = str.length; j < jj; j++) {
  21492. strBufUnicode.push(string16(str.charCodeAt(j)));
  21493. }
  21494. stringsUnicode.push(strBufUnicode.join(''));
  21495. }
  21496. var names = [strings, stringsUnicode];
  21497. var platforms = ['\x00\x01', '\x00\x03'];
  21498. var encodings = ['\x00\x00', '\x00\x01'];
  21499. var languages = ['\x00\x00', '\x04\x09'];
  21500. var namesRecordCount = strings.length * platforms.length;
  21501. var nameTable =
  21502. '\x00\x00' + // format
  21503. string16(namesRecordCount) + // Number of names Record
  21504. string16(namesRecordCount * 12 + 6); // Storage
  21505. // Build the name records field
  21506. var strOffset = 0;
  21507. for (i = 0, ii = platforms.length; i < ii; i++) {
  21508. var strs = names[i];
  21509. for (j = 0, jj = strs.length; j < jj; j++) {
  21510. str = strs[j];
  21511. var nameRecord =
  21512. platforms[i] + // platform ID
  21513. encodings[i] + // encoding ID
  21514. languages[i] + // language ID
  21515. string16(j) + // name ID
  21516. string16(str.length) +
  21517. string16(strOffset);
  21518. nameTable += nameRecord;
  21519. strOffset += str.length;
  21520. }
  21521. }
  21522. nameTable += strings.join('') + stringsUnicode.join('');
  21523. return nameTable;
  21524. }
  21525. Font.prototype = {
  21526. name: null,
  21527. font: null,
  21528. mimetype: null,
  21529. encoding: null,
  21530. get renderer() {
  21531. var renderer = FontRendererFactory.create(this);
  21532. return shadow(this, 'renderer', renderer);
  21533. },
  21534. exportData: function Font_exportData() {
  21535. var data = {};
  21536. for (var i in this) {
  21537. if (this.hasOwnProperty(i)) {
  21538. data[i] = this[i];
  21539. }
  21540. }
  21541. return data;
  21542. },
  21543. checkAndRepair: function Font_checkAndRepair(name, font, properties) {
  21544. function readTableEntry(file) {
  21545. var tag = bytesToString(file.getBytes(4));
  21546. var checksum = file.getInt32();
  21547. var offset = file.getInt32() >>> 0;
  21548. var length = file.getInt32() >>> 0;
  21549. // Read the table associated data
  21550. var previousPosition = file.pos;
  21551. file.pos = file.start ? file.start : 0;
  21552. file.skip(offset);
  21553. var data = file.getBytes(length);
  21554. file.pos = previousPosition;
  21555. if (tag == 'head') {
  21556. // clearing checksum adjustment
  21557. data[8] = data[9] = data[10] = data[11] = 0;
  21558. data[17] |= 0x20; //Set font optimized for cleartype flag
  21559. }
  21560. return {
  21561. tag: tag,
  21562. checksum: checksum,
  21563. length: length,
  21564. offset: offset,
  21565. data: data
  21566. };
  21567. }
  21568. function readOpenTypeHeader(ttf) {
  21569. return {
  21570. version: bytesToString(ttf.getBytes(4)),
  21571. numTables: ttf.getUint16(),
  21572. searchRange: ttf.getUint16(),
  21573. entrySelector: ttf.getUint16(),
  21574. rangeShift: ttf.getUint16()
  21575. };
  21576. }
  21577. /**
  21578. * Read the appropriate subtable from the cmap according to 9.6.6.4 from
  21579. * PDF spec
  21580. */
  21581. function readCmapTable(cmap, font, isSymbolicFont) {
  21582. var segment;
  21583. var start = (font.start ? font.start : 0) + cmap.offset;
  21584. font.pos = start;
  21585. var version = font.getUint16();
  21586. var numTables = font.getUint16();
  21587. var potentialTable;
  21588. var canBreak = false;
  21589. // There's an order of preference in terms of which cmap subtable to
  21590. // use:
  21591. // - non-symbolic fonts the preference is a 3,1 table then a 1,0 table
  21592. // - symbolic fonts the preference is a 3,0 table then a 1,0 table
  21593. // The following takes advantage of the fact that the tables are sorted
  21594. // to work.
  21595. for (var i = 0; i < numTables; i++) {
  21596. var platformId = font.getUint16();
  21597. var encodingId = font.getUint16();
  21598. var offset = font.getInt32() >>> 0;
  21599. var useTable = false;
  21600. if (platformId == 1 && encodingId === 0) {
  21601. useTable = true;
  21602. // Continue the loop since there still may be a higher priority
  21603. // table.
  21604. } else if (!isSymbolicFont && platformId === 3 && encodingId === 1) {
  21605. useTable = true;
  21606. canBreak = true;
  21607. } else if (isSymbolicFont && platformId === 3 && encodingId === 0) {
  21608. useTable = true;
  21609. canBreak = true;
  21610. }
  21611. if (useTable) {
  21612. potentialTable = {
  21613. platformId: platformId,
  21614. encodingId: encodingId,
  21615. offset: offset
  21616. };
  21617. }
  21618. if (canBreak) {
  21619. break;
  21620. }
  21621. }
  21622. if (!potentialTable) {
  21623. warn('Could not find a preferred cmap table.');
  21624. return {
  21625. platformId: -1,
  21626. encodingId: -1,
  21627. mappings: [],
  21628. hasShortCmap: false
  21629. };
  21630. }
  21631. font.pos = start + potentialTable.offset;
  21632. var format = font.getUint16();
  21633. var length = font.getUint16();
  21634. var language = font.getUint16();
  21635. var hasShortCmap = false;
  21636. var mappings = [];
  21637. var j, glyphId;
  21638. // TODO(mack): refactor this cmap subtable reading logic out
  21639. if (format === 0) {
  21640. for (j = 0; j < 256; j++) {
  21641. var index = font.getByte();
  21642. if (!index) {
  21643. continue;
  21644. }
  21645. mappings.push({
  21646. charCode: j,
  21647. glyphId: index
  21648. });
  21649. }
  21650. hasShortCmap = true;
  21651. } else if (format === 4) {
  21652. // re-creating the table in format 4 since the encoding
  21653. // might be changed
  21654. var segCount = (font.getUint16() >> 1);
  21655. font.getBytes(6); // skipping range fields
  21656. var segIndex, segments = [];
  21657. for (segIndex = 0; segIndex < segCount; segIndex++) {
  21658. segments.push({ end: font.getUint16() });
  21659. }
  21660. font.getUint16();
  21661. for (segIndex = 0; segIndex < segCount; segIndex++) {
  21662. segments[segIndex].start = font.getUint16();
  21663. }
  21664. for (segIndex = 0; segIndex < segCount; segIndex++) {
  21665. segments[segIndex].delta = font.getUint16();
  21666. }
  21667. var offsetsCount = 0;
  21668. for (segIndex = 0; segIndex < segCount; segIndex++) {
  21669. segment = segments[segIndex];
  21670. var rangeOffset = font.getUint16();
  21671. if (!rangeOffset) {
  21672. segment.offsetIndex = -1;
  21673. continue;
  21674. }
  21675. var offsetIndex = (rangeOffset >> 1) - (segCount - segIndex);
  21676. segment.offsetIndex = offsetIndex;
  21677. offsetsCount = Math.max(offsetsCount, offsetIndex +
  21678. segment.end - segment.start + 1);
  21679. }
  21680. var offsets = [];
  21681. for (j = 0; j < offsetsCount; j++) {
  21682. offsets.push(font.getUint16());
  21683. }
  21684. for (segIndex = 0; segIndex < segCount; segIndex++) {
  21685. segment = segments[segIndex];
  21686. start = segment.start;
  21687. var end = segment.end;
  21688. var delta = segment.delta;
  21689. offsetIndex = segment.offsetIndex;
  21690. for (j = start; j <= end; j++) {
  21691. if (j == 0xFFFF) {
  21692. continue;
  21693. }
  21694. glyphId = (offsetIndex < 0 ?
  21695. j : offsets[offsetIndex + j - start]);
  21696. glyphId = (glyphId + delta) & 0xFFFF;
  21697. if (glyphId === 0) {
  21698. continue;
  21699. }
  21700. mappings.push({
  21701. charCode: j,
  21702. glyphId: glyphId
  21703. });
  21704. }
  21705. }
  21706. } else if (format == 6) {
  21707. // Format 6 is a 2-bytes dense mapping, which means the font data
  21708. // lives glue together even if they are pretty far in the unicode
  21709. // table. (This looks weird, so I can have missed something), this
  21710. // works on Linux but seems to fails on Mac so let's rewrite the
  21711. // cmap table to a 3-1-4 style
  21712. var firstCode = font.getUint16();
  21713. var entryCount = font.getUint16();
  21714. for (j = 0; j < entryCount; j++) {
  21715. glyphId = font.getUint16();
  21716. var charCode = firstCode + j;
  21717. mappings.push({
  21718. charCode: charCode,
  21719. glyphId: glyphId
  21720. });
  21721. }
  21722. } else {
  21723. error('cmap table has unsupported format: ' + format);
  21724. }
  21725. // removing duplicate entries
  21726. mappings.sort(function (a, b) {
  21727. return a.charCode - b.charCode;
  21728. });
  21729. for (i = 1; i < mappings.length; i++) {
  21730. if (mappings[i - 1].charCode === mappings[i].charCode) {
  21731. mappings.splice(i, 1);
  21732. i--;
  21733. }
  21734. }
  21735. return {
  21736. platformId: potentialTable.platformId,
  21737. encodingId: potentialTable.encodingId,
  21738. mappings: mappings,
  21739. hasShortCmap: hasShortCmap
  21740. };
  21741. }
  21742. function sanitizeMetrics(font, header, metrics, numGlyphs) {
  21743. if (!header) {
  21744. if (metrics) {
  21745. metrics.data = null;
  21746. }
  21747. return;
  21748. }
  21749. font.pos = (font.start ? font.start : 0) + header.offset;
  21750. font.pos += header.length - 2;
  21751. var numOfMetrics = font.getUint16();
  21752. if (numOfMetrics > numGlyphs) {
  21753. info('The numOfMetrics (' + numOfMetrics + ') should not be ' +
  21754. 'greater than the numGlyphs (' + numGlyphs + ')');
  21755. // Reduce numOfMetrics if it is greater than numGlyphs
  21756. numOfMetrics = numGlyphs;
  21757. header.data[34] = (numOfMetrics & 0xff00) >> 8;
  21758. header.data[35] = numOfMetrics & 0x00ff;
  21759. }
  21760. var numOfSidebearings = numGlyphs - numOfMetrics;
  21761. var numMissing = numOfSidebearings -
  21762. ((metrics.length - numOfMetrics * 4) >> 1);
  21763. var i, ii;
  21764. if (numMissing > 0) {
  21765. font.pos = (font.start ? font.start : 0) + metrics.offset;
  21766. var entries = '';
  21767. for (i = 0, ii = metrics.length; i < ii; i++) {
  21768. entries += String.fromCharCode(font.getByte());
  21769. }
  21770. for (i = 0; i < numMissing; i++) {
  21771. entries += '\x00\x00';
  21772. }
  21773. metrics.data = stringToArray(entries);
  21774. }
  21775. }
  21776. function sanitizeGlyph(source, sourceStart, sourceEnd, dest, destStart,
  21777. hintsValid) {
  21778. if (sourceEnd - sourceStart <= 12) {
  21779. // glyph with data less than 12 is invalid one
  21780. return 0;
  21781. }
  21782. var glyf = source.subarray(sourceStart, sourceEnd);
  21783. var contoursCount = (glyf[0] << 8) | glyf[1];
  21784. if (contoursCount & 0x8000) {
  21785. // complex glyph, writing as is
  21786. dest.set(glyf, destStart);
  21787. return glyf.length;
  21788. }
  21789. var i, j = 10, flagsCount = 0;
  21790. for (i = 0; i < contoursCount; i++) {
  21791. var endPoint = (glyf[j] << 8) | glyf[j + 1];
  21792. flagsCount = endPoint + 1;
  21793. j += 2;
  21794. }
  21795. // skipping instructions
  21796. var instructionsStart = j;
  21797. var instructionsLength = (glyf[j] << 8) | glyf[j + 1];
  21798. j += 2 + instructionsLength;
  21799. var instructionsEnd = j;
  21800. // validating flags
  21801. var coordinatesLength = 0;
  21802. for (i = 0; i < flagsCount; i++) {
  21803. var flag = glyf[j++];
  21804. if (flag & 0xC0) {
  21805. // reserved flags must be zero, cleaning up
  21806. glyf[j - 1] = flag & 0x3F;
  21807. }
  21808. var xyLength = ((flag & 2) ? 1 : (flag & 16) ? 0 : 2) +
  21809. ((flag & 4) ? 1 : (flag & 32) ? 0 : 2);
  21810. coordinatesLength += xyLength;
  21811. if (flag & 8) {
  21812. var repeat = glyf[j++];
  21813. i += repeat;
  21814. coordinatesLength += repeat * xyLength;
  21815. }
  21816. }
  21817. // glyph without coordinates will be rejected
  21818. if (coordinatesLength === 0) {
  21819. return 0;
  21820. }
  21821. var glyphDataLength = j + coordinatesLength;
  21822. if (glyphDataLength > glyf.length) {
  21823. // not enough data for coordinates
  21824. return 0;
  21825. }
  21826. if (!hintsValid && instructionsLength > 0) {
  21827. dest.set(glyf.subarray(0, instructionsStart), destStart);
  21828. dest.set([0, 0], destStart + instructionsStart);
  21829. dest.set(glyf.subarray(instructionsEnd, glyphDataLength),
  21830. destStart + instructionsStart + 2);
  21831. glyphDataLength -= instructionsLength;
  21832. if (glyf.length - glyphDataLength > 3) {
  21833. glyphDataLength = (glyphDataLength + 3) & ~3;
  21834. }
  21835. return glyphDataLength;
  21836. }
  21837. if (glyf.length - glyphDataLength > 3) {
  21838. // truncating and aligning to 4 bytes the long glyph data
  21839. glyphDataLength = (glyphDataLength + 3) & ~3;
  21840. dest.set(glyf.subarray(0, glyphDataLength), destStart);
  21841. return glyphDataLength;
  21842. }
  21843. // glyph data is fine
  21844. dest.set(glyf, destStart);
  21845. return glyf.length;
  21846. }
  21847. function sanitizeHead(head, numGlyphs, locaLength) {
  21848. var data = head.data;
  21849. // Validate version:
  21850. // Should always be 0x00010000
  21851. var version = int32(data[0], data[1], data[2], data[3]);
  21852. if (version >> 16 !== 1) {
  21853. info('Attempting to fix invalid version in head table: ' + version);
  21854. data[0] = 0;
  21855. data[1] = 1;
  21856. data[2] = 0;
  21857. data[3] = 0;
  21858. }
  21859. var indexToLocFormat = int16(data[50], data[51]);
  21860. if (indexToLocFormat < 0 || indexToLocFormat > 1) {
  21861. info('Attempting to fix invalid indexToLocFormat in head table: ' +
  21862. indexToLocFormat);
  21863. // The value of indexToLocFormat should be 0 if the loca table
  21864. // consists of short offsets, and should be 1 if the loca table
  21865. // consists of long offsets.
  21866. //
  21867. // The number of entries in the loca table should be numGlyphs + 1.
  21868. //
  21869. // Using this information, we can work backwards to deduce if the
  21870. // size of each offset in the loca table, and thus figure out the
  21871. // appropriate value for indexToLocFormat.
  21872. var numGlyphsPlusOne = numGlyphs + 1;
  21873. if (locaLength === numGlyphsPlusOne << 1) {
  21874. // 0x0000 indicates the loca table consists of short offsets
  21875. data[50] = 0;
  21876. data[51] = 0;
  21877. } else if (locaLength === numGlyphsPlusOne << 2) {
  21878. // 0x0001 indicates the loca table consists of long offsets
  21879. data[50] = 0;
  21880. data[51] = 1;
  21881. } else {
  21882. warn('Could not fix indexToLocFormat: ' + indexToLocFormat);
  21883. }
  21884. }
  21885. }
  21886. function sanitizeGlyphLocations(loca, glyf, numGlyphs,
  21887. isGlyphLocationsLong, hintsValid,
  21888. dupFirstEntry) {
  21889. var itemSize, itemDecode, itemEncode;
  21890. if (isGlyphLocationsLong) {
  21891. itemSize = 4;
  21892. itemDecode = function fontItemDecodeLong(data, offset) {
  21893. return (data[offset] << 24) | (data[offset + 1] << 16) |
  21894. (data[offset + 2] << 8) | data[offset + 3];
  21895. };
  21896. itemEncode = function fontItemEncodeLong(data, offset, value) {
  21897. data[offset] = (value >>> 24) & 0xFF;
  21898. data[offset + 1] = (value >> 16) & 0xFF;
  21899. data[offset + 2] = (value >> 8) & 0xFF;
  21900. data[offset + 3] = value & 0xFF;
  21901. };
  21902. } else {
  21903. itemSize = 2;
  21904. itemDecode = function fontItemDecode(data, offset) {
  21905. return (data[offset] << 9) | (data[offset + 1] << 1);
  21906. };
  21907. itemEncode = function fontItemEncode(data, offset, value) {
  21908. data[offset] = (value >> 9) & 0xFF;
  21909. data[offset + 1] = (value >> 1) & 0xFF;
  21910. };
  21911. }
  21912. var locaData = loca.data;
  21913. var locaDataSize = itemSize * (1 + numGlyphs);
  21914. // is loca.data too short or long?
  21915. if (locaData.length !== locaDataSize) {
  21916. locaData = new Uint8Array(locaDataSize);
  21917. locaData.set(loca.data.subarray(0, locaDataSize));
  21918. loca.data = locaData;
  21919. }
  21920. // removing the invalid glyphs
  21921. var oldGlyfData = glyf.data;
  21922. var oldGlyfDataLength = oldGlyfData.length;
  21923. var newGlyfData = new Uint8Array(oldGlyfDataLength);
  21924. var startOffset = itemDecode(locaData, 0);
  21925. var writeOffset = 0;
  21926. itemEncode(locaData, 0, writeOffset);
  21927. var i, j;
  21928. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  21929. var endOffset = itemDecode(locaData, j);
  21930. if (endOffset > oldGlyfDataLength &&
  21931. ((oldGlyfDataLength + 3) & ~3) === endOffset) {
  21932. // Aspose breaks fonts by aligning the glyphs to the qword, but not
  21933. // the glyf table size, which makes last glyph out of range.
  21934. endOffset = oldGlyfDataLength;
  21935. }
  21936. if (endOffset > oldGlyfDataLength) {
  21937. // glyph end offset points outside glyf data, rejecting the glyph
  21938. itemEncode(locaData, j, writeOffset);
  21939. startOffset = endOffset;
  21940. continue;
  21941. }
  21942. var newLength = sanitizeGlyph(oldGlyfData, startOffset, endOffset,
  21943. newGlyfData, writeOffset, hintsValid);
  21944. writeOffset += newLength;
  21945. itemEncode(locaData, j, writeOffset);
  21946. startOffset = endOffset;
  21947. }
  21948. if (writeOffset === 0) {
  21949. // glyf table cannot be empty -- redoing the glyf and loca tables
  21950. // to have single glyph with one point
  21951. var simpleGlyph = new Uint8Array(
  21952. [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0]);
  21953. for (i = 0, j = itemSize; i < numGlyphs; i++, j += itemSize) {
  21954. itemEncode(locaData, j, simpleGlyph.length);
  21955. }
  21956. glyf.data = simpleGlyph;
  21957. return;
  21958. }
  21959. if (dupFirstEntry) {
  21960. var firstEntryLength = itemDecode(locaData, itemSize);
  21961. if (newGlyfData.length > firstEntryLength + writeOffset) {
  21962. glyf.data = newGlyfData.subarray(0, firstEntryLength + writeOffset);
  21963. } else {
  21964. glyf.data = new Uint8Array(firstEntryLength + writeOffset);
  21965. glyf.data.set(newGlyfData.subarray(0, writeOffset));
  21966. }
  21967. glyf.data.set(newGlyfData.subarray(0, firstEntryLength), writeOffset);
  21968. itemEncode(loca.data, locaData.length - itemSize,
  21969. writeOffset + firstEntryLength);
  21970. } else {
  21971. glyf.data = newGlyfData.subarray(0, writeOffset);
  21972. }
  21973. }
  21974. function readPostScriptTable(post, properties, maxpNumGlyphs) {
  21975. var start = (font.start ? font.start : 0) + post.offset;
  21976. font.pos = start;
  21977. var length = post.length, end = start + length;
  21978. var version = font.getInt32();
  21979. // skip rest to the tables
  21980. font.getBytes(28);
  21981. var glyphNames;
  21982. var valid = true;
  21983. var i;
  21984. switch (version) {
  21985. case 0x00010000:
  21986. glyphNames = MacStandardGlyphOrdering;
  21987. break;
  21988. case 0x00020000:
  21989. var numGlyphs = font.getUint16();
  21990. if (numGlyphs != maxpNumGlyphs) {
  21991. valid = false;
  21992. break;
  21993. }
  21994. var glyphNameIndexes = [];
  21995. for (i = 0; i < numGlyphs; ++i) {
  21996. var index = font.getUint16();
  21997. if (index >= 32768) {
  21998. valid = false;
  21999. break;
  22000. }
  22001. glyphNameIndexes.push(index);
  22002. }
  22003. if (!valid) {
  22004. break;
  22005. }
  22006. var customNames = [];
  22007. while (font.pos < end) {
  22008. var stringLength = font.getByte();
  22009. var string = '';
  22010. for (i = 0; i < stringLength; ++i) {
  22011. string += String.fromCharCode(font.getByte());
  22012. }
  22013. customNames.push(string);
  22014. }
  22015. glyphNames = [];
  22016. for (i = 0; i < numGlyphs; ++i) {
  22017. var j = glyphNameIndexes[i];
  22018. if (j < 258) {
  22019. glyphNames.push(MacStandardGlyphOrdering[j]);
  22020. continue;
  22021. }
  22022. glyphNames.push(customNames[j - 258]);
  22023. }
  22024. break;
  22025. case 0x00030000:
  22026. break;
  22027. default:
  22028. warn('Unknown/unsupported post table version ' + version);
  22029. valid = false;
  22030. break;
  22031. }
  22032. properties.glyphNames = glyphNames;
  22033. return valid;
  22034. }
  22035. function readNameTable(nameTable) {
  22036. var start = (font.start ? font.start : 0) + nameTable.offset;
  22037. font.pos = start;
  22038. var names = [[], []];
  22039. var length = nameTable.length, end = start + length;
  22040. var format = font.getUint16();
  22041. var FORMAT_0_HEADER_LENGTH = 6;
  22042. if (format !== 0 || length < FORMAT_0_HEADER_LENGTH) {
  22043. // unsupported name table format or table "too" small
  22044. return names;
  22045. }
  22046. var numRecords = font.getUint16();
  22047. var stringsStart = font.getUint16();
  22048. var records = [];
  22049. var NAME_RECORD_LENGTH = 12;
  22050. var i, ii;
  22051. for (i = 0; i < numRecords &&
  22052. font.pos + NAME_RECORD_LENGTH <= end; i++) {
  22053. var r = {
  22054. platform: font.getUint16(),
  22055. encoding: font.getUint16(),
  22056. language: font.getUint16(),
  22057. name: font.getUint16(),
  22058. length: font.getUint16(),
  22059. offset: font.getUint16()
  22060. };
  22061. // using only Macintosh and Windows platform/encoding names
  22062. if ((r.platform == 1 && r.encoding === 0 && r.language === 0) ||
  22063. (r.platform == 3 && r.encoding == 1 && r.language == 0x409)) {
  22064. records.push(r);
  22065. }
  22066. }
  22067. for (i = 0, ii = records.length; i < ii; i++) {
  22068. var record = records[i];
  22069. var pos = start + stringsStart + record.offset;
  22070. if (pos + record.length > end) {
  22071. continue; // outside of name table, ignoring
  22072. }
  22073. font.pos = pos;
  22074. var nameIndex = record.name;
  22075. if (record.encoding) {
  22076. // unicode
  22077. var str = '';
  22078. for (var j = 0, jj = record.length; j < jj; j += 2) {
  22079. str += String.fromCharCode(font.getUint16());
  22080. }
  22081. names[1][nameIndex] = str;
  22082. } else {
  22083. names[0][nameIndex] = bytesToString(font.getBytes(record.length));
  22084. }
  22085. }
  22086. return names;
  22087. }
  22088. var TTOpsStackDeltas = [
  22089. 0, 0, 0, 0, 0, 0, 0, 0, -2, -2, -2, -2, 0, 0, -2, -5,
  22090. -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, -1, -1,
  22091. 1, -1, -999, 0, 1, 0, -1, -2, 0, -1, -2, -1, -1, 0, -1, -1,
  22092. 0, 0, -999, -999, -1, -1, -1, -1, -2, -999, -2, -2, -999, 0, -2, -2,
  22093. 0, 0, -2, 0, -2, 0, 0, 0, -2, -1, -1, 1, 1, 0, 0, -1,
  22094. -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, 0, -999, -1, -1,
  22095. -1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  22096. -2, -999, -999, -999, -999, -999, -1, -1, -2, -2, 0, 0, 0, 0, -1, -1,
  22097. -999, -2, -2, 0, 0, -1, -2, -2, 0, 0, 0, -1, -1, -1, -2];
  22098. // 0xC0-DF == -1 and 0xE0-FF == -2
  22099. function sanitizeTTProgram(table, ttContext) {
  22100. var data = table.data;
  22101. var i = 0, j, n, b, funcId, pc, lastEndf = 0, lastDeff = 0;
  22102. var stack = [];
  22103. var callstack = [];
  22104. var functionsCalled = [];
  22105. var tooComplexToFollowFunctions =
  22106. ttContext.tooComplexToFollowFunctions;
  22107. var inFDEF = false, ifLevel = 0, inELSE = 0;
  22108. for (var ii = data.length; i < ii;) {
  22109. var op = data[i++];
  22110. // The TrueType instruction set docs can be found at
  22111. // https://developer.apple.com/fonts/TTRefMan/RM05/Chap5.html
  22112. if (op === 0x40) { // NPUSHB - pushes n bytes
  22113. n = data[i++];
  22114. if (inFDEF || inELSE) {
  22115. i += n;
  22116. } else {
  22117. for (j = 0; j < n; j++) {
  22118. stack.push(data[i++]);
  22119. }
  22120. }
  22121. } else if (op === 0x41) { // NPUSHW - pushes n words
  22122. n = data[i++];
  22123. if (inFDEF || inELSE) {
  22124. i += n * 2;
  22125. } else {
  22126. for (j = 0; j < n; j++) {
  22127. b = data[i++];
  22128. stack.push((b << 8) | data[i++]);
  22129. }
  22130. }
  22131. } else if ((op & 0xF8) === 0xB0) { // PUSHB - pushes bytes
  22132. n = op - 0xB0 + 1;
  22133. if (inFDEF || inELSE) {
  22134. i += n;
  22135. } else {
  22136. for (j = 0; j < n; j++) {
  22137. stack.push(data[i++]);
  22138. }
  22139. }
  22140. } else if ((op & 0xF8) === 0xB8) { // PUSHW - pushes words
  22141. n = op - 0xB8 + 1;
  22142. if (inFDEF || inELSE) {
  22143. i += n * 2;
  22144. } else {
  22145. for (j = 0; j < n; j++) {
  22146. b = data[i++];
  22147. stack.push((b << 8) | data[i++]);
  22148. }
  22149. }
  22150. } else if (op === 0x2B && !tooComplexToFollowFunctions) { // CALL
  22151. if (!inFDEF && !inELSE) {
  22152. // collecting inforamtion about which functions are used
  22153. funcId = stack[stack.length - 1];
  22154. ttContext.functionsUsed[funcId] = true;
  22155. if (funcId in ttContext.functionsStackDeltas) {
  22156. stack.length += ttContext.functionsStackDeltas[funcId];
  22157. } else if (funcId in ttContext.functionsDefined &&
  22158. functionsCalled.indexOf(funcId) < 0) {
  22159. callstack.push({data: data, i: i, stackTop: stack.length - 1});
  22160. functionsCalled.push(funcId);
  22161. pc = ttContext.functionsDefined[funcId];
  22162. if (!pc) {
  22163. warn('TT: CALL non-existent function');
  22164. ttContext.hintsValid = false;
  22165. return;
  22166. }
  22167. data = pc.data;
  22168. i = pc.i;
  22169. }
  22170. }
  22171. } else if (op === 0x2C && !tooComplexToFollowFunctions) { // FDEF
  22172. if (inFDEF || inELSE) {
  22173. warn('TT: nested FDEFs not allowed');
  22174. tooComplexToFollowFunctions = true;
  22175. }
  22176. inFDEF = true;
  22177. // collecting inforamtion about which functions are defined
  22178. lastDeff = i;
  22179. funcId = stack.pop();
  22180. ttContext.functionsDefined[funcId] = {data: data, i: i};
  22181. } else if (op === 0x2D) { // ENDF - end of function
  22182. if (inFDEF) {
  22183. inFDEF = false;
  22184. lastEndf = i;
  22185. } else {
  22186. pc = callstack.pop();
  22187. if (!pc) {
  22188. warn('TT: ENDF bad stack');
  22189. ttContext.hintsValid = false;
  22190. return;
  22191. }
  22192. funcId = functionsCalled.pop();
  22193. data = pc.data;
  22194. i = pc.i;
  22195. ttContext.functionsStackDeltas[funcId] =
  22196. stack.length - pc.stackTop;
  22197. }
  22198. } else if (op === 0x89) { // IDEF - instruction definition
  22199. if (inFDEF || inELSE) {
  22200. warn('TT: nested IDEFs not allowed');
  22201. tooComplexToFollowFunctions = true;
  22202. }
  22203. inFDEF = true;
  22204. // recording it as a function to track ENDF
  22205. lastDeff = i;
  22206. } else if (op === 0x58) { // IF
  22207. ++ifLevel;
  22208. } else if (op === 0x1B) { // ELSE
  22209. inELSE = ifLevel;
  22210. } else if (op === 0x59) { // EIF
  22211. if (inELSE === ifLevel) {
  22212. inELSE = 0;
  22213. }
  22214. --ifLevel;
  22215. } else if (op === 0x1C) { // JMPR
  22216. if (!inFDEF && !inELSE) {
  22217. var offset = stack[stack.length - 1];
  22218. // only jumping forward to prevent infinite loop
  22219. if (offset > 0) {
  22220. i += offset - 1;
  22221. }
  22222. }
  22223. }
  22224. // Adjusting stack not extactly, but just enough to get function id
  22225. if (!inFDEF && !inELSE) {
  22226. var stackDelta = op <= 0x8E ? TTOpsStackDeltas[op] :
  22227. op >= 0xC0 && op <= 0xDF ? -1 : op >= 0xE0 ? -2 : 0;
  22228. if (op >= 0x71 && op <= 0x75) {
  22229. n = stack.pop();
  22230. if (n === n) {
  22231. stackDelta = -n * 2;
  22232. }
  22233. }
  22234. while (stackDelta < 0 && stack.length > 0) {
  22235. stack.pop();
  22236. stackDelta++;
  22237. }
  22238. while (stackDelta > 0) {
  22239. stack.push(NaN); // pushing any number into stack
  22240. stackDelta--;
  22241. }
  22242. }
  22243. }
  22244. ttContext.tooComplexToFollowFunctions = tooComplexToFollowFunctions;
  22245. var content = [data];
  22246. if (i > data.length) {
  22247. content.push(new Uint8Array(i - data.length));
  22248. }
  22249. if (lastDeff > lastEndf) {
  22250. warn('TT: complementing a missing function tail');
  22251. // new function definition started, but not finished
  22252. // complete function by [CLEAR, ENDF]
  22253. content.push(new Uint8Array([0x22, 0x2D]));
  22254. }
  22255. foldTTTable(table, content);
  22256. }
  22257. function checkInvalidFunctions(ttContext, maxFunctionDefs) {
  22258. if (ttContext.tooComplexToFollowFunctions) {
  22259. return;
  22260. }
  22261. if (ttContext.functionsDefined.length > maxFunctionDefs) {
  22262. warn('TT: more functions defined than expected');
  22263. ttContext.hintsValid = false;
  22264. return;
  22265. }
  22266. for (var j = 0, jj = ttContext.functionsUsed.length; j < jj; j++) {
  22267. if (j > maxFunctionDefs) {
  22268. warn('TT: invalid function id: ' + j);
  22269. ttContext.hintsValid = false;
  22270. return;
  22271. }
  22272. if (ttContext.functionsUsed[j] && !ttContext.functionsDefined[j]) {
  22273. warn('TT: undefined function: ' + j);
  22274. ttContext.hintsValid = false;
  22275. return;
  22276. }
  22277. }
  22278. }
  22279. function foldTTTable(table, content) {
  22280. if (content.length > 1) {
  22281. // concatenating the content items
  22282. var newLength = 0;
  22283. var j, jj;
  22284. for (j = 0, jj = content.length; j < jj; j++) {
  22285. newLength += content[j].length;
  22286. }
  22287. newLength = (newLength + 3) & ~3;
  22288. var result = new Uint8Array(newLength);
  22289. var pos = 0;
  22290. for (j = 0, jj = content.length; j < jj; j++) {
  22291. result.set(content[j], pos);
  22292. pos += content[j].length;
  22293. }
  22294. table.data = result;
  22295. table.length = newLength;
  22296. }
  22297. }
  22298. function sanitizeTTPrograms(fpgm, prep, cvt) {
  22299. var ttContext = {
  22300. functionsDefined: [],
  22301. functionsUsed: [],
  22302. functionsStackDeltas: [],
  22303. tooComplexToFollowFunctions: false,
  22304. hintsValid: true
  22305. };
  22306. if (fpgm) {
  22307. sanitizeTTProgram(fpgm, ttContext);
  22308. }
  22309. if (prep) {
  22310. sanitizeTTProgram(prep, ttContext);
  22311. }
  22312. if (fpgm) {
  22313. checkInvalidFunctions(ttContext, maxFunctionDefs);
  22314. }
  22315. if (cvt && (cvt.length & 1)) {
  22316. var cvtData = new Uint8Array(cvt.length + 1);
  22317. cvtData.set(cvt.data);
  22318. cvt.data = cvtData;
  22319. }
  22320. return ttContext.hintsValid;
  22321. }
  22322. // The following steps modify the original font data, making copy
  22323. font = new Stream(new Uint8Array(font.getBytes()));
  22324. var VALID_TABLES = ['OS/2', 'cmap', 'head', 'hhea', 'hmtx', 'maxp',
  22325. 'name', 'post', 'loca', 'glyf', 'fpgm', 'prep', 'cvt ', 'CFF '];
  22326. var header = readOpenTypeHeader(font);
  22327. var numTables = header.numTables;
  22328. var cff, cffFile;
  22329. var tables = { 'OS/2': null, cmap: null, head: null, hhea: null,
  22330. hmtx: null, maxp: null, name: null, post: null };
  22331. var table, tableData;
  22332. for (var i = 0; i < numTables; i++) {
  22333. table = readTableEntry(font);
  22334. if (VALID_TABLES.indexOf(table.tag) < 0) {
  22335. continue; // skipping table if it's not a required or optional table
  22336. }
  22337. if (table.length === 0) {
  22338. continue; // skipping empty tables
  22339. }
  22340. tables[table.tag] = table;
  22341. }
  22342. var isTrueType = !tables['CFF '];
  22343. if (!isTrueType) {
  22344. // OpenType font
  22345. if (!tables.head || !tables.hhea || !tables.maxp || !tables.post) {
  22346. // no major tables: throwing everything at CFFFont
  22347. cffFile = new Stream(tables['CFF '].data);
  22348. cff = new CFFFont(cffFile, properties);
  22349. return this.convert(name, cff, properties);
  22350. }
  22351. delete tables.glyf;
  22352. delete tables.loca;
  22353. delete tables.fpgm;
  22354. delete tables.prep;
  22355. delete tables['cvt '];
  22356. this.isOpenType = true;
  22357. } else {
  22358. if (!tables.glyf || !tables.loca) {
  22359. error('Required "glyf" or "loca" tables are not found');
  22360. }
  22361. this.isOpenType = false;
  22362. }
  22363. if (!tables.maxp) {
  22364. error('Required "maxp" table is not found');
  22365. }
  22366. font.pos = (font.start || 0) + tables.maxp.offset;
  22367. var version = font.getInt32();
  22368. var numGlyphs = font.getUint16();
  22369. var maxFunctionDefs = 0;
  22370. if (version >= 0x00010000 && tables.maxp.length >= 22) {
  22371. // maxZones can be invalid
  22372. font.pos += 8;
  22373. var maxZones = font.getUint16();
  22374. if (maxZones > 2) { // reset to 2 if font has invalid maxZones
  22375. tables.maxp.data[14] = 0;
  22376. tables.maxp.data[15] = 2;
  22377. }
  22378. font.pos += 4;
  22379. maxFunctionDefs = font.getUint16();
  22380. }
  22381. var dupFirstEntry = false;
  22382. if (properties.type == 'CIDFontType2' && properties.toUnicode &&
  22383. properties.toUnicode[0] > '\u0000') {
  22384. // oracle's defect (see 3427), duplicating first entry
  22385. dupFirstEntry = true;
  22386. numGlyphs++;
  22387. tables.maxp.data[4] = numGlyphs >> 8;
  22388. tables.maxp.data[5] = numGlyphs & 255;
  22389. }
  22390. var hintsValid = sanitizeTTPrograms(tables.fpgm, tables.prep,
  22391. tables['cvt '], maxFunctionDefs);
  22392. if (!hintsValid) {
  22393. delete tables.fpgm;
  22394. delete tables.prep;
  22395. delete tables['cvt '];
  22396. }
  22397. // Tables needs to be written by ascendant alphabetic order
  22398. var tablesNames = Object.keys(tables);
  22399. tablesNames.sort();
  22400. numTables = tablesNames.length;
  22401. // header and new offsets. Table entry information is appended to the
  22402. // end of file. The virtualOffset represents where to put the actual
  22403. // data of a particular table;
  22404. var ttf = {
  22405. file: '',
  22406. virtualOffset: numTables * (4 * 4)
  22407. };
  22408. // The new numbers of tables will be the last one plus the num
  22409. // of missing tables
  22410. createOpenTypeHeader(header.version, ttf, numTables);
  22411. // Ensure the hmtx table contains the advance width and
  22412. // sidebearings information for numGlyphs in the maxp table
  22413. sanitizeMetrics(font, tables.hhea, tables.hmtx, numGlyphs);
  22414. if (!tables.head) {
  22415. error('Required "head" table is not found');
  22416. }
  22417. sanitizeHead(tables.head, numGlyphs, isTrueType ? tables.loca.length : 0);
  22418. if (isTrueType) {
  22419. var isGlyphLocationsLong = int16(tables.head.data[50],
  22420. tables.head.data[51]);
  22421. sanitizeGlyphLocations(tables.loca, tables.glyf, numGlyphs,
  22422. isGlyphLocationsLong, hintsValid, dupFirstEntry);
  22423. }
  22424. if (!tables.hhea) {
  22425. error('Required "hhea" table is not found');
  22426. }
  22427. // Sanitizer reduces the glyph advanceWidth to the maxAdvanceWidth
  22428. // Sometimes it's 0. That needs to be fixed
  22429. if (tables.hhea.data[10] === 0 && tables.hhea.data[11] === 0) {
  22430. tables.hhea.data[10] = 0xFF;
  22431. tables.hhea.data[11] = 0xFF;
  22432. }
  22433. // The 'post' table has glyphs names.
  22434. if (tables.post) {
  22435. var valid = readPostScriptTable(tables.post, properties, numGlyphs);
  22436. if (!valid) {
  22437. tables.post = null;
  22438. }
  22439. }
  22440. var charCodeToGlyphId = [], charCode;
  22441. if (properties.type === 'CIDFontType2') {
  22442. var cidToGidMap = properties.cidToGidMap || [];
  22443. var cidToGidMapLength = cidToGidMap.length;
  22444. var cMap = properties.cMap.map;
  22445. for (charCode in cMap) {
  22446. charCode |= 0;
  22447. var cid = cMap[charCode];
  22448. assert(cid.length === 1, 'Max size of CID is 65,535');
  22449. cid = cid.charCodeAt(0);
  22450. var glyphId = -1;
  22451. if (cidToGidMapLength === 0) {
  22452. glyphId = charCode;
  22453. } else if (cidToGidMap[cid] !== undefined) {
  22454. glyphId = cidToGidMap[cid];
  22455. }
  22456. if (glyphId >= 0 && glyphId < numGlyphs) {
  22457. charCodeToGlyphId[charCode] = glyphId;
  22458. }
  22459. }
  22460. if (dupFirstEntry) {
  22461. charCodeToGlyphId[0] = numGlyphs - 1;
  22462. }
  22463. } else {
  22464. // Most of the following logic in this code branch is based on the
  22465. // 9.6.6.4 of the PDF spec.
  22466. var cmapTable = readCmapTable(tables.cmap, font, this.isSymbolicFont);
  22467. var cmapPlatformId = cmapTable.platformId;
  22468. var cmapEncodingId = cmapTable.encodingId;
  22469. var cmapMappings = cmapTable.mappings;
  22470. var cmapMappingsLength = cmapMappings.length;
  22471. var hasEncoding = properties.differences.length ||
  22472. !!properties.baseEncodingName;
  22473. // The spec seems to imply that if the font is symbolic the encoding
  22474. // should be ignored, this doesn't appear to work for 'preistabelle.pdf'
  22475. // where the the font is symbolic and it has an encoding.
  22476. if (hasEncoding &&
  22477. (cmapPlatformId === 3 && cmapEncodingId === 1 ||
  22478. cmapPlatformId === 1 && cmapEncodingId === 0)) {
  22479. var baseEncoding = [];
  22480. if (properties.baseEncodingName === 'MacRomanEncoding' ||
  22481. properties.baseEncodingName === 'WinAnsiEncoding') {
  22482. baseEncoding = Encodings[properties.baseEncodingName];
  22483. }
  22484. for (charCode = 0; charCode < 256; charCode++) {
  22485. var glyphName;
  22486. if (this.differences && charCode in this.differences) {
  22487. glyphName = this.differences[charCode];
  22488. } else if (charCode in baseEncoding &&
  22489. baseEncoding[charCode] !== '') {
  22490. glyphName = baseEncoding[charCode];
  22491. } else {
  22492. glyphName = Encodings.StandardEncoding[charCode];
  22493. }
  22494. if (!glyphName) {
  22495. continue;
  22496. }
  22497. var unicodeOrCharCode;
  22498. if (cmapPlatformId === 3 && cmapEncodingId === 1) {
  22499. unicodeOrCharCode = GlyphsUnicode[glyphName];
  22500. } else if (cmapPlatformId === 1 && cmapEncodingId === 0) {
  22501. // TODO: the encoding needs to be updated with mac os table.
  22502. unicodeOrCharCode = Encodings.MacRomanEncoding.indexOf(glyphName);
  22503. }
  22504. var found = false;
  22505. for (i = 0; i < cmapMappingsLength; ++i) {
  22506. if (cmapMappings[i].charCode === unicodeOrCharCode) {
  22507. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  22508. found = true;
  22509. break;
  22510. }
  22511. }
  22512. if (!found && properties.glyphNames) {
  22513. // Try to map using the post table. There are currently no known
  22514. // pdfs that this fixes.
  22515. glyphId = properties.glyphNames.indexOf(glyphName);
  22516. if (glyphId > 0) {
  22517. charCodeToGlyphId[charCode] = glyphId;
  22518. }
  22519. }
  22520. }
  22521. } else {
  22522. // For (3, 0) cmap tables:
  22523. // The charcode key being stored in charCodeToGlyphId is the lower
  22524. // byte of the two-byte charcodes of the cmap table since according to
  22525. // the spec: 'each byte from the string shall be prepended with the
  22526. // high byte of the range [of charcodes in the cmap table], to form
  22527. // a two-byte character, which shall be used to select the
  22528. // associated glyph description from the subtable'.
  22529. //
  22530. // For (1, 0) cmap tables:
  22531. // 'single bytes from the string shall be used to look up the
  22532. // associated glyph descriptions from the subtable'. This means
  22533. // charcodes in the cmap will be single bytes, so no-op since
  22534. // glyph.charCode & 0xFF === glyph.charCode
  22535. for (i = 0; i < cmapMappingsLength; ++i) {
  22536. charCode = cmapMappings[i].charCode & 0xFF;
  22537. charCodeToGlyphId[charCode] = cmapMappings[i].glyphId;
  22538. }
  22539. }
  22540. }
  22541. if (charCodeToGlyphId.length === 0) {
  22542. // defines at least one glyph
  22543. charCodeToGlyphId[0] = 0;
  22544. }
  22545. // Converting glyphs and ids into font's cmap table
  22546. var newMapping = adjustMapping(charCodeToGlyphId, properties);
  22547. this.toFontChar = newMapping.toFontChar;
  22548. tables.cmap = {
  22549. tag: 'cmap',
  22550. data: createCmapTable(newMapping.charCodeToGlyphId)
  22551. };
  22552. if (!tables['OS/2'] || !validateOS2Table(tables['OS/2'])) {
  22553. // extract some more font properties from the OpenType head and
  22554. // hhea tables; yMin and descent value are always negative
  22555. var override = {
  22556. unitsPerEm: int16(tables.head.data[18], tables.head.data[19]),
  22557. yMax: int16(tables.head.data[42], tables.head.data[43]),
  22558. yMin: int16(tables.head.data[38], tables.head.data[39]) - 0x10000,
  22559. ascent: int16(tables.hhea.data[4], tables.hhea.data[5]),
  22560. descent: int16(tables.hhea.data[6], tables.hhea.data[7]) - 0x10000
  22561. };
  22562. tables['OS/2'] = {
  22563. tag: 'OS/2',
  22564. data: stringToArray(createOS2Table(properties,
  22565. newMapping.charCodeToGlyphId,
  22566. override))
  22567. };
  22568. }
  22569. // Rewrite the 'post' table if needed
  22570. if (!tables.post) {
  22571. tables.post = {
  22572. tag: 'post',
  22573. data: stringToArray(createPostTable(properties))
  22574. };
  22575. }
  22576. if (!isTrueType) {
  22577. try {
  22578. // Trying to repair CFF file
  22579. cffFile = new Stream(tables['CFF '].data);
  22580. var parser = new CFFParser(cffFile, properties);
  22581. cff = parser.parse();
  22582. var compiler = new CFFCompiler(cff);
  22583. tables['CFF '].data = compiler.compile();
  22584. } catch (e) {
  22585. warn('Failed to compile font ' + properties.loadedName);
  22586. }
  22587. }
  22588. // Re-creating 'name' table
  22589. if (!tables.name) {
  22590. tables.name = {
  22591. tag: 'name',
  22592. data: stringToArray(createNameTable(this.name))
  22593. };
  22594. } else {
  22595. // ... using existing 'name' table as prototype
  22596. var namePrototype = readNameTable(tables.name);
  22597. tables.name.data = stringToArray(createNameTable(name, namePrototype));
  22598. }
  22599. // rewrite the tables but tweak offsets
  22600. for (i = 0; i < numTables; i++) {
  22601. table = tables[tablesNames[i]];
  22602. var data = [];
  22603. tableData = table.data;
  22604. for (var j = 0, jj = tableData.length; j < jj; j++) {
  22605. data.push(tableData[j]);
  22606. }
  22607. createTableEntry(ttf, table.tag, data);
  22608. }
  22609. // Add the table datas
  22610. for (i = 0; i < numTables; i++) {
  22611. table = tables[tablesNames[i]];
  22612. tableData = table.data;
  22613. ttf.file += bytesToString(new Uint8Array(tableData));
  22614. // 4-byte aligned data
  22615. while (ttf.file.length & 3) {
  22616. ttf.file += String.fromCharCode(0);
  22617. }
  22618. }
  22619. return stringToArray(ttf.file);
  22620. },
  22621. convert: function Font_convert(fontName, font, properties) {
  22622. // The offsets object holds at the same time a representation of where
  22623. // to write the table entry information about a table and another offset
  22624. // representing the offset where to draw the actual data of a particular
  22625. // table
  22626. var otf = {
  22627. file: '',
  22628. virtualOffset: 9 * (4 * 4)
  22629. };
  22630. createOpenTypeHeader('\x4F\x54\x54\x4F', otf, 9);
  22631. // TODO: Check the charstring widths to determine this.
  22632. properties.fixedPitch = false;
  22633. var mapping = font.getGlyphMapping(properties);
  22634. var newMapping = adjustMapping(mapping, properties);
  22635. this.toFontChar = newMapping.toFontChar;
  22636. var numGlyphs = font.numGlyphs;
  22637. function getCharCode(charCodeToGlyphId, glyphId, addMap) {
  22638. for (var charCode in charCodeToGlyphId) {
  22639. if (glyphId === charCodeToGlyphId[charCode]) {
  22640. return charCode | 0;
  22641. }
  22642. }
  22643. if (addMap) {
  22644. newMapping.charCodeToGlyphId[newMapping.nextAvailableFontCharCode] =
  22645. glyphId;
  22646. return newMapping.nextAvailableFontCharCode++;
  22647. }
  22648. return null;
  22649. }
  22650. var seacs = font.seacs;
  22651. if (SEAC_ANALYSIS_ENABLED && seacs && seacs.length) {
  22652. var matrix = properties.fontMatrix || FONT_IDENTITY_MATRIX;
  22653. var charset = font.getCharset();
  22654. var seacMap = Object.create(null);
  22655. for (var glyphId in seacs) {
  22656. glyphId |= 0;
  22657. var seac = seacs[glyphId];
  22658. var baseGlyphName = Encodings.StandardEncoding[seac[2]];
  22659. var accentGlyphName = Encodings.StandardEncoding[seac[3]];
  22660. var baseGlyphId = charset.indexOf(baseGlyphName);
  22661. var accentGlyphId = charset.indexOf(accentGlyphName);
  22662. if (baseGlyphId < 0 || accentGlyphId < 0) {
  22663. continue;
  22664. }
  22665. var accentOffset = {
  22666. x: seac[0] * matrix[0] + seac[1] * matrix[2] + matrix[4],
  22667. y: seac[0] * matrix[1] + seac[1] * matrix[3] + matrix[5]
  22668. };
  22669. var charCode = getCharCode(mapping, glyphId);
  22670. if (charCode === null) {
  22671. // There's no point in mapping it if the char code was never mapped
  22672. // to begin with.
  22673. continue;
  22674. }
  22675. // Find a fontCharCode that maps to the base and accent glyphs. If one
  22676. // doesn't exists, create it.
  22677. var charCodeToGlyphId = newMapping.charCodeToGlyphId;
  22678. var baseFontCharCode = getCharCode(charCodeToGlyphId, baseGlyphId,
  22679. true);
  22680. var accentFontCharCode = getCharCode(charCodeToGlyphId, accentGlyphId,
  22681. true);
  22682. seacMap[charCode] = {
  22683. baseFontCharCode: baseFontCharCode,
  22684. accentFontCharCode: accentFontCharCode,
  22685. accentOffset: accentOffset
  22686. };
  22687. }
  22688. properties.seacMap = seacMap;
  22689. }
  22690. var unitsPerEm = 1 / (properties.fontMatrix || FONT_IDENTITY_MATRIX)[0];
  22691. var fields = {
  22692. // PostScript Font Program
  22693. 'CFF ': font.data,
  22694. // OS/2 and Windows Specific metrics
  22695. 'OS/2': stringToArray(createOS2Table(properties,
  22696. newMapping.charCodeToGlyphId)),
  22697. // Character to glyphs mapping
  22698. 'cmap': createCmapTable(newMapping.charCodeToGlyphId),
  22699. // Font header
  22700. 'head': (function fontFieldsHead() {
  22701. return stringToArray(
  22702. '\x00\x01\x00\x00' + // Version number
  22703. '\x00\x00\x10\x00' + // fontRevision
  22704. '\x00\x00\x00\x00' + // checksumAdjustement
  22705. '\x5F\x0F\x3C\xF5' + // magicNumber
  22706. '\x00\x00' + // Flags
  22707. safeString16(unitsPerEm) + // unitsPerEM
  22708. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // creation date
  22709. '\x00\x00\x00\x00\x9e\x0b\x7e\x27' + // modifification date
  22710. '\x00\x00' + // xMin
  22711. safeString16(properties.descent) + // yMin
  22712. '\x0F\xFF' + // xMax
  22713. safeString16(properties.ascent) + // yMax
  22714. string16(properties.italicAngle ? 2 : 0) + // macStyle
  22715. '\x00\x11' + // lowestRecPPEM
  22716. '\x00\x00' + // fontDirectionHint
  22717. '\x00\x00' + // indexToLocFormat
  22718. '\x00\x00'); // glyphDataFormat
  22719. })(),
  22720. // Horizontal header
  22721. 'hhea': (function fontFieldsHhea() {
  22722. return stringToArray(
  22723. '\x00\x01\x00\x00' + // Version number
  22724. safeString16(properties.ascent) + // Typographic Ascent
  22725. safeString16(properties.descent) + // Typographic Descent
  22726. '\x00\x00' + // Line Gap
  22727. '\xFF\xFF' + // advanceWidthMax
  22728. '\x00\x00' + // minLeftSidebearing
  22729. '\x00\x00' + // minRightSidebearing
  22730. '\x00\x00' + // xMaxExtent
  22731. safeString16(properties.capHeight) + // caretSlopeRise
  22732. safeString16(Math.tan(properties.italicAngle) *
  22733. properties.xHeight) + // caretSlopeRun
  22734. '\x00\x00' + // caretOffset
  22735. '\x00\x00' + // -reserved-
  22736. '\x00\x00' + // -reserved-
  22737. '\x00\x00' + // -reserved-
  22738. '\x00\x00' + // -reserved-
  22739. '\x00\x00' + // metricDataFormat
  22740. string16(numGlyphs)); // Number of HMetrics
  22741. })(),
  22742. // Horizontal metrics
  22743. 'hmtx': (function fontFieldsHmtx() {
  22744. var charstrings = font.charstrings;
  22745. var hmtx = '\x00\x00\x00\x00'; // Fake .notdef
  22746. for (var i = 1, ii = numGlyphs; i < ii; i++) {
  22747. // TODO: For CFF fonts the width should technically match th x in
  22748. // the glyph, but it doesn't seem to matter.
  22749. var charstring = charstrings ? charstrings[i - 1] : {};
  22750. var width = 'width' in charstring ? charstring.width : 0;
  22751. hmtx += string16(width) + string16(0);
  22752. }
  22753. return stringToArray(hmtx);
  22754. })(),
  22755. // Maximum profile
  22756. 'maxp': (function fontFieldsMaxp() {
  22757. return stringToArray(
  22758. '\x00\x00\x50\x00' + // Version number
  22759. string16(numGlyphs)); // Num of glyphs
  22760. })(),
  22761. // Naming tables
  22762. 'name': stringToArray(createNameTable(fontName)),
  22763. // PostScript informations
  22764. 'post': stringToArray(createPostTable(properties))
  22765. };
  22766. var field;
  22767. for (field in fields) {
  22768. createTableEntry(otf, field, fields[field]);
  22769. }
  22770. for (field in fields) {
  22771. var table = fields[field];
  22772. otf.file += bytesToString(new Uint8Array(table));
  22773. }
  22774. return stringToArray(otf.file);
  22775. },
  22776. /**
  22777. * Builds a char code to unicode map based on section 9.10 of the spec.
  22778. * @param {Object} properties Font properties object.
  22779. * @return {Object} Has two properties: 'toUnicode' which maps char codes to
  22780. * unicode (string) values and 'isIdentity' which is true if an identity map
  22781. * is used.
  22782. */
  22783. buildToUnicode: function Font_buildToUnicode(properties) {
  22784. var map = {
  22785. isIdentity: false,
  22786. toUnicode: null
  22787. };
  22788. // Section 9.10.2 Mapping Character Codes to Unicode Values
  22789. if (properties.toUnicode && properties.toUnicode.length !== 0) {
  22790. map.toUnicode = properties.toUnicode;
  22791. return map;
  22792. }
  22793. // According to the spec if the font is a simple font we should only map
  22794. // to unicode if the base encoding is MacRoman, MacExpert, or WinAnsi or
  22795. // the differences array only contains adobe standard or symbol set names,
  22796. // in pratice it seems better to always try to create a toUnicode
  22797. // map based of the default encoding.
  22798. var toUnicode, charcode;
  22799. if (!properties.composite /* is simple font */) {
  22800. toUnicode = [];
  22801. var encoding = properties.defaultEncoding.slice();
  22802. // Merge in the differences array.
  22803. var differences = properties.differences;
  22804. for (charcode in differences) {
  22805. encoding[charcode] = differences[charcode];
  22806. }
  22807. for (charcode in encoding) {
  22808. // a) Map the character code to a character name.
  22809. var glyphName = encoding[charcode];
  22810. // b) Look up the character name in the Adobe Glyph List (see the
  22811. // Bibliography) to obtain the corresponding Unicode value.
  22812. if (glyphName === '' || !(glyphName in GlyphsUnicode)) {
  22813. // (undocumented) c) Few heuristics to recognize unknown glyphs
  22814. // NOTE: Adobe Reader does not do this step, but OSX Preview does
  22815. var code;
  22816. // Gxx glyph
  22817. if (glyphName.length === 3 &&
  22818. glyphName[0] === 'G' &&
  22819. (code = parseInt(glyphName.substr(1), 16))) {
  22820. toUnicode[charcode] = String.fromCharCode(code);
  22821. }
  22822. // g00xx glyph
  22823. if (glyphName.length === 5 &&
  22824. glyphName[0] === 'g' &&
  22825. (code = parseInt(glyphName.substr(1), 16))) {
  22826. toUnicode[charcode] = String.fromCharCode(code);
  22827. }
  22828. // Cddd glyph
  22829. if (glyphName.length >= 3 &&
  22830. glyphName[0] === 'C' &&
  22831. (code = +glyphName.substr(1))) {
  22832. toUnicode[charcode] = String.fromCharCode(code);
  22833. }
  22834. continue;
  22835. }
  22836. toUnicode[charcode] = String.fromCharCode(GlyphsUnicode[glyphName]);
  22837. }
  22838. map.toUnicode = toUnicode;
  22839. return map;
  22840. }
  22841. // If the font is a composite font that uses one of the predefined CMaps
  22842. // listed in Table 118 (except Identity–H and Identity–V) or whose
  22843. // descendant CIDFont uses the Adobe-GB1, Adobe-CNS1, Adobe-Japan1, or
  22844. // Adobe-Korea1 character collection:
  22845. if (properties.composite && (
  22846. (properties.cMap.builtInCMap &&
  22847. !(properties.cMap instanceof IdentityCMap)) ||
  22848. (properties.cidSystemInfo.registry === 'Adobe' &&
  22849. (properties.cidSystemInfo.ordering === 'GB1' ||
  22850. properties.cidSystemInfo.ordering === 'CNS1' ||
  22851. properties.cidSystemInfo.ordering === 'Japan1' ||
  22852. properties.cidSystemInfo.ordering === 'Korea1')))) {
  22853. // Then:
  22854. // a) Map the character code to a character identifier (CID) according
  22855. // to the font’s CMap.
  22856. // b) Obtain the registry and ordering of the character collection used
  22857. // by the font’s CMap (for example, Adobe and Japan1) from its
  22858. // CIDSystemInfo dictionary.
  22859. var registry = properties.cidSystemInfo.registry;
  22860. var ordering = properties.cidSystemInfo.ordering;
  22861. // c) Construct a second CMap name by concatenating the registry and
  22862. // ordering obtained in step (b) in the format registry–ordering–UCS2
  22863. // (for example, Adobe–Japan1–UCS2).
  22864. var ucs2CMapName = new Name(registry + '-' + ordering + '-UCS2');
  22865. // d) Obtain the CMap with the name constructed in step (c) (available
  22866. // from the ASN Web site; see the Bibliography).
  22867. var ucs2CMap = CMapFactory.create(ucs2CMapName,
  22868. { url: PDFJS.cMapUrl, packed: PDFJS.cMapPacked }, null);
  22869. var cMap = properties.cMap;
  22870. toUnicode = [];
  22871. for (charcode in cMap.map) {
  22872. var cid = cMap.map[charcode];
  22873. assert(cid.length === 1, 'Max size of CID is 65,535');
  22874. // e) Map the CID obtained in step (a) according to the CMap obtained
  22875. // in step (d), producing a Unicode value.
  22876. var ucs2 = ucs2CMap.map[cid.charCodeAt(0)];
  22877. if (!ucs2) {
  22878. continue;
  22879. }
  22880. toUnicode[charcode] = String.fromCharCode((ucs2.charCodeAt(0) << 8) +
  22881. ucs2.charCodeAt(1));
  22882. }
  22883. map.toUnicode = toUnicode;
  22884. return map;
  22885. }
  22886. // The viewer's choice, just use an identity map.
  22887. toUnicode = [];
  22888. var firstChar = properties.firstChar, lastChar = properties.lastChar;
  22889. for (var i = firstChar; i <= lastChar; i++) {
  22890. toUnicode[i] = String.fromCharCode(i);
  22891. }
  22892. map.isIdentity = true;
  22893. map.toUnicode = toUnicode;
  22894. return map;
  22895. },
  22896. get spaceWidth() {
  22897. if ('_shadowWidth' in this) {
  22898. return this._shadowWidth;
  22899. }
  22900. // trying to estimate space character width
  22901. var possibleSpaceReplacements = ['space', 'minus', 'one', 'i'];
  22902. var width;
  22903. for (var i = 0, ii = possibleSpaceReplacements.length; i < ii; i++) {
  22904. var glyphName = possibleSpaceReplacements[i];
  22905. // if possible, getting width by glyph name
  22906. if (glyphName in this.widths) {
  22907. width = this.widths[glyphName];
  22908. break;
  22909. }
  22910. var glyphUnicode = GlyphsUnicode[glyphName];
  22911. // finding the charcode via unicodeToCID map
  22912. var charcode = 0;
  22913. if (this.composite) {
  22914. if (glyphUnicode in this.cMap.map) {
  22915. charcode = this.cMap.lookup(glyphUnicode).charCodeAt(0);
  22916. }
  22917. }
  22918. // ... via toUnicode map
  22919. if (!charcode && 'toUnicode' in this) {
  22920. charcode = this.toUnicode.indexOf(glyphUnicode);
  22921. }
  22922. // setting it to unicode if negative or undefined
  22923. if (charcode <= 0) {
  22924. charcode = glyphUnicode;
  22925. }
  22926. // trying to get width via charcode
  22927. width = this.widths[charcode];
  22928. if (width) {
  22929. break; // the non-zero width found
  22930. }
  22931. }
  22932. width = width || this.defaultWidth;
  22933. // Do not shadow the property here. See discussion:
  22934. // https://github.com/mozilla/pdf.js/pull/2127#discussion_r1662280
  22935. this._shadowWidth = width;
  22936. return width;
  22937. },
  22938. charToGlyph: function Font_charToGlyph(charcode) {
  22939. var fontCharCode, width, operatorListId;
  22940. var widthCode = charcode;
  22941. if (this.cMap && charcode in this.cMap.map) {
  22942. widthCode = this.cMap.map[charcode].charCodeAt(0);
  22943. }
  22944. width = this.widths[widthCode];
  22945. width = isNum(width) ? width : this.defaultWidth;
  22946. var vmetric = this.vmetrics && this.vmetrics[widthCode];
  22947. var unicode = this.toUnicode[charcode] || charcode;
  22948. if (typeof unicode === 'number') {
  22949. unicode = String.fromCharCode(unicode);
  22950. }
  22951. // First try the toFontChar map, if it's not there then try falling
  22952. // back to the char code.
  22953. fontCharCode = this.toFontChar[charcode] || charcode;
  22954. if (this.missingFile) {
  22955. fontCharCode = mapSpecialUnicodeValues(fontCharCode);
  22956. }
  22957. if (this.isType3Font) {
  22958. // Font char code in this case is actually a glyph name.
  22959. operatorListId = fontCharCode;
  22960. }
  22961. var accent = null;
  22962. if (this.seacMap && this.seacMap[charcode]) {
  22963. var seac = this.seacMap[charcode];
  22964. fontCharCode = seac.baseFontCharCode;
  22965. accent = {
  22966. fontChar: String.fromCharCode(seac.accentFontCharCode),
  22967. offset: seac.accentOffset
  22968. };
  22969. }
  22970. var fontChar = String.fromCharCode(fontCharCode);
  22971. var glyph = this.glyphCache[charcode];
  22972. if (!glyph ||
  22973. !glyph.matchesForCache(fontChar, unicode, accent, width, vmetric,
  22974. operatorListId)) {
  22975. glyph = new Glyph(fontChar, unicode, accent, width, vmetric,
  22976. operatorListId);
  22977. this.glyphCache[charcode] = glyph;
  22978. }
  22979. return glyph;
  22980. },
  22981. charsToGlyphs: function Font_charsToGlyphs(chars) {
  22982. var charsCache = this.charsCache;
  22983. var glyphs, glyph, charcode;
  22984. // if we translated this string before, just grab it from the cache
  22985. if (charsCache) {
  22986. glyphs = charsCache[chars];
  22987. if (glyphs) {
  22988. return glyphs;
  22989. }
  22990. }
  22991. // lazily create the translation cache
  22992. if (!charsCache) {
  22993. charsCache = this.charsCache = Object.create(null);
  22994. }
  22995. glyphs = [];
  22996. var charsCacheKey = chars;
  22997. var i = 0, ii;
  22998. if (this.cMap) {
  22999. // composite fonts have multi-byte strings convert the string from
  23000. // single-byte to multi-byte
  23001. while (i < chars.length) {
  23002. var c = this.cMap.readCharCode(chars, i);
  23003. charcode = c[0];
  23004. var length = c[1];
  23005. i += length;
  23006. glyph = this.charToGlyph(charcode);
  23007. glyphs.push(glyph);
  23008. // placing null after each word break charcode (ASCII SPACE)
  23009. // Ignore occurences of 0x20 in multiple-byte codes.
  23010. if (length === 1 && chars.charCodeAt(i - 1) === 0x20) {
  23011. glyphs.push(null);
  23012. }
  23013. }
  23014. } else {
  23015. for (i = 0, ii = chars.length; i < ii; ++i) {
  23016. charcode = chars.charCodeAt(i);
  23017. glyph = this.charToGlyph(charcode);
  23018. glyphs.push(glyph);
  23019. if (charcode == 0x20) {
  23020. glyphs.push(null);
  23021. }
  23022. }
  23023. }
  23024. // Enter the translated string into the cache
  23025. return (charsCache[charsCacheKey] = glyphs);
  23026. }
  23027. };
  23028. return Font;
  23029. })();
  23030. var ErrorFont = (function ErrorFontClosure() {
  23031. function ErrorFont(error) {
  23032. this.error = error;
  23033. this.loadedName = 'g_font_error';
  23034. this.loading = false;
  23035. }
  23036. ErrorFont.prototype = {
  23037. charsToGlyphs: function ErrorFont_charsToGlyphs() {
  23038. return [];
  23039. },
  23040. exportData: function ErrorFont_exportData() {
  23041. return {error: this.error};
  23042. }
  23043. };
  23044. return ErrorFont;
  23045. })();
  23046. /**
  23047. * Shared logic for building a char code to glyph id mapping for Type1 and
  23048. * simple CFF fonts. See section 9.6.6.2 of the spec.
  23049. * @param {Object} properties Font properties object.
  23050. * @param {Object} builtInEncoding The encoding contained within the actual font
  23051. * data.
  23052. * @param {Array} Array of glyph names where the index is the glyph ID.
  23053. * @returns {Object} A char code to glyph ID map.
  23054. */
  23055. function type1FontGlyphMapping(properties, builtInEncoding, glyphNames) {
  23056. var charCodeToGlyphId = Object.create(null);
  23057. var glyphId, charCode, baseEncoding;
  23058. if (properties.baseEncodingName) {
  23059. // If a valid base encoding name was used, the mapping is initialized with
  23060. // that.
  23061. baseEncoding = Encodings[properties.baseEncodingName];
  23062. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  23063. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  23064. if (glyphId >= 0) {
  23065. charCodeToGlyphId[charCode] = glyphId;
  23066. }
  23067. }
  23068. } else if (!!(properties.flags & FontFlags.Symbolic)) {
  23069. // For a symbolic font the encoding should be the fonts built-in
  23070. // encoding.
  23071. for (charCode in builtInEncoding) {
  23072. charCodeToGlyphId[charCode] = builtInEncoding[charCode];
  23073. }
  23074. } else {
  23075. // For non-symbolic fonts that don't have a base encoding the standard
  23076. // encoding should be used.
  23077. baseEncoding = Encodings.StandardEncoding;
  23078. for (charCode = 0; charCode < baseEncoding.length; charCode++) {
  23079. glyphId = glyphNames.indexOf(baseEncoding[charCode]);
  23080. if (glyphId >= 0) {
  23081. charCodeToGlyphId[charCode] = glyphId;
  23082. }
  23083. }
  23084. }
  23085. // Lastly, merge in the differences.
  23086. var differences = properties.differences;
  23087. if (differences) {
  23088. for (charCode in differences) {
  23089. var glyphName = differences[charCode];
  23090. glyphId = glyphNames.indexOf(glyphName);
  23091. if (glyphId >= 0) {
  23092. charCodeToGlyphId[charCode] = glyphId;
  23093. }
  23094. }
  23095. }
  23096. return charCodeToGlyphId;
  23097. }
  23098. /*
  23099. * CharStrings are encoded following the the CharString Encoding sequence
  23100. * describe in Chapter 6 of the "Adobe Type1 Font Format" specification.
  23101. * The value in a byte indicates a command, a number, or subsequent bytes
  23102. * that are to be interpreted in a special way.
  23103. *
  23104. * CharString Number Encoding:
  23105. * A CharString byte containing the values from 32 through 255 inclusive
  23106. * indicate an integer. These values are decoded in four ranges.
  23107. *
  23108. * 1. A CharString byte containing a value, v, between 32 and 246 inclusive,
  23109. * indicate the integer v - 139. Thus, the integer values from -107 through
  23110. * 107 inclusive may be encoded in single byte.
  23111. *
  23112. * 2. A CharString byte containing a value, v, between 247 and 250 inclusive,
  23113. * indicates an integer involving the next byte, w, according to the formula:
  23114. * [(v - 247) x 256] + w + 108
  23115. *
  23116. * 3. A CharString byte containing a value, v, between 251 and 254 inclusive,
  23117. * indicates an integer involving the next byte, w, according to the formula:
  23118. * -[(v - 251) * 256] - w - 108
  23119. *
  23120. * 4. A CharString containing the value 255 indicates that the next 4 bytes
  23121. * are a two complement signed integer. The first of these bytes contains the
  23122. * highest order bits, the second byte contains the next higher order bits
  23123. * and the fourth byte contain the lowest order bits.
  23124. *
  23125. *
  23126. * CharString Command Encoding:
  23127. * CharStrings commands are encoded in 1 or 2 bytes.
  23128. *
  23129. * Single byte commands are encoded in 1 byte that contains a value between
  23130. * 0 and 31 inclusive.
  23131. * If a command byte contains the value 12, then the value in the next byte
  23132. * indicates a command. This "escape" mechanism allows many extra commands
  23133. * to be encoded and this encoding technique helps to minimize the length of
  23134. * the charStrings.
  23135. */
  23136. var Type1CharString = (function Type1CharStringClosure() {
  23137. var COMMAND_MAP = {
  23138. 'hstem': [1],
  23139. 'vstem': [3],
  23140. 'vmoveto': [4],
  23141. 'rlineto': [5],
  23142. 'hlineto': [6],
  23143. 'vlineto': [7],
  23144. 'rrcurveto': [8],
  23145. 'callsubr': [10],
  23146. 'flex': [12, 35],
  23147. 'drop' : [12, 18],
  23148. 'endchar': [14],
  23149. 'rmoveto': [21],
  23150. 'hmoveto': [22],
  23151. 'vhcurveto': [30],
  23152. 'hvcurveto': [31]
  23153. };
  23154. function Type1CharString() {
  23155. this.width = 0;
  23156. this.lsb = 0;
  23157. this.flexing = false;
  23158. this.output = [];
  23159. this.stack = [];
  23160. }
  23161. Type1CharString.prototype = {
  23162. convert: function Type1CharString_convert(encoded, subrs) {
  23163. var count = encoded.length;
  23164. var error = false;
  23165. var wx, sbx, subrNumber;
  23166. for (var i = 0; i < count; i++) {
  23167. var value = encoded[i];
  23168. if (value < 32) {
  23169. if (value === 12) {
  23170. value = (value << 8) + encoded[++i];
  23171. }
  23172. switch (value) {
  23173. case 1: // hstem
  23174. if (!HINTING_ENABLED) {
  23175. this.stack = [];
  23176. break;
  23177. }
  23178. error = this.executeCommand(2, COMMAND_MAP.hstem);
  23179. break;
  23180. case 3: // vstem
  23181. if (!HINTING_ENABLED) {
  23182. this.stack = [];
  23183. break;
  23184. }
  23185. error = this.executeCommand(2, COMMAND_MAP.vstem);
  23186. break;
  23187. case 4: // vmoveto
  23188. if (this.flexing) {
  23189. if (this.stack.length < 1) {
  23190. error = true;
  23191. break;
  23192. }
  23193. // Add the dx for flex and but also swap the values so they are
  23194. // the right order.
  23195. var dy = this.stack.pop();
  23196. this.stack.push(0, dy);
  23197. break;
  23198. }
  23199. error = this.executeCommand(1, COMMAND_MAP.vmoveto);
  23200. break;
  23201. case 5: // rlineto
  23202. error = this.executeCommand(2, COMMAND_MAP.rlineto);
  23203. break;
  23204. case 6: // hlineto
  23205. error = this.executeCommand(1, COMMAND_MAP.hlineto);
  23206. break;
  23207. case 7: // vlineto
  23208. error = this.executeCommand(1, COMMAND_MAP.vlineto);
  23209. break;
  23210. case 8: // rrcurveto
  23211. error = this.executeCommand(6, COMMAND_MAP.rrcurveto);
  23212. break;
  23213. case 9: // closepath
  23214. // closepath is a Type1 command that does not take argument and is
  23215. // useless in Type2 and it can simply be ignored.
  23216. this.stack = [];
  23217. break;
  23218. case 10: // callsubr
  23219. if (this.stack.length < 1) {
  23220. error = true;
  23221. break;
  23222. }
  23223. subrNumber = this.stack.pop();
  23224. error = this.convert(subrs[subrNumber], subrs);
  23225. break;
  23226. case 11: // return
  23227. return error;
  23228. case 13: // hsbw
  23229. if (this.stack.length < 2) {
  23230. error = true;
  23231. break;
  23232. }
  23233. // To convert to type2 we have to move the width value to the
  23234. // first part of the charstring and then use hmoveto with lsb.
  23235. wx = this.stack.pop();
  23236. sbx = this.stack.pop();
  23237. this.lsb = sbx;
  23238. this.width = wx;
  23239. this.stack.push(sbx);
  23240. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  23241. break;
  23242. case 14: // endchar
  23243. this.output.push(COMMAND_MAP.endchar[0]);
  23244. break;
  23245. case 21: // rmoveto
  23246. if (this.flexing) {
  23247. break;
  23248. }
  23249. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  23250. break;
  23251. case 22: // hmoveto
  23252. if (this.flexing) {
  23253. // Add the dy for flex.
  23254. this.stack.push(0);
  23255. break;
  23256. }
  23257. error = this.executeCommand(1, COMMAND_MAP.hmoveto);
  23258. break;
  23259. case 30: // vhcurveto
  23260. error = this.executeCommand(4, COMMAND_MAP.vhcurveto);
  23261. break;
  23262. case 31: // hvcurveto
  23263. error = this.executeCommand(4, COMMAND_MAP.hvcurveto);
  23264. break;
  23265. case (12 << 8) + 0: // dotsection
  23266. // dotsection is a Type1 command to specify some hinting feature
  23267. // for dots that do not take a parameter and it can safely be
  23268. // ignored for Type2.
  23269. this.stack = [];
  23270. break;
  23271. case (12 << 8) + 1: // vstem3
  23272. if (!HINTING_ENABLED) {
  23273. this.stack = [];
  23274. break;
  23275. }
  23276. // [vh]stem3 are Type1 only and Type2 supports [vh]stem with
  23277. // multiple parameters, so instead of returning [vh]stem3 take a
  23278. // shortcut and return [vhstem] instead.
  23279. error = this.executeCommand(2, COMMAND_MAP.vstem);
  23280. break;
  23281. case (12 << 8) + 2: // hstem3
  23282. if (!HINTING_ENABLED) {
  23283. this.stack = [];
  23284. break;
  23285. }
  23286. // See vstem3.
  23287. error = this.executeCommand(2, COMMAND_MAP.hstem);
  23288. break;
  23289. case (12 << 8) + 6: // seac
  23290. // seac is like type 2's special endchar but it doesn't use the
  23291. // first argument asb, so remove it.
  23292. if (SEAC_ANALYSIS_ENABLED) {
  23293. this.seac = this.stack.splice(-4, 4);
  23294. error = this.executeCommand(0, COMMAND_MAP.endchar);
  23295. } else {
  23296. error = this.executeCommand(4, COMMAND_MAP.endchar);
  23297. }
  23298. break;
  23299. case (12 << 8) + 7: // sbw
  23300. if (this.stack.length < 4) {
  23301. error = true;
  23302. break;
  23303. }
  23304. // To convert to type2 we have to move the width value to the
  23305. // first part of the charstring and then use rmoveto with
  23306. // (dx, dy). The height argument will not be used for vmtx and
  23307. // vhea tables reconstruction -- ignoring it.
  23308. var wy = this.stack.pop();
  23309. wx = this.stack.pop();
  23310. var sby = this.stack.pop();
  23311. sbx = this.stack.pop();
  23312. this.lsb = sbx;
  23313. this.width = wx;
  23314. this.stack.push(sbx, sby);
  23315. error = this.executeCommand(2, COMMAND_MAP.rmoveto);
  23316. break;
  23317. case (12 << 8) + 12: // div
  23318. if (this.stack.length < 2) {
  23319. error = true;
  23320. break;
  23321. }
  23322. var num2 = this.stack.pop();
  23323. var num1 = this.stack.pop();
  23324. this.stack.push(num1 / num2);
  23325. break;
  23326. case (12 << 8) + 16: // callothersubr
  23327. if (this.stack.length < 2) {
  23328. error = true;
  23329. break;
  23330. }
  23331. subrNumber = this.stack.pop();
  23332. var numArgs = this.stack.pop();
  23333. if (subrNumber === 0 && numArgs === 3) {
  23334. var flexArgs = this.stack.splice(this.stack.length - 17, 17);
  23335. this.stack.push(
  23336. flexArgs[2] + flexArgs[0], // bcp1x + rpx
  23337. flexArgs[3] + flexArgs[1], // bcp1y + rpy
  23338. flexArgs[4], // bcp2x
  23339. flexArgs[5], // bcp2y
  23340. flexArgs[6], // p2x
  23341. flexArgs[7], // p2y
  23342. flexArgs[8], // bcp3x
  23343. flexArgs[9], // bcp3y
  23344. flexArgs[10], // bcp4x
  23345. flexArgs[11], // bcp4y
  23346. flexArgs[12], // p3x
  23347. flexArgs[13], // p3y
  23348. flexArgs[14] // flexDepth
  23349. // 15 = finalx unused by flex
  23350. // 16 = finaly unused by flex
  23351. );
  23352. error = this.executeCommand(13, COMMAND_MAP.flex, true);
  23353. this.flexing = false;
  23354. this.stack.push(flexArgs[15], flexArgs[16]);
  23355. } else if (subrNumber === 1 && numArgs === 0) {
  23356. this.flexing = true;
  23357. }
  23358. break;
  23359. case (12 << 8) + 17: // pop
  23360. // Ignore this since it is only used with othersubr.
  23361. break;
  23362. case (12 << 8) + 33: // setcurrentpoint
  23363. // Ignore for now.
  23364. this.stack = [];
  23365. break;
  23366. default:
  23367. warn('Unknown type 1 charstring command of "' + value + '"');
  23368. break;
  23369. }
  23370. if (error) {
  23371. break;
  23372. }
  23373. continue;
  23374. } else if (value <= 246) {
  23375. value = value - 139;
  23376. } else if (value <= 250) {
  23377. value = ((value - 247) * 256) + encoded[++i] + 108;
  23378. } else if (value <= 254) {
  23379. value = -((value - 251) * 256) - encoded[++i] - 108;
  23380. } else {
  23381. value = (encoded[++i] & 0xff) << 24 | (encoded[++i] & 0xff) << 16 |
  23382. (encoded[++i] & 0xff) << 8 | (encoded[++i] & 0xff) << 0;
  23383. }
  23384. this.stack.push(value);
  23385. }
  23386. return error;
  23387. },
  23388. executeCommand: function(howManyArgs, command, keepStack) {
  23389. var stackLength = this.stack.length;
  23390. if (howManyArgs > stackLength) {
  23391. return true;
  23392. }
  23393. var start = stackLength - howManyArgs;
  23394. for (var i = start; i < stackLength; i++) {
  23395. var value = this.stack[i];
  23396. if (value === (value | 0)) { // int
  23397. this.output.push(28, (value >> 8) & 0xff, value & 0xff);
  23398. } else { // fixed point
  23399. value = (65536 * value) | 0;
  23400. this.output.push(255,
  23401. (value >> 24) & 0xFF,
  23402. (value >> 16) & 0xFF,
  23403. (value >> 8) & 0xFF,
  23404. value & 0xFF);
  23405. }
  23406. }
  23407. this.output.push.apply(this.output, command);
  23408. if (keepStack) {
  23409. this.stack.splice(start, howManyArgs);
  23410. } else {
  23411. this.stack.length = 0;
  23412. }
  23413. return false;
  23414. }
  23415. };
  23416. return Type1CharString;
  23417. })();
  23418. /*
  23419. * Type1Parser encapsulate the needed code for parsing a Type1 font
  23420. * program. Some of its logic depends on the Type2 charstrings
  23421. * structure.
  23422. * Note: this doesn't really parse the font since that would require evaluation
  23423. * of PostScript, but it is possible in most cases to extract what we need
  23424. * without a full parse.
  23425. */
  23426. var Type1Parser = (function Type1ParserClosure() {
  23427. /*
  23428. * Decrypt a Sequence of Ciphertext Bytes to Produce the Original Sequence
  23429. * of Plaintext Bytes. The function took a key as a parameter which can be
  23430. * for decrypting the eexec block of for decoding charStrings.
  23431. */
  23432. var EEXEC_ENCRYPT_KEY = 55665;
  23433. var CHAR_STRS_ENCRYPT_KEY = 4330;
  23434. function isHexDigit(code) {
  23435. return code >= 48 && code <= 57 || // '0'-'9'
  23436. code >= 65 && code <= 70 || // 'A'-'F'
  23437. code >= 97 && code <= 102; // 'a'-'f'
  23438. }
  23439. function decrypt(data, key, discardNumber) {
  23440. var r = key | 0, c1 = 52845, c2 = 22719;
  23441. var count = data.length;
  23442. var decrypted = new Uint8Array(count);
  23443. for (var i = 0; i < count; i++) {
  23444. var value = data[i];
  23445. decrypted[i] = value ^ (r >> 8);
  23446. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  23447. }
  23448. return Array.prototype.slice.call(decrypted, discardNumber);
  23449. }
  23450. function decryptAscii(data, key, discardNumber) {
  23451. var r = key | 0, c1 = 52845, c2 = 22719;
  23452. var count = data.length, maybeLength = count >>> 1;
  23453. var decrypted = new Uint8Array(maybeLength);
  23454. var i, j;
  23455. for (i = 0, j = 0; i < count; i++) {
  23456. var digit1 = data[i];
  23457. if (!isHexDigit(digit1)) {
  23458. continue;
  23459. }
  23460. i++;
  23461. var digit2;
  23462. while (i < count && !isHexDigit(digit2 = data[i])) {
  23463. i++;
  23464. }
  23465. if (i < count) {
  23466. var value = parseInt(String.fromCharCode(digit1, digit2), 16);
  23467. decrypted[j++] = value ^ (r >> 8);
  23468. r = ((value + r) * c1 + c2) & ((1 << 16) - 1);
  23469. }
  23470. }
  23471. return Array.prototype.slice.call(decrypted, discardNumber, j);
  23472. }
  23473. function isSpecial(c) {
  23474. return c === 0x2F || // '/'
  23475. c === 0x5B || c === 0x5D || // '[', ']'
  23476. c === 0x7B || c === 0x7D || // '{', '}'
  23477. c === 0x28 || c === 0x29; // '(', ')'
  23478. }
  23479. function Type1Parser(stream, encrypted) {
  23480. if (encrypted) {
  23481. var data = stream.getBytes();
  23482. var isBinary = !(isHexDigit(data[0]) && isHexDigit(data[1]) &&
  23483. isHexDigit(data[2]) && isHexDigit(data[3]));
  23484. stream = new Stream(isBinary ? decrypt(data, EEXEC_ENCRYPT_KEY, 4) :
  23485. decryptAscii(data, EEXEC_ENCRYPT_KEY, 4));
  23486. }
  23487. this.stream = stream;
  23488. this.nextChar();
  23489. }
  23490. Type1Parser.prototype = {
  23491. readNumberArray: function Type1Parser_readNumberArray() {
  23492. this.getToken(); // read '[' or '{' (arrays can start with either)
  23493. var array = [];
  23494. while (true) {
  23495. var token = this.getToken();
  23496. if (token === null || token === ']' || token === '}') {
  23497. break;
  23498. }
  23499. array.push(parseFloat(token || 0));
  23500. }
  23501. return array;
  23502. },
  23503. readNumber: function Type1Parser_readNumber() {
  23504. var token = this.getToken();
  23505. return parseFloat(token || 0);
  23506. },
  23507. readInt: function Type1Parser_readInt() {
  23508. // Use '| 0' to prevent setting a double into length such as the double
  23509. // does not flow into the loop variable.
  23510. var token = this.getToken();
  23511. return parseInt(token || 0, 10) | 0;
  23512. },
  23513. readBoolean: function Type1Parser_readBoolean() {
  23514. var token = this.getToken();
  23515. // Use 1 and 0 since that's what type2 charstrings use.
  23516. return token === 'true' ? 1 : 0;
  23517. },
  23518. nextChar : function Type1_nextChar() {
  23519. return (this.currentChar = this.stream.getByte());
  23520. },
  23521. getToken: function Type1Parser_getToken() {
  23522. // Eat whitespace and comments.
  23523. var comment = false;
  23524. var ch = this.currentChar;
  23525. while (true) {
  23526. if (ch === -1) {
  23527. return null;
  23528. }
  23529. if (comment) {
  23530. if (ch === 0x0A || ch === 0x0D) {
  23531. comment = false;
  23532. }
  23533. } else if (ch === 0x25) { // '%'
  23534. comment = true;
  23535. } else if (!Lexer.isSpace(ch)) {
  23536. break;
  23537. }
  23538. ch = this.nextChar();
  23539. }
  23540. if (isSpecial(ch)) {
  23541. this.nextChar();
  23542. return String.fromCharCode(ch);
  23543. }
  23544. var token = '';
  23545. do {
  23546. token += String.fromCharCode(ch);
  23547. ch = this.nextChar();
  23548. } while (ch >= 0 && !Lexer.isSpace(ch) && !isSpecial(ch));
  23549. return token;
  23550. },
  23551. /*
  23552. * Returns an object containing a Subrs array and a CharStrings
  23553. * array extracted from and eexec encrypted block of data
  23554. */
  23555. extractFontProgram: function Type1Parser_extractFontProgram() {
  23556. var stream = this.stream;
  23557. var subrs = [], charstrings = [];
  23558. var program = {
  23559. subrs: [],
  23560. charstrings: [],
  23561. properties: {
  23562. 'privateData': {
  23563. 'lenIV': 4
  23564. }
  23565. }
  23566. };
  23567. var token, length, data, lenIV, encoded;
  23568. while ((token = this.getToken()) !== null) {
  23569. if (token !== '/') {
  23570. continue;
  23571. }
  23572. token = this.getToken();
  23573. switch (token) {
  23574. case 'CharStrings':
  23575. // The number immediately following CharStrings must be greater or
  23576. // equal to the number of CharStrings.
  23577. this.getToken();
  23578. this.getToken(); // read in 'dict'
  23579. this.getToken(); // read in 'dup'
  23580. this.getToken(); // read in 'begin'
  23581. while(true) {
  23582. token = this.getToken();
  23583. if (token === null || token === 'end') {
  23584. break;
  23585. }
  23586. if (token !== '/') {
  23587. continue;
  23588. }
  23589. var glyph = this.getToken();
  23590. length = this.readInt();
  23591. this.getToken(); // read in 'RD' or '-|'
  23592. data = stream.makeSubStream(stream.pos, length);
  23593. lenIV = program.properties.privateData['lenIV'];
  23594. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  23595. // Skip past the required space and binary data.
  23596. stream.skip(length);
  23597. this.nextChar();
  23598. token = this.getToken(); // read in 'ND' or '|-'
  23599. if (token === 'noaccess') {
  23600. this.getToken(); // read in 'def'
  23601. }
  23602. charstrings.push({
  23603. glyph: glyph,
  23604. encoded: encoded
  23605. });
  23606. }
  23607. break;
  23608. case 'Subrs':
  23609. var num = this.readInt();
  23610. this.getToken(); // read in 'array'
  23611. while ((token = this.getToken()) === 'dup') {
  23612. var index = this.readInt();
  23613. length = this.readInt();
  23614. this.getToken(); // read in 'RD' or '-|'
  23615. data = stream.makeSubStream(stream.pos, length);
  23616. lenIV = program.properties.privateData['lenIV'];
  23617. encoded = decrypt(data.getBytes(), CHAR_STRS_ENCRYPT_KEY, lenIV);
  23618. // Skip past the required space and binary data.
  23619. stream.skip(length);
  23620. this.nextChar();
  23621. token = this.getToken(); // read in 'NP' or '|'
  23622. if (token === 'noaccess') {
  23623. this.getToken(); // read in 'put'
  23624. }
  23625. subrs[index] = encoded;
  23626. }
  23627. break;
  23628. case 'BlueValues':
  23629. case 'OtherBlues':
  23630. case 'FamilyBlues':
  23631. case 'FamilyOtherBlues':
  23632. var blueArray = this.readNumberArray();
  23633. // *Blue* values may contain invalid data: disables reading of
  23634. // those values when hinting is disabled.
  23635. if (blueArray.length > 0 && (blueArray.length % 2) === 0 &&
  23636. HINTING_ENABLED) {
  23637. program.properties.privateData[token] = blueArray;
  23638. }
  23639. break;
  23640. case 'StemSnapH':
  23641. case 'StemSnapV':
  23642. program.properties.privateData[token] = this.readNumberArray();
  23643. break;
  23644. case 'StdHW':
  23645. case 'StdVW':
  23646. program.properties.privateData[token] =
  23647. this.readNumberArray()[0];
  23648. break;
  23649. case 'BlueShift':
  23650. case 'lenIV':
  23651. case 'BlueFuzz':
  23652. case 'BlueScale':
  23653. case 'LanguageGroup':
  23654. case 'ExpansionFactor':
  23655. program.properties.privateData[token] = this.readNumber();
  23656. break;
  23657. case 'ForceBold':
  23658. program.properties.privateData[token] = this.readBoolean();
  23659. break;
  23660. }
  23661. }
  23662. for (var i = 0; i < charstrings.length; i++) {
  23663. glyph = charstrings[i].glyph;
  23664. encoded = charstrings[i].encoded;
  23665. var charString = new Type1CharString();
  23666. var error = charString.convert(encoded, subrs);
  23667. var output = charString.output;
  23668. if (error) {
  23669. // It seems when FreeType encounters an error while evaluating a glyph
  23670. // that it completely ignores the glyph so we'll mimic that behaviour
  23671. // here and put an endchar to make the validator happy.
  23672. output = [14];
  23673. }
  23674. program.charstrings.push({
  23675. glyphName: glyph,
  23676. charstring: output,
  23677. width: charString.width,
  23678. lsb: charString.lsb,
  23679. seac: charString.seac
  23680. });
  23681. }
  23682. return program;
  23683. },
  23684. extractFontHeader: function Type1Parser_extractFontHeader(properties) {
  23685. var token;
  23686. while ((token = this.getToken()) !== null) {
  23687. if (token !== '/') {
  23688. continue;
  23689. }
  23690. token = this.getToken();
  23691. switch (token) {
  23692. case 'FontMatrix':
  23693. var matrix = this.readNumberArray();
  23694. properties.fontMatrix = matrix;
  23695. break;
  23696. case 'Encoding':
  23697. var encodingArg = this.getToken();
  23698. var encoding;
  23699. if (!/^\d+$/.test(encodingArg)) {
  23700. // encoding name is specified
  23701. encoding = Encodings[encodingArg];
  23702. } else {
  23703. encoding = [];
  23704. var size = parseInt(encodingArg, 10) | 0;
  23705. this.getToken(); // read in 'array'
  23706. for (var j = 0; j < size; j++) {
  23707. token = this.getToken();
  23708. // skipping till first dup or def (e.g. ignoring for statement)
  23709. while (token !== 'dup' && token !== 'def') {
  23710. token = this.getToken();
  23711. if (token === null) {
  23712. return; // invalid header
  23713. }
  23714. }
  23715. if (token === 'def') {
  23716. break; // read all array data
  23717. }
  23718. var index = this.readInt();
  23719. this.getToken(); // read in '/'
  23720. var glyph = this.getToken();
  23721. encoding[index] = glyph;
  23722. this.getToken(); // read the in 'put'
  23723. }
  23724. }
  23725. properties.builtInEncoding = encoding;
  23726. break;
  23727. case 'FontBBox':
  23728. var fontBBox = this.readNumberArray();
  23729. // adjusting ascent/descent
  23730. properties.ascent = fontBBox[3];
  23731. properties.descent = fontBBox[1];
  23732. properties.ascentScaled = true;
  23733. break;
  23734. }
  23735. }
  23736. }
  23737. };
  23738. return Type1Parser;
  23739. })();
  23740. /**
  23741. * The CFF class takes a Type1 file and wrap it into a
  23742. * 'Compact Font Format' which itself embed Type2 charstrings.
  23743. */
  23744. var CFFStandardStrings = [
  23745. '.notdef', 'space', 'exclam', 'quotedbl', 'numbersign', 'dollar', 'percent',
  23746. 'ampersand', 'quoteright', 'parenleft', 'parenright', 'asterisk', 'plus',
  23747. 'comma', 'hyphen', 'period', 'slash', 'zero', 'one', 'two', 'three', 'four',
  23748. 'five', 'six', 'seven', 'eight', 'nine', 'colon', 'semicolon', 'less',
  23749. 'equal', 'greater', 'question', 'at', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
  23750. 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
  23751. 'X', 'Y', 'Z', 'bracketleft', 'backslash', 'bracketright', 'asciicircum',
  23752. 'underscore', 'quoteleft', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
  23753. 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y',
  23754. 'z', 'braceleft', 'bar', 'braceright', 'asciitilde', 'exclamdown', 'cent',
  23755. 'sterling', 'fraction', 'yen', 'florin', 'section', 'currency',
  23756. 'quotesingle', 'quotedblleft', 'guillemotleft', 'guilsinglleft',
  23757. 'guilsinglright', 'fi', 'fl', 'endash', 'dagger', 'daggerdbl',
  23758. 'periodcentered', 'paragraph', 'bullet', 'quotesinglbase', 'quotedblbase',
  23759. 'quotedblright', 'guillemotright', 'ellipsis', 'perthousand', 'questiondown',
  23760. 'grave', 'acute', 'circumflex', 'tilde', 'macron', 'breve', 'dotaccent',
  23761. 'dieresis', 'ring', 'cedilla', 'hungarumlaut', 'ogonek', 'caron', 'emdash',
  23762. 'AE', 'ordfeminine', 'Lslash', 'Oslash', 'OE', 'ordmasculine', 'ae',
  23763. 'dotlessi', 'lslash', 'oslash', 'oe', 'germandbls', 'onesuperior',
  23764. 'logicalnot', 'mu', 'trademark', 'Eth', 'onehalf', 'plusminus', 'Thorn',
  23765. 'onequarter', 'divide', 'brokenbar', 'degree', 'thorn', 'threequarters',
  23766. 'twosuperior', 'registered', 'minus', 'eth', 'multiply', 'threesuperior',
  23767. 'copyright', 'Aacute', 'Acircumflex', 'Adieresis', 'Agrave', 'Aring',
  23768. 'Atilde', 'Ccedilla', 'Eacute', 'Ecircumflex', 'Edieresis', 'Egrave',
  23769. 'Iacute', 'Icircumflex', 'Idieresis', 'Igrave', 'Ntilde', 'Oacute',
  23770. 'Ocircumflex', 'Odieresis', 'Ograve', 'Otilde', 'Scaron', 'Uacute',
  23771. 'Ucircumflex', 'Udieresis', 'Ugrave', 'Yacute', 'Ydieresis', 'Zcaron',
  23772. 'aacute', 'acircumflex', 'adieresis', 'agrave', 'aring', 'atilde',
  23773. 'ccedilla', 'eacute', 'ecircumflex', 'edieresis', 'egrave', 'iacute',
  23774. 'icircumflex', 'idieresis', 'igrave', 'ntilde', 'oacute', 'ocircumflex',
  23775. 'odieresis', 'ograve', 'otilde', 'scaron', 'uacute', 'ucircumflex',
  23776. 'udieresis', 'ugrave', 'yacute', 'ydieresis', 'zcaron', 'exclamsmall',
  23777. 'Hungarumlautsmall', 'dollaroldstyle', 'dollarsuperior', 'ampersandsmall',
  23778. 'Acutesmall', 'parenleftsuperior', 'parenrightsuperior', 'twodotenleader',
  23779. 'onedotenleader', 'zerooldstyle', 'oneoldstyle', 'twooldstyle',
  23780. 'threeoldstyle', 'fouroldstyle', 'fiveoldstyle', 'sixoldstyle',
  23781. 'sevenoldstyle', 'eightoldstyle', 'nineoldstyle', 'commasuperior',
  23782. 'threequartersemdash', 'periodsuperior', 'questionsmall', 'asuperior',
  23783. 'bsuperior', 'centsuperior', 'dsuperior', 'esuperior', 'isuperior',
  23784. 'lsuperior', 'msuperior', 'nsuperior', 'osuperior', 'rsuperior', 'ssuperior',
  23785. 'tsuperior', 'ff', 'ffi', 'ffl', 'parenleftinferior', 'parenrightinferior',
  23786. 'Circumflexsmall', 'hyphensuperior', 'Gravesmall', 'Asmall', 'Bsmall',
  23787. 'Csmall', 'Dsmall', 'Esmall', 'Fsmall', 'Gsmall', 'Hsmall', 'Ismall',
  23788. 'Jsmall', 'Ksmall', 'Lsmall', 'Msmall', 'Nsmall', 'Osmall', 'Psmall',
  23789. 'Qsmall', 'Rsmall', 'Ssmall', 'Tsmall', 'Usmall', 'Vsmall', 'Wsmall',
  23790. 'Xsmall', 'Ysmall', 'Zsmall', 'colonmonetary', 'onefitted', 'rupiah',
  23791. 'Tildesmall', 'exclamdownsmall', 'centoldstyle', 'Lslashsmall',
  23792. 'Scaronsmall', 'Zcaronsmall', 'Dieresissmall', 'Brevesmall', 'Caronsmall',
  23793. 'Dotaccentsmall', 'Macronsmall', 'figuredash', 'hypheninferior',
  23794. 'Ogoneksmall', 'Ringsmall', 'Cedillasmall', 'questiondownsmall', 'oneeighth',
  23795. 'threeeighths', 'fiveeighths', 'seveneighths', 'onethird', 'twothirds',
  23796. 'zerosuperior', 'foursuperior', 'fivesuperior', 'sixsuperior',
  23797. 'sevensuperior', 'eightsuperior', 'ninesuperior', 'zeroinferior',
  23798. 'oneinferior', 'twoinferior', 'threeinferior', 'fourinferior',
  23799. 'fiveinferior', 'sixinferior', 'seveninferior', 'eightinferior',
  23800. 'nineinferior', 'centinferior', 'dollarinferior', 'periodinferior',
  23801. 'commainferior', 'Agravesmall', 'Aacutesmall', 'Acircumflexsmall',
  23802. 'Atildesmall', 'Adieresissmall', 'Aringsmall', 'AEsmall', 'Ccedillasmall',
  23803. 'Egravesmall', 'Eacutesmall', 'Ecircumflexsmall', 'Edieresissmall',
  23804. 'Igravesmall', 'Iacutesmall', 'Icircumflexsmall', 'Idieresissmall',
  23805. 'Ethsmall', 'Ntildesmall', 'Ogravesmall', 'Oacutesmall', 'Ocircumflexsmall',
  23806. 'Otildesmall', 'Odieresissmall', 'OEsmall', 'Oslashsmall', 'Ugravesmall',
  23807. 'Uacutesmall', 'Ucircumflexsmall', 'Udieresissmall', 'Yacutesmall',
  23808. 'Thornsmall', 'Ydieresissmall', '001.000', '001.001', '001.002', '001.003',
  23809. 'Black', 'Bold', 'Book', 'Light', 'Medium', 'Regular', 'Roman', 'Semibold'
  23810. ];
  23811. // Type1Font is also a CIDFontType0.
  23812. var Type1Font = function Type1Font(name, file, properties) {
  23813. // Some bad generators embed pfb file as is, we have to strip 6-byte headers.
  23814. // Also, length1 and length2 might be off by 6 bytes as well.
  23815. // http://www.math.ubc.ca/~cass/piscript/type1.pdf
  23816. var PFB_HEADER_SIZE = 6;
  23817. var headerBlockLength = properties.length1;
  23818. var eexecBlockLength = properties.length2;
  23819. var pfbHeader = file.peekBytes(PFB_HEADER_SIZE);
  23820. var pfbHeaderPresent = pfbHeader[0] == 0x80 && pfbHeader[1] == 0x01;
  23821. if (pfbHeaderPresent) {
  23822. file.skip(PFB_HEADER_SIZE);
  23823. headerBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  23824. (pfbHeader[3] << 8) | pfbHeader[2];
  23825. }
  23826. // Get the data block containing glyphs and subrs informations
  23827. var headerBlock = new Stream(file.getBytes(headerBlockLength));
  23828. var headerBlockParser = new Type1Parser(headerBlock);
  23829. headerBlockParser.extractFontHeader(properties);
  23830. if (pfbHeaderPresent) {
  23831. pfbHeader = file.getBytes(PFB_HEADER_SIZE);
  23832. eexecBlockLength = (pfbHeader[5] << 24) | (pfbHeader[4] << 16) |
  23833. (pfbHeader[3] << 8) | pfbHeader[2];
  23834. }
  23835. // Decrypt the data blocks and retrieve it's content
  23836. var eexecBlock = new Stream(file.getBytes(eexecBlockLength));
  23837. var eexecBlockParser = new Type1Parser(eexecBlock, true);
  23838. var data = eexecBlockParser.extractFontProgram();
  23839. for (var info in data.properties) {
  23840. properties[info] = data.properties[info];
  23841. }
  23842. var charstrings = data.charstrings;
  23843. var type2Charstrings = this.getType2Charstrings(charstrings);
  23844. var subrs = this.getType2Subrs(data.subrs);
  23845. this.charstrings = charstrings;
  23846. this.data = this.wrap(name, type2Charstrings, this.charstrings,
  23847. subrs, properties);
  23848. this.seacs = this.getSeacs(data.charstrings);
  23849. };
  23850. Type1Font.prototype = {
  23851. get numGlyphs() {
  23852. return this.charstrings.length + 1;
  23853. },
  23854. getCharset: function Type1Font_getCharset() {
  23855. var charset = ['.notdef'];
  23856. var charstrings = this.charstrings;
  23857. for (var glyphId = 0; glyphId < charstrings.length; glyphId++) {
  23858. charset.push(charstrings[glyphId].glyphName);
  23859. }
  23860. return charset;
  23861. },
  23862. getGlyphMapping: function Type1Font_getGlyphMapping(properties) {
  23863. var charstrings = this.charstrings;
  23864. var glyphNames = ['.notdef'], glyphId;
  23865. for (glyphId = 0; glyphId < charstrings.length; glyphId++) {
  23866. glyphNames.push(charstrings[glyphId].glyphName);
  23867. }
  23868. var encoding = properties.builtInEncoding;
  23869. if (encoding) {
  23870. var builtInEncoding = {};
  23871. for (var charCode in encoding) {
  23872. glyphId = glyphNames.indexOf(encoding[charCode]);
  23873. if (glyphId >= 0) {
  23874. builtInEncoding[charCode] = glyphId;
  23875. }
  23876. }
  23877. }
  23878. return type1FontGlyphMapping(properties, builtInEncoding, glyphNames);
  23879. },
  23880. getSeacs: function Type1Font_getSeacs(charstrings) {
  23881. var i, ii;
  23882. var seacMap = [];
  23883. for (i = 0, ii = charstrings.length; i < ii; i++) {
  23884. var charstring = charstrings[i];
  23885. if (charstring.seac) {
  23886. // Offset by 1 for .notdef
  23887. seacMap[i + 1] = charstring.seac;
  23888. }
  23889. }
  23890. return seacMap;
  23891. },
  23892. getType2Charstrings: function Type1Font_getType2Charstrings(
  23893. type1Charstrings) {
  23894. var type2Charstrings = [];
  23895. for (var i = 0, ii = type1Charstrings.length; i < ii; i++) {
  23896. type2Charstrings.push(type1Charstrings[i].charstring);
  23897. }
  23898. return type2Charstrings;
  23899. },
  23900. getType2Subrs: function Type1Font_getType2Subrs(type1Subrs) {
  23901. var bias = 0;
  23902. var count = type1Subrs.length;
  23903. if (count < 1133) {
  23904. bias = 107;
  23905. } else if (count < 33769) {
  23906. bias = 1131;
  23907. } else {
  23908. bias = 32768;
  23909. }
  23910. // Add a bunch of empty subrs to deal with the Type2 bias
  23911. var type2Subrs = [];
  23912. var i;
  23913. for (i = 0; i < bias; i++) {
  23914. type2Subrs.push([0x0B]);
  23915. }
  23916. for (i = 0; i < count; i++) {
  23917. type2Subrs.push(type1Subrs[i]);
  23918. }
  23919. return type2Subrs;
  23920. },
  23921. wrap: function Type1Font_wrap(name, glyphs, charstrings, subrs, properties) {
  23922. var cff = new CFF();
  23923. cff.header = new CFFHeader(1, 0, 4, 4);
  23924. cff.names = [name];
  23925. var topDict = new CFFTopDict();
  23926. // CFF strings IDs 0...390 are predefined names, so refering
  23927. // to entries in our own String INDEX starts at SID 391.
  23928. topDict.setByName('version', 391);
  23929. topDict.setByName('Notice', 392);
  23930. topDict.setByName('FullName', 393);
  23931. topDict.setByName('FamilyName', 394);
  23932. topDict.setByName('Weight', 395);
  23933. topDict.setByName('Encoding', null); // placeholder
  23934. topDict.setByName('FontMatrix', properties.fontMatrix);
  23935. topDict.setByName('FontBBox', properties.bbox);
  23936. topDict.setByName('charset', null); // placeholder
  23937. topDict.setByName('CharStrings', null); // placeholder
  23938. topDict.setByName('Private', null); // placeholder
  23939. cff.topDict = topDict;
  23940. var strings = new CFFStrings();
  23941. strings.add('Version 0.11'); // Version
  23942. strings.add('See original notice'); // Notice
  23943. strings.add(name); // FullName
  23944. strings.add(name); // FamilyName
  23945. strings.add('Medium'); // Weight
  23946. cff.strings = strings;
  23947. cff.globalSubrIndex = new CFFIndex();
  23948. var count = glyphs.length;
  23949. var charsetArray = [0];
  23950. var i, ii;
  23951. for (i = 0; i < count; i++) {
  23952. var index = CFFStandardStrings.indexOf(charstrings[i].glyphName);
  23953. // TODO: Insert the string and correctly map it. Previously it was
  23954. // thought mapping names that aren't in the standard strings to .notdef
  23955. // was fine, however in issue818 when mapping them all to .notdef the
  23956. // adieresis glyph no longer worked.
  23957. if (index == -1) {
  23958. index = 0;
  23959. }
  23960. charsetArray.push((index >> 8) & 0xff, index & 0xff);
  23961. }
  23962. cff.charset = new CFFCharset(false, 0, [], charsetArray);
  23963. var charStringsIndex = new CFFIndex();
  23964. charStringsIndex.add([0x8B, 0x0E]); // .notdef
  23965. for (i = 0; i < count; i++) {
  23966. charStringsIndex.add(glyphs[i]);
  23967. }
  23968. cff.charStrings = charStringsIndex;
  23969. var privateDict = new CFFPrivateDict();
  23970. privateDict.setByName('Subrs', null); // placeholder
  23971. var fields = [
  23972. 'BlueValues',
  23973. 'OtherBlues',
  23974. 'FamilyBlues',
  23975. 'FamilyOtherBlues',
  23976. 'StemSnapH',
  23977. 'StemSnapV',
  23978. 'BlueShift',
  23979. 'BlueFuzz',
  23980. 'BlueScale',
  23981. 'LanguageGroup',
  23982. 'ExpansionFactor',
  23983. 'ForceBold',
  23984. 'StdHW',
  23985. 'StdVW'
  23986. ];
  23987. for (i = 0, ii = fields.length; i < ii; i++) {
  23988. var field = fields[i];
  23989. if (!properties.privateData.hasOwnProperty(field)) {
  23990. continue;
  23991. }
  23992. var value = properties.privateData[field];
  23993. if (isArray(value)) {
  23994. // All of the private dictionary array data in CFF must be stored as
  23995. // "delta-encoded" numbers.
  23996. for (var j = value.length - 1; j > 0; j--) {
  23997. value[j] -= value[j - 1]; // ... difference from previous value
  23998. }
  23999. }
  24000. privateDict.setByName(field, value);
  24001. }
  24002. cff.topDict.privateDict = privateDict;
  24003. var subrIndex = new CFFIndex();
  24004. for (i = 0, ii = subrs.length; i < ii; i++) {
  24005. subrIndex.add(subrs[i]);
  24006. }
  24007. privateDict.subrsIndex = subrIndex;
  24008. var compiler = new CFFCompiler(cff);
  24009. return compiler.compile();
  24010. }
  24011. };
  24012. var CFFFont = (function CFFFontClosure() {
  24013. function CFFFont(file, properties) {
  24014. this.properties = properties;
  24015. var parser = new CFFParser(file, properties);
  24016. this.cff = parser.parse();
  24017. var compiler = new CFFCompiler(this.cff);
  24018. this.seacs = this.cff.seacs;
  24019. try {
  24020. this.data = compiler.compile();
  24021. } catch (e) {
  24022. warn('Failed to compile font ' + properties.loadedName);
  24023. // There may have just been an issue with the compiler, set the data
  24024. // anyway and hope the font loaded.
  24025. this.data = file;
  24026. }
  24027. }
  24028. CFFFont.prototype = {
  24029. get numGlyphs() {
  24030. return this.cff.charStrings.count;
  24031. },
  24032. getCharset: function CFFFont_getCharset() {
  24033. return this.cff.charset.charset;
  24034. },
  24035. getGlyphMapping: function CFFFont_getGlyphMapping() {
  24036. var cff = this.cff;
  24037. var properties = this.properties;
  24038. var charsets = cff.charset.charset;
  24039. var charCodeToGlyphId;
  24040. var glyphId;
  24041. if (properties.composite) {
  24042. charCodeToGlyphId = Object.create(null);
  24043. if (cff.isCIDFont) {
  24044. // If the font is actually a CID font then we should use the charset
  24045. // to map CIDs to GIDs.
  24046. for (glyphId = 0; glyphId < charsets.length; glyphId++) {
  24047. var cidString = String.fromCharCode(charsets[glyphId]);
  24048. var charCode = properties.cMap.map.indexOf(cidString);
  24049. charCodeToGlyphId[charCode] = glyphId;
  24050. }
  24051. } else {
  24052. // If it is NOT actually a CID font then CIDs should be mapped
  24053. // directly to GIDs.
  24054. for (glyphId = 0; glyphId < cff.charStrings.count; glyphId++) {
  24055. charCodeToGlyphId[glyphId] = glyphId;
  24056. }
  24057. }
  24058. return charCodeToGlyphId;
  24059. }
  24060. var encoding = cff.encoding ? cff.encoding.encoding : null;
  24061. charCodeToGlyphId = type1FontGlyphMapping(properties, encoding, charsets);
  24062. return charCodeToGlyphId;
  24063. }
  24064. };
  24065. return CFFFont;
  24066. })();
  24067. var CFFParser = (function CFFParserClosure() {
  24068. var CharstringValidationData = [
  24069. null,
  24070. { id: 'hstem', min: 2, resetStack: true, stem: true },
  24071. null,
  24072. { id: 'vstem', min: 2, resetStack: true, stem: true },
  24073. { id: 'vmoveto', min: 1, resetStack: true },
  24074. { id: 'rlineto', min: 2, resetStack: true },
  24075. { id: 'hlineto', min: 1, resetStack: true },
  24076. { id: 'vlineto', min: 1, resetStack: true },
  24077. { id: 'rrcurveto', min: 6, resetStack: true },
  24078. null,
  24079. { id: 'callsubr', min: 1, undefStack: true },
  24080. { id: 'return', min: 0, undefStack: true },
  24081. null, // 12
  24082. null,
  24083. null, // endchar
  24084. null,
  24085. null,
  24086. null,
  24087. { id: 'hstemhm', min: 2, resetStack: true, stem: true },
  24088. null, // hintmask
  24089. null, // cntrmask
  24090. { id: 'rmoveto', min: 2, resetStack: true },
  24091. { id: 'hmoveto', min: 1, resetStack: true },
  24092. { id: 'vstemhm', min: 2, resetStack: true, stem: true },
  24093. { id: 'rcurveline', min: 8, resetStack: true },
  24094. { id: 'rlinecurve', min: 8, resetStack: true },
  24095. { id: 'vvcurveto', min: 4, resetStack: true },
  24096. { id: 'hhcurveto', min: 4, resetStack: true },
  24097. null, // shortint
  24098. { id: 'callgsubr', min: 1, undefStack: true },
  24099. { id: 'vhcurveto', min: 4, resetStack: true },
  24100. { id: 'hvcurveto', min: 4, resetStack: true }
  24101. ];
  24102. var CharstringValidationData12 = [
  24103. null,
  24104. null,
  24105. null,
  24106. { id: 'and', min: 2, stackDelta: -1 },
  24107. { id: 'or', min: 2, stackDelta: -1 },
  24108. { id: 'not', min: 1, stackDelta: 0 },
  24109. null,
  24110. null,
  24111. null,
  24112. { id: 'abs', min: 1, stackDelta: 0 },
  24113. { id: 'add', min: 2, stackDelta: -1,
  24114. stackFn: function stack_div(stack, index) {
  24115. stack[index - 2] = stack[index - 2] + stack[index - 1];
  24116. }
  24117. },
  24118. { id: 'sub', min: 2, stackDelta: -1,
  24119. stackFn: function stack_div(stack, index) {
  24120. stack[index - 2] = stack[index - 2] - stack[index - 1];
  24121. }
  24122. },
  24123. { id: 'div', min: 2, stackDelta: -1,
  24124. stackFn: function stack_div(stack, index) {
  24125. stack[index - 2] = stack[index - 2] / stack[index - 1];
  24126. }
  24127. },
  24128. null,
  24129. { id: 'neg', min: 1, stackDelta: 0,
  24130. stackFn: function stack_div(stack, index) {
  24131. stack[index - 1] = -stack[index - 1];
  24132. }
  24133. },
  24134. { id: 'eq', min: 2, stackDelta: -1 },
  24135. null,
  24136. null,
  24137. { id: 'drop', min: 1, stackDelta: -1 },
  24138. null,
  24139. { id: 'put', min: 2, stackDelta: -2 },
  24140. { id: 'get', min: 1, stackDelta: 0 },
  24141. { id: 'ifelse', min: 4, stackDelta: -3 },
  24142. { id: 'random', min: 0, stackDelta: 1 },
  24143. { id: 'mul', min: 2, stackDelta: -1,
  24144. stackFn: function stack_div(stack, index) {
  24145. stack[index - 2] = stack[index - 2] * stack[index - 1];
  24146. }
  24147. },
  24148. null,
  24149. { id: 'sqrt', min: 1, stackDelta: 0 },
  24150. { id: 'dup', min: 1, stackDelta: 1 },
  24151. { id: 'exch', min: 2, stackDelta: 0 },
  24152. { id: 'index', min: 2, stackDelta: 0 },
  24153. { id: 'roll', min: 3, stackDelta: -2 },
  24154. null,
  24155. null,
  24156. null,
  24157. { id: 'hflex', min: 7, resetStack: true },
  24158. { id: 'flex', min: 13, resetStack: true },
  24159. { id: 'hflex1', min: 9, resetStack: true },
  24160. { id: 'flex1', min: 11, resetStack: true }
  24161. ];
  24162. function CFFParser(file, properties) {
  24163. this.bytes = file.getBytes();
  24164. this.properties = properties;
  24165. }
  24166. CFFParser.prototype = {
  24167. parse: function CFFParser_parse() {
  24168. var properties = this.properties;
  24169. var cff = new CFF();
  24170. this.cff = cff;
  24171. // The first five sections must be in order, all the others are reached
  24172. // via offsets contained in one of the below.
  24173. var header = this.parseHeader();
  24174. var nameIndex = this.parseIndex(header.endPos);
  24175. var topDictIndex = this.parseIndex(nameIndex.endPos);
  24176. var stringIndex = this.parseIndex(topDictIndex.endPos);
  24177. var globalSubrIndex = this.parseIndex(stringIndex.endPos);
  24178. var topDictParsed = this.parseDict(topDictIndex.obj.get(0));
  24179. var topDict = this.createDict(CFFTopDict, topDictParsed, cff.strings);
  24180. cff.header = header.obj;
  24181. cff.names = this.parseNameIndex(nameIndex.obj);
  24182. cff.strings = this.parseStringIndex(stringIndex.obj);
  24183. cff.topDict = topDict;
  24184. cff.globalSubrIndex = globalSubrIndex.obj;
  24185. this.parsePrivateDict(cff.topDict);
  24186. cff.isCIDFont = topDict.hasName('ROS');
  24187. var charStringOffset = topDict.getByName('CharStrings');
  24188. var charStringsAndSeacs = this.parseCharStrings(charStringOffset);
  24189. cff.charStrings = charStringsAndSeacs.charStrings;
  24190. cff.seacs = charStringsAndSeacs.seacs;
  24191. var fontMatrix = topDict.getByName('FontMatrix');
  24192. if (fontMatrix) {
  24193. properties.fontMatrix = fontMatrix;
  24194. }
  24195. var fontBBox = topDict.getByName('FontBBox');
  24196. if (fontBBox) {
  24197. // adjusting ascent/descent
  24198. properties.ascent = fontBBox[3];
  24199. properties.descent = fontBBox[1];
  24200. properties.ascentScaled = true;
  24201. }
  24202. var charset, encoding;
  24203. if (cff.isCIDFont) {
  24204. var fdArrayIndex = this.parseIndex(topDict.getByName('FDArray')).obj;
  24205. for (var i = 0, ii = fdArrayIndex.count; i < ii; ++i) {
  24206. var dictRaw = fdArrayIndex.get(i);
  24207. var fontDict = this.createDict(CFFTopDict, this.parseDict(dictRaw),
  24208. cff.strings);
  24209. this.parsePrivateDict(fontDict);
  24210. cff.fdArray.push(fontDict);
  24211. }
  24212. // cid fonts don't have an encoding
  24213. encoding = null;
  24214. charset = this.parseCharsets(topDict.getByName('charset'),
  24215. cff.charStrings.count, cff.strings, true);
  24216. cff.fdSelect = this.parseFDSelect(topDict.getByName('FDSelect'),
  24217. cff.charStrings.count);
  24218. } else {
  24219. charset = this.parseCharsets(topDict.getByName('charset'),
  24220. cff.charStrings.count, cff.strings, false);
  24221. encoding = this.parseEncoding(topDict.getByName('Encoding'),
  24222. properties,
  24223. cff.strings, charset.charset);
  24224. }
  24225. cff.charset = charset;
  24226. cff.encoding = encoding;
  24227. return cff;
  24228. },
  24229. parseHeader: function CFFParser_parseHeader() {
  24230. var bytes = this.bytes;
  24231. var bytesLength = bytes.length;
  24232. var offset = 0;
  24233. // Prevent an infinite loop, by checking that the offset is within the
  24234. // bounds of the bytes array. Necessary in empty, or invalid, font files.
  24235. while (offset < bytesLength && bytes[offset] !== 1) {
  24236. ++offset;
  24237. }
  24238. if (offset >= bytesLength) {
  24239. error('Invalid CFF header');
  24240. } else if (offset !== 0) {
  24241. info('cff data is shifted');
  24242. bytes = bytes.subarray(offset);
  24243. this.bytes = bytes;
  24244. }
  24245. var major = bytes[0];
  24246. var minor = bytes[1];
  24247. var hdrSize = bytes[2];
  24248. var offSize = bytes[3];
  24249. var header = new CFFHeader(major, minor, hdrSize, offSize);
  24250. return { obj: header, endPos: hdrSize };
  24251. },
  24252. parseDict: function CFFParser_parseDict(dict) {
  24253. var pos = 0;
  24254. function parseOperand() {
  24255. var value = dict[pos++];
  24256. if (value === 30) {
  24257. return parseFloatOperand(pos);
  24258. } else if (value === 28) {
  24259. value = dict[pos++];
  24260. value = ((value << 24) | (dict[pos++] << 16)) >> 16;
  24261. return value;
  24262. } else if (value === 29) {
  24263. value = dict[pos++];
  24264. value = (value << 8) | dict[pos++];
  24265. value = (value << 8) | dict[pos++];
  24266. value = (value << 8) | dict[pos++];
  24267. return value;
  24268. } else if (value >= 32 && value <= 246) {
  24269. return value - 139;
  24270. } else if (value >= 247 && value <= 250) {
  24271. return ((value - 247) * 256) + dict[pos++] + 108;
  24272. } else if (value >= 251 && value <= 254) {
  24273. return -((value - 251) * 256) - dict[pos++] - 108;
  24274. } else {
  24275. error('255 is not a valid DICT command');
  24276. }
  24277. return -1;
  24278. }
  24279. function parseFloatOperand() {
  24280. var str = '';
  24281. var eof = 15;
  24282. var lookup = ['0', '1', '2', '3', '4', '5', '6', '7', '8',
  24283. '9', '.', 'E', 'E-', null, '-'];
  24284. var length = dict.length;
  24285. while (pos < length) {
  24286. var b = dict[pos++];
  24287. var b1 = b >> 4;
  24288. var b2 = b & 15;
  24289. if (b1 == eof) {
  24290. break;
  24291. }
  24292. str += lookup[b1];
  24293. if (b2 == eof) {
  24294. break;
  24295. }
  24296. str += lookup[b2];
  24297. }
  24298. return parseFloat(str);
  24299. }
  24300. var operands = [];
  24301. var entries = [];
  24302. pos = 0;
  24303. var end = dict.length;
  24304. while (pos < end) {
  24305. var b = dict[pos];
  24306. if (b <= 21) {
  24307. if (b === 12) {
  24308. b = (b << 8) | dict[++pos];
  24309. }
  24310. entries.push([b, operands]);
  24311. operands = [];
  24312. ++pos;
  24313. } else {
  24314. operands.push(parseOperand());
  24315. }
  24316. }
  24317. return entries;
  24318. },
  24319. parseIndex: function CFFParser_parseIndex(pos) {
  24320. var cffIndex = new CFFIndex();
  24321. var bytes = this.bytes;
  24322. var count = (bytes[pos++] << 8) | bytes[pos++];
  24323. var offsets = [];
  24324. var end = pos;
  24325. var i, ii;
  24326. if (count !== 0) {
  24327. var offsetSize = bytes[pos++];
  24328. // add 1 for offset to determine size of last object
  24329. var startPos = pos + ((count + 1) * offsetSize) - 1;
  24330. for (i = 0, ii = count + 1; i < ii; ++i) {
  24331. var offset = 0;
  24332. for (var j = 0; j < offsetSize; ++j) {
  24333. offset <<= 8;
  24334. offset += bytes[pos++];
  24335. }
  24336. offsets.push(startPos + offset);
  24337. }
  24338. end = offsets[count];
  24339. }
  24340. for (i = 0, ii = offsets.length - 1; i < ii; ++i) {
  24341. var offsetStart = offsets[i];
  24342. var offsetEnd = offsets[i + 1];
  24343. cffIndex.add(bytes.subarray(offsetStart, offsetEnd));
  24344. }
  24345. return {obj: cffIndex, endPos: end};
  24346. },
  24347. parseNameIndex: function CFFParser_parseNameIndex(index) {
  24348. var names = [];
  24349. for (var i = 0, ii = index.count; i < ii; ++i) {
  24350. var name = index.get(i);
  24351. // OTS doesn't allow names to be over 127 characters.
  24352. var length = Math.min(name.length, 127);
  24353. var data = [];
  24354. // OTS also only permits certain characters in the name.
  24355. for (var j = 0; j < length; ++j) {
  24356. var c = name[j];
  24357. if (j === 0 && c === 0) {
  24358. data[j] = c;
  24359. continue;
  24360. }
  24361. if ((c < 33 || c > 126) || c === 91 /* [ */ || c === 93 /* ] */ ||
  24362. c === 40 /* ( */ || c === 41 /* ) */ || c === 123 /* { */ ||
  24363. c === 125 /* } */ || c === 60 /* < */ || c === 62 /* > */ ||
  24364. c === 47 /* / */ || c === 37 /* % */ || c === 35 /* # */) {
  24365. data[j] = 95;
  24366. continue;
  24367. }
  24368. data[j] = c;
  24369. }
  24370. names.push(bytesToString(data));
  24371. }
  24372. return names;
  24373. },
  24374. parseStringIndex: function CFFParser_parseStringIndex(index) {
  24375. var strings = new CFFStrings();
  24376. for (var i = 0, ii = index.count; i < ii; ++i) {
  24377. var data = index.get(i);
  24378. strings.add(bytesToString(data));
  24379. }
  24380. return strings;
  24381. },
  24382. createDict: function CFFParser_createDict(Type, dict, strings) {
  24383. var cffDict = new Type(strings);
  24384. for (var i = 0, ii = dict.length; i < ii; ++i) {
  24385. var pair = dict[i];
  24386. var key = pair[0];
  24387. var value = pair[1];
  24388. cffDict.setByKey(key, value);
  24389. }
  24390. return cffDict;
  24391. },
  24392. parseCharStrings: function CFFParser_parseCharStrings(charStringOffset) {
  24393. var charStrings = this.parseIndex(charStringOffset).obj;
  24394. var seacs = [];
  24395. var count = charStrings.count;
  24396. for (var i = 0; i < count; i++) {
  24397. var charstring = charStrings.get(i);
  24398. var stackSize = 0;
  24399. var stack = [];
  24400. var undefStack = true;
  24401. var hints = 0;
  24402. var valid = true;
  24403. var data = charstring;
  24404. var length = data.length;
  24405. for (var j = 0; j < length;) {
  24406. var value = data[j++];
  24407. var validationCommand = null;
  24408. if (value == 12) {
  24409. var q = data[j++];
  24410. if (q === 0) {
  24411. // The CFF specification state that the 'dotsection' command
  24412. // (12, 0) is deprecated and treated as a no-op, but all Type2
  24413. // charstrings processors should support them. Unfortunately
  24414. // the font sanitizer don't. As a workaround the sequence (12, 0)
  24415. // is replaced by a useless (0, hmoveto).
  24416. data[j - 2] = 139;
  24417. data[j - 1] = 22;
  24418. stackSize = 0;
  24419. } else {
  24420. validationCommand = CharstringValidationData12[q];
  24421. }
  24422. } else if (value === 28) { // number (16 bit)
  24423. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16)) >> 16;
  24424. j += 2;
  24425. stackSize++;
  24426. } else if (value == 14) {
  24427. if (stackSize >= 4) {
  24428. stackSize -= 4;
  24429. if (SEAC_ANALYSIS_ENABLED) {
  24430. seacs[i] = stack.slice(stackSize, stackSize + 4);
  24431. valid = false;
  24432. }
  24433. }
  24434. } else if (value >= 32 && value <= 246) { // number
  24435. stack[stackSize] = value - 139;
  24436. stackSize++;
  24437. } else if (value >= 247 && value <= 254) { // number (+1 bytes)
  24438. stack[stackSize] = (value < 251 ?
  24439. ((value - 247) << 8) + data[j] + 108 :
  24440. -((value - 251) << 8) - data[j] - 108);
  24441. j++;
  24442. stackSize++;
  24443. } else if (value == 255) { // number (32 bit)
  24444. stack[stackSize] = ((data[j] << 24) | (data[j + 1] << 16) |
  24445. (data[j + 2] << 8) | data[j + 3]) / 65536;
  24446. j += 4;
  24447. stackSize++;
  24448. } else if (value == 19 || value == 20) {
  24449. hints += stackSize >> 1;
  24450. j += (hints + 7) >> 3; // skipping right amount of hints flag data
  24451. stackSize = 0;
  24452. } else {
  24453. validationCommand = CharstringValidationData[value];
  24454. }
  24455. if (validationCommand) {
  24456. if (validationCommand.stem) {
  24457. hints += stackSize >> 1;
  24458. }
  24459. if ('min' in validationCommand) {
  24460. if (!undefStack && stackSize < validationCommand.min) {
  24461. warn('Not enough parameters for ' + validationCommand.id +
  24462. '; actual: ' + stackSize +
  24463. ', expected: ' + validationCommand.min);
  24464. valid = false;
  24465. break;
  24466. }
  24467. }
  24468. if ('stackDelta' in validationCommand) {
  24469. if ('stackFn' in validationCommand) {
  24470. validationCommand.stackFn(stack, stackSize);
  24471. }
  24472. stackSize += validationCommand.stackDelta;
  24473. } else if (validationCommand.resetStack) {
  24474. stackSize = 0;
  24475. undefStack = false;
  24476. } else if (validationCommand.undefStack) {
  24477. stackSize = 0;
  24478. undefStack = true;
  24479. }
  24480. }
  24481. }
  24482. if (!valid) {
  24483. // resetting invalid charstring to single 'endchar'
  24484. charStrings.set(i, new Uint8Array([14]));
  24485. }
  24486. }
  24487. return { charStrings: charStrings, seacs: seacs };
  24488. },
  24489. emptyPrivateDictionary:
  24490. function CFFParser_emptyPrivateDictionary(parentDict) {
  24491. var privateDict = this.createDict(CFFPrivateDict, [],
  24492. parentDict.strings);
  24493. parentDict.setByKey(18, [0, 0]);
  24494. parentDict.privateDict = privateDict;
  24495. },
  24496. parsePrivateDict: function CFFParser_parsePrivateDict(parentDict) {
  24497. // no private dict, do nothing
  24498. if (!parentDict.hasName('Private')) {
  24499. this.emptyPrivateDictionary(parentDict);
  24500. return;
  24501. }
  24502. var privateOffset = parentDict.getByName('Private');
  24503. // make sure the params are formatted correctly
  24504. if (!isArray(privateOffset) || privateOffset.length !== 2) {
  24505. parentDict.removeByName('Private');
  24506. return;
  24507. }
  24508. var size = privateOffset[0];
  24509. var offset = privateOffset[1];
  24510. // remove empty dicts or ones that refer to invalid location
  24511. if (size === 0 || offset >= this.bytes.length) {
  24512. this.emptyPrivateDictionary(parentDict);
  24513. return;
  24514. }
  24515. var privateDictEnd = offset + size;
  24516. var dictData = this.bytes.subarray(offset, privateDictEnd);
  24517. var dict = this.parseDict(dictData);
  24518. var privateDict = this.createDict(CFFPrivateDict, dict,
  24519. parentDict.strings);
  24520. parentDict.privateDict = privateDict;
  24521. // Parse the Subrs index also since it's relative to the private dict.
  24522. if (!privateDict.getByName('Subrs')) {
  24523. return;
  24524. }
  24525. var subrsOffset = privateDict.getByName('Subrs');
  24526. var relativeOffset = offset + subrsOffset;
  24527. // Validate the offset.
  24528. if (subrsOffset === 0 || relativeOffset >= this.bytes.length) {
  24529. this.emptyPrivateDictionary(parentDict);
  24530. return;
  24531. }
  24532. var subrsIndex = this.parseIndex(relativeOffset);
  24533. privateDict.subrsIndex = subrsIndex.obj;
  24534. },
  24535. parseCharsets: function CFFParser_parseCharsets(pos, length, strings, cid) {
  24536. if (pos === 0) {
  24537. return new CFFCharset(true, CFFCharsetPredefinedTypes.ISO_ADOBE,
  24538. ISOAdobeCharset);
  24539. } else if (pos == 1) {
  24540. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT,
  24541. ExpertCharset);
  24542. } else if (pos == 2) {
  24543. return new CFFCharset(true, CFFCharsetPredefinedTypes.EXPERT_SUBSET,
  24544. ExpertSubsetCharset);
  24545. }
  24546. var bytes = this.bytes;
  24547. var start = pos;
  24548. var format = bytes[pos++];
  24549. var charset = ['.notdef'];
  24550. var id, count, i;
  24551. // subtract 1 for the .notdef glyph
  24552. length -= 1;
  24553. switch (format) {
  24554. case 0:
  24555. for (i = 0; i < length; i++) {
  24556. id = (bytes[pos++] << 8) | bytes[pos++];
  24557. charset.push(cid ? id : strings.get(id));
  24558. }
  24559. break;
  24560. case 1:
  24561. while (charset.length <= length) {
  24562. id = (bytes[pos++] << 8) | bytes[pos++];
  24563. count = bytes[pos++];
  24564. for (i = 0; i <= count; i++) {
  24565. charset.push(cid ? id++ : strings.get(id++));
  24566. }
  24567. }
  24568. break;
  24569. case 2:
  24570. while (charset.length <= length) {
  24571. id = (bytes[pos++] << 8) | bytes[pos++];
  24572. count = (bytes[pos++] << 8) | bytes[pos++];
  24573. for (i = 0; i <= count; i++) {
  24574. charset.push(cid ? id++ : strings.get(id++));
  24575. }
  24576. }
  24577. break;
  24578. default:
  24579. error('Unknown charset format');
  24580. }
  24581. // Raw won't be needed if we actually compile the charset.
  24582. var end = pos;
  24583. var raw = bytes.subarray(start, end);
  24584. return new CFFCharset(false, format, charset, raw);
  24585. },
  24586. parseEncoding: function CFFParser_parseEncoding(pos,
  24587. properties,
  24588. strings,
  24589. charset) {
  24590. var encoding = {};
  24591. var bytes = this.bytes;
  24592. var predefined = false;
  24593. var hasSupplement = false;
  24594. var format, i, ii;
  24595. var raw = null;
  24596. function readSupplement() {
  24597. var supplementsCount = bytes[pos++];
  24598. for (i = 0; i < supplementsCount; i++) {
  24599. var code = bytes[pos++];
  24600. var sid = (bytes[pos++] << 8) + (bytes[pos++] & 0xff);
  24601. encoding[code] = charset.indexOf(strings.get(sid));
  24602. }
  24603. }
  24604. if (pos === 0 || pos == 1) {
  24605. predefined = true;
  24606. format = pos;
  24607. var baseEncoding = pos ? Encodings.ExpertEncoding :
  24608. Encodings.StandardEncoding;
  24609. for (i = 0, ii = charset.length; i < ii; i++) {
  24610. var index = baseEncoding.indexOf(charset[i]);
  24611. if (index != -1) {
  24612. encoding[index] = i;
  24613. }
  24614. }
  24615. } else {
  24616. var dataStart = pos;
  24617. format = bytes[pos++];
  24618. switch (format & 0x7f) {
  24619. case 0:
  24620. var glyphsCount = bytes[pos++];
  24621. for (i = 1; i <= glyphsCount; i++) {
  24622. encoding[bytes[pos++]] = i;
  24623. }
  24624. break;
  24625. case 1:
  24626. var rangesCount = bytes[pos++];
  24627. var gid = 1;
  24628. for (i = 0; i < rangesCount; i++) {
  24629. var start = bytes[pos++];
  24630. var left = bytes[pos++];
  24631. for (var j = start; j <= start + left; j++) {
  24632. encoding[j] = gid++;
  24633. }
  24634. }
  24635. break;
  24636. default:
  24637. error('Unknow encoding format: ' + format + ' in CFF');
  24638. break;
  24639. }
  24640. var dataEnd = pos;
  24641. if (format & 0x80) {
  24642. // The font sanitizer does not support CFF encoding with a
  24643. // supplement, since the encoding is not really used to map
  24644. // between gid to glyph, let's overwrite what is declared in
  24645. // the top dictionary to let the sanitizer think the font use
  24646. // StandardEncoding, that's a lie but that's ok.
  24647. bytes[dataStart] &= 0x7f;
  24648. readSupplement();
  24649. hasSupplement = true;
  24650. }
  24651. raw = bytes.subarray(dataStart, dataEnd);
  24652. }
  24653. format = format & 0x7f;
  24654. return new CFFEncoding(predefined, format, encoding, raw);
  24655. },
  24656. parseFDSelect: function CFFParser_parseFDSelect(pos, length) {
  24657. var start = pos;
  24658. var bytes = this.bytes;
  24659. var format = bytes[pos++];
  24660. var fdSelect = [];
  24661. var i;
  24662. switch (format) {
  24663. case 0:
  24664. for (i = 0; i < length; ++i) {
  24665. var id = bytes[pos++];
  24666. fdSelect.push(id);
  24667. }
  24668. break;
  24669. case 3:
  24670. var rangesCount = (bytes[pos++] << 8) | bytes[pos++];
  24671. for (i = 0; i < rangesCount; ++i) {
  24672. var first = (bytes[pos++] << 8) | bytes[pos++];
  24673. var fdIndex = bytes[pos++];
  24674. var next = (bytes[pos] << 8) | bytes[pos + 1];
  24675. for (var j = first; j < next; ++j) {
  24676. fdSelect.push(fdIndex);
  24677. }
  24678. }
  24679. // Advance past the sentinel(next).
  24680. pos += 2;
  24681. break;
  24682. default:
  24683. error('Unknown fdselect format ' + format);
  24684. break;
  24685. }
  24686. var end = pos;
  24687. return new CFFFDSelect(fdSelect, bytes.subarray(start, end));
  24688. }
  24689. };
  24690. return CFFParser;
  24691. })();
  24692. // Compact Font Format
  24693. var CFF = (function CFFClosure() {
  24694. function CFF() {
  24695. this.header = null;
  24696. this.names = [];
  24697. this.topDict = null;
  24698. this.strings = new CFFStrings();
  24699. this.globalSubrIndex = null;
  24700. // The following could really be per font, but since we only have one font
  24701. // store them here.
  24702. this.encoding = null;
  24703. this.charset = null;
  24704. this.charStrings = null;
  24705. this.fdArray = [];
  24706. this.fdSelect = null;
  24707. this.isCIDFont = false;
  24708. }
  24709. return CFF;
  24710. })();
  24711. var CFFHeader = (function CFFHeaderClosure() {
  24712. function CFFHeader(major, minor, hdrSize, offSize) {
  24713. this.major = major;
  24714. this.minor = minor;
  24715. this.hdrSize = hdrSize;
  24716. this.offSize = offSize;
  24717. }
  24718. return CFFHeader;
  24719. })();
  24720. var CFFStrings = (function CFFStringsClosure() {
  24721. function CFFStrings() {
  24722. this.strings = [];
  24723. }
  24724. CFFStrings.prototype = {
  24725. get: function CFFStrings_get(index) {
  24726. if (index >= 0 && index <= 390) {
  24727. return CFFStandardStrings[index];
  24728. }
  24729. if (index - 391 <= this.strings.length) {
  24730. return this.strings[index - 391];
  24731. }
  24732. return CFFStandardStrings[0];
  24733. },
  24734. add: function CFFStrings_add(value) {
  24735. this.strings.push(value);
  24736. },
  24737. get count() {
  24738. return this.strings.length;
  24739. }
  24740. };
  24741. return CFFStrings;
  24742. })();
  24743. var CFFIndex = (function CFFIndexClosure() {
  24744. function CFFIndex() {
  24745. this.objects = [];
  24746. this.length = 0;
  24747. }
  24748. CFFIndex.prototype = {
  24749. add: function CFFIndex_add(data) {
  24750. this.length += data.length;
  24751. this.objects.push(data);
  24752. },
  24753. set: function CFFIndex_set(index, data) {
  24754. this.length += data.length - this.objects[index].length;
  24755. this.objects[index] = data;
  24756. },
  24757. get: function CFFIndex_get(index) {
  24758. return this.objects[index];
  24759. },
  24760. get count() {
  24761. return this.objects.length;
  24762. }
  24763. };
  24764. return CFFIndex;
  24765. })();
  24766. var CFFDict = (function CFFDictClosure() {
  24767. function CFFDict(tables, strings) {
  24768. this.keyToNameMap = tables.keyToNameMap;
  24769. this.nameToKeyMap = tables.nameToKeyMap;
  24770. this.defaults = tables.defaults;
  24771. this.types = tables.types;
  24772. this.opcodes = tables.opcodes;
  24773. this.order = tables.order;
  24774. this.strings = strings;
  24775. this.values = {};
  24776. }
  24777. CFFDict.prototype = {
  24778. // value should always be an array
  24779. setByKey: function CFFDict_setByKey(key, value) {
  24780. if (!(key in this.keyToNameMap)) {
  24781. return false;
  24782. }
  24783. // ignore empty values
  24784. if (value.length === 0) {
  24785. return true;
  24786. }
  24787. var type = this.types[key];
  24788. // remove the array wrapping these types of values
  24789. if (type === 'num' || type === 'sid' || type === 'offset') {
  24790. value = value[0];
  24791. }
  24792. this.values[key] = value;
  24793. return true;
  24794. },
  24795. setByName: function CFFDict_setByName(name, value) {
  24796. if (!(name in this.nameToKeyMap)) {
  24797. error('Invalid dictionary name "' + name + '"');
  24798. }
  24799. this.values[this.nameToKeyMap[name]] = value;
  24800. },
  24801. hasName: function CFFDict_hasName(name) {
  24802. return this.nameToKeyMap[name] in this.values;
  24803. },
  24804. getByName: function CFFDict_getByName(name) {
  24805. if (!(name in this.nameToKeyMap)) {
  24806. error('Invalid dictionary name "' + name + '"');
  24807. }
  24808. var key = this.nameToKeyMap[name];
  24809. if (!(key in this.values)) {
  24810. return this.defaults[key];
  24811. }
  24812. return this.values[key];
  24813. },
  24814. removeByName: function CFFDict_removeByName(name) {
  24815. delete this.values[this.nameToKeyMap[name]];
  24816. }
  24817. };
  24818. CFFDict.createTables = function CFFDict_createTables(layout) {
  24819. var tables = {
  24820. keyToNameMap: {},
  24821. nameToKeyMap: {},
  24822. defaults: {},
  24823. types: {},
  24824. opcodes: {},
  24825. order: []
  24826. };
  24827. for (var i = 0, ii = layout.length; i < ii; ++i) {
  24828. var entry = layout[i];
  24829. var key = isArray(entry[0]) ? (entry[0][0] << 8) + entry[0][1] : entry[0];
  24830. tables.keyToNameMap[key] = entry[1];
  24831. tables.nameToKeyMap[entry[1]] = key;
  24832. tables.types[key] = entry[2];
  24833. tables.defaults[key] = entry[3];
  24834. tables.opcodes[key] = isArray(entry[0]) ? entry[0] : [entry[0]];
  24835. tables.order.push(key);
  24836. }
  24837. return tables;
  24838. };
  24839. return CFFDict;
  24840. })();
  24841. var CFFTopDict = (function CFFTopDictClosure() {
  24842. var layout = [
  24843. [[12, 30], 'ROS', ['sid', 'sid', 'num'], null],
  24844. [[12, 20], 'SyntheticBase', 'num', null],
  24845. [0, 'version', 'sid', null],
  24846. [1, 'Notice', 'sid', null],
  24847. [[12, 0], 'Copyright', 'sid', null],
  24848. [2, 'FullName', 'sid', null],
  24849. [3, 'FamilyName', 'sid', null],
  24850. [4, 'Weight', 'sid', null],
  24851. [[12, 1], 'isFixedPitch', 'num', 0],
  24852. [[12, 2], 'ItalicAngle', 'num', 0],
  24853. [[12, 3], 'UnderlinePosition', 'num', -100],
  24854. [[12, 4], 'UnderlineThickness', 'num', 50],
  24855. [[12, 5], 'PaintType', 'num', 0],
  24856. [[12, 6], 'CharstringType', 'num', 2],
  24857. [[12, 7], 'FontMatrix', ['num', 'num', 'num', 'num', 'num', 'num'],
  24858. [0.001, 0, 0, 0.001, 0, 0]],
  24859. [13, 'UniqueID', 'num', null],
  24860. [5, 'FontBBox', ['num', 'num', 'num', 'num'], [0, 0, 0, 0]],
  24861. [[12, 8], 'StrokeWidth', 'num', 0],
  24862. [14, 'XUID', 'array', null],
  24863. [15, 'charset', 'offset', 0],
  24864. [16, 'Encoding', 'offset', 0],
  24865. [17, 'CharStrings', 'offset', 0],
  24866. [18, 'Private', ['offset', 'offset'], null],
  24867. [[12, 21], 'PostScript', 'sid', null],
  24868. [[12, 22], 'BaseFontName', 'sid', null],
  24869. [[12, 23], 'BaseFontBlend', 'delta', null],
  24870. [[12, 31], 'CIDFontVersion', 'num', 0],
  24871. [[12, 32], 'CIDFontRevision', 'num', 0],
  24872. [[12, 33], 'CIDFontType', 'num', 0],
  24873. [[12, 34], 'CIDCount', 'num', 8720],
  24874. [[12, 35], 'UIDBase', 'num', null],
  24875. // XXX: CID Fonts on DirectWrite 6.1 only seem to work if FDSelect comes
  24876. // before FDArray.
  24877. [[12, 37], 'FDSelect', 'offset', null],
  24878. [[12, 36], 'FDArray', 'offset', null],
  24879. [[12, 38], 'FontName', 'sid', null]
  24880. ];
  24881. var tables = null;
  24882. function CFFTopDict(strings) {
  24883. if (tables === null) {
  24884. tables = CFFDict.createTables(layout);
  24885. }
  24886. CFFDict.call(this, tables, strings);
  24887. this.privateDict = null;
  24888. }
  24889. CFFTopDict.prototype = Object.create(CFFDict.prototype);
  24890. return CFFTopDict;
  24891. })();
  24892. var CFFPrivateDict = (function CFFPrivateDictClosure() {
  24893. var layout = [
  24894. [6, 'BlueValues', 'delta', null],
  24895. [7, 'OtherBlues', 'delta', null],
  24896. [8, 'FamilyBlues', 'delta', null],
  24897. [9, 'FamilyOtherBlues', 'delta', null],
  24898. [[12, 9], 'BlueScale', 'num', 0.039625],
  24899. [[12, 10], 'BlueShift', 'num', 7],
  24900. [[12, 11], 'BlueFuzz', 'num', 1],
  24901. [10, 'StdHW', 'num', null],
  24902. [11, 'StdVW', 'num', null],
  24903. [[12, 12], 'StemSnapH', 'delta', null],
  24904. [[12, 13], 'StemSnapV', 'delta', null],
  24905. [[12, 14], 'ForceBold', 'num', 0],
  24906. [[12, 17], 'LanguageGroup', 'num', 0],
  24907. [[12, 18], 'ExpansionFactor', 'num', 0.06],
  24908. [[12, 19], 'initialRandomSeed', 'num', 0],
  24909. [20, 'defaultWidthX', 'num', 0],
  24910. [21, 'nominalWidthX', 'num', 0],
  24911. [19, 'Subrs', 'offset', null]
  24912. ];
  24913. var tables = null;
  24914. function CFFPrivateDict(strings) {
  24915. if (tables === null) {
  24916. tables = CFFDict.createTables(layout);
  24917. }
  24918. CFFDict.call(this, tables, strings);
  24919. this.subrsIndex = null;
  24920. }
  24921. CFFPrivateDict.prototype = Object.create(CFFDict.prototype);
  24922. return CFFPrivateDict;
  24923. })();
  24924. var CFFCharsetPredefinedTypes = {
  24925. ISO_ADOBE: 0,
  24926. EXPERT: 1,
  24927. EXPERT_SUBSET: 2
  24928. };
  24929. var CFFCharset = (function CFFCharsetClosure() {
  24930. function CFFCharset(predefined, format, charset, raw) {
  24931. this.predefined = predefined;
  24932. this.format = format;
  24933. this.charset = charset;
  24934. this.raw = raw;
  24935. }
  24936. return CFFCharset;
  24937. })();
  24938. var CFFEncoding = (function CFFEncodingClosure() {
  24939. function CFFEncoding(predefined, format, encoding, raw) {
  24940. this.predefined = predefined;
  24941. this.format = format;
  24942. this.encoding = encoding;
  24943. this.raw = raw;
  24944. }
  24945. return CFFEncoding;
  24946. })();
  24947. var CFFFDSelect = (function CFFFDSelectClosure() {
  24948. function CFFFDSelect(fdSelect, raw) {
  24949. this.fdSelect = fdSelect;
  24950. this.raw = raw;
  24951. }
  24952. return CFFFDSelect;
  24953. })();
  24954. // Helper class to keep track of where an offset is within the data and helps
  24955. // filling in that offset once it's known.
  24956. var CFFOffsetTracker = (function CFFOffsetTrackerClosure() {
  24957. function CFFOffsetTracker() {
  24958. this.offsets = {};
  24959. }
  24960. CFFOffsetTracker.prototype = {
  24961. isTracking: function CFFOffsetTracker_isTracking(key) {
  24962. return key in this.offsets;
  24963. },
  24964. track: function CFFOffsetTracker_track(key, location) {
  24965. if (key in this.offsets) {
  24966. error('Already tracking location of ' + key);
  24967. }
  24968. this.offsets[key] = location;
  24969. },
  24970. offset: function CFFOffsetTracker_offset(value) {
  24971. for (var key in this.offsets) {
  24972. this.offsets[key] += value;
  24973. }
  24974. },
  24975. setEntryLocation: function CFFOffsetTracker_setEntryLocation(key,
  24976. values,
  24977. output) {
  24978. if (!(key in this.offsets)) {
  24979. error('Not tracking location of ' + key);
  24980. }
  24981. var data = output.data;
  24982. var dataOffset = this.offsets[key];
  24983. var size = 5;
  24984. for (var i = 0, ii = values.length; i < ii; ++i) {
  24985. var offset0 = i * size + dataOffset;
  24986. var offset1 = offset0 + 1;
  24987. var offset2 = offset0 + 2;
  24988. var offset3 = offset0 + 3;
  24989. var offset4 = offset0 + 4;
  24990. // It's easy to screw up offsets so perform this sanity check.
  24991. if (data[offset0] !== 0x1d || data[offset1] !== 0 ||
  24992. data[offset2] !== 0 || data[offset3] !== 0 || data[offset4] !== 0) {
  24993. error('writing to an offset that is not empty');
  24994. }
  24995. var value = values[i];
  24996. data[offset0] = 0x1d;
  24997. data[offset1] = (value >> 24) & 0xFF;
  24998. data[offset2] = (value >> 16) & 0xFF;
  24999. data[offset3] = (value >> 8) & 0xFF;
  25000. data[offset4] = value & 0xFF;
  25001. }
  25002. }
  25003. };
  25004. return CFFOffsetTracker;
  25005. })();
  25006. // Takes a CFF and converts it to the binary representation.
  25007. var CFFCompiler = (function CFFCompilerClosure() {
  25008. function CFFCompiler(cff) {
  25009. this.cff = cff;
  25010. }
  25011. CFFCompiler.prototype = {
  25012. compile: function CFFCompiler_compile() {
  25013. var cff = this.cff;
  25014. var output = {
  25015. data: [],
  25016. length: 0,
  25017. add: function CFFCompiler_add(data) {
  25018. this.data = this.data.concat(data);
  25019. this.length = this.data.length;
  25020. }
  25021. };
  25022. // Compile the five entries that must be in order.
  25023. var header = this.compileHeader(cff.header);
  25024. output.add(header);
  25025. var nameIndex = this.compileNameIndex(cff.names);
  25026. output.add(nameIndex);
  25027. if (cff.isCIDFont) {
  25028. // The spec is unclear on how font matrices should relate to each other
  25029. // when there is one in the main top dict and the sub top dicts.
  25030. // Windows handles this differently than linux and osx so we have to
  25031. // normalize to work on all.
  25032. // Rules based off of some mailing list discussions:
  25033. // - If main font has a matrix and subfont doesn't, use the main matrix.
  25034. // - If no main font matrix and there is a subfont matrix, use the
  25035. // subfont matrix.
  25036. // - If both have matrices, concat together.
  25037. // - If neither have matrices, use default.
  25038. // To make this work on all platforms we move the top matrix into each
  25039. // sub top dict and concat if necessary.
  25040. if (cff.topDict.hasName('FontMatrix')) {
  25041. var base = cff.topDict.getByName('FontMatrix');
  25042. cff.topDict.removeByName('FontMatrix');
  25043. for (var i = 0, ii = cff.fdArray.length; i < ii; i++) {
  25044. var subDict = cff.fdArray[i];
  25045. var matrix = base.slice(0);
  25046. if (subDict.hasName('FontMatrix')) {
  25047. matrix = Util.transform(matrix, subDict.getByName('FontMatrix'));
  25048. }
  25049. subDict.setByName('FontMatrix', matrix);
  25050. }
  25051. }
  25052. }
  25053. var compiled = this.compileTopDicts([cff.topDict],
  25054. output.length,
  25055. cff.isCIDFont);
  25056. output.add(compiled.output);
  25057. var topDictTracker = compiled.trackers[0];
  25058. var stringIndex = this.compileStringIndex(cff.strings.strings);
  25059. output.add(stringIndex);
  25060. var globalSubrIndex = this.compileIndex(cff.globalSubrIndex);
  25061. output.add(globalSubrIndex);
  25062. // Now start on the other entries that have no specfic order.
  25063. if (cff.encoding && cff.topDict.hasName('Encoding')) {
  25064. if (cff.encoding.predefined) {
  25065. topDictTracker.setEntryLocation('Encoding', [cff.encoding.format],
  25066. output);
  25067. } else {
  25068. var encoding = this.compileEncoding(cff.encoding);
  25069. topDictTracker.setEntryLocation('Encoding', [output.length], output);
  25070. output.add(encoding);
  25071. }
  25072. }
  25073. if (cff.charset && cff.topDict.hasName('charset')) {
  25074. if (cff.charset.predefined) {
  25075. topDictTracker.setEntryLocation('charset', [cff.charset.format],
  25076. output);
  25077. } else {
  25078. var charset = this.compileCharset(cff.charset);
  25079. topDictTracker.setEntryLocation('charset', [output.length], output);
  25080. output.add(charset);
  25081. }
  25082. }
  25083. var charStrings = this.compileCharStrings(cff.charStrings);
  25084. topDictTracker.setEntryLocation('CharStrings', [output.length], output);
  25085. output.add(charStrings);
  25086. if (cff.isCIDFont) {
  25087. // For some reason FDSelect must be in front of FDArray on windows. OSX
  25088. // and linux don't seem to care.
  25089. topDictTracker.setEntryLocation('FDSelect', [output.length], output);
  25090. var fdSelect = this.compileFDSelect(cff.fdSelect.raw);
  25091. output.add(fdSelect);
  25092. // It is unclear if the sub font dictionary can have CID related
  25093. // dictionary keys, but the sanitizer doesn't like them so remove them.
  25094. compiled = this.compileTopDicts(cff.fdArray, output.length, true);
  25095. topDictTracker.setEntryLocation('FDArray', [output.length], output);
  25096. output.add(compiled.output);
  25097. var fontDictTrackers = compiled.trackers;
  25098. this.compilePrivateDicts(cff.fdArray, fontDictTrackers, output);
  25099. }
  25100. this.compilePrivateDicts([cff.topDict], [topDictTracker], output);
  25101. // If the font data ends with INDEX whose object data is zero-length,
  25102. // the sanitizer will bail out. Add a dummy byte to avoid that.
  25103. output.add([0]);
  25104. return output.data;
  25105. },
  25106. encodeNumber: function CFFCompiler_encodeNumber(value) {
  25107. if (parseFloat(value) == parseInt(value, 10) && !isNaN(value)) { // isInt
  25108. return this.encodeInteger(value);
  25109. } else {
  25110. return this.encodeFloat(value);
  25111. }
  25112. },
  25113. encodeFloat: function CFFCompiler_encodeFloat(num) {
  25114. var value = num.toString();
  25115. // rounding inaccurate doubles
  25116. var m = /\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(value);
  25117. if (m) {
  25118. var epsilon = parseFloat('1e' + ((m[2] ? +m[2] : 0) + m[1].length));
  25119. value = (Math.round(num * epsilon) / epsilon).toString();
  25120. }
  25121. var nibbles = '';
  25122. var i, ii;
  25123. for (i = 0, ii = value.length; i < ii; ++i) {
  25124. var a = value[i];
  25125. if (a === 'e') {
  25126. nibbles += value[++i] === '-' ? 'c' : 'b';
  25127. } else if (a === '.') {
  25128. nibbles += 'a';
  25129. } else if (a === '-') {
  25130. nibbles += 'e';
  25131. } else {
  25132. nibbles += a;
  25133. }
  25134. }
  25135. nibbles += (nibbles.length & 1) ? 'f' : 'ff';
  25136. var out = [30];
  25137. for (i = 0, ii = nibbles.length; i < ii; i += 2) {
  25138. out.push(parseInt(nibbles.substr(i, 2), 16));
  25139. }
  25140. return out;
  25141. },
  25142. encodeInteger: function CFFCompiler_encodeInteger(value) {
  25143. var code;
  25144. if (value >= -107 && value <= 107) {
  25145. code = [value + 139];
  25146. } else if (value >= 108 && value <= 1131) {
  25147. value = [value - 108];
  25148. code = [(value >> 8) + 247, value & 0xFF];
  25149. } else if (value >= -1131 && value <= -108) {
  25150. value = -value - 108;
  25151. code = [(value >> 8) + 251, value & 0xFF];
  25152. } else if (value >= -32768 && value <= 32767) {
  25153. code = [0x1c, (value >> 8) & 0xFF, value & 0xFF];
  25154. } else {
  25155. code = [0x1d,
  25156. (value >> 24) & 0xFF,
  25157. (value >> 16) & 0xFF,
  25158. (value >> 8) & 0xFF,
  25159. value & 0xFF];
  25160. }
  25161. return code;
  25162. },
  25163. compileHeader: function CFFCompiler_compileHeader(header) {
  25164. return [
  25165. header.major,
  25166. header.minor,
  25167. header.hdrSize,
  25168. header.offSize
  25169. ];
  25170. },
  25171. compileNameIndex: function CFFCompiler_compileNameIndex(names) {
  25172. var nameIndex = new CFFIndex();
  25173. for (var i = 0, ii = names.length; i < ii; ++i) {
  25174. nameIndex.add(stringToArray(names[i]));
  25175. }
  25176. return this.compileIndex(nameIndex);
  25177. },
  25178. compileTopDicts: function CFFCompiler_compileTopDicts(dicts,
  25179. length,
  25180. removeCidKeys) {
  25181. var fontDictTrackers = [];
  25182. var fdArrayIndex = new CFFIndex();
  25183. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  25184. var fontDict = dicts[i];
  25185. if (removeCidKeys) {
  25186. fontDict.removeByName('CIDFontVersion');
  25187. fontDict.removeByName('CIDFontRevision');
  25188. fontDict.removeByName('CIDFontType');
  25189. fontDict.removeByName('CIDCount');
  25190. fontDict.removeByName('UIDBase');
  25191. }
  25192. var fontDictTracker = new CFFOffsetTracker();
  25193. var fontDictData = this.compileDict(fontDict, fontDictTracker);
  25194. fontDictTrackers.push(fontDictTracker);
  25195. fdArrayIndex.add(fontDictData);
  25196. fontDictTracker.offset(length);
  25197. }
  25198. fdArrayIndex = this.compileIndex(fdArrayIndex, fontDictTrackers);
  25199. return {
  25200. trackers: fontDictTrackers,
  25201. output: fdArrayIndex
  25202. };
  25203. },
  25204. compilePrivateDicts: function CFFCompiler_compilePrivateDicts(dicts,
  25205. trackers,
  25206. output) {
  25207. for (var i = 0, ii = dicts.length; i < ii; ++i) {
  25208. var fontDict = dicts[i];
  25209. assert(fontDict.privateDict && fontDict.hasName('Private'),
  25210. 'There must be an private dictionary.');
  25211. var privateDict = fontDict.privateDict;
  25212. var privateDictTracker = new CFFOffsetTracker();
  25213. var privateDictData = this.compileDict(privateDict, privateDictTracker);
  25214. var outputLength = output.length;
  25215. privateDictTracker.offset(outputLength);
  25216. if (!privateDictData.length) {
  25217. // The private dictionary was empty, set the output length to zero to
  25218. // ensure the offset length isn't out of bounds in the eyes of the
  25219. // sanitizer.
  25220. outputLength = 0;
  25221. }
  25222. trackers[i].setEntryLocation('Private',
  25223. [privateDictData.length, outputLength],
  25224. output);
  25225. output.add(privateDictData);
  25226. if (privateDict.subrsIndex && privateDict.hasName('Subrs')) {
  25227. var subrs = this.compileIndex(privateDict.subrsIndex);
  25228. privateDictTracker.setEntryLocation('Subrs', [privateDictData.length],
  25229. output);
  25230. output.add(subrs);
  25231. }
  25232. }
  25233. },
  25234. compileDict: function CFFCompiler_compileDict(dict, offsetTracker) {
  25235. var out = [];
  25236. // The dictionary keys must be in a certain order.
  25237. var order = dict.order;
  25238. for (var i = 0; i < order.length; ++i) {
  25239. var key = order[i];
  25240. if (!(key in dict.values)) {
  25241. continue;
  25242. }
  25243. var values = dict.values[key];
  25244. var types = dict.types[key];
  25245. if (!isArray(types)) {
  25246. types = [types];
  25247. }
  25248. if (!isArray(values)) {
  25249. values = [values];
  25250. }
  25251. // Remove any empty dict values.
  25252. if (values.length === 0) {
  25253. continue;
  25254. }
  25255. for (var j = 0, jj = types.length; j < jj; ++j) {
  25256. var type = types[j];
  25257. var value = values[j];
  25258. switch (type) {
  25259. case 'num':
  25260. case 'sid':
  25261. out = out.concat(this.encodeNumber(value));
  25262. break;
  25263. case 'offset':
  25264. // For offsets we just insert a 32bit integer so we don't have to
  25265. // deal with figuring out the length of the offset when it gets
  25266. // replaced later on by the compiler.
  25267. var name = dict.keyToNameMap[key];
  25268. // Some offsets have the offset and the length, so just record the
  25269. // position of the first one.
  25270. if (!offsetTracker.isTracking(name)) {
  25271. offsetTracker.track(name, out.length);
  25272. }
  25273. out = out.concat([0x1d, 0, 0, 0, 0]);
  25274. break;
  25275. case 'array':
  25276. case 'delta':
  25277. out = out.concat(this.encodeNumber(value));
  25278. for (var k = 1, kk = values.length; k < kk; ++k) {
  25279. out = out.concat(this.encodeNumber(values[k]));
  25280. }
  25281. break;
  25282. default:
  25283. error('Unknown data type of ' + type);
  25284. break;
  25285. }
  25286. }
  25287. out = out.concat(dict.opcodes[key]);
  25288. }
  25289. return out;
  25290. },
  25291. compileStringIndex: function CFFCompiler_compileStringIndex(strings) {
  25292. var stringIndex = new CFFIndex();
  25293. for (var i = 0, ii = strings.length; i < ii; ++i) {
  25294. stringIndex.add(stringToArray(strings[i]));
  25295. }
  25296. return this.compileIndex(stringIndex);
  25297. },
  25298. compileGlobalSubrIndex: function CFFCompiler_compileGlobalSubrIndex() {
  25299. var globalSubrIndex = this.cff.globalSubrIndex;
  25300. this.out.writeByteArray(this.compileIndex(globalSubrIndex));
  25301. },
  25302. compileCharStrings: function CFFCompiler_compileCharStrings(charStrings) {
  25303. return this.compileIndex(charStrings);
  25304. },
  25305. compileCharset: function CFFCompiler_compileCharset(charset) {
  25306. return this.compileTypedArray(charset.raw);
  25307. },
  25308. compileEncoding: function CFFCompiler_compileEncoding(encoding) {
  25309. return this.compileTypedArray(encoding.raw);
  25310. },
  25311. compileFDSelect: function CFFCompiler_compileFDSelect(fdSelect) {
  25312. return this.compileTypedArray(fdSelect);
  25313. },
  25314. compileTypedArray: function CFFCompiler_compileTypedArray(data) {
  25315. var out = [];
  25316. for (var i = 0, ii = data.length; i < ii; ++i) {
  25317. out[i] = data[i];
  25318. }
  25319. return out;
  25320. },
  25321. compileIndex: function CFFCompiler_compileIndex(index, trackers) {
  25322. trackers = trackers || [];
  25323. var objects = index.objects;
  25324. // First 2 bytes contains the number of objects contained into this index
  25325. var count = objects.length;
  25326. // If there is no object, just create an index. This technically
  25327. // should just be [0, 0] but OTS has an issue with that.
  25328. if (count === 0) {
  25329. return [0, 0, 0];
  25330. }
  25331. var data = [(count >> 8) & 0xFF, count & 0xff];
  25332. var lastOffset = 1, i;
  25333. for (i = 0; i < count; ++i) {
  25334. lastOffset += objects[i].length;
  25335. }
  25336. var offsetSize;
  25337. if (lastOffset < 0x100) {
  25338. offsetSize = 1;
  25339. } else if (lastOffset < 0x10000) {
  25340. offsetSize = 2;
  25341. } else if (lastOffset < 0x1000000) {
  25342. offsetSize = 3;
  25343. } else {
  25344. offsetSize = 4;
  25345. }
  25346. // Next byte contains the offset size use to reference object in the file
  25347. data.push(offsetSize);
  25348. // Add another offset after this one because we need a new offset
  25349. var relativeOffset = 1;
  25350. for (i = 0; i < count + 1; i++) {
  25351. if (offsetSize === 1) {
  25352. data.push(relativeOffset & 0xFF);
  25353. } else if (offsetSize === 2) {
  25354. data.push((relativeOffset >> 8) & 0xFF,
  25355. relativeOffset & 0xFF);
  25356. } else if (offsetSize === 3) {
  25357. data.push((relativeOffset >> 16) & 0xFF,
  25358. (relativeOffset >> 8) & 0xFF,
  25359. relativeOffset & 0xFF);
  25360. } else {
  25361. data.push((relativeOffset >>> 24) & 0xFF,
  25362. (relativeOffset >> 16) & 0xFF,
  25363. (relativeOffset >> 8) & 0xFF,
  25364. relativeOffset & 0xFF);
  25365. }
  25366. if (objects[i]) {
  25367. relativeOffset += objects[i].length;
  25368. }
  25369. }
  25370. for (i = 0; i < count; i++) {
  25371. // Notify the tracker where the object will be offset in the data.
  25372. if (trackers[i]) {
  25373. trackers[i].offset(data.length);
  25374. }
  25375. for (var j = 0, jj = objects[i].length; j < jj; j++) {
  25376. data.push(objects[i][j]);
  25377. }
  25378. }
  25379. return data;
  25380. }
  25381. };
  25382. return CFFCompiler;
  25383. })();
  25384. // Workaround for seac on Windows.
  25385. (function checkSeacSupport() {
  25386. if (/Windows/.test(navigator.userAgent)) {
  25387. SEAC_ANALYSIS_ENABLED = true;
  25388. }
  25389. })();
  25390. // Workaround for Private Use Area characters in Chrome on Windows
  25391. // http://code.google.com/p/chromium/issues/detail?id=122465
  25392. // https://github.com/mozilla/pdf.js/issues/1689
  25393. (function checkChromeWindows() {
  25394. if (/Windows.*Chrome/.test(navigator.userAgent)) {
  25395. SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = true;
  25396. }
  25397. })();
  25398. var FontRendererFactory = (function FontRendererFactoryClosure() {
  25399. function getLong(data, offset) {
  25400. return (data[offset] << 24) | (data[offset + 1] << 16) |
  25401. (data[offset + 2] << 8) | data[offset + 3];
  25402. }
  25403. function getUshort(data, offset) {
  25404. return (data[offset] << 8) | data[offset + 1];
  25405. }
  25406. function parseCmap(data, start, end) {
  25407. var offset = (getUshort(data, start + 2) === 1 ?
  25408. getLong(data, start + 8) : getLong(data, start + 16));
  25409. var format = getUshort(data, start + offset);
  25410. var length, ranges, p, i;
  25411. if (format === 4) {
  25412. length = getUshort(data, start + offset + 2);
  25413. var segCount = getUshort(data, start + offset + 6) >> 1;
  25414. p = start + offset + 14;
  25415. ranges = [];
  25416. for (i = 0; i < segCount; i++, p += 2) {
  25417. ranges[i] = {end: getUshort(data, p)};
  25418. }
  25419. p += 2;
  25420. for (i = 0; i < segCount; i++, p += 2) {
  25421. ranges[i].start = getUshort(data, p);
  25422. }
  25423. for (i = 0; i < segCount; i++, p += 2) {
  25424. ranges[i].idDelta = getUshort(data, p);
  25425. }
  25426. for (i = 0; i < segCount; i++, p += 2) {
  25427. var idOffset = getUshort(data, p);
  25428. if (idOffset === 0) {
  25429. continue;
  25430. }
  25431. ranges[i].ids = [];
  25432. for (var j = 0, jj = ranges[i].end - ranges[i].start + 1; j < jj; j++) {
  25433. ranges[i].ids[j] = getUshort(data, p + idOffset);
  25434. idOffset += 2;
  25435. }
  25436. }
  25437. return ranges;
  25438. } else if (format === 12) {
  25439. length = getLong(data, start + offset + 4);
  25440. var groups = getLong(data, start + offset + 12);
  25441. p = start + offset + 16;
  25442. ranges = [];
  25443. for (i = 0; i < groups; i++) {
  25444. ranges.push({
  25445. start: getLong(data, p),
  25446. end: getLong(data, p + 4),
  25447. idDelta: getLong(data, p + 8) - getLong(data, p)
  25448. });
  25449. p += 12;
  25450. }
  25451. return ranges;
  25452. }
  25453. error('not supported cmap: ' + format);
  25454. }
  25455. function parseCff(data, start, end) {
  25456. var properties = {};
  25457. var parser = new CFFParser(new Stream(data, start, end - start),
  25458. properties);
  25459. var cff = parser.parse();
  25460. return {
  25461. glyphs: cff.charStrings.objects,
  25462. subrs: (cff.topDict.privateDict && cff.topDict.privateDict.subrsIndex &&
  25463. cff.topDict.privateDict.subrsIndex.objects),
  25464. gsubrs: cff.globalSubrIndex && cff.globalSubrIndex.objects
  25465. };
  25466. }
  25467. function parseGlyfTable(glyf, loca, isGlyphLocationsLong) {
  25468. var itemSize, itemDecode;
  25469. if (isGlyphLocationsLong) {
  25470. itemSize = 4;
  25471. itemDecode = function fontItemDecodeLong(data, offset) {
  25472. return (data[offset] << 24) | (data[offset + 1] << 16) |
  25473. (data[offset + 2] << 8) | data[offset + 3];
  25474. };
  25475. } else {
  25476. itemSize = 2;
  25477. itemDecode = function fontItemDecode(data, offset) {
  25478. return (data[offset] << 9) | (data[offset + 1] << 1);
  25479. };
  25480. }
  25481. var glyphs = [];
  25482. var startOffset = itemDecode(loca, 0);
  25483. for (var j = itemSize; j < loca.length; j += itemSize) {
  25484. var endOffset = itemDecode(loca, j);
  25485. glyphs.push(glyf.subarray(startOffset, endOffset));
  25486. startOffset = endOffset;
  25487. }
  25488. return glyphs;
  25489. }
  25490. function lookupCmap(ranges, unicode) {
  25491. var code = unicode.charCodeAt(0);
  25492. var l = 0, r = ranges.length - 1;
  25493. while (l < r) {
  25494. var c = (l + r + 1) >> 1;
  25495. if (code < ranges[c].start) {
  25496. r = c - 1;
  25497. } else {
  25498. l = c;
  25499. }
  25500. }
  25501. if (ranges[l].start <= code && code <= ranges[l].end) {
  25502. return (ranges[l].idDelta + (ranges[l].ids ?
  25503. ranges[l].ids[code - ranges[l].start] : code)) & 0xFFFF;
  25504. }
  25505. return 0;
  25506. }
  25507. function compileGlyf(code, js, font) {
  25508. function moveTo(x, y) {
  25509. js.push('c.moveTo(' + x + ',' + y + ');');
  25510. }
  25511. function lineTo(x, y) {
  25512. js.push('c.lineTo(' + x + ',' + y + ');');
  25513. }
  25514. function quadraticCurveTo(xa, ya, x, y) {
  25515. js.push('c.quadraticCurveTo(' + xa + ',' + ya + ',' +
  25516. x + ',' + y + ');');
  25517. }
  25518. var i = 0;
  25519. var numberOfContours = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  25520. var flags;
  25521. var x = 0, y = 0;
  25522. i += 10;
  25523. if (numberOfContours < 0) {
  25524. // composite glyph
  25525. do {
  25526. flags = (code[i] << 8) | code[i + 1];
  25527. var glyphIndex = (code[i + 2] << 8) | code[i + 3];
  25528. i += 4;
  25529. var arg1, arg2;
  25530. if ((flags & 0x01)) {
  25531. arg1 = ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  25532. arg2 = ((code[i + 2] << 24) | (code[i + 3] << 16)) >> 16;
  25533. i += 4;
  25534. } else {
  25535. arg1 = code[i++]; arg2 = code[i++];
  25536. }
  25537. if ((flags & 0x02)) {
  25538. x = arg1;
  25539. y = arg2;
  25540. } else {
  25541. x = 0; y = 0; // TODO "they are points" ?
  25542. }
  25543. var scaleX = 1, scaleY = 1, scale01 = 0, scale10 = 0;
  25544. if ((flags & 0x08)) {
  25545. scaleX =
  25546. scaleY = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  25547. i += 2;
  25548. } else if ((flags & 0x40)) {
  25549. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  25550. scaleY = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  25551. i += 4;
  25552. } else if ((flags & 0x80)) {
  25553. scaleX = ((code[i] << 24) | (code[i + 1] << 16)) / 1073741824;
  25554. scale01 = ((code[i + 2] << 24) | (code[i + 3] << 16)) / 1073741824;
  25555. scale10 = ((code[i + 4] << 24) | (code[i + 5] << 16)) / 1073741824;
  25556. scaleY = ((code[i + 6] << 24) | (code[i + 7] << 16)) / 1073741824;
  25557. i += 8;
  25558. }
  25559. var subglyph = font.glyphs[glyphIndex];
  25560. if (subglyph) {
  25561. js.push('c.save();');
  25562. js.push('c.transform(' + scaleX + ',' + scale01 + ',' +
  25563. scale10 + ',' + scaleY + ',' + x + ',' + y + ');');
  25564. compileGlyf(subglyph, js, font);
  25565. js.push('c.restore();');
  25566. }
  25567. } while ((flags & 0x20));
  25568. } else {
  25569. // simple glyph
  25570. var endPtsOfContours = [];
  25571. var j, jj;
  25572. for (j = 0; j < numberOfContours; j++) {
  25573. endPtsOfContours.push((code[i] << 8) | code[i + 1]);
  25574. i += 2;
  25575. }
  25576. var instructionLength = (code[i] << 8) | code[i + 1];
  25577. i += 2 + instructionLength; // skipping the instructions
  25578. var numberOfPoints = endPtsOfContours[endPtsOfContours.length - 1] + 1;
  25579. var points = [];
  25580. while (points.length < numberOfPoints) {
  25581. flags = code[i++];
  25582. var repeat = 1;
  25583. if ((flags & 0x08)) {
  25584. repeat += code[i++];
  25585. }
  25586. while (repeat-- > 0) {
  25587. points.push({flags: flags});
  25588. }
  25589. }
  25590. for (j = 0; j < numberOfPoints; j++) {
  25591. switch (points[j].flags & 0x12) {
  25592. case 0x00:
  25593. x += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  25594. i += 2;
  25595. break;
  25596. case 0x02:
  25597. x -= code[i++];
  25598. break;
  25599. case 0x12:
  25600. x += code[i++];
  25601. break;
  25602. }
  25603. points[j].x = x;
  25604. }
  25605. for (j = 0; j < numberOfPoints; j++) {
  25606. switch (points[j].flags & 0x24) {
  25607. case 0x00:
  25608. y += ((code[i] << 24) | (code[i + 1] << 16)) >> 16;
  25609. i += 2;
  25610. break;
  25611. case 0x04:
  25612. y -= code[i++];
  25613. break;
  25614. case 0x24:
  25615. y += code[i++];
  25616. break;
  25617. }
  25618. points[j].y = y;
  25619. }
  25620. var startPoint = 0;
  25621. for (i = 0; i < numberOfContours; i++) {
  25622. var endPoint = endPtsOfContours[i];
  25623. // contours might have implicit points, which is located in the middle
  25624. // between two neighboring off-curve points
  25625. var contour = points.slice(startPoint, endPoint + 1);
  25626. if ((contour[0].flags & 1)) {
  25627. contour.push(contour[0]); // using start point at the contour end
  25628. } else if ((contour[contour.length - 1].flags & 1)) {
  25629. // first is off-curve point, trying to use one from the end
  25630. contour.unshift(contour[contour.length - 1]);
  25631. } else {
  25632. // start and end are off-curve points, creating implicit one
  25633. var p = {
  25634. flags: 1,
  25635. x: (contour[0].x + contour[contour.length - 1].x) / 2,
  25636. y: (contour[0].y + contour[contour.length - 1].y) / 2
  25637. };
  25638. contour.unshift(p);
  25639. contour.push(p);
  25640. }
  25641. moveTo(contour[0].x, contour[0].y);
  25642. for (j = 1, jj = contour.length; j < jj; j++) {
  25643. if ((contour[j].flags & 1)) {
  25644. lineTo(contour[j].x, contour[j].y);
  25645. } else if ((contour[j + 1].flags & 1)){
  25646. quadraticCurveTo(contour[j].x, contour[j].y,
  25647. contour[j + 1].x, contour[j + 1].y);
  25648. j++;
  25649. } else {
  25650. quadraticCurveTo(contour[j].x, contour[j].y,
  25651. (contour[j].x + contour[j + 1].x) / 2,
  25652. (contour[j].y + contour[j + 1].y) / 2);
  25653. }
  25654. }
  25655. startPoint = endPoint + 1;
  25656. }
  25657. }
  25658. }
  25659. function compileCharString(code, js, font) {
  25660. var stack = [];
  25661. var x = 0, y = 0;
  25662. var stems = 0;
  25663. function moveTo(x, y) {
  25664. js.push('c.moveTo(' + x + ',' + y + ');');
  25665. }
  25666. function lineTo(x, y) {
  25667. js.push('c.lineTo(' + x + ',' + y + ');');
  25668. }
  25669. function bezierCurveTo(x1, y1, x2, y2, x, y) {
  25670. js.push('c.bezierCurveTo(' + x1 + ',' + y1 + ',' + x2 + ',' + y2 + ',' +
  25671. x + ',' + y + ');');
  25672. }
  25673. function parse(code) {
  25674. var i = 0;
  25675. while (i < code.length) {
  25676. var stackClean = false;
  25677. var v = code[i++];
  25678. var xa, xb, ya, yb, y1, y2, y3, n, subrCode;
  25679. switch (v) {
  25680. case 1: // hstem
  25681. stems += stack.length >> 1;
  25682. stackClean = true;
  25683. break;
  25684. case 3: // vstem
  25685. stems += stack.length >> 1;
  25686. stackClean = true;
  25687. break;
  25688. case 4: // vmoveto
  25689. y += stack.pop();
  25690. moveTo(x, y);
  25691. stackClean = true;
  25692. break;
  25693. case 5: // rlineto
  25694. while (stack.length > 0) {
  25695. x += stack.shift();
  25696. y += stack.shift();
  25697. lineTo(x, y);
  25698. }
  25699. break;
  25700. case 6: // hlineto
  25701. while (stack.length > 0) {
  25702. x += stack.shift();
  25703. lineTo(x, y);
  25704. if (stack.length === 0) {
  25705. break;
  25706. }
  25707. y += stack.shift();
  25708. lineTo(x, y);
  25709. }
  25710. break;
  25711. case 7: // vlineto
  25712. while (stack.length > 0) {
  25713. y += stack.shift();
  25714. lineTo(x, y);
  25715. if (stack.length === 0) {
  25716. break;
  25717. }
  25718. x += stack.shift();
  25719. lineTo(x, y);
  25720. }
  25721. break;
  25722. case 8: // rrcurveto
  25723. while (stack.length > 0) {
  25724. xa = x + stack.shift(); ya = y + stack.shift();
  25725. xb = xa + stack.shift(); yb = ya + stack.shift();
  25726. x = xb + stack.shift(); y = yb + stack.shift();
  25727. bezierCurveTo(xa, ya, xb, yb, x, y);
  25728. }
  25729. break;
  25730. case 10: // callsubr
  25731. n = stack.pop() + font.subrsBias;
  25732. subrCode = font.subrs[n];
  25733. if (subrCode) {
  25734. parse(subrCode);
  25735. }
  25736. break;
  25737. case 11: // return
  25738. return;
  25739. case 12:
  25740. v = code[i++];
  25741. switch (v) {
  25742. case 34: // flex
  25743. xa = x + stack.shift();
  25744. xb = xa + stack.shift(); y1 = y + stack.shift();
  25745. x = xb + stack.shift();
  25746. bezierCurveTo(xa, y, xb, y1, x, y1);
  25747. xa = x + stack.shift();
  25748. xb = xa + stack.shift();
  25749. x = xb + stack.shift();
  25750. bezierCurveTo(xa, y1, xb, y, x, y);
  25751. break;
  25752. case 35: // flex
  25753. xa = x + stack.shift(); ya = y + stack.shift();
  25754. xb = xa + stack.shift(); yb = ya + stack.shift();
  25755. x = xb + stack.shift(); y = yb + stack.shift();
  25756. bezierCurveTo(xa, ya, xb, yb, x, y);
  25757. xa = x + stack.shift(); ya = y + stack.shift();
  25758. xb = xa + stack.shift(); yb = ya + stack.shift();
  25759. x = xb + stack.shift(); y = yb + stack.shift();
  25760. bezierCurveTo(xa, ya, xb, yb, x, y);
  25761. stack.pop(); // fd
  25762. break;
  25763. case 36: // hflex1
  25764. xa = x + stack.shift(); y1 = y + stack.shift();
  25765. xb = xa + stack.shift(); y2 = y1 + stack.shift();
  25766. x = xb + stack.shift();
  25767. bezierCurveTo(xa, y1, xb, y2, x, y2);
  25768. xa = x + stack.shift();
  25769. xb = xa + stack.shift(); y3 = y2 + stack.shift();
  25770. x = xb + stack.shift();
  25771. bezierCurveTo(xa, y2, xb, y3, x, y);
  25772. break;
  25773. case 37: // flex1
  25774. var x0 = x, y0 = y;
  25775. xa = x + stack.shift(); ya = y + stack.shift();
  25776. xb = xa + stack.shift(); yb = ya + stack.shift();
  25777. x = xb + stack.shift(); y = yb + stack.shift();
  25778. bezierCurveTo(xa, ya, xb, yb, x, y);
  25779. xa = x + stack.shift(); ya = y + stack.shift();
  25780. xb = xa + stack.shift(); yb = ya + stack.shift();
  25781. x = xb; y = yb;
  25782. if (Math.abs(x - x0) > Math.abs(y - y0)) {
  25783. x += stack.shift();
  25784. } else {
  25785. y += stack.shift();
  25786. }
  25787. bezierCurveTo(xa, ya, xb, yb, x, y);
  25788. break;
  25789. default:
  25790. error('unknown operator: 12 ' + v);
  25791. }
  25792. break;
  25793. case 14: // endchar
  25794. if (stack.length >= 4) {
  25795. var achar = stack.pop();
  25796. var bchar = stack.pop();
  25797. y = stack.pop();
  25798. x = stack.pop();
  25799. js.push('c.save();');
  25800. js.push('c.translate('+ x + ',' + y + ');');
  25801. var gid = lookupCmap(font.cmap, String.fromCharCode(
  25802. font.glyphNameMap[Encodings.StandardEncoding[achar]]));
  25803. compileCharString(font.glyphs[gid], js, font);
  25804. js.push('c.restore();');
  25805. gid = lookupCmap(font.cmap, String.fromCharCode(
  25806. font.glyphNameMap[Encodings.StandardEncoding[bchar]]));
  25807. compileCharString(font.glyphs[gid], js, font);
  25808. }
  25809. return;
  25810. case 18: // hstemhm
  25811. stems += stack.length >> 1;
  25812. stackClean = true;
  25813. break;
  25814. case 19: // hintmask
  25815. stems += stack.length >> 1;
  25816. i += (stems + 7) >> 3;
  25817. stackClean = true;
  25818. break;
  25819. case 20: // cntrmask
  25820. stems += stack.length >> 1;
  25821. i += (stems + 7) >> 3;
  25822. stackClean = true;
  25823. break;
  25824. case 21: // rmoveto
  25825. y += stack.pop();
  25826. x += stack.pop();
  25827. moveTo(x, y);
  25828. stackClean = true;
  25829. break;
  25830. case 22: // hmoveto
  25831. x += stack.pop();
  25832. moveTo(x, y);
  25833. stackClean = true;
  25834. break;
  25835. case 23: // vstemhm
  25836. stems += stack.length >> 1;
  25837. stackClean = true;
  25838. break;
  25839. case 24: // rcurveline
  25840. while (stack.length > 2) {
  25841. xa = x + stack.shift(); ya = y + stack.shift();
  25842. xb = xa + stack.shift(); yb = ya + stack.shift();
  25843. x = xb + stack.shift(); y = yb + stack.shift();
  25844. bezierCurveTo(xa, ya, xb, yb, x, y);
  25845. }
  25846. x += stack.shift();
  25847. y += stack.shift();
  25848. lineTo(x, y);
  25849. break;
  25850. case 25: // rlinecurve
  25851. while (stack.length > 6) {
  25852. x += stack.shift();
  25853. y += stack.shift();
  25854. lineTo(x, y);
  25855. }
  25856. xa = x + stack.shift(); ya = y + stack.shift();
  25857. xb = xa + stack.shift(); yb = ya + stack.shift();
  25858. x = xb + stack.shift(); y = yb + stack.shift();
  25859. bezierCurveTo(xa, ya, xb, yb, x, y);
  25860. break;
  25861. case 26: // vvcurveto
  25862. if (stack.length % 2) {
  25863. x += stack.shift();
  25864. }
  25865. while (stack.length > 0) {
  25866. xa = x; ya = y + stack.shift();
  25867. xb = xa + stack.shift(); yb = ya + stack.shift();
  25868. x = xb; y = yb + stack.shift();
  25869. bezierCurveTo(xa, ya, xb, yb, x, y);
  25870. }
  25871. break;
  25872. case 27: // hhcurveto
  25873. if (stack.length % 2) {
  25874. y += stack.shift();
  25875. }
  25876. while (stack.length > 0) {
  25877. xa = x + stack.shift(); ya = y;
  25878. xb = xa + stack.shift(); yb = ya + stack.shift();
  25879. x = xb + stack.shift(); y = yb;
  25880. bezierCurveTo(xa, ya, xb, yb, x, y);
  25881. }
  25882. break;
  25883. case 28:
  25884. stack.push(((code[i] << 24) | (code[i + 1] << 16)) >> 16);
  25885. i += 2;
  25886. break;
  25887. case 29: // callgsubr
  25888. n = stack.pop() + font.gsubrsBias;
  25889. subrCode = font.gsubrs[n];
  25890. if (subrCode) {
  25891. parse(subrCode);
  25892. }
  25893. break;
  25894. case 30: // vhcurveto
  25895. while (stack.length > 0) {
  25896. xa = x; ya = y + stack.shift();
  25897. xb = xa + stack.shift(); yb = ya + stack.shift();
  25898. x = xb + stack.shift();
  25899. y = yb + (stack.length === 1 ? stack.shift() : 0);
  25900. bezierCurveTo(xa, ya, xb, yb, x, y);
  25901. if (stack.length === 0) {
  25902. break;
  25903. }
  25904. xa = x + stack.shift(); ya = y;
  25905. xb = xa + stack.shift(); yb = ya + stack.shift();
  25906. y = yb + stack.shift();
  25907. x = xb + (stack.length === 1 ? stack.shift() : 0);
  25908. bezierCurveTo(xa, ya, xb, yb, x, y);
  25909. }
  25910. break;
  25911. case 31: // hvcurveto
  25912. while (stack.length > 0) {
  25913. xa = x + stack.shift(); ya = y;
  25914. xb = xa + stack.shift(); yb = ya + stack.shift();
  25915. y = yb + stack.shift();
  25916. x = xb + (stack.length === 1 ? stack.shift() : 0);
  25917. bezierCurveTo(xa, ya, xb, yb, x, y);
  25918. if (stack.length === 0) {
  25919. break;
  25920. }
  25921. xa = x; ya = y + stack.shift();
  25922. xb = xa + stack.shift(); yb = ya + stack.shift();
  25923. x = xb + stack.shift();
  25924. y = yb + (stack.length === 1 ? stack.shift() : 0);
  25925. bezierCurveTo(xa, ya, xb, yb, x, y);
  25926. }
  25927. break;
  25928. default:
  25929. if (v < 32) {
  25930. error('unknown operator: ' + v);
  25931. }
  25932. if (v < 247) {
  25933. stack.push(v - 139);
  25934. } else if (v < 251) {
  25935. stack.push((v - 247) * 256 + code[i++] + 108);
  25936. } else if (v < 255) {
  25937. stack.push(-(v - 251) * 256 - code[i++] - 108);
  25938. } else {
  25939. stack.push(((code[i] << 24) | (code[i + 1] << 16) |
  25940. (code[i + 2] << 8) | code[i + 3]) / 65536);
  25941. i += 4;
  25942. }
  25943. break;
  25944. }
  25945. if (stackClean) {
  25946. stack.length = 0;
  25947. }
  25948. }
  25949. }
  25950. parse(code);
  25951. }
  25952. var noop = '';
  25953. function CompiledFont(fontMatrix) {
  25954. this.compiledGlyphs = {};
  25955. this.fontMatrix = fontMatrix;
  25956. }
  25957. CompiledFont.prototype = {
  25958. getPathJs: function (unicode) {
  25959. var gid = lookupCmap(this.cmap, unicode);
  25960. var fn = this.compiledGlyphs[gid];
  25961. if (!fn) {
  25962. this.compiledGlyphs[gid] = fn = this.compileGlyph(this.glyphs[gid]);
  25963. }
  25964. return fn;
  25965. },
  25966. compileGlyph: function (code) {
  25967. if (!code || code.length === 0 || code[0] === 14) {
  25968. return noop;
  25969. }
  25970. var js = [];
  25971. js.push('c.save();');
  25972. js.push('c.transform(' + this.fontMatrix.join(',') + ');');
  25973. js.push('c.scale(size, -size);');
  25974. this.compileGlyphImpl(code, js);
  25975. js.push('c.restore();');
  25976. return js.join('\n');
  25977. },
  25978. compileGlyphImpl: function () {
  25979. error('Children classes should implement this.');
  25980. },
  25981. hasBuiltPath: function (unicode) {
  25982. var gid = lookupCmap(this.cmap, unicode);
  25983. return gid in this.compiledGlyphs;
  25984. }
  25985. };
  25986. function TrueTypeCompiled(glyphs, cmap, fontMatrix) {
  25987. fontMatrix = fontMatrix || [0.000488, 0, 0, 0.000488, 0, 0];
  25988. CompiledFont.call(this, fontMatrix);
  25989. this.glyphs = glyphs;
  25990. this.cmap = cmap;
  25991. this.compiledGlyphs = [];
  25992. }
  25993. Util.inherit(TrueTypeCompiled, CompiledFont, {
  25994. compileGlyphImpl: function (code, js) {
  25995. compileGlyf(code, js, this);
  25996. }
  25997. });
  25998. function Type2Compiled(cffInfo, cmap, fontMatrix, glyphNameMap) {
  25999. fontMatrix = fontMatrix || [0.001, 0, 0, 0.001, 0, 0];
  26000. CompiledFont.call(this, fontMatrix);
  26001. this.glyphs = cffInfo.glyphs;
  26002. this.gsubrs = cffInfo.gsubrs || [];
  26003. this.subrs = cffInfo.subrs || [];
  26004. this.cmap = cmap;
  26005. this.glyphNameMap = glyphNameMap || GlyphsUnicode;
  26006. this.compiledGlyphs = [];
  26007. this.gsubrsBias = (this.gsubrs.length < 1240 ?
  26008. 107 : (this.gsubrs.length < 33900 ? 1131 : 32768));
  26009. this.subrsBias = (this.subrs.length < 1240 ?
  26010. 107 : (this.subrs.length < 33900 ? 1131 : 32768));
  26011. }
  26012. Util.inherit(Type2Compiled, CompiledFont, {
  26013. compileGlyphImpl: function (code, js) {
  26014. compileCharString(code, js, this);
  26015. }
  26016. });
  26017. return {
  26018. create: function FontRendererFactory_create(font) {
  26019. var data = new Uint8Array(font.data);
  26020. var cmap, glyf, loca, cff, indexToLocFormat, unitsPerEm;
  26021. var numTables = getUshort(data, 4);
  26022. for (var i = 0, p = 12; i < numTables; i++, p += 16) {
  26023. var tag = bytesToString(data.subarray(p, p + 4));
  26024. var offset = getLong(data, p + 8);
  26025. var length = getLong(data, p + 12);
  26026. switch (tag) {
  26027. case 'cmap':
  26028. cmap = parseCmap(data, offset, offset + length);
  26029. break;
  26030. case 'glyf':
  26031. glyf = data.subarray(offset, offset + length);
  26032. break;
  26033. case 'loca':
  26034. loca = data.subarray(offset, offset + length);
  26035. break;
  26036. case 'head':
  26037. unitsPerEm = getUshort(data, offset + 18);
  26038. indexToLocFormat = getUshort(data, offset + 50);
  26039. break;
  26040. case 'CFF ':
  26041. cff = parseCff(data, offset, offset + length);
  26042. break;
  26043. }
  26044. }
  26045. if (glyf) {
  26046. var fontMatrix = (!unitsPerEm ? font.fontMatrix :
  26047. [1 / unitsPerEm, 0, 0, 1 / unitsPerEm, 0, 0]);
  26048. return new TrueTypeCompiled(
  26049. parseGlyfTable(glyf, loca, indexToLocFormat), cmap, fontMatrix);
  26050. } else {
  26051. return new Type2Compiled(cff, cmap, font.fontMatrix, font.glyphNameMap);
  26052. }
  26053. }
  26054. };
  26055. })();
  26056. var GlyphsUnicode = {
  26057. A: 0x0041,
  26058. AE: 0x00C6,
  26059. AEacute: 0x01FC,
  26060. AEmacron: 0x01E2,
  26061. AEsmall: 0xF7E6,
  26062. Aacute: 0x00C1,
  26063. Aacutesmall: 0xF7E1,
  26064. Abreve: 0x0102,
  26065. Abreveacute: 0x1EAE,
  26066. Abrevecyrillic: 0x04D0,
  26067. Abrevedotbelow: 0x1EB6,
  26068. Abrevegrave: 0x1EB0,
  26069. Abrevehookabove: 0x1EB2,
  26070. Abrevetilde: 0x1EB4,
  26071. Acaron: 0x01CD,
  26072. Acircle: 0x24B6,
  26073. Acircumflex: 0x00C2,
  26074. Acircumflexacute: 0x1EA4,
  26075. Acircumflexdotbelow: 0x1EAC,
  26076. Acircumflexgrave: 0x1EA6,
  26077. Acircumflexhookabove: 0x1EA8,
  26078. Acircumflexsmall: 0xF7E2,
  26079. Acircumflextilde: 0x1EAA,
  26080. Acute: 0xF6C9,
  26081. Acutesmall: 0xF7B4,
  26082. Acyrillic: 0x0410,
  26083. Adblgrave: 0x0200,
  26084. Adieresis: 0x00C4,
  26085. Adieresiscyrillic: 0x04D2,
  26086. Adieresismacron: 0x01DE,
  26087. Adieresissmall: 0xF7E4,
  26088. Adotbelow: 0x1EA0,
  26089. Adotmacron: 0x01E0,
  26090. Agrave: 0x00C0,
  26091. Agravesmall: 0xF7E0,
  26092. Ahookabove: 0x1EA2,
  26093. Aiecyrillic: 0x04D4,
  26094. Ainvertedbreve: 0x0202,
  26095. Alpha: 0x0391,
  26096. Alphatonos: 0x0386,
  26097. Amacron: 0x0100,
  26098. Amonospace: 0xFF21,
  26099. Aogonek: 0x0104,
  26100. Aring: 0x00C5,
  26101. Aringacute: 0x01FA,
  26102. Aringbelow: 0x1E00,
  26103. Aringsmall: 0xF7E5,
  26104. Asmall: 0xF761,
  26105. Atilde: 0x00C3,
  26106. Atildesmall: 0xF7E3,
  26107. Aybarmenian: 0x0531,
  26108. B: 0x0042,
  26109. Bcircle: 0x24B7,
  26110. Bdotaccent: 0x1E02,
  26111. Bdotbelow: 0x1E04,
  26112. Becyrillic: 0x0411,
  26113. Benarmenian: 0x0532,
  26114. Beta: 0x0392,
  26115. Bhook: 0x0181,
  26116. Blinebelow: 0x1E06,
  26117. Bmonospace: 0xFF22,
  26118. Brevesmall: 0xF6F4,
  26119. Bsmall: 0xF762,
  26120. Btopbar: 0x0182,
  26121. C: 0x0043,
  26122. Caarmenian: 0x053E,
  26123. Cacute: 0x0106,
  26124. Caron: 0xF6CA,
  26125. Caronsmall: 0xF6F5,
  26126. Ccaron: 0x010C,
  26127. Ccedilla: 0x00C7,
  26128. Ccedillaacute: 0x1E08,
  26129. Ccedillasmall: 0xF7E7,
  26130. Ccircle: 0x24B8,
  26131. Ccircumflex: 0x0108,
  26132. Cdot: 0x010A,
  26133. Cdotaccent: 0x010A,
  26134. Cedillasmall: 0xF7B8,
  26135. Chaarmenian: 0x0549,
  26136. Cheabkhasiancyrillic: 0x04BC,
  26137. Checyrillic: 0x0427,
  26138. Chedescenderabkhasiancyrillic: 0x04BE,
  26139. Chedescendercyrillic: 0x04B6,
  26140. Chedieresiscyrillic: 0x04F4,
  26141. Cheharmenian: 0x0543,
  26142. Chekhakassiancyrillic: 0x04CB,
  26143. Cheverticalstrokecyrillic: 0x04B8,
  26144. Chi: 0x03A7,
  26145. Chook: 0x0187,
  26146. Circumflexsmall: 0xF6F6,
  26147. Cmonospace: 0xFF23,
  26148. Coarmenian: 0x0551,
  26149. Csmall: 0xF763,
  26150. D: 0x0044,
  26151. DZ: 0x01F1,
  26152. DZcaron: 0x01C4,
  26153. Daarmenian: 0x0534,
  26154. Dafrican: 0x0189,
  26155. Dcaron: 0x010E,
  26156. Dcedilla: 0x1E10,
  26157. Dcircle: 0x24B9,
  26158. Dcircumflexbelow: 0x1E12,
  26159. Dcroat: 0x0110,
  26160. Ddotaccent: 0x1E0A,
  26161. Ddotbelow: 0x1E0C,
  26162. Decyrillic: 0x0414,
  26163. Deicoptic: 0x03EE,
  26164. Delta: 0x2206,
  26165. Deltagreek: 0x0394,
  26166. Dhook: 0x018A,
  26167. Dieresis: 0xF6CB,
  26168. DieresisAcute: 0xF6CC,
  26169. DieresisGrave: 0xF6CD,
  26170. Dieresissmall: 0xF7A8,
  26171. Digammagreek: 0x03DC,
  26172. Djecyrillic: 0x0402,
  26173. Dlinebelow: 0x1E0E,
  26174. Dmonospace: 0xFF24,
  26175. Dotaccentsmall: 0xF6F7,
  26176. Dslash: 0x0110,
  26177. Dsmall: 0xF764,
  26178. Dtopbar: 0x018B,
  26179. Dz: 0x01F2,
  26180. Dzcaron: 0x01C5,
  26181. Dzeabkhasiancyrillic: 0x04E0,
  26182. Dzecyrillic: 0x0405,
  26183. Dzhecyrillic: 0x040F,
  26184. E: 0x0045,
  26185. Eacute: 0x00C9,
  26186. Eacutesmall: 0xF7E9,
  26187. Ebreve: 0x0114,
  26188. Ecaron: 0x011A,
  26189. Ecedillabreve: 0x1E1C,
  26190. Echarmenian: 0x0535,
  26191. Ecircle: 0x24BA,
  26192. Ecircumflex: 0x00CA,
  26193. Ecircumflexacute: 0x1EBE,
  26194. Ecircumflexbelow: 0x1E18,
  26195. Ecircumflexdotbelow: 0x1EC6,
  26196. Ecircumflexgrave: 0x1EC0,
  26197. Ecircumflexhookabove: 0x1EC2,
  26198. Ecircumflexsmall: 0xF7EA,
  26199. Ecircumflextilde: 0x1EC4,
  26200. Ecyrillic: 0x0404,
  26201. Edblgrave: 0x0204,
  26202. Edieresis: 0x00CB,
  26203. Edieresissmall: 0xF7EB,
  26204. Edot: 0x0116,
  26205. Edotaccent: 0x0116,
  26206. Edotbelow: 0x1EB8,
  26207. Efcyrillic: 0x0424,
  26208. Egrave: 0x00C8,
  26209. Egravesmall: 0xF7E8,
  26210. Eharmenian: 0x0537,
  26211. Ehookabove: 0x1EBA,
  26212. Eightroman: 0x2167,
  26213. Einvertedbreve: 0x0206,
  26214. Eiotifiedcyrillic: 0x0464,
  26215. Elcyrillic: 0x041B,
  26216. Elevenroman: 0x216A,
  26217. Emacron: 0x0112,
  26218. Emacronacute: 0x1E16,
  26219. Emacrongrave: 0x1E14,
  26220. Emcyrillic: 0x041C,
  26221. Emonospace: 0xFF25,
  26222. Encyrillic: 0x041D,
  26223. Endescendercyrillic: 0x04A2,
  26224. Eng: 0x014A,
  26225. Enghecyrillic: 0x04A4,
  26226. Enhookcyrillic: 0x04C7,
  26227. Eogonek: 0x0118,
  26228. Eopen: 0x0190,
  26229. Epsilon: 0x0395,
  26230. Epsilontonos: 0x0388,
  26231. Ercyrillic: 0x0420,
  26232. Ereversed: 0x018E,
  26233. Ereversedcyrillic: 0x042D,
  26234. Escyrillic: 0x0421,
  26235. Esdescendercyrillic: 0x04AA,
  26236. Esh: 0x01A9,
  26237. Esmall: 0xF765,
  26238. Eta: 0x0397,
  26239. Etarmenian: 0x0538,
  26240. Etatonos: 0x0389,
  26241. Eth: 0x00D0,
  26242. Ethsmall: 0xF7F0,
  26243. Etilde: 0x1EBC,
  26244. Etildebelow: 0x1E1A,
  26245. Euro: 0x20AC,
  26246. Ezh: 0x01B7,
  26247. Ezhcaron: 0x01EE,
  26248. Ezhreversed: 0x01B8,
  26249. F: 0x0046,
  26250. Fcircle: 0x24BB,
  26251. Fdotaccent: 0x1E1E,
  26252. Feharmenian: 0x0556,
  26253. Feicoptic: 0x03E4,
  26254. Fhook: 0x0191,
  26255. Fitacyrillic: 0x0472,
  26256. Fiveroman: 0x2164,
  26257. Fmonospace: 0xFF26,
  26258. Fourroman: 0x2163,
  26259. Fsmall: 0xF766,
  26260. G: 0x0047,
  26261. GBsquare: 0x3387,
  26262. Gacute: 0x01F4,
  26263. Gamma: 0x0393,
  26264. Gammaafrican: 0x0194,
  26265. Gangiacoptic: 0x03EA,
  26266. Gbreve: 0x011E,
  26267. Gcaron: 0x01E6,
  26268. Gcedilla: 0x0122,
  26269. Gcircle: 0x24BC,
  26270. Gcircumflex: 0x011C,
  26271. Gcommaaccent: 0x0122,
  26272. Gdot: 0x0120,
  26273. Gdotaccent: 0x0120,
  26274. Gecyrillic: 0x0413,
  26275. Ghadarmenian: 0x0542,
  26276. Ghemiddlehookcyrillic: 0x0494,
  26277. Ghestrokecyrillic: 0x0492,
  26278. Gheupturncyrillic: 0x0490,
  26279. Ghook: 0x0193,
  26280. Gimarmenian: 0x0533,
  26281. Gjecyrillic: 0x0403,
  26282. Gmacron: 0x1E20,
  26283. Gmonospace: 0xFF27,
  26284. Grave: 0xF6CE,
  26285. Gravesmall: 0xF760,
  26286. Gsmall: 0xF767,
  26287. Gsmallhook: 0x029B,
  26288. Gstroke: 0x01E4,
  26289. H: 0x0048,
  26290. H18533: 0x25CF,
  26291. H18543: 0x25AA,
  26292. H18551: 0x25AB,
  26293. H22073: 0x25A1,
  26294. HPsquare: 0x33CB,
  26295. Haabkhasiancyrillic: 0x04A8,
  26296. Hadescendercyrillic: 0x04B2,
  26297. Hardsigncyrillic: 0x042A,
  26298. Hbar: 0x0126,
  26299. Hbrevebelow: 0x1E2A,
  26300. Hcedilla: 0x1E28,
  26301. Hcircle: 0x24BD,
  26302. Hcircumflex: 0x0124,
  26303. Hdieresis: 0x1E26,
  26304. Hdotaccent: 0x1E22,
  26305. Hdotbelow: 0x1E24,
  26306. Hmonospace: 0xFF28,
  26307. Hoarmenian: 0x0540,
  26308. Horicoptic: 0x03E8,
  26309. Hsmall: 0xF768,
  26310. Hungarumlaut: 0xF6CF,
  26311. Hungarumlautsmall: 0xF6F8,
  26312. Hzsquare: 0x3390,
  26313. I: 0x0049,
  26314. IAcyrillic: 0x042F,
  26315. IJ: 0x0132,
  26316. IUcyrillic: 0x042E,
  26317. Iacute: 0x00CD,
  26318. Iacutesmall: 0xF7ED,
  26319. Ibreve: 0x012C,
  26320. Icaron: 0x01CF,
  26321. Icircle: 0x24BE,
  26322. Icircumflex: 0x00CE,
  26323. Icircumflexsmall: 0xF7EE,
  26324. Icyrillic: 0x0406,
  26325. Idblgrave: 0x0208,
  26326. Idieresis: 0x00CF,
  26327. Idieresisacute: 0x1E2E,
  26328. Idieresiscyrillic: 0x04E4,
  26329. Idieresissmall: 0xF7EF,
  26330. Idot: 0x0130,
  26331. Idotaccent: 0x0130,
  26332. Idotbelow: 0x1ECA,
  26333. Iebrevecyrillic: 0x04D6,
  26334. Iecyrillic: 0x0415,
  26335. Ifraktur: 0x2111,
  26336. Igrave: 0x00CC,
  26337. Igravesmall: 0xF7EC,
  26338. Ihookabove: 0x1EC8,
  26339. Iicyrillic: 0x0418,
  26340. Iinvertedbreve: 0x020A,
  26341. Iishortcyrillic: 0x0419,
  26342. Imacron: 0x012A,
  26343. Imacroncyrillic: 0x04E2,
  26344. Imonospace: 0xFF29,
  26345. Iniarmenian: 0x053B,
  26346. Iocyrillic: 0x0401,
  26347. Iogonek: 0x012E,
  26348. Iota: 0x0399,
  26349. Iotaafrican: 0x0196,
  26350. Iotadieresis: 0x03AA,
  26351. Iotatonos: 0x038A,
  26352. Ismall: 0xF769,
  26353. Istroke: 0x0197,
  26354. Itilde: 0x0128,
  26355. Itildebelow: 0x1E2C,
  26356. Izhitsacyrillic: 0x0474,
  26357. Izhitsadblgravecyrillic: 0x0476,
  26358. J: 0x004A,
  26359. Jaarmenian: 0x0541,
  26360. Jcircle: 0x24BF,
  26361. Jcircumflex: 0x0134,
  26362. Jecyrillic: 0x0408,
  26363. Jheharmenian: 0x054B,
  26364. Jmonospace: 0xFF2A,
  26365. Jsmall: 0xF76A,
  26366. K: 0x004B,
  26367. KBsquare: 0x3385,
  26368. KKsquare: 0x33CD,
  26369. Kabashkircyrillic: 0x04A0,
  26370. Kacute: 0x1E30,
  26371. Kacyrillic: 0x041A,
  26372. Kadescendercyrillic: 0x049A,
  26373. Kahookcyrillic: 0x04C3,
  26374. Kappa: 0x039A,
  26375. Kastrokecyrillic: 0x049E,
  26376. Kaverticalstrokecyrillic: 0x049C,
  26377. Kcaron: 0x01E8,
  26378. Kcedilla: 0x0136,
  26379. Kcircle: 0x24C0,
  26380. Kcommaaccent: 0x0136,
  26381. Kdotbelow: 0x1E32,
  26382. Keharmenian: 0x0554,
  26383. Kenarmenian: 0x053F,
  26384. Khacyrillic: 0x0425,
  26385. Kheicoptic: 0x03E6,
  26386. Khook: 0x0198,
  26387. Kjecyrillic: 0x040C,
  26388. Klinebelow: 0x1E34,
  26389. Kmonospace: 0xFF2B,
  26390. Koppacyrillic: 0x0480,
  26391. Koppagreek: 0x03DE,
  26392. Ksicyrillic: 0x046E,
  26393. Ksmall: 0xF76B,
  26394. L: 0x004C,
  26395. LJ: 0x01C7,
  26396. LL: 0xF6BF,
  26397. Lacute: 0x0139,
  26398. Lambda: 0x039B,
  26399. Lcaron: 0x013D,
  26400. Lcedilla: 0x013B,
  26401. Lcircle: 0x24C1,
  26402. Lcircumflexbelow: 0x1E3C,
  26403. Lcommaaccent: 0x013B,
  26404. Ldot: 0x013F,
  26405. Ldotaccent: 0x013F,
  26406. Ldotbelow: 0x1E36,
  26407. Ldotbelowmacron: 0x1E38,
  26408. Liwnarmenian: 0x053C,
  26409. Lj: 0x01C8,
  26410. Ljecyrillic: 0x0409,
  26411. Llinebelow: 0x1E3A,
  26412. Lmonospace: 0xFF2C,
  26413. Lslash: 0x0141,
  26414. Lslashsmall: 0xF6F9,
  26415. Lsmall: 0xF76C,
  26416. M: 0x004D,
  26417. MBsquare: 0x3386,
  26418. Macron: 0xF6D0,
  26419. Macronsmall: 0xF7AF,
  26420. Macute: 0x1E3E,
  26421. Mcircle: 0x24C2,
  26422. Mdotaccent: 0x1E40,
  26423. Mdotbelow: 0x1E42,
  26424. Menarmenian: 0x0544,
  26425. Mmonospace: 0xFF2D,
  26426. Msmall: 0xF76D,
  26427. Mturned: 0x019C,
  26428. Mu: 0x039C,
  26429. N: 0x004E,
  26430. NJ: 0x01CA,
  26431. Nacute: 0x0143,
  26432. Ncaron: 0x0147,
  26433. Ncedilla: 0x0145,
  26434. Ncircle: 0x24C3,
  26435. Ncircumflexbelow: 0x1E4A,
  26436. Ncommaaccent: 0x0145,
  26437. Ndotaccent: 0x1E44,
  26438. Ndotbelow: 0x1E46,
  26439. Nhookleft: 0x019D,
  26440. Nineroman: 0x2168,
  26441. Nj: 0x01CB,
  26442. Njecyrillic: 0x040A,
  26443. Nlinebelow: 0x1E48,
  26444. Nmonospace: 0xFF2E,
  26445. Nowarmenian: 0x0546,
  26446. Nsmall: 0xF76E,
  26447. Ntilde: 0x00D1,
  26448. Ntildesmall: 0xF7F1,
  26449. Nu: 0x039D,
  26450. O: 0x004F,
  26451. OE: 0x0152,
  26452. OEsmall: 0xF6FA,
  26453. Oacute: 0x00D3,
  26454. Oacutesmall: 0xF7F3,
  26455. Obarredcyrillic: 0x04E8,
  26456. Obarreddieresiscyrillic: 0x04EA,
  26457. Obreve: 0x014E,
  26458. Ocaron: 0x01D1,
  26459. Ocenteredtilde: 0x019F,
  26460. Ocircle: 0x24C4,
  26461. Ocircumflex: 0x00D4,
  26462. Ocircumflexacute: 0x1ED0,
  26463. Ocircumflexdotbelow: 0x1ED8,
  26464. Ocircumflexgrave: 0x1ED2,
  26465. Ocircumflexhookabove: 0x1ED4,
  26466. Ocircumflexsmall: 0xF7F4,
  26467. Ocircumflextilde: 0x1ED6,
  26468. Ocyrillic: 0x041E,
  26469. Odblacute: 0x0150,
  26470. Odblgrave: 0x020C,
  26471. Odieresis: 0x00D6,
  26472. Odieresiscyrillic: 0x04E6,
  26473. Odieresissmall: 0xF7F6,
  26474. Odotbelow: 0x1ECC,
  26475. Ogoneksmall: 0xF6FB,
  26476. Ograve: 0x00D2,
  26477. Ogravesmall: 0xF7F2,
  26478. Oharmenian: 0x0555,
  26479. Ohm: 0x2126,
  26480. Ohookabove: 0x1ECE,
  26481. Ohorn: 0x01A0,
  26482. Ohornacute: 0x1EDA,
  26483. Ohorndotbelow: 0x1EE2,
  26484. Ohorngrave: 0x1EDC,
  26485. Ohornhookabove: 0x1EDE,
  26486. Ohorntilde: 0x1EE0,
  26487. Ohungarumlaut: 0x0150,
  26488. Oi: 0x01A2,
  26489. Oinvertedbreve: 0x020E,
  26490. Omacron: 0x014C,
  26491. Omacronacute: 0x1E52,
  26492. Omacrongrave: 0x1E50,
  26493. Omega: 0x2126,
  26494. Omegacyrillic: 0x0460,
  26495. Omegagreek: 0x03A9,
  26496. Omegaroundcyrillic: 0x047A,
  26497. Omegatitlocyrillic: 0x047C,
  26498. Omegatonos: 0x038F,
  26499. Omicron: 0x039F,
  26500. Omicrontonos: 0x038C,
  26501. Omonospace: 0xFF2F,
  26502. Oneroman: 0x2160,
  26503. Oogonek: 0x01EA,
  26504. Oogonekmacron: 0x01EC,
  26505. Oopen: 0x0186,
  26506. Oslash: 0x00D8,
  26507. Oslashacute: 0x01FE,
  26508. Oslashsmall: 0xF7F8,
  26509. Osmall: 0xF76F,
  26510. Ostrokeacute: 0x01FE,
  26511. Otcyrillic: 0x047E,
  26512. Otilde: 0x00D5,
  26513. Otildeacute: 0x1E4C,
  26514. Otildedieresis: 0x1E4E,
  26515. Otildesmall: 0xF7F5,
  26516. P: 0x0050,
  26517. Pacute: 0x1E54,
  26518. Pcircle: 0x24C5,
  26519. Pdotaccent: 0x1E56,
  26520. Pecyrillic: 0x041F,
  26521. Peharmenian: 0x054A,
  26522. Pemiddlehookcyrillic: 0x04A6,
  26523. Phi: 0x03A6,
  26524. Phook: 0x01A4,
  26525. Pi: 0x03A0,
  26526. Piwrarmenian: 0x0553,
  26527. Pmonospace: 0xFF30,
  26528. Psi: 0x03A8,
  26529. Psicyrillic: 0x0470,
  26530. Psmall: 0xF770,
  26531. Q: 0x0051,
  26532. Qcircle: 0x24C6,
  26533. Qmonospace: 0xFF31,
  26534. Qsmall: 0xF771,
  26535. R: 0x0052,
  26536. Raarmenian: 0x054C,
  26537. Racute: 0x0154,
  26538. Rcaron: 0x0158,
  26539. Rcedilla: 0x0156,
  26540. Rcircle: 0x24C7,
  26541. Rcommaaccent: 0x0156,
  26542. Rdblgrave: 0x0210,
  26543. Rdotaccent: 0x1E58,
  26544. Rdotbelow: 0x1E5A,
  26545. Rdotbelowmacron: 0x1E5C,
  26546. Reharmenian: 0x0550,
  26547. Rfraktur: 0x211C,
  26548. Rho: 0x03A1,
  26549. Ringsmall: 0xF6FC,
  26550. Rinvertedbreve: 0x0212,
  26551. Rlinebelow: 0x1E5E,
  26552. Rmonospace: 0xFF32,
  26553. Rsmall: 0xF772,
  26554. Rsmallinverted: 0x0281,
  26555. Rsmallinvertedsuperior: 0x02B6,
  26556. S: 0x0053,
  26557. SF010000: 0x250C,
  26558. SF020000: 0x2514,
  26559. SF030000: 0x2510,
  26560. SF040000: 0x2518,
  26561. SF050000: 0x253C,
  26562. SF060000: 0x252C,
  26563. SF070000: 0x2534,
  26564. SF080000: 0x251C,
  26565. SF090000: 0x2524,
  26566. SF100000: 0x2500,
  26567. SF110000: 0x2502,
  26568. SF190000: 0x2561,
  26569. SF200000: 0x2562,
  26570. SF210000: 0x2556,
  26571. SF220000: 0x2555,
  26572. SF230000: 0x2563,
  26573. SF240000: 0x2551,
  26574. SF250000: 0x2557,
  26575. SF260000: 0x255D,
  26576. SF270000: 0x255C,
  26577. SF280000: 0x255B,
  26578. SF360000: 0x255E,
  26579. SF370000: 0x255F,
  26580. SF380000: 0x255A,
  26581. SF390000: 0x2554,
  26582. SF400000: 0x2569,
  26583. SF410000: 0x2566,
  26584. SF420000: 0x2560,
  26585. SF430000: 0x2550,
  26586. SF440000: 0x256C,
  26587. SF450000: 0x2567,
  26588. SF460000: 0x2568,
  26589. SF470000: 0x2564,
  26590. SF480000: 0x2565,
  26591. SF490000: 0x2559,
  26592. SF500000: 0x2558,
  26593. SF510000: 0x2552,
  26594. SF520000: 0x2553,
  26595. SF530000: 0x256B,
  26596. SF540000: 0x256A,
  26597. Sacute: 0x015A,
  26598. Sacutedotaccent: 0x1E64,
  26599. Sampigreek: 0x03E0,
  26600. Scaron: 0x0160,
  26601. Scarondotaccent: 0x1E66,
  26602. Scaronsmall: 0xF6FD,
  26603. Scedilla: 0x015E,
  26604. Schwa: 0x018F,
  26605. Schwacyrillic: 0x04D8,
  26606. Schwadieresiscyrillic: 0x04DA,
  26607. Scircle: 0x24C8,
  26608. Scircumflex: 0x015C,
  26609. Scommaaccent: 0x0218,
  26610. Sdotaccent: 0x1E60,
  26611. Sdotbelow: 0x1E62,
  26612. Sdotbelowdotaccent: 0x1E68,
  26613. Seharmenian: 0x054D,
  26614. Sevenroman: 0x2166,
  26615. Shaarmenian: 0x0547,
  26616. Shacyrillic: 0x0428,
  26617. Shchacyrillic: 0x0429,
  26618. Sheicoptic: 0x03E2,
  26619. Shhacyrillic: 0x04BA,
  26620. Shimacoptic: 0x03EC,
  26621. Sigma: 0x03A3,
  26622. Sixroman: 0x2165,
  26623. Smonospace: 0xFF33,
  26624. Softsigncyrillic: 0x042C,
  26625. Ssmall: 0xF773,
  26626. Stigmagreek: 0x03DA,
  26627. T: 0x0054,
  26628. Tau: 0x03A4,
  26629. Tbar: 0x0166,
  26630. Tcaron: 0x0164,
  26631. Tcedilla: 0x0162,
  26632. Tcircle: 0x24C9,
  26633. Tcircumflexbelow: 0x1E70,
  26634. Tcommaaccent: 0x0162,
  26635. Tdotaccent: 0x1E6A,
  26636. Tdotbelow: 0x1E6C,
  26637. Tecyrillic: 0x0422,
  26638. Tedescendercyrillic: 0x04AC,
  26639. Tenroman: 0x2169,
  26640. Tetsecyrillic: 0x04B4,
  26641. Theta: 0x0398,
  26642. Thook: 0x01AC,
  26643. Thorn: 0x00DE,
  26644. Thornsmall: 0xF7FE,
  26645. Threeroman: 0x2162,
  26646. Tildesmall: 0xF6FE,
  26647. Tiwnarmenian: 0x054F,
  26648. Tlinebelow: 0x1E6E,
  26649. Tmonospace: 0xFF34,
  26650. Toarmenian: 0x0539,
  26651. Tonefive: 0x01BC,
  26652. Tonesix: 0x0184,
  26653. Tonetwo: 0x01A7,
  26654. Tretroflexhook: 0x01AE,
  26655. Tsecyrillic: 0x0426,
  26656. Tshecyrillic: 0x040B,
  26657. Tsmall: 0xF774,
  26658. Twelveroman: 0x216B,
  26659. Tworoman: 0x2161,
  26660. U: 0x0055,
  26661. Uacute: 0x00DA,
  26662. Uacutesmall: 0xF7FA,
  26663. Ubreve: 0x016C,
  26664. Ucaron: 0x01D3,
  26665. Ucircle: 0x24CA,
  26666. Ucircumflex: 0x00DB,
  26667. Ucircumflexbelow: 0x1E76,
  26668. Ucircumflexsmall: 0xF7FB,
  26669. Ucyrillic: 0x0423,
  26670. Udblacute: 0x0170,
  26671. Udblgrave: 0x0214,
  26672. Udieresis: 0x00DC,
  26673. Udieresisacute: 0x01D7,
  26674. Udieresisbelow: 0x1E72,
  26675. Udieresiscaron: 0x01D9,
  26676. Udieresiscyrillic: 0x04F0,
  26677. Udieresisgrave: 0x01DB,
  26678. Udieresismacron: 0x01D5,
  26679. Udieresissmall: 0xF7FC,
  26680. Udotbelow: 0x1EE4,
  26681. Ugrave: 0x00D9,
  26682. Ugravesmall: 0xF7F9,
  26683. Uhookabove: 0x1EE6,
  26684. Uhorn: 0x01AF,
  26685. Uhornacute: 0x1EE8,
  26686. Uhorndotbelow: 0x1EF0,
  26687. Uhorngrave: 0x1EEA,
  26688. Uhornhookabove: 0x1EEC,
  26689. Uhorntilde: 0x1EEE,
  26690. Uhungarumlaut: 0x0170,
  26691. Uhungarumlautcyrillic: 0x04F2,
  26692. Uinvertedbreve: 0x0216,
  26693. Ukcyrillic: 0x0478,
  26694. Umacron: 0x016A,
  26695. Umacroncyrillic: 0x04EE,
  26696. Umacrondieresis: 0x1E7A,
  26697. Umonospace: 0xFF35,
  26698. Uogonek: 0x0172,
  26699. Upsilon: 0x03A5,
  26700. Upsilon1: 0x03D2,
  26701. Upsilonacutehooksymbolgreek: 0x03D3,
  26702. Upsilonafrican: 0x01B1,
  26703. Upsilondieresis: 0x03AB,
  26704. Upsilondieresishooksymbolgreek: 0x03D4,
  26705. Upsilonhooksymbol: 0x03D2,
  26706. Upsilontonos: 0x038E,
  26707. Uring: 0x016E,
  26708. Ushortcyrillic: 0x040E,
  26709. Usmall: 0xF775,
  26710. Ustraightcyrillic: 0x04AE,
  26711. Ustraightstrokecyrillic: 0x04B0,
  26712. Utilde: 0x0168,
  26713. Utildeacute: 0x1E78,
  26714. Utildebelow: 0x1E74,
  26715. V: 0x0056,
  26716. Vcircle: 0x24CB,
  26717. Vdotbelow: 0x1E7E,
  26718. Vecyrillic: 0x0412,
  26719. Vewarmenian: 0x054E,
  26720. Vhook: 0x01B2,
  26721. Vmonospace: 0xFF36,
  26722. Voarmenian: 0x0548,
  26723. Vsmall: 0xF776,
  26724. Vtilde: 0x1E7C,
  26725. W: 0x0057,
  26726. Wacute: 0x1E82,
  26727. Wcircle: 0x24CC,
  26728. Wcircumflex: 0x0174,
  26729. Wdieresis: 0x1E84,
  26730. Wdotaccent: 0x1E86,
  26731. Wdotbelow: 0x1E88,
  26732. Wgrave: 0x1E80,
  26733. Wmonospace: 0xFF37,
  26734. Wsmall: 0xF777,
  26735. X: 0x0058,
  26736. Xcircle: 0x24CD,
  26737. Xdieresis: 0x1E8C,
  26738. Xdotaccent: 0x1E8A,
  26739. Xeharmenian: 0x053D,
  26740. Xi: 0x039E,
  26741. Xmonospace: 0xFF38,
  26742. Xsmall: 0xF778,
  26743. Y: 0x0059,
  26744. Yacute: 0x00DD,
  26745. Yacutesmall: 0xF7FD,
  26746. Yatcyrillic: 0x0462,
  26747. Ycircle: 0x24CE,
  26748. Ycircumflex: 0x0176,
  26749. Ydieresis: 0x0178,
  26750. Ydieresissmall: 0xF7FF,
  26751. Ydotaccent: 0x1E8E,
  26752. Ydotbelow: 0x1EF4,
  26753. Yericyrillic: 0x042B,
  26754. Yerudieresiscyrillic: 0x04F8,
  26755. Ygrave: 0x1EF2,
  26756. Yhook: 0x01B3,
  26757. Yhookabove: 0x1EF6,
  26758. Yiarmenian: 0x0545,
  26759. Yicyrillic: 0x0407,
  26760. Yiwnarmenian: 0x0552,
  26761. Ymonospace: 0xFF39,
  26762. Ysmall: 0xF779,
  26763. Ytilde: 0x1EF8,
  26764. Yusbigcyrillic: 0x046A,
  26765. Yusbigiotifiedcyrillic: 0x046C,
  26766. Yuslittlecyrillic: 0x0466,
  26767. Yuslittleiotifiedcyrillic: 0x0468,
  26768. Z: 0x005A,
  26769. Zaarmenian: 0x0536,
  26770. Zacute: 0x0179,
  26771. Zcaron: 0x017D,
  26772. Zcaronsmall: 0xF6FF,
  26773. Zcircle: 0x24CF,
  26774. Zcircumflex: 0x1E90,
  26775. Zdot: 0x017B,
  26776. Zdotaccent: 0x017B,
  26777. Zdotbelow: 0x1E92,
  26778. Zecyrillic: 0x0417,
  26779. Zedescendercyrillic: 0x0498,
  26780. Zedieresiscyrillic: 0x04DE,
  26781. Zeta: 0x0396,
  26782. Zhearmenian: 0x053A,
  26783. Zhebrevecyrillic: 0x04C1,
  26784. Zhecyrillic: 0x0416,
  26785. Zhedescendercyrillic: 0x0496,
  26786. Zhedieresiscyrillic: 0x04DC,
  26787. Zlinebelow: 0x1E94,
  26788. Zmonospace: 0xFF3A,
  26789. Zsmall: 0xF77A,
  26790. Zstroke: 0x01B5,
  26791. a: 0x0061,
  26792. aabengali: 0x0986,
  26793. aacute: 0x00E1,
  26794. aadeva: 0x0906,
  26795. aagujarati: 0x0A86,
  26796. aagurmukhi: 0x0A06,
  26797. aamatragurmukhi: 0x0A3E,
  26798. aarusquare: 0x3303,
  26799. aavowelsignbengali: 0x09BE,
  26800. aavowelsigndeva: 0x093E,
  26801. aavowelsigngujarati: 0x0ABE,
  26802. abbreviationmarkarmenian: 0x055F,
  26803. abbreviationsigndeva: 0x0970,
  26804. abengali: 0x0985,
  26805. abopomofo: 0x311A,
  26806. abreve: 0x0103,
  26807. abreveacute: 0x1EAF,
  26808. abrevecyrillic: 0x04D1,
  26809. abrevedotbelow: 0x1EB7,
  26810. abrevegrave: 0x1EB1,
  26811. abrevehookabove: 0x1EB3,
  26812. abrevetilde: 0x1EB5,
  26813. acaron: 0x01CE,
  26814. acircle: 0x24D0,
  26815. acircumflex: 0x00E2,
  26816. acircumflexacute: 0x1EA5,
  26817. acircumflexdotbelow: 0x1EAD,
  26818. acircumflexgrave: 0x1EA7,
  26819. acircumflexhookabove: 0x1EA9,
  26820. acircumflextilde: 0x1EAB,
  26821. acute: 0x00B4,
  26822. acutebelowcmb: 0x0317,
  26823. acutecmb: 0x0301,
  26824. acutecomb: 0x0301,
  26825. acutedeva: 0x0954,
  26826. acutelowmod: 0x02CF,
  26827. acutetonecmb: 0x0341,
  26828. acyrillic: 0x0430,
  26829. adblgrave: 0x0201,
  26830. addakgurmukhi: 0x0A71,
  26831. adeva: 0x0905,
  26832. adieresis: 0x00E4,
  26833. adieresiscyrillic: 0x04D3,
  26834. adieresismacron: 0x01DF,
  26835. adotbelow: 0x1EA1,
  26836. adotmacron: 0x01E1,
  26837. ae: 0x00E6,
  26838. aeacute: 0x01FD,
  26839. aekorean: 0x3150,
  26840. aemacron: 0x01E3,
  26841. afii00208: 0x2015,
  26842. afii08941: 0x20A4,
  26843. afii10017: 0x0410,
  26844. afii10018: 0x0411,
  26845. afii10019: 0x0412,
  26846. afii10020: 0x0413,
  26847. afii10021: 0x0414,
  26848. afii10022: 0x0415,
  26849. afii10023: 0x0401,
  26850. afii10024: 0x0416,
  26851. afii10025: 0x0417,
  26852. afii10026: 0x0418,
  26853. afii10027: 0x0419,
  26854. afii10028: 0x041A,
  26855. afii10029: 0x041B,
  26856. afii10030: 0x041C,
  26857. afii10031: 0x041D,
  26858. afii10032: 0x041E,
  26859. afii10033: 0x041F,
  26860. afii10034: 0x0420,
  26861. afii10035: 0x0421,
  26862. afii10036: 0x0422,
  26863. afii10037: 0x0423,
  26864. afii10038: 0x0424,
  26865. afii10039: 0x0425,
  26866. afii10040: 0x0426,
  26867. afii10041: 0x0427,
  26868. afii10042: 0x0428,
  26869. afii10043: 0x0429,
  26870. afii10044: 0x042A,
  26871. afii10045: 0x042B,
  26872. afii10046: 0x042C,
  26873. afii10047: 0x042D,
  26874. afii10048: 0x042E,
  26875. afii10049: 0x042F,
  26876. afii10050: 0x0490,
  26877. afii10051: 0x0402,
  26878. afii10052: 0x0403,
  26879. afii10053: 0x0404,
  26880. afii10054: 0x0405,
  26881. afii10055: 0x0406,
  26882. afii10056: 0x0407,
  26883. afii10057: 0x0408,
  26884. afii10058: 0x0409,
  26885. afii10059: 0x040A,
  26886. afii10060: 0x040B,
  26887. afii10061: 0x040C,
  26888. afii10062: 0x040E,
  26889. afii10063: 0xF6C4,
  26890. afii10064: 0xF6C5,
  26891. afii10065: 0x0430,
  26892. afii10066: 0x0431,
  26893. afii10067: 0x0432,
  26894. afii10068: 0x0433,
  26895. afii10069: 0x0434,
  26896. afii10070: 0x0435,
  26897. afii10071: 0x0451,
  26898. afii10072: 0x0436,
  26899. afii10073: 0x0437,
  26900. afii10074: 0x0438,
  26901. afii10075: 0x0439,
  26902. afii10076: 0x043A,
  26903. afii10077: 0x043B,
  26904. afii10078: 0x043C,
  26905. afii10079: 0x043D,
  26906. afii10080: 0x043E,
  26907. afii10081: 0x043F,
  26908. afii10082: 0x0440,
  26909. afii10083: 0x0441,
  26910. afii10084: 0x0442,
  26911. afii10085: 0x0443,
  26912. afii10086: 0x0444,
  26913. afii10087: 0x0445,
  26914. afii10088: 0x0446,
  26915. afii10089: 0x0447,
  26916. afii10090: 0x0448,
  26917. afii10091: 0x0449,
  26918. afii10092: 0x044A,
  26919. afii10093: 0x044B,
  26920. afii10094: 0x044C,
  26921. afii10095: 0x044D,
  26922. afii10096: 0x044E,
  26923. afii10097: 0x044F,
  26924. afii10098: 0x0491,
  26925. afii10099: 0x0452,
  26926. afii10100: 0x0453,
  26927. afii10101: 0x0454,
  26928. afii10102: 0x0455,
  26929. afii10103: 0x0456,
  26930. afii10104: 0x0457,
  26931. afii10105: 0x0458,
  26932. afii10106: 0x0459,
  26933. afii10107: 0x045A,
  26934. afii10108: 0x045B,
  26935. afii10109: 0x045C,
  26936. afii10110: 0x045E,
  26937. afii10145: 0x040F,
  26938. afii10146: 0x0462,
  26939. afii10147: 0x0472,
  26940. afii10148: 0x0474,
  26941. afii10192: 0xF6C6,
  26942. afii10193: 0x045F,
  26943. afii10194: 0x0463,
  26944. afii10195: 0x0473,
  26945. afii10196: 0x0475,
  26946. afii10831: 0xF6C7,
  26947. afii10832: 0xF6C8,
  26948. afii10846: 0x04D9,
  26949. afii299: 0x200E,
  26950. afii300: 0x200F,
  26951. afii301: 0x200D,
  26952. afii57381: 0x066A,
  26953. afii57388: 0x060C,
  26954. afii57392: 0x0660,
  26955. afii57393: 0x0661,
  26956. afii57394: 0x0662,
  26957. afii57395: 0x0663,
  26958. afii57396: 0x0664,
  26959. afii57397: 0x0665,
  26960. afii57398: 0x0666,
  26961. afii57399: 0x0667,
  26962. afii57400: 0x0668,
  26963. afii57401: 0x0669,
  26964. afii57403: 0x061B,
  26965. afii57407: 0x061F,
  26966. afii57409: 0x0621,
  26967. afii57410: 0x0622,
  26968. afii57411: 0x0623,
  26969. afii57412: 0x0624,
  26970. afii57413: 0x0625,
  26971. afii57414: 0x0626,
  26972. afii57415: 0x0627,
  26973. afii57416: 0x0628,
  26974. afii57417: 0x0629,
  26975. afii57418: 0x062A,
  26976. afii57419: 0x062B,
  26977. afii57420: 0x062C,
  26978. afii57421: 0x062D,
  26979. afii57422: 0x062E,
  26980. afii57423: 0x062F,
  26981. afii57424: 0x0630,
  26982. afii57425: 0x0631,
  26983. afii57426: 0x0632,
  26984. afii57427: 0x0633,
  26985. afii57428: 0x0634,
  26986. afii57429: 0x0635,
  26987. afii57430: 0x0636,
  26988. afii57431: 0x0637,
  26989. afii57432: 0x0638,
  26990. afii57433: 0x0639,
  26991. afii57434: 0x063A,
  26992. afii57440: 0x0640,
  26993. afii57441: 0x0641,
  26994. afii57442: 0x0642,
  26995. afii57443: 0x0643,
  26996. afii57444: 0x0644,
  26997. afii57445: 0x0645,
  26998. afii57446: 0x0646,
  26999. afii57448: 0x0648,
  27000. afii57449: 0x0649,
  27001. afii57450: 0x064A,
  27002. afii57451: 0x064B,
  27003. afii57452: 0x064C,
  27004. afii57453: 0x064D,
  27005. afii57454: 0x064E,
  27006. afii57455: 0x064F,
  27007. afii57456: 0x0650,
  27008. afii57457: 0x0651,
  27009. afii57458: 0x0652,
  27010. afii57470: 0x0647,
  27011. afii57505: 0x06A4,
  27012. afii57506: 0x067E,
  27013. afii57507: 0x0686,
  27014. afii57508: 0x0698,
  27015. afii57509: 0x06AF,
  27016. afii57511: 0x0679,
  27017. afii57512: 0x0688,
  27018. afii57513: 0x0691,
  27019. afii57514: 0x06BA,
  27020. afii57519: 0x06D2,
  27021. afii57534: 0x06D5,
  27022. afii57636: 0x20AA,
  27023. afii57645: 0x05BE,
  27024. afii57658: 0x05C3,
  27025. afii57664: 0x05D0,
  27026. afii57665: 0x05D1,
  27027. afii57666: 0x05D2,
  27028. afii57667: 0x05D3,
  27029. afii57668: 0x05D4,
  27030. afii57669: 0x05D5,
  27031. afii57670: 0x05D6,
  27032. afii57671: 0x05D7,
  27033. afii57672: 0x05D8,
  27034. afii57673: 0x05D9,
  27035. afii57674: 0x05DA,
  27036. afii57675: 0x05DB,
  27037. afii57676: 0x05DC,
  27038. afii57677: 0x05DD,
  27039. afii57678: 0x05DE,
  27040. afii57679: 0x05DF,
  27041. afii57680: 0x05E0,
  27042. afii57681: 0x05E1,
  27043. afii57682: 0x05E2,
  27044. afii57683: 0x05E3,
  27045. afii57684: 0x05E4,
  27046. afii57685: 0x05E5,
  27047. afii57686: 0x05E6,
  27048. afii57687: 0x05E7,
  27049. afii57688: 0x05E8,
  27050. afii57689: 0x05E9,
  27051. afii57690: 0x05EA,
  27052. afii57694: 0xFB2A,
  27053. afii57695: 0xFB2B,
  27054. afii57700: 0xFB4B,
  27055. afii57705: 0xFB1F,
  27056. afii57716: 0x05F0,
  27057. afii57717: 0x05F1,
  27058. afii57718: 0x05F2,
  27059. afii57723: 0xFB35,
  27060. afii57793: 0x05B4,
  27061. afii57794: 0x05B5,
  27062. afii57795: 0x05B6,
  27063. afii57796: 0x05BB,
  27064. afii57797: 0x05B8,
  27065. afii57798: 0x05B7,
  27066. afii57799: 0x05B0,
  27067. afii57800: 0x05B2,
  27068. afii57801: 0x05B1,
  27069. afii57802: 0x05B3,
  27070. afii57803: 0x05C2,
  27071. afii57804: 0x05C1,
  27072. afii57806: 0x05B9,
  27073. afii57807: 0x05BC,
  27074. afii57839: 0x05BD,
  27075. afii57841: 0x05BF,
  27076. afii57842: 0x05C0,
  27077. afii57929: 0x02BC,
  27078. afii61248: 0x2105,
  27079. afii61289: 0x2113,
  27080. afii61352: 0x2116,
  27081. afii61573: 0x202C,
  27082. afii61574: 0x202D,
  27083. afii61575: 0x202E,
  27084. afii61664: 0x200C,
  27085. afii63167: 0x066D,
  27086. afii64937: 0x02BD,
  27087. agrave: 0x00E0,
  27088. agujarati: 0x0A85,
  27089. agurmukhi: 0x0A05,
  27090. ahiragana: 0x3042,
  27091. ahookabove: 0x1EA3,
  27092. aibengali: 0x0990,
  27093. aibopomofo: 0x311E,
  27094. aideva: 0x0910,
  27095. aiecyrillic: 0x04D5,
  27096. aigujarati: 0x0A90,
  27097. aigurmukhi: 0x0A10,
  27098. aimatragurmukhi: 0x0A48,
  27099. ainarabic: 0x0639,
  27100. ainfinalarabic: 0xFECA,
  27101. aininitialarabic: 0xFECB,
  27102. ainmedialarabic: 0xFECC,
  27103. ainvertedbreve: 0x0203,
  27104. aivowelsignbengali: 0x09C8,
  27105. aivowelsigndeva: 0x0948,
  27106. aivowelsigngujarati: 0x0AC8,
  27107. akatakana: 0x30A2,
  27108. akatakanahalfwidth: 0xFF71,
  27109. akorean: 0x314F,
  27110. alef: 0x05D0,
  27111. alefarabic: 0x0627,
  27112. alefdageshhebrew: 0xFB30,
  27113. aleffinalarabic: 0xFE8E,
  27114. alefhamzaabovearabic: 0x0623,
  27115. alefhamzaabovefinalarabic: 0xFE84,
  27116. alefhamzabelowarabic: 0x0625,
  27117. alefhamzabelowfinalarabic: 0xFE88,
  27118. alefhebrew: 0x05D0,
  27119. aleflamedhebrew: 0xFB4F,
  27120. alefmaddaabovearabic: 0x0622,
  27121. alefmaddaabovefinalarabic: 0xFE82,
  27122. alefmaksuraarabic: 0x0649,
  27123. alefmaksurafinalarabic: 0xFEF0,
  27124. alefmaksurainitialarabic: 0xFEF3,
  27125. alefmaksuramedialarabic: 0xFEF4,
  27126. alefpatahhebrew: 0xFB2E,
  27127. alefqamatshebrew: 0xFB2F,
  27128. aleph: 0x2135,
  27129. allequal: 0x224C,
  27130. alpha: 0x03B1,
  27131. alphatonos: 0x03AC,
  27132. amacron: 0x0101,
  27133. amonospace: 0xFF41,
  27134. ampersand: 0x0026,
  27135. ampersandmonospace: 0xFF06,
  27136. ampersandsmall: 0xF726,
  27137. amsquare: 0x33C2,
  27138. anbopomofo: 0x3122,
  27139. angbopomofo: 0x3124,
  27140. angbracketleft: 0x3008, // This glyph is missing from Adobe's original list.
  27141. angbracketright: 0x3009, // This glyph is missing from Adobe's original list.
  27142. angkhankhuthai: 0x0E5A,
  27143. angle: 0x2220,
  27144. anglebracketleft: 0x3008,
  27145. anglebracketleftvertical: 0xFE3F,
  27146. anglebracketright: 0x3009,
  27147. anglebracketrightvertical: 0xFE40,
  27148. angleleft: 0x2329,
  27149. angleright: 0x232A,
  27150. angstrom: 0x212B,
  27151. anoteleia: 0x0387,
  27152. anudattadeva: 0x0952,
  27153. anusvarabengali: 0x0982,
  27154. anusvaradeva: 0x0902,
  27155. anusvaragujarati: 0x0A82,
  27156. aogonek: 0x0105,
  27157. apaatosquare: 0x3300,
  27158. aparen: 0x249C,
  27159. apostrophearmenian: 0x055A,
  27160. apostrophemod: 0x02BC,
  27161. apple: 0xF8FF,
  27162. approaches: 0x2250,
  27163. approxequal: 0x2248,
  27164. approxequalorimage: 0x2252,
  27165. approximatelyequal: 0x2245,
  27166. araeaekorean: 0x318E,
  27167. araeakorean: 0x318D,
  27168. arc: 0x2312,
  27169. arighthalfring: 0x1E9A,
  27170. aring: 0x00E5,
  27171. aringacute: 0x01FB,
  27172. aringbelow: 0x1E01,
  27173. arrowboth: 0x2194,
  27174. arrowdashdown: 0x21E3,
  27175. arrowdashleft: 0x21E0,
  27176. arrowdashright: 0x21E2,
  27177. arrowdashup: 0x21E1,
  27178. arrowdblboth: 0x21D4,
  27179. arrowdbldown: 0x21D3,
  27180. arrowdblleft: 0x21D0,
  27181. arrowdblright: 0x21D2,
  27182. arrowdblup: 0x21D1,
  27183. arrowdown: 0x2193,
  27184. arrowdownleft: 0x2199,
  27185. arrowdownright: 0x2198,
  27186. arrowdownwhite: 0x21E9,
  27187. arrowheaddownmod: 0x02C5,
  27188. arrowheadleftmod: 0x02C2,
  27189. arrowheadrightmod: 0x02C3,
  27190. arrowheadupmod: 0x02C4,
  27191. arrowhorizex: 0xF8E7,
  27192. arrowleft: 0x2190,
  27193. arrowleftdbl: 0x21D0,
  27194. arrowleftdblstroke: 0x21CD,
  27195. arrowleftoverright: 0x21C6,
  27196. arrowleftwhite: 0x21E6,
  27197. arrowright: 0x2192,
  27198. arrowrightdblstroke: 0x21CF,
  27199. arrowrightheavy: 0x279E,
  27200. arrowrightoverleft: 0x21C4,
  27201. arrowrightwhite: 0x21E8,
  27202. arrowtableft: 0x21E4,
  27203. arrowtabright: 0x21E5,
  27204. arrowup: 0x2191,
  27205. arrowupdn: 0x2195,
  27206. arrowupdnbse: 0x21A8,
  27207. arrowupdownbase: 0x21A8,
  27208. arrowupleft: 0x2196,
  27209. arrowupleftofdown: 0x21C5,
  27210. arrowupright: 0x2197,
  27211. arrowupwhite: 0x21E7,
  27212. arrowvertex: 0xF8E6,
  27213. asciicircum: 0x005E,
  27214. asciicircummonospace: 0xFF3E,
  27215. asciitilde: 0x007E,
  27216. asciitildemonospace: 0xFF5E,
  27217. ascript: 0x0251,
  27218. ascriptturned: 0x0252,
  27219. asmallhiragana: 0x3041,
  27220. asmallkatakana: 0x30A1,
  27221. asmallkatakanahalfwidth: 0xFF67,
  27222. asterisk: 0x002A,
  27223. asteriskaltonearabic: 0x066D,
  27224. asteriskarabic: 0x066D,
  27225. asteriskmath: 0x2217,
  27226. asteriskmonospace: 0xFF0A,
  27227. asterisksmall: 0xFE61,
  27228. asterism: 0x2042,
  27229. asuperior: 0xF6E9,
  27230. asymptoticallyequal: 0x2243,
  27231. at: 0x0040,
  27232. atilde: 0x00E3,
  27233. atmonospace: 0xFF20,
  27234. atsmall: 0xFE6B,
  27235. aturned: 0x0250,
  27236. aubengali: 0x0994,
  27237. aubopomofo: 0x3120,
  27238. audeva: 0x0914,
  27239. augujarati: 0x0A94,
  27240. augurmukhi: 0x0A14,
  27241. aulengthmarkbengali: 0x09D7,
  27242. aumatragurmukhi: 0x0A4C,
  27243. auvowelsignbengali: 0x09CC,
  27244. auvowelsigndeva: 0x094C,
  27245. auvowelsigngujarati: 0x0ACC,
  27246. avagrahadeva: 0x093D,
  27247. aybarmenian: 0x0561,
  27248. ayin: 0x05E2,
  27249. ayinaltonehebrew: 0xFB20,
  27250. ayinhebrew: 0x05E2,
  27251. b: 0x0062,
  27252. babengali: 0x09AC,
  27253. backslash: 0x005C,
  27254. backslashmonospace: 0xFF3C,
  27255. badeva: 0x092C,
  27256. bagujarati: 0x0AAC,
  27257. bagurmukhi: 0x0A2C,
  27258. bahiragana: 0x3070,
  27259. bahtthai: 0x0E3F,
  27260. bakatakana: 0x30D0,
  27261. bar: 0x007C,
  27262. barmonospace: 0xFF5C,
  27263. bbopomofo: 0x3105,
  27264. bcircle: 0x24D1,
  27265. bdotaccent: 0x1E03,
  27266. bdotbelow: 0x1E05,
  27267. beamedsixteenthnotes: 0x266C,
  27268. because: 0x2235,
  27269. becyrillic: 0x0431,
  27270. beharabic: 0x0628,
  27271. behfinalarabic: 0xFE90,
  27272. behinitialarabic: 0xFE91,
  27273. behiragana: 0x3079,
  27274. behmedialarabic: 0xFE92,
  27275. behmeeminitialarabic: 0xFC9F,
  27276. behmeemisolatedarabic: 0xFC08,
  27277. behnoonfinalarabic: 0xFC6D,
  27278. bekatakana: 0x30D9,
  27279. benarmenian: 0x0562,
  27280. bet: 0x05D1,
  27281. beta: 0x03B2,
  27282. betasymbolgreek: 0x03D0,
  27283. betdagesh: 0xFB31,
  27284. betdageshhebrew: 0xFB31,
  27285. bethebrew: 0x05D1,
  27286. betrafehebrew: 0xFB4C,
  27287. bhabengali: 0x09AD,
  27288. bhadeva: 0x092D,
  27289. bhagujarati: 0x0AAD,
  27290. bhagurmukhi: 0x0A2D,
  27291. bhook: 0x0253,
  27292. bihiragana: 0x3073,
  27293. bikatakana: 0x30D3,
  27294. bilabialclick: 0x0298,
  27295. bindigurmukhi: 0x0A02,
  27296. birusquare: 0x3331,
  27297. blackcircle: 0x25CF,
  27298. blackdiamond: 0x25C6,
  27299. blackdownpointingtriangle: 0x25BC,
  27300. blackleftpointingpointer: 0x25C4,
  27301. blackleftpointingtriangle: 0x25C0,
  27302. blacklenticularbracketleft: 0x3010,
  27303. blacklenticularbracketleftvertical: 0xFE3B,
  27304. blacklenticularbracketright: 0x3011,
  27305. blacklenticularbracketrightvertical: 0xFE3C,
  27306. blacklowerlefttriangle: 0x25E3,
  27307. blacklowerrighttriangle: 0x25E2,
  27308. blackrectangle: 0x25AC,
  27309. blackrightpointingpointer: 0x25BA,
  27310. blackrightpointingtriangle: 0x25B6,
  27311. blacksmallsquare: 0x25AA,
  27312. blacksmilingface: 0x263B,
  27313. blacksquare: 0x25A0,
  27314. blackstar: 0x2605,
  27315. blackupperlefttriangle: 0x25E4,
  27316. blackupperrighttriangle: 0x25E5,
  27317. blackuppointingsmalltriangle: 0x25B4,
  27318. blackuppointingtriangle: 0x25B2,
  27319. blank: 0x2423,
  27320. blinebelow: 0x1E07,
  27321. block: 0x2588,
  27322. bmonospace: 0xFF42,
  27323. bobaimaithai: 0x0E1A,
  27324. bohiragana: 0x307C,
  27325. bokatakana: 0x30DC,
  27326. bparen: 0x249D,
  27327. bqsquare: 0x33C3,
  27328. braceex: 0xF8F4,
  27329. braceleft: 0x007B,
  27330. braceleftbt: 0xF8F3,
  27331. braceleftmid: 0xF8F2,
  27332. braceleftmonospace: 0xFF5B,
  27333. braceleftsmall: 0xFE5B,
  27334. bracelefttp: 0xF8F1,
  27335. braceleftvertical: 0xFE37,
  27336. braceright: 0x007D,
  27337. bracerightbt: 0xF8FE,
  27338. bracerightmid: 0xF8FD,
  27339. bracerightmonospace: 0xFF5D,
  27340. bracerightsmall: 0xFE5C,
  27341. bracerighttp: 0xF8FC,
  27342. bracerightvertical: 0xFE38,
  27343. bracketleft: 0x005B,
  27344. bracketleftbt: 0xF8F0,
  27345. bracketleftex: 0xF8EF,
  27346. bracketleftmonospace: 0xFF3B,
  27347. bracketlefttp: 0xF8EE,
  27348. bracketright: 0x005D,
  27349. bracketrightbt: 0xF8FB,
  27350. bracketrightex: 0xF8FA,
  27351. bracketrightmonospace: 0xFF3D,
  27352. bracketrighttp: 0xF8F9,
  27353. breve: 0x02D8,
  27354. brevebelowcmb: 0x032E,
  27355. brevecmb: 0x0306,
  27356. breveinvertedbelowcmb: 0x032F,
  27357. breveinvertedcmb: 0x0311,
  27358. breveinverteddoublecmb: 0x0361,
  27359. bridgebelowcmb: 0x032A,
  27360. bridgeinvertedbelowcmb: 0x033A,
  27361. brokenbar: 0x00A6,
  27362. bstroke: 0x0180,
  27363. bsuperior: 0xF6EA,
  27364. btopbar: 0x0183,
  27365. buhiragana: 0x3076,
  27366. bukatakana: 0x30D6,
  27367. bullet: 0x2022,
  27368. bulletinverse: 0x25D8,
  27369. bulletoperator: 0x2219,
  27370. bullseye: 0x25CE,
  27371. c: 0x0063,
  27372. caarmenian: 0x056E,
  27373. cabengali: 0x099A,
  27374. cacute: 0x0107,
  27375. cadeva: 0x091A,
  27376. cagujarati: 0x0A9A,
  27377. cagurmukhi: 0x0A1A,
  27378. calsquare: 0x3388,
  27379. candrabindubengali: 0x0981,
  27380. candrabinducmb: 0x0310,
  27381. candrabindudeva: 0x0901,
  27382. candrabindugujarati: 0x0A81,
  27383. capslock: 0x21EA,
  27384. careof: 0x2105,
  27385. caron: 0x02C7,
  27386. caronbelowcmb: 0x032C,
  27387. caroncmb: 0x030C,
  27388. carriagereturn: 0x21B5,
  27389. cbopomofo: 0x3118,
  27390. ccaron: 0x010D,
  27391. ccedilla: 0x00E7,
  27392. ccedillaacute: 0x1E09,
  27393. ccircle: 0x24D2,
  27394. ccircumflex: 0x0109,
  27395. ccurl: 0x0255,
  27396. cdot: 0x010B,
  27397. cdotaccent: 0x010B,
  27398. cdsquare: 0x33C5,
  27399. cedilla: 0x00B8,
  27400. cedillacmb: 0x0327,
  27401. cent: 0x00A2,
  27402. centigrade: 0x2103,
  27403. centinferior: 0xF6DF,
  27404. centmonospace: 0xFFE0,
  27405. centoldstyle: 0xF7A2,
  27406. centsuperior: 0xF6E0,
  27407. chaarmenian: 0x0579,
  27408. chabengali: 0x099B,
  27409. chadeva: 0x091B,
  27410. chagujarati: 0x0A9B,
  27411. chagurmukhi: 0x0A1B,
  27412. chbopomofo: 0x3114,
  27413. cheabkhasiancyrillic: 0x04BD,
  27414. checkmark: 0x2713,
  27415. checyrillic: 0x0447,
  27416. chedescenderabkhasiancyrillic: 0x04BF,
  27417. chedescendercyrillic: 0x04B7,
  27418. chedieresiscyrillic: 0x04F5,
  27419. cheharmenian: 0x0573,
  27420. chekhakassiancyrillic: 0x04CC,
  27421. cheverticalstrokecyrillic: 0x04B9,
  27422. chi: 0x03C7,
  27423. chieuchacirclekorean: 0x3277,
  27424. chieuchaparenkorean: 0x3217,
  27425. chieuchcirclekorean: 0x3269,
  27426. chieuchkorean: 0x314A,
  27427. chieuchparenkorean: 0x3209,
  27428. chochangthai: 0x0E0A,
  27429. chochanthai: 0x0E08,
  27430. chochingthai: 0x0E09,
  27431. chochoethai: 0x0E0C,
  27432. chook: 0x0188,
  27433. cieucacirclekorean: 0x3276,
  27434. cieucaparenkorean: 0x3216,
  27435. cieuccirclekorean: 0x3268,
  27436. cieuckorean: 0x3148,
  27437. cieucparenkorean: 0x3208,
  27438. cieucuparenkorean: 0x321C,
  27439. circle: 0x25CB,
  27440. circlecopyrt: 0x00A9, // This glyph is missing from Adobe's original list.
  27441. circlemultiply: 0x2297,
  27442. circleot: 0x2299,
  27443. circleplus: 0x2295,
  27444. circlepostalmark: 0x3036,
  27445. circlewithlefthalfblack: 0x25D0,
  27446. circlewithrighthalfblack: 0x25D1,
  27447. circumflex: 0x02C6,
  27448. circumflexbelowcmb: 0x032D,
  27449. circumflexcmb: 0x0302,
  27450. clear: 0x2327,
  27451. clickalveolar: 0x01C2,
  27452. clickdental: 0x01C0,
  27453. clicklateral: 0x01C1,
  27454. clickretroflex: 0x01C3,
  27455. club: 0x2663,
  27456. clubsuitblack: 0x2663,
  27457. clubsuitwhite: 0x2667,
  27458. cmcubedsquare: 0x33A4,
  27459. cmonospace: 0xFF43,
  27460. cmsquaredsquare: 0x33A0,
  27461. coarmenian: 0x0581,
  27462. colon: 0x003A,
  27463. colonmonetary: 0x20A1,
  27464. colonmonospace: 0xFF1A,
  27465. colonsign: 0x20A1,
  27466. colonsmall: 0xFE55,
  27467. colontriangularhalfmod: 0x02D1,
  27468. colontriangularmod: 0x02D0,
  27469. comma: 0x002C,
  27470. commaabovecmb: 0x0313,
  27471. commaaboverightcmb: 0x0315,
  27472. commaaccent: 0xF6C3,
  27473. commaarabic: 0x060C,
  27474. commaarmenian: 0x055D,
  27475. commainferior: 0xF6E1,
  27476. commamonospace: 0xFF0C,
  27477. commareversedabovecmb: 0x0314,
  27478. commareversedmod: 0x02BD,
  27479. commasmall: 0xFE50,
  27480. commasuperior: 0xF6E2,
  27481. commaturnedabovecmb: 0x0312,
  27482. commaturnedmod: 0x02BB,
  27483. compass: 0x263C,
  27484. congruent: 0x2245,
  27485. contourintegral: 0x222E,
  27486. control: 0x2303,
  27487. controlACK: 0x0006,
  27488. controlBEL: 0x0007,
  27489. controlBS: 0x0008,
  27490. controlCAN: 0x0018,
  27491. controlCR: 0x000D,
  27492. controlDC1: 0x0011,
  27493. controlDC2: 0x0012,
  27494. controlDC3: 0x0013,
  27495. controlDC4: 0x0014,
  27496. controlDEL: 0x007F,
  27497. controlDLE: 0x0010,
  27498. controlEM: 0x0019,
  27499. controlENQ: 0x0005,
  27500. controlEOT: 0x0004,
  27501. controlESC: 0x001B,
  27502. controlETB: 0x0017,
  27503. controlETX: 0x0003,
  27504. controlFF: 0x000C,
  27505. controlFS: 0x001C,
  27506. controlGS: 0x001D,
  27507. controlHT: 0x0009,
  27508. controlLF: 0x000A,
  27509. controlNAK: 0x0015,
  27510. controlRS: 0x001E,
  27511. controlSI: 0x000F,
  27512. controlSO: 0x000E,
  27513. controlSOT: 0x0002,
  27514. controlSTX: 0x0001,
  27515. controlSUB: 0x001A,
  27516. controlSYN: 0x0016,
  27517. controlUS: 0x001F,
  27518. controlVT: 0x000B,
  27519. copyright: 0x00A9,
  27520. copyrightsans: 0xF8E9,
  27521. copyrightserif: 0xF6D9,
  27522. cornerbracketleft: 0x300C,
  27523. cornerbracketlefthalfwidth: 0xFF62,
  27524. cornerbracketleftvertical: 0xFE41,
  27525. cornerbracketright: 0x300D,
  27526. cornerbracketrighthalfwidth: 0xFF63,
  27527. cornerbracketrightvertical: 0xFE42,
  27528. corporationsquare: 0x337F,
  27529. cosquare: 0x33C7,
  27530. coverkgsquare: 0x33C6,
  27531. cparen: 0x249E,
  27532. cruzeiro: 0x20A2,
  27533. cstretched: 0x0297,
  27534. curlyand: 0x22CF,
  27535. curlyor: 0x22CE,
  27536. currency: 0x00A4,
  27537. cyrBreve: 0xF6D1,
  27538. cyrFlex: 0xF6D2,
  27539. cyrbreve: 0xF6D4,
  27540. cyrflex: 0xF6D5,
  27541. d: 0x0064,
  27542. daarmenian: 0x0564,
  27543. dabengali: 0x09A6,
  27544. dadarabic: 0x0636,
  27545. dadeva: 0x0926,
  27546. dadfinalarabic: 0xFEBE,
  27547. dadinitialarabic: 0xFEBF,
  27548. dadmedialarabic: 0xFEC0,
  27549. dagesh: 0x05BC,
  27550. dageshhebrew: 0x05BC,
  27551. dagger: 0x2020,
  27552. daggerdbl: 0x2021,
  27553. dagujarati: 0x0AA6,
  27554. dagurmukhi: 0x0A26,
  27555. dahiragana: 0x3060,
  27556. dakatakana: 0x30C0,
  27557. dalarabic: 0x062F,
  27558. dalet: 0x05D3,
  27559. daletdagesh: 0xFB33,
  27560. daletdageshhebrew: 0xFB33,
  27561. dalethebrew: 0x05D3,
  27562. dalfinalarabic: 0xFEAA,
  27563. dammaarabic: 0x064F,
  27564. dammalowarabic: 0x064F,
  27565. dammatanaltonearabic: 0x064C,
  27566. dammatanarabic: 0x064C,
  27567. danda: 0x0964,
  27568. dargahebrew: 0x05A7,
  27569. dargalefthebrew: 0x05A7,
  27570. dasiapneumatacyrilliccmb: 0x0485,
  27571. dblGrave: 0xF6D3,
  27572. dblanglebracketleft: 0x300A,
  27573. dblanglebracketleftvertical: 0xFE3D,
  27574. dblanglebracketright: 0x300B,
  27575. dblanglebracketrightvertical: 0xFE3E,
  27576. dblarchinvertedbelowcmb: 0x032B,
  27577. dblarrowleft: 0x21D4,
  27578. dblarrowright: 0x21D2,
  27579. dbldanda: 0x0965,
  27580. dblgrave: 0xF6D6,
  27581. dblgravecmb: 0x030F,
  27582. dblintegral: 0x222C,
  27583. dbllowline: 0x2017,
  27584. dbllowlinecmb: 0x0333,
  27585. dbloverlinecmb: 0x033F,
  27586. dblprimemod: 0x02BA,
  27587. dblverticalbar: 0x2016,
  27588. dblverticallineabovecmb: 0x030E,
  27589. dbopomofo: 0x3109,
  27590. dbsquare: 0x33C8,
  27591. dcaron: 0x010F,
  27592. dcedilla: 0x1E11,
  27593. dcircle: 0x24D3,
  27594. dcircumflexbelow: 0x1E13,
  27595. dcroat: 0x0111,
  27596. ddabengali: 0x09A1,
  27597. ddadeva: 0x0921,
  27598. ddagujarati: 0x0AA1,
  27599. ddagurmukhi: 0x0A21,
  27600. ddalarabic: 0x0688,
  27601. ddalfinalarabic: 0xFB89,
  27602. dddhadeva: 0x095C,
  27603. ddhabengali: 0x09A2,
  27604. ddhadeva: 0x0922,
  27605. ddhagujarati: 0x0AA2,
  27606. ddhagurmukhi: 0x0A22,
  27607. ddotaccent: 0x1E0B,
  27608. ddotbelow: 0x1E0D,
  27609. decimalseparatorarabic: 0x066B,
  27610. decimalseparatorpersian: 0x066B,
  27611. decyrillic: 0x0434,
  27612. degree: 0x00B0,
  27613. dehihebrew: 0x05AD,
  27614. dehiragana: 0x3067,
  27615. deicoptic: 0x03EF,
  27616. dekatakana: 0x30C7,
  27617. deleteleft: 0x232B,
  27618. deleteright: 0x2326,
  27619. delta: 0x03B4,
  27620. deltaturned: 0x018D,
  27621. denominatorminusonenumeratorbengali: 0x09F8,
  27622. dezh: 0x02A4,
  27623. dhabengali: 0x09A7,
  27624. dhadeva: 0x0927,
  27625. dhagujarati: 0x0AA7,
  27626. dhagurmukhi: 0x0A27,
  27627. dhook: 0x0257,
  27628. dialytikatonos: 0x0385,
  27629. dialytikatonoscmb: 0x0344,
  27630. diamond: 0x2666,
  27631. diamondsuitwhite: 0x2662,
  27632. dieresis: 0x00A8,
  27633. dieresisacute: 0xF6D7,
  27634. dieresisbelowcmb: 0x0324,
  27635. dieresiscmb: 0x0308,
  27636. dieresisgrave: 0xF6D8,
  27637. dieresistonos: 0x0385,
  27638. dihiragana: 0x3062,
  27639. dikatakana: 0x30C2,
  27640. dittomark: 0x3003,
  27641. divide: 0x00F7,
  27642. divides: 0x2223,
  27643. divisionslash: 0x2215,
  27644. djecyrillic: 0x0452,
  27645. dkshade: 0x2593,
  27646. dlinebelow: 0x1E0F,
  27647. dlsquare: 0x3397,
  27648. dmacron: 0x0111,
  27649. dmonospace: 0xFF44,
  27650. dnblock: 0x2584,
  27651. dochadathai: 0x0E0E,
  27652. dodekthai: 0x0E14,
  27653. dohiragana: 0x3069,
  27654. dokatakana: 0x30C9,
  27655. dollar: 0x0024,
  27656. dollarinferior: 0xF6E3,
  27657. dollarmonospace: 0xFF04,
  27658. dollaroldstyle: 0xF724,
  27659. dollarsmall: 0xFE69,
  27660. dollarsuperior: 0xF6E4,
  27661. dong: 0x20AB,
  27662. dorusquare: 0x3326,
  27663. dotaccent: 0x02D9,
  27664. dotaccentcmb: 0x0307,
  27665. dotbelowcmb: 0x0323,
  27666. dotbelowcomb: 0x0323,
  27667. dotkatakana: 0x30FB,
  27668. dotlessi: 0x0131,
  27669. dotlessj: 0xF6BE,
  27670. dotlessjstrokehook: 0x0284,
  27671. dotmath: 0x22C5,
  27672. dottedcircle: 0x25CC,
  27673. doubleyodpatah: 0xFB1F,
  27674. doubleyodpatahhebrew: 0xFB1F,
  27675. downtackbelowcmb: 0x031E,
  27676. downtackmod: 0x02D5,
  27677. dparen: 0x249F,
  27678. dsuperior: 0xF6EB,
  27679. dtail: 0x0256,
  27680. dtopbar: 0x018C,
  27681. duhiragana: 0x3065,
  27682. dukatakana: 0x30C5,
  27683. dz: 0x01F3,
  27684. dzaltone: 0x02A3,
  27685. dzcaron: 0x01C6,
  27686. dzcurl: 0x02A5,
  27687. dzeabkhasiancyrillic: 0x04E1,
  27688. dzecyrillic: 0x0455,
  27689. dzhecyrillic: 0x045F,
  27690. e: 0x0065,
  27691. eacute: 0x00E9,
  27692. earth: 0x2641,
  27693. ebengali: 0x098F,
  27694. ebopomofo: 0x311C,
  27695. ebreve: 0x0115,
  27696. ecandradeva: 0x090D,
  27697. ecandragujarati: 0x0A8D,
  27698. ecandravowelsigndeva: 0x0945,
  27699. ecandravowelsigngujarati: 0x0AC5,
  27700. ecaron: 0x011B,
  27701. ecedillabreve: 0x1E1D,
  27702. echarmenian: 0x0565,
  27703. echyiwnarmenian: 0x0587,
  27704. ecircle: 0x24D4,
  27705. ecircumflex: 0x00EA,
  27706. ecircumflexacute: 0x1EBF,
  27707. ecircumflexbelow: 0x1E19,
  27708. ecircumflexdotbelow: 0x1EC7,
  27709. ecircumflexgrave: 0x1EC1,
  27710. ecircumflexhookabove: 0x1EC3,
  27711. ecircumflextilde: 0x1EC5,
  27712. ecyrillic: 0x0454,
  27713. edblgrave: 0x0205,
  27714. edeva: 0x090F,
  27715. edieresis: 0x00EB,
  27716. edot: 0x0117,
  27717. edotaccent: 0x0117,
  27718. edotbelow: 0x1EB9,
  27719. eegurmukhi: 0x0A0F,
  27720. eematragurmukhi: 0x0A47,
  27721. efcyrillic: 0x0444,
  27722. egrave: 0x00E8,
  27723. egujarati: 0x0A8F,
  27724. eharmenian: 0x0567,
  27725. ehbopomofo: 0x311D,
  27726. ehiragana: 0x3048,
  27727. ehookabove: 0x1EBB,
  27728. eibopomofo: 0x311F,
  27729. eight: 0x0038,
  27730. eightarabic: 0x0668,
  27731. eightbengali: 0x09EE,
  27732. eightcircle: 0x2467,
  27733. eightcircleinversesansserif: 0x2791,
  27734. eightdeva: 0x096E,
  27735. eighteencircle: 0x2471,
  27736. eighteenparen: 0x2485,
  27737. eighteenperiod: 0x2499,
  27738. eightgujarati: 0x0AEE,
  27739. eightgurmukhi: 0x0A6E,
  27740. eighthackarabic: 0x0668,
  27741. eighthangzhou: 0x3028,
  27742. eighthnotebeamed: 0x266B,
  27743. eightideographicparen: 0x3227,
  27744. eightinferior: 0x2088,
  27745. eightmonospace: 0xFF18,
  27746. eightoldstyle: 0xF738,
  27747. eightparen: 0x247B,
  27748. eightperiod: 0x248F,
  27749. eightpersian: 0x06F8,
  27750. eightroman: 0x2177,
  27751. eightsuperior: 0x2078,
  27752. eightthai: 0x0E58,
  27753. einvertedbreve: 0x0207,
  27754. eiotifiedcyrillic: 0x0465,
  27755. ekatakana: 0x30A8,
  27756. ekatakanahalfwidth: 0xFF74,
  27757. ekonkargurmukhi: 0x0A74,
  27758. ekorean: 0x3154,
  27759. elcyrillic: 0x043B,
  27760. element: 0x2208,
  27761. elevencircle: 0x246A,
  27762. elevenparen: 0x247E,
  27763. elevenperiod: 0x2492,
  27764. elevenroman: 0x217A,
  27765. ellipsis: 0x2026,
  27766. ellipsisvertical: 0x22EE,
  27767. emacron: 0x0113,
  27768. emacronacute: 0x1E17,
  27769. emacrongrave: 0x1E15,
  27770. emcyrillic: 0x043C,
  27771. emdash: 0x2014,
  27772. emdashvertical: 0xFE31,
  27773. emonospace: 0xFF45,
  27774. emphasismarkarmenian: 0x055B,
  27775. emptyset: 0x2205,
  27776. enbopomofo: 0x3123,
  27777. encyrillic: 0x043D,
  27778. endash: 0x2013,
  27779. endashvertical: 0xFE32,
  27780. endescendercyrillic: 0x04A3,
  27781. eng: 0x014B,
  27782. engbopomofo: 0x3125,
  27783. enghecyrillic: 0x04A5,
  27784. enhookcyrillic: 0x04C8,
  27785. enspace: 0x2002,
  27786. eogonek: 0x0119,
  27787. eokorean: 0x3153,
  27788. eopen: 0x025B,
  27789. eopenclosed: 0x029A,
  27790. eopenreversed: 0x025C,
  27791. eopenreversedclosed: 0x025E,
  27792. eopenreversedhook: 0x025D,
  27793. eparen: 0x24A0,
  27794. epsilon: 0x03B5,
  27795. epsilontonos: 0x03AD,
  27796. equal: 0x003D,
  27797. equalmonospace: 0xFF1D,
  27798. equalsmall: 0xFE66,
  27799. equalsuperior: 0x207C,
  27800. equivalence: 0x2261,
  27801. erbopomofo: 0x3126,
  27802. ercyrillic: 0x0440,
  27803. ereversed: 0x0258,
  27804. ereversedcyrillic: 0x044D,
  27805. escyrillic: 0x0441,
  27806. esdescendercyrillic: 0x04AB,
  27807. esh: 0x0283,
  27808. eshcurl: 0x0286,
  27809. eshortdeva: 0x090E,
  27810. eshortvowelsigndeva: 0x0946,
  27811. eshreversedloop: 0x01AA,
  27812. eshsquatreversed: 0x0285,
  27813. esmallhiragana: 0x3047,
  27814. esmallkatakana: 0x30A7,
  27815. esmallkatakanahalfwidth: 0xFF6A,
  27816. estimated: 0x212E,
  27817. esuperior: 0xF6EC,
  27818. eta: 0x03B7,
  27819. etarmenian: 0x0568,
  27820. etatonos: 0x03AE,
  27821. eth: 0x00F0,
  27822. etilde: 0x1EBD,
  27823. etildebelow: 0x1E1B,
  27824. etnahtafoukhhebrew: 0x0591,
  27825. etnahtafoukhlefthebrew: 0x0591,
  27826. etnahtahebrew: 0x0591,
  27827. etnahtalefthebrew: 0x0591,
  27828. eturned: 0x01DD,
  27829. eukorean: 0x3161,
  27830. euro: 0x20AC,
  27831. evowelsignbengali: 0x09C7,
  27832. evowelsigndeva: 0x0947,
  27833. evowelsigngujarati: 0x0AC7,
  27834. exclam: 0x0021,
  27835. exclamarmenian: 0x055C,
  27836. exclamdbl: 0x203C,
  27837. exclamdown: 0x00A1,
  27838. exclamdownsmall: 0xF7A1,
  27839. exclammonospace: 0xFF01,
  27840. exclamsmall: 0xF721,
  27841. existential: 0x2203,
  27842. ezh: 0x0292,
  27843. ezhcaron: 0x01EF,
  27844. ezhcurl: 0x0293,
  27845. ezhreversed: 0x01B9,
  27846. ezhtail: 0x01BA,
  27847. f: 0x0066,
  27848. fadeva: 0x095E,
  27849. fagurmukhi: 0x0A5E,
  27850. fahrenheit: 0x2109,
  27851. fathaarabic: 0x064E,
  27852. fathalowarabic: 0x064E,
  27853. fathatanarabic: 0x064B,
  27854. fbopomofo: 0x3108,
  27855. fcircle: 0x24D5,
  27856. fdotaccent: 0x1E1F,
  27857. feharabic: 0x0641,
  27858. feharmenian: 0x0586,
  27859. fehfinalarabic: 0xFED2,
  27860. fehinitialarabic: 0xFED3,
  27861. fehmedialarabic: 0xFED4,
  27862. feicoptic: 0x03E5,
  27863. female: 0x2640,
  27864. ff: 0xFB00,
  27865. ffi: 0xFB03,
  27866. ffl: 0xFB04,
  27867. fi: 0xFB01,
  27868. fifteencircle: 0x246E,
  27869. fifteenparen: 0x2482,
  27870. fifteenperiod: 0x2496,
  27871. figuredash: 0x2012,
  27872. filledbox: 0x25A0,
  27873. filledrect: 0x25AC,
  27874. finalkaf: 0x05DA,
  27875. finalkafdagesh: 0xFB3A,
  27876. finalkafdageshhebrew: 0xFB3A,
  27877. finalkafhebrew: 0x05DA,
  27878. finalmem: 0x05DD,
  27879. finalmemhebrew: 0x05DD,
  27880. finalnun: 0x05DF,
  27881. finalnunhebrew: 0x05DF,
  27882. finalpe: 0x05E3,
  27883. finalpehebrew: 0x05E3,
  27884. finaltsadi: 0x05E5,
  27885. finaltsadihebrew: 0x05E5,
  27886. firsttonechinese: 0x02C9,
  27887. fisheye: 0x25C9,
  27888. fitacyrillic: 0x0473,
  27889. five: 0x0035,
  27890. fivearabic: 0x0665,
  27891. fivebengali: 0x09EB,
  27892. fivecircle: 0x2464,
  27893. fivecircleinversesansserif: 0x278E,
  27894. fivedeva: 0x096B,
  27895. fiveeighths: 0x215D,
  27896. fivegujarati: 0x0AEB,
  27897. fivegurmukhi: 0x0A6B,
  27898. fivehackarabic: 0x0665,
  27899. fivehangzhou: 0x3025,
  27900. fiveideographicparen: 0x3224,
  27901. fiveinferior: 0x2085,
  27902. fivemonospace: 0xFF15,
  27903. fiveoldstyle: 0xF735,
  27904. fiveparen: 0x2478,
  27905. fiveperiod: 0x248C,
  27906. fivepersian: 0x06F5,
  27907. fiveroman: 0x2174,
  27908. fivesuperior: 0x2075,
  27909. fivethai: 0x0E55,
  27910. fl: 0xFB02,
  27911. florin: 0x0192,
  27912. fmonospace: 0xFF46,
  27913. fmsquare: 0x3399,
  27914. fofanthai: 0x0E1F,
  27915. fofathai: 0x0E1D,
  27916. fongmanthai: 0x0E4F,
  27917. forall: 0x2200,
  27918. four: 0x0034,
  27919. fourarabic: 0x0664,
  27920. fourbengali: 0x09EA,
  27921. fourcircle: 0x2463,
  27922. fourcircleinversesansserif: 0x278D,
  27923. fourdeva: 0x096A,
  27924. fourgujarati: 0x0AEA,
  27925. fourgurmukhi: 0x0A6A,
  27926. fourhackarabic: 0x0664,
  27927. fourhangzhou: 0x3024,
  27928. fourideographicparen: 0x3223,
  27929. fourinferior: 0x2084,
  27930. fourmonospace: 0xFF14,
  27931. fournumeratorbengali: 0x09F7,
  27932. fouroldstyle: 0xF734,
  27933. fourparen: 0x2477,
  27934. fourperiod: 0x248B,
  27935. fourpersian: 0x06F4,
  27936. fourroman: 0x2173,
  27937. foursuperior: 0x2074,
  27938. fourteencircle: 0x246D,
  27939. fourteenparen: 0x2481,
  27940. fourteenperiod: 0x2495,
  27941. fourthai: 0x0E54,
  27942. fourthtonechinese: 0x02CB,
  27943. fparen: 0x24A1,
  27944. fraction: 0x2044,
  27945. franc: 0x20A3,
  27946. g: 0x0067,
  27947. gabengali: 0x0997,
  27948. gacute: 0x01F5,
  27949. gadeva: 0x0917,
  27950. gafarabic: 0x06AF,
  27951. gaffinalarabic: 0xFB93,
  27952. gafinitialarabic: 0xFB94,
  27953. gafmedialarabic: 0xFB95,
  27954. gagujarati: 0x0A97,
  27955. gagurmukhi: 0x0A17,
  27956. gahiragana: 0x304C,
  27957. gakatakana: 0x30AC,
  27958. gamma: 0x03B3,
  27959. gammalatinsmall: 0x0263,
  27960. gammasuperior: 0x02E0,
  27961. gangiacoptic: 0x03EB,
  27962. gbopomofo: 0x310D,
  27963. gbreve: 0x011F,
  27964. gcaron: 0x01E7,
  27965. gcedilla: 0x0123,
  27966. gcircle: 0x24D6,
  27967. gcircumflex: 0x011D,
  27968. gcommaaccent: 0x0123,
  27969. gdot: 0x0121,
  27970. gdotaccent: 0x0121,
  27971. gecyrillic: 0x0433,
  27972. gehiragana: 0x3052,
  27973. gekatakana: 0x30B2,
  27974. geometricallyequal: 0x2251,
  27975. gereshaccenthebrew: 0x059C,
  27976. gereshhebrew: 0x05F3,
  27977. gereshmuqdamhebrew: 0x059D,
  27978. germandbls: 0x00DF,
  27979. gershayimaccenthebrew: 0x059E,
  27980. gershayimhebrew: 0x05F4,
  27981. getamark: 0x3013,
  27982. ghabengali: 0x0998,
  27983. ghadarmenian: 0x0572,
  27984. ghadeva: 0x0918,
  27985. ghagujarati: 0x0A98,
  27986. ghagurmukhi: 0x0A18,
  27987. ghainarabic: 0x063A,
  27988. ghainfinalarabic: 0xFECE,
  27989. ghaininitialarabic: 0xFECF,
  27990. ghainmedialarabic: 0xFED0,
  27991. ghemiddlehookcyrillic: 0x0495,
  27992. ghestrokecyrillic: 0x0493,
  27993. gheupturncyrillic: 0x0491,
  27994. ghhadeva: 0x095A,
  27995. ghhagurmukhi: 0x0A5A,
  27996. ghook: 0x0260,
  27997. ghzsquare: 0x3393,
  27998. gihiragana: 0x304E,
  27999. gikatakana: 0x30AE,
  28000. gimarmenian: 0x0563,
  28001. gimel: 0x05D2,
  28002. gimeldagesh: 0xFB32,
  28003. gimeldageshhebrew: 0xFB32,
  28004. gimelhebrew: 0x05D2,
  28005. gjecyrillic: 0x0453,
  28006. glottalinvertedstroke: 0x01BE,
  28007. glottalstop: 0x0294,
  28008. glottalstopinverted: 0x0296,
  28009. glottalstopmod: 0x02C0,
  28010. glottalstopreversed: 0x0295,
  28011. glottalstopreversedmod: 0x02C1,
  28012. glottalstopreversedsuperior: 0x02E4,
  28013. glottalstopstroke: 0x02A1,
  28014. glottalstopstrokereversed: 0x02A2,
  28015. gmacron: 0x1E21,
  28016. gmonospace: 0xFF47,
  28017. gohiragana: 0x3054,
  28018. gokatakana: 0x30B4,
  28019. gparen: 0x24A2,
  28020. gpasquare: 0x33AC,
  28021. gradient: 0x2207,
  28022. grave: 0x0060,
  28023. gravebelowcmb: 0x0316,
  28024. gravecmb: 0x0300,
  28025. gravecomb: 0x0300,
  28026. gravedeva: 0x0953,
  28027. gravelowmod: 0x02CE,
  28028. gravemonospace: 0xFF40,
  28029. gravetonecmb: 0x0340,
  28030. greater: 0x003E,
  28031. greaterequal: 0x2265,
  28032. greaterequalorless: 0x22DB,
  28033. greatermonospace: 0xFF1E,
  28034. greaterorequivalent: 0x2273,
  28035. greaterorless: 0x2277,
  28036. greateroverequal: 0x2267,
  28037. greatersmall: 0xFE65,
  28038. gscript: 0x0261,
  28039. gstroke: 0x01E5,
  28040. guhiragana: 0x3050,
  28041. guillemotleft: 0x00AB,
  28042. guillemotright: 0x00BB,
  28043. guilsinglleft: 0x2039,
  28044. guilsinglright: 0x203A,
  28045. gukatakana: 0x30B0,
  28046. guramusquare: 0x3318,
  28047. gysquare: 0x33C9,
  28048. h: 0x0068,
  28049. haabkhasiancyrillic: 0x04A9,
  28050. haaltonearabic: 0x06C1,
  28051. habengali: 0x09B9,
  28052. hadescendercyrillic: 0x04B3,
  28053. hadeva: 0x0939,
  28054. hagujarati: 0x0AB9,
  28055. hagurmukhi: 0x0A39,
  28056. haharabic: 0x062D,
  28057. hahfinalarabic: 0xFEA2,
  28058. hahinitialarabic: 0xFEA3,
  28059. hahiragana: 0x306F,
  28060. hahmedialarabic: 0xFEA4,
  28061. haitusquare: 0x332A,
  28062. hakatakana: 0x30CF,
  28063. hakatakanahalfwidth: 0xFF8A,
  28064. halantgurmukhi: 0x0A4D,
  28065. hamzaarabic: 0x0621,
  28066. hamzalowarabic: 0x0621,
  28067. hangulfiller: 0x3164,
  28068. hardsigncyrillic: 0x044A,
  28069. harpoonleftbarbup: 0x21BC,
  28070. harpoonrightbarbup: 0x21C0,
  28071. hasquare: 0x33CA,
  28072. hatafpatah: 0x05B2,
  28073. hatafpatah16: 0x05B2,
  28074. hatafpatah23: 0x05B2,
  28075. hatafpatah2f: 0x05B2,
  28076. hatafpatahhebrew: 0x05B2,
  28077. hatafpatahnarrowhebrew: 0x05B2,
  28078. hatafpatahquarterhebrew: 0x05B2,
  28079. hatafpatahwidehebrew: 0x05B2,
  28080. hatafqamats: 0x05B3,
  28081. hatafqamats1b: 0x05B3,
  28082. hatafqamats28: 0x05B3,
  28083. hatafqamats34: 0x05B3,
  28084. hatafqamatshebrew: 0x05B3,
  28085. hatafqamatsnarrowhebrew: 0x05B3,
  28086. hatafqamatsquarterhebrew: 0x05B3,
  28087. hatafqamatswidehebrew: 0x05B3,
  28088. hatafsegol: 0x05B1,
  28089. hatafsegol17: 0x05B1,
  28090. hatafsegol24: 0x05B1,
  28091. hatafsegol30: 0x05B1,
  28092. hatafsegolhebrew: 0x05B1,
  28093. hatafsegolnarrowhebrew: 0x05B1,
  28094. hatafsegolquarterhebrew: 0x05B1,
  28095. hatafsegolwidehebrew: 0x05B1,
  28096. hbar: 0x0127,
  28097. hbopomofo: 0x310F,
  28098. hbrevebelow: 0x1E2B,
  28099. hcedilla: 0x1E29,
  28100. hcircle: 0x24D7,
  28101. hcircumflex: 0x0125,
  28102. hdieresis: 0x1E27,
  28103. hdotaccent: 0x1E23,
  28104. hdotbelow: 0x1E25,
  28105. he: 0x05D4,
  28106. heart: 0x2665,
  28107. heartsuitblack: 0x2665,
  28108. heartsuitwhite: 0x2661,
  28109. hedagesh: 0xFB34,
  28110. hedageshhebrew: 0xFB34,
  28111. hehaltonearabic: 0x06C1,
  28112. heharabic: 0x0647,
  28113. hehebrew: 0x05D4,
  28114. hehfinalaltonearabic: 0xFBA7,
  28115. hehfinalalttwoarabic: 0xFEEA,
  28116. hehfinalarabic: 0xFEEA,
  28117. hehhamzaabovefinalarabic: 0xFBA5,
  28118. hehhamzaaboveisolatedarabic: 0xFBA4,
  28119. hehinitialaltonearabic: 0xFBA8,
  28120. hehinitialarabic: 0xFEEB,
  28121. hehiragana: 0x3078,
  28122. hehmedialaltonearabic: 0xFBA9,
  28123. hehmedialarabic: 0xFEEC,
  28124. heiseierasquare: 0x337B,
  28125. hekatakana: 0x30D8,
  28126. hekatakanahalfwidth: 0xFF8D,
  28127. hekutaarusquare: 0x3336,
  28128. henghook: 0x0267,
  28129. herutusquare: 0x3339,
  28130. het: 0x05D7,
  28131. hethebrew: 0x05D7,
  28132. hhook: 0x0266,
  28133. hhooksuperior: 0x02B1,
  28134. hieuhacirclekorean: 0x327B,
  28135. hieuhaparenkorean: 0x321B,
  28136. hieuhcirclekorean: 0x326D,
  28137. hieuhkorean: 0x314E,
  28138. hieuhparenkorean: 0x320D,
  28139. hihiragana: 0x3072,
  28140. hikatakana: 0x30D2,
  28141. hikatakanahalfwidth: 0xFF8B,
  28142. hiriq: 0x05B4,
  28143. hiriq14: 0x05B4,
  28144. hiriq21: 0x05B4,
  28145. hiriq2d: 0x05B4,
  28146. hiriqhebrew: 0x05B4,
  28147. hiriqnarrowhebrew: 0x05B4,
  28148. hiriqquarterhebrew: 0x05B4,
  28149. hiriqwidehebrew: 0x05B4,
  28150. hlinebelow: 0x1E96,
  28151. hmonospace: 0xFF48,
  28152. hoarmenian: 0x0570,
  28153. hohipthai: 0x0E2B,
  28154. hohiragana: 0x307B,
  28155. hokatakana: 0x30DB,
  28156. hokatakanahalfwidth: 0xFF8E,
  28157. holam: 0x05B9,
  28158. holam19: 0x05B9,
  28159. holam26: 0x05B9,
  28160. holam32: 0x05B9,
  28161. holamhebrew: 0x05B9,
  28162. holamnarrowhebrew: 0x05B9,
  28163. holamquarterhebrew: 0x05B9,
  28164. holamwidehebrew: 0x05B9,
  28165. honokhukthai: 0x0E2E,
  28166. hookabovecomb: 0x0309,
  28167. hookcmb: 0x0309,
  28168. hookpalatalizedbelowcmb: 0x0321,
  28169. hookretroflexbelowcmb: 0x0322,
  28170. hoonsquare: 0x3342,
  28171. horicoptic: 0x03E9,
  28172. horizontalbar: 0x2015,
  28173. horncmb: 0x031B,
  28174. hotsprings: 0x2668,
  28175. house: 0x2302,
  28176. hparen: 0x24A3,
  28177. hsuperior: 0x02B0,
  28178. hturned: 0x0265,
  28179. huhiragana: 0x3075,
  28180. huiitosquare: 0x3333,
  28181. hukatakana: 0x30D5,
  28182. hukatakanahalfwidth: 0xFF8C,
  28183. hungarumlaut: 0x02DD,
  28184. hungarumlautcmb: 0x030B,
  28185. hv: 0x0195,
  28186. hyphen: 0x002D,
  28187. hypheninferior: 0xF6E5,
  28188. hyphenmonospace: 0xFF0D,
  28189. hyphensmall: 0xFE63,
  28190. hyphensuperior: 0xF6E6,
  28191. hyphentwo: 0x2010,
  28192. i: 0x0069,
  28193. iacute: 0x00ED,
  28194. iacyrillic: 0x044F,
  28195. ibengali: 0x0987,
  28196. ibopomofo: 0x3127,
  28197. ibreve: 0x012D,
  28198. icaron: 0x01D0,
  28199. icircle: 0x24D8,
  28200. icircumflex: 0x00EE,
  28201. icyrillic: 0x0456,
  28202. idblgrave: 0x0209,
  28203. ideographearthcircle: 0x328F,
  28204. ideographfirecircle: 0x328B,
  28205. ideographicallianceparen: 0x323F,
  28206. ideographiccallparen: 0x323A,
  28207. ideographiccentrecircle: 0x32A5,
  28208. ideographicclose: 0x3006,
  28209. ideographiccomma: 0x3001,
  28210. ideographiccommaleft: 0xFF64,
  28211. ideographiccongratulationparen: 0x3237,
  28212. ideographiccorrectcircle: 0x32A3,
  28213. ideographicearthparen: 0x322F,
  28214. ideographicenterpriseparen: 0x323D,
  28215. ideographicexcellentcircle: 0x329D,
  28216. ideographicfestivalparen: 0x3240,
  28217. ideographicfinancialcircle: 0x3296,
  28218. ideographicfinancialparen: 0x3236,
  28219. ideographicfireparen: 0x322B,
  28220. ideographichaveparen: 0x3232,
  28221. ideographichighcircle: 0x32A4,
  28222. ideographiciterationmark: 0x3005,
  28223. ideographiclaborcircle: 0x3298,
  28224. ideographiclaborparen: 0x3238,
  28225. ideographicleftcircle: 0x32A7,
  28226. ideographiclowcircle: 0x32A6,
  28227. ideographicmedicinecircle: 0x32A9,
  28228. ideographicmetalparen: 0x322E,
  28229. ideographicmoonparen: 0x322A,
  28230. ideographicnameparen: 0x3234,
  28231. ideographicperiod: 0x3002,
  28232. ideographicprintcircle: 0x329E,
  28233. ideographicreachparen: 0x3243,
  28234. ideographicrepresentparen: 0x3239,
  28235. ideographicresourceparen: 0x323E,
  28236. ideographicrightcircle: 0x32A8,
  28237. ideographicsecretcircle: 0x3299,
  28238. ideographicselfparen: 0x3242,
  28239. ideographicsocietyparen: 0x3233,
  28240. ideographicspace: 0x3000,
  28241. ideographicspecialparen: 0x3235,
  28242. ideographicstockparen: 0x3231,
  28243. ideographicstudyparen: 0x323B,
  28244. ideographicsunparen: 0x3230,
  28245. ideographicsuperviseparen: 0x323C,
  28246. ideographicwaterparen: 0x322C,
  28247. ideographicwoodparen: 0x322D,
  28248. ideographiczero: 0x3007,
  28249. ideographmetalcircle: 0x328E,
  28250. ideographmooncircle: 0x328A,
  28251. ideographnamecircle: 0x3294,
  28252. ideographsuncircle: 0x3290,
  28253. ideographwatercircle: 0x328C,
  28254. ideographwoodcircle: 0x328D,
  28255. ideva: 0x0907,
  28256. idieresis: 0x00EF,
  28257. idieresisacute: 0x1E2F,
  28258. idieresiscyrillic: 0x04E5,
  28259. idotbelow: 0x1ECB,
  28260. iebrevecyrillic: 0x04D7,
  28261. iecyrillic: 0x0435,
  28262. ieungacirclekorean: 0x3275,
  28263. ieungaparenkorean: 0x3215,
  28264. ieungcirclekorean: 0x3267,
  28265. ieungkorean: 0x3147,
  28266. ieungparenkorean: 0x3207,
  28267. igrave: 0x00EC,
  28268. igujarati: 0x0A87,
  28269. igurmukhi: 0x0A07,
  28270. ihiragana: 0x3044,
  28271. ihookabove: 0x1EC9,
  28272. iibengali: 0x0988,
  28273. iicyrillic: 0x0438,
  28274. iideva: 0x0908,
  28275. iigujarati: 0x0A88,
  28276. iigurmukhi: 0x0A08,
  28277. iimatragurmukhi: 0x0A40,
  28278. iinvertedbreve: 0x020B,
  28279. iishortcyrillic: 0x0439,
  28280. iivowelsignbengali: 0x09C0,
  28281. iivowelsigndeva: 0x0940,
  28282. iivowelsigngujarati: 0x0AC0,
  28283. ij: 0x0133,
  28284. ikatakana: 0x30A4,
  28285. ikatakanahalfwidth: 0xFF72,
  28286. ikorean: 0x3163,
  28287. ilde: 0x02DC,
  28288. iluyhebrew: 0x05AC,
  28289. imacron: 0x012B,
  28290. imacroncyrillic: 0x04E3,
  28291. imageorapproximatelyequal: 0x2253,
  28292. imatragurmukhi: 0x0A3F,
  28293. imonospace: 0xFF49,
  28294. increment: 0x2206,
  28295. infinity: 0x221E,
  28296. iniarmenian: 0x056B,
  28297. integral: 0x222B,
  28298. integralbottom: 0x2321,
  28299. integralbt: 0x2321,
  28300. integralex: 0xF8F5,
  28301. integraltop: 0x2320,
  28302. integraltp: 0x2320,
  28303. intersection: 0x2229,
  28304. intisquare: 0x3305,
  28305. invbullet: 0x25D8,
  28306. invcircle: 0x25D9,
  28307. invsmileface: 0x263B,
  28308. iocyrillic: 0x0451,
  28309. iogonek: 0x012F,
  28310. iota: 0x03B9,
  28311. iotadieresis: 0x03CA,
  28312. iotadieresistonos: 0x0390,
  28313. iotalatin: 0x0269,
  28314. iotatonos: 0x03AF,
  28315. iparen: 0x24A4,
  28316. irigurmukhi: 0x0A72,
  28317. ismallhiragana: 0x3043,
  28318. ismallkatakana: 0x30A3,
  28319. ismallkatakanahalfwidth: 0xFF68,
  28320. issharbengali: 0x09FA,
  28321. istroke: 0x0268,
  28322. isuperior: 0xF6ED,
  28323. iterationhiragana: 0x309D,
  28324. iterationkatakana: 0x30FD,
  28325. itilde: 0x0129,
  28326. itildebelow: 0x1E2D,
  28327. iubopomofo: 0x3129,
  28328. iucyrillic: 0x044E,
  28329. ivowelsignbengali: 0x09BF,
  28330. ivowelsigndeva: 0x093F,
  28331. ivowelsigngujarati: 0x0ABF,
  28332. izhitsacyrillic: 0x0475,
  28333. izhitsadblgravecyrillic: 0x0477,
  28334. j: 0x006A,
  28335. jaarmenian: 0x0571,
  28336. jabengali: 0x099C,
  28337. jadeva: 0x091C,
  28338. jagujarati: 0x0A9C,
  28339. jagurmukhi: 0x0A1C,
  28340. jbopomofo: 0x3110,
  28341. jcaron: 0x01F0,
  28342. jcircle: 0x24D9,
  28343. jcircumflex: 0x0135,
  28344. jcrossedtail: 0x029D,
  28345. jdotlessstroke: 0x025F,
  28346. jecyrillic: 0x0458,
  28347. jeemarabic: 0x062C,
  28348. jeemfinalarabic: 0xFE9E,
  28349. jeeminitialarabic: 0xFE9F,
  28350. jeemmedialarabic: 0xFEA0,
  28351. jeharabic: 0x0698,
  28352. jehfinalarabic: 0xFB8B,
  28353. jhabengali: 0x099D,
  28354. jhadeva: 0x091D,
  28355. jhagujarati: 0x0A9D,
  28356. jhagurmukhi: 0x0A1D,
  28357. jheharmenian: 0x057B,
  28358. jis: 0x3004,
  28359. jmonospace: 0xFF4A,
  28360. jparen: 0x24A5,
  28361. jsuperior: 0x02B2,
  28362. k: 0x006B,
  28363. kabashkircyrillic: 0x04A1,
  28364. kabengali: 0x0995,
  28365. kacute: 0x1E31,
  28366. kacyrillic: 0x043A,
  28367. kadescendercyrillic: 0x049B,
  28368. kadeva: 0x0915,
  28369. kaf: 0x05DB,
  28370. kafarabic: 0x0643,
  28371. kafdagesh: 0xFB3B,
  28372. kafdageshhebrew: 0xFB3B,
  28373. kaffinalarabic: 0xFEDA,
  28374. kafhebrew: 0x05DB,
  28375. kafinitialarabic: 0xFEDB,
  28376. kafmedialarabic: 0xFEDC,
  28377. kafrafehebrew: 0xFB4D,
  28378. kagujarati: 0x0A95,
  28379. kagurmukhi: 0x0A15,
  28380. kahiragana: 0x304B,
  28381. kahookcyrillic: 0x04C4,
  28382. kakatakana: 0x30AB,
  28383. kakatakanahalfwidth: 0xFF76,
  28384. kappa: 0x03BA,
  28385. kappasymbolgreek: 0x03F0,
  28386. kapyeounmieumkorean: 0x3171,
  28387. kapyeounphieuphkorean: 0x3184,
  28388. kapyeounpieupkorean: 0x3178,
  28389. kapyeounssangpieupkorean: 0x3179,
  28390. karoriisquare: 0x330D,
  28391. kashidaautoarabic: 0x0640,
  28392. kashidaautonosidebearingarabic: 0x0640,
  28393. kasmallkatakana: 0x30F5,
  28394. kasquare: 0x3384,
  28395. kasraarabic: 0x0650,
  28396. kasratanarabic: 0x064D,
  28397. kastrokecyrillic: 0x049F,
  28398. katahiraprolongmarkhalfwidth: 0xFF70,
  28399. kaverticalstrokecyrillic: 0x049D,
  28400. kbopomofo: 0x310E,
  28401. kcalsquare: 0x3389,
  28402. kcaron: 0x01E9,
  28403. kcedilla: 0x0137,
  28404. kcircle: 0x24DA,
  28405. kcommaaccent: 0x0137,
  28406. kdotbelow: 0x1E33,
  28407. keharmenian: 0x0584,
  28408. kehiragana: 0x3051,
  28409. kekatakana: 0x30B1,
  28410. kekatakanahalfwidth: 0xFF79,
  28411. kenarmenian: 0x056F,
  28412. kesmallkatakana: 0x30F6,
  28413. kgreenlandic: 0x0138,
  28414. khabengali: 0x0996,
  28415. khacyrillic: 0x0445,
  28416. khadeva: 0x0916,
  28417. khagujarati: 0x0A96,
  28418. khagurmukhi: 0x0A16,
  28419. khaharabic: 0x062E,
  28420. khahfinalarabic: 0xFEA6,
  28421. khahinitialarabic: 0xFEA7,
  28422. khahmedialarabic: 0xFEA8,
  28423. kheicoptic: 0x03E7,
  28424. khhadeva: 0x0959,
  28425. khhagurmukhi: 0x0A59,
  28426. khieukhacirclekorean: 0x3278,
  28427. khieukhaparenkorean: 0x3218,
  28428. khieukhcirclekorean: 0x326A,
  28429. khieukhkorean: 0x314B,
  28430. khieukhparenkorean: 0x320A,
  28431. khokhaithai: 0x0E02,
  28432. khokhonthai: 0x0E05,
  28433. khokhuatthai: 0x0E03,
  28434. khokhwaithai: 0x0E04,
  28435. khomutthai: 0x0E5B,
  28436. khook: 0x0199,
  28437. khorakhangthai: 0x0E06,
  28438. khzsquare: 0x3391,
  28439. kihiragana: 0x304D,
  28440. kikatakana: 0x30AD,
  28441. kikatakanahalfwidth: 0xFF77,
  28442. kiroguramusquare: 0x3315,
  28443. kiromeetorusquare: 0x3316,
  28444. kirosquare: 0x3314,
  28445. kiyeokacirclekorean: 0x326E,
  28446. kiyeokaparenkorean: 0x320E,
  28447. kiyeokcirclekorean: 0x3260,
  28448. kiyeokkorean: 0x3131,
  28449. kiyeokparenkorean: 0x3200,
  28450. kiyeoksioskorean: 0x3133,
  28451. kjecyrillic: 0x045C,
  28452. klinebelow: 0x1E35,
  28453. klsquare: 0x3398,
  28454. kmcubedsquare: 0x33A6,
  28455. kmonospace: 0xFF4B,
  28456. kmsquaredsquare: 0x33A2,
  28457. kohiragana: 0x3053,
  28458. kohmsquare: 0x33C0,
  28459. kokaithai: 0x0E01,
  28460. kokatakana: 0x30B3,
  28461. kokatakanahalfwidth: 0xFF7A,
  28462. kooposquare: 0x331E,
  28463. koppacyrillic: 0x0481,
  28464. koreanstandardsymbol: 0x327F,
  28465. koroniscmb: 0x0343,
  28466. kparen: 0x24A6,
  28467. kpasquare: 0x33AA,
  28468. ksicyrillic: 0x046F,
  28469. ktsquare: 0x33CF,
  28470. kturned: 0x029E,
  28471. kuhiragana: 0x304F,
  28472. kukatakana: 0x30AF,
  28473. kukatakanahalfwidth: 0xFF78,
  28474. kvsquare: 0x33B8,
  28475. kwsquare: 0x33BE,
  28476. l: 0x006C,
  28477. labengali: 0x09B2,
  28478. lacute: 0x013A,
  28479. ladeva: 0x0932,
  28480. lagujarati: 0x0AB2,
  28481. lagurmukhi: 0x0A32,
  28482. lakkhangyaothai: 0x0E45,
  28483. lamaleffinalarabic: 0xFEFC,
  28484. lamalefhamzaabovefinalarabic: 0xFEF8,
  28485. lamalefhamzaaboveisolatedarabic: 0xFEF7,
  28486. lamalefhamzabelowfinalarabic: 0xFEFA,
  28487. lamalefhamzabelowisolatedarabic: 0xFEF9,
  28488. lamalefisolatedarabic: 0xFEFB,
  28489. lamalefmaddaabovefinalarabic: 0xFEF6,
  28490. lamalefmaddaaboveisolatedarabic: 0xFEF5,
  28491. lamarabic: 0x0644,
  28492. lambda: 0x03BB,
  28493. lambdastroke: 0x019B,
  28494. lamed: 0x05DC,
  28495. lameddagesh: 0xFB3C,
  28496. lameddageshhebrew: 0xFB3C,
  28497. lamedhebrew: 0x05DC,
  28498. lamfinalarabic: 0xFEDE,
  28499. lamhahinitialarabic: 0xFCCA,
  28500. laminitialarabic: 0xFEDF,
  28501. lamjeeminitialarabic: 0xFCC9,
  28502. lamkhahinitialarabic: 0xFCCB,
  28503. lamlamhehisolatedarabic: 0xFDF2,
  28504. lammedialarabic: 0xFEE0,
  28505. lammeemhahinitialarabic: 0xFD88,
  28506. lammeeminitialarabic: 0xFCCC,
  28507. largecircle: 0x25EF,
  28508. lbar: 0x019A,
  28509. lbelt: 0x026C,
  28510. lbopomofo: 0x310C,
  28511. lcaron: 0x013E,
  28512. lcedilla: 0x013C,
  28513. lcircle: 0x24DB,
  28514. lcircumflexbelow: 0x1E3D,
  28515. lcommaaccent: 0x013C,
  28516. ldot: 0x0140,
  28517. ldotaccent: 0x0140,
  28518. ldotbelow: 0x1E37,
  28519. ldotbelowmacron: 0x1E39,
  28520. leftangleabovecmb: 0x031A,
  28521. lefttackbelowcmb: 0x0318,
  28522. less: 0x003C,
  28523. lessequal: 0x2264,
  28524. lessequalorgreater: 0x22DA,
  28525. lessmonospace: 0xFF1C,
  28526. lessorequivalent: 0x2272,
  28527. lessorgreater: 0x2276,
  28528. lessoverequal: 0x2266,
  28529. lesssmall: 0xFE64,
  28530. lezh: 0x026E,
  28531. lfblock: 0x258C,
  28532. lhookretroflex: 0x026D,
  28533. lira: 0x20A4,
  28534. liwnarmenian: 0x056C,
  28535. lj: 0x01C9,
  28536. ljecyrillic: 0x0459,
  28537. ll: 0xF6C0,
  28538. lladeva: 0x0933,
  28539. llagujarati: 0x0AB3,
  28540. llinebelow: 0x1E3B,
  28541. llladeva: 0x0934,
  28542. llvocalicbengali: 0x09E1,
  28543. llvocalicdeva: 0x0961,
  28544. llvocalicvowelsignbengali: 0x09E3,
  28545. llvocalicvowelsigndeva: 0x0963,
  28546. lmiddletilde: 0x026B,
  28547. lmonospace: 0xFF4C,
  28548. lmsquare: 0x33D0,
  28549. lochulathai: 0x0E2C,
  28550. logicaland: 0x2227,
  28551. logicalnot: 0x00AC,
  28552. logicalnotreversed: 0x2310,
  28553. logicalor: 0x2228,
  28554. lolingthai: 0x0E25,
  28555. longs: 0x017F,
  28556. lowlinecenterline: 0xFE4E,
  28557. lowlinecmb: 0x0332,
  28558. lowlinedashed: 0xFE4D,
  28559. lozenge: 0x25CA,
  28560. lparen: 0x24A7,
  28561. lslash: 0x0142,
  28562. lsquare: 0x2113,
  28563. lsuperior: 0xF6EE,
  28564. ltshade: 0x2591,
  28565. luthai: 0x0E26,
  28566. lvocalicbengali: 0x098C,
  28567. lvocalicdeva: 0x090C,
  28568. lvocalicvowelsignbengali: 0x09E2,
  28569. lvocalicvowelsigndeva: 0x0962,
  28570. lxsquare: 0x33D3,
  28571. m: 0x006D,
  28572. mabengali: 0x09AE,
  28573. macron: 0x00AF,
  28574. macronbelowcmb: 0x0331,
  28575. macroncmb: 0x0304,
  28576. macronlowmod: 0x02CD,
  28577. macronmonospace: 0xFFE3,
  28578. macute: 0x1E3F,
  28579. madeva: 0x092E,
  28580. magujarati: 0x0AAE,
  28581. magurmukhi: 0x0A2E,
  28582. mahapakhhebrew: 0x05A4,
  28583. mahapakhlefthebrew: 0x05A4,
  28584. mahiragana: 0x307E,
  28585. maichattawalowleftthai: 0xF895,
  28586. maichattawalowrightthai: 0xF894,
  28587. maichattawathai: 0x0E4B,
  28588. maichattawaupperleftthai: 0xF893,
  28589. maieklowleftthai: 0xF88C,
  28590. maieklowrightthai: 0xF88B,
  28591. maiekthai: 0x0E48,
  28592. maiekupperleftthai: 0xF88A,
  28593. maihanakatleftthai: 0xF884,
  28594. maihanakatthai: 0x0E31,
  28595. maitaikhuleftthai: 0xF889,
  28596. maitaikhuthai: 0x0E47,
  28597. maitholowleftthai: 0xF88F,
  28598. maitholowrightthai: 0xF88E,
  28599. maithothai: 0x0E49,
  28600. maithoupperleftthai: 0xF88D,
  28601. maitrilowleftthai: 0xF892,
  28602. maitrilowrightthai: 0xF891,
  28603. maitrithai: 0x0E4A,
  28604. maitriupperleftthai: 0xF890,
  28605. maiyamokthai: 0x0E46,
  28606. makatakana: 0x30DE,
  28607. makatakanahalfwidth: 0xFF8F,
  28608. male: 0x2642,
  28609. mansyonsquare: 0x3347,
  28610. maqafhebrew: 0x05BE,
  28611. mars: 0x2642,
  28612. masoracirclehebrew: 0x05AF,
  28613. masquare: 0x3383,
  28614. mbopomofo: 0x3107,
  28615. mbsquare: 0x33D4,
  28616. mcircle: 0x24DC,
  28617. mcubedsquare: 0x33A5,
  28618. mdotaccent: 0x1E41,
  28619. mdotbelow: 0x1E43,
  28620. meemarabic: 0x0645,
  28621. meemfinalarabic: 0xFEE2,
  28622. meeminitialarabic: 0xFEE3,
  28623. meemmedialarabic: 0xFEE4,
  28624. meemmeeminitialarabic: 0xFCD1,
  28625. meemmeemisolatedarabic: 0xFC48,
  28626. meetorusquare: 0x334D,
  28627. mehiragana: 0x3081,
  28628. meizierasquare: 0x337E,
  28629. mekatakana: 0x30E1,
  28630. mekatakanahalfwidth: 0xFF92,
  28631. mem: 0x05DE,
  28632. memdagesh: 0xFB3E,
  28633. memdageshhebrew: 0xFB3E,
  28634. memhebrew: 0x05DE,
  28635. menarmenian: 0x0574,
  28636. merkhahebrew: 0x05A5,
  28637. merkhakefulahebrew: 0x05A6,
  28638. merkhakefulalefthebrew: 0x05A6,
  28639. merkhalefthebrew: 0x05A5,
  28640. mhook: 0x0271,
  28641. mhzsquare: 0x3392,
  28642. middledotkatakanahalfwidth: 0xFF65,
  28643. middot: 0x00B7,
  28644. mieumacirclekorean: 0x3272,
  28645. mieumaparenkorean: 0x3212,
  28646. mieumcirclekorean: 0x3264,
  28647. mieumkorean: 0x3141,
  28648. mieumpansioskorean: 0x3170,
  28649. mieumparenkorean: 0x3204,
  28650. mieumpieupkorean: 0x316E,
  28651. mieumsioskorean: 0x316F,
  28652. mihiragana: 0x307F,
  28653. mikatakana: 0x30DF,
  28654. mikatakanahalfwidth: 0xFF90,
  28655. minus: 0x2212,
  28656. minusbelowcmb: 0x0320,
  28657. minuscircle: 0x2296,
  28658. minusmod: 0x02D7,
  28659. minusplus: 0x2213,
  28660. minute: 0x2032,
  28661. miribaarusquare: 0x334A,
  28662. mirisquare: 0x3349,
  28663. mlonglegturned: 0x0270,
  28664. mlsquare: 0x3396,
  28665. mmcubedsquare: 0x33A3,
  28666. mmonospace: 0xFF4D,
  28667. mmsquaredsquare: 0x339F,
  28668. mohiragana: 0x3082,
  28669. mohmsquare: 0x33C1,
  28670. mokatakana: 0x30E2,
  28671. mokatakanahalfwidth: 0xFF93,
  28672. molsquare: 0x33D6,
  28673. momathai: 0x0E21,
  28674. moverssquare: 0x33A7,
  28675. moverssquaredsquare: 0x33A8,
  28676. mparen: 0x24A8,
  28677. mpasquare: 0x33AB,
  28678. mssquare: 0x33B3,
  28679. msuperior: 0xF6EF,
  28680. mturned: 0x026F,
  28681. mu: 0x00B5,
  28682. mu1: 0x00B5,
  28683. muasquare: 0x3382,
  28684. muchgreater: 0x226B,
  28685. muchless: 0x226A,
  28686. mufsquare: 0x338C,
  28687. mugreek: 0x03BC,
  28688. mugsquare: 0x338D,
  28689. muhiragana: 0x3080,
  28690. mukatakana: 0x30E0,
  28691. mukatakanahalfwidth: 0xFF91,
  28692. mulsquare: 0x3395,
  28693. multiply: 0x00D7,
  28694. mumsquare: 0x339B,
  28695. munahhebrew: 0x05A3,
  28696. munahlefthebrew: 0x05A3,
  28697. musicalnote: 0x266A,
  28698. musicalnotedbl: 0x266B,
  28699. musicflatsign: 0x266D,
  28700. musicsharpsign: 0x266F,
  28701. mussquare: 0x33B2,
  28702. muvsquare: 0x33B6,
  28703. muwsquare: 0x33BC,
  28704. mvmegasquare: 0x33B9,
  28705. mvsquare: 0x33B7,
  28706. mwmegasquare: 0x33BF,
  28707. mwsquare: 0x33BD,
  28708. n: 0x006E,
  28709. nabengali: 0x09A8,
  28710. nabla: 0x2207,
  28711. nacute: 0x0144,
  28712. nadeva: 0x0928,
  28713. nagujarati: 0x0AA8,
  28714. nagurmukhi: 0x0A28,
  28715. nahiragana: 0x306A,
  28716. nakatakana: 0x30CA,
  28717. nakatakanahalfwidth: 0xFF85,
  28718. napostrophe: 0x0149,
  28719. nasquare: 0x3381,
  28720. nbopomofo: 0x310B,
  28721. nbspace: 0x00A0,
  28722. ncaron: 0x0148,
  28723. ncedilla: 0x0146,
  28724. ncircle: 0x24DD,
  28725. ncircumflexbelow: 0x1E4B,
  28726. ncommaaccent: 0x0146,
  28727. ndotaccent: 0x1E45,
  28728. ndotbelow: 0x1E47,
  28729. nehiragana: 0x306D,
  28730. nekatakana: 0x30CD,
  28731. nekatakanahalfwidth: 0xFF88,
  28732. newsheqelsign: 0x20AA,
  28733. nfsquare: 0x338B,
  28734. ngabengali: 0x0999,
  28735. ngadeva: 0x0919,
  28736. ngagujarati: 0x0A99,
  28737. ngagurmukhi: 0x0A19,
  28738. ngonguthai: 0x0E07,
  28739. nhiragana: 0x3093,
  28740. nhookleft: 0x0272,
  28741. nhookretroflex: 0x0273,
  28742. nieunacirclekorean: 0x326F,
  28743. nieunaparenkorean: 0x320F,
  28744. nieuncieuckorean: 0x3135,
  28745. nieuncirclekorean: 0x3261,
  28746. nieunhieuhkorean: 0x3136,
  28747. nieunkorean: 0x3134,
  28748. nieunpansioskorean: 0x3168,
  28749. nieunparenkorean: 0x3201,
  28750. nieunsioskorean: 0x3167,
  28751. nieuntikeutkorean: 0x3166,
  28752. nihiragana: 0x306B,
  28753. nikatakana: 0x30CB,
  28754. nikatakanahalfwidth: 0xFF86,
  28755. nikhahitleftthai: 0xF899,
  28756. nikhahitthai: 0x0E4D,
  28757. nine: 0x0039,
  28758. ninearabic: 0x0669,
  28759. ninebengali: 0x09EF,
  28760. ninecircle: 0x2468,
  28761. ninecircleinversesansserif: 0x2792,
  28762. ninedeva: 0x096F,
  28763. ninegujarati: 0x0AEF,
  28764. ninegurmukhi: 0x0A6F,
  28765. ninehackarabic: 0x0669,
  28766. ninehangzhou: 0x3029,
  28767. nineideographicparen: 0x3228,
  28768. nineinferior: 0x2089,
  28769. ninemonospace: 0xFF19,
  28770. nineoldstyle: 0xF739,
  28771. nineparen: 0x247C,
  28772. nineperiod: 0x2490,
  28773. ninepersian: 0x06F9,
  28774. nineroman: 0x2178,
  28775. ninesuperior: 0x2079,
  28776. nineteencircle: 0x2472,
  28777. nineteenparen: 0x2486,
  28778. nineteenperiod: 0x249A,
  28779. ninethai: 0x0E59,
  28780. nj: 0x01CC,
  28781. njecyrillic: 0x045A,
  28782. nkatakana: 0x30F3,
  28783. nkatakanahalfwidth: 0xFF9D,
  28784. nlegrightlong: 0x019E,
  28785. nlinebelow: 0x1E49,
  28786. nmonospace: 0xFF4E,
  28787. nmsquare: 0x339A,
  28788. nnabengali: 0x09A3,
  28789. nnadeva: 0x0923,
  28790. nnagujarati: 0x0AA3,
  28791. nnagurmukhi: 0x0A23,
  28792. nnnadeva: 0x0929,
  28793. nohiragana: 0x306E,
  28794. nokatakana: 0x30CE,
  28795. nokatakanahalfwidth: 0xFF89,
  28796. nonbreakingspace: 0x00A0,
  28797. nonenthai: 0x0E13,
  28798. nonuthai: 0x0E19,
  28799. noonarabic: 0x0646,
  28800. noonfinalarabic: 0xFEE6,
  28801. noonghunnaarabic: 0x06BA,
  28802. noonghunnafinalarabic: 0xFB9F,
  28803. nooninitialarabic: 0xFEE7,
  28804. noonjeeminitialarabic: 0xFCD2,
  28805. noonjeemisolatedarabic: 0xFC4B,
  28806. noonmedialarabic: 0xFEE8,
  28807. noonmeeminitialarabic: 0xFCD5,
  28808. noonmeemisolatedarabic: 0xFC4E,
  28809. noonnoonfinalarabic: 0xFC8D,
  28810. notcontains: 0x220C,
  28811. notelement: 0x2209,
  28812. notelementof: 0x2209,
  28813. notequal: 0x2260,
  28814. notgreater: 0x226F,
  28815. notgreaternorequal: 0x2271,
  28816. notgreaternorless: 0x2279,
  28817. notidentical: 0x2262,
  28818. notless: 0x226E,
  28819. notlessnorequal: 0x2270,
  28820. notparallel: 0x2226,
  28821. notprecedes: 0x2280,
  28822. notsubset: 0x2284,
  28823. notsucceeds: 0x2281,
  28824. notsuperset: 0x2285,
  28825. nowarmenian: 0x0576,
  28826. nparen: 0x24A9,
  28827. nssquare: 0x33B1,
  28828. nsuperior: 0x207F,
  28829. ntilde: 0x00F1,
  28830. nu: 0x03BD,
  28831. nuhiragana: 0x306C,
  28832. nukatakana: 0x30CC,
  28833. nukatakanahalfwidth: 0xFF87,
  28834. nuktabengali: 0x09BC,
  28835. nuktadeva: 0x093C,
  28836. nuktagujarati: 0x0ABC,
  28837. nuktagurmukhi: 0x0A3C,
  28838. numbersign: 0x0023,
  28839. numbersignmonospace: 0xFF03,
  28840. numbersignsmall: 0xFE5F,
  28841. numeralsigngreek: 0x0374,
  28842. numeralsignlowergreek: 0x0375,
  28843. numero: 0x2116,
  28844. nun: 0x05E0,
  28845. nundagesh: 0xFB40,
  28846. nundageshhebrew: 0xFB40,
  28847. nunhebrew: 0x05E0,
  28848. nvsquare: 0x33B5,
  28849. nwsquare: 0x33BB,
  28850. nyabengali: 0x099E,
  28851. nyadeva: 0x091E,
  28852. nyagujarati: 0x0A9E,
  28853. nyagurmukhi: 0x0A1E,
  28854. o: 0x006F,
  28855. oacute: 0x00F3,
  28856. oangthai: 0x0E2D,
  28857. obarred: 0x0275,
  28858. obarredcyrillic: 0x04E9,
  28859. obarreddieresiscyrillic: 0x04EB,
  28860. obengali: 0x0993,
  28861. obopomofo: 0x311B,
  28862. obreve: 0x014F,
  28863. ocandradeva: 0x0911,
  28864. ocandragujarati: 0x0A91,
  28865. ocandravowelsigndeva: 0x0949,
  28866. ocandravowelsigngujarati: 0x0AC9,
  28867. ocaron: 0x01D2,
  28868. ocircle: 0x24DE,
  28869. ocircumflex: 0x00F4,
  28870. ocircumflexacute: 0x1ED1,
  28871. ocircumflexdotbelow: 0x1ED9,
  28872. ocircumflexgrave: 0x1ED3,
  28873. ocircumflexhookabove: 0x1ED5,
  28874. ocircumflextilde: 0x1ED7,
  28875. ocyrillic: 0x043E,
  28876. odblacute: 0x0151,
  28877. odblgrave: 0x020D,
  28878. odeva: 0x0913,
  28879. odieresis: 0x00F6,
  28880. odieresiscyrillic: 0x04E7,
  28881. odotbelow: 0x1ECD,
  28882. oe: 0x0153,
  28883. oekorean: 0x315A,
  28884. ogonek: 0x02DB,
  28885. ogonekcmb: 0x0328,
  28886. ograve: 0x00F2,
  28887. ogujarati: 0x0A93,
  28888. oharmenian: 0x0585,
  28889. ohiragana: 0x304A,
  28890. ohookabove: 0x1ECF,
  28891. ohorn: 0x01A1,
  28892. ohornacute: 0x1EDB,
  28893. ohorndotbelow: 0x1EE3,
  28894. ohorngrave: 0x1EDD,
  28895. ohornhookabove: 0x1EDF,
  28896. ohorntilde: 0x1EE1,
  28897. ohungarumlaut: 0x0151,
  28898. oi: 0x01A3,
  28899. oinvertedbreve: 0x020F,
  28900. okatakana: 0x30AA,
  28901. okatakanahalfwidth: 0xFF75,
  28902. okorean: 0x3157,
  28903. olehebrew: 0x05AB,
  28904. omacron: 0x014D,
  28905. omacronacute: 0x1E53,
  28906. omacrongrave: 0x1E51,
  28907. omdeva: 0x0950,
  28908. omega: 0x03C9,
  28909. omega1: 0x03D6,
  28910. omegacyrillic: 0x0461,
  28911. omegalatinclosed: 0x0277,
  28912. omegaroundcyrillic: 0x047B,
  28913. omegatitlocyrillic: 0x047D,
  28914. omegatonos: 0x03CE,
  28915. omgujarati: 0x0AD0,
  28916. omicron: 0x03BF,
  28917. omicrontonos: 0x03CC,
  28918. omonospace: 0xFF4F,
  28919. one: 0x0031,
  28920. onearabic: 0x0661,
  28921. onebengali: 0x09E7,
  28922. onecircle: 0x2460,
  28923. onecircleinversesansserif: 0x278A,
  28924. onedeva: 0x0967,
  28925. onedotenleader: 0x2024,
  28926. oneeighth: 0x215B,
  28927. onefitted: 0xF6DC,
  28928. onegujarati: 0x0AE7,
  28929. onegurmukhi: 0x0A67,
  28930. onehackarabic: 0x0661,
  28931. onehalf: 0x00BD,
  28932. onehangzhou: 0x3021,
  28933. oneideographicparen: 0x3220,
  28934. oneinferior: 0x2081,
  28935. onemonospace: 0xFF11,
  28936. onenumeratorbengali: 0x09F4,
  28937. oneoldstyle: 0xF731,
  28938. oneparen: 0x2474,
  28939. oneperiod: 0x2488,
  28940. onepersian: 0x06F1,
  28941. onequarter: 0x00BC,
  28942. oneroman: 0x2170,
  28943. onesuperior: 0x00B9,
  28944. onethai: 0x0E51,
  28945. onethird: 0x2153,
  28946. oogonek: 0x01EB,
  28947. oogonekmacron: 0x01ED,
  28948. oogurmukhi: 0x0A13,
  28949. oomatragurmukhi: 0x0A4B,
  28950. oopen: 0x0254,
  28951. oparen: 0x24AA,
  28952. openbullet: 0x25E6,
  28953. option: 0x2325,
  28954. ordfeminine: 0x00AA,
  28955. ordmasculine: 0x00BA,
  28956. orthogonal: 0x221F,
  28957. oshortdeva: 0x0912,
  28958. oshortvowelsigndeva: 0x094A,
  28959. oslash: 0x00F8,
  28960. oslashacute: 0x01FF,
  28961. osmallhiragana: 0x3049,
  28962. osmallkatakana: 0x30A9,
  28963. osmallkatakanahalfwidth: 0xFF6B,
  28964. ostrokeacute: 0x01FF,
  28965. osuperior: 0xF6F0,
  28966. otcyrillic: 0x047F,
  28967. otilde: 0x00F5,
  28968. otildeacute: 0x1E4D,
  28969. otildedieresis: 0x1E4F,
  28970. oubopomofo: 0x3121,
  28971. overline: 0x203E,
  28972. overlinecenterline: 0xFE4A,
  28973. overlinecmb: 0x0305,
  28974. overlinedashed: 0xFE49,
  28975. overlinedblwavy: 0xFE4C,
  28976. overlinewavy: 0xFE4B,
  28977. overscore: 0x00AF,
  28978. ovowelsignbengali: 0x09CB,
  28979. ovowelsigndeva: 0x094B,
  28980. ovowelsigngujarati: 0x0ACB,
  28981. p: 0x0070,
  28982. paampssquare: 0x3380,
  28983. paasentosquare: 0x332B,
  28984. pabengali: 0x09AA,
  28985. pacute: 0x1E55,
  28986. padeva: 0x092A,
  28987. pagedown: 0x21DF,
  28988. pageup: 0x21DE,
  28989. pagujarati: 0x0AAA,
  28990. pagurmukhi: 0x0A2A,
  28991. pahiragana: 0x3071,
  28992. paiyannoithai: 0x0E2F,
  28993. pakatakana: 0x30D1,
  28994. palatalizationcyrilliccmb: 0x0484,
  28995. palochkacyrillic: 0x04C0,
  28996. pansioskorean: 0x317F,
  28997. paragraph: 0x00B6,
  28998. parallel: 0x2225,
  28999. parenleft: 0x0028,
  29000. parenleftaltonearabic: 0xFD3E,
  29001. parenleftbt: 0xF8ED,
  29002. parenleftex: 0xF8EC,
  29003. parenleftinferior: 0x208D,
  29004. parenleftmonospace: 0xFF08,
  29005. parenleftsmall: 0xFE59,
  29006. parenleftsuperior: 0x207D,
  29007. parenlefttp: 0xF8EB,
  29008. parenleftvertical: 0xFE35,
  29009. parenright: 0x0029,
  29010. parenrightaltonearabic: 0xFD3F,
  29011. parenrightbt: 0xF8F8,
  29012. parenrightex: 0xF8F7,
  29013. parenrightinferior: 0x208E,
  29014. parenrightmonospace: 0xFF09,
  29015. parenrightsmall: 0xFE5A,
  29016. parenrightsuperior: 0x207E,
  29017. parenrighttp: 0xF8F6,
  29018. parenrightvertical: 0xFE36,
  29019. partialdiff: 0x2202,
  29020. paseqhebrew: 0x05C0,
  29021. pashtahebrew: 0x0599,
  29022. pasquare: 0x33A9,
  29023. patah: 0x05B7,
  29024. patah11: 0x05B7,
  29025. patah1d: 0x05B7,
  29026. patah2a: 0x05B7,
  29027. patahhebrew: 0x05B7,
  29028. patahnarrowhebrew: 0x05B7,
  29029. patahquarterhebrew: 0x05B7,
  29030. patahwidehebrew: 0x05B7,
  29031. pazerhebrew: 0x05A1,
  29032. pbopomofo: 0x3106,
  29033. pcircle: 0x24DF,
  29034. pdotaccent: 0x1E57,
  29035. pe: 0x05E4,
  29036. pecyrillic: 0x043F,
  29037. pedagesh: 0xFB44,
  29038. pedageshhebrew: 0xFB44,
  29039. peezisquare: 0x333B,
  29040. pefinaldageshhebrew: 0xFB43,
  29041. peharabic: 0x067E,
  29042. peharmenian: 0x057A,
  29043. pehebrew: 0x05E4,
  29044. pehfinalarabic: 0xFB57,
  29045. pehinitialarabic: 0xFB58,
  29046. pehiragana: 0x307A,
  29047. pehmedialarabic: 0xFB59,
  29048. pekatakana: 0x30DA,
  29049. pemiddlehookcyrillic: 0x04A7,
  29050. perafehebrew: 0xFB4E,
  29051. percent: 0x0025,
  29052. percentarabic: 0x066A,
  29053. percentmonospace: 0xFF05,
  29054. percentsmall: 0xFE6A,
  29055. period: 0x002E,
  29056. periodarmenian: 0x0589,
  29057. periodcentered: 0x00B7,
  29058. periodhalfwidth: 0xFF61,
  29059. periodinferior: 0xF6E7,
  29060. periodmonospace: 0xFF0E,
  29061. periodsmall: 0xFE52,
  29062. periodsuperior: 0xF6E8,
  29063. perispomenigreekcmb: 0x0342,
  29064. perpendicular: 0x22A5,
  29065. perthousand: 0x2030,
  29066. peseta: 0x20A7,
  29067. pfsquare: 0x338A,
  29068. phabengali: 0x09AB,
  29069. phadeva: 0x092B,
  29070. phagujarati: 0x0AAB,
  29071. phagurmukhi: 0x0A2B,
  29072. phi: 0x03C6,
  29073. phi1: 0x03D5,
  29074. phieuphacirclekorean: 0x327A,
  29075. phieuphaparenkorean: 0x321A,
  29076. phieuphcirclekorean: 0x326C,
  29077. phieuphkorean: 0x314D,
  29078. phieuphparenkorean: 0x320C,
  29079. philatin: 0x0278,
  29080. phinthuthai: 0x0E3A,
  29081. phisymbolgreek: 0x03D5,
  29082. phook: 0x01A5,
  29083. phophanthai: 0x0E1E,
  29084. phophungthai: 0x0E1C,
  29085. phosamphaothai: 0x0E20,
  29086. pi: 0x03C0,
  29087. pieupacirclekorean: 0x3273,
  29088. pieupaparenkorean: 0x3213,
  29089. pieupcieuckorean: 0x3176,
  29090. pieupcirclekorean: 0x3265,
  29091. pieupkiyeokkorean: 0x3172,
  29092. pieupkorean: 0x3142,
  29093. pieupparenkorean: 0x3205,
  29094. pieupsioskiyeokkorean: 0x3174,
  29095. pieupsioskorean: 0x3144,
  29096. pieupsiostikeutkorean: 0x3175,
  29097. pieupthieuthkorean: 0x3177,
  29098. pieuptikeutkorean: 0x3173,
  29099. pihiragana: 0x3074,
  29100. pikatakana: 0x30D4,
  29101. pisymbolgreek: 0x03D6,
  29102. piwrarmenian: 0x0583,
  29103. plus: 0x002B,
  29104. plusbelowcmb: 0x031F,
  29105. pluscircle: 0x2295,
  29106. plusminus: 0x00B1,
  29107. plusmod: 0x02D6,
  29108. plusmonospace: 0xFF0B,
  29109. plussmall: 0xFE62,
  29110. plussuperior: 0x207A,
  29111. pmonospace: 0xFF50,
  29112. pmsquare: 0x33D8,
  29113. pohiragana: 0x307D,
  29114. pointingindexdownwhite: 0x261F,
  29115. pointingindexleftwhite: 0x261C,
  29116. pointingindexrightwhite: 0x261E,
  29117. pointingindexupwhite: 0x261D,
  29118. pokatakana: 0x30DD,
  29119. poplathai: 0x0E1B,
  29120. postalmark: 0x3012,
  29121. postalmarkface: 0x3020,
  29122. pparen: 0x24AB,
  29123. precedes: 0x227A,
  29124. prescription: 0x211E,
  29125. primemod: 0x02B9,
  29126. primereversed: 0x2035,
  29127. product: 0x220F,
  29128. projective: 0x2305,
  29129. prolongedkana: 0x30FC,
  29130. propellor: 0x2318,
  29131. propersubset: 0x2282,
  29132. propersuperset: 0x2283,
  29133. proportion: 0x2237,
  29134. proportional: 0x221D,
  29135. psi: 0x03C8,
  29136. psicyrillic: 0x0471,
  29137. psilipneumatacyrilliccmb: 0x0486,
  29138. pssquare: 0x33B0,
  29139. puhiragana: 0x3077,
  29140. pukatakana: 0x30D7,
  29141. pvsquare: 0x33B4,
  29142. pwsquare: 0x33BA,
  29143. q: 0x0071,
  29144. qadeva: 0x0958,
  29145. qadmahebrew: 0x05A8,
  29146. qafarabic: 0x0642,
  29147. qaffinalarabic: 0xFED6,
  29148. qafinitialarabic: 0xFED7,
  29149. qafmedialarabic: 0xFED8,
  29150. qamats: 0x05B8,
  29151. qamats10: 0x05B8,
  29152. qamats1a: 0x05B8,
  29153. qamats1c: 0x05B8,
  29154. qamats27: 0x05B8,
  29155. qamats29: 0x05B8,
  29156. qamats33: 0x05B8,
  29157. qamatsde: 0x05B8,
  29158. qamatshebrew: 0x05B8,
  29159. qamatsnarrowhebrew: 0x05B8,
  29160. qamatsqatanhebrew: 0x05B8,
  29161. qamatsqatannarrowhebrew: 0x05B8,
  29162. qamatsqatanquarterhebrew: 0x05B8,
  29163. qamatsqatanwidehebrew: 0x05B8,
  29164. qamatsquarterhebrew: 0x05B8,
  29165. qamatswidehebrew: 0x05B8,
  29166. qarneyparahebrew: 0x059F,
  29167. qbopomofo: 0x3111,
  29168. qcircle: 0x24E0,
  29169. qhook: 0x02A0,
  29170. qmonospace: 0xFF51,
  29171. qof: 0x05E7,
  29172. qofdagesh: 0xFB47,
  29173. qofdageshhebrew: 0xFB47,
  29174. qofhebrew: 0x05E7,
  29175. qparen: 0x24AC,
  29176. quarternote: 0x2669,
  29177. qubuts: 0x05BB,
  29178. qubuts18: 0x05BB,
  29179. qubuts25: 0x05BB,
  29180. qubuts31: 0x05BB,
  29181. qubutshebrew: 0x05BB,
  29182. qubutsnarrowhebrew: 0x05BB,
  29183. qubutsquarterhebrew: 0x05BB,
  29184. qubutswidehebrew: 0x05BB,
  29185. question: 0x003F,
  29186. questionarabic: 0x061F,
  29187. questionarmenian: 0x055E,
  29188. questiondown: 0x00BF,
  29189. questiondownsmall: 0xF7BF,
  29190. questiongreek: 0x037E,
  29191. questionmonospace: 0xFF1F,
  29192. questionsmall: 0xF73F,
  29193. quotedbl: 0x0022,
  29194. quotedblbase: 0x201E,
  29195. quotedblleft: 0x201C,
  29196. quotedblmonospace: 0xFF02,
  29197. quotedblprime: 0x301E,
  29198. quotedblprimereversed: 0x301D,
  29199. quotedblright: 0x201D,
  29200. quoteleft: 0x2018,
  29201. quoteleftreversed: 0x201B,
  29202. quotereversed: 0x201B,
  29203. quoteright: 0x2019,
  29204. quoterightn: 0x0149,
  29205. quotesinglbase: 0x201A,
  29206. quotesingle: 0x0027,
  29207. quotesinglemonospace: 0xFF07,
  29208. r: 0x0072,
  29209. raarmenian: 0x057C,
  29210. rabengali: 0x09B0,
  29211. racute: 0x0155,
  29212. radeva: 0x0930,
  29213. radical: 0x221A,
  29214. radicalex: 0xF8E5,
  29215. radoverssquare: 0x33AE,
  29216. radoverssquaredsquare: 0x33AF,
  29217. radsquare: 0x33AD,
  29218. rafe: 0x05BF,
  29219. rafehebrew: 0x05BF,
  29220. ragujarati: 0x0AB0,
  29221. ragurmukhi: 0x0A30,
  29222. rahiragana: 0x3089,
  29223. rakatakana: 0x30E9,
  29224. rakatakanahalfwidth: 0xFF97,
  29225. ralowerdiagonalbengali: 0x09F1,
  29226. ramiddlediagonalbengali: 0x09F0,
  29227. ramshorn: 0x0264,
  29228. ratio: 0x2236,
  29229. rbopomofo: 0x3116,
  29230. rcaron: 0x0159,
  29231. rcedilla: 0x0157,
  29232. rcircle: 0x24E1,
  29233. rcommaaccent: 0x0157,
  29234. rdblgrave: 0x0211,
  29235. rdotaccent: 0x1E59,
  29236. rdotbelow: 0x1E5B,
  29237. rdotbelowmacron: 0x1E5D,
  29238. referencemark: 0x203B,
  29239. reflexsubset: 0x2286,
  29240. reflexsuperset: 0x2287,
  29241. registered: 0x00AE,
  29242. registersans: 0xF8E8,
  29243. registerserif: 0xF6DA,
  29244. reharabic: 0x0631,
  29245. reharmenian: 0x0580,
  29246. rehfinalarabic: 0xFEAE,
  29247. rehiragana: 0x308C,
  29248. rekatakana: 0x30EC,
  29249. rekatakanahalfwidth: 0xFF9A,
  29250. resh: 0x05E8,
  29251. reshdageshhebrew: 0xFB48,
  29252. reshhebrew: 0x05E8,
  29253. reversedtilde: 0x223D,
  29254. reviahebrew: 0x0597,
  29255. reviamugrashhebrew: 0x0597,
  29256. revlogicalnot: 0x2310,
  29257. rfishhook: 0x027E,
  29258. rfishhookreversed: 0x027F,
  29259. rhabengali: 0x09DD,
  29260. rhadeva: 0x095D,
  29261. rho: 0x03C1,
  29262. rhook: 0x027D,
  29263. rhookturned: 0x027B,
  29264. rhookturnedsuperior: 0x02B5,
  29265. rhosymbolgreek: 0x03F1,
  29266. rhotichookmod: 0x02DE,
  29267. rieulacirclekorean: 0x3271,
  29268. rieulaparenkorean: 0x3211,
  29269. rieulcirclekorean: 0x3263,
  29270. rieulhieuhkorean: 0x3140,
  29271. rieulkiyeokkorean: 0x313A,
  29272. rieulkiyeoksioskorean: 0x3169,
  29273. rieulkorean: 0x3139,
  29274. rieulmieumkorean: 0x313B,
  29275. rieulpansioskorean: 0x316C,
  29276. rieulparenkorean: 0x3203,
  29277. rieulphieuphkorean: 0x313F,
  29278. rieulpieupkorean: 0x313C,
  29279. rieulpieupsioskorean: 0x316B,
  29280. rieulsioskorean: 0x313D,
  29281. rieulthieuthkorean: 0x313E,
  29282. rieultikeutkorean: 0x316A,
  29283. rieulyeorinhieuhkorean: 0x316D,
  29284. rightangle: 0x221F,
  29285. righttackbelowcmb: 0x0319,
  29286. righttriangle: 0x22BF,
  29287. rihiragana: 0x308A,
  29288. rikatakana: 0x30EA,
  29289. rikatakanahalfwidth: 0xFF98,
  29290. ring: 0x02DA,
  29291. ringbelowcmb: 0x0325,
  29292. ringcmb: 0x030A,
  29293. ringhalfleft: 0x02BF,
  29294. ringhalfleftarmenian: 0x0559,
  29295. ringhalfleftbelowcmb: 0x031C,
  29296. ringhalfleftcentered: 0x02D3,
  29297. ringhalfright: 0x02BE,
  29298. ringhalfrightbelowcmb: 0x0339,
  29299. ringhalfrightcentered: 0x02D2,
  29300. rinvertedbreve: 0x0213,
  29301. rittorusquare: 0x3351,
  29302. rlinebelow: 0x1E5F,
  29303. rlongleg: 0x027C,
  29304. rlonglegturned: 0x027A,
  29305. rmonospace: 0xFF52,
  29306. rohiragana: 0x308D,
  29307. rokatakana: 0x30ED,
  29308. rokatakanahalfwidth: 0xFF9B,
  29309. roruathai: 0x0E23,
  29310. rparen: 0x24AD,
  29311. rrabengali: 0x09DC,
  29312. rradeva: 0x0931,
  29313. rragurmukhi: 0x0A5C,
  29314. rreharabic: 0x0691,
  29315. rrehfinalarabic: 0xFB8D,
  29316. rrvocalicbengali: 0x09E0,
  29317. rrvocalicdeva: 0x0960,
  29318. rrvocalicgujarati: 0x0AE0,
  29319. rrvocalicvowelsignbengali: 0x09C4,
  29320. rrvocalicvowelsigndeva: 0x0944,
  29321. rrvocalicvowelsigngujarati: 0x0AC4,
  29322. rsuperior: 0xF6F1,
  29323. rtblock: 0x2590,
  29324. rturned: 0x0279,
  29325. rturnedsuperior: 0x02B4,
  29326. ruhiragana: 0x308B,
  29327. rukatakana: 0x30EB,
  29328. rukatakanahalfwidth: 0xFF99,
  29329. rupeemarkbengali: 0x09F2,
  29330. rupeesignbengali: 0x09F3,
  29331. rupiah: 0xF6DD,
  29332. ruthai: 0x0E24,
  29333. rvocalicbengali: 0x098B,
  29334. rvocalicdeva: 0x090B,
  29335. rvocalicgujarati: 0x0A8B,
  29336. rvocalicvowelsignbengali: 0x09C3,
  29337. rvocalicvowelsigndeva: 0x0943,
  29338. rvocalicvowelsigngujarati: 0x0AC3,
  29339. s: 0x0073,
  29340. sabengali: 0x09B8,
  29341. sacute: 0x015B,
  29342. sacutedotaccent: 0x1E65,
  29343. sadarabic: 0x0635,
  29344. sadeva: 0x0938,
  29345. sadfinalarabic: 0xFEBA,
  29346. sadinitialarabic: 0xFEBB,
  29347. sadmedialarabic: 0xFEBC,
  29348. sagujarati: 0x0AB8,
  29349. sagurmukhi: 0x0A38,
  29350. sahiragana: 0x3055,
  29351. sakatakana: 0x30B5,
  29352. sakatakanahalfwidth: 0xFF7B,
  29353. sallallahoualayhewasallamarabic: 0xFDFA,
  29354. samekh: 0x05E1,
  29355. samekhdagesh: 0xFB41,
  29356. samekhdageshhebrew: 0xFB41,
  29357. samekhhebrew: 0x05E1,
  29358. saraaathai: 0x0E32,
  29359. saraaethai: 0x0E41,
  29360. saraaimaimalaithai: 0x0E44,
  29361. saraaimaimuanthai: 0x0E43,
  29362. saraamthai: 0x0E33,
  29363. saraathai: 0x0E30,
  29364. saraethai: 0x0E40,
  29365. saraiileftthai: 0xF886,
  29366. saraiithai: 0x0E35,
  29367. saraileftthai: 0xF885,
  29368. saraithai: 0x0E34,
  29369. saraothai: 0x0E42,
  29370. saraueeleftthai: 0xF888,
  29371. saraueethai: 0x0E37,
  29372. saraueleftthai: 0xF887,
  29373. sarauethai: 0x0E36,
  29374. sarauthai: 0x0E38,
  29375. sarauuthai: 0x0E39,
  29376. sbopomofo: 0x3119,
  29377. scaron: 0x0161,
  29378. scarondotaccent: 0x1E67,
  29379. scedilla: 0x015F,
  29380. schwa: 0x0259,
  29381. schwacyrillic: 0x04D9,
  29382. schwadieresiscyrillic: 0x04DB,
  29383. schwahook: 0x025A,
  29384. scircle: 0x24E2,
  29385. scircumflex: 0x015D,
  29386. scommaaccent: 0x0219,
  29387. sdotaccent: 0x1E61,
  29388. sdotbelow: 0x1E63,
  29389. sdotbelowdotaccent: 0x1E69,
  29390. seagullbelowcmb: 0x033C,
  29391. second: 0x2033,
  29392. secondtonechinese: 0x02CA,
  29393. section: 0x00A7,
  29394. seenarabic: 0x0633,
  29395. seenfinalarabic: 0xFEB2,
  29396. seeninitialarabic: 0xFEB3,
  29397. seenmedialarabic: 0xFEB4,
  29398. segol: 0x05B6,
  29399. segol13: 0x05B6,
  29400. segol1f: 0x05B6,
  29401. segol2c: 0x05B6,
  29402. segolhebrew: 0x05B6,
  29403. segolnarrowhebrew: 0x05B6,
  29404. segolquarterhebrew: 0x05B6,
  29405. segoltahebrew: 0x0592,
  29406. segolwidehebrew: 0x05B6,
  29407. seharmenian: 0x057D,
  29408. sehiragana: 0x305B,
  29409. sekatakana: 0x30BB,
  29410. sekatakanahalfwidth: 0xFF7E,
  29411. semicolon: 0x003B,
  29412. semicolonarabic: 0x061B,
  29413. semicolonmonospace: 0xFF1B,
  29414. semicolonsmall: 0xFE54,
  29415. semivoicedmarkkana: 0x309C,
  29416. semivoicedmarkkanahalfwidth: 0xFF9F,
  29417. sentisquare: 0x3322,
  29418. sentosquare: 0x3323,
  29419. seven: 0x0037,
  29420. sevenarabic: 0x0667,
  29421. sevenbengali: 0x09ED,
  29422. sevencircle: 0x2466,
  29423. sevencircleinversesansserif: 0x2790,
  29424. sevendeva: 0x096D,
  29425. seveneighths: 0x215E,
  29426. sevengujarati: 0x0AED,
  29427. sevengurmukhi: 0x0A6D,
  29428. sevenhackarabic: 0x0667,
  29429. sevenhangzhou: 0x3027,
  29430. sevenideographicparen: 0x3226,
  29431. seveninferior: 0x2087,
  29432. sevenmonospace: 0xFF17,
  29433. sevenoldstyle: 0xF737,
  29434. sevenparen: 0x247A,
  29435. sevenperiod: 0x248E,
  29436. sevenpersian: 0x06F7,
  29437. sevenroman: 0x2176,
  29438. sevensuperior: 0x2077,
  29439. seventeencircle: 0x2470,
  29440. seventeenparen: 0x2484,
  29441. seventeenperiod: 0x2498,
  29442. seventhai: 0x0E57,
  29443. sfthyphen: 0x00AD,
  29444. shaarmenian: 0x0577,
  29445. shabengali: 0x09B6,
  29446. shacyrillic: 0x0448,
  29447. shaddaarabic: 0x0651,
  29448. shaddadammaarabic: 0xFC61,
  29449. shaddadammatanarabic: 0xFC5E,
  29450. shaddafathaarabic: 0xFC60,
  29451. shaddakasraarabic: 0xFC62,
  29452. shaddakasratanarabic: 0xFC5F,
  29453. shade: 0x2592,
  29454. shadedark: 0x2593,
  29455. shadelight: 0x2591,
  29456. shademedium: 0x2592,
  29457. shadeva: 0x0936,
  29458. shagujarati: 0x0AB6,
  29459. shagurmukhi: 0x0A36,
  29460. shalshelethebrew: 0x0593,
  29461. shbopomofo: 0x3115,
  29462. shchacyrillic: 0x0449,
  29463. sheenarabic: 0x0634,
  29464. sheenfinalarabic: 0xFEB6,
  29465. sheeninitialarabic: 0xFEB7,
  29466. sheenmedialarabic: 0xFEB8,
  29467. sheicoptic: 0x03E3,
  29468. sheqel: 0x20AA,
  29469. sheqelhebrew: 0x20AA,
  29470. sheva: 0x05B0,
  29471. sheva115: 0x05B0,
  29472. sheva15: 0x05B0,
  29473. sheva22: 0x05B0,
  29474. sheva2e: 0x05B0,
  29475. shevahebrew: 0x05B0,
  29476. shevanarrowhebrew: 0x05B0,
  29477. shevaquarterhebrew: 0x05B0,
  29478. shevawidehebrew: 0x05B0,
  29479. shhacyrillic: 0x04BB,
  29480. shimacoptic: 0x03ED,
  29481. shin: 0x05E9,
  29482. shindagesh: 0xFB49,
  29483. shindageshhebrew: 0xFB49,
  29484. shindageshshindot: 0xFB2C,
  29485. shindageshshindothebrew: 0xFB2C,
  29486. shindageshsindot: 0xFB2D,
  29487. shindageshsindothebrew: 0xFB2D,
  29488. shindothebrew: 0x05C1,
  29489. shinhebrew: 0x05E9,
  29490. shinshindot: 0xFB2A,
  29491. shinshindothebrew: 0xFB2A,
  29492. shinsindot: 0xFB2B,
  29493. shinsindothebrew: 0xFB2B,
  29494. shook: 0x0282,
  29495. sigma: 0x03C3,
  29496. sigma1: 0x03C2,
  29497. sigmafinal: 0x03C2,
  29498. sigmalunatesymbolgreek: 0x03F2,
  29499. sihiragana: 0x3057,
  29500. sikatakana: 0x30B7,
  29501. sikatakanahalfwidth: 0xFF7C,
  29502. siluqhebrew: 0x05BD,
  29503. siluqlefthebrew: 0x05BD,
  29504. similar: 0x223C,
  29505. sindothebrew: 0x05C2,
  29506. siosacirclekorean: 0x3274,
  29507. siosaparenkorean: 0x3214,
  29508. sioscieuckorean: 0x317E,
  29509. sioscirclekorean: 0x3266,
  29510. sioskiyeokkorean: 0x317A,
  29511. sioskorean: 0x3145,
  29512. siosnieunkorean: 0x317B,
  29513. siosparenkorean: 0x3206,
  29514. siospieupkorean: 0x317D,
  29515. siostikeutkorean: 0x317C,
  29516. six: 0x0036,
  29517. sixarabic: 0x0666,
  29518. sixbengali: 0x09EC,
  29519. sixcircle: 0x2465,
  29520. sixcircleinversesansserif: 0x278F,
  29521. sixdeva: 0x096C,
  29522. sixgujarati: 0x0AEC,
  29523. sixgurmukhi: 0x0A6C,
  29524. sixhackarabic: 0x0666,
  29525. sixhangzhou: 0x3026,
  29526. sixideographicparen: 0x3225,
  29527. sixinferior: 0x2086,
  29528. sixmonospace: 0xFF16,
  29529. sixoldstyle: 0xF736,
  29530. sixparen: 0x2479,
  29531. sixperiod: 0x248D,
  29532. sixpersian: 0x06F6,
  29533. sixroman: 0x2175,
  29534. sixsuperior: 0x2076,
  29535. sixteencircle: 0x246F,
  29536. sixteencurrencydenominatorbengali: 0x09F9,
  29537. sixteenparen: 0x2483,
  29538. sixteenperiod: 0x2497,
  29539. sixthai: 0x0E56,
  29540. slash: 0x002F,
  29541. slashmonospace: 0xFF0F,
  29542. slong: 0x017F,
  29543. slongdotaccent: 0x1E9B,
  29544. smileface: 0x263A,
  29545. smonospace: 0xFF53,
  29546. sofpasuqhebrew: 0x05C3,
  29547. softhyphen: 0x00AD,
  29548. softsigncyrillic: 0x044C,
  29549. sohiragana: 0x305D,
  29550. sokatakana: 0x30BD,
  29551. sokatakanahalfwidth: 0xFF7F,
  29552. soliduslongoverlaycmb: 0x0338,
  29553. solidusshortoverlaycmb: 0x0337,
  29554. sorusithai: 0x0E29,
  29555. sosalathai: 0x0E28,
  29556. sosothai: 0x0E0B,
  29557. sosuathai: 0x0E2A,
  29558. space: 0x0020,
  29559. spacehackarabic: 0x0020,
  29560. spade: 0x2660,
  29561. spadesuitblack: 0x2660,
  29562. spadesuitwhite: 0x2664,
  29563. sparen: 0x24AE,
  29564. squarebelowcmb: 0x033B,
  29565. squarecc: 0x33C4,
  29566. squarecm: 0x339D,
  29567. squarediagonalcrosshatchfill: 0x25A9,
  29568. squarehorizontalfill: 0x25A4,
  29569. squarekg: 0x338F,
  29570. squarekm: 0x339E,
  29571. squarekmcapital: 0x33CE,
  29572. squareln: 0x33D1,
  29573. squarelog: 0x33D2,
  29574. squaremg: 0x338E,
  29575. squaremil: 0x33D5,
  29576. squaremm: 0x339C,
  29577. squaremsquared: 0x33A1,
  29578. squareorthogonalcrosshatchfill: 0x25A6,
  29579. squareupperlefttolowerrightfill: 0x25A7,
  29580. squareupperrighttolowerleftfill: 0x25A8,
  29581. squareverticalfill: 0x25A5,
  29582. squarewhitewithsmallblack: 0x25A3,
  29583. srsquare: 0x33DB,
  29584. ssabengali: 0x09B7,
  29585. ssadeva: 0x0937,
  29586. ssagujarati: 0x0AB7,
  29587. ssangcieuckorean: 0x3149,
  29588. ssanghieuhkorean: 0x3185,
  29589. ssangieungkorean: 0x3180,
  29590. ssangkiyeokkorean: 0x3132,
  29591. ssangnieunkorean: 0x3165,
  29592. ssangpieupkorean: 0x3143,
  29593. ssangsioskorean: 0x3146,
  29594. ssangtikeutkorean: 0x3138,
  29595. ssuperior: 0xF6F2,
  29596. sterling: 0x00A3,
  29597. sterlingmonospace: 0xFFE1,
  29598. strokelongoverlaycmb: 0x0336,
  29599. strokeshortoverlaycmb: 0x0335,
  29600. subset: 0x2282,
  29601. subsetnotequal: 0x228A,
  29602. subsetorequal: 0x2286,
  29603. succeeds: 0x227B,
  29604. suchthat: 0x220B,
  29605. suhiragana: 0x3059,
  29606. sukatakana: 0x30B9,
  29607. sukatakanahalfwidth: 0xFF7D,
  29608. sukunarabic: 0x0652,
  29609. summation: 0x2211,
  29610. sun: 0x263C,
  29611. superset: 0x2283,
  29612. supersetnotequal: 0x228B,
  29613. supersetorequal: 0x2287,
  29614. svsquare: 0x33DC,
  29615. syouwaerasquare: 0x337C,
  29616. t: 0x0074,
  29617. tabengali: 0x09A4,
  29618. tackdown: 0x22A4,
  29619. tackleft: 0x22A3,
  29620. tadeva: 0x0924,
  29621. tagujarati: 0x0AA4,
  29622. tagurmukhi: 0x0A24,
  29623. taharabic: 0x0637,
  29624. tahfinalarabic: 0xFEC2,
  29625. tahinitialarabic: 0xFEC3,
  29626. tahiragana: 0x305F,
  29627. tahmedialarabic: 0xFEC4,
  29628. taisyouerasquare: 0x337D,
  29629. takatakana: 0x30BF,
  29630. takatakanahalfwidth: 0xFF80,
  29631. tatweelarabic: 0x0640,
  29632. tau: 0x03C4,
  29633. tav: 0x05EA,
  29634. tavdages: 0xFB4A,
  29635. tavdagesh: 0xFB4A,
  29636. tavdageshhebrew: 0xFB4A,
  29637. tavhebrew: 0x05EA,
  29638. tbar: 0x0167,
  29639. tbopomofo: 0x310A,
  29640. tcaron: 0x0165,
  29641. tccurl: 0x02A8,
  29642. tcedilla: 0x0163,
  29643. tcheharabic: 0x0686,
  29644. tchehfinalarabic: 0xFB7B,
  29645. tchehinitialarabic: 0xFB7C,
  29646. tchehmedialarabic: 0xFB7D,
  29647. tcircle: 0x24E3,
  29648. tcircumflexbelow: 0x1E71,
  29649. tcommaaccent: 0x0163,
  29650. tdieresis: 0x1E97,
  29651. tdotaccent: 0x1E6B,
  29652. tdotbelow: 0x1E6D,
  29653. tecyrillic: 0x0442,
  29654. tedescendercyrillic: 0x04AD,
  29655. teharabic: 0x062A,
  29656. tehfinalarabic: 0xFE96,
  29657. tehhahinitialarabic: 0xFCA2,
  29658. tehhahisolatedarabic: 0xFC0C,
  29659. tehinitialarabic: 0xFE97,
  29660. tehiragana: 0x3066,
  29661. tehjeeminitialarabic: 0xFCA1,
  29662. tehjeemisolatedarabic: 0xFC0B,
  29663. tehmarbutaarabic: 0x0629,
  29664. tehmarbutafinalarabic: 0xFE94,
  29665. tehmedialarabic: 0xFE98,
  29666. tehmeeminitialarabic: 0xFCA4,
  29667. tehmeemisolatedarabic: 0xFC0E,
  29668. tehnoonfinalarabic: 0xFC73,
  29669. tekatakana: 0x30C6,
  29670. tekatakanahalfwidth: 0xFF83,
  29671. telephone: 0x2121,
  29672. telephoneblack: 0x260E,
  29673. telishagedolahebrew: 0x05A0,
  29674. telishaqetanahebrew: 0x05A9,
  29675. tencircle: 0x2469,
  29676. tenideographicparen: 0x3229,
  29677. tenparen: 0x247D,
  29678. tenperiod: 0x2491,
  29679. tenroman: 0x2179,
  29680. tesh: 0x02A7,
  29681. tet: 0x05D8,
  29682. tetdagesh: 0xFB38,
  29683. tetdageshhebrew: 0xFB38,
  29684. tethebrew: 0x05D8,
  29685. tetsecyrillic: 0x04B5,
  29686. tevirhebrew: 0x059B,
  29687. tevirlefthebrew: 0x059B,
  29688. thabengali: 0x09A5,
  29689. thadeva: 0x0925,
  29690. thagujarati: 0x0AA5,
  29691. thagurmukhi: 0x0A25,
  29692. thalarabic: 0x0630,
  29693. thalfinalarabic: 0xFEAC,
  29694. thanthakhatlowleftthai: 0xF898,
  29695. thanthakhatlowrightthai: 0xF897,
  29696. thanthakhatthai: 0x0E4C,
  29697. thanthakhatupperleftthai: 0xF896,
  29698. theharabic: 0x062B,
  29699. thehfinalarabic: 0xFE9A,
  29700. thehinitialarabic: 0xFE9B,
  29701. thehmedialarabic: 0xFE9C,
  29702. thereexists: 0x2203,
  29703. therefore: 0x2234,
  29704. theta: 0x03B8,
  29705. theta1: 0x03D1,
  29706. thetasymbolgreek: 0x03D1,
  29707. thieuthacirclekorean: 0x3279,
  29708. thieuthaparenkorean: 0x3219,
  29709. thieuthcirclekorean: 0x326B,
  29710. thieuthkorean: 0x314C,
  29711. thieuthparenkorean: 0x320B,
  29712. thirteencircle: 0x246C,
  29713. thirteenparen: 0x2480,
  29714. thirteenperiod: 0x2494,
  29715. thonangmonthothai: 0x0E11,
  29716. thook: 0x01AD,
  29717. thophuthaothai: 0x0E12,
  29718. thorn: 0x00FE,
  29719. thothahanthai: 0x0E17,
  29720. thothanthai: 0x0E10,
  29721. thothongthai: 0x0E18,
  29722. thothungthai: 0x0E16,
  29723. thousandcyrillic: 0x0482,
  29724. thousandsseparatorarabic: 0x066C,
  29725. thousandsseparatorpersian: 0x066C,
  29726. three: 0x0033,
  29727. threearabic: 0x0663,
  29728. threebengali: 0x09E9,
  29729. threecircle: 0x2462,
  29730. threecircleinversesansserif: 0x278C,
  29731. threedeva: 0x0969,
  29732. threeeighths: 0x215C,
  29733. threegujarati: 0x0AE9,
  29734. threegurmukhi: 0x0A69,
  29735. threehackarabic: 0x0663,
  29736. threehangzhou: 0x3023,
  29737. threeideographicparen: 0x3222,
  29738. threeinferior: 0x2083,
  29739. threemonospace: 0xFF13,
  29740. threenumeratorbengali: 0x09F6,
  29741. threeoldstyle: 0xF733,
  29742. threeparen: 0x2476,
  29743. threeperiod: 0x248A,
  29744. threepersian: 0x06F3,
  29745. threequarters: 0x00BE,
  29746. threequartersemdash: 0xF6DE,
  29747. threeroman: 0x2172,
  29748. threesuperior: 0x00B3,
  29749. threethai: 0x0E53,
  29750. thzsquare: 0x3394,
  29751. tihiragana: 0x3061,
  29752. tikatakana: 0x30C1,
  29753. tikatakanahalfwidth: 0xFF81,
  29754. tikeutacirclekorean: 0x3270,
  29755. tikeutaparenkorean: 0x3210,
  29756. tikeutcirclekorean: 0x3262,
  29757. tikeutkorean: 0x3137,
  29758. tikeutparenkorean: 0x3202,
  29759. tilde: 0x02DC,
  29760. tildebelowcmb: 0x0330,
  29761. tildecmb: 0x0303,
  29762. tildecomb: 0x0303,
  29763. tildedoublecmb: 0x0360,
  29764. tildeoperator: 0x223C,
  29765. tildeoverlaycmb: 0x0334,
  29766. tildeverticalcmb: 0x033E,
  29767. timescircle: 0x2297,
  29768. tipehahebrew: 0x0596,
  29769. tipehalefthebrew: 0x0596,
  29770. tippigurmukhi: 0x0A70,
  29771. titlocyrilliccmb: 0x0483,
  29772. tiwnarmenian: 0x057F,
  29773. tlinebelow: 0x1E6F,
  29774. tmonospace: 0xFF54,
  29775. toarmenian: 0x0569,
  29776. tohiragana: 0x3068,
  29777. tokatakana: 0x30C8,
  29778. tokatakanahalfwidth: 0xFF84,
  29779. tonebarextrahighmod: 0x02E5,
  29780. tonebarextralowmod: 0x02E9,
  29781. tonebarhighmod: 0x02E6,
  29782. tonebarlowmod: 0x02E8,
  29783. tonebarmidmod: 0x02E7,
  29784. tonefive: 0x01BD,
  29785. tonesix: 0x0185,
  29786. tonetwo: 0x01A8,
  29787. tonos: 0x0384,
  29788. tonsquare: 0x3327,
  29789. topatakthai: 0x0E0F,
  29790. tortoiseshellbracketleft: 0x3014,
  29791. tortoiseshellbracketleftsmall: 0xFE5D,
  29792. tortoiseshellbracketleftvertical: 0xFE39,
  29793. tortoiseshellbracketright: 0x3015,
  29794. tortoiseshellbracketrightsmall: 0xFE5E,
  29795. tortoiseshellbracketrightvertical: 0xFE3A,
  29796. totaothai: 0x0E15,
  29797. tpalatalhook: 0x01AB,
  29798. tparen: 0x24AF,
  29799. trademark: 0x2122,
  29800. trademarksans: 0xF8EA,
  29801. trademarkserif: 0xF6DB,
  29802. tretroflexhook: 0x0288,
  29803. triagdn: 0x25BC,
  29804. triaglf: 0x25C4,
  29805. triagrt: 0x25BA,
  29806. triagup: 0x25B2,
  29807. ts: 0x02A6,
  29808. tsadi: 0x05E6,
  29809. tsadidagesh: 0xFB46,
  29810. tsadidageshhebrew: 0xFB46,
  29811. tsadihebrew: 0x05E6,
  29812. tsecyrillic: 0x0446,
  29813. tsere: 0x05B5,
  29814. tsere12: 0x05B5,
  29815. tsere1e: 0x05B5,
  29816. tsere2b: 0x05B5,
  29817. tserehebrew: 0x05B5,
  29818. tserenarrowhebrew: 0x05B5,
  29819. tserequarterhebrew: 0x05B5,
  29820. tserewidehebrew: 0x05B5,
  29821. tshecyrillic: 0x045B,
  29822. tsuperior: 0xF6F3,
  29823. ttabengali: 0x099F,
  29824. ttadeva: 0x091F,
  29825. ttagujarati: 0x0A9F,
  29826. ttagurmukhi: 0x0A1F,
  29827. tteharabic: 0x0679,
  29828. ttehfinalarabic: 0xFB67,
  29829. ttehinitialarabic: 0xFB68,
  29830. ttehmedialarabic: 0xFB69,
  29831. tthabengali: 0x09A0,
  29832. tthadeva: 0x0920,
  29833. tthagujarati: 0x0AA0,
  29834. tthagurmukhi: 0x0A20,
  29835. tturned: 0x0287,
  29836. tuhiragana: 0x3064,
  29837. tukatakana: 0x30C4,
  29838. tukatakanahalfwidth: 0xFF82,
  29839. tusmallhiragana: 0x3063,
  29840. tusmallkatakana: 0x30C3,
  29841. tusmallkatakanahalfwidth: 0xFF6F,
  29842. twelvecircle: 0x246B,
  29843. twelveparen: 0x247F,
  29844. twelveperiod: 0x2493,
  29845. twelveroman: 0x217B,
  29846. twentycircle: 0x2473,
  29847. twentyhangzhou: 0x5344,
  29848. twentyparen: 0x2487,
  29849. twentyperiod: 0x249B,
  29850. two: 0x0032,
  29851. twoarabic: 0x0662,
  29852. twobengali: 0x09E8,
  29853. twocircle: 0x2461,
  29854. twocircleinversesansserif: 0x278B,
  29855. twodeva: 0x0968,
  29856. twodotenleader: 0x2025,
  29857. twodotleader: 0x2025,
  29858. twodotleadervertical: 0xFE30,
  29859. twogujarati: 0x0AE8,
  29860. twogurmukhi: 0x0A68,
  29861. twohackarabic: 0x0662,
  29862. twohangzhou: 0x3022,
  29863. twoideographicparen: 0x3221,
  29864. twoinferior: 0x2082,
  29865. twomonospace: 0xFF12,
  29866. twonumeratorbengali: 0x09F5,
  29867. twooldstyle: 0xF732,
  29868. twoparen: 0x2475,
  29869. twoperiod: 0x2489,
  29870. twopersian: 0x06F2,
  29871. tworoman: 0x2171,
  29872. twostroke: 0x01BB,
  29873. twosuperior: 0x00B2,
  29874. twothai: 0x0E52,
  29875. twothirds: 0x2154,
  29876. u: 0x0075,
  29877. uacute: 0x00FA,
  29878. ubar: 0x0289,
  29879. ubengali: 0x0989,
  29880. ubopomofo: 0x3128,
  29881. ubreve: 0x016D,
  29882. ucaron: 0x01D4,
  29883. ucircle: 0x24E4,
  29884. ucircumflex: 0x00FB,
  29885. ucircumflexbelow: 0x1E77,
  29886. ucyrillic: 0x0443,
  29887. udattadeva: 0x0951,
  29888. udblacute: 0x0171,
  29889. udblgrave: 0x0215,
  29890. udeva: 0x0909,
  29891. udieresis: 0x00FC,
  29892. udieresisacute: 0x01D8,
  29893. udieresisbelow: 0x1E73,
  29894. udieresiscaron: 0x01DA,
  29895. udieresiscyrillic: 0x04F1,
  29896. udieresisgrave: 0x01DC,
  29897. udieresismacron: 0x01D6,
  29898. udotbelow: 0x1EE5,
  29899. ugrave: 0x00F9,
  29900. ugujarati: 0x0A89,
  29901. ugurmukhi: 0x0A09,
  29902. uhiragana: 0x3046,
  29903. uhookabove: 0x1EE7,
  29904. uhorn: 0x01B0,
  29905. uhornacute: 0x1EE9,
  29906. uhorndotbelow: 0x1EF1,
  29907. uhorngrave: 0x1EEB,
  29908. uhornhookabove: 0x1EED,
  29909. uhorntilde: 0x1EEF,
  29910. uhungarumlaut: 0x0171,
  29911. uhungarumlautcyrillic: 0x04F3,
  29912. uinvertedbreve: 0x0217,
  29913. ukatakana: 0x30A6,
  29914. ukatakanahalfwidth: 0xFF73,
  29915. ukcyrillic: 0x0479,
  29916. ukorean: 0x315C,
  29917. umacron: 0x016B,
  29918. umacroncyrillic: 0x04EF,
  29919. umacrondieresis: 0x1E7B,
  29920. umatragurmukhi: 0x0A41,
  29921. umonospace: 0xFF55,
  29922. underscore: 0x005F,
  29923. underscoredbl: 0x2017,
  29924. underscoremonospace: 0xFF3F,
  29925. underscorevertical: 0xFE33,
  29926. underscorewavy: 0xFE4F,
  29927. union: 0x222A,
  29928. universal: 0x2200,
  29929. uogonek: 0x0173,
  29930. uparen: 0x24B0,
  29931. upblock: 0x2580,
  29932. upperdothebrew: 0x05C4,
  29933. upsilon: 0x03C5,
  29934. upsilondieresis: 0x03CB,
  29935. upsilondieresistonos: 0x03B0,
  29936. upsilonlatin: 0x028A,
  29937. upsilontonos: 0x03CD,
  29938. uptackbelowcmb: 0x031D,
  29939. uptackmod: 0x02D4,
  29940. uragurmukhi: 0x0A73,
  29941. uring: 0x016F,
  29942. ushortcyrillic: 0x045E,
  29943. usmallhiragana: 0x3045,
  29944. usmallkatakana: 0x30A5,
  29945. usmallkatakanahalfwidth: 0xFF69,
  29946. ustraightcyrillic: 0x04AF,
  29947. ustraightstrokecyrillic: 0x04B1,
  29948. utilde: 0x0169,
  29949. utildeacute: 0x1E79,
  29950. utildebelow: 0x1E75,
  29951. uubengali: 0x098A,
  29952. uudeva: 0x090A,
  29953. uugujarati: 0x0A8A,
  29954. uugurmukhi: 0x0A0A,
  29955. uumatragurmukhi: 0x0A42,
  29956. uuvowelsignbengali: 0x09C2,
  29957. uuvowelsigndeva: 0x0942,
  29958. uuvowelsigngujarati: 0x0AC2,
  29959. uvowelsignbengali: 0x09C1,
  29960. uvowelsigndeva: 0x0941,
  29961. uvowelsigngujarati: 0x0AC1,
  29962. v: 0x0076,
  29963. vadeva: 0x0935,
  29964. vagujarati: 0x0AB5,
  29965. vagurmukhi: 0x0A35,
  29966. vakatakana: 0x30F7,
  29967. vav: 0x05D5,
  29968. vavdagesh: 0xFB35,
  29969. vavdagesh65: 0xFB35,
  29970. vavdageshhebrew: 0xFB35,
  29971. vavhebrew: 0x05D5,
  29972. vavholam: 0xFB4B,
  29973. vavholamhebrew: 0xFB4B,
  29974. vavvavhebrew: 0x05F0,
  29975. vavyodhebrew: 0x05F1,
  29976. vcircle: 0x24E5,
  29977. vdotbelow: 0x1E7F,
  29978. vecyrillic: 0x0432,
  29979. veharabic: 0x06A4,
  29980. vehfinalarabic: 0xFB6B,
  29981. vehinitialarabic: 0xFB6C,
  29982. vehmedialarabic: 0xFB6D,
  29983. vekatakana: 0x30F9,
  29984. venus: 0x2640,
  29985. verticalbar: 0x007C,
  29986. verticallineabovecmb: 0x030D,
  29987. verticallinebelowcmb: 0x0329,
  29988. verticallinelowmod: 0x02CC,
  29989. verticallinemod: 0x02C8,
  29990. vewarmenian: 0x057E,
  29991. vhook: 0x028B,
  29992. vikatakana: 0x30F8,
  29993. viramabengali: 0x09CD,
  29994. viramadeva: 0x094D,
  29995. viramagujarati: 0x0ACD,
  29996. visargabengali: 0x0983,
  29997. visargadeva: 0x0903,
  29998. visargagujarati: 0x0A83,
  29999. vmonospace: 0xFF56,
  30000. voarmenian: 0x0578,
  30001. voicediterationhiragana: 0x309E,
  30002. voicediterationkatakana: 0x30FE,
  30003. voicedmarkkana: 0x309B,
  30004. voicedmarkkanahalfwidth: 0xFF9E,
  30005. vokatakana: 0x30FA,
  30006. vparen: 0x24B1,
  30007. vtilde: 0x1E7D,
  30008. vturned: 0x028C,
  30009. vuhiragana: 0x3094,
  30010. vukatakana: 0x30F4,
  30011. w: 0x0077,
  30012. wacute: 0x1E83,
  30013. waekorean: 0x3159,
  30014. wahiragana: 0x308F,
  30015. wakatakana: 0x30EF,
  30016. wakatakanahalfwidth: 0xFF9C,
  30017. wakorean: 0x3158,
  30018. wasmallhiragana: 0x308E,
  30019. wasmallkatakana: 0x30EE,
  30020. wattosquare: 0x3357,
  30021. wavedash: 0x301C,
  30022. wavyunderscorevertical: 0xFE34,
  30023. wawarabic: 0x0648,
  30024. wawfinalarabic: 0xFEEE,
  30025. wawhamzaabovearabic: 0x0624,
  30026. wawhamzaabovefinalarabic: 0xFE86,
  30027. wbsquare: 0x33DD,
  30028. wcircle: 0x24E6,
  30029. wcircumflex: 0x0175,
  30030. wdieresis: 0x1E85,
  30031. wdotaccent: 0x1E87,
  30032. wdotbelow: 0x1E89,
  30033. wehiragana: 0x3091,
  30034. weierstrass: 0x2118,
  30035. wekatakana: 0x30F1,
  30036. wekorean: 0x315E,
  30037. weokorean: 0x315D,
  30038. wgrave: 0x1E81,
  30039. whitebullet: 0x25E6,
  30040. whitecircle: 0x25CB,
  30041. whitecircleinverse: 0x25D9,
  30042. whitecornerbracketleft: 0x300E,
  30043. whitecornerbracketleftvertical: 0xFE43,
  30044. whitecornerbracketright: 0x300F,
  30045. whitecornerbracketrightvertical: 0xFE44,
  30046. whitediamond: 0x25C7,
  30047. whitediamondcontainingblacksmalldiamond: 0x25C8,
  30048. whitedownpointingsmalltriangle: 0x25BF,
  30049. whitedownpointingtriangle: 0x25BD,
  30050. whiteleftpointingsmalltriangle: 0x25C3,
  30051. whiteleftpointingtriangle: 0x25C1,
  30052. whitelenticularbracketleft: 0x3016,
  30053. whitelenticularbracketright: 0x3017,
  30054. whiterightpointingsmalltriangle: 0x25B9,
  30055. whiterightpointingtriangle: 0x25B7,
  30056. whitesmallsquare: 0x25AB,
  30057. whitesmilingface: 0x263A,
  30058. whitesquare: 0x25A1,
  30059. whitestar: 0x2606,
  30060. whitetelephone: 0x260F,
  30061. whitetortoiseshellbracketleft: 0x3018,
  30062. whitetortoiseshellbracketright: 0x3019,
  30063. whiteuppointingsmalltriangle: 0x25B5,
  30064. whiteuppointingtriangle: 0x25B3,
  30065. wihiragana: 0x3090,
  30066. wikatakana: 0x30F0,
  30067. wikorean: 0x315F,
  30068. wmonospace: 0xFF57,
  30069. wohiragana: 0x3092,
  30070. wokatakana: 0x30F2,
  30071. wokatakanahalfwidth: 0xFF66,
  30072. won: 0x20A9,
  30073. wonmonospace: 0xFFE6,
  30074. wowaenthai: 0x0E27,
  30075. wparen: 0x24B2,
  30076. wring: 0x1E98,
  30077. wsuperior: 0x02B7,
  30078. wturned: 0x028D,
  30079. wynn: 0x01BF,
  30080. x: 0x0078,
  30081. xabovecmb: 0x033D,
  30082. xbopomofo: 0x3112,
  30083. xcircle: 0x24E7,
  30084. xdieresis: 0x1E8D,
  30085. xdotaccent: 0x1E8B,
  30086. xeharmenian: 0x056D,
  30087. xi: 0x03BE,
  30088. xmonospace: 0xFF58,
  30089. xparen: 0x24B3,
  30090. xsuperior: 0x02E3,
  30091. y: 0x0079,
  30092. yaadosquare: 0x334E,
  30093. yabengali: 0x09AF,
  30094. yacute: 0x00FD,
  30095. yadeva: 0x092F,
  30096. yaekorean: 0x3152,
  30097. yagujarati: 0x0AAF,
  30098. yagurmukhi: 0x0A2F,
  30099. yahiragana: 0x3084,
  30100. yakatakana: 0x30E4,
  30101. yakatakanahalfwidth: 0xFF94,
  30102. yakorean: 0x3151,
  30103. yamakkanthai: 0x0E4E,
  30104. yasmallhiragana: 0x3083,
  30105. yasmallkatakana: 0x30E3,
  30106. yasmallkatakanahalfwidth: 0xFF6C,
  30107. yatcyrillic: 0x0463,
  30108. ycircle: 0x24E8,
  30109. ycircumflex: 0x0177,
  30110. ydieresis: 0x00FF,
  30111. ydotaccent: 0x1E8F,
  30112. ydotbelow: 0x1EF5,
  30113. yeharabic: 0x064A,
  30114. yehbarreearabic: 0x06D2,
  30115. yehbarreefinalarabic: 0xFBAF,
  30116. yehfinalarabic: 0xFEF2,
  30117. yehhamzaabovearabic: 0x0626,
  30118. yehhamzaabovefinalarabic: 0xFE8A,
  30119. yehhamzaaboveinitialarabic: 0xFE8B,
  30120. yehhamzaabovemedialarabic: 0xFE8C,
  30121. yehinitialarabic: 0xFEF3,
  30122. yehmedialarabic: 0xFEF4,
  30123. yehmeeminitialarabic: 0xFCDD,
  30124. yehmeemisolatedarabic: 0xFC58,
  30125. yehnoonfinalarabic: 0xFC94,
  30126. yehthreedotsbelowarabic: 0x06D1,
  30127. yekorean: 0x3156,
  30128. yen: 0x00A5,
  30129. yenmonospace: 0xFFE5,
  30130. yeokorean: 0x3155,
  30131. yeorinhieuhkorean: 0x3186,
  30132. yerahbenyomohebrew: 0x05AA,
  30133. yerahbenyomolefthebrew: 0x05AA,
  30134. yericyrillic: 0x044B,
  30135. yerudieresiscyrillic: 0x04F9,
  30136. yesieungkorean: 0x3181,
  30137. yesieungpansioskorean: 0x3183,
  30138. yesieungsioskorean: 0x3182,
  30139. yetivhebrew: 0x059A,
  30140. ygrave: 0x1EF3,
  30141. yhook: 0x01B4,
  30142. yhookabove: 0x1EF7,
  30143. yiarmenian: 0x0575,
  30144. yicyrillic: 0x0457,
  30145. yikorean: 0x3162,
  30146. yinyang: 0x262F,
  30147. yiwnarmenian: 0x0582,
  30148. ymonospace: 0xFF59,
  30149. yod: 0x05D9,
  30150. yoddagesh: 0xFB39,
  30151. yoddageshhebrew: 0xFB39,
  30152. yodhebrew: 0x05D9,
  30153. yodyodhebrew: 0x05F2,
  30154. yodyodpatahhebrew: 0xFB1F,
  30155. yohiragana: 0x3088,
  30156. yoikorean: 0x3189,
  30157. yokatakana: 0x30E8,
  30158. yokatakanahalfwidth: 0xFF96,
  30159. yokorean: 0x315B,
  30160. yosmallhiragana: 0x3087,
  30161. yosmallkatakana: 0x30E7,
  30162. yosmallkatakanahalfwidth: 0xFF6E,
  30163. yotgreek: 0x03F3,
  30164. yoyaekorean: 0x3188,
  30165. yoyakorean: 0x3187,
  30166. yoyakthai: 0x0E22,
  30167. yoyingthai: 0x0E0D,
  30168. yparen: 0x24B4,
  30169. ypogegrammeni: 0x037A,
  30170. ypogegrammenigreekcmb: 0x0345,
  30171. yr: 0x01A6,
  30172. yring: 0x1E99,
  30173. ysuperior: 0x02B8,
  30174. ytilde: 0x1EF9,
  30175. yturned: 0x028E,
  30176. yuhiragana: 0x3086,
  30177. yuikorean: 0x318C,
  30178. yukatakana: 0x30E6,
  30179. yukatakanahalfwidth: 0xFF95,
  30180. yukorean: 0x3160,
  30181. yusbigcyrillic: 0x046B,
  30182. yusbigiotifiedcyrillic: 0x046D,
  30183. yuslittlecyrillic: 0x0467,
  30184. yuslittleiotifiedcyrillic: 0x0469,
  30185. yusmallhiragana: 0x3085,
  30186. yusmallkatakana: 0x30E5,
  30187. yusmallkatakanahalfwidth: 0xFF6D,
  30188. yuyekorean: 0x318B,
  30189. yuyeokorean: 0x318A,
  30190. yyabengali: 0x09DF,
  30191. yyadeva: 0x095F,
  30192. z: 0x007A,
  30193. zaarmenian: 0x0566,
  30194. zacute: 0x017A,
  30195. zadeva: 0x095B,
  30196. zagurmukhi: 0x0A5B,
  30197. zaharabic: 0x0638,
  30198. zahfinalarabic: 0xFEC6,
  30199. zahinitialarabic: 0xFEC7,
  30200. zahiragana: 0x3056,
  30201. zahmedialarabic: 0xFEC8,
  30202. zainarabic: 0x0632,
  30203. zainfinalarabic: 0xFEB0,
  30204. zakatakana: 0x30B6,
  30205. zaqefgadolhebrew: 0x0595,
  30206. zaqefqatanhebrew: 0x0594,
  30207. zarqahebrew: 0x0598,
  30208. zayin: 0x05D6,
  30209. zayindagesh: 0xFB36,
  30210. zayindageshhebrew: 0xFB36,
  30211. zayinhebrew: 0x05D6,
  30212. zbopomofo: 0x3117,
  30213. zcaron: 0x017E,
  30214. zcircle: 0x24E9,
  30215. zcircumflex: 0x1E91,
  30216. zcurl: 0x0291,
  30217. zdot: 0x017C,
  30218. zdotaccent: 0x017C,
  30219. zdotbelow: 0x1E93,
  30220. zecyrillic: 0x0437,
  30221. zedescendercyrillic: 0x0499,
  30222. zedieresiscyrillic: 0x04DF,
  30223. zehiragana: 0x305C,
  30224. zekatakana: 0x30BC,
  30225. zero: 0x0030,
  30226. zeroarabic: 0x0660,
  30227. zerobengali: 0x09E6,
  30228. zerodeva: 0x0966,
  30229. zerogujarati: 0x0AE6,
  30230. zerogurmukhi: 0x0A66,
  30231. zerohackarabic: 0x0660,
  30232. zeroinferior: 0x2080,
  30233. zeromonospace: 0xFF10,
  30234. zerooldstyle: 0xF730,
  30235. zeropersian: 0x06F0,
  30236. zerosuperior: 0x2070,
  30237. zerothai: 0x0E50,
  30238. zerowidthjoiner: 0xFEFF,
  30239. zerowidthnonjoiner: 0x200C,
  30240. zerowidthspace: 0x200B,
  30241. zeta: 0x03B6,
  30242. zhbopomofo: 0x3113,
  30243. zhearmenian: 0x056A,
  30244. zhebrevecyrillic: 0x04C2,
  30245. zhecyrillic: 0x0436,
  30246. zhedescendercyrillic: 0x0497,
  30247. zhedieresiscyrillic: 0x04DD,
  30248. zihiragana: 0x3058,
  30249. zikatakana: 0x30B8,
  30250. zinorhebrew: 0x05AE,
  30251. zlinebelow: 0x1E95,
  30252. zmonospace: 0xFF5A,
  30253. zohiragana: 0x305E,
  30254. zokatakana: 0x30BE,
  30255. zparen: 0x24B5,
  30256. zretroflexhook: 0x0290,
  30257. zstroke: 0x01B6,
  30258. zuhiragana: 0x305A,
  30259. zukatakana: 0x30BA,
  30260. '.notdef': 0x0000
  30261. };
  30262. var PDFImage = (function PDFImageClosure() {
  30263. /**
  30264. * Decode the image in the main thread if it supported. Resovles the promise
  30265. * when the image data is ready.
  30266. */
  30267. function handleImageData(handler, xref, res, image) {
  30268. if (image instanceof JpegStream && image.isNativelyDecodable(xref, res)) {
  30269. // For natively supported jpegs send them to the main thread for decoding.
  30270. var dict = image.dict;
  30271. var colorSpace = dict.get('ColorSpace', 'CS');
  30272. colorSpace = ColorSpace.parse(colorSpace, xref, res);
  30273. var numComps = colorSpace.numComps;
  30274. var decodePromise = handler.sendWithPromise('JpegDecode',
  30275. [image.getIR(), numComps]);
  30276. return decodePromise.then(function (message) {
  30277. var data = message.data;
  30278. return new Stream(data, 0, data.length, image.dict);
  30279. });
  30280. } else {
  30281. return Promise.resolve(image);
  30282. }
  30283. }
  30284. /**
  30285. * Decode and clamp a value. The formula is different from the spec because we
  30286. * don't decode to float range [0,1], we decode it in the [0,max] range.
  30287. */
  30288. function decodeAndClamp(value, addend, coefficient, max) {
  30289. value = addend + value * coefficient;
  30290. // Clamp the value to the range
  30291. return (value < 0 ? 0 : (value > max ? max : value));
  30292. }
  30293. function PDFImage(xref, res, image, inline, smask, mask, isMask) {
  30294. this.image = image;
  30295. var dict = image.dict;
  30296. if (dict.has('Filter')) {
  30297. var filter = dict.get('Filter').name;
  30298. if (filter === 'JPXDecode') {
  30299. var jpxImage = new JpxImage();
  30300. jpxImage.parseImageProperties(image.stream);
  30301. image.stream.reset();
  30302. image.bitsPerComponent = jpxImage.bitsPerComponent;
  30303. image.numComps = jpxImage.componentsCount;
  30304. } else if (filter === 'JBIG2Decode') {
  30305. image.bitsPerComponent = 1;
  30306. image.numComps = 1;
  30307. }
  30308. }
  30309. // TODO cache rendered images?
  30310. this.width = dict.get('Width', 'W');
  30311. this.height = dict.get('Height', 'H');
  30312. if (this.width < 1 || this.height < 1) {
  30313. error('Invalid image width: ' + this.width + ' or height: ' +
  30314. this.height);
  30315. }
  30316. this.interpolate = dict.get('Interpolate', 'I') || false;
  30317. this.imageMask = dict.get('ImageMask', 'IM') || false;
  30318. this.matte = dict.get('Matte') || false;
  30319. var bitsPerComponent = image.bitsPerComponent;
  30320. if (!bitsPerComponent) {
  30321. bitsPerComponent = dict.get('BitsPerComponent', 'BPC');
  30322. if (!bitsPerComponent) {
  30323. if (this.imageMask) {
  30324. bitsPerComponent = 1;
  30325. } else {
  30326. error('Bits per component missing in image: ' + this.imageMask);
  30327. }
  30328. }
  30329. }
  30330. this.bpc = bitsPerComponent;
  30331. if (!this.imageMask) {
  30332. var colorSpace = dict.get('ColorSpace', 'CS');
  30333. if (!colorSpace) {
  30334. info('JPX images (which do not require color spaces)');
  30335. switch (image.numComps) {
  30336. case 1:
  30337. colorSpace = Name.get('DeviceGray');
  30338. break;
  30339. case 3:
  30340. colorSpace = Name.get('DeviceRGB');
  30341. break;
  30342. case 4:
  30343. colorSpace = Name.get('DeviceCMYK');
  30344. break;
  30345. default:
  30346. error('JPX images with ' + this.numComps +
  30347. ' color components not supported.');
  30348. }
  30349. }
  30350. this.colorSpace = ColorSpace.parse(colorSpace, xref, res);
  30351. this.numComps = this.colorSpace.numComps;
  30352. }
  30353. this.decode = dict.get('Decode', 'D');
  30354. this.needsDecode = false;
  30355. if (this.decode &&
  30356. ((this.colorSpace && !this.colorSpace.isDefaultDecode(this.decode)) ||
  30357. (isMask && !ColorSpace.isDefaultDecode(this.decode, 1)))) {
  30358. this.needsDecode = true;
  30359. // Do some preprocessing to avoid more math.
  30360. var max = (1 << bitsPerComponent) - 1;
  30361. this.decodeCoefficients = [];
  30362. this.decodeAddends = [];
  30363. for (var i = 0, j = 0; i < this.decode.length; i += 2, ++j) {
  30364. var dmin = this.decode[i];
  30365. var dmax = this.decode[i + 1];
  30366. this.decodeCoefficients[j] = dmax - dmin;
  30367. this.decodeAddends[j] = max * dmin;
  30368. }
  30369. }
  30370. if (smask) {
  30371. this.smask = new PDFImage(xref, res, smask, false);
  30372. } else if (mask) {
  30373. if (isStream(mask)) {
  30374. this.mask = new PDFImage(xref, res, mask, false, null, null, true);
  30375. } else {
  30376. // Color key mask (just an array).
  30377. this.mask = mask;
  30378. }
  30379. }
  30380. }
  30381. /**
  30382. * Handles processing of image data and returns the Promise that is resolved
  30383. * with a PDFImage when the image is ready to be used.
  30384. */
  30385. PDFImage.buildImage = function PDFImage_buildImage(handler, xref,
  30386. res, image, inline) {
  30387. var imagePromise = handleImageData(handler, xref, res, image);
  30388. var smaskPromise;
  30389. var maskPromise;
  30390. var smask = image.dict.get('SMask');
  30391. var mask = image.dict.get('Mask');
  30392. if (smask) {
  30393. smaskPromise = handleImageData(handler, xref, res, smask);
  30394. maskPromise = Promise.resolve(null);
  30395. } else {
  30396. smaskPromise = Promise.resolve(null);
  30397. if (mask) {
  30398. if (isStream(mask)) {
  30399. maskPromise = handleImageData(handler, xref, res, mask);
  30400. } else if (isArray(mask)) {
  30401. maskPromise = Promise.resolve(mask);
  30402. } else {
  30403. warn('Unsupported mask format.');
  30404. maskPromise = Promise.resolve(null);
  30405. }
  30406. } else {
  30407. maskPromise = Promise.resolve(null);
  30408. }
  30409. }
  30410. return Promise.all([imagePromise, smaskPromise, maskPromise]).then(
  30411. function(results) {
  30412. var imageData = results[0];
  30413. var smaskData = results[1];
  30414. var maskData = results[2];
  30415. return new PDFImage(xref, res, imageData, inline, smaskData, maskData);
  30416. });
  30417. };
  30418. /**
  30419. * Resize an image using the nearest neighbor algorithm. Currently only
  30420. * supports one and three component images.
  30421. * @param {TypedArray} pixels The original image with one component.
  30422. * @param {Number} bpc Number of bits per component.
  30423. * @param {Number} components Number of color components, 1 or 3 is supported.
  30424. * @param {Number} w1 Original width.
  30425. * @param {Number} h1 Original height.
  30426. * @param {Number} w2 New width.
  30427. * @param {Number} h2 New height.
  30428. * @param {TypedArray} dest (Optional) The destination buffer.
  30429. * @param {Number} alpha01 (Optional) Size reserved for the alpha channel.
  30430. * @return {TypedArray} Resized image data.
  30431. */
  30432. PDFImage.resize = function PDFImage_resize(pixels, bpc, components,
  30433. w1, h1, w2, h2, dest, alpha01) {
  30434. if (components !== 1 && components !== 3) {
  30435. error('Unsupported component count for resizing.');
  30436. }
  30437. var length = w2 * h2 * components;
  30438. var temp = dest ? dest : (bpc <= 8 ? new Uint8Array(length) :
  30439. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  30440. var xRatio = w1 / w2;
  30441. var yRatio = h1 / h2;
  30442. var i, j, py, newIndex = 0, oldIndex;
  30443. var xScaled = new Uint16Array(w2);
  30444. var w1Scanline = w1 * components;
  30445. if (alpha01 !== 1) {
  30446. alpha01 = 0;
  30447. }
  30448. for (j = 0; j < w2; j++) {
  30449. xScaled[j] = Math.floor(j * xRatio) * components;
  30450. }
  30451. if (components === 1) {
  30452. for (i = 0; i < h2; i++) {
  30453. py = Math.floor(i * yRatio) * w1Scanline;
  30454. for (j = 0; j < w2; j++) {
  30455. oldIndex = py + xScaled[j];
  30456. temp[newIndex++] = pixels[oldIndex];
  30457. }
  30458. }
  30459. } else if (components === 3) {
  30460. for (i = 0; i < h2; i++) {
  30461. py = Math.floor(i * yRatio) * w1Scanline;
  30462. for (j = 0; j < w2; j++) {
  30463. oldIndex = py + xScaled[j];
  30464. temp[newIndex++] = pixels[oldIndex++];
  30465. temp[newIndex++] = pixels[oldIndex++];
  30466. temp[newIndex++] = pixels[oldIndex++];
  30467. newIndex += alpha01;
  30468. }
  30469. }
  30470. }
  30471. return temp;
  30472. };
  30473. PDFImage.createMask =
  30474. function PDFImage_createMask(imgArray, width, height,
  30475. imageIsFromDecodeStream, inverseDecode) {
  30476. // |imgArray| might not contain full data for every pixel of the mask, so
  30477. // we need to distinguish between |computedLength| and |actualLength|.
  30478. // In particular, if inverseDecode is true, then the array we return must
  30479. // have a length of |computedLength|.
  30480. var computedLength = ((width + 7) >> 3) * height;
  30481. var actualLength = imgArray.byteLength;
  30482. var haveFullData = computedLength == actualLength;
  30483. var data, i;
  30484. if (imageIsFromDecodeStream && (!inverseDecode || haveFullData)) {
  30485. // imgArray came from a DecodeStream and its data is in an appropriate
  30486. // form, so we can just transfer it.
  30487. data = imgArray;
  30488. } else if (!inverseDecode) {
  30489. data = new Uint8Array(actualLength);
  30490. data.set(imgArray);
  30491. } else {
  30492. data = new Uint8Array(computedLength);
  30493. data.set(imgArray);
  30494. for (i = actualLength; i < computedLength; i++) {
  30495. data[i] = 0xff;
  30496. }
  30497. }
  30498. // If necessary, invert the original mask data (but not any extra we might
  30499. // have added above). It's safe to modify the array -- whether it's the
  30500. // original or a copy, we're about to transfer it anyway, so nothing else
  30501. // in this thread can be relying on its contents.
  30502. if (inverseDecode) {
  30503. for (i = 0; i < actualLength; i++) {
  30504. data[i] = ~data[i];
  30505. }
  30506. }
  30507. return {data: data, width: width, height: height};
  30508. };
  30509. PDFImage.prototype = {
  30510. get drawWidth() {
  30511. return Math.max(this.width,
  30512. this.smask && this.smask.width || 0,
  30513. this.mask && this.mask.width || 0);
  30514. },
  30515. get drawHeight() {
  30516. return Math.max(this.height,
  30517. this.smask && this.smask.height || 0,
  30518. this.mask && this.mask.height || 0);
  30519. },
  30520. decodeBuffer: function PDFImage_decodeBuffer(buffer) {
  30521. var bpc = this.bpc;
  30522. var numComps = this.numComps;
  30523. var decodeAddends = this.decodeAddends;
  30524. var decodeCoefficients = this.decodeCoefficients;
  30525. var max = (1 << bpc) - 1;
  30526. var i, ii;
  30527. if (bpc === 1) {
  30528. // If the buffer needed decode that means it just needs to be inverted.
  30529. for (i = 0, ii = buffer.length; i < ii; i++) {
  30530. buffer[i] = +!(buffer[i]);
  30531. }
  30532. return;
  30533. }
  30534. var index = 0;
  30535. for (i = 0, ii = this.width * this.height; i < ii; i++) {
  30536. for (var j = 0; j < numComps; j++) {
  30537. buffer[index] = decodeAndClamp(buffer[index], decodeAddends[j],
  30538. decodeCoefficients[j], max);
  30539. index++;
  30540. }
  30541. }
  30542. },
  30543. getComponents: function PDFImage_getComponents(buffer) {
  30544. var bpc = this.bpc;
  30545. // This image doesn't require any extra work.
  30546. if (bpc === 8) {
  30547. return buffer;
  30548. }
  30549. var width = this.width;
  30550. var height = this.height;
  30551. var numComps = this.numComps;
  30552. var length = width * height * numComps;
  30553. var bufferPos = 0;
  30554. var output = (bpc <= 8 ? new Uint8Array(length) :
  30555. (bpc <= 16 ? new Uint16Array(length) : new Uint32Array(length)));
  30556. var rowComps = width * numComps;
  30557. var max = (1 << bpc) - 1;
  30558. var i = 0, ii, buf;
  30559. if (bpc === 1) {
  30560. // Optimization for reading 1 bpc images.
  30561. var mask, loop1End, loop2End;
  30562. for (var j = 0; j < height; j++) {
  30563. loop1End = i + (rowComps & ~7);
  30564. loop2End = i + rowComps;
  30565. // unroll loop for all full bytes
  30566. while (i < loop1End) {
  30567. buf = buffer[bufferPos++];
  30568. output[i] = (buf >> 7) & 1;
  30569. output[i + 1] = (buf >> 6) & 1;
  30570. output[i + 2] = (buf >> 5) & 1;
  30571. output[i + 3] = (buf >> 4) & 1;
  30572. output[i + 4] = (buf >> 3) & 1;
  30573. output[i + 5] = (buf >> 2) & 1;
  30574. output[i + 6] = (buf >> 1) & 1;
  30575. output[i + 7] = buf & 1;
  30576. i += 8;
  30577. }
  30578. // handle remaing bits
  30579. if (i < loop2End) {
  30580. buf = buffer[bufferPos++];
  30581. mask = 128;
  30582. while (i < loop2End) {
  30583. output[i++] = +!!(buf & mask);
  30584. mask >>= 1;
  30585. }
  30586. }
  30587. }
  30588. } else {
  30589. // The general case that handles all other bpc values.
  30590. var bits = 0;
  30591. buf = 0;
  30592. for (i = 0, ii = length; i < ii; ++i) {
  30593. if (i % rowComps === 0) {
  30594. buf = 0;
  30595. bits = 0;
  30596. }
  30597. while (bits < bpc) {
  30598. buf = (buf << 8) | buffer[bufferPos++];
  30599. bits += 8;
  30600. }
  30601. var remainingBits = bits - bpc;
  30602. var value = buf >> remainingBits;
  30603. output[i] = (value < 0 ? 0 : (value > max ? max : value));
  30604. buf = buf & ((1 << remainingBits) - 1);
  30605. bits = remainingBits;
  30606. }
  30607. }
  30608. return output;
  30609. },
  30610. fillOpacity: function PDFImage_fillOpacity(rgbaBuf, width, height,
  30611. actualHeight, image) {
  30612. var smask = this.smask;
  30613. var mask = this.mask;
  30614. var alphaBuf, sw, sh, i, ii, j;
  30615. if (smask) {
  30616. sw = smask.width;
  30617. sh = smask.height;
  30618. alphaBuf = new Uint8Array(sw * sh);
  30619. smask.fillGrayBuffer(alphaBuf);
  30620. if (sw != width || sh != height) {
  30621. alphaBuf = PDFImage.resize(alphaBuf, smask.bpc, 1, sw, sh, width,
  30622. height);
  30623. }
  30624. } else if (mask) {
  30625. if (mask instanceof PDFImage) {
  30626. sw = mask.width;
  30627. sh = mask.height;
  30628. alphaBuf = new Uint8Array(sw * sh);
  30629. mask.numComps = 1;
  30630. mask.fillGrayBuffer(alphaBuf);
  30631. // Need to invert values in rgbaBuf
  30632. for (i = 0, ii = sw * sh; i < ii; ++i) {
  30633. alphaBuf[i] = 255 - alphaBuf[i];
  30634. }
  30635. if (sw != width || sh != height) {
  30636. alphaBuf = PDFImage.resize(alphaBuf, mask.bpc, 1, sw, sh, width,
  30637. height);
  30638. }
  30639. } else if (isArray(mask)) {
  30640. // Color key mask: if any of the compontents are outside the range
  30641. // then they should be painted.
  30642. alphaBuf = new Uint8Array(width * height);
  30643. var numComps = this.numComps;
  30644. for (i = 0, ii = width * height; i < ii; ++i) {
  30645. var opacity = 0;
  30646. var imageOffset = i * numComps;
  30647. for (j = 0; j < numComps; ++j) {
  30648. var color = image[imageOffset + j];
  30649. var maskOffset = j * 2;
  30650. if (color < mask[maskOffset] || color > mask[maskOffset + 1]) {
  30651. opacity = 255;
  30652. break;
  30653. }
  30654. }
  30655. alphaBuf[i] = opacity;
  30656. }
  30657. } else {
  30658. error('Unknown mask format.');
  30659. }
  30660. }
  30661. if (alphaBuf) {
  30662. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  30663. rgbaBuf[j] = alphaBuf[i];
  30664. }
  30665. } else {
  30666. // No mask.
  30667. for (i = 0, j = 3, ii = width * actualHeight; i < ii; ++i, j += 4) {
  30668. rgbaBuf[j] = 255;
  30669. }
  30670. }
  30671. },
  30672. undoPreblend: function PDFImage_undoPreblend(buffer, width, height) {
  30673. var matte = this.smask && this.smask.matte;
  30674. if (!matte) {
  30675. return;
  30676. }
  30677. var matteRgb = this.colorSpace.getRgb(matte, 0);
  30678. var matteR = matteRgb[0];
  30679. var matteG = matteRgb[1];
  30680. var matteB = matteRgb[2];
  30681. var length = width * height * 4;
  30682. var r, g, b;
  30683. for (var i = 0; i < length; i += 4) {
  30684. var alpha = buffer[i + 3];
  30685. if (alpha === 0) {
  30686. // according formula we have to get Infinity in all components
  30687. // making it white (typical paper color) should be okay
  30688. buffer[i] = 255;
  30689. buffer[i + 1] = 255;
  30690. buffer[i + 2] = 255;
  30691. continue;
  30692. }
  30693. var k = 255 / alpha;
  30694. r = (buffer[i] - matteR) * k + matteR;
  30695. g = (buffer[i + 1] - matteG) * k + matteG;
  30696. b = (buffer[i + 2] - matteB) * k + matteB;
  30697. buffer[i] = r <= 0 ? 0 : r >= 255 ? 255 : r | 0;
  30698. buffer[i + 1] = g <= 0 ? 0 : g >= 255 ? 255 : g | 0;
  30699. buffer[i + 2] = b <= 0 ? 0 : b >= 255 ? 255 : b | 0;
  30700. }
  30701. },
  30702. createImageData: function PDFImage_createImageData(forceRGBA) {
  30703. var drawWidth = this.drawWidth;
  30704. var drawHeight = this.drawHeight;
  30705. var imgData = { // other fields are filled in below
  30706. width: drawWidth,
  30707. height: drawHeight
  30708. };
  30709. var numComps = this.numComps;
  30710. var originalWidth = this.width;
  30711. var originalHeight = this.height;
  30712. var bpc = this.bpc;
  30713. // Rows start at byte boundary.
  30714. var rowBytes = (originalWidth * numComps * bpc + 7) >> 3;
  30715. var imgArray;
  30716. if (!forceRGBA) {
  30717. // If it is a 1-bit-per-pixel grayscale (i.e. black-and-white) image
  30718. // without any complications, we pass a same-sized copy to the main
  30719. // thread rather than expanding by 32x to RGBA form. This saves *lots*
  30720. // of memory for many scanned documents. It's also much faster.
  30721. //
  30722. // Similarly, if it is a 24-bit-per pixel RGB image without any
  30723. // complications, we avoid expanding by 1.333x to RGBA form.
  30724. var kind;
  30725. if (this.colorSpace.name === 'DeviceGray' && bpc === 1) {
  30726. kind = ImageKind.GRAYSCALE_1BPP;
  30727. } else if (this.colorSpace.name === 'DeviceRGB' && bpc === 8) {
  30728. kind = ImageKind.RGB_24BPP;
  30729. }
  30730. if (kind && !this.smask && !this.mask && !this.needsDecode &&
  30731. drawWidth === originalWidth && drawHeight === originalHeight) {
  30732. imgData.kind = kind;
  30733. imgArray = this.getImageBytes(originalHeight * rowBytes);
  30734. // If imgArray came from a DecodeStream, we're safe to transfer it
  30735. // (and thus neuter it) because it will constitute the entire
  30736. // DecodeStream's data. But if it came from a Stream, we need to
  30737. // copy it because it'll only be a portion of the Stream's data, and
  30738. // the rest will be read later on.
  30739. if (this.image instanceof DecodeStream) {
  30740. imgData.data = imgArray;
  30741. } else {
  30742. var newArray = new Uint8Array(imgArray.length);
  30743. newArray.set(imgArray);
  30744. imgData.data = newArray;
  30745. }
  30746. return imgData;
  30747. }
  30748. if (this.image instanceof JpegStream && !this.smask && !this.mask) {
  30749. imgData.kind = ImageKind.RGB_24BPP;
  30750. imgData.data = this.getImageBytes(originalHeight * rowBytes,
  30751. drawWidth, drawHeight, true);
  30752. return imgData;
  30753. }
  30754. }
  30755. imgArray = this.getImageBytes(originalHeight * rowBytes);
  30756. // imgArray can be incomplete (e.g. after CCITT fax encoding).
  30757. var actualHeight = 0 | (imgArray.length / rowBytes *
  30758. drawHeight / originalHeight);
  30759. var comps = this.getComponents(imgArray);
  30760. // If opacity data is present, use RGBA_32BPP form. Otherwise, use the
  30761. // more compact RGB_24BPP form if allowable.
  30762. var alpha01, maybeUndoPreblend;
  30763. if (!forceRGBA && !this.smask && !this.mask) {
  30764. imgData.kind = ImageKind.RGB_24BPP;
  30765. imgData.data = new Uint8Array(drawWidth * drawHeight * 3);
  30766. alpha01 = 0;
  30767. maybeUndoPreblend = false;
  30768. } else {
  30769. imgData.kind = ImageKind.RGBA_32BPP;
  30770. imgData.data = new Uint8Array(drawWidth * drawHeight * 4);
  30771. alpha01 = 1;
  30772. maybeUndoPreblend = true;
  30773. // Color key masking (opacity) must be performed before decoding.
  30774. this.fillOpacity(imgData.data, drawWidth, drawHeight, actualHeight,
  30775. comps);
  30776. }
  30777. if (this.needsDecode) {
  30778. this.decodeBuffer(comps);
  30779. }
  30780. this.colorSpace.fillRgb(imgData.data, originalWidth, originalHeight,
  30781. drawWidth, drawHeight, actualHeight, bpc, comps,
  30782. alpha01);
  30783. if (maybeUndoPreblend) {
  30784. this.undoPreblend(imgData.data, drawWidth, actualHeight);
  30785. }
  30786. return imgData;
  30787. },
  30788. fillGrayBuffer: function PDFImage_fillGrayBuffer(buffer) {
  30789. var numComps = this.numComps;
  30790. if (numComps != 1) {
  30791. error('Reading gray scale from a color image: ' + numComps);
  30792. }
  30793. var width = this.width;
  30794. var height = this.height;
  30795. var bpc = this.bpc;
  30796. // rows start at byte boundary
  30797. var rowBytes = (width * numComps * bpc + 7) >> 3;
  30798. var imgArray = this.getImageBytes(height * rowBytes);
  30799. var comps = this.getComponents(imgArray);
  30800. var i, length;
  30801. if (bpc === 1) {
  30802. // inline decoding (= inversion) for 1 bpc images
  30803. length = width * height;
  30804. if (this.needsDecode) {
  30805. // invert and scale to {0, 255}
  30806. for (i = 0; i < length; ++i) {
  30807. buffer[i] = (comps[i] - 1) & 255;
  30808. }
  30809. } else {
  30810. // scale to {0, 255}
  30811. for (i = 0; i < length; ++i) {
  30812. buffer[i] = (-comps[i]) & 255;
  30813. }
  30814. }
  30815. return;
  30816. }
  30817. if (this.needsDecode) {
  30818. this.decodeBuffer(comps);
  30819. }
  30820. length = width * height;
  30821. // we aren't using a colorspace so we need to scale the value
  30822. var scale = 255 / ((1 << bpc) - 1);
  30823. for (i = 0; i < length; ++i) {
  30824. buffer[i] = (scale * comps[i]) | 0;
  30825. }
  30826. },
  30827. getImageBytes: function PDFImage_getImageBytes(length,
  30828. drawWidth, drawHeight,
  30829. forceRGB) {
  30830. this.image.reset();
  30831. this.image.drawWidth = drawWidth || this.width;
  30832. this.image.drawHeight = drawHeight || this.height;
  30833. this.image.forceRGB = !!forceRGB;
  30834. return this.image.getBytes(length);
  30835. }
  30836. };
  30837. return PDFImage;
  30838. })();
  30839. // The Metrics object contains glyph widths (in glyph space units).
  30840. // As per PDF spec, for most fonts (Type 3 being an exception) a glyph
  30841. // space unit corresponds to 1/1000th of text space unit.
  30842. var Metrics = {
  30843. 'Courier': 600,
  30844. 'Courier-Bold': 600,
  30845. 'Courier-BoldOblique': 600,
  30846. 'Courier-Oblique': 600,
  30847. 'Helvetica' : {
  30848. 'space': 278,
  30849. 'exclam': 278,
  30850. 'quotedbl': 355,
  30851. 'numbersign': 556,
  30852. 'dollar': 556,
  30853. 'percent': 889,
  30854. 'ampersand': 667,
  30855. 'quoteright': 222,
  30856. 'parenleft': 333,
  30857. 'parenright': 333,
  30858. 'asterisk': 389,
  30859. 'plus': 584,
  30860. 'comma': 278,
  30861. 'hyphen': 333,
  30862. 'period': 278,
  30863. 'slash': 278,
  30864. 'zero': 556,
  30865. 'one': 556,
  30866. 'two': 556,
  30867. 'three': 556,
  30868. 'four': 556,
  30869. 'five': 556,
  30870. 'six': 556,
  30871. 'seven': 556,
  30872. 'eight': 556,
  30873. 'nine': 556,
  30874. 'colon': 278,
  30875. 'semicolon': 278,
  30876. 'less': 584,
  30877. 'equal': 584,
  30878. 'greater': 584,
  30879. 'question': 556,
  30880. 'at': 1015,
  30881. 'A': 667,
  30882. 'B': 667,
  30883. 'C': 722,
  30884. 'D': 722,
  30885. 'E': 667,
  30886. 'F': 611,
  30887. 'G': 778,
  30888. 'H': 722,
  30889. 'I': 278,
  30890. 'J': 500,
  30891. 'K': 667,
  30892. 'L': 556,
  30893. 'M': 833,
  30894. 'N': 722,
  30895. 'O': 778,
  30896. 'P': 667,
  30897. 'Q': 778,
  30898. 'R': 722,
  30899. 'S': 667,
  30900. 'T': 611,
  30901. 'U': 722,
  30902. 'V': 667,
  30903. 'W': 944,
  30904. 'X': 667,
  30905. 'Y': 667,
  30906. 'Z': 611,
  30907. 'bracketleft': 278,
  30908. 'backslash': 278,
  30909. 'bracketright': 278,
  30910. 'asciicircum': 469,
  30911. 'underscore': 556,
  30912. 'quoteleft': 222,
  30913. 'a': 556,
  30914. 'b': 556,
  30915. 'c': 500,
  30916. 'd': 556,
  30917. 'e': 556,
  30918. 'f': 278,
  30919. 'g': 556,
  30920. 'h': 556,
  30921. 'i': 222,
  30922. 'j': 222,
  30923. 'k': 500,
  30924. 'l': 222,
  30925. 'm': 833,
  30926. 'n': 556,
  30927. 'o': 556,
  30928. 'p': 556,
  30929. 'q': 556,
  30930. 'r': 333,
  30931. 's': 500,
  30932. 't': 278,
  30933. 'u': 556,
  30934. 'v': 500,
  30935. 'w': 722,
  30936. 'x': 500,
  30937. 'y': 500,
  30938. 'z': 500,
  30939. 'braceleft': 334,
  30940. 'bar': 260,
  30941. 'braceright': 334,
  30942. 'asciitilde': 584,
  30943. 'exclamdown': 333,
  30944. 'cent': 556,
  30945. 'sterling': 556,
  30946. 'fraction': 167,
  30947. 'yen': 556,
  30948. 'florin': 556,
  30949. 'section': 556,
  30950. 'currency': 556,
  30951. 'quotesingle': 191,
  30952. 'quotedblleft': 333,
  30953. 'guillemotleft': 556,
  30954. 'guilsinglleft': 333,
  30955. 'guilsinglright': 333,
  30956. 'fi': 500,
  30957. 'fl': 500,
  30958. 'endash': 556,
  30959. 'dagger': 556,
  30960. 'daggerdbl': 556,
  30961. 'periodcentered': 278,
  30962. 'paragraph': 537,
  30963. 'bullet': 350,
  30964. 'quotesinglbase': 222,
  30965. 'quotedblbase': 333,
  30966. 'quotedblright': 333,
  30967. 'guillemotright': 556,
  30968. 'ellipsis': 1000,
  30969. 'perthousand': 1000,
  30970. 'questiondown': 611,
  30971. 'grave': 333,
  30972. 'acute': 333,
  30973. 'circumflex': 333,
  30974. 'tilde': 333,
  30975. 'macron': 333,
  30976. 'breve': 333,
  30977. 'dotaccent': 333,
  30978. 'dieresis': 333,
  30979. 'ring': 333,
  30980. 'cedilla': 333,
  30981. 'hungarumlaut': 333,
  30982. 'ogonek': 333,
  30983. 'caron': 333,
  30984. 'emdash': 1000,
  30985. 'AE': 1000,
  30986. 'ordfeminine': 370,
  30987. 'Lslash': 556,
  30988. 'Oslash': 778,
  30989. 'OE': 1000,
  30990. 'ordmasculine': 365,
  30991. 'ae': 889,
  30992. 'dotlessi': 278,
  30993. 'lslash': 222,
  30994. 'oslash': 611,
  30995. 'oe': 944,
  30996. 'germandbls': 611,
  30997. 'Idieresis': 278,
  30998. 'eacute': 556,
  30999. 'abreve': 556,
  31000. 'uhungarumlaut': 556,
  31001. 'ecaron': 556,
  31002. 'Ydieresis': 667,
  31003. 'divide': 584,
  31004. 'Yacute': 667,
  31005. 'Acircumflex': 667,
  31006. 'aacute': 556,
  31007. 'Ucircumflex': 722,
  31008. 'yacute': 500,
  31009. 'scommaaccent': 500,
  31010. 'ecircumflex': 556,
  31011. 'Uring': 722,
  31012. 'Udieresis': 722,
  31013. 'aogonek': 556,
  31014. 'Uacute': 722,
  31015. 'uogonek': 556,
  31016. 'Edieresis': 667,
  31017. 'Dcroat': 722,
  31018. 'commaaccent': 250,
  31019. 'copyright': 737,
  31020. 'Emacron': 667,
  31021. 'ccaron': 500,
  31022. 'aring': 556,
  31023. 'Ncommaaccent': 722,
  31024. 'lacute': 222,
  31025. 'agrave': 556,
  31026. 'Tcommaaccent': 611,
  31027. 'Cacute': 722,
  31028. 'atilde': 556,
  31029. 'Edotaccent': 667,
  31030. 'scaron': 500,
  31031. 'scedilla': 500,
  31032. 'iacute': 278,
  31033. 'lozenge': 471,
  31034. 'Rcaron': 722,
  31035. 'Gcommaaccent': 778,
  31036. 'ucircumflex': 556,
  31037. 'acircumflex': 556,
  31038. 'Amacron': 667,
  31039. 'rcaron': 333,
  31040. 'ccedilla': 500,
  31041. 'Zdotaccent': 611,
  31042. 'Thorn': 667,
  31043. 'Omacron': 778,
  31044. 'Racute': 722,
  31045. 'Sacute': 667,
  31046. 'dcaron': 643,
  31047. 'Umacron': 722,
  31048. 'uring': 556,
  31049. 'threesuperior': 333,
  31050. 'Ograve': 778,
  31051. 'Agrave': 667,
  31052. 'Abreve': 667,
  31053. 'multiply': 584,
  31054. 'uacute': 556,
  31055. 'Tcaron': 611,
  31056. 'partialdiff': 476,
  31057. 'ydieresis': 500,
  31058. 'Nacute': 722,
  31059. 'icircumflex': 278,
  31060. 'Ecircumflex': 667,
  31061. 'adieresis': 556,
  31062. 'edieresis': 556,
  31063. 'cacute': 500,
  31064. 'nacute': 556,
  31065. 'umacron': 556,
  31066. 'Ncaron': 722,
  31067. 'Iacute': 278,
  31068. 'plusminus': 584,
  31069. 'brokenbar': 260,
  31070. 'registered': 737,
  31071. 'Gbreve': 778,
  31072. 'Idotaccent': 278,
  31073. 'summation': 600,
  31074. 'Egrave': 667,
  31075. 'racute': 333,
  31076. 'omacron': 556,
  31077. 'Zacute': 611,
  31078. 'Zcaron': 611,
  31079. 'greaterequal': 549,
  31080. 'Eth': 722,
  31081. 'Ccedilla': 722,
  31082. 'lcommaaccent': 222,
  31083. 'tcaron': 317,
  31084. 'eogonek': 556,
  31085. 'Uogonek': 722,
  31086. 'Aacute': 667,
  31087. 'Adieresis': 667,
  31088. 'egrave': 556,
  31089. 'zacute': 500,
  31090. 'iogonek': 222,
  31091. 'Oacute': 778,
  31092. 'oacute': 556,
  31093. 'amacron': 556,
  31094. 'sacute': 500,
  31095. 'idieresis': 278,
  31096. 'Ocircumflex': 778,
  31097. 'Ugrave': 722,
  31098. 'Delta': 612,
  31099. 'thorn': 556,
  31100. 'twosuperior': 333,
  31101. 'Odieresis': 778,
  31102. 'mu': 556,
  31103. 'igrave': 278,
  31104. 'ohungarumlaut': 556,
  31105. 'Eogonek': 667,
  31106. 'dcroat': 556,
  31107. 'threequarters': 834,
  31108. 'Scedilla': 667,
  31109. 'lcaron': 299,
  31110. 'Kcommaaccent': 667,
  31111. 'Lacute': 556,
  31112. 'trademark': 1000,
  31113. 'edotaccent': 556,
  31114. 'Igrave': 278,
  31115. 'Imacron': 278,
  31116. 'Lcaron': 556,
  31117. 'onehalf': 834,
  31118. 'lessequal': 549,
  31119. 'ocircumflex': 556,
  31120. 'ntilde': 556,
  31121. 'Uhungarumlaut': 722,
  31122. 'Eacute': 667,
  31123. 'emacron': 556,
  31124. 'gbreve': 556,
  31125. 'onequarter': 834,
  31126. 'Scaron': 667,
  31127. 'Scommaaccent': 667,
  31128. 'Ohungarumlaut': 778,
  31129. 'degree': 400,
  31130. 'ograve': 556,
  31131. 'Ccaron': 722,
  31132. 'ugrave': 556,
  31133. 'radical': 453,
  31134. 'Dcaron': 722,
  31135. 'rcommaaccent': 333,
  31136. 'Ntilde': 722,
  31137. 'otilde': 556,
  31138. 'Rcommaaccent': 722,
  31139. 'Lcommaaccent': 556,
  31140. 'Atilde': 667,
  31141. 'Aogonek': 667,
  31142. 'Aring': 667,
  31143. 'Otilde': 778,
  31144. 'zdotaccent': 500,
  31145. 'Ecaron': 667,
  31146. 'Iogonek': 278,
  31147. 'kcommaaccent': 500,
  31148. 'minus': 584,
  31149. 'Icircumflex': 278,
  31150. 'ncaron': 556,
  31151. 'tcommaaccent': 278,
  31152. 'logicalnot': 584,
  31153. 'odieresis': 556,
  31154. 'udieresis': 556,
  31155. 'notequal': 549,
  31156. 'gcommaaccent': 556,
  31157. 'eth': 556,
  31158. 'zcaron': 500,
  31159. 'ncommaaccent': 556,
  31160. 'onesuperior': 333,
  31161. 'imacron': 278,
  31162. 'Euro': 556
  31163. },
  31164. 'Helvetica-Bold': {
  31165. 'space': 278,
  31166. 'exclam': 333,
  31167. 'quotedbl': 474,
  31168. 'numbersign': 556,
  31169. 'dollar': 556,
  31170. 'percent': 889,
  31171. 'ampersand': 722,
  31172. 'quoteright': 278,
  31173. 'parenleft': 333,
  31174. 'parenright': 333,
  31175. 'asterisk': 389,
  31176. 'plus': 584,
  31177. 'comma': 278,
  31178. 'hyphen': 333,
  31179. 'period': 278,
  31180. 'slash': 278,
  31181. 'zero': 556,
  31182. 'one': 556,
  31183. 'two': 556,
  31184. 'three': 556,
  31185. 'four': 556,
  31186. 'five': 556,
  31187. 'six': 556,
  31188. 'seven': 556,
  31189. 'eight': 556,
  31190. 'nine': 556,
  31191. 'colon': 333,
  31192. 'semicolon': 333,
  31193. 'less': 584,
  31194. 'equal': 584,
  31195. 'greater': 584,
  31196. 'question': 611,
  31197. 'at': 975,
  31198. 'A': 722,
  31199. 'B': 722,
  31200. 'C': 722,
  31201. 'D': 722,
  31202. 'E': 667,
  31203. 'F': 611,
  31204. 'G': 778,
  31205. 'H': 722,
  31206. 'I': 278,
  31207. 'J': 556,
  31208. 'K': 722,
  31209. 'L': 611,
  31210. 'M': 833,
  31211. 'N': 722,
  31212. 'O': 778,
  31213. 'P': 667,
  31214. 'Q': 778,
  31215. 'R': 722,
  31216. 'S': 667,
  31217. 'T': 611,
  31218. 'U': 722,
  31219. 'V': 667,
  31220. 'W': 944,
  31221. 'X': 667,
  31222. 'Y': 667,
  31223. 'Z': 611,
  31224. 'bracketleft': 333,
  31225. 'backslash': 278,
  31226. 'bracketright': 333,
  31227. 'asciicircum': 584,
  31228. 'underscore': 556,
  31229. 'quoteleft': 278,
  31230. 'a': 556,
  31231. 'b': 611,
  31232. 'c': 556,
  31233. 'd': 611,
  31234. 'e': 556,
  31235. 'f': 333,
  31236. 'g': 611,
  31237. 'h': 611,
  31238. 'i': 278,
  31239. 'j': 278,
  31240. 'k': 556,
  31241. 'l': 278,
  31242. 'm': 889,
  31243. 'n': 611,
  31244. 'o': 611,
  31245. 'p': 611,
  31246. 'q': 611,
  31247. 'r': 389,
  31248. 's': 556,
  31249. 't': 333,
  31250. 'u': 611,
  31251. 'v': 556,
  31252. 'w': 778,
  31253. 'x': 556,
  31254. 'y': 556,
  31255. 'z': 500,
  31256. 'braceleft': 389,
  31257. 'bar': 280,
  31258. 'braceright': 389,
  31259. 'asciitilde': 584,
  31260. 'exclamdown': 333,
  31261. 'cent': 556,
  31262. 'sterling': 556,
  31263. 'fraction': 167,
  31264. 'yen': 556,
  31265. 'florin': 556,
  31266. 'section': 556,
  31267. 'currency': 556,
  31268. 'quotesingle': 238,
  31269. 'quotedblleft': 500,
  31270. 'guillemotleft': 556,
  31271. 'guilsinglleft': 333,
  31272. 'guilsinglright': 333,
  31273. 'fi': 611,
  31274. 'fl': 611,
  31275. 'endash': 556,
  31276. 'dagger': 556,
  31277. 'daggerdbl': 556,
  31278. 'periodcentered': 278,
  31279. 'paragraph': 556,
  31280. 'bullet': 350,
  31281. 'quotesinglbase': 278,
  31282. 'quotedblbase': 500,
  31283. 'quotedblright': 500,
  31284. 'guillemotright': 556,
  31285. 'ellipsis': 1000,
  31286. 'perthousand': 1000,
  31287. 'questiondown': 611,
  31288. 'grave': 333,
  31289. 'acute': 333,
  31290. 'circumflex': 333,
  31291. 'tilde': 333,
  31292. 'macron': 333,
  31293. 'breve': 333,
  31294. 'dotaccent': 333,
  31295. 'dieresis': 333,
  31296. 'ring': 333,
  31297. 'cedilla': 333,
  31298. 'hungarumlaut': 333,
  31299. 'ogonek': 333,
  31300. 'caron': 333,
  31301. 'emdash': 1000,
  31302. 'AE': 1000,
  31303. 'ordfeminine': 370,
  31304. 'Lslash': 611,
  31305. 'Oslash': 778,
  31306. 'OE': 1000,
  31307. 'ordmasculine': 365,
  31308. 'ae': 889,
  31309. 'dotlessi': 278,
  31310. 'lslash': 278,
  31311. 'oslash': 611,
  31312. 'oe': 944,
  31313. 'germandbls': 611,
  31314. 'Idieresis': 278,
  31315. 'eacute': 556,
  31316. 'abreve': 556,
  31317. 'uhungarumlaut': 611,
  31318. 'ecaron': 556,
  31319. 'Ydieresis': 667,
  31320. 'divide': 584,
  31321. 'Yacute': 667,
  31322. 'Acircumflex': 722,
  31323. 'aacute': 556,
  31324. 'Ucircumflex': 722,
  31325. 'yacute': 556,
  31326. 'scommaaccent': 556,
  31327. 'ecircumflex': 556,
  31328. 'Uring': 722,
  31329. 'Udieresis': 722,
  31330. 'aogonek': 556,
  31331. 'Uacute': 722,
  31332. 'uogonek': 611,
  31333. 'Edieresis': 667,
  31334. 'Dcroat': 722,
  31335. 'commaaccent': 250,
  31336. 'copyright': 737,
  31337. 'Emacron': 667,
  31338. 'ccaron': 556,
  31339. 'aring': 556,
  31340. 'Ncommaaccent': 722,
  31341. 'lacute': 278,
  31342. 'agrave': 556,
  31343. 'Tcommaaccent': 611,
  31344. 'Cacute': 722,
  31345. 'atilde': 556,
  31346. 'Edotaccent': 667,
  31347. 'scaron': 556,
  31348. 'scedilla': 556,
  31349. 'iacute': 278,
  31350. 'lozenge': 494,
  31351. 'Rcaron': 722,
  31352. 'Gcommaaccent': 778,
  31353. 'ucircumflex': 611,
  31354. 'acircumflex': 556,
  31355. 'Amacron': 722,
  31356. 'rcaron': 389,
  31357. 'ccedilla': 556,
  31358. 'Zdotaccent': 611,
  31359. 'Thorn': 667,
  31360. 'Omacron': 778,
  31361. 'Racute': 722,
  31362. 'Sacute': 667,
  31363. 'dcaron': 743,
  31364. 'Umacron': 722,
  31365. 'uring': 611,
  31366. 'threesuperior': 333,
  31367. 'Ograve': 778,
  31368. 'Agrave': 722,
  31369. 'Abreve': 722,
  31370. 'multiply': 584,
  31371. 'uacute': 611,
  31372. 'Tcaron': 611,
  31373. 'partialdiff': 494,
  31374. 'ydieresis': 556,
  31375. 'Nacute': 722,
  31376. 'icircumflex': 278,
  31377. 'Ecircumflex': 667,
  31378. 'adieresis': 556,
  31379. 'edieresis': 556,
  31380. 'cacute': 556,
  31381. 'nacute': 611,
  31382. 'umacron': 611,
  31383. 'Ncaron': 722,
  31384. 'Iacute': 278,
  31385. 'plusminus': 584,
  31386. 'brokenbar': 280,
  31387. 'registered': 737,
  31388. 'Gbreve': 778,
  31389. 'Idotaccent': 278,
  31390. 'summation': 600,
  31391. 'Egrave': 667,
  31392. 'racute': 389,
  31393. 'omacron': 611,
  31394. 'Zacute': 611,
  31395. 'Zcaron': 611,
  31396. 'greaterequal': 549,
  31397. 'Eth': 722,
  31398. 'Ccedilla': 722,
  31399. 'lcommaaccent': 278,
  31400. 'tcaron': 389,
  31401. 'eogonek': 556,
  31402. 'Uogonek': 722,
  31403. 'Aacute': 722,
  31404. 'Adieresis': 722,
  31405. 'egrave': 556,
  31406. 'zacute': 500,
  31407. 'iogonek': 278,
  31408. 'Oacute': 778,
  31409. 'oacute': 611,
  31410. 'amacron': 556,
  31411. 'sacute': 556,
  31412. 'idieresis': 278,
  31413. 'Ocircumflex': 778,
  31414. 'Ugrave': 722,
  31415. 'Delta': 612,
  31416. 'thorn': 611,
  31417. 'twosuperior': 333,
  31418. 'Odieresis': 778,
  31419. 'mu': 611,
  31420. 'igrave': 278,
  31421. 'ohungarumlaut': 611,
  31422. 'Eogonek': 667,
  31423. 'dcroat': 611,
  31424. 'threequarters': 834,
  31425. 'Scedilla': 667,
  31426. 'lcaron': 400,
  31427. 'Kcommaaccent': 722,
  31428. 'Lacute': 611,
  31429. 'trademark': 1000,
  31430. 'edotaccent': 556,
  31431. 'Igrave': 278,
  31432. 'Imacron': 278,
  31433. 'Lcaron': 611,
  31434. 'onehalf': 834,
  31435. 'lessequal': 549,
  31436. 'ocircumflex': 611,
  31437. 'ntilde': 611,
  31438. 'Uhungarumlaut': 722,
  31439. 'Eacute': 667,
  31440. 'emacron': 556,
  31441. 'gbreve': 611,
  31442. 'onequarter': 834,
  31443. 'Scaron': 667,
  31444. 'Scommaaccent': 667,
  31445. 'Ohungarumlaut': 778,
  31446. 'degree': 400,
  31447. 'ograve': 611,
  31448. 'Ccaron': 722,
  31449. 'ugrave': 611,
  31450. 'radical': 549,
  31451. 'Dcaron': 722,
  31452. 'rcommaaccent': 389,
  31453. 'Ntilde': 722,
  31454. 'otilde': 611,
  31455. 'Rcommaaccent': 722,
  31456. 'Lcommaaccent': 611,
  31457. 'Atilde': 722,
  31458. 'Aogonek': 722,
  31459. 'Aring': 722,
  31460. 'Otilde': 778,
  31461. 'zdotaccent': 500,
  31462. 'Ecaron': 667,
  31463. 'Iogonek': 278,
  31464. 'kcommaaccent': 556,
  31465. 'minus': 584,
  31466. 'Icircumflex': 278,
  31467. 'ncaron': 611,
  31468. 'tcommaaccent': 333,
  31469. 'logicalnot': 584,
  31470. 'odieresis': 611,
  31471. 'udieresis': 611,
  31472. 'notequal': 549,
  31473. 'gcommaaccent': 611,
  31474. 'eth': 611,
  31475. 'zcaron': 500,
  31476. 'ncommaaccent': 611,
  31477. 'onesuperior': 333,
  31478. 'imacron': 278,
  31479. 'Euro': 556
  31480. },
  31481. 'Helvetica-BoldOblique': {
  31482. 'space': 278,
  31483. 'exclam': 333,
  31484. 'quotedbl': 474,
  31485. 'numbersign': 556,
  31486. 'dollar': 556,
  31487. 'percent': 889,
  31488. 'ampersand': 722,
  31489. 'quoteright': 278,
  31490. 'parenleft': 333,
  31491. 'parenright': 333,
  31492. 'asterisk': 389,
  31493. 'plus': 584,
  31494. 'comma': 278,
  31495. 'hyphen': 333,
  31496. 'period': 278,
  31497. 'slash': 278,
  31498. 'zero': 556,
  31499. 'one': 556,
  31500. 'two': 556,
  31501. 'three': 556,
  31502. 'four': 556,
  31503. 'five': 556,
  31504. 'six': 556,
  31505. 'seven': 556,
  31506. 'eight': 556,
  31507. 'nine': 556,
  31508. 'colon': 333,
  31509. 'semicolon': 333,
  31510. 'less': 584,
  31511. 'equal': 584,
  31512. 'greater': 584,
  31513. 'question': 611,
  31514. 'at': 975,
  31515. 'A': 722,
  31516. 'B': 722,
  31517. 'C': 722,
  31518. 'D': 722,
  31519. 'E': 667,
  31520. 'F': 611,
  31521. 'G': 778,
  31522. 'H': 722,
  31523. 'I': 278,
  31524. 'J': 556,
  31525. 'K': 722,
  31526. 'L': 611,
  31527. 'M': 833,
  31528. 'N': 722,
  31529. 'O': 778,
  31530. 'P': 667,
  31531. 'Q': 778,
  31532. 'R': 722,
  31533. 'S': 667,
  31534. 'T': 611,
  31535. 'U': 722,
  31536. 'V': 667,
  31537. 'W': 944,
  31538. 'X': 667,
  31539. 'Y': 667,
  31540. 'Z': 611,
  31541. 'bracketleft': 333,
  31542. 'backslash': 278,
  31543. 'bracketright': 333,
  31544. 'asciicircum': 584,
  31545. 'underscore': 556,
  31546. 'quoteleft': 278,
  31547. 'a': 556,
  31548. 'b': 611,
  31549. 'c': 556,
  31550. 'd': 611,
  31551. 'e': 556,
  31552. 'f': 333,
  31553. 'g': 611,
  31554. 'h': 611,
  31555. 'i': 278,
  31556. 'j': 278,
  31557. 'k': 556,
  31558. 'l': 278,
  31559. 'm': 889,
  31560. 'n': 611,
  31561. 'o': 611,
  31562. 'p': 611,
  31563. 'q': 611,
  31564. 'r': 389,
  31565. 's': 556,
  31566. 't': 333,
  31567. 'u': 611,
  31568. 'v': 556,
  31569. 'w': 778,
  31570. 'x': 556,
  31571. 'y': 556,
  31572. 'z': 500,
  31573. 'braceleft': 389,
  31574. 'bar': 280,
  31575. 'braceright': 389,
  31576. 'asciitilde': 584,
  31577. 'exclamdown': 333,
  31578. 'cent': 556,
  31579. 'sterling': 556,
  31580. 'fraction': 167,
  31581. 'yen': 556,
  31582. 'florin': 556,
  31583. 'section': 556,
  31584. 'currency': 556,
  31585. 'quotesingle': 238,
  31586. 'quotedblleft': 500,
  31587. 'guillemotleft': 556,
  31588. 'guilsinglleft': 333,
  31589. 'guilsinglright': 333,
  31590. 'fi': 611,
  31591. 'fl': 611,
  31592. 'endash': 556,
  31593. 'dagger': 556,
  31594. 'daggerdbl': 556,
  31595. 'periodcentered': 278,
  31596. 'paragraph': 556,
  31597. 'bullet': 350,
  31598. 'quotesinglbase': 278,
  31599. 'quotedblbase': 500,
  31600. 'quotedblright': 500,
  31601. 'guillemotright': 556,
  31602. 'ellipsis': 1000,
  31603. 'perthousand': 1000,
  31604. 'questiondown': 611,
  31605. 'grave': 333,
  31606. 'acute': 333,
  31607. 'circumflex': 333,
  31608. 'tilde': 333,
  31609. 'macron': 333,
  31610. 'breve': 333,
  31611. 'dotaccent': 333,
  31612. 'dieresis': 333,
  31613. 'ring': 333,
  31614. 'cedilla': 333,
  31615. 'hungarumlaut': 333,
  31616. 'ogonek': 333,
  31617. 'caron': 333,
  31618. 'emdash': 1000,
  31619. 'AE': 1000,
  31620. 'ordfeminine': 370,
  31621. 'Lslash': 611,
  31622. 'Oslash': 778,
  31623. 'OE': 1000,
  31624. 'ordmasculine': 365,
  31625. 'ae': 889,
  31626. 'dotlessi': 278,
  31627. 'lslash': 278,
  31628. 'oslash': 611,
  31629. 'oe': 944,
  31630. 'germandbls': 611,
  31631. 'Idieresis': 278,
  31632. 'eacute': 556,
  31633. 'abreve': 556,
  31634. 'uhungarumlaut': 611,
  31635. 'ecaron': 556,
  31636. 'Ydieresis': 667,
  31637. 'divide': 584,
  31638. 'Yacute': 667,
  31639. 'Acircumflex': 722,
  31640. 'aacute': 556,
  31641. 'Ucircumflex': 722,
  31642. 'yacute': 556,
  31643. 'scommaaccent': 556,
  31644. 'ecircumflex': 556,
  31645. 'Uring': 722,
  31646. 'Udieresis': 722,
  31647. 'aogonek': 556,
  31648. 'Uacute': 722,
  31649. 'uogonek': 611,
  31650. 'Edieresis': 667,
  31651. 'Dcroat': 722,
  31652. 'commaaccent': 250,
  31653. 'copyright': 737,
  31654. 'Emacron': 667,
  31655. 'ccaron': 556,
  31656. 'aring': 556,
  31657. 'Ncommaaccent': 722,
  31658. 'lacute': 278,
  31659. 'agrave': 556,
  31660. 'Tcommaaccent': 611,
  31661. 'Cacute': 722,
  31662. 'atilde': 556,
  31663. 'Edotaccent': 667,
  31664. 'scaron': 556,
  31665. 'scedilla': 556,
  31666. 'iacute': 278,
  31667. 'lozenge': 494,
  31668. 'Rcaron': 722,
  31669. 'Gcommaaccent': 778,
  31670. 'ucircumflex': 611,
  31671. 'acircumflex': 556,
  31672. 'Amacron': 722,
  31673. 'rcaron': 389,
  31674. 'ccedilla': 556,
  31675. 'Zdotaccent': 611,
  31676. 'Thorn': 667,
  31677. 'Omacron': 778,
  31678. 'Racute': 722,
  31679. 'Sacute': 667,
  31680. 'dcaron': 743,
  31681. 'Umacron': 722,
  31682. 'uring': 611,
  31683. 'threesuperior': 333,
  31684. 'Ograve': 778,
  31685. 'Agrave': 722,
  31686. 'Abreve': 722,
  31687. 'multiply': 584,
  31688. 'uacute': 611,
  31689. 'Tcaron': 611,
  31690. 'partialdiff': 494,
  31691. 'ydieresis': 556,
  31692. 'Nacute': 722,
  31693. 'icircumflex': 278,
  31694. 'Ecircumflex': 667,
  31695. 'adieresis': 556,
  31696. 'edieresis': 556,
  31697. 'cacute': 556,
  31698. 'nacute': 611,
  31699. 'umacron': 611,
  31700. 'Ncaron': 722,
  31701. 'Iacute': 278,
  31702. 'plusminus': 584,
  31703. 'brokenbar': 280,
  31704. 'registered': 737,
  31705. 'Gbreve': 778,
  31706. 'Idotaccent': 278,
  31707. 'summation': 600,
  31708. 'Egrave': 667,
  31709. 'racute': 389,
  31710. 'omacron': 611,
  31711. 'Zacute': 611,
  31712. 'Zcaron': 611,
  31713. 'greaterequal': 549,
  31714. 'Eth': 722,
  31715. 'Ccedilla': 722,
  31716. 'lcommaaccent': 278,
  31717. 'tcaron': 389,
  31718. 'eogonek': 556,
  31719. 'Uogonek': 722,
  31720. 'Aacute': 722,
  31721. 'Adieresis': 722,
  31722. 'egrave': 556,
  31723. 'zacute': 500,
  31724. 'iogonek': 278,
  31725. 'Oacute': 778,
  31726. 'oacute': 611,
  31727. 'amacron': 556,
  31728. 'sacute': 556,
  31729. 'idieresis': 278,
  31730. 'Ocircumflex': 778,
  31731. 'Ugrave': 722,
  31732. 'Delta': 612,
  31733. 'thorn': 611,
  31734. 'twosuperior': 333,
  31735. 'Odieresis': 778,
  31736. 'mu': 611,
  31737. 'igrave': 278,
  31738. 'ohungarumlaut': 611,
  31739. 'Eogonek': 667,
  31740. 'dcroat': 611,
  31741. 'threequarters': 834,
  31742. 'Scedilla': 667,
  31743. 'lcaron': 400,
  31744. 'Kcommaaccent': 722,
  31745. 'Lacute': 611,
  31746. 'trademark': 1000,
  31747. 'edotaccent': 556,
  31748. 'Igrave': 278,
  31749. 'Imacron': 278,
  31750. 'Lcaron': 611,
  31751. 'onehalf': 834,
  31752. 'lessequal': 549,
  31753. 'ocircumflex': 611,
  31754. 'ntilde': 611,
  31755. 'Uhungarumlaut': 722,
  31756. 'Eacute': 667,
  31757. 'emacron': 556,
  31758. 'gbreve': 611,
  31759. 'onequarter': 834,
  31760. 'Scaron': 667,
  31761. 'Scommaaccent': 667,
  31762. 'Ohungarumlaut': 778,
  31763. 'degree': 400,
  31764. 'ograve': 611,
  31765. 'Ccaron': 722,
  31766. 'ugrave': 611,
  31767. 'radical': 549,
  31768. 'Dcaron': 722,
  31769. 'rcommaaccent': 389,
  31770. 'Ntilde': 722,
  31771. 'otilde': 611,
  31772. 'Rcommaaccent': 722,
  31773. 'Lcommaaccent': 611,
  31774. 'Atilde': 722,
  31775. 'Aogonek': 722,
  31776. 'Aring': 722,
  31777. 'Otilde': 778,
  31778. 'zdotaccent': 500,
  31779. 'Ecaron': 667,
  31780. 'Iogonek': 278,
  31781. 'kcommaaccent': 556,
  31782. 'minus': 584,
  31783. 'Icircumflex': 278,
  31784. 'ncaron': 611,
  31785. 'tcommaaccent': 333,
  31786. 'logicalnot': 584,
  31787. 'odieresis': 611,
  31788. 'udieresis': 611,
  31789. 'notequal': 549,
  31790. 'gcommaaccent': 611,
  31791. 'eth': 611,
  31792. 'zcaron': 500,
  31793. 'ncommaaccent': 611,
  31794. 'onesuperior': 333,
  31795. 'imacron': 278,
  31796. 'Euro': 556
  31797. },
  31798. 'Helvetica-Oblique' : {
  31799. 'space': 278,
  31800. 'exclam': 278,
  31801. 'quotedbl': 355,
  31802. 'numbersign': 556,
  31803. 'dollar': 556,
  31804. 'percent': 889,
  31805. 'ampersand': 667,
  31806. 'quoteright': 222,
  31807. 'parenleft': 333,
  31808. 'parenright': 333,
  31809. 'asterisk': 389,
  31810. 'plus': 584,
  31811. 'comma': 278,
  31812. 'hyphen': 333,
  31813. 'period': 278,
  31814. 'slash': 278,
  31815. 'zero': 556,
  31816. 'one': 556,
  31817. 'two': 556,
  31818. 'three': 556,
  31819. 'four': 556,
  31820. 'five': 556,
  31821. 'six': 556,
  31822. 'seven': 556,
  31823. 'eight': 556,
  31824. 'nine': 556,
  31825. 'colon': 278,
  31826. 'semicolon': 278,
  31827. 'less': 584,
  31828. 'equal': 584,
  31829. 'greater': 584,
  31830. 'question': 556,
  31831. 'at': 1015,
  31832. 'A': 667,
  31833. 'B': 667,
  31834. 'C': 722,
  31835. 'D': 722,
  31836. 'E': 667,
  31837. 'F': 611,
  31838. 'G': 778,
  31839. 'H': 722,
  31840. 'I': 278,
  31841. 'J': 500,
  31842. 'K': 667,
  31843. 'L': 556,
  31844. 'M': 833,
  31845. 'N': 722,
  31846. 'O': 778,
  31847. 'P': 667,
  31848. 'Q': 778,
  31849. 'R': 722,
  31850. 'S': 667,
  31851. 'T': 611,
  31852. 'U': 722,
  31853. 'V': 667,
  31854. 'W': 944,
  31855. 'X': 667,
  31856. 'Y': 667,
  31857. 'Z': 611,
  31858. 'bracketleft': 278,
  31859. 'backslash': 278,
  31860. 'bracketright': 278,
  31861. 'asciicircum': 469,
  31862. 'underscore': 556,
  31863. 'quoteleft': 222,
  31864. 'a': 556,
  31865. 'b': 556,
  31866. 'c': 500,
  31867. 'd': 556,
  31868. 'e': 556,
  31869. 'f': 278,
  31870. 'g': 556,
  31871. 'h': 556,
  31872. 'i': 222,
  31873. 'j': 222,
  31874. 'k': 500,
  31875. 'l': 222,
  31876. 'm': 833,
  31877. 'n': 556,
  31878. 'o': 556,
  31879. 'p': 556,
  31880. 'q': 556,
  31881. 'r': 333,
  31882. 's': 500,
  31883. 't': 278,
  31884. 'u': 556,
  31885. 'v': 500,
  31886. 'w': 722,
  31887. 'x': 500,
  31888. 'y': 500,
  31889. 'z': 500,
  31890. 'braceleft': 334,
  31891. 'bar': 260,
  31892. 'braceright': 334,
  31893. 'asciitilde': 584,
  31894. 'exclamdown': 333,
  31895. 'cent': 556,
  31896. 'sterling': 556,
  31897. 'fraction': 167,
  31898. 'yen': 556,
  31899. 'florin': 556,
  31900. 'section': 556,
  31901. 'currency': 556,
  31902. 'quotesingle': 191,
  31903. 'quotedblleft': 333,
  31904. 'guillemotleft': 556,
  31905. 'guilsinglleft': 333,
  31906. 'guilsinglright': 333,
  31907. 'fi': 500,
  31908. 'fl': 500,
  31909. 'endash': 556,
  31910. 'dagger': 556,
  31911. 'daggerdbl': 556,
  31912. 'periodcentered': 278,
  31913. 'paragraph': 537,
  31914. 'bullet': 350,
  31915. 'quotesinglbase': 222,
  31916. 'quotedblbase': 333,
  31917. 'quotedblright': 333,
  31918. 'guillemotright': 556,
  31919. 'ellipsis': 1000,
  31920. 'perthousand': 1000,
  31921. 'questiondown': 611,
  31922. 'grave': 333,
  31923. 'acute': 333,
  31924. 'circumflex': 333,
  31925. 'tilde': 333,
  31926. 'macron': 333,
  31927. 'breve': 333,
  31928. 'dotaccent': 333,
  31929. 'dieresis': 333,
  31930. 'ring': 333,
  31931. 'cedilla': 333,
  31932. 'hungarumlaut': 333,
  31933. 'ogonek': 333,
  31934. 'caron': 333,
  31935. 'emdash': 1000,
  31936. 'AE': 1000,
  31937. 'ordfeminine': 370,
  31938. 'Lslash': 556,
  31939. 'Oslash': 778,
  31940. 'OE': 1000,
  31941. 'ordmasculine': 365,
  31942. 'ae': 889,
  31943. 'dotlessi': 278,
  31944. 'lslash': 222,
  31945. 'oslash': 611,
  31946. 'oe': 944,
  31947. 'germandbls': 611,
  31948. 'Idieresis': 278,
  31949. 'eacute': 556,
  31950. 'abreve': 556,
  31951. 'uhungarumlaut': 556,
  31952. 'ecaron': 556,
  31953. 'Ydieresis': 667,
  31954. 'divide': 584,
  31955. 'Yacute': 667,
  31956. 'Acircumflex': 667,
  31957. 'aacute': 556,
  31958. 'Ucircumflex': 722,
  31959. 'yacute': 500,
  31960. 'scommaaccent': 500,
  31961. 'ecircumflex': 556,
  31962. 'Uring': 722,
  31963. 'Udieresis': 722,
  31964. 'aogonek': 556,
  31965. 'Uacute': 722,
  31966. 'uogonek': 556,
  31967. 'Edieresis': 667,
  31968. 'Dcroat': 722,
  31969. 'commaaccent': 250,
  31970. 'copyright': 737,
  31971. 'Emacron': 667,
  31972. 'ccaron': 500,
  31973. 'aring': 556,
  31974. 'Ncommaaccent': 722,
  31975. 'lacute': 222,
  31976. 'agrave': 556,
  31977. 'Tcommaaccent': 611,
  31978. 'Cacute': 722,
  31979. 'atilde': 556,
  31980. 'Edotaccent': 667,
  31981. 'scaron': 500,
  31982. 'scedilla': 500,
  31983. 'iacute': 278,
  31984. 'lozenge': 471,
  31985. 'Rcaron': 722,
  31986. 'Gcommaaccent': 778,
  31987. 'ucircumflex': 556,
  31988. 'acircumflex': 556,
  31989. 'Amacron': 667,
  31990. 'rcaron': 333,
  31991. 'ccedilla': 500,
  31992. 'Zdotaccent': 611,
  31993. 'Thorn': 667,
  31994. 'Omacron': 778,
  31995. 'Racute': 722,
  31996. 'Sacute': 667,
  31997. 'dcaron': 643,
  31998. 'Umacron': 722,
  31999. 'uring': 556,
  32000. 'threesuperior': 333,
  32001. 'Ograve': 778,
  32002. 'Agrave': 667,
  32003. 'Abreve': 667,
  32004. 'multiply': 584,
  32005. 'uacute': 556,
  32006. 'Tcaron': 611,
  32007. 'partialdiff': 476,
  32008. 'ydieresis': 500,
  32009. 'Nacute': 722,
  32010. 'icircumflex': 278,
  32011. 'Ecircumflex': 667,
  32012. 'adieresis': 556,
  32013. 'edieresis': 556,
  32014. 'cacute': 500,
  32015. 'nacute': 556,
  32016. 'umacron': 556,
  32017. 'Ncaron': 722,
  32018. 'Iacute': 278,
  32019. 'plusminus': 584,
  32020. 'brokenbar': 260,
  32021. 'registered': 737,
  32022. 'Gbreve': 778,
  32023. 'Idotaccent': 278,
  32024. 'summation': 600,
  32025. 'Egrave': 667,
  32026. 'racute': 333,
  32027. 'omacron': 556,
  32028. 'Zacute': 611,
  32029. 'Zcaron': 611,
  32030. 'greaterequal': 549,
  32031. 'Eth': 722,
  32032. 'Ccedilla': 722,
  32033. 'lcommaaccent': 222,
  32034. 'tcaron': 317,
  32035. 'eogonek': 556,
  32036. 'Uogonek': 722,
  32037. 'Aacute': 667,
  32038. 'Adieresis': 667,
  32039. 'egrave': 556,
  32040. 'zacute': 500,
  32041. 'iogonek': 222,
  32042. 'Oacute': 778,
  32043. 'oacute': 556,
  32044. 'amacron': 556,
  32045. 'sacute': 500,
  32046. 'idieresis': 278,
  32047. 'Ocircumflex': 778,
  32048. 'Ugrave': 722,
  32049. 'Delta': 612,
  32050. 'thorn': 556,
  32051. 'twosuperior': 333,
  32052. 'Odieresis': 778,
  32053. 'mu': 556,
  32054. 'igrave': 278,
  32055. 'ohungarumlaut': 556,
  32056. 'Eogonek': 667,
  32057. 'dcroat': 556,
  32058. 'threequarters': 834,
  32059. 'Scedilla': 667,
  32060. 'lcaron': 299,
  32061. 'Kcommaaccent': 667,
  32062. 'Lacute': 556,
  32063. 'trademark': 1000,
  32064. 'edotaccent': 556,
  32065. 'Igrave': 278,
  32066. 'Imacron': 278,
  32067. 'Lcaron': 556,
  32068. 'onehalf': 834,
  32069. 'lessequal': 549,
  32070. 'ocircumflex': 556,
  32071. 'ntilde': 556,
  32072. 'Uhungarumlaut': 722,
  32073. 'Eacute': 667,
  32074. 'emacron': 556,
  32075. 'gbreve': 556,
  32076. 'onequarter': 834,
  32077. 'Scaron': 667,
  32078. 'Scommaaccent': 667,
  32079. 'Ohungarumlaut': 778,
  32080. 'degree': 400,
  32081. 'ograve': 556,
  32082. 'Ccaron': 722,
  32083. 'ugrave': 556,
  32084. 'radical': 453,
  32085. 'Dcaron': 722,
  32086. 'rcommaaccent': 333,
  32087. 'Ntilde': 722,
  32088. 'otilde': 556,
  32089. 'Rcommaaccent': 722,
  32090. 'Lcommaaccent': 556,
  32091. 'Atilde': 667,
  32092. 'Aogonek': 667,
  32093. 'Aring': 667,
  32094. 'Otilde': 778,
  32095. 'zdotaccent': 500,
  32096. 'Ecaron': 667,
  32097. 'Iogonek': 278,
  32098. 'kcommaaccent': 500,
  32099. 'minus': 584,
  32100. 'Icircumflex': 278,
  32101. 'ncaron': 556,
  32102. 'tcommaaccent': 278,
  32103. 'logicalnot': 584,
  32104. 'odieresis': 556,
  32105. 'udieresis': 556,
  32106. 'notequal': 549,
  32107. 'gcommaaccent': 556,
  32108. 'eth': 556,
  32109. 'zcaron': 500,
  32110. 'ncommaaccent': 556,
  32111. 'onesuperior': 333,
  32112. 'imacron': 278,
  32113. 'Euro': 556
  32114. },
  32115. 'Symbol': {
  32116. 'space': 250,
  32117. 'exclam': 333,
  32118. 'universal': 713,
  32119. 'numbersign': 500,
  32120. 'existential': 549,
  32121. 'percent': 833,
  32122. 'ampersand': 778,
  32123. 'suchthat': 439,
  32124. 'parenleft': 333,
  32125. 'parenright': 333,
  32126. 'asteriskmath': 500,
  32127. 'plus': 549,
  32128. 'comma': 250,
  32129. 'minus': 549,
  32130. 'period': 250,
  32131. 'slash': 278,
  32132. 'zero': 500,
  32133. 'one': 500,
  32134. 'two': 500,
  32135. 'three': 500,
  32136. 'four': 500,
  32137. 'five': 500,
  32138. 'six': 500,
  32139. 'seven': 500,
  32140. 'eight': 500,
  32141. 'nine': 500,
  32142. 'colon': 278,
  32143. 'semicolon': 278,
  32144. 'less': 549,
  32145. 'equal': 549,
  32146. 'greater': 549,
  32147. 'question': 444,
  32148. 'congruent': 549,
  32149. 'Alpha': 722,
  32150. 'Beta': 667,
  32151. 'Chi': 722,
  32152. 'Delta': 612,
  32153. 'Epsilon': 611,
  32154. 'Phi': 763,
  32155. 'Gamma': 603,
  32156. 'Eta': 722,
  32157. 'Iota': 333,
  32158. 'theta1': 631,
  32159. 'Kappa': 722,
  32160. 'Lambda': 686,
  32161. 'Mu': 889,
  32162. 'Nu': 722,
  32163. 'Omicron': 722,
  32164. 'Pi': 768,
  32165. 'Theta': 741,
  32166. 'Rho': 556,
  32167. 'Sigma': 592,
  32168. 'Tau': 611,
  32169. 'Upsilon': 690,
  32170. 'sigma1': 439,
  32171. 'Omega': 768,
  32172. 'Xi': 645,
  32173. 'Psi': 795,
  32174. 'Zeta': 611,
  32175. 'bracketleft': 333,
  32176. 'therefore': 863,
  32177. 'bracketright': 333,
  32178. 'perpendicular': 658,
  32179. 'underscore': 500,
  32180. 'radicalex': 500,
  32181. 'alpha': 631,
  32182. 'beta': 549,
  32183. 'chi': 549,
  32184. 'delta': 494,
  32185. 'epsilon': 439,
  32186. 'phi': 521,
  32187. 'gamma': 411,
  32188. 'eta': 603,
  32189. 'iota': 329,
  32190. 'phi1': 603,
  32191. 'kappa': 549,
  32192. 'lambda': 549,
  32193. 'mu': 576,
  32194. 'nu': 521,
  32195. 'omicron': 549,
  32196. 'pi': 549,
  32197. 'theta': 521,
  32198. 'rho': 549,
  32199. 'sigma': 603,
  32200. 'tau': 439,
  32201. 'upsilon': 576,
  32202. 'omega1': 713,
  32203. 'omega': 686,
  32204. 'xi': 493,
  32205. 'psi': 686,
  32206. 'zeta': 494,
  32207. 'braceleft': 480,
  32208. 'bar': 200,
  32209. 'braceright': 480,
  32210. 'similar': 549,
  32211. 'Euro': 750,
  32212. 'Upsilon1': 620,
  32213. 'minute': 247,
  32214. 'lessequal': 549,
  32215. 'fraction': 167,
  32216. 'infinity': 713,
  32217. 'florin': 500,
  32218. 'club': 753,
  32219. 'diamond': 753,
  32220. 'heart': 753,
  32221. 'spade': 753,
  32222. 'arrowboth': 1042,
  32223. 'arrowleft': 987,
  32224. 'arrowup': 603,
  32225. 'arrowright': 987,
  32226. 'arrowdown': 603,
  32227. 'degree': 400,
  32228. 'plusminus': 549,
  32229. 'second': 411,
  32230. 'greaterequal': 549,
  32231. 'multiply': 549,
  32232. 'proportional': 713,
  32233. 'partialdiff': 494,
  32234. 'bullet': 460,
  32235. 'divide': 549,
  32236. 'notequal': 549,
  32237. 'equivalence': 549,
  32238. 'approxequal': 549,
  32239. 'ellipsis': 1000,
  32240. 'arrowvertex': 603,
  32241. 'arrowhorizex': 1000,
  32242. 'carriagereturn': 658,
  32243. 'aleph': 823,
  32244. 'Ifraktur': 686,
  32245. 'Rfraktur': 795,
  32246. 'weierstrass': 987,
  32247. 'circlemultiply': 768,
  32248. 'circleplus': 768,
  32249. 'emptyset': 823,
  32250. 'intersection': 768,
  32251. 'union': 768,
  32252. 'propersuperset': 713,
  32253. 'reflexsuperset': 713,
  32254. 'notsubset': 713,
  32255. 'propersubset': 713,
  32256. 'reflexsubset': 713,
  32257. 'element': 713,
  32258. 'notelement': 713,
  32259. 'angle': 768,
  32260. 'gradient': 713,
  32261. 'registerserif': 790,
  32262. 'copyrightserif': 790,
  32263. 'trademarkserif': 890,
  32264. 'product': 823,
  32265. 'radical': 549,
  32266. 'dotmath': 250,
  32267. 'logicalnot': 713,
  32268. 'logicaland': 603,
  32269. 'logicalor': 603,
  32270. 'arrowdblboth': 1042,
  32271. 'arrowdblleft': 987,
  32272. 'arrowdblup': 603,
  32273. 'arrowdblright': 987,
  32274. 'arrowdbldown': 603,
  32275. 'lozenge': 494,
  32276. 'angleleft': 329,
  32277. 'registersans': 790,
  32278. 'copyrightsans': 790,
  32279. 'trademarksans': 786,
  32280. 'summation': 713,
  32281. 'parenlefttp': 384,
  32282. 'parenleftex': 384,
  32283. 'parenleftbt': 384,
  32284. 'bracketlefttp': 384,
  32285. 'bracketleftex': 384,
  32286. 'bracketleftbt': 384,
  32287. 'bracelefttp': 494,
  32288. 'braceleftmid': 494,
  32289. 'braceleftbt': 494,
  32290. 'braceex': 494,
  32291. 'angleright': 329,
  32292. 'integral': 274,
  32293. 'integraltp': 686,
  32294. 'integralex': 686,
  32295. 'integralbt': 686,
  32296. 'parenrighttp': 384,
  32297. 'parenrightex': 384,
  32298. 'parenrightbt': 384,
  32299. 'bracketrighttp': 384,
  32300. 'bracketrightex': 384,
  32301. 'bracketrightbt': 384,
  32302. 'bracerighttp': 494,
  32303. 'bracerightmid': 494,
  32304. 'bracerightbt': 494,
  32305. 'apple': 790
  32306. },
  32307. 'Times-Roman': {
  32308. 'space': 250,
  32309. 'exclam': 333,
  32310. 'quotedbl': 408,
  32311. 'numbersign': 500,
  32312. 'dollar': 500,
  32313. 'percent': 833,
  32314. 'ampersand': 778,
  32315. 'quoteright': 333,
  32316. 'parenleft': 333,
  32317. 'parenright': 333,
  32318. 'asterisk': 500,
  32319. 'plus': 564,
  32320. 'comma': 250,
  32321. 'hyphen': 333,
  32322. 'period': 250,
  32323. 'slash': 278,
  32324. 'zero': 500,
  32325. 'one': 500,
  32326. 'two': 500,
  32327. 'three': 500,
  32328. 'four': 500,
  32329. 'five': 500,
  32330. 'six': 500,
  32331. 'seven': 500,
  32332. 'eight': 500,
  32333. 'nine': 500,
  32334. 'colon': 278,
  32335. 'semicolon': 278,
  32336. 'less': 564,
  32337. 'equal': 564,
  32338. 'greater': 564,
  32339. 'question': 444,
  32340. 'at': 921,
  32341. 'A': 722,
  32342. 'B': 667,
  32343. 'C': 667,
  32344. 'D': 722,
  32345. 'E': 611,
  32346. 'F': 556,
  32347. 'G': 722,
  32348. 'H': 722,
  32349. 'I': 333,
  32350. 'J': 389,
  32351. 'K': 722,
  32352. 'L': 611,
  32353. 'M': 889,
  32354. 'N': 722,
  32355. 'O': 722,
  32356. 'P': 556,
  32357. 'Q': 722,
  32358. 'R': 667,
  32359. 'S': 556,
  32360. 'T': 611,
  32361. 'U': 722,
  32362. 'V': 722,
  32363. 'W': 944,
  32364. 'X': 722,
  32365. 'Y': 722,
  32366. 'Z': 611,
  32367. 'bracketleft': 333,
  32368. 'backslash': 278,
  32369. 'bracketright': 333,
  32370. 'asciicircum': 469,
  32371. 'underscore': 500,
  32372. 'quoteleft': 333,
  32373. 'a': 444,
  32374. 'b': 500,
  32375. 'c': 444,
  32376. 'd': 500,
  32377. 'e': 444,
  32378. 'f': 333,
  32379. 'g': 500,
  32380. 'h': 500,
  32381. 'i': 278,
  32382. 'j': 278,
  32383. 'k': 500,
  32384. 'l': 278,
  32385. 'm': 778,
  32386. 'n': 500,
  32387. 'o': 500,
  32388. 'p': 500,
  32389. 'q': 500,
  32390. 'r': 333,
  32391. 's': 389,
  32392. 't': 278,
  32393. 'u': 500,
  32394. 'v': 500,
  32395. 'w': 722,
  32396. 'x': 500,
  32397. 'y': 500,
  32398. 'z': 444,
  32399. 'braceleft': 480,
  32400. 'bar': 200,
  32401. 'braceright': 480,
  32402. 'asciitilde': 541,
  32403. 'exclamdown': 333,
  32404. 'cent': 500,
  32405. 'sterling': 500,
  32406. 'fraction': 167,
  32407. 'yen': 500,
  32408. 'florin': 500,
  32409. 'section': 500,
  32410. 'currency': 500,
  32411. 'quotesingle': 180,
  32412. 'quotedblleft': 444,
  32413. 'guillemotleft': 500,
  32414. 'guilsinglleft': 333,
  32415. 'guilsinglright': 333,
  32416. 'fi': 556,
  32417. 'fl': 556,
  32418. 'endash': 500,
  32419. 'dagger': 500,
  32420. 'daggerdbl': 500,
  32421. 'periodcentered': 250,
  32422. 'paragraph': 453,
  32423. 'bullet': 350,
  32424. 'quotesinglbase': 333,
  32425. 'quotedblbase': 444,
  32426. 'quotedblright': 444,
  32427. 'guillemotright': 500,
  32428. 'ellipsis': 1000,
  32429. 'perthousand': 1000,
  32430. 'questiondown': 444,
  32431. 'grave': 333,
  32432. 'acute': 333,
  32433. 'circumflex': 333,
  32434. 'tilde': 333,
  32435. 'macron': 333,
  32436. 'breve': 333,
  32437. 'dotaccent': 333,
  32438. 'dieresis': 333,
  32439. 'ring': 333,
  32440. 'cedilla': 333,
  32441. 'hungarumlaut': 333,
  32442. 'ogonek': 333,
  32443. 'caron': 333,
  32444. 'emdash': 1000,
  32445. 'AE': 889,
  32446. 'ordfeminine': 276,
  32447. 'Lslash': 611,
  32448. 'Oslash': 722,
  32449. 'OE': 889,
  32450. 'ordmasculine': 310,
  32451. 'ae': 667,
  32452. 'dotlessi': 278,
  32453. 'lslash': 278,
  32454. 'oslash': 500,
  32455. 'oe': 722,
  32456. 'germandbls': 500,
  32457. 'Idieresis': 333,
  32458. 'eacute': 444,
  32459. 'abreve': 444,
  32460. 'uhungarumlaut': 500,
  32461. 'ecaron': 444,
  32462. 'Ydieresis': 722,
  32463. 'divide': 564,
  32464. 'Yacute': 722,
  32465. 'Acircumflex': 722,
  32466. 'aacute': 444,
  32467. 'Ucircumflex': 722,
  32468. 'yacute': 500,
  32469. 'scommaaccent': 389,
  32470. 'ecircumflex': 444,
  32471. 'Uring': 722,
  32472. 'Udieresis': 722,
  32473. 'aogonek': 444,
  32474. 'Uacute': 722,
  32475. 'uogonek': 500,
  32476. 'Edieresis': 611,
  32477. 'Dcroat': 722,
  32478. 'commaaccent': 250,
  32479. 'copyright': 760,
  32480. 'Emacron': 611,
  32481. 'ccaron': 444,
  32482. 'aring': 444,
  32483. 'Ncommaaccent': 722,
  32484. 'lacute': 278,
  32485. 'agrave': 444,
  32486. 'Tcommaaccent': 611,
  32487. 'Cacute': 667,
  32488. 'atilde': 444,
  32489. 'Edotaccent': 611,
  32490. 'scaron': 389,
  32491. 'scedilla': 389,
  32492. 'iacute': 278,
  32493. 'lozenge': 471,
  32494. 'Rcaron': 667,
  32495. 'Gcommaaccent': 722,
  32496. 'ucircumflex': 500,
  32497. 'acircumflex': 444,
  32498. 'Amacron': 722,
  32499. 'rcaron': 333,
  32500. 'ccedilla': 444,
  32501. 'Zdotaccent': 611,
  32502. 'Thorn': 556,
  32503. 'Omacron': 722,
  32504. 'Racute': 667,
  32505. 'Sacute': 556,
  32506. 'dcaron': 588,
  32507. 'Umacron': 722,
  32508. 'uring': 500,
  32509. 'threesuperior': 300,
  32510. 'Ograve': 722,
  32511. 'Agrave': 722,
  32512. 'Abreve': 722,
  32513. 'multiply': 564,
  32514. 'uacute': 500,
  32515. 'Tcaron': 611,
  32516. 'partialdiff': 476,
  32517. 'ydieresis': 500,
  32518. 'Nacute': 722,
  32519. 'icircumflex': 278,
  32520. 'Ecircumflex': 611,
  32521. 'adieresis': 444,
  32522. 'edieresis': 444,
  32523. 'cacute': 444,
  32524. 'nacute': 500,
  32525. 'umacron': 500,
  32526. 'Ncaron': 722,
  32527. 'Iacute': 333,
  32528. 'plusminus': 564,
  32529. 'brokenbar': 200,
  32530. 'registered': 760,
  32531. 'Gbreve': 722,
  32532. 'Idotaccent': 333,
  32533. 'summation': 600,
  32534. 'Egrave': 611,
  32535. 'racute': 333,
  32536. 'omacron': 500,
  32537. 'Zacute': 611,
  32538. 'Zcaron': 611,
  32539. 'greaterequal': 549,
  32540. 'Eth': 722,
  32541. 'Ccedilla': 667,
  32542. 'lcommaaccent': 278,
  32543. 'tcaron': 326,
  32544. 'eogonek': 444,
  32545. 'Uogonek': 722,
  32546. 'Aacute': 722,
  32547. 'Adieresis': 722,
  32548. 'egrave': 444,
  32549. 'zacute': 444,
  32550. 'iogonek': 278,
  32551. 'Oacute': 722,
  32552. 'oacute': 500,
  32553. 'amacron': 444,
  32554. 'sacute': 389,
  32555. 'idieresis': 278,
  32556. 'Ocircumflex': 722,
  32557. 'Ugrave': 722,
  32558. 'Delta': 612,
  32559. 'thorn': 500,
  32560. 'twosuperior': 300,
  32561. 'Odieresis': 722,
  32562. 'mu': 500,
  32563. 'igrave': 278,
  32564. 'ohungarumlaut': 500,
  32565. 'Eogonek': 611,
  32566. 'dcroat': 500,
  32567. 'threequarters': 750,
  32568. 'Scedilla': 556,
  32569. 'lcaron': 344,
  32570. 'Kcommaaccent': 722,
  32571. 'Lacute': 611,
  32572. 'trademark': 980,
  32573. 'edotaccent': 444,
  32574. 'Igrave': 333,
  32575. 'Imacron': 333,
  32576. 'Lcaron': 611,
  32577. 'onehalf': 750,
  32578. 'lessequal': 549,
  32579. 'ocircumflex': 500,
  32580. 'ntilde': 500,
  32581. 'Uhungarumlaut': 722,
  32582. 'Eacute': 611,
  32583. 'emacron': 444,
  32584. 'gbreve': 500,
  32585. 'onequarter': 750,
  32586. 'Scaron': 556,
  32587. 'Scommaaccent': 556,
  32588. 'Ohungarumlaut': 722,
  32589. 'degree': 400,
  32590. 'ograve': 500,
  32591. 'Ccaron': 667,
  32592. 'ugrave': 500,
  32593. 'radical': 453,
  32594. 'Dcaron': 722,
  32595. 'rcommaaccent': 333,
  32596. 'Ntilde': 722,
  32597. 'otilde': 500,
  32598. 'Rcommaaccent': 667,
  32599. 'Lcommaaccent': 611,
  32600. 'Atilde': 722,
  32601. 'Aogonek': 722,
  32602. 'Aring': 722,
  32603. 'Otilde': 722,
  32604. 'zdotaccent': 444,
  32605. 'Ecaron': 611,
  32606. 'Iogonek': 333,
  32607. 'kcommaaccent': 500,
  32608. 'minus': 564,
  32609. 'Icircumflex': 333,
  32610. 'ncaron': 500,
  32611. 'tcommaaccent': 278,
  32612. 'logicalnot': 564,
  32613. 'odieresis': 500,
  32614. 'udieresis': 500,
  32615. 'notequal': 549,
  32616. 'gcommaaccent': 500,
  32617. 'eth': 500,
  32618. 'zcaron': 444,
  32619. 'ncommaaccent': 500,
  32620. 'onesuperior': 300,
  32621. 'imacron': 278,
  32622. 'Euro': 500
  32623. },
  32624. 'Times-Bold': {
  32625. 'space': 250,
  32626. 'exclam': 333,
  32627. 'quotedbl': 555,
  32628. 'numbersign': 500,
  32629. 'dollar': 500,
  32630. 'percent': 1000,
  32631. 'ampersand': 833,
  32632. 'quoteright': 333,
  32633. 'parenleft': 333,
  32634. 'parenright': 333,
  32635. 'asterisk': 500,
  32636. 'plus': 570,
  32637. 'comma': 250,
  32638. 'hyphen': 333,
  32639. 'period': 250,
  32640. 'slash': 278,
  32641. 'zero': 500,
  32642. 'one': 500,
  32643. 'two': 500,
  32644. 'three': 500,
  32645. 'four': 500,
  32646. 'five': 500,
  32647. 'six': 500,
  32648. 'seven': 500,
  32649. 'eight': 500,
  32650. 'nine': 500,
  32651. 'colon': 333,
  32652. 'semicolon': 333,
  32653. 'less': 570,
  32654. 'equal': 570,
  32655. 'greater': 570,
  32656. 'question': 500,
  32657. 'at': 930,
  32658. 'A': 722,
  32659. 'B': 667,
  32660. 'C': 722,
  32661. 'D': 722,
  32662. 'E': 667,
  32663. 'F': 611,
  32664. 'G': 778,
  32665. 'H': 778,
  32666. 'I': 389,
  32667. 'J': 500,
  32668. 'K': 778,
  32669. 'L': 667,
  32670. 'M': 944,
  32671. 'N': 722,
  32672. 'O': 778,
  32673. 'P': 611,
  32674. 'Q': 778,
  32675. 'R': 722,
  32676. 'S': 556,
  32677. 'T': 667,
  32678. 'U': 722,
  32679. 'V': 722,
  32680. 'W': 1000,
  32681. 'X': 722,
  32682. 'Y': 722,
  32683. 'Z': 667,
  32684. 'bracketleft': 333,
  32685. 'backslash': 278,
  32686. 'bracketright': 333,
  32687. 'asciicircum': 581,
  32688. 'underscore': 500,
  32689. 'quoteleft': 333,
  32690. 'a': 500,
  32691. 'b': 556,
  32692. 'c': 444,
  32693. 'd': 556,
  32694. 'e': 444,
  32695. 'f': 333,
  32696. 'g': 500,
  32697. 'h': 556,
  32698. 'i': 278,
  32699. 'j': 333,
  32700. 'k': 556,
  32701. 'l': 278,
  32702. 'm': 833,
  32703. 'n': 556,
  32704. 'o': 500,
  32705. 'p': 556,
  32706. 'q': 556,
  32707. 'r': 444,
  32708. 's': 389,
  32709. 't': 333,
  32710. 'u': 556,
  32711. 'v': 500,
  32712. 'w': 722,
  32713. 'x': 500,
  32714. 'y': 500,
  32715. 'z': 444,
  32716. 'braceleft': 394,
  32717. 'bar': 220,
  32718. 'braceright': 394,
  32719. 'asciitilde': 520,
  32720. 'exclamdown': 333,
  32721. 'cent': 500,
  32722. 'sterling': 500,
  32723. 'fraction': 167,
  32724. 'yen': 500,
  32725. 'florin': 500,
  32726. 'section': 500,
  32727. 'currency': 500,
  32728. 'quotesingle': 278,
  32729. 'quotedblleft': 500,
  32730. 'guillemotleft': 500,
  32731. 'guilsinglleft': 333,
  32732. 'guilsinglright': 333,
  32733. 'fi': 556,
  32734. 'fl': 556,
  32735. 'endash': 500,
  32736. 'dagger': 500,
  32737. 'daggerdbl': 500,
  32738. 'periodcentered': 250,
  32739. 'paragraph': 540,
  32740. 'bullet': 350,
  32741. 'quotesinglbase': 333,
  32742. 'quotedblbase': 500,
  32743. 'quotedblright': 500,
  32744. 'guillemotright': 500,
  32745. 'ellipsis': 1000,
  32746. 'perthousand': 1000,
  32747. 'questiondown': 500,
  32748. 'grave': 333,
  32749. 'acute': 333,
  32750. 'circumflex': 333,
  32751. 'tilde': 333,
  32752. 'macron': 333,
  32753. 'breve': 333,
  32754. 'dotaccent': 333,
  32755. 'dieresis': 333,
  32756. 'ring': 333,
  32757. 'cedilla': 333,
  32758. 'hungarumlaut': 333,
  32759. 'ogonek': 333,
  32760. 'caron': 333,
  32761. 'emdash': 1000,
  32762. 'AE': 1000,
  32763. 'ordfeminine': 300,
  32764. 'Lslash': 667,
  32765. 'Oslash': 778,
  32766. 'OE': 1000,
  32767. 'ordmasculine': 330,
  32768. 'ae': 722,
  32769. 'dotlessi': 278,
  32770. 'lslash': 278,
  32771. 'oslash': 500,
  32772. 'oe': 722,
  32773. 'germandbls': 556,
  32774. 'Idieresis': 389,
  32775. 'eacute': 444,
  32776. 'abreve': 500,
  32777. 'uhungarumlaut': 556,
  32778. 'ecaron': 444,
  32779. 'Ydieresis': 722,
  32780. 'divide': 570,
  32781. 'Yacute': 722,
  32782. 'Acircumflex': 722,
  32783. 'aacute': 500,
  32784. 'Ucircumflex': 722,
  32785. 'yacute': 500,
  32786. 'scommaaccent': 389,
  32787. 'ecircumflex': 444,
  32788. 'Uring': 722,
  32789. 'Udieresis': 722,
  32790. 'aogonek': 500,
  32791. 'Uacute': 722,
  32792. 'uogonek': 556,
  32793. 'Edieresis': 667,
  32794. 'Dcroat': 722,
  32795. 'commaaccent': 250,
  32796. 'copyright': 747,
  32797. 'Emacron': 667,
  32798. 'ccaron': 444,
  32799. 'aring': 500,
  32800. 'Ncommaaccent': 722,
  32801. 'lacute': 278,
  32802. 'agrave': 500,
  32803. 'Tcommaaccent': 667,
  32804. 'Cacute': 722,
  32805. 'atilde': 500,
  32806. 'Edotaccent': 667,
  32807. 'scaron': 389,
  32808. 'scedilla': 389,
  32809. 'iacute': 278,
  32810. 'lozenge': 494,
  32811. 'Rcaron': 722,
  32812. 'Gcommaaccent': 778,
  32813. 'ucircumflex': 556,
  32814. 'acircumflex': 500,
  32815. 'Amacron': 722,
  32816. 'rcaron': 444,
  32817. 'ccedilla': 444,
  32818. 'Zdotaccent': 667,
  32819. 'Thorn': 611,
  32820. 'Omacron': 778,
  32821. 'Racute': 722,
  32822. 'Sacute': 556,
  32823. 'dcaron': 672,
  32824. 'Umacron': 722,
  32825. 'uring': 556,
  32826. 'threesuperior': 300,
  32827. 'Ograve': 778,
  32828. 'Agrave': 722,
  32829. 'Abreve': 722,
  32830. 'multiply': 570,
  32831. 'uacute': 556,
  32832. 'Tcaron': 667,
  32833. 'partialdiff': 494,
  32834. 'ydieresis': 500,
  32835. 'Nacute': 722,
  32836. 'icircumflex': 278,
  32837. 'Ecircumflex': 667,
  32838. 'adieresis': 500,
  32839. 'edieresis': 444,
  32840. 'cacute': 444,
  32841. 'nacute': 556,
  32842. 'umacron': 556,
  32843. 'Ncaron': 722,
  32844. 'Iacute': 389,
  32845. 'plusminus': 570,
  32846. 'brokenbar': 220,
  32847. 'registered': 747,
  32848. 'Gbreve': 778,
  32849. 'Idotaccent': 389,
  32850. 'summation': 600,
  32851. 'Egrave': 667,
  32852. 'racute': 444,
  32853. 'omacron': 500,
  32854. 'Zacute': 667,
  32855. 'Zcaron': 667,
  32856. 'greaterequal': 549,
  32857. 'Eth': 722,
  32858. 'Ccedilla': 722,
  32859. 'lcommaaccent': 278,
  32860. 'tcaron': 416,
  32861. 'eogonek': 444,
  32862. 'Uogonek': 722,
  32863. 'Aacute': 722,
  32864. 'Adieresis': 722,
  32865. 'egrave': 444,
  32866. 'zacute': 444,
  32867. 'iogonek': 278,
  32868. 'Oacute': 778,
  32869. 'oacute': 500,
  32870. 'amacron': 500,
  32871. 'sacute': 389,
  32872. 'idieresis': 278,
  32873. 'Ocircumflex': 778,
  32874. 'Ugrave': 722,
  32875. 'Delta': 612,
  32876. 'thorn': 556,
  32877. 'twosuperior': 300,
  32878. 'Odieresis': 778,
  32879. 'mu': 556,
  32880. 'igrave': 278,
  32881. 'ohungarumlaut': 500,
  32882. 'Eogonek': 667,
  32883. 'dcroat': 556,
  32884. 'threequarters': 750,
  32885. 'Scedilla': 556,
  32886. 'lcaron': 394,
  32887. 'Kcommaaccent': 778,
  32888. 'Lacute': 667,
  32889. 'trademark': 1000,
  32890. 'edotaccent': 444,
  32891. 'Igrave': 389,
  32892. 'Imacron': 389,
  32893. 'Lcaron': 667,
  32894. 'onehalf': 750,
  32895. 'lessequal': 549,
  32896. 'ocircumflex': 500,
  32897. 'ntilde': 556,
  32898. 'Uhungarumlaut': 722,
  32899. 'Eacute': 667,
  32900. 'emacron': 444,
  32901. 'gbreve': 500,
  32902. 'onequarter': 750,
  32903. 'Scaron': 556,
  32904. 'Scommaaccent': 556,
  32905. 'Ohungarumlaut': 778,
  32906. 'degree': 400,
  32907. 'ograve': 500,
  32908. 'Ccaron': 722,
  32909. 'ugrave': 556,
  32910. 'radical': 549,
  32911. 'Dcaron': 722,
  32912. 'rcommaaccent': 444,
  32913. 'Ntilde': 722,
  32914. 'otilde': 500,
  32915. 'Rcommaaccent': 722,
  32916. 'Lcommaaccent': 667,
  32917. 'Atilde': 722,
  32918. 'Aogonek': 722,
  32919. 'Aring': 722,
  32920. 'Otilde': 778,
  32921. 'zdotaccent': 444,
  32922. 'Ecaron': 667,
  32923. 'Iogonek': 389,
  32924. 'kcommaaccent': 556,
  32925. 'minus': 570,
  32926. 'Icircumflex': 389,
  32927. 'ncaron': 556,
  32928. 'tcommaaccent': 333,
  32929. 'logicalnot': 570,
  32930. 'odieresis': 500,
  32931. 'udieresis': 556,
  32932. 'notequal': 549,
  32933. 'gcommaaccent': 500,
  32934. 'eth': 500,
  32935. 'zcaron': 444,
  32936. 'ncommaaccent': 556,
  32937. 'onesuperior': 300,
  32938. 'imacron': 278,
  32939. 'Euro': 500
  32940. },
  32941. 'Times-BoldItalic': {
  32942. 'space': 250,
  32943. 'exclam': 389,
  32944. 'quotedbl': 555,
  32945. 'numbersign': 500,
  32946. 'dollar': 500,
  32947. 'percent': 833,
  32948. 'ampersand': 778,
  32949. 'quoteright': 333,
  32950. 'parenleft': 333,
  32951. 'parenright': 333,
  32952. 'asterisk': 500,
  32953. 'plus': 570,
  32954. 'comma': 250,
  32955. 'hyphen': 333,
  32956. 'period': 250,
  32957. 'slash': 278,
  32958. 'zero': 500,
  32959. 'one': 500,
  32960. 'two': 500,
  32961. 'three': 500,
  32962. 'four': 500,
  32963. 'five': 500,
  32964. 'six': 500,
  32965. 'seven': 500,
  32966. 'eight': 500,
  32967. 'nine': 500,
  32968. 'colon': 333,
  32969. 'semicolon': 333,
  32970. 'less': 570,
  32971. 'equal': 570,
  32972. 'greater': 570,
  32973. 'question': 500,
  32974. 'at': 832,
  32975. 'A': 667,
  32976. 'B': 667,
  32977. 'C': 667,
  32978. 'D': 722,
  32979. 'E': 667,
  32980. 'F': 667,
  32981. 'G': 722,
  32982. 'H': 778,
  32983. 'I': 389,
  32984. 'J': 500,
  32985. 'K': 667,
  32986. 'L': 611,
  32987. 'M': 889,
  32988. 'N': 722,
  32989. 'O': 722,
  32990. 'P': 611,
  32991. 'Q': 722,
  32992. 'R': 667,
  32993. 'S': 556,
  32994. 'T': 611,
  32995. 'U': 722,
  32996. 'V': 667,
  32997. 'W': 889,
  32998. 'X': 667,
  32999. 'Y': 611,
  33000. 'Z': 611,
  33001. 'bracketleft': 333,
  33002. 'backslash': 278,
  33003. 'bracketright': 333,
  33004. 'asciicircum': 570,
  33005. 'underscore': 500,
  33006. 'quoteleft': 333,
  33007. 'a': 500,
  33008. 'b': 500,
  33009. 'c': 444,
  33010. 'd': 500,
  33011. 'e': 444,
  33012. 'f': 333,
  33013. 'g': 500,
  33014. 'h': 556,
  33015. 'i': 278,
  33016. 'j': 278,
  33017. 'k': 500,
  33018. 'l': 278,
  33019. 'm': 778,
  33020. 'n': 556,
  33021. 'o': 500,
  33022. 'p': 500,
  33023. 'q': 500,
  33024. 'r': 389,
  33025. 's': 389,
  33026. 't': 278,
  33027. 'u': 556,
  33028. 'v': 444,
  33029. 'w': 667,
  33030. 'x': 500,
  33031. 'y': 444,
  33032. 'z': 389,
  33033. 'braceleft': 348,
  33034. 'bar': 220,
  33035. 'braceright': 348,
  33036. 'asciitilde': 570,
  33037. 'exclamdown': 389,
  33038. 'cent': 500,
  33039. 'sterling': 500,
  33040. 'fraction': 167,
  33041. 'yen': 500,
  33042. 'florin': 500,
  33043. 'section': 500,
  33044. 'currency': 500,
  33045. 'quotesingle': 278,
  33046. 'quotedblleft': 500,
  33047. 'guillemotleft': 500,
  33048. 'guilsinglleft': 333,
  33049. 'guilsinglright': 333,
  33050. 'fi': 556,
  33051. 'fl': 556,
  33052. 'endash': 500,
  33053. 'dagger': 500,
  33054. 'daggerdbl': 500,
  33055. 'periodcentered': 250,
  33056. 'paragraph': 500,
  33057. 'bullet': 350,
  33058. 'quotesinglbase': 333,
  33059. 'quotedblbase': 500,
  33060. 'quotedblright': 500,
  33061. 'guillemotright': 500,
  33062. 'ellipsis': 1000,
  33063. 'perthousand': 1000,
  33064. 'questiondown': 500,
  33065. 'grave': 333,
  33066. 'acute': 333,
  33067. 'circumflex': 333,
  33068. 'tilde': 333,
  33069. 'macron': 333,
  33070. 'breve': 333,
  33071. 'dotaccent': 333,
  33072. 'dieresis': 333,
  33073. 'ring': 333,
  33074. 'cedilla': 333,
  33075. 'hungarumlaut': 333,
  33076. 'ogonek': 333,
  33077. 'caron': 333,
  33078. 'emdash': 1000,
  33079. 'AE': 944,
  33080. 'ordfeminine': 266,
  33081. 'Lslash': 611,
  33082. 'Oslash': 722,
  33083. 'OE': 944,
  33084. 'ordmasculine': 300,
  33085. 'ae': 722,
  33086. 'dotlessi': 278,
  33087. 'lslash': 278,
  33088. 'oslash': 500,
  33089. 'oe': 722,
  33090. 'germandbls': 500,
  33091. 'Idieresis': 389,
  33092. 'eacute': 444,
  33093. 'abreve': 500,
  33094. 'uhungarumlaut': 556,
  33095. 'ecaron': 444,
  33096. 'Ydieresis': 611,
  33097. 'divide': 570,
  33098. 'Yacute': 611,
  33099. 'Acircumflex': 667,
  33100. 'aacute': 500,
  33101. 'Ucircumflex': 722,
  33102. 'yacute': 444,
  33103. 'scommaaccent': 389,
  33104. 'ecircumflex': 444,
  33105. 'Uring': 722,
  33106. 'Udieresis': 722,
  33107. 'aogonek': 500,
  33108. 'Uacute': 722,
  33109. 'uogonek': 556,
  33110. 'Edieresis': 667,
  33111. 'Dcroat': 722,
  33112. 'commaaccent': 250,
  33113. 'copyright': 747,
  33114. 'Emacron': 667,
  33115. 'ccaron': 444,
  33116. 'aring': 500,
  33117. 'Ncommaaccent': 722,
  33118. 'lacute': 278,
  33119. 'agrave': 500,
  33120. 'Tcommaaccent': 611,
  33121. 'Cacute': 667,
  33122. 'atilde': 500,
  33123. 'Edotaccent': 667,
  33124. 'scaron': 389,
  33125. 'scedilla': 389,
  33126. 'iacute': 278,
  33127. 'lozenge': 494,
  33128. 'Rcaron': 667,
  33129. 'Gcommaaccent': 722,
  33130. 'ucircumflex': 556,
  33131. 'acircumflex': 500,
  33132. 'Amacron': 667,
  33133. 'rcaron': 389,
  33134. 'ccedilla': 444,
  33135. 'Zdotaccent': 611,
  33136. 'Thorn': 611,
  33137. 'Omacron': 722,
  33138. 'Racute': 667,
  33139. 'Sacute': 556,
  33140. 'dcaron': 608,
  33141. 'Umacron': 722,
  33142. 'uring': 556,
  33143. 'threesuperior': 300,
  33144. 'Ograve': 722,
  33145. 'Agrave': 667,
  33146. 'Abreve': 667,
  33147. 'multiply': 570,
  33148. 'uacute': 556,
  33149. 'Tcaron': 611,
  33150. 'partialdiff': 494,
  33151. 'ydieresis': 444,
  33152. 'Nacute': 722,
  33153. 'icircumflex': 278,
  33154. 'Ecircumflex': 667,
  33155. 'adieresis': 500,
  33156. 'edieresis': 444,
  33157. 'cacute': 444,
  33158. 'nacute': 556,
  33159. 'umacron': 556,
  33160. 'Ncaron': 722,
  33161. 'Iacute': 389,
  33162. 'plusminus': 570,
  33163. 'brokenbar': 220,
  33164. 'registered': 747,
  33165. 'Gbreve': 722,
  33166. 'Idotaccent': 389,
  33167. 'summation': 600,
  33168. 'Egrave': 667,
  33169. 'racute': 389,
  33170. 'omacron': 500,
  33171. 'Zacute': 611,
  33172. 'Zcaron': 611,
  33173. 'greaterequal': 549,
  33174. 'Eth': 722,
  33175. 'Ccedilla': 667,
  33176. 'lcommaaccent': 278,
  33177. 'tcaron': 366,
  33178. 'eogonek': 444,
  33179. 'Uogonek': 722,
  33180. 'Aacute': 667,
  33181. 'Adieresis': 667,
  33182. 'egrave': 444,
  33183. 'zacute': 389,
  33184. 'iogonek': 278,
  33185. 'Oacute': 722,
  33186. 'oacute': 500,
  33187. 'amacron': 500,
  33188. 'sacute': 389,
  33189. 'idieresis': 278,
  33190. 'Ocircumflex': 722,
  33191. 'Ugrave': 722,
  33192. 'Delta': 612,
  33193. 'thorn': 500,
  33194. 'twosuperior': 300,
  33195. 'Odieresis': 722,
  33196. 'mu': 576,
  33197. 'igrave': 278,
  33198. 'ohungarumlaut': 500,
  33199. 'Eogonek': 667,
  33200. 'dcroat': 500,
  33201. 'threequarters': 750,
  33202. 'Scedilla': 556,
  33203. 'lcaron': 382,
  33204. 'Kcommaaccent': 667,
  33205. 'Lacute': 611,
  33206. 'trademark': 1000,
  33207. 'edotaccent': 444,
  33208. 'Igrave': 389,
  33209. 'Imacron': 389,
  33210. 'Lcaron': 611,
  33211. 'onehalf': 750,
  33212. 'lessequal': 549,
  33213. 'ocircumflex': 500,
  33214. 'ntilde': 556,
  33215. 'Uhungarumlaut': 722,
  33216. 'Eacute': 667,
  33217. 'emacron': 444,
  33218. 'gbreve': 500,
  33219. 'onequarter': 750,
  33220. 'Scaron': 556,
  33221. 'Scommaaccent': 556,
  33222. 'Ohungarumlaut': 722,
  33223. 'degree': 400,
  33224. 'ograve': 500,
  33225. 'Ccaron': 667,
  33226. 'ugrave': 556,
  33227. 'radical': 549,
  33228. 'Dcaron': 722,
  33229. 'rcommaaccent': 389,
  33230. 'Ntilde': 722,
  33231. 'otilde': 500,
  33232. 'Rcommaaccent': 667,
  33233. 'Lcommaaccent': 611,
  33234. 'Atilde': 667,
  33235. 'Aogonek': 667,
  33236. 'Aring': 667,
  33237. 'Otilde': 722,
  33238. 'zdotaccent': 389,
  33239. 'Ecaron': 667,
  33240. 'Iogonek': 389,
  33241. 'kcommaaccent': 500,
  33242. 'minus': 606,
  33243. 'Icircumflex': 389,
  33244. 'ncaron': 556,
  33245. 'tcommaaccent': 278,
  33246. 'logicalnot': 606,
  33247. 'odieresis': 500,
  33248. 'udieresis': 556,
  33249. 'notequal': 549,
  33250. 'gcommaaccent': 500,
  33251. 'eth': 500,
  33252. 'zcaron': 389,
  33253. 'ncommaaccent': 556,
  33254. 'onesuperior': 300,
  33255. 'imacron': 278,
  33256. 'Euro': 500
  33257. },
  33258. 'Times-Italic': {
  33259. 'space': 250,
  33260. 'exclam': 333,
  33261. 'quotedbl': 420,
  33262. 'numbersign': 500,
  33263. 'dollar': 500,
  33264. 'percent': 833,
  33265. 'ampersand': 778,
  33266. 'quoteright': 333,
  33267. 'parenleft': 333,
  33268. 'parenright': 333,
  33269. 'asterisk': 500,
  33270. 'plus': 675,
  33271. 'comma': 250,
  33272. 'hyphen': 333,
  33273. 'period': 250,
  33274. 'slash': 278,
  33275. 'zero': 500,
  33276. 'one': 500,
  33277. 'two': 500,
  33278. 'three': 500,
  33279. 'four': 500,
  33280. 'five': 500,
  33281. 'six': 500,
  33282. 'seven': 500,
  33283. 'eight': 500,
  33284. 'nine': 500,
  33285. 'colon': 333,
  33286. 'semicolon': 333,
  33287. 'less': 675,
  33288. 'equal': 675,
  33289. 'greater': 675,
  33290. 'question': 500,
  33291. 'at': 920,
  33292. 'A': 611,
  33293. 'B': 611,
  33294. 'C': 667,
  33295. 'D': 722,
  33296. 'E': 611,
  33297. 'F': 611,
  33298. 'G': 722,
  33299. 'H': 722,
  33300. 'I': 333,
  33301. 'J': 444,
  33302. 'K': 667,
  33303. 'L': 556,
  33304. 'M': 833,
  33305. 'N': 667,
  33306. 'O': 722,
  33307. 'P': 611,
  33308. 'Q': 722,
  33309. 'R': 611,
  33310. 'S': 500,
  33311. 'T': 556,
  33312. 'U': 722,
  33313. 'V': 611,
  33314. 'W': 833,
  33315. 'X': 611,
  33316. 'Y': 556,
  33317. 'Z': 556,
  33318. 'bracketleft': 389,
  33319. 'backslash': 278,
  33320. 'bracketright': 389,
  33321. 'asciicircum': 422,
  33322. 'underscore': 500,
  33323. 'quoteleft': 333,
  33324. 'a': 500,
  33325. 'b': 500,
  33326. 'c': 444,
  33327. 'd': 500,
  33328. 'e': 444,
  33329. 'f': 278,
  33330. 'g': 500,
  33331. 'h': 500,
  33332. 'i': 278,
  33333. 'j': 278,
  33334. 'k': 444,
  33335. 'l': 278,
  33336. 'm': 722,
  33337. 'n': 500,
  33338. 'o': 500,
  33339. 'p': 500,
  33340. 'q': 500,
  33341. 'r': 389,
  33342. 's': 389,
  33343. 't': 278,
  33344. 'u': 500,
  33345. 'v': 444,
  33346. 'w': 667,
  33347. 'x': 444,
  33348. 'y': 444,
  33349. 'z': 389,
  33350. 'braceleft': 400,
  33351. 'bar': 275,
  33352. 'braceright': 400,
  33353. 'asciitilde': 541,
  33354. 'exclamdown': 389,
  33355. 'cent': 500,
  33356. 'sterling': 500,
  33357. 'fraction': 167,
  33358. 'yen': 500,
  33359. 'florin': 500,
  33360. 'section': 500,
  33361. 'currency': 500,
  33362. 'quotesingle': 214,
  33363. 'quotedblleft': 556,
  33364. 'guillemotleft': 500,
  33365. 'guilsinglleft': 333,
  33366. 'guilsinglright': 333,
  33367. 'fi': 500,
  33368. 'fl': 500,
  33369. 'endash': 500,
  33370. 'dagger': 500,
  33371. 'daggerdbl': 500,
  33372. 'periodcentered': 250,
  33373. 'paragraph': 523,
  33374. 'bullet': 350,
  33375. 'quotesinglbase': 333,
  33376. 'quotedblbase': 556,
  33377. 'quotedblright': 556,
  33378. 'guillemotright': 500,
  33379. 'ellipsis': 889,
  33380. 'perthousand': 1000,
  33381. 'questiondown': 500,
  33382. 'grave': 333,
  33383. 'acute': 333,
  33384. 'circumflex': 333,
  33385. 'tilde': 333,
  33386. 'macron': 333,
  33387. 'breve': 333,
  33388. 'dotaccent': 333,
  33389. 'dieresis': 333,
  33390. 'ring': 333,
  33391. 'cedilla': 333,
  33392. 'hungarumlaut': 333,
  33393. 'ogonek': 333,
  33394. 'caron': 333,
  33395. 'emdash': 889,
  33396. 'AE': 889,
  33397. 'ordfeminine': 276,
  33398. 'Lslash': 556,
  33399. 'Oslash': 722,
  33400. 'OE': 944,
  33401. 'ordmasculine': 310,
  33402. 'ae': 667,
  33403. 'dotlessi': 278,
  33404. 'lslash': 278,
  33405. 'oslash': 500,
  33406. 'oe': 667,
  33407. 'germandbls': 500,
  33408. 'Idieresis': 333,
  33409. 'eacute': 444,
  33410. 'abreve': 500,
  33411. 'uhungarumlaut': 500,
  33412. 'ecaron': 444,
  33413. 'Ydieresis': 556,
  33414. 'divide': 675,
  33415. 'Yacute': 556,
  33416. 'Acircumflex': 611,
  33417. 'aacute': 500,
  33418. 'Ucircumflex': 722,
  33419. 'yacute': 444,
  33420. 'scommaaccent': 389,
  33421. 'ecircumflex': 444,
  33422. 'Uring': 722,
  33423. 'Udieresis': 722,
  33424. 'aogonek': 500,
  33425. 'Uacute': 722,
  33426. 'uogonek': 500,
  33427. 'Edieresis': 611,
  33428. 'Dcroat': 722,
  33429. 'commaaccent': 250,
  33430. 'copyright': 760,
  33431. 'Emacron': 611,
  33432. 'ccaron': 444,
  33433. 'aring': 500,
  33434. 'Ncommaaccent': 667,
  33435. 'lacute': 278,
  33436. 'agrave': 500,
  33437. 'Tcommaaccent': 556,
  33438. 'Cacute': 667,
  33439. 'atilde': 500,
  33440. 'Edotaccent': 611,
  33441. 'scaron': 389,
  33442. 'scedilla': 389,
  33443. 'iacute': 278,
  33444. 'lozenge': 471,
  33445. 'Rcaron': 611,
  33446. 'Gcommaaccent': 722,
  33447. 'ucircumflex': 500,
  33448. 'acircumflex': 500,
  33449. 'Amacron': 611,
  33450. 'rcaron': 389,
  33451. 'ccedilla': 444,
  33452. 'Zdotaccent': 556,
  33453. 'Thorn': 611,
  33454. 'Omacron': 722,
  33455. 'Racute': 611,
  33456. 'Sacute': 500,
  33457. 'dcaron': 544,
  33458. 'Umacron': 722,
  33459. 'uring': 500,
  33460. 'threesuperior': 300,
  33461. 'Ograve': 722,
  33462. 'Agrave': 611,
  33463. 'Abreve': 611,
  33464. 'multiply': 675,
  33465. 'uacute': 500,
  33466. 'Tcaron': 556,
  33467. 'partialdiff': 476,
  33468. 'ydieresis': 444,
  33469. 'Nacute': 667,
  33470. 'icircumflex': 278,
  33471. 'Ecircumflex': 611,
  33472. 'adieresis': 500,
  33473. 'edieresis': 444,
  33474. 'cacute': 444,
  33475. 'nacute': 500,
  33476. 'umacron': 500,
  33477. 'Ncaron': 667,
  33478. 'Iacute': 333,
  33479. 'plusminus': 675,
  33480. 'brokenbar': 275,
  33481. 'registered': 760,
  33482. 'Gbreve': 722,
  33483. 'Idotaccent': 333,
  33484. 'summation': 600,
  33485. 'Egrave': 611,
  33486. 'racute': 389,
  33487. 'omacron': 500,
  33488. 'Zacute': 556,
  33489. 'Zcaron': 556,
  33490. 'greaterequal': 549,
  33491. 'Eth': 722,
  33492. 'Ccedilla': 667,
  33493. 'lcommaaccent': 278,
  33494. 'tcaron': 300,
  33495. 'eogonek': 444,
  33496. 'Uogonek': 722,
  33497. 'Aacute': 611,
  33498. 'Adieresis': 611,
  33499. 'egrave': 444,
  33500. 'zacute': 389,
  33501. 'iogonek': 278,
  33502. 'Oacute': 722,
  33503. 'oacute': 500,
  33504. 'amacron': 500,
  33505. 'sacute': 389,
  33506. 'idieresis': 278,
  33507. 'Ocircumflex': 722,
  33508. 'Ugrave': 722,
  33509. 'Delta': 612,
  33510. 'thorn': 500,
  33511. 'twosuperior': 300,
  33512. 'Odieresis': 722,
  33513. 'mu': 500,
  33514. 'igrave': 278,
  33515. 'ohungarumlaut': 500,
  33516. 'Eogonek': 611,
  33517. 'dcroat': 500,
  33518. 'threequarters': 750,
  33519. 'Scedilla': 500,
  33520. 'lcaron': 300,
  33521. 'Kcommaaccent': 667,
  33522. 'Lacute': 556,
  33523. 'trademark': 980,
  33524. 'edotaccent': 444,
  33525. 'Igrave': 333,
  33526. 'Imacron': 333,
  33527. 'Lcaron': 611,
  33528. 'onehalf': 750,
  33529. 'lessequal': 549,
  33530. 'ocircumflex': 500,
  33531. 'ntilde': 500,
  33532. 'Uhungarumlaut': 722,
  33533. 'Eacute': 611,
  33534. 'emacron': 444,
  33535. 'gbreve': 500,
  33536. 'onequarter': 750,
  33537. 'Scaron': 500,
  33538. 'Scommaaccent': 500,
  33539. 'Ohungarumlaut': 722,
  33540. 'degree': 400,
  33541. 'ograve': 500,
  33542. 'Ccaron': 667,
  33543. 'ugrave': 500,
  33544. 'radical': 453,
  33545. 'Dcaron': 722,
  33546. 'rcommaaccent': 389,
  33547. 'Ntilde': 667,
  33548. 'otilde': 500,
  33549. 'Rcommaaccent': 611,
  33550. 'Lcommaaccent': 556,
  33551. 'Atilde': 611,
  33552. 'Aogonek': 611,
  33553. 'Aring': 611,
  33554. 'Otilde': 722,
  33555. 'zdotaccent': 389,
  33556. 'Ecaron': 611,
  33557. 'Iogonek': 333,
  33558. 'kcommaaccent': 444,
  33559. 'minus': 675,
  33560. 'Icircumflex': 333,
  33561. 'ncaron': 500,
  33562. 'tcommaaccent': 278,
  33563. 'logicalnot': 675,
  33564. 'odieresis': 500,
  33565. 'udieresis': 500,
  33566. 'notequal': 549,
  33567. 'gcommaaccent': 500,
  33568. 'eth': 500,
  33569. 'zcaron': 389,
  33570. 'ncommaaccent': 500,
  33571. 'onesuperior': 300,
  33572. 'imacron': 278,
  33573. 'Euro': 500
  33574. },
  33575. 'ZapfDingbats': {
  33576. 'space': 278,
  33577. 'a1': 974,
  33578. 'a2': 961,
  33579. 'a202': 974,
  33580. 'a3': 980,
  33581. 'a4': 719,
  33582. 'a5': 789,
  33583. 'a119': 790,
  33584. 'a118': 791,
  33585. 'a117': 690,
  33586. 'a11': 960,
  33587. 'a12': 939,
  33588. 'a13': 549,
  33589. 'a14': 855,
  33590. 'a15': 911,
  33591. 'a16': 933,
  33592. 'a105': 911,
  33593. 'a17': 945,
  33594. 'a18': 974,
  33595. 'a19': 755,
  33596. 'a20': 846,
  33597. 'a21': 762,
  33598. 'a22': 761,
  33599. 'a23': 571,
  33600. 'a24': 677,
  33601. 'a25': 763,
  33602. 'a26': 760,
  33603. 'a27': 759,
  33604. 'a28': 754,
  33605. 'a6': 494,
  33606. 'a7': 552,
  33607. 'a8': 537,
  33608. 'a9': 577,
  33609. 'a10': 692,
  33610. 'a29': 786,
  33611. 'a30': 788,
  33612. 'a31': 788,
  33613. 'a32': 790,
  33614. 'a33': 793,
  33615. 'a34': 794,
  33616. 'a35': 816,
  33617. 'a36': 823,
  33618. 'a37': 789,
  33619. 'a38': 841,
  33620. 'a39': 823,
  33621. 'a40': 833,
  33622. 'a41': 816,
  33623. 'a42': 831,
  33624. 'a43': 923,
  33625. 'a44': 744,
  33626. 'a45': 723,
  33627. 'a46': 749,
  33628. 'a47': 790,
  33629. 'a48': 792,
  33630. 'a49': 695,
  33631. 'a50': 776,
  33632. 'a51': 768,
  33633. 'a52': 792,
  33634. 'a53': 759,
  33635. 'a54': 707,
  33636. 'a55': 708,
  33637. 'a56': 682,
  33638. 'a57': 701,
  33639. 'a58': 826,
  33640. 'a59': 815,
  33641. 'a60': 789,
  33642. 'a61': 789,
  33643. 'a62': 707,
  33644. 'a63': 687,
  33645. 'a64': 696,
  33646. 'a65': 689,
  33647. 'a66': 786,
  33648. 'a67': 787,
  33649. 'a68': 713,
  33650. 'a69': 791,
  33651. 'a70': 785,
  33652. 'a71': 791,
  33653. 'a72': 873,
  33654. 'a73': 761,
  33655. 'a74': 762,
  33656. 'a203': 762,
  33657. 'a75': 759,
  33658. 'a204': 759,
  33659. 'a76': 892,
  33660. 'a77': 892,
  33661. 'a78': 788,
  33662. 'a79': 784,
  33663. 'a81': 438,
  33664. 'a82': 138,
  33665. 'a83': 277,
  33666. 'a84': 415,
  33667. 'a97': 392,
  33668. 'a98': 392,
  33669. 'a99': 668,
  33670. 'a100': 668,
  33671. 'a89': 390,
  33672. 'a90': 390,
  33673. 'a93': 317,
  33674. 'a94': 317,
  33675. 'a91': 276,
  33676. 'a92': 276,
  33677. 'a205': 509,
  33678. 'a85': 509,
  33679. 'a206': 410,
  33680. 'a86': 410,
  33681. 'a87': 234,
  33682. 'a88': 234,
  33683. 'a95': 334,
  33684. 'a96': 334,
  33685. 'a101': 732,
  33686. 'a102': 544,
  33687. 'a103': 544,
  33688. 'a104': 910,
  33689. 'a106': 667,
  33690. 'a107': 760,
  33691. 'a108': 760,
  33692. 'a112': 776,
  33693. 'a111': 595,
  33694. 'a110': 694,
  33695. 'a109': 626,
  33696. 'a120': 788,
  33697. 'a121': 788,
  33698. 'a122': 788,
  33699. 'a123': 788,
  33700. 'a124': 788,
  33701. 'a125': 788,
  33702. 'a126': 788,
  33703. 'a127': 788,
  33704. 'a128': 788,
  33705. 'a129': 788,
  33706. 'a130': 788,
  33707. 'a131': 788,
  33708. 'a132': 788,
  33709. 'a133': 788,
  33710. 'a134': 788,
  33711. 'a135': 788,
  33712. 'a136': 788,
  33713. 'a137': 788,
  33714. 'a138': 788,
  33715. 'a139': 788,
  33716. 'a140': 788,
  33717. 'a141': 788,
  33718. 'a142': 788,
  33719. 'a143': 788,
  33720. 'a144': 788,
  33721. 'a145': 788,
  33722. 'a146': 788,
  33723. 'a147': 788,
  33724. 'a148': 788,
  33725. 'a149': 788,
  33726. 'a150': 788,
  33727. 'a151': 788,
  33728. 'a152': 788,
  33729. 'a153': 788,
  33730. 'a154': 788,
  33731. 'a155': 788,
  33732. 'a156': 788,
  33733. 'a157': 788,
  33734. 'a158': 788,
  33735. 'a159': 788,
  33736. 'a160': 894,
  33737. 'a161': 838,
  33738. 'a163': 1016,
  33739. 'a164': 458,
  33740. 'a196': 748,
  33741. 'a165': 924,
  33742. 'a192': 748,
  33743. 'a166': 918,
  33744. 'a167': 927,
  33745. 'a168': 928,
  33746. 'a169': 928,
  33747. 'a170': 834,
  33748. 'a171': 873,
  33749. 'a172': 828,
  33750. 'a173': 924,
  33751. 'a162': 924,
  33752. 'a174': 917,
  33753. 'a175': 930,
  33754. 'a176': 931,
  33755. 'a177': 463,
  33756. 'a178': 883,
  33757. 'a179': 836,
  33758. 'a193': 836,
  33759. 'a180': 867,
  33760. 'a199': 867,
  33761. 'a181': 696,
  33762. 'a200': 696,
  33763. 'a182': 874,
  33764. 'a201': 874,
  33765. 'a183': 760,
  33766. 'a184': 946,
  33767. 'a197': 771,
  33768. 'a185': 865,
  33769. 'a194': 771,
  33770. 'a198': 888,
  33771. 'a186': 967,
  33772. 'a195': 888,
  33773. 'a187': 831,
  33774. 'a188': 873,
  33775. 'a189': 927,
  33776. 'a190': 970,
  33777. 'a191': 918
  33778. }
  33779. };
  33780. var EOF = {};
  33781. function isEOF(v) {
  33782. return (v === EOF);
  33783. }
  33784. var Parser = (function ParserClosure() {
  33785. function Parser(lexer, allowStreams, xref) {
  33786. this.lexer = lexer;
  33787. this.allowStreams = allowStreams;
  33788. this.xref = xref;
  33789. this.imageCache = {
  33790. length: 0,
  33791. adler32: 0,
  33792. stream: null
  33793. };
  33794. this.refill();
  33795. }
  33796. Parser.prototype = {
  33797. refill: function Parser_refill() {
  33798. this.buf1 = this.lexer.getObj();
  33799. this.buf2 = this.lexer.getObj();
  33800. },
  33801. shift: function Parser_shift() {
  33802. if (isCmd(this.buf2, 'ID')) {
  33803. this.buf1 = this.buf2;
  33804. this.buf2 = null;
  33805. } else {
  33806. this.buf1 = this.buf2;
  33807. this.buf2 = this.lexer.getObj();
  33808. }
  33809. },
  33810. getObj: function Parser_getObj(cipherTransform) {
  33811. var buf1 = this.buf1;
  33812. this.shift();
  33813. if (buf1 instanceof Cmd) {
  33814. switch (buf1.cmd) {
  33815. case 'BI': // inline image
  33816. return this.makeInlineImage(cipherTransform);
  33817. case '[': // array
  33818. var array = [];
  33819. while (!isCmd(this.buf1, ']') && !isEOF(this.buf1)) {
  33820. array.push(this.getObj(cipherTransform));
  33821. }
  33822. if (isEOF(this.buf1)) {
  33823. error('End of file inside array');
  33824. }
  33825. this.shift();
  33826. return array;
  33827. case '<<': // dictionary or stream
  33828. var dict = new Dict(this.xref);
  33829. while (!isCmd(this.buf1, '>>') && !isEOF(this.buf1)) {
  33830. if (!isName(this.buf1)) {
  33831. info('Malformed dictionary: key must be a name object');
  33832. this.shift();
  33833. continue;
  33834. }
  33835. var key = this.buf1.name;
  33836. this.shift();
  33837. if (isEOF(this.buf1)) {
  33838. break;
  33839. }
  33840. dict.set(key, this.getObj(cipherTransform));
  33841. }
  33842. if (isEOF(this.buf1)) {
  33843. error('End of file inside dictionary');
  33844. }
  33845. // Stream objects are not allowed inside content streams or
  33846. // object streams.
  33847. if (isCmd(this.buf2, 'stream')) {
  33848. return (this.allowStreams ?
  33849. this.makeStream(dict, cipherTransform) : dict);
  33850. }
  33851. this.shift();
  33852. return dict;
  33853. default: // simple object
  33854. return buf1;
  33855. }
  33856. }
  33857. if (isInt(buf1)) { // indirect reference or integer
  33858. var num = buf1;
  33859. if (isInt(this.buf1) && isCmd(this.buf2, 'R')) {
  33860. var ref = new Ref(num, this.buf1);
  33861. this.shift();
  33862. this.shift();
  33863. return ref;
  33864. }
  33865. return num;
  33866. }
  33867. if (isString(buf1)) { // string
  33868. var str = buf1;
  33869. if (cipherTransform) {
  33870. str = cipherTransform.decryptString(str);
  33871. }
  33872. return str;
  33873. }
  33874. // simple object
  33875. return buf1;
  33876. },
  33877. makeInlineImage: function Parser_makeInlineImage(cipherTransform) {
  33878. var lexer = this.lexer;
  33879. var stream = lexer.stream;
  33880. // parse dictionary
  33881. var dict = new Dict(null);
  33882. while (!isCmd(this.buf1, 'ID') && !isEOF(this.buf1)) {
  33883. if (!isName(this.buf1)) {
  33884. error('Dictionary key must be a name object');
  33885. }
  33886. var key = this.buf1.name;
  33887. this.shift();
  33888. if (isEOF(this.buf1)) {
  33889. break;
  33890. }
  33891. dict.set(key, this.getObj(cipherTransform));
  33892. }
  33893. // parse image stream
  33894. var startPos = stream.pos;
  33895. // searching for the /EI\s/
  33896. var state = 0, ch, i, ii;
  33897. while (state != 4 && (ch = stream.getByte()) !== -1) {
  33898. switch (ch | 0) {
  33899. case 0x20:
  33900. case 0x0D:
  33901. case 0x0A:
  33902. // let's check next five bytes to be ASCII... just be sure
  33903. var followingBytes = stream.peekBytes(5);
  33904. for (i = 0, ii = followingBytes.length; i < ii; i++) {
  33905. ch = followingBytes[i];
  33906. if (ch !== 0x0A && ch !== 0x0D && (ch < 0x20 || ch > 0x7F)) {
  33907. // not a LF, CR, SPACE or any visible ASCII character
  33908. state = 0;
  33909. break; // some binary stuff found, resetting the state
  33910. }
  33911. }
  33912. state = (state === 3 ? 4 : 0);
  33913. break;
  33914. case 0x45:
  33915. state = 2;
  33916. break;
  33917. case 0x49:
  33918. state = (state === 2 ? 3 : 0);
  33919. break;
  33920. default:
  33921. state = 0;
  33922. break;
  33923. }
  33924. }
  33925. var length = (stream.pos - 4) - startPos;
  33926. var imageStream = stream.makeSubStream(startPos, length, dict);
  33927. // trying to cache repeat images, first we are trying to "warm up" caching
  33928. // using length, then comparing adler32
  33929. var MAX_LENGTH_TO_CACHE = 1000;
  33930. var cacheImage = false, adler32;
  33931. if (length < MAX_LENGTH_TO_CACHE && this.imageCache.length === length) {
  33932. var imageBytes = imageStream.getBytes();
  33933. imageStream.reset();
  33934. var a = 1;
  33935. var b = 0;
  33936. for (i = 0, ii = imageBytes.length; i < ii; ++i) {
  33937. a = (a + (imageBytes[i] & 0xff)) % 65521;
  33938. b = (b + a) % 65521;
  33939. }
  33940. adler32 = (b << 16) | a;
  33941. if (this.imageCache.stream && this.imageCache.adler32 === adler32) {
  33942. this.buf2 = Cmd.get('EI');
  33943. this.shift();
  33944. this.imageCache.stream.reset();
  33945. return this.imageCache.stream;
  33946. }
  33947. cacheImage = true;
  33948. }
  33949. if (!cacheImage && !this.imageCache.stream) {
  33950. this.imageCache.length = length;
  33951. this.imageCache.stream = null;
  33952. }
  33953. if (cipherTransform) {
  33954. imageStream = cipherTransform.createStream(imageStream, length);
  33955. }
  33956. imageStream = this.filter(imageStream, dict, length);
  33957. imageStream.dict = dict;
  33958. if (cacheImage) {
  33959. imageStream.cacheKey = 'inline_' + length + '_' + adler32;
  33960. this.imageCache.adler32 = adler32;
  33961. this.imageCache.stream = imageStream;
  33962. }
  33963. this.buf2 = Cmd.get('EI');
  33964. this.shift();
  33965. return imageStream;
  33966. },
  33967. fetchIfRef: function Parser_fetchIfRef(obj) {
  33968. // not relying on the xref.fetchIfRef -- xref might not be set
  33969. return (isRef(obj) ? this.xref.fetch(obj) : obj);
  33970. },
  33971. makeStream: function Parser_makeStream(dict, cipherTransform) {
  33972. var lexer = this.lexer;
  33973. var stream = lexer.stream;
  33974. // get stream start position
  33975. lexer.skipToNextLine();
  33976. var pos = stream.pos - 1;
  33977. // get length
  33978. var length = this.fetchIfRef(dict.get('Length'));
  33979. if (!isInt(length)) {
  33980. info('Bad ' + length + ' attribute in stream');
  33981. length = 0;
  33982. }
  33983. // skip over the stream data
  33984. stream.pos = pos + length;
  33985. lexer.nextChar();
  33986. this.shift(); // '>>'
  33987. this.shift(); // 'stream'
  33988. if (!isCmd(this.buf1, 'endstream')) {
  33989. // bad stream length, scanning for endstream
  33990. stream.pos = pos;
  33991. var SCAN_BLOCK_SIZE = 2048;
  33992. var ENDSTREAM_SIGNATURE_LENGTH = 9;
  33993. var ENDSTREAM_SIGNATURE = [0x65, 0x6E, 0x64, 0x73, 0x74, 0x72, 0x65,
  33994. 0x61, 0x6D];
  33995. var skipped = 0, found = false, i, j;
  33996. while (stream.pos < stream.end) {
  33997. var scanBytes = stream.peekBytes(SCAN_BLOCK_SIZE);
  33998. var scanLength = scanBytes.length - ENDSTREAM_SIGNATURE_LENGTH;
  33999. if (scanLength <= 0) {
  34000. break;
  34001. }
  34002. found = false;
  34003. for (i = 0, j = 0; i < scanLength; i++) {
  34004. var b = scanBytes[i];
  34005. if (b !== ENDSTREAM_SIGNATURE[j]) {
  34006. i -= j;
  34007. j = 0;
  34008. } else {
  34009. j++;
  34010. if (j >= ENDSTREAM_SIGNATURE_LENGTH) {
  34011. i++;
  34012. found = true;
  34013. break;
  34014. }
  34015. }
  34016. }
  34017. if (found) {
  34018. skipped += i - ENDSTREAM_SIGNATURE_LENGTH;
  34019. stream.pos += i - ENDSTREAM_SIGNATURE_LENGTH;
  34020. break;
  34021. }
  34022. skipped += scanLength;
  34023. stream.pos += scanLength;
  34024. }
  34025. if (!found) {
  34026. error('Missing endstream');
  34027. }
  34028. length = skipped;
  34029. lexer.nextChar();
  34030. this.shift();
  34031. this.shift();
  34032. }
  34033. this.shift(); // 'endstream'
  34034. stream = stream.makeSubStream(pos, length, dict);
  34035. if (cipherTransform) {
  34036. stream = cipherTransform.createStream(stream, length);
  34037. }
  34038. stream = this.filter(stream, dict, length);
  34039. stream.dict = dict;
  34040. return stream;
  34041. },
  34042. filter: function Parser_filter(stream, dict, length) {
  34043. var filter = this.fetchIfRef(dict.get('Filter', 'F'));
  34044. var params = this.fetchIfRef(dict.get('DecodeParms', 'DP'));
  34045. if (isName(filter)) {
  34046. return this.makeFilter(stream, filter.name, length, params);
  34047. }
  34048. var maybeLength = length;
  34049. if (isArray(filter)) {
  34050. var filterArray = filter;
  34051. var paramsArray = params;
  34052. for (var i = 0, ii = filterArray.length; i < ii; ++i) {
  34053. filter = filterArray[i];
  34054. if (!isName(filter)) {
  34055. error('Bad filter name: ' + filter);
  34056. }
  34057. params = null;
  34058. if (isArray(paramsArray) && (i in paramsArray)) {
  34059. params = paramsArray[i];
  34060. }
  34061. stream = this.makeFilter(stream, filter.name, maybeLength, params);
  34062. // after the first stream the length variable is invalid
  34063. maybeLength = null;
  34064. }
  34065. }
  34066. return stream;
  34067. },
  34068. makeFilter: function Parser_makeFilter(stream, name, maybeLength, params) {
  34069. if (stream.dict.get('Length') === 0) {
  34070. return new NullStream(stream);
  34071. }
  34072. try {
  34073. var xrefStreamStats = this.xref.stats.streamTypes;
  34074. if (name == 'FlateDecode' || name == 'Fl') {
  34075. xrefStreamStats[StreamType.FLATE] = true;
  34076. if (params) {
  34077. return new PredictorStream(new FlateStream(stream, maybeLength),
  34078. maybeLength, params);
  34079. }
  34080. return new FlateStream(stream, maybeLength);
  34081. }
  34082. if (name == 'LZWDecode' || name == 'LZW') {
  34083. xrefStreamStats[StreamType.LZW] = true;
  34084. var earlyChange = 1;
  34085. if (params) {
  34086. if (params.has('EarlyChange')) {
  34087. earlyChange = params.get('EarlyChange');
  34088. }
  34089. return new PredictorStream(
  34090. new LZWStream(stream, maybeLength, earlyChange),
  34091. maybeLength, params);
  34092. }
  34093. return new LZWStream(stream, maybeLength, earlyChange);
  34094. }
  34095. if (name == 'DCTDecode' || name == 'DCT') {
  34096. xrefStreamStats[StreamType.DCT] = true;
  34097. return new JpegStream(stream, maybeLength, stream.dict, this.xref);
  34098. }
  34099. if (name == 'JPXDecode' || name == 'JPX') {
  34100. xrefStreamStats[StreamType.JPX] = true;
  34101. return new JpxStream(stream, maybeLength, stream.dict);
  34102. }
  34103. if (name == 'ASCII85Decode' || name == 'A85') {
  34104. xrefStreamStats[StreamType.A85] = true;
  34105. return new Ascii85Stream(stream, maybeLength);
  34106. }
  34107. if (name == 'ASCIIHexDecode' || name == 'AHx') {
  34108. xrefStreamStats[StreamType.AHX] = true;
  34109. return new AsciiHexStream(stream, maybeLength);
  34110. }
  34111. if (name == 'CCITTFaxDecode' || name == 'CCF') {
  34112. xrefStreamStats[StreamType.CCF] = true;
  34113. return new CCITTFaxStream(stream, maybeLength, params);
  34114. }
  34115. if (name == 'RunLengthDecode' || name == 'RL') {
  34116. xrefStreamStats[StreamType.RL] = true;
  34117. return new RunLengthStream(stream, maybeLength);
  34118. }
  34119. if (name == 'JBIG2Decode') {
  34120. xrefStreamStats[StreamType.JBIG] = true;
  34121. return new Jbig2Stream(stream, maybeLength, stream.dict);
  34122. }
  34123. warn('filter "' + name + '" not supported yet');
  34124. return stream;
  34125. } catch (ex) {
  34126. if (ex instanceof MissingDataException) {
  34127. throw ex;
  34128. }
  34129. warn('Invalid stream: \"' + ex + '\"');
  34130. return new NullStream(stream);
  34131. }
  34132. }
  34133. };
  34134. return Parser;
  34135. })();
  34136. var Lexer = (function LexerClosure() {
  34137. function Lexer(stream, knownCommands) {
  34138. this.stream = stream;
  34139. this.nextChar();
  34140. // While lexing, we build up many strings one char at a time. Using += for
  34141. // this can result in lots of garbage strings. It's better to build an
  34142. // array of single-char strings and then join() them together at the end.
  34143. // And reusing a single array (i.e. |this.strBuf|) over and over for this
  34144. // purpose uses less memory than using a new array for each string.
  34145. this.strBuf = [];
  34146. // The PDFs might have "glued" commands with other commands, operands or
  34147. // literals, e.g. "q1". The knownCommands is a dictionary of the valid
  34148. // commands and their prefixes. The prefixes are built the following way:
  34149. // if there a command that is a prefix of the other valid command or
  34150. // literal (e.g. 'f' and 'false') the following prefixes must be included,
  34151. // 'fa', 'fal', 'fals'. The prefixes are not needed, if the command has no
  34152. // other commands or literals as a prefix. The knowCommands is optional.
  34153. this.knownCommands = knownCommands;
  34154. }
  34155. Lexer.isSpace = function Lexer_isSpace(ch) {
  34156. // Space is one of the following characters: SPACE, TAB, CR or LF.
  34157. return (ch === 0x20 || ch === 0x09 || ch === 0x0D || ch === 0x0A);
  34158. };
  34159. // A '1' in this array means the character is white space. A '1' or
  34160. // '2' means the character ends a name or command.
  34161. var specialChars = [
  34162. 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, // 0x
  34163. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
  34164. 1, 0, 0, 0, 0, 2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2, // 2x
  34165. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, // 3x
  34166. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 4x
  34167. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 5x
  34168. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 6x
  34169. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 0, // 7x
  34170. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
  34171. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
  34172. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ax
  34173. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // bx
  34174. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // cx
  34175. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // dx
  34176. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ex
  34177. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 // fx
  34178. ];
  34179. function toHexDigit(ch) {
  34180. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  34181. return ch & 0x0F;
  34182. }
  34183. if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  34184. // 'A'-'F', 'a'-'f'
  34185. return (ch & 0x0F) + 9;
  34186. }
  34187. return -1;
  34188. }
  34189. Lexer.prototype = {
  34190. nextChar: function Lexer_nextChar() {
  34191. return (this.currentChar = this.stream.getByte());
  34192. },
  34193. peekChar: function Lexer_peekChar() {
  34194. return this.stream.peekBytes(1)[0];
  34195. },
  34196. getNumber: function Lexer_getNumber() {
  34197. var ch = this.currentChar;
  34198. var eNotation = false;
  34199. var divideBy = 0; // different from 0 if it's a floating point value
  34200. var sign = 1;
  34201. if (ch === 0x2D) { // '-'
  34202. sign = -1;
  34203. ch = this.nextChar();
  34204. } else if (ch === 0x2B) { // '+'
  34205. ch = this.nextChar();
  34206. }
  34207. if (ch === 0x2E) { // '.'
  34208. divideBy = 10;
  34209. ch = this.nextChar();
  34210. }
  34211. if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  34212. error('Invalid number: ' + String.fromCharCode(ch));
  34213. return 0;
  34214. }
  34215. var baseValue = ch - 0x30; // '0'
  34216. var powerValue = 0;
  34217. var powerValueSign = 1;
  34218. while ((ch = this.nextChar()) >= 0) {
  34219. if (0x30 <= ch && ch <= 0x39) { // '0' - '9'
  34220. var currentDigit = ch - 0x30; // '0'
  34221. if (eNotation) { // We are after an 'e' or 'E'
  34222. powerValue = powerValue * 10 + currentDigit;
  34223. } else {
  34224. if (divideBy !== 0) { // We are after a point
  34225. divideBy *= 10;
  34226. }
  34227. baseValue = baseValue * 10 + currentDigit;
  34228. }
  34229. } else if (ch === 0x2E) { // '.'
  34230. if (divideBy === 0) {
  34231. divideBy = 1;
  34232. } else {
  34233. // A number can have only one '.'
  34234. break;
  34235. }
  34236. } else if (ch === 0x2D) { // '-'
  34237. // ignore minus signs in the middle of numbers to match
  34238. // Adobe's behavior
  34239. warn('Badly formated number');
  34240. } else if (ch === 0x45 || ch === 0x65) { // 'E', 'e'
  34241. // 'E' can be either a scientific notation or the beginning of a new
  34242. // operator
  34243. ch = this.peekChar();
  34244. if (ch === 0x2B || ch === 0x2D) { // '+', '-'
  34245. powerValueSign = (ch === 0x2D) ? -1 : 1;
  34246. this.nextChar(); // Consume the sign character
  34247. } else if (ch < 0x30 || ch > 0x39) { // '0' - '9'
  34248. // The 'E' must be the beginning of a new operator
  34249. break;
  34250. }
  34251. eNotation = true;
  34252. } else {
  34253. // the last character doesn't belong to us
  34254. break;
  34255. }
  34256. }
  34257. if (divideBy !== 0) {
  34258. baseValue /= divideBy;
  34259. }
  34260. if (eNotation) {
  34261. baseValue *= Math.pow(10, powerValueSign * powerValue);
  34262. }
  34263. return sign * baseValue;
  34264. },
  34265. getString: function Lexer_getString() {
  34266. var numParen = 1;
  34267. var done = false;
  34268. var strBuf = this.strBuf;
  34269. strBuf.length = 0;
  34270. var ch = this.nextChar();
  34271. while (true) {
  34272. var charBuffered = false;
  34273. switch (ch | 0) {
  34274. case -1:
  34275. warn('Unterminated string');
  34276. done = true;
  34277. break;
  34278. case 0x28: // '('
  34279. ++numParen;
  34280. strBuf.push('(');
  34281. break;
  34282. case 0x29: // ')'
  34283. if (--numParen === 0) {
  34284. this.nextChar(); // consume strings ')'
  34285. done = true;
  34286. } else {
  34287. strBuf.push(')');
  34288. }
  34289. break;
  34290. case 0x5C: // '\\'
  34291. ch = this.nextChar();
  34292. switch (ch) {
  34293. case -1:
  34294. warn('Unterminated string');
  34295. done = true;
  34296. break;
  34297. case 0x6E: // 'n'
  34298. strBuf.push('\n');
  34299. break;
  34300. case 0x72: // 'r'
  34301. strBuf.push('\r');
  34302. break;
  34303. case 0x74: // 't'
  34304. strBuf.push('\t');
  34305. break;
  34306. case 0x62: // 'b'
  34307. strBuf.push('\b');
  34308. break;
  34309. case 0x66: // 'f'
  34310. strBuf.push('\f');
  34311. break;
  34312. case 0x5C: // '\'
  34313. case 0x28: // '('
  34314. case 0x29: // ')'
  34315. strBuf.push(String.fromCharCode(ch));
  34316. break;
  34317. case 0x30: case 0x31: case 0x32: case 0x33: // '0'-'3'
  34318. case 0x34: case 0x35: case 0x36: case 0x37: // '4'-'7'
  34319. var x = ch & 0x0F;
  34320. ch = this.nextChar();
  34321. charBuffered = true;
  34322. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  34323. x = (x << 3) + (ch & 0x0F);
  34324. ch = this.nextChar();
  34325. if (ch >= 0x30 && ch <= 0x37) { // '0'-'7'
  34326. charBuffered = false;
  34327. x = (x << 3) + (ch & 0x0F);
  34328. }
  34329. }
  34330. strBuf.push(String.fromCharCode(x));
  34331. break;
  34332. case 0x0D: // CR
  34333. if (this.peekChar() === 0x0A) { // LF
  34334. this.nextChar();
  34335. }
  34336. break;
  34337. case 0x0A: // LF
  34338. break;
  34339. default:
  34340. strBuf.push(String.fromCharCode(ch));
  34341. break;
  34342. }
  34343. break;
  34344. default:
  34345. strBuf.push(String.fromCharCode(ch));
  34346. break;
  34347. }
  34348. if (done) {
  34349. break;
  34350. }
  34351. if (!charBuffered) {
  34352. ch = this.nextChar();
  34353. }
  34354. }
  34355. return strBuf.join('');
  34356. },
  34357. getName: function Lexer_getName() {
  34358. var ch;
  34359. var strBuf = this.strBuf;
  34360. strBuf.length = 0;
  34361. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  34362. if (ch === 0x23) { // '#'
  34363. ch = this.nextChar();
  34364. var x = toHexDigit(ch);
  34365. if (x != -1) {
  34366. var x2 = toHexDigit(this.nextChar());
  34367. if (x2 === -1) {
  34368. error('Illegal digit in hex char in name: ' + x2);
  34369. }
  34370. strBuf.push(String.fromCharCode((x << 4) | x2));
  34371. } else {
  34372. strBuf.push('#', String.fromCharCode(ch));
  34373. }
  34374. } else {
  34375. strBuf.push(String.fromCharCode(ch));
  34376. }
  34377. }
  34378. if (strBuf.length > 128) {
  34379. error('Warning: name token is longer than allowed by the spec: ' +
  34380. strBuf.length);
  34381. }
  34382. return Name.get(strBuf.join(''));
  34383. },
  34384. getHexString: function Lexer_getHexString() {
  34385. var strBuf = this.strBuf;
  34386. strBuf.length = 0;
  34387. var ch = this.currentChar;
  34388. var isFirstHex = true;
  34389. var firstDigit;
  34390. var secondDigit;
  34391. while (true) {
  34392. if (ch < 0) {
  34393. warn('Unterminated hex string');
  34394. break;
  34395. } else if (ch === 0x3E) { // '>'
  34396. this.nextChar();
  34397. break;
  34398. } else if (specialChars[ch] === 1) {
  34399. ch = this.nextChar();
  34400. continue;
  34401. } else {
  34402. if (isFirstHex) {
  34403. firstDigit = toHexDigit(ch);
  34404. if (firstDigit === -1) {
  34405. warn('Ignoring invalid character "' + ch + '" in hex string');
  34406. ch = this.nextChar();
  34407. continue;
  34408. }
  34409. } else {
  34410. secondDigit = toHexDigit(ch);
  34411. if (secondDigit === -1) {
  34412. warn('Ignoring invalid character "' + ch + '" in hex string');
  34413. ch = this.nextChar();
  34414. continue;
  34415. }
  34416. strBuf.push(String.fromCharCode((firstDigit << 4) | secondDigit));
  34417. }
  34418. isFirstHex = !isFirstHex;
  34419. ch = this.nextChar();
  34420. }
  34421. }
  34422. return strBuf.join('');
  34423. },
  34424. getObj: function Lexer_getObj() {
  34425. // skip whitespace and comments
  34426. var comment = false;
  34427. var ch = this.currentChar;
  34428. while (true) {
  34429. if (ch < 0) {
  34430. return EOF;
  34431. }
  34432. if (comment) {
  34433. if (ch === 0x0A || ch === 0x0D) { // LF, CR
  34434. comment = false;
  34435. }
  34436. } else if (ch === 0x25) { // '%'
  34437. comment = true;
  34438. } else if (specialChars[ch] !== 1) {
  34439. break;
  34440. }
  34441. ch = this.nextChar();
  34442. }
  34443. // start reading token
  34444. switch (ch | 0) {
  34445. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  34446. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  34447. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  34448. return this.getNumber();
  34449. case 0x28: // '('
  34450. return this.getString();
  34451. case 0x2F: // '/'
  34452. return this.getName();
  34453. // array punctuation
  34454. case 0x5B: // '['
  34455. this.nextChar();
  34456. return Cmd.get('[');
  34457. case 0x5D: // ']'
  34458. this.nextChar();
  34459. return Cmd.get(']');
  34460. // hex string or dict punctuation
  34461. case 0x3C: // '<'
  34462. ch = this.nextChar();
  34463. if (ch === 0x3C) {
  34464. // dict punctuation
  34465. this.nextChar();
  34466. return Cmd.get('<<');
  34467. }
  34468. return this.getHexString();
  34469. // dict punctuation
  34470. case 0x3E: // '>'
  34471. ch = this.nextChar();
  34472. if (ch === 0x3E) {
  34473. this.nextChar();
  34474. return Cmd.get('>>');
  34475. }
  34476. return Cmd.get('>');
  34477. case 0x7B: // '{'
  34478. this.nextChar();
  34479. return Cmd.get('{');
  34480. case 0x7D: // '}'
  34481. this.nextChar();
  34482. return Cmd.get('}');
  34483. case 0x29: // ')'
  34484. error('Illegal character: ' + ch);
  34485. break;
  34486. }
  34487. // command
  34488. var str = String.fromCharCode(ch);
  34489. var knownCommands = this.knownCommands;
  34490. var knownCommandFound = knownCommands && knownCommands[str] !== undefined;
  34491. while ((ch = this.nextChar()) >= 0 && !specialChars[ch]) {
  34492. // stop if known command is found and next character does not make
  34493. // the str a command
  34494. var possibleCommand = str + String.fromCharCode(ch);
  34495. if (knownCommandFound && knownCommands[possibleCommand] === undefined) {
  34496. break;
  34497. }
  34498. if (str.length === 128) {
  34499. error('Command token too long: ' + str.length);
  34500. }
  34501. str = possibleCommand;
  34502. knownCommandFound = knownCommands && knownCommands[str] !== undefined;
  34503. }
  34504. if (str === 'true') {
  34505. return true;
  34506. }
  34507. if (str === 'false') {
  34508. return false;
  34509. }
  34510. if (str === 'null') {
  34511. return null;
  34512. }
  34513. return Cmd.get(str);
  34514. },
  34515. skipToNextLine: function Lexer_skipToNextLine() {
  34516. var ch = this.currentChar;
  34517. while (ch >= 0) {
  34518. if (ch === 0x0D) { // CR
  34519. ch = this.nextChar();
  34520. if (ch === 0x0A) { // LF
  34521. this.nextChar();
  34522. }
  34523. break;
  34524. } else if (ch === 0x0A) { // LF
  34525. this.nextChar();
  34526. break;
  34527. }
  34528. ch = this.nextChar();
  34529. }
  34530. }
  34531. };
  34532. return Lexer;
  34533. })();
  34534. var Linearization = (function LinearizationClosure() {
  34535. function Linearization(stream) {
  34536. this.parser = new Parser(new Lexer(stream), false, null);
  34537. var obj1 = this.parser.getObj();
  34538. var obj2 = this.parser.getObj();
  34539. var obj3 = this.parser.getObj();
  34540. this.linDict = this.parser.getObj();
  34541. if (isInt(obj1) && isInt(obj2) && isCmd(obj3, 'obj') &&
  34542. isDict(this.linDict)) {
  34543. var obj = this.linDict.get('Linearized');
  34544. if (!(isNum(obj) && obj > 0)) {
  34545. this.linDict = null;
  34546. }
  34547. }
  34548. }
  34549. Linearization.prototype = {
  34550. getInt: function Linearization_getInt(name) {
  34551. var linDict = this.linDict;
  34552. var obj;
  34553. if (isDict(linDict) && isInt(obj = linDict.get(name)) && obj > 0) {
  34554. return obj;
  34555. }
  34556. error('"' + name + '" field in linearization table is invalid');
  34557. },
  34558. getHint: function Linearization_getHint(index) {
  34559. var linDict = this.linDict;
  34560. var obj1, obj2;
  34561. if (isDict(linDict) && isArray(obj1 = linDict.get('H')) &&
  34562. obj1.length >= 2 && isInt(obj2 = obj1[index]) && obj2 > 0) {
  34563. return obj2;
  34564. }
  34565. error('Hints table in linearization table is invalid: ' + index);
  34566. },
  34567. get length() {
  34568. if (!isDict(this.linDict)) {
  34569. return 0;
  34570. }
  34571. return this.getInt('L');
  34572. },
  34573. get hintsOffset() {
  34574. return this.getHint(0);
  34575. },
  34576. get hintsLength() {
  34577. return this.getHint(1);
  34578. },
  34579. get hintsOffset2() {
  34580. return this.getHint(2);
  34581. },
  34582. get hintsLenth2() {
  34583. return this.getHint(3);
  34584. },
  34585. get objectNumberFirst() {
  34586. return this.getInt('O');
  34587. },
  34588. get endFirst() {
  34589. return this.getInt('E');
  34590. },
  34591. get numPages() {
  34592. return this.getInt('N');
  34593. },
  34594. get mainXRefEntriesOffset() {
  34595. return this.getInt('T');
  34596. },
  34597. get pageFirst() {
  34598. return this.getInt('P');
  34599. }
  34600. };
  34601. return Linearization;
  34602. })();
  34603. var PostScriptParser = (function PostScriptParserClosure() {
  34604. function PostScriptParser(lexer) {
  34605. this.lexer = lexer;
  34606. this.operators = [];
  34607. this.token = null;
  34608. this.prev = null;
  34609. }
  34610. PostScriptParser.prototype = {
  34611. nextToken: function PostScriptParser_nextToken() {
  34612. this.prev = this.token;
  34613. this.token = this.lexer.getToken();
  34614. },
  34615. accept: function PostScriptParser_accept(type) {
  34616. if (this.token.type == type) {
  34617. this.nextToken();
  34618. return true;
  34619. }
  34620. return false;
  34621. },
  34622. expect: function PostScriptParser_expect(type) {
  34623. if (this.accept(type)) {
  34624. return true;
  34625. }
  34626. error('Unexpected symbol: found ' + this.token.type + ' expected ' +
  34627. type + '.');
  34628. },
  34629. parse: function PostScriptParser_parse() {
  34630. this.nextToken();
  34631. this.expect(PostScriptTokenTypes.LBRACE);
  34632. this.parseBlock();
  34633. this.expect(PostScriptTokenTypes.RBRACE);
  34634. return this.operators;
  34635. },
  34636. parseBlock: function PostScriptParser_parseBlock() {
  34637. while (true) {
  34638. if (this.accept(PostScriptTokenTypes.NUMBER)) {
  34639. this.operators.push(this.prev.value);
  34640. } else if (this.accept(PostScriptTokenTypes.OPERATOR)) {
  34641. this.operators.push(this.prev.value);
  34642. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  34643. this.parseCondition();
  34644. } else {
  34645. return;
  34646. }
  34647. }
  34648. },
  34649. parseCondition: function PostScriptParser_parseCondition() {
  34650. // Add two place holders that will be updated later
  34651. var conditionLocation = this.operators.length;
  34652. this.operators.push(null, null);
  34653. this.parseBlock();
  34654. this.expect(PostScriptTokenTypes.RBRACE);
  34655. if (this.accept(PostScriptTokenTypes.IF)) {
  34656. // The true block is right after the 'if' so it just falls through on
  34657. // true else it jumps and skips the true block.
  34658. this.operators[conditionLocation] = this.operators.length;
  34659. this.operators[conditionLocation + 1] = 'jz';
  34660. } else if (this.accept(PostScriptTokenTypes.LBRACE)) {
  34661. var jumpLocation = this.operators.length;
  34662. this.operators.push(null, null);
  34663. var endOfTrue = this.operators.length;
  34664. this.parseBlock();
  34665. this.expect(PostScriptTokenTypes.RBRACE);
  34666. this.expect(PostScriptTokenTypes.IFELSE);
  34667. // The jump is added at the end of the true block to skip the false
  34668. // block.
  34669. this.operators[jumpLocation] = this.operators.length;
  34670. this.operators[jumpLocation + 1] = 'j';
  34671. this.operators[conditionLocation] = endOfTrue;
  34672. this.operators[conditionLocation + 1] = 'jz';
  34673. } else {
  34674. error('PS Function: error parsing conditional.');
  34675. }
  34676. }
  34677. };
  34678. return PostScriptParser;
  34679. })();
  34680. var PostScriptTokenTypes = {
  34681. LBRACE: 0,
  34682. RBRACE: 1,
  34683. NUMBER: 2,
  34684. OPERATOR: 3,
  34685. IF: 4,
  34686. IFELSE: 5
  34687. };
  34688. var PostScriptToken = (function PostScriptTokenClosure() {
  34689. function PostScriptToken(type, value) {
  34690. this.type = type;
  34691. this.value = value;
  34692. }
  34693. var opCache = {};
  34694. PostScriptToken.getOperator = function PostScriptToken_getOperator(op) {
  34695. var opValue = opCache[op];
  34696. if (opValue) {
  34697. return opValue;
  34698. }
  34699. return opCache[op] = new PostScriptToken(PostScriptTokenTypes.OPERATOR, op);
  34700. };
  34701. PostScriptToken.LBRACE = new PostScriptToken(PostScriptTokenTypes.LBRACE,
  34702. '{');
  34703. PostScriptToken.RBRACE = new PostScriptToken(PostScriptTokenTypes.RBRACE,
  34704. '}');
  34705. PostScriptToken.IF = new PostScriptToken(PostScriptTokenTypes.IF, 'IF');
  34706. PostScriptToken.IFELSE = new PostScriptToken(PostScriptTokenTypes.IFELSE,
  34707. 'IFELSE');
  34708. return PostScriptToken;
  34709. })();
  34710. var PostScriptLexer = (function PostScriptLexerClosure() {
  34711. function PostScriptLexer(stream) {
  34712. this.stream = stream;
  34713. this.nextChar();
  34714. }
  34715. PostScriptLexer.prototype = {
  34716. nextChar: function PostScriptLexer_nextChar() {
  34717. return (this.currentChar = this.stream.getByte());
  34718. },
  34719. getToken: function PostScriptLexer_getToken() {
  34720. var comment = false;
  34721. var ch = this.currentChar;
  34722. // skip comments
  34723. while (true) {
  34724. if (ch < 0) {
  34725. return EOF;
  34726. }
  34727. if (comment) {
  34728. if (ch === 0x0A || ch === 0x0D) {
  34729. comment = false;
  34730. }
  34731. } else if (ch == 0x25) { // '%'
  34732. comment = true;
  34733. } else if (!Lexer.isSpace(ch)) {
  34734. break;
  34735. }
  34736. ch = this.nextChar();
  34737. }
  34738. switch (ch | 0) {
  34739. case 0x30: case 0x31: case 0x32: case 0x33: case 0x34: // '0'-'4'
  34740. case 0x35: case 0x36: case 0x37: case 0x38: case 0x39: // '5'-'9'
  34741. case 0x2B: case 0x2D: case 0x2E: // '+', '-', '.'
  34742. return new PostScriptToken(PostScriptTokenTypes.NUMBER,
  34743. this.getNumber());
  34744. case 0x7B: // '{'
  34745. this.nextChar();
  34746. return PostScriptToken.LBRACE;
  34747. case 0x7D: // '}'
  34748. this.nextChar();
  34749. return PostScriptToken.RBRACE;
  34750. }
  34751. // operator
  34752. var str = String.fromCharCode(ch);
  34753. while ((ch = this.nextChar()) >= 0 && // and 'A'-'Z', 'a'-'z'
  34754. ((ch >= 0x41 && ch <= 0x5A) || (ch >= 0x61 && ch <= 0x7A))) {
  34755. str += String.fromCharCode(ch);
  34756. }
  34757. switch (str.toLowerCase()) {
  34758. case 'if':
  34759. return PostScriptToken.IF;
  34760. case 'ifelse':
  34761. return PostScriptToken.IFELSE;
  34762. default:
  34763. return PostScriptToken.getOperator(str);
  34764. }
  34765. },
  34766. getNumber: function PostScriptLexer_getNumber() {
  34767. var ch = this.currentChar;
  34768. var str = String.fromCharCode(ch);
  34769. while ((ch = this.nextChar()) >= 0) {
  34770. if ((ch >= 0x30 && ch <= 0x39) || // '0'-'9'
  34771. ch === 0x2D || ch === 0x2E) { // '-', '.'
  34772. str += String.fromCharCode(ch);
  34773. } else {
  34774. break;
  34775. }
  34776. }
  34777. var value = parseFloat(str);
  34778. if (isNaN(value)) {
  34779. error('Invalid floating point number: ' + value);
  34780. }
  34781. return value;
  34782. }
  34783. };
  34784. return PostScriptLexer;
  34785. })();
  34786. var Stream = (function StreamClosure() {
  34787. function Stream(arrayBuffer, start, length, dict) {
  34788. this.bytes = (arrayBuffer instanceof Uint8Array ?
  34789. arrayBuffer : new Uint8Array(arrayBuffer));
  34790. this.start = start || 0;
  34791. this.pos = this.start;
  34792. this.end = (start + length) || this.bytes.length;
  34793. this.dict = dict;
  34794. }
  34795. // required methods for a stream. if a particular stream does not
  34796. // implement these, an error should be thrown
  34797. Stream.prototype = {
  34798. get length() {
  34799. return this.end - this.start;
  34800. },
  34801. get isEmpty() {
  34802. return this.length === 0;
  34803. },
  34804. getByte: function Stream_getByte() {
  34805. if (this.pos >= this.end) {
  34806. return -1;
  34807. }
  34808. return this.bytes[this.pos++];
  34809. },
  34810. getUint16: function Stream_getUint16() {
  34811. var b0 = this.getByte();
  34812. var b1 = this.getByte();
  34813. return (b0 << 8) + b1;
  34814. },
  34815. getInt32: function Stream_getInt32() {
  34816. var b0 = this.getByte();
  34817. var b1 = this.getByte();
  34818. var b2 = this.getByte();
  34819. var b3 = this.getByte();
  34820. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  34821. },
  34822. // returns subarray of original buffer
  34823. // should only be read
  34824. getBytes: function Stream_getBytes(length) {
  34825. var bytes = this.bytes;
  34826. var pos = this.pos;
  34827. var strEnd = this.end;
  34828. if (!length) {
  34829. return bytes.subarray(pos, strEnd);
  34830. }
  34831. var end = pos + length;
  34832. if (end > strEnd) {
  34833. end = strEnd;
  34834. }
  34835. this.pos = end;
  34836. return bytes.subarray(pos, end);
  34837. },
  34838. peekBytes: function Stream_peekBytes(length) {
  34839. var bytes = this.getBytes(length);
  34840. this.pos -= bytes.length;
  34841. return bytes;
  34842. },
  34843. skip: function Stream_skip(n) {
  34844. if (!n) {
  34845. n = 1;
  34846. }
  34847. this.pos += n;
  34848. },
  34849. reset: function Stream_reset() {
  34850. this.pos = this.start;
  34851. },
  34852. moveStart: function Stream_moveStart() {
  34853. this.start = this.pos;
  34854. },
  34855. makeSubStream: function Stream_makeSubStream(start, length, dict) {
  34856. return new Stream(this.bytes.buffer, start, length, dict);
  34857. },
  34858. isStream: true
  34859. };
  34860. return Stream;
  34861. })();
  34862. var StringStream = (function StringStreamClosure() {
  34863. function StringStream(str) {
  34864. var length = str.length;
  34865. var bytes = new Uint8Array(length);
  34866. for (var n = 0; n < length; ++n) {
  34867. bytes[n] = str.charCodeAt(n);
  34868. }
  34869. Stream.call(this, bytes);
  34870. }
  34871. StringStream.prototype = Stream.prototype;
  34872. return StringStream;
  34873. })();
  34874. // super class for the decoding streams
  34875. var DecodeStream = (function DecodeStreamClosure() {
  34876. // Lots of DecodeStreams are created whose buffers are never used. For these
  34877. // we share a single empty buffer. This is (a) space-efficient and (b) avoids
  34878. // having special cases that would be required if we used |null| for an empty
  34879. // buffer.
  34880. var emptyBuffer = new Uint8Array(0);
  34881. function DecodeStream(maybeMinBufferLength) {
  34882. this.pos = 0;
  34883. this.bufferLength = 0;
  34884. this.eof = false;
  34885. this.buffer = emptyBuffer;
  34886. this.minBufferLength = 512;
  34887. if (maybeMinBufferLength) {
  34888. // Compute the first power of two that is as big as maybeMinBufferLength.
  34889. while (this.minBufferLength < maybeMinBufferLength) {
  34890. this.minBufferLength *= 2;
  34891. }
  34892. }
  34893. }
  34894. DecodeStream.prototype = {
  34895. get isEmpty() {
  34896. while (!this.eof && this.bufferLength === 0) {
  34897. this.readBlock();
  34898. }
  34899. return this.bufferLength === 0;
  34900. },
  34901. ensureBuffer: function DecodeStream_ensureBuffer(requested) {
  34902. var buffer = this.buffer;
  34903. if (requested <= buffer.byteLength) {
  34904. return buffer;
  34905. }
  34906. var size = this.minBufferLength;
  34907. while (size < requested) {
  34908. size *= 2;
  34909. }
  34910. var buffer2 = new Uint8Array(size);
  34911. buffer2.set(buffer);
  34912. return (this.buffer = buffer2);
  34913. },
  34914. getByte: function DecodeStream_getByte() {
  34915. var pos = this.pos;
  34916. while (this.bufferLength <= pos) {
  34917. if (this.eof) {
  34918. return -1;
  34919. }
  34920. this.readBlock();
  34921. }
  34922. return this.buffer[this.pos++];
  34923. },
  34924. getUint16: function DecodeStream_getUint16() {
  34925. var b0 = this.getByte();
  34926. var b1 = this.getByte();
  34927. return (b0 << 8) + b1;
  34928. },
  34929. getInt32: function DecodeStream_getInt32() {
  34930. var b0 = this.getByte();
  34931. var b1 = this.getByte();
  34932. var b2 = this.getByte();
  34933. var b3 = this.getByte();
  34934. return (b0 << 24) + (b1 << 16) + (b2 << 8) + b3;
  34935. },
  34936. getBytes: function DecodeStream_getBytes(length) {
  34937. var end, pos = this.pos;
  34938. if (length) {
  34939. this.ensureBuffer(pos + length);
  34940. end = pos + length;
  34941. while (!this.eof && this.bufferLength < end) {
  34942. this.readBlock();
  34943. }
  34944. var bufEnd = this.bufferLength;
  34945. if (end > bufEnd) {
  34946. end = bufEnd;
  34947. }
  34948. } else {
  34949. while (!this.eof) {
  34950. this.readBlock();
  34951. }
  34952. end = this.bufferLength;
  34953. }
  34954. this.pos = end;
  34955. return this.buffer.subarray(pos, end);
  34956. },
  34957. peekBytes: function DecodeStream_peekBytes(length) {
  34958. var bytes = this.getBytes(length);
  34959. this.pos -= bytes.length;
  34960. return bytes;
  34961. },
  34962. makeSubStream: function DecodeStream_makeSubStream(start, length, dict) {
  34963. var end = start + length;
  34964. while (this.bufferLength <= end && !this.eof) {
  34965. this.readBlock();
  34966. }
  34967. return new Stream(this.buffer, start, length, dict);
  34968. },
  34969. skip: function DecodeStream_skip(n) {
  34970. if (!n) {
  34971. n = 1;
  34972. }
  34973. this.pos += n;
  34974. },
  34975. reset: function DecodeStream_reset() {
  34976. this.pos = 0;
  34977. },
  34978. getBaseStreams: function DecodeStream_getBaseStreams() {
  34979. if (this.str && this.str.getBaseStreams) {
  34980. return this.str.getBaseStreams();
  34981. }
  34982. return [];
  34983. }
  34984. };
  34985. return DecodeStream;
  34986. })();
  34987. var StreamsSequenceStream = (function StreamsSequenceStreamClosure() {
  34988. function StreamsSequenceStream(streams) {
  34989. this.streams = streams;
  34990. DecodeStream.call(this, /* maybeLength = */ null);
  34991. }
  34992. StreamsSequenceStream.prototype = Object.create(DecodeStream.prototype);
  34993. StreamsSequenceStream.prototype.readBlock =
  34994. function streamSequenceStreamReadBlock() {
  34995. var streams = this.streams;
  34996. if (streams.length === 0) {
  34997. this.eof = true;
  34998. return;
  34999. }
  35000. var stream = streams.shift();
  35001. var chunk = stream.getBytes();
  35002. var bufferLength = this.bufferLength;
  35003. var newLength = bufferLength + chunk.length;
  35004. var buffer = this.ensureBuffer(newLength);
  35005. buffer.set(chunk, bufferLength);
  35006. this.bufferLength = newLength;
  35007. };
  35008. StreamsSequenceStream.prototype.getBaseStreams =
  35009. function StreamsSequenceStream_getBaseStreams() {
  35010. var baseStreams = [];
  35011. for (var i = 0, ii = this.streams.length; i < ii; i++) {
  35012. var stream = this.streams[i];
  35013. if (stream.getBaseStreams) {
  35014. Util.appendToArray(baseStreams, stream.getBaseStreams());
  35015. }
  35016. }
  35017. return baseStreams;
  35018. };
  35019. return StreamsSequenceStream;
  35020. })();
  35021. var FlateStream = (function FlateStreamClosure() {
  35022. var codeLenCodeMap = new Uint32Array([
  35023. 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15
  35024. ]);
  35025. var lengthDecode = new Uint32Array([
  35026. 0x00003, 0x00004, 0x00005, 0x00006, 0x00007, 0x00008, 0x00009, 0x0000a,
  35027. 0x1000b, 0x1000d, 0x1000f, 0x10011, 0x20013, 0x20017, 0x2001b, 0x2001f,
  35028. 0x30023, 0x3002b, 0x30033, 0x3003b, 0x40043, 0x40053, 0x40063, 0x40073,
  35029. 0x50083, 0x500a3, 0x500c3, 0x500e3, 0x00102, 0x00102, 0x00102
  35030. ]);
  35031. var distDecode = new Uint32Array([
  35032. 0x00001, 0x00002, 0x00003, 0x00004, 0x10005, 0x10007, 0x20009, 0x2000d,
  35033. 0x30011, 0x30019, 0x40021, 0x40031, 0x50041, 0x50061, 0x60081, 0x600c1,
  35034. 0x70101, 0x70181, 0x80201, 0x80301, 0x90401, 0x90601, 0xa0801, 0xa0c01,
  35035. 0xb1001, 0xb1801, 0xc2001, 0xc3001, 0xd4001, 0xd6001
  35036. ]);
  35037. var fixedLitCodeTab = [new Uint32Array([
  35038. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c0,
  35039. 0x70108, 0x80060, 0x80020, 0x900a0, 0x80000, 0x80080, 0x80040, 0x900e0,
  35040. 0x70104, 0x80058, 0x80018, 0x90090, 0x70114, 0x80078, 0x80038, 0x900d0,
  35041. 0x7010c, 0x80068, 0x80028, 0x900b0, 0x80008, 0x80088, 0x80048, 0x900f0,
  35042. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c8,
  35043. 0x7010a, 0x80064, 0x80024, 0x900a8, 0x80004, 0x80084, 0x80044, 0x900e8,
  35044. 0x70106, 0x8005c, 0x8001c, 0x90098, 0x70116, 0x8007c, 0x8003c, 0x900d8,
  35045. 0x7010e, 0x8006c, 0x8002c, 0x900b8, 0x8000c, 0x8008c, 0x8004c, 0x900f8,
  35046. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c4,
  35047. 0x70109, 0x80062, 0x80022, 0x900a4, 0x80002, 0x80082, 0x80042, 0x900e4,
  35048. 0x70105, 0x8005a, 0x8001a, 0x90094, 0x70115, 0x8007a, 0x8003a, 0x900d4,
  35049. 0x7010d, 0x8006a, 0x8002a, 0x900b4, 0x8000a, 0x8008a, 0x8004a, 0x900f4,
  35050. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cc,
  35051. 0x7010b, 0x80066, 0x80026, 0x900ac, 0x80006, 0x80086, 0x80046, 0x900ec,
  35052. 0x70107, 0x8005e, 0x8001e, 0x9009c, 0x70117, 0x8007e, 0x8003e, 0x900dc,
  35053. 0x7010f, 0x8006e, 0x8002e, 0x900bc, 0x8000e, 0x8008e, 0x8004e, 0x900fc,
  35054. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c2,
  35055. 0x70108, 0x80061, 0x80021, 0x900a2, 0x80001, 0x80081, 0x80041, 0x900e2,
  35056. 0x70104, 0x80059, 0x80019, 0x90092, 0x70114, 0x80079, 0x80039, 0x900d2,
  35057. 0x7010c, 0x80069, 0x80029, 0x900b2, 0x80009, 0x80089, 0x80049, 0x900f2,
  35058. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900ca,
  35059. 0x7010a, 0x80065, 0x80025, 0x900aa, 0x80005, 0x80085, 0x80045, 0x900ea,
  35060. 0x70106, 0x8005d, 0x8001d, 0x9009a, 0x70116, 0x8007d, 0x8003d, 0x900da,
  35061. 0x7010e, 0x8006d, 0x8002d, 0x900ba, 0x8000d, 0x8008d, 0x8004d, 0x900fa,
  35062. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c6,
  35063. 0x70109, 0x80063, 0x80023, 0x900a6, 0x80003, 0x80083, 0x80043, 0x900e6,
  35064. 0x70105, 0x8005b, 0x8001b, 0x90096, 0x70115, 0x8007b, 0x8003b, 0x900d6,
  35065. 0x7010d, 0x8006b, 0x8002b, 0x900b6, 0x8000b, 0x8008b, 0x8004b, 0x900f6,
  35066. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900ce,
  35067. 0x7010b, 0x80067, 0x80027, 0x900ae, 0x80007, 0x80087, 0x80047, 0x900ee,
  35068. 0x70107, 0x8005f, 0x8001f, 0x9009e, 0x70117, 0x8007f, 0x8003f, 0x900de,
  35069. 0x7010f, 0x8006f, 0x8002f, 0x900be, 0x8000f, 0x8008f, 0x8004f, 0x900fe,
  35070. 0x70100, 0x80050, 0x80010, 0x80118, 0x70110, 0x80070, 0x80030, 0x900c1,
  35071. 0x70108, 0x80060, 0x80020, 0x900a1, 0x80000, 0x80080, 0x80040, 0x900e1,
  35072. 0x70104, 0x80058, 0x80018, 0x90091, 0x70114, 0x80078, 0x80038, 0x900d1,
  35073. 0x7010c, 0x80068, 0x80028, 0x900b1, 0x80008, 0x80088, 0x80048, 0x900f1,
  35074. 0x70102, 0x80054, 0x80014, 0x8011c, 0x70112, 0x80074, 0x80034, 0x900c9,
  35075. 0x7010a, 0x80064, 0x80024, 0x900a9, 0x80004, 0x80084, 0x80044, 0x900e9,
  35076. 0x70106, 0x8005c, 0x8001c, 0x90099, 0x70116, 0x8007c, 0x8003c, 0x900d9,
  35077. 0x7010e, 0x8006c, 0x8002c, 0x900b9, 0x8000c, 0x8008c, 0x8004c, 0x900f9,
  35078. 0x70101, 0x80052, 0x80012, 0x8011a, 0x70111, 0x80072, 0x80032, 0x900c5,
  35079. 0x70109, 0x80062, 0x80022, 0x900a5, 0x80002, 0x80082, 0x80042, 0x900e5,
  35080. 0x70105, 0x8005a, 0x8001a, 0x90095, 0x70115, 0x8007a, 0x8003a, 0x900d5,
  35081. 0x7010d, 0x8006a, 0x8002a, 0x900b5, 0x8000a, 0x8008a, 0x8004a, 0x900f5,
  35082. 0x70103, 0x80056, 0x80016, 0x8011e, 0x70113, 0x80076, 0x80036, 0x900cd,
  35083. 0x7010b, 0x80066, 0x80026, 0x900ad, 0x80006, 0x80086, 0x80046, 0x900ed,
  35084. 0x70107, 0x8005e, 0x8001e, 0x9009d, 0x70117, 0x8007e, 0x8003e, 0x900dd,
  35085. 0x7010f, 0x8006e, 0x8002e, 0x900bd, 0x8000e, 0x8008e, 0x8004e, 0x900fd,
  35086. 0x70100, 0x80051, 0x80011, 0x80119, 0x70110, 0x80071, 0x80031, 0x900c3,
  35087. 0x70108, 0x80061, 0x80021, 0x900a3, 0x80001, 0x80081, 0x80041, 0x900e3,
  35088. 0x70104, 0x80059, 0x80019, 0x90093, 0x70114, 0x80079, 0x80039, 0x900d3,
  35089. 0x7010c, 0x80069, 0x80029, 0x900b3, 0x80009, 0x80089, 0x80049, 0x900f3,
  35090. 0x70102, 0x80055, 0x80015, 0x8011d, 0x70112, 0x80075, 0x80035, 0x900cb,
  35091. 0x7010a, 0x80065, 0x80025, 0x900ab, 0x80005, 0x80085, 0x80045, 0x900eb,
  35092. 0x70106, 0x8005d, 0x8001d, 0x9009b, 0x70116, 0x8007d, 0x8003d, 0x900db,
  35093. 0x7010e, 0x8006d, 0x8002d, 0x900bb, 0x8000d, 0x8008d, 0x8004d, 0x900fb,
  35094. 0x70101, 0x80053, 0x80013, 0x8011b, 0x70111, 0x80073, 0x80033, 0x900c7,
  35095. 0x70109, 0x80063, 0x80023, 0x900a7, 0x80003, 0x80083, 0x80043, 0x900e7,
  35096. 0x70105, 0x8005b, 0x8001b, 0x90097, 0x70115, 0x8007b, 0x8003b, 0x900d7,
  35097. 0x7010d, 0x8006b, 0x8002b, 0x900b7, 0x8000b, 0x8008b, 0x8004b, 0x900f7,
  35098. 0x70103, 0x80057, 0x80017, 0x8011f, 0x70113, 0x80077, 0x80037, 0x900cf,
  35099. 0x7010b, 0x80067, 0x80027, 0x900af, 0x80007, 0x80087, 0x80047, 0x900ef,
  35100. 0x70107, 0x8005f, 0x8001f, 0x9009f, 0x70117, 0x8007f, 0x8003f, 0x900df,
  35101. 0x7010f, 0x8006f, 0x8002f, 0x900bf, 0x8000f, 0x8008f, 0x8004f, 0x900ff
  35102. ]), 9];
  35103. var fixedDistCodeTab = [new Uint32Array([
  35104. 0x50000, 0x50010, 0x50008, 0x50018, 0x50004, 0x50014, 0x5000c, 0x5001c,
  35105. 0x50002, 0x50012, 0x5000a, 0x5001a, 0x50006, 0x50016, 0x5000e, 0x00000,
  35106. 0x50001, 0x50011, 0x50009, 0x50019, 0x50005, 0x50015, 0x5000d, 0x5001d,
  35107. 0x50003, 0x50013, 0x5000b, 0x5001b, 0x50007, 0x50017, 0x5000f, 0x00000
  35108. ]), 5];
  35109. function FlateStream(str, maybeLength) {
  35110. this.str = str;
  35111. this.dict = str.dict;
  35112. var cmf = str.getByte();
  35113. var flg = str.getByte();
  35114. if (cmf == -1 || flg == -1) {
  35115. error('Invalid header in flate stream: ' + cmf + ', ' + flg);
  35116. }
  35117. if ((cmf & 0x0f) != 0x08) {
  35118. error('Unknown compression method in flate stream: ' + cmf + ', ' + flg);
  35119. }
  35120. if ((((cmf << 8) + flg) % 31) !== 0) {
  35121. error('Bad FCHECK in flate stream: ' + cmf + ', ' + flg);
  35122. }
  35123. if (flg & 0x20) {
  35124. error('FDICT bit set in flate stream: ' + cmf + ', ' + flg);
  35125. }
  35126. this.codeSize = 0;
  35127. this.codeBuf = 0;
  35128. DecodeStream.call(this, maybeLength);
  35129. }
  35130. FlateStream.prototype = Object.create(DecodeStream.prototype);
  35131. FlateStream.prototype.getBits = function FlateStream_getBits(bits) {
  35132. var str = this.str;
  35133. var codeSize = this.codeSize;
  35134. var codeBuf = this.codeBuf;
  35135. var b;
  35136. while (codeSize < bits) {
  35137. if ((b = str.getByte()) === -1) {
  35138. error('Bad encoding in flate stream');
  35139. }
  35140. codeBuf |= b << codeSize;
  35141. codeSize += 8;
  35142. }
  35143. b = codeBuf & ((1 << bits) - 1);
  35144. this.codeBuf = codeBuf >> bits;
  35145. this.codeSize = codeSize -= bits;
  35146. return b;
  35147. };
  35148. FlateStream.prototype.getCode = function FlateStream_getCode(table) {
  35149. var str = this.str;
  35150. var codes = table[0];
  35151. var maxLen = table[1];
  35152. var codeSize = this.codeSize;
  35153. var codeBuf = this.codeBuf;
  35154. var b;
  35155. while (codeSize < maxLen) {
  35156. if ((b = str.getByte()) === -1) {
  35157. // premature end of stream. code might however still be valid.
  35158. // codeSize < codeLen check below guards against incomplete codeVal.
  35159. break;
  35160. }
  35161. codeBuf |= (b << codeSize);
  35162. codeSize += 8;
  35163. }
  35164. var code = codes[codeBuf & ((1 << maxLen) - 1)];
  35165. var codeLen = code >> 16;
  35166. var codeVal = code & 0xffff;
  35167. if (codeLen < 1 || codeSize < codeLen) {
  35168. error('Bad encoding in flate stream');
  35169. }
  35170. this.codeBuf = (codeBuf >> codeLen);
  35171. this.codeSize = (codeSize - codeLen);
  35172. return codeVal;
  35173. };
  35174. FlateStream.prototype.generateHuffmanTable =
  35175. function flateStreamGenerateHuffmanTable(lengths) {
  35176. var n = lengths.length;
  35177. // find max code length
  35178. var maxLen = 0;
  35179. var i;
  35180. for (i = 0; i < n; ++i) {
  35181. if (lengths[i] > maxLen) {
  35182. maxLen = lengths[i];
  35183. }
  35184. }
  35185. // build the table
  35186. var size = 1 << maxLen;
  35187. var codes = new Uint32Array(size);
  35188. for (var len = 1, code = 0, skip = 2;
  35189. len <= maxLen;
  35190. ++len, code <<= 1, skip <<= 1) {
  35191. for (var val = 0; val < n; ++val) {
  35192. if (lengths[val] == len) {
  35193. // bit-reverse the code
  35194. var code2 = 0;
  35195. var t = code;
  35196. for (i = 0; i < len; ++i) {
  35197. code2 = (code2 << 1) | (t & 1);
  35198. t >>= 1;
  35199. }
  35200. // fill the table entries
  35201. for (i = code2; i < size; i += skip) {
  35202. codes[i] = (len << 16) | val;
  35203. }
  35204. ++code;
  35205. }
  35206. }
  35207. }
  35208. return [codes, maxLen];
  35209. };
  35210. FlateStream.prototype.readBlock = function FlateStream_readBlock() {
  35211. var buffer, len;
  35212. var str = this.str;
  35213. // read block header
  35214. var hdr = this.getBits(3);
  35215. if (hdr & 1) {
  35216. this.eof = true;
  35217. }
  35218. hdr >>= 1;
  35219. if (hdr === 0) { // uncompressed block
  35220. var b;
  35221. if ((b = str.getByte()) === -1) {
  35222. error('Bad block header in flate stream');
  35223. }
  35224. var blockLen = b;
  35225. if ((b = str.getByte()) === -1) {
  35226. error('Bad block header in flate stream');
  35227. }
  35228. blockLen |= (b << 8);
  35229. if ((b = str.getByte()) === -1) {
  35230. error('Bad block header in flate stream');
  35231. }
  35232. var check = b;
  35233. if ((b = str.getByte()) === -1) {
  35234. error('Bad block header in flate stream');
  35235. }
  35236. check |= (b << 8);
  35237. if (check != (~blockLen & 0xffff) &&
  35238. (blockLen !== 0 || check !== 0)) {
  35239. // Ignoring error for bad "empty" block (see issue 1277)
  35240. error('Bad uncompressed block length in flate stream');
  35241. }
  35242. this.codeBuf = 0;
  35243. this.codeSize = 0;
  35244. var bufferLength = this.bufferLength;
  35245. buffer = this.ensureBuffer(bufferLength + blockLen);
  35246. var end = bufferLength + blockLen;
  35247. this.bufferLength = end;
  35248. if (blockLen === 0) {
  35249. if (str.peekBytes(1).length === 0) {
  35250. this.eof = true;
  35251. }
  35252. } else {
  35253. for (var n = bufferLength; n < end; ++n) {
  35254. if ((b = str.getByte()) === -1) {
  35255. this.eof = true;
  35256. break;
  35257. }
  35258. buffer[n] = b;
  35259. }
  35260. }
  35261. return;
  35262. }
  35263. var litCodeTable;
  35264. var distCodeTable;
  35265. if (hdr == 1) { // compressed block, fixed codes
  35266. litCodeTable = fixedLitCodeTab;
  35267. distCodeTable = fixedDistCodeTab;
  35268. } else if (hdr == 2) { // compressed block, dynamic codes
  35269. var numLitCodes = this.getBits(5) + 257;
  35270. var numDistCodes = this.getBits(5) + 1;
  35271. var numCodeLenCodes = this.getBits(4) + 4;
  35272. // build the code lengths code table
  35273. var codeLenCodeLengths = new Uint8Array(codeLenCodeMap.length);
  35274. var i;
  35275. for (i = 0; i < numCodeLenCodes; ++i) {
  35276. codeLenCodeLengths[codeLenCodeMap[i]] = this.getBits(3);
  35277. }
  35278. var codeLenCodeTab = this.generateHuffmanTable(codeLenCodeLengths);
  35279. // build the literal and distance code tables
  35280. len = 0;
  35281. i = 0;
  35282. var codes = numLitCodes + numDistCodes;
  35283. var codeLengths = new Uint8Array(codes);
  35284. var bitsLength, bitsOffset, what;
  35285. while (i < codes) {
  35286. var code = this.getCode(codeLenCodeTab);
  35287. if (code == 16) {
  35288. bitsLength = 2; bitsOffset = 3; what = len;
  35289. } else if (code == 17) {
  35290. bitsLength = 3; bitsOffset = 3; what = (len = 0);
  35291. } else if (code == 18) {
  35292. bitsLength = 7; bitsOffset = 11; what = (len = 0);
  35293. } else {
  35294. codeLengths[i++] = len = code;
  35295. continue;
  35296. }
  35297. var repeatLength = this.getBits(bitsLength) + bitsOffset;
  35298. while (repeatLength-- > 0) {
  35299. codeLengths[i++] = what;
  35300. }
  35301. }
  35302. litCodeTable =
  35303. this.generateHuffmanTable(codeLengths.subarray(0, numLitCodes));
  35304. distCodeTable =
  35305. this.generateHuffmanTable(codeLengths.subarray(numLitCodes, codes));
  35306. } else {
  35307. error('Unknown block type in flate stream');
  35308. }
  35309. buffer = this.buffer;
  35310. var limit = buffer ? buffer.length : 0;
  35311. var pos = this.bufferLength;
  35312. while (true) {
  35313. var code1 = this.getCode(litCodeTable);
  35314. if (code1 < 256) {
  35315. if (pos + 1 >= limit) {
  35316. buffer = this.ensureBuffer(pos + 1);
  35317. limit = buffer.length;
  35318. }
  35319. buffer[pos++] = code1;
  35320. continue;
  35321. }
  35322. if (code1 == 256) {
  35323. this.bufferLength = pos;
  35324. return;
  35325. }
  35326. code1 -= 257;
  35327. code1 = lengthDecode[code1];
  35328. var code2 = code1 >> 16;
  35329. if (code2 > 0) {
  35330. code2 = this.getBits(code2);
  35331. }
  35332. len = (code1 & 0xffff) + code2;
  35333. code1 = this.getCode(distCodeTable);
  35334. code1 = distDecode[code1];
  35335. code2 = code1 >> 16;
  35336. if (code2 > 0) {
  35337. code2 = this.getBits(code2);
  35338. }
  35339. var dist = (code1 & 0xffff) + code2;
  35340. if (pos + len >= limit) {
  35341. buffer = this.ensureBuffer(pos + len);
  35342. limit = buffer.length;
  35343. }
  35344. for (var k = 0; k < len; ++k, ++pos) {
  35345. buffer[pos] = buffer[pos - dist];
  35346. }
  35347. }
  35348. };
  35349. return FlateStream;
  35350. })();
  35351. var PredictorStream = (function PredictorStreamClosure() {
  35352. function PredictorStream(str, maybeLength, params) {
  35353. var predictor = this.predictor = params.get('Predictor') || 1;
  35354. if (predictor <= 1) {
  35355. return str; // no prediction
  35356. }
  35357. if (predictor !== 2 && (predictor < 10 || predictor > 15)) {
  35358. error('Unsupported predictor: ' + predictor);
  35359. }
  35360. if (predictor === 2) {
  35361. this.readBlock = this.readBlockTiff;
  35362. } else {
  35363. this.readBlock = this.readBlockPng;
  35364. }
  35365. this.str = str;
  35366. this.dict = str.dict;
  35367. var colors = this.colors = params.get('Colors') || 1;
  35368. var bits = this.bits = params.get('BitsPerComponent') || 8;
  35369. var columns = this.columns = params.get('Columns') || 1;
  35370. this.pixBytes = (colors * bits + 7) >> 3;
  35371. this.rowBytes = (columns * colors * bits + 7) >> 3;
  35372. DecodeStream.call(this, maybeLength);
  35373. return this;
  35374. }
  35375. PredictorStream.prototype = Object.create(DecodeStream.prototype);
  35376. PredictorStream.prototype.readBlockTiff =
  35377. function predictorStreamReadBlockTiff() {
  35378. var rowBytes = this.rowBytes;
  35379. var bufferLength = this.bufferLength;
  35380. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  35381. var bits = this.bits;
  35382. var colors = this.colors;
  35383. var rawBytes = this.str.getBytes(rowBytes);
  35384. this.eof = !rawBytes.length;
  35385. if (this.eof) {
  35386. return;
  35387. }
  35388. var inbuf = 0, outbuf = 0;
  35389. var inbits = 0, outbits = 0;
  35390. var pos = bufferLength;
  35391. var i;
  35392. if (bits === 1) {
  35393. for (i = 0; i < rowBytes; ++i) {
  35394. var c = rawBytes[i];
  35395. inbuf = (inbuf << 8) | c;
  35396. // bitwise addition is exclusive or
  35397. // first shift inbuf and then add
  35398. buffer[pos++] = (c ^ (inbuf >> colors)) & 0xFF;
  35399. // truncate inbuf (assumes colors < 16)
  35400. inbuf &= 0xFFFF;
  35401. }
  35402. } else if (bits === 8) {
  35403. for (i = 0; i < colors; ++i) {
  35404. buffer[pos++] = rawBytes[i];
  35405. }
  35406. for (; i < rowBytes; ++i) {
  35407. buffer[pos] = buffer[pos - colors] + rawBytes[i];
  35408. pos++;
  35409. }
  35410. } else {
  35411. var compArray = new Uint8Array(colors + 1);
  35412. var bitMask = (1 << bits) - 1;
  35413. var j = 0, k = bufferLength;
  35414. var columns = this.columns;
  35415. for (i = 0; i < columns; ++i) {
  35416. for (var kk = 0; kk < colors; ++kk) {
  35417. if (inbits < bits) {
  35418. inbuf = (inbuf << 8) | (rawBytes[j++] & 0xFF);
  35419. inbits += 8;
  35420. }
  35421. compArray[kk] = (compArray[kk] +
  35422. (inbuf >> (inbits - bits))) & bitMask;
  35423. inbits -= bits;
  35424. outbuf = (outbuf << bits) | compArray[kk];
  35425. outbits += bits;
  35426. if (outbits >= 8) {
  35427. buffer[k++] = (outbuf >> (outbits - 8)) & 0xFF;
  35428. outbits -= 8;
  35429. }
  35430. }
  35431. }
  35432. if (outbits > 0) {
  35433. buffer[k++] = (outbuf << (8 - outbits)) +
  35434. (inbuf & ((1 << (8 - outbits)) - 1));
  35435. }
  35436. }
  35437. this.bufferLength += rowBytes;
  35438. };
  35439. PredictorStream.prototype.readBlockPng =
  35440. function predictorStreamReadBlockPng() {
  35441. var rowBytes = this.rowBytes;
  35442. var pixBytes = this.pixBytes;
  35443. var predictor = this.str.getByte();
  35444. var rawBytes = this.str.getBytes(rowBytes);
  35445. this.eof = !rawBytes.length;
  35446. if (this.eof) {
  35447. return;
  35448. }
  35449. var bufferLength = this.bufferLength;
  35450. var buffer = this.ensureBuffer(bufferLength + rowBytes);
  35451. var prevRow = buffer.subarray(bufferLength - rowBytes, bufferLength);
  35452. if (prevRow.length === 0) {
  35453. prevRow = new Uint8Array(rowBytes);
  35454. }
  35455. var i, j = bufferLength, up, c;
  35456. switch (predictor) {
  35457. case 0:
  35458. for (i = 0; i < rowBytes; ++i) {
  35459. buffer[j++] = rawBytes[i];
  35460. }
  35461. break;
  35462. case 1:
  35463. for (i = 0; i < pixBytes; ++i) {
  35464. buffer[j++] = rawBytes[i];
  35465. }
  35466. for (; i < rowBytes; ++i) {
  35467. buffer[j] = (buffer[j - pixBytes] + rawBytes[i]) & 0xFF;
  35468. j++;
  35469. }
  35470. break;
  35471. case 2:
  35472. for (i = 0; i < rowBytes; ++i) {
  35473. buffer[j++] = (prevRow[i] + rawBytes[i]) & 0xFF;
  35474. }
  35475. break;
  35476. case 3:
  35477. for (i = 0; i < pixBytes; ++i) {
  35478. buffer[j++] = (prevRow[i] >> 1) + rawBytes[i];
  35479. }
  35480. for (; i < rowBytes; ++i) {
  35481. buffer[j] = (((prevRow[i] + buffer[j - pixBytes]) >> 1) +
  35482. rawBytes[i]) & 0xFF;
  35483. j++;
  35484. }
  35485. break;
  35486. case 4:
  35487. // we need to save the up left pixels values. the simplest way
  35488. // is to create a new buffer
  35489. for (i = 0; i < pixBytes; ++i) {
  35490. up = prevRow[i];
  35491. c = rawBytes[i];
  35492. buffer[j++] = up + c;
  35493. }
  35494. for (; i < rowBytes; ++i) {
  35495. up = prevRow[i];
  35496. var upLeft = prevRow[i - pixBytes];
  35497. var left = buffer[j - pixBytes];
  35498. var p = left + up - upLeft;
  35499. var pa = p - left;
  35500. if (pa < 0) {
  35501. pa = -pa;
  35502. }
  35503. var pb = p - up;
  35504. if (pb < 0) {
  35505. pb = -pb;
  35506. }
  35507. var pc = p - upLeft;
  35508. if (pc < 0) {
  35509. pc = -pc;
  35510. }
  35511. c = rawBytes[i];
  35512. if (pa <= pb && pa <= pc) {
  35513. buffer[j++] = left + c;
  35514. } else if (pb <= pc) {
  35515. buffer[j++] = up + c;
  35516. } else {
  35517. buffer[j++] = upLeft + c;
  35518. }
  35519. }
  35520. break;
  35521. default:
  35522. error('Unsupported predictor: ' + predictor);
  35523. }
  35524. this.bufferLength += rowBytes;
  35525. };
  35526. return PredictorStream;
  35527. })();
  35528. /**
  35529. * Depending on the type of JPEG a JpegStream is handled in different ways. For
  35530. * JPEG's that are supported natively such as DeviceGray and DeviceRGB the image
  35531. * data is stored and then loaded by the browser. For unsupported JPEG's we use
  35532. * a library to decode these images and the stream behaves like all the other
  35533. * DecodeStreams.
  35534. */
  35535. var JpegStream = (function JpegStreamClosure() {
  35536. function JpegStream(stream, maybeLength, dict, xref) {
  35537. // TODO: per poppler, some images may have 'junk' before that
  35538. // need to be removed
  35539. this.stream = stream;
  35540. this.maybeLength = maybeLength;
  35541. this.dict = dict;
  35542. DecodeStream.call(this, maybeLength);
  35543. }
  35544. JpegStream.prototype = Object.create(DecodeStream.prototype);
  35545. Object.defineProperty(JpegStream.prototype, 'bytes', {
  35546. get: function JpegStream_bytes() {
  35547. // If this.maybeLength is null, we'll get the entire stream.
  35548. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  35549. },
  35550. configurable: true
  35551. });
  35552. JpegStream.prototype.ensureBuffer = function JpegStream_ensureBuffer(req) {
  35553. if (this.bufferLength) {
  35554. return;
  35555. }
  35556. try {
  35557. var jpegImage = new JpegImage();
  35558. // checking if values needs to be transformed before conversion
  35559. if (this.dict && isArray(this.dict.get('Decode'))) {
  35560. var decodeArr = this.dict.get('Decode');
  35561. var bitsPerComponent = this.dict.get('BitsPerComponent') || 8;
  35562. var decodeArrLength = decodeArr.length;
  35563. var transform = new Int32Array(decodeArrLength);
  35564. var transformNeeded = false;
  35565. var maxValue = (1 << bitsPerComponent) - 1;
  35566. for (var i = 0; i < decodeArrLength; i += 2) {
  35567. transform[i] = ((decodeArr[i + 1] - decodeArr[i]) * 256) | 0;
  35568. transform[i + 1] = (decodeArr[i] * maxValue) | 0;
  35569. if (transform[i] !== 256 || transform[i + 1] !== 0) {
  35570. transformNeeded = true;
  35571. }
  35572. }
  35573. if (transformNeeded) {
  35574. jpegImage.decodeTransform = transform;
  35575. }
  35576. }
  35577. jpegImage.parse(this.bytes);
  35578. var data = jpegImage.getData(this.drawWidth, this.drawHeight,
  35579. this.forceRGB);
  35580. this.buffer = data;
  35581. this.bufferLength = data.length;
  35582. this.eof = true;
  35583. } catch (e) {
  35584. error('JPEG error: ' + e);
  35585. }
  35586. };
  35587. JpegStream.prototype.getBytes = function JpegStream_getBytes(length) {
  35588. this.ensureBuffer();
  35589. return this.buffer;
  35590. };
  35591. JpegStream.prototype.getIR = function JpegStream_getIR() {
  35592. return PDFJS.createObjectURL(this.bytes, 'image/jpeg');
  35593. };
  35594. /**
  35595. * Checks if the image can be decoded and displayed by the browser without any
  35596. * further processing such as color space conversions.
  35597. */
  35598. JpegStream.prototype.isNativelySupported =
  35599. function JpegStream_isNativelySupported(xref, res) {
  35600. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  35601. return cs.name === 'DeviceGray' || cs.name === 'DeviceRGB';
  35602. };
  35603. /**
  35604. * Checks if the image can be decoded by the browser.
  35605. */
  35606. JpegStream.prototype.isNativelyDecodable =
  35607. function JpegStream_isNativelyDecodable(xref, res) {
  35608. var cs = ColorSpace.parse(this.dict.get('ColorSpace', 'CS'), xref, res);
  35609. var numComps = cs.numComps;
  35610. return numComps == 1 || numComps == 3;
  35611. };
  35612. return JpegStream;
  35613. })();
  35614. /**
  35615. * For JPEG 2000's we use a library to decode these images and
  35616. * the stream behaves like all the other DecodeStreams.
  35617. */
  35618. var JpxStream = (function JpxStreamClosure() {
  35619. function JpxStream(stream, maybeLength, dict) {
  35620. this.stream = stream;
  35621. this.maybeLength = maybeLength;
  35622. this.dict = dict;
  35623. DecodeStream.call(this, maybeLength);
  35624. }
  35625. JpxStream.prototype = Object.create(DecodeStream.prototype);
  35626. Object.defineProperty(JpxStream.prototype, 'bytes', {
  35627. get: function JpxStream_bytes() {
  35628. // If this.maybeLength is null, we'll get the entire stream.
  35629. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  35630. },
  35631. configurable: true
  35632. });
  35633. JpxStream.prototype.ensureBuffer = function JpxStream_ensureBuffer(req) {
  35634. if (this.bufferLength) {
  35635. return;
  35636. }
  35637. var jpxImage = new JpxImage();
  35638. jpxImage.parse(this.bytes);
  35639. var width = jpxImage.width;
  35640. var height = jpxImage.height;
  35641. var componentsCount = jpxImage.componentsCount;
  35642. var tileCount = jpxImage.tiles.length;
  35643. if (tileCount === 1) {
  35644. this.buffer = jpxImage.tiles[0].items;
  35645. } else {
  35646. var data = new Uint8Array(width * height * componentsCount);
  35647. for (var k = 0; k < tileCount; k++) {
  35648. var tileComponents = jpxImage.tiles[k];
  35649. var tileWidth = tileComponents.width;
  35650. var tileHeight = tileComponents.height;
  35651. var tileLeft = tileComponents.left;
  35652. var tileTop = tileComponents.top;
  35653. var src = tileComponents.items;
  35654. var srcPosition = 0;
  35655. var dataPosition = (width * tileTop + tileLeft) * componentsCount;
  35656. var imgRowSize = width * componentsCount;
  35657. var tileRowSize = tileWidth * componentsCount;
  35658. for (var j = 0; j < tileHeight; j++) {
  35659. var rowBytes = src.subarray(srcPosition, srcPosition + tileRowSize);
  35660. data.set(rowBytes, dataPosition);
  35661. srcPosition += tileRowSize;
  35662. dataPosition += imgRowSize;
  35663. }
  35664. }
  35665. this.buffer = data;
  35666. }
  35667. this.bufferLength = this.buffer.length;
  35668. this.eof = true;
  35669. };
  35670. return JpxStream;
  35671. })();
  35672. /**
  35673. * For JBIG2's we use a library to decode these images and
  35674. * the stream behaves like all the other DecodeStreams.
  35675. */
  35676. var Jbig2Stream = (function Jbig2StreamClosure() {
  35677. function Jbig2Stream(stream, maybeLength, dict) {
  35678. this.stream = stream;
  35679. this.maybeLength = maybeLength;
  35680. this.dict = dict;
  35681. DecodeStream.call(this, maybeLength);
  35682. }
  35683. Jbig2Stream.prototype = Object.create(DecodeStream.prototype);
  35684. Object.defineProperty(Jbig2Stream.prototype, 'bytes', {
  35685. get: function Jbig2Stream_bytes() {
  35686. // If this.maybeLength is null, we'll get the entire stream.
  35687. return shadow(this, 'bytes', this.stream.getBytes(this.maybeLength));
  35688. },
  35689. configurable: true
  35690. });
  35691. Jbig2Stream.prototype.ensureBuffer = function Jbig2Stream_ensureBuffer(req) {
  35692. if (this.bufferLength) {
  35693. return;
  35694. }
  35695. var jbig2Image = new Jbig2Image();
  35696. var chunks = [], decodeParams = this.dict.get('DecodeParms');
  35697. // According to the PDF specification, DecodeParms can be either
  35698. // a dictionary, or an array whose elements are dictionaries.
  35699. if (isArray(decodeParams)) {
  35700. if (decodeParams.length > 1) {
  35701. warn('JBIG2 - \'DecodeParms\' array with multiple elements ' +
  35702. 'not supported.');
  35703. }
  35704. decodeParams = decodeParams[0];
  35705. }
  35706. if (decodeParams && decodeParams.has('JBIG2Globals')) {
  35707. var globalsStream = decodeParams.get('JBIG2Globals');
  35708. var globals = globalsStream.getBytes();
  35709. chunks.push({data: globals, start: 0, end: globals.length});
  35710. }
  35711. chunks.push({data: this.bytes, start: 0, end: this.bytes.length});
  35712. var data = jbig2Image.parseChunks(chunks);
  35713. var dataLength = data.length;
  35714. // JBIG2 had black as 1 and white as 0, inverting the colors
  35715. for (var i = 0; i < dataLength; i++) {
  35716. data[i] ^= 0xFF;
  35717. }
  35718. this.buffer = data;
  35719. this.bufferLength = dataLength;
  35720. this.eof = true;
  35721. };
  35722. return Jbig2Stream;
  35723. })();
  35724. var DecryptStream = (function DecryptStreamClosure() {
  35725. function DecryptStream(str, maybeLength, decrypt) {
  35726. this.str = str;
  35727. this.dict = str.dict;
  35728. this.decrypt = decrypt;
  35729. this.nextChunk = null;
  35730. this.initialized = false;
  35731. DecodeStream.call(this, maybeLength);
  35732. }
  35733. var chunkSize = 512;
  35734. DecryptStream.prototype = Object.create(DecodeStream.prototype);
  35735. DecryptStream.prototype.readBlock = function DecryptStream_readBlock() {
  35736. var chunk;
  35737. if (this.initialized) {
  35738. chunk = this.nextChunk;
  35739. } else {
  35740. chunk = this.str.getBytes(chunkSize);
  35741. this.initialized = true;
  35742. }
  35743. if (!chunk || chunk.length === 0) {
  35744. this.eof = true;
  35745. return;
  35746. }
  35747. this.nextChunk = this.str.getBytes(chunkSize);
  35748. var hasMoreData = this.nextChunk && this.nextChunk.length > 0;
  35749. var decrypt = this.decrypt;
  35750. chunk = decrypt(chunk, !hasMoreData);
  35751. var bufferLength = this.bufferLength;
  35752. var i, n = chunk.length;
  35753. var buffer = this.ensureBuffer(bufferLength + n);
  35754. for (i = 0; i < n; i++) {
  35755. buffer[bufferLength++] = chunk[i];
  35756. }
  35757. this.bufferLength = bufferLength;
  35758. };
  35759. return DecryptStream;
  35760. })();
  35761. var Ascii85Stream = (function Ascii85StreamClosure() {
  35762. function Ascii85Stream(str, maybeLength) {
  35763. this.str = str;
  35764. this.dict = str.dict;
  35765. this.input = new Uint8Array(5);
  35766. // Most streams increase in size when decoded, but Ascii85 streams
  35767. // typically shrink by ~20%.
  35768. if (maybeLength) {
  35769. maybeLength = 0.8 * maybeLength;
  35770. }
  35771. DecodeStream.call(this, maybeLength);
  35772. }
  35773. Ascii85Stream.prototype = Object.create(DecodeStream.prototype);
  35774. Ascii85Stream.prototype.readBlock = function Ascii85Stream_readBlock() {
  35775. var TILDA_CHAR = 0x7E; // '~'
  35776. var Z_LOWER_CHAR = 0x7A; // 'z'
  35777. var EOF = -1;
  35778. var str = this.str;
  35779. var c = str.getByte();
  35780. while (Lexer.isSpace(c)) {
  35781. c = str.getByte();
  35782. }
  35783. if (c === EOF || c === TILDA_CHAR) {
  35784. this.eof = true;
  35785. return;
  35786. }
  35787. var bufferLength = this.bufferLength, buffer;
  35788. var i;
  35789. // special code for z
  35790. if (c == Z_LOWER_CHAR) {
  35791. buffer = this.ensureBuffer(bufferLength + 4);
  35792. for (i = 0; i < 4; ++i) {
  35793. buffer[bufferLength + i] = 0;
  35794. }
  35795. this.bufferLength += 4;
  35796. } else {
  35797. var input = this.input;
  35798. input[0] = c;
  35799. for (i = 1; i < 5; ++i) {
  35800. c = str.getByte();
  35801. while (Lexer.isSpace(c)) {
  35802. c = str.getByte();
  35803. }
  35804. input[i] = c;
  35805. if (c === EOF || c == TILDA_CHAR) {
  35806. break;
  35807. }
  35808. }
  35809. buffer = this.ensureBuffer(bufferLength + i - 1);
  35810. this.bufferLength += i - 1;
  35811. // partial ending;
  35812. if (i < 5) {
  35813. for (; i < 5; ++i) {
  35814. input[i] = 0x21 + 84;
  35815. }
  35816. this.eof = true;
  35817. }
  35818. var t = 0;
  35819. for (i = 0; i < 5; ++i) {
  35820. t = t * 85 + (input[i] - 0x21);
  35821. }
  35822. for (i = 3; i >= 0; --i) {
  35823. buffer[bufferLength + i] = t & 0xFF;
  35824. t >>= 8;
  35825. }
  35826. }
  35827. };
  35828. return Ascii85Stream;
  35829. })();
  35830. var AsciiHexStream = (function AsciiHexStreamClosure() {
  35831. function AsciiHexStream(str, maybeLength) {
  35832. this.str = str;
  35833. this.dict = str.dict;
  35834. this.firstDigit = -1;
  35835. // Most streams increase in size when decoded, but AsciiHex streams shrink
  35836. // by 50%.
  35837. if (maybeLength) {
  35838. maybeLength = 0.5 * maybeLength;
  35839. }
  35840. DecodeStream.call(this, maybeLength);
  35841. }
  35842. AsciiHexStream.prototype = Object.create(DecodeStream.prototype);
  35843. AsciiHexStream.prototype.readBlock = function AsciiHexStream_readBlock() {
  35844. var UPSTREAM_BLOCK_SIZE = 8000;
  35845. var bytes = this.str.getBytes(UPSTREAM_BLOCK_SIZE);
  35846. if (!bytes.length) {
  35847. this.eof = true;
  35848. return;
  35849. }
  35850. var maxDecodeLength = (bytes.length + 1) >> 1;
  35851. var buffer = this.ensureBuffer(this.bufferLength + maxDecodeLength);
  35852. var bufferLength = this.bufferLength;
  35853. var firstDigit = this.firstDigit;
  35854. for (var i = 0, ii = bytes.length; i < ii; i++) {
  35855. var ch = bytes[i], digit;
  35856. if (ch >= 0x30 && ch <= 0x39) { // '0'-'9'
  35857. digit = ch & 0x0F;
  35858. } else if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
  35859. // 'A'-'Z', 'a'-'z'
  35860. digit = (ch & 0x0F) + 9;
  35861. } else if (ch === 0x3E) { // '>'
  35862. this.eof = true;
  35863. break;
  35864. } else { // probably whitespace
  35865. continue; // ignoring
  35866. }
  35867. if (firstDigit < 0) {
  35868. firstDigit = digit;
  35869. } else {
  35870. buffer[bufferLength++] = (firstDigit << 4) | digit;
  35871. firstDigit = -1;
  35872. }
  35873. }
  35874. if (firstDigit >= 0 && this.eof) {
  35875. // incomplete byte
  35876. buffer[bufferLength++] = (firstDigit << 4);
  35877. firstDigit = -1;
  35878. }
  35879. this.firstDigit = firstDigit;
  35880. this.bufferLength = bufferLength;
  35881. };
  35882. return AsciiHexStream;
  35883. })();
  35884. var RunLengthStream = (function RunLengthStreamClosure() {
  35885. function RunLengthStream(str, maybeLength) {
  35886. this.str = str;
  35887. this.dict = str.dict;
  35888. DecodeStream.call(this, maybeLength);
  35889. }
  35890. RunLengthStream.prototype = Object.create(DecodeStream.prototype);
  35891. RunLengthStream.prototype.readBlock = function RunLengthStream_readBlock() {
  35892. // The repeatHeader has following format. The first byte defines type of run
  35893. // and amount of bytes to repeat/copy: n = 0 through 127 - copy next n bytes
  35894. // (in addition to the second byte from the header), n = 129 through 255 -
  35895. // duplicate the second byte from the header (257 - n) times, n = 128 - end.
  35896. var repeatHeader = this.str.getBytes(2);
  35897. if (!repeatHeader || repeatHeader.length < 2 || repeatHeader[0] == 128) {
  35898. this.eof = true;
  35899. return;
  35900. }
  35901. var buffer;
  35902. var bufferLength = this.bufferLength;
  35903. var n = repeatHeader[0];
  35904. if (n < 128) {
  35905. // copy n bytes
  35906. buffer = this.ensureBuffer(bufferLength + n + 1);
  35907. buffer[bufferLength++] = repeatHeader[1];
  35908. if (n > 0) {
  35909. var source = this.str.getBytes(n);
  35910. buffer.set(source, bufferLength);
  35911. bufferLength += n;
  35912. }
  35913. } else {
  35914. n = 257 - n;
  35915. var b = repeatHeader[1];
  35916. buffer = this.ensureBuffer(bufferLength + n + 1);
  35917. for (var i = 0; i < n; i++) {
  35918. buffer[bufferLength++] = b;
  35919. }
  35920. }
  35921. this.bufferLength = bufferLength;
  35922. };
  35923. return RunLengthStream;
  35924. })();
  35925. var CCITTFaxStream = (function CCITTFaxStreamClosure() {
  35926. var ccittEOL = -2;
  35927. var twoDimPass = 0;
  35928. var twoDimHoriz = 1;
  35929. var twoDimVert0 = 2;
  35930. var twoDimVertR1 = 3;
  35931. var twoDimVertL1 = 4;
  35932. var twoDimVertR2 = 5;
  35933. var twoDimVertL2 = 6;
  35934. var twoDimVertR3 = 7;
  35935. var twoDimVertL3 = 8;
  35936. var twoDimTable = [
  35937. [-1, -1], [-1, -1], // 000000x
  35938. [7, twoDimVertL3], // 0000010
  35939. [7, twoDimVertR3], // 0000011
  35940. [6, twoDimVertL2], [6, twoDimVertL2], // 000010x
  35941. [6, twoDimVertR2], [6, twoDimVertR2], // 000011x
  35942. [4, twoDimPass], [4, twoDimPass], // 0001xxx
  35943. [4, twoDimPass], [4, twoDimPass],
  35944. [4, twoDimPass], [4, twoDimPass],
  35945. [4, twoDimPass], [4, twoDimPass],
  35946. [3, twoDimHoriz], [3, twoDimHoriz], // 001xxxx
  35947. [3, twoDimHoriz], [3, twoDimHoriz],
  35948. [3, twoDimHoriz], [3, twoDimHoriz],
  35949. [3, twoDimHoriz], [3, twoDimHoriz],
  35950. [3, twoDimHoriz], [3, twoDimHoriz],
  35951. [3, twoDimHoriz], [3, twoDimHoriz],
  35952. [3, twoDimHoriz], [3, twoDimHoriz],
  35953. [3, twoDimHoriz], [3, twoDimHoriz],
  35954. [3, twoDimVertL1], [3, twoDimVertL1], // 010xxxx
  35955. [3, twoDimVertL1], [3, twoDimVertL1],
  35956. [3, twoDimVertL1], [3, twoDimVertL1],
  35957. [3, twoDimVertL1], [3, twoDimVertL1],
  35958. [3, twoDimVertL1], [3, twoDimVertL1],
  35959. [3, twoDimVertL1], [3, twoDimVertL1],
  35960. [3, twoDimVertL1], [3, twoDimVertL1],
  35961. [3, twoDimVertL1], [3, twoDimVertL1],
  35962. [3, twoDimVertR1], [3, twoDimVertR1], // 011xxxx
  35963. [3, twoDimVertR1], [3, twoDimVertR1],
  35964. [3, twoDimVertR1], [3, twoDimVertR1],
  35965. [3, twoDimVertR1], [3, twoDimVertR1],
  35966. [3, twoDimVertR1], [3, twoDimVertR1],
  35967. [3, twoDimVertR1], [3, twoDimVertR1],
  35968. [3, twoDimVertR1], [3, twoDimVertR1],
  35969. [3, twoDimVertR1], [3, twoDimVertR1],
  35970. [1, twoDimVert0], [1, twoDimVert0], // 1xxxxxx
  35971. [1, twoDimVert0], [1, twoDimVert0],
  35972. [1, twoDimVert0], [1, twoDimVert0],
  35973. [1, twoDimVert0], [1, twoDimVert0],
  35974. [1, twoDimVert0], [1, twoDimVert0],
  35975. [1, twoDimVert0], [1, twoDimVert0],
  35976. [1, twoDimVert0], [1, twoDimVert0],
  35977. [1, twoDimVert0], [1, twoDimVert0],
  35978. [1, twoDimVert0], [1, twoDimVert0],
  35979. [1, twoDimVert0], [1, twoDimVert0],
  35980. [1, twoDimVert0], [1, twoDimVert0],
  35981. [1, twoDimVert0], [1, twoDimVert0],
  35982. [1, twoDimVert0], [1, twoDimVert0],
  35983. [1, twoDimVert0], [1, twoDimVert0],
  35984. [1, twoDimVert0], [1, twoDimVert0],
  35985. [1, twoDimVert0], [1, twoDimVert0],
  35986. [1, twoDimVert0], [1, twoDimVert0],
  35987. [1, twoDimVert0], [1, twoDimVert0],
  35988. [1, twoDimVert0], [1, twoDimVert0],
  35989. [1, twoDimVert0], [1, twoDimVert0],
  35990. [1, twoDimVert0], [1, twoDimVert0],
  35991. [1, twoDimVert0], [1, twoDimVert0],
  35992. [1, twoDimVert0], [1, twoDimVert0],
  35993. [1, twoDimVert0], [1, twoDimVert0],
  35994. [1, twoDimVert0], [1, twoDimVert0],
  35995. [1, twoDimVert0], [1, twoDimVert0],
  35996. [1, twoDimVert0], [1, twoDimVert0],
  35997. [1, twoDimVert0], [1, twoDimVert0],
  35998. [1, twoDimVert0], [1, twoDimVert0],
  35999. [1, twoDimVert0], [1, twoDimVert0],
  36000. [1, twoDimVert0], [1, twoDimVert0],
  36001. [1, twoDimVert0], [1, twoDimVert0]
  36002. ];
  36003. var whiteTable1 = [
  36004. [-1, -1], // 00000
  36005. [12, ccittEOL], // 00001
  36006. [-1, -1], [-1, -1], // 0001x
  36007. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 001xx
  36008. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 010xx
  36009. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 011xx
  36010. [11, 1792], [11, 1792], // 1000x
  36011. [12, 1984], // 10010
  36012. [12, 2048], // 10011
  36013. [12, 2112], // 10100
  36014. [12, 2176], // 10101
  36015. [12, 2240], // 10110
  36016. [12, 2304], // 10111
  36017. [11, 1856], [11, 1856], // 1100x
  36018. [11, 1920], [11, 1920], // 1101x
  36019. [12, 2368], // 11100
  36020. [12, 2432], // 11101
  36021. [12, 2496], // 11110
  36022. [12, 2560] // 11111
  36023. ];
  36024. var whiteTable2 = [
  36025. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000000xx
  36026. [8, 29], [8, 29], // 00000010x
  36027. [8, 30], [8, 30], // 00000011x
  36028. [8, 45], [8, 45], // 00000100x
  36029. [8, 46], [8, 46], // 00000101x
  36030. [7, 22], [7, 22], [7, 22], [7, 22], // 0000011xx
  36031. [7, 23], [7, 23], [7, 23], [7, 23], // 0000100xx
  36032. [8, 47], [8, 47], // 00001010x
  36033. [8, 48], [8, 48], // 00001011x
  36034. [6, 13], [6, 13], [6, 13], [6, 13], // 000011xxx
  36035. [6, 13], [6, 13], [6, 13], [6, 13],
  36036. [7, 20], [7, 20], [7, 20], [7, 20], // 0001000xx
  36037. [8, 33], [8, 33], // 00010010x
  36038. [8, 34], [8, 34], // 00010011x
  36039. [8, 35], [8, 35], // 00010100x
  36040. [8, 36], [8, 36], // 00010101x
  36041. [8, 37], [8, 37], // 00010110x
  36042. [8, 38], [8, 38], // 00010111x
  36043. [7, 19], [7, 19], [7, 19], [7, 19], // 0001100xx
  36044. [8, 31], [8, 31], // 00011010x
  36045. [8, 32], [8, 32], // 00011011x
  36046. [6, 1], [6, 1], [6, 1], [6, 1], // 000111xxx
  36047. [6, 1], [6, 1], [6, 1], [6, 1],
  36048. [6, 12], [6, 12], [6, 12], [6, 12], // 001000xxx
  36049. [6, 12], [6, 12], [6, 12], [6, 12],
  36050. [8, 53], [8, 53], // 00100100x
  36051. [8, 54], [8, 54], // 00100101x
  36052. [7, 26], [7, 26], [7, 26], [7, 26], // 0010011xx
  36053. [8, 39], [8, 39], // 00101000x
  36054. [8, 40], [8, 40], // 00101001x
  36055. [8, 41], [8, 41], // 00101010x
  36056. [8, 42], [8, 42], // 00101011x
  36057. [8, 43], [8, 43], // 00101100x
  36058. [8, 44], [8, 44], // 00101101x
  36059. [7, 21], [7, 21], [7, 21], [7, 21], // 0010111xx
  36060. [7, 28], [7, 28], [7, 28], [7, 28], // 0011000xx
  36061. [8, 61], [8, 61], // 00110010x
  36062. [8, 62], [8, 62], // 00110011x
  36063. [8, 63], [8, 63], // 00110100x
  36064. [8, 0], [8, 0], // 00110101x
  36065. [8, 320], [8, 320], // 00110110x
  36066. [8, 384], [8, 384], // 00110111x
  36067. [5, 10], [5, 10], [5, 10], [5, 10], // 00111xxxx
  36068. [5, 10], [5, 10], [5, 10], [5, 10],
  36069. [5, 10], [5, 10], [5, 10], [5, 10],
  36070. [5, 10], [5, 10], [5, 10], [5, 10],
  36071. [5, 11], [5, 11], [5, 11], [5, 11], // 01000xxxx
  36072. [5, 11], [5, 11], [5, 11], [5, 11],
  36073. [5, 11], [5, 11], [5, 11], [5, 11],
  36074. [5, 11], [5, 11], [5, 11], [5, 11],
  36075. [7, 27], [7, 27], [7, 27], [7, 27], // 0100100xx
  36076. [8, 59], [8, 59], // 01001010x
  36077. [8, 60], [8, 60], // 01001011x
  36078. [9, 1472], // 010011000
  36079. [9, 1536], // 010011001
  36080. [9, 1600], // 010011010
  36081. [9, 1728], // 010011011
  36082. [7, 18], [7, 18], [7, 18], [7, 18], // 0100111xx
  36083. [7, 24], [7, 24], [7, 24], [7, 24], // 0101000xx
  36084. [8, 49], [8, 49], // 01010010x
  36085. [8, 50], [8, 50], // 01010011x
  36086. [8, 51], [8, 51], // 01010100x
  36087. [8, 52], [8, 52], // 01010101x
  36088. [7, 25], [7, 25], [7, 25], [7, 25], // 0101011xx
  36089. [8, 55], [8, 55], // 01011000x
  36090. [8, 56], [8, 56], // 01011001x
  36091. [8, 57], [8, 57], // 01011010x
  36092. [8, 58], [8, 58], // 01011011x
  36093. [6, 192], [6, 192], [6, 192], [6, 192], // 010111xxx
  36094. [6, 192], [6, 192], [6, 192], [6, 192],
  36095. [6, 1664], [6, 1664], [6, 1664], [6, 1664], // 011000xxx
  36096. [6, 1664], [6, 1664], [6, 1664], [6, 1664],
  36097. [8, 448], [8, 448], // 01100100x
  36098. [8, 512], [8, 512], // 01100101x
  36099. [9, 704], // 011001100
  36100. [9, 768], // 011001101
  36101. [8, 640], [8, 640], // 01100111x
  36102. [8, 576], [8, 576], // 01101000x
  36103. [9, 832], // 011010010
  36104. [9, 896], // 011010011
  36105. [9, 960], // 011010100
  36106. [9, 1024], // 011010101
  36107. [9, 1088], // 011010110
  36108. [9, 1152], // 011010111
  36109. [9, 1216], // 011011000
  36110. [9, 1280], // 011011001
  36111. [9, 1344], // 011011010
  36112. [9, 1408], // 011011011
  36113. [7, 256], [7, 256], [7, 256], [7, 256], // 0110111xx
  36114. [4, 2], [4, 2], [4, 2], [4, 2], // 0111xxxxx
  36115. [4, 2], [4, 2], [4, 2], [4, 2],
  36116. [4, 2], [4, 2], [4, 2], [4, 2],
  36117. [4, 2], [4, 2], [4, 2], [4, 2],
  36118. [4, 2], [4, 2], [4, 2], [4, 2],
  36119. [4, 2], [4, 2], [4, 2], [4, 2],
  36120. [4, 2], [4, 2], [4, 2], [4, 2],
  36121. [4, 2], [4, 2], [4, 2], [4, 2],
  36122. [4, 3], [4, 3], [4, 3], [4, 3], // 1000xxxxx
  36123. [4, 3], [4, 3], [4, 3], [4, 3],
  36124. [4, 3], [4, 3], [4, 3], [4, 3],
  36125. [4, 3], [4, 3], [4, 3], [4, 3],
  36126. [4, 3], [4, 3], [4, 3], [4, 3],
  36127. [4, 3], [4, 3], [4, 3], [4, 3],
  36128. [4, 3], [4, 3], [4, 3], [4, 3],
  36129. [4, 3], [4, 3], [4, 3], [4, 3],
  36130. [5, 128], [5, 128], [5, 128], [5, 128], // 10010xxxx
  36131. [5, 128], [5, 128], [5, 128], [5, 128],
  36132. [5, 128], [5, 128], [5, 128], [5, 128],
  36133. [5, 128], [5, 128], [5, 128], [5, 128],
  36134. [5, 8], [5, 8], [5, 8], [5, 8], // 10011xxxx
  36135. [5, 8], [5, 8], [5, 8], [5, 8],
  36136. [5, 8], [5, 8], [5, 8], [5, 8],
  36137. [5, 8], [5, 8], [5, 8], [5, 8],
  36138. [5, 9], [5, 9], [5, 9], [5, 9], // 10100xxxx
  36139. [5, 9], [5, 9], [5, 9], [5, 9],
  36140. [5, 9], [5, 9], [5, 9], [5, 9],
  36141. [5, 9], [5, 9], [5, 9], [5, 9],
  36142. [6, 16], [6, 16], [6, 16], [6, 16], // 101010xxx
  36143. [6, 16], [6, 16], [6, 16], [6, 16],
  36144. [6, 17], [6, 17], [6, 17], [6, 17], // 101011xxx
  36145. [6, 17], [6, 17], [6, 17], [6, 17],
  36146. [4, 4], [4, 4], [4, 4], [4, 4], // 1011xxxxx
  36147. [4, 4], [4, 4], [4, 4], [4, 4],
  36148. [4, 4], [4, 4], [4, 4], [4, 4],
  36149. [4, 4], [4, 4], [4, 4], [4, 4],
  36150. [4, 4], [4, 4], [4, 4], [4, 4],
  36151. [4, 4], [4, 4], [4, 4], [4, 4],
  36152. [4, 4], [4, 4], [4, 4], [4, 4],
  36153. [4, 4], [4, 4], [4, 4], [4, 4],
  36154. [4, 5], [4, 5], [4, 5], [4, 5], // 1100xxxxx
  36155. [4, 5], [4, 5], [4, 5], [4, 5],
  36156. [4, 5], [4, 5], [4, 5], [4, 5],
  36157. [4, 5], [4, 5], [4, 5], [4, 5],
  36158. [4, 5], [4, 5], [4, 5], [4, 5],
  36159. [4, 5], [4, 5], [4, 5], [4, 5],
  36160. [4, 5], [4, 5], [4, 5], [4, 5],
  36161. [4, 5], [4, 5], [4, 5], [4, 5],
  36162. [6, 14], [6, 14], [6, 14], [6, 14], // 110100xxx
  36163. [6, 14], [6, 14], [6, 14], [6, 14],
  36164. [6, 15], [6, 15], [6, 15], [6, 15], // 110101xxx
  36165. [6, 15], [6, 15], [6, 15], [6, 15],
  36166. [5, 64], [5, 64], [5, 64], [5, 64], // 11011xxxx
  36167. [5, 64], [5, 64], [5, 64], [5, 64],
  36168. [5, 64], [5, 64], [5, 64], [5, 64],
  36169. [5, 64], [5, 64], [5, 64], [5, 64],
  36170. [4, 6], [4, 6], [4, 6], [4, 6], // 1110xxxxx
  36171. [4, 6], [4, 6], [4, 6], [4, 6],
  36172. [4, 6], [4, 6], [4, 6], [4, 6],
  36173. [4, 6], [4, 6], [4, 6], [4, 6],
  36174. [4, 6], [4, 6], [4, 6], [4, 6],
  36175. [4, 6], [4, 6], [4, 6], [4, 6],
  36176. [4, 6], [4, 6], [4, 6], [4, 6],
  36177. [4, 6], [4, 6], [4, 6], [4, 6],
  36178. [4, 7], [4, 7], [4, 7], [4, 7], // 1111xxxxx
  36179. [4, 7], [4, 7], [4, 7], [4, 7],
  36180. [4, 7], [4, 7], [4, 7], [4, 7],
  36181. [4, 7], [4, 7], [4, 7], [4, 7],
  36182. [4, 7], [4, 7], [4, 7], [4, 7],
  36183. [4, 7], [4, 7], [4, 7], [4, 7],
  36184. [4, 7], [4, 7], [4, 7], [4, 7],
  36185. [4, 7], [4, 7], [4, 7], [4, 7]
  36186. ];
  36187. var blackTable1 = [
  36188. [-1, -1], [-1, -1], // 000000000000x
  36189. [12, ccittEOL], [12, ccittEOL], // 000000000001x
  36190. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000001xx
  36191. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000010xx
  36192. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000011xx
  36193. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000100xx
  36194. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000101xx
  36195. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000110xx
  36196. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 00000000111xx
  36197. [11, 1792], [11, 1792], [11, 1792], [11, 1792], // 00000001000xx
  36198. [12, 1984], [12, 1984], // 000000010010x
  36199. [12, 2048], [12, 2048], // 000000010011x
  36200. [12, 2112], [12, 2112], // 000000010100x
  36201. [12, 2176], [12, 2176], // 000000010101x
  36202. [12, 2240], [12, 2240], // 000000010110x
  36203. [12, 2304], [12, 2304], // 000000010111x
  36204. [11, 1856], [11, 1856], [11, 1856], [11, 1856], // 00000001100xx
  36205. [11, 1920], [11, 1920], [11, 1920], [11, 1920], // 00000001101xx
  36206. [12, 2368], [12, 2368], // 000000011100x
  36207. [12, 2432], [12, 2432], // 000000011101x
  36208. [12, 2496], [12, 2496], // 000000011110x
  36209. [12, 2560], [12, 2560], // 000000011111x
  36210. [10, 18], [10, 18], [10, 18], [10, 18], // 0000001000xxx
  36211. [10, 18], [10, 18], [10, 18], [10, 18],
  36212. [12, 52], [12, 52], // 000000100100x
  36213. [13, 640], // 0000001001010
  36214. [13, 704], // 0000001001011
  36215. [13, 768], // 0000001001100
  36216. [13, 832], // 0000001001101
  36217. [12, 55], [12, 55], // 000000100111x
  36218. [12, 56], [12, 56], // 000000101000x
  36219. [13, 1280], // 0000001010010
  36220. [13, 1344], // 0000001010011
  36221. [13, 1408], // 0000001010100
  36222. [13, 1472], // 0000001010101
  36223. [12, 59], [12, 59], // 000000101011x
  36224. [12, 60], [12, 60], // 000000101100x
  36225. [13, 1536], // 0000001011010
  36226. [13, 1600], // 0000001011011
  36227. [11, 24], [11, 24], [11, 24], [11, 24], // 00000010111xx
  36228. [11, 25], [11, 25], [11, 25], [11, 25], // 00000011000xx
  36229. [13, 1664], // 0000001100100
  36230. [13, 1728], // 0000001100101
  36231. [12, 320], [12, 320], // 000000110011x
  36232. [12, 384], [12, 384], // 000000110100x
  36233. [12, 448], [12, 448], // 000000110101x
  36234. [13, 512], // 0000001101100
  36235. [13, 576], // 0000001101101
  36236. [12, 53], [12, 53], // 000000110111x
  36237. [12, 54], [12, 54], // 000000111000x
  36238. [13, 896], // 0000001110010
  36239. [13, 960], // 0000001110011
  36240. [13, 1024], // 0000001110100
  36241. [13, 1088], // 0000001110101
  36242. [13, 1152], // 0000001110110
  36243. [13, 1216], // 0000001110111
  36244. [10, 64], [10, 64], [10, 64], [10, 64], // 0000001111xxx
  36245. [10, 64], [10, 64], [10, 64], [10, 64]
  36246. ];
  36247. var blackTable2 = [
  36248. [8, 13], [8, 13], [8, 13], [8, 13], // 00000100xxxx
  36249. [8, 13], [8, 13], [8, 13], [8, 13],
  36250. [8, 13], [8, 13], [8, 13], [8, 13],
  36251. [8, 13], [8, 13], [8, 13], [8, 13],
  36252. [11, 23], [11, 23], // 00000101000x
  36253. [12, 50], // 000001010010
  36254. [12, 51], // 000001010011
  36255. [12, 44], // 000001010100
  36256. [12, 45], // 000001010101
  36257. [12, 46], // 000001010110
  36258. [12, 47], // 000001010111
  36259. [12, 57], // 000001011000
  36260. [12, 58], // 000001011001
  36261. [12, 61], // 000001011010
  36262. [12, 256], // 000001011011
  36263. [10, 16], [10, 16], [10, 16], [10, 16], // 0000010111xx
  36264. [10, 17], [10, 17], [10, 17], [10, 17], // 0000011000xx
  36265. [12, 48], // 000001100100
  36266. [12, 49], // 000001100101
  36267. [12, 62], // 000001100110
  36268. [12, 63], // 000001100111
  36269. [12, 30], // 000001101000
  36270. [12, 31], // 000001101001
  36271. [12, 32], // 000001101010
  36272. [12, 33], // 000001101011
  36273. [12, 40], // 000001101100
  36274. [12, 41], // 000001101101
  36275. [11, 22], [11, 22], // 00000110111x
  36276. [8, 14], [8, 14], [8, 14], [8, 14], // 00000111xxxx
  36277. [8, 14], [8, 14], [8, 14], [8, 14],
  36278. [8, 14], [8, 14], [8, 14], [8, 14],
  36279. [8, 14], [8, 14], [8, 14], [8, 14],
  36280. [7, 10], [7, 10], [7, 10], [7, 10], // 0000100xxxxx
  36281. [7, 10], [7, 10], [7, 10], [7, 10],
  36282. [7, 10], [7, 10], [7, 10], [7, 10],
  36283. [7, 10], [7, 10], [7, 10], [7, 10],
  36284. [7, 10], [7, 10], [7, 10], [7, 10],
  36285. [7, 10], [7, 10], [7, 10], [7, 10],
  36286. [7, 10], [7, 10], [7, 10], [7, 10],
  36287. [7, 10], [7, 10], [7, 10], [7, 10],
  36288. [7, 11], [7, 11], [7, 11], [7, 11], // 0000101xxxxx
  36289. [7, 11], [7, 11], [7, 11], [7, 11],
  36290. [7, 11], [7, 11], [7, 11], [7, 11],
  36291. [7, 11], [7, 11], [7, 11], [7, 11],
  36292. [7, 11], [7, 11], [7, 11], [7, 11],
  36293. [7, 11], [7, 11], [7, 11], [7, 11],
  36294. [7, 11], [7, 11], [7, 11], [7, 11],
  36295. [7, 11], [7, 11], [7, 11], [7, 11],
  36296. [9, 15], [9, 15], [9, 15], [9, 15], // 000011000xxx
  36297. [9, 15], [9, 15], [9, 15], [9, 15],
  36298. [12, 128], // 000011001000
  36299. [12, 192], // 000011001001
  36300. [12, 26], // 000011001010
  36301. [12, 27], // 000011001011
  36302. [12, 28], // 000011001100
  36303. [12, 29], // 000011001101
  36304. [11, 19], [11, 19], // 00001100111x
  36305. [11, 20], [11, 20], // 00001101000x
  36306. [12, 34], // 000011010010
  36307. [12, 35], // 000011010011
  36308. [12, 36], // 000011010100
  36309. [12, 37], // 000011010101
  36310. [12, 38], // 000011010110
  36311. [12, 39], // 000011010111
  36312. [11, 21], [11, 21], // 00001101100x
  36313. [12, 42], // 000011011010
  36314. [12, 43], // 000011011011
  36315. [10, 0], [10, 0], [10, 0], [10, 0], // 0000110111xx
  36316. [7, 12], [7, 12], [7, 12], [7, 12], // 0000111xxxxx
  36317. [7, 12], [7, 12], [7, 12], [7, 12],
  36318. [7, 12], [7, 12], [7, 12], [7, 12],
  36319. [7, 12], [7, 12], [7, 12], [7, 12],
  36320. [7, 12], [7, 12], [7, 12], [7, 12],
  36321. [7, 12], [7, 12], [7, 12], [7, 12],
  36322. [7, 12], [7, 12], [7, 12], [7, 12],
  36323. [7, 12], [7, 12], [7, 12], [7, 12]
  36324. ];
  36325. var blackTable3 = [
  36326. [-1, -1], [-1, -1], [-1, -1], [-1, -1], // 0000xx
  36327. [6, 9], // 000100
  36328. [6, 8], // 000101
  36329. [5, 7], [5, 7], // 00011x
  36330. [4, 6], [4, 6], [4, 6], [4, 6], // 0010xx
  36331. [4, 5], [4, 5], [4, 5], [4, 5], // 0011xx
  36332. [3, 1], [3, 1], [3, 1], [3, 1], // 010xxx
  36333. [3, 1], [3, 1], [3, 1], [3, 1],
  36334. [3, 4], [3, 4], [3, 4], [3, 4], // 011xxx
  36335. [3, 4], [3, 4], [3, 4], [3, 4],
  36336. [2, 3], [2, 3], [2, 3], [2, 3], // 10xxxx
  36337. [2, 3], [2, 3], [2, 3], [2, 3],
  36338. [2, 3], [2, 3], [2, 3], [2, 3],
  36339. [2, 3], [2, 3], [2, 3], [2, 3],
  36340. [2, 2], [2, 2], [2, 2], [2, 2], // 11xxxx
  36341. [2, 2], [2, 2], [2, 2], [2, 2],
  36342. [2, 2], [2, 2], [2, 2], [2, 2],
  36343. [2, 2], [2, 2], [2, 2], [2, 2]
  36344. ];
  36345. function CCITTFaxStream(str, maybeLength, params) {
  36346. this.str = str;
  36347. this.dict = str.dict;
  36348. params = params || Dict.empty;
  36349. this.encoding = params.get('K') || 0;
  36350. this.eoline = params.get('EndOfLine') || false;
  36351. this.byteAlign = params.get('EncodedByteAlign') || false;
  36352. this.columns = params.get('Columns') || 1728;
  36353. this.rows = params.get('Rows') || 0;
  36354. var eoblock = params.get('EndOfBlock');
  36355. if (eoblock === null || eoblock === undefined) {
  36356. eoblock = true;
  36357. }
  36358. this.eoblock = eoblock;
  36359. this.black = params.get('BlackIs1') || false;
  36360. this.codingLine = new Uint32Array(this.columns + 1);
  36361. this.refLine = new Uint32Array(this.columns + 2);
  36362. this.codingLine[0] = this.columns;
  36363. this.codingPos = 0;
  36364. this.row = 0;
  36365. this.nextLine2D = this.encoding < 0;
  36366. this.inputBits = 0;
  36367. this.inputBuf = 0;
  36368. this.outputBits = 0;
  36369. var code1;
  36370. while ((code1 = this.lookBits(12)) === 0) {
  36371. this.eatBits(1);
  36372. }
  36373. if (code1 == 1) {
  36374. this.eatBits(12);
  36375. }
  36376. if (this.encoding > 0) {
  36377. this.nextLine2D = !this.lookBits(1);
  36378. this.eatBits(1);
  36379. }
  36380. DecodeStream.call(this, maybeLength);
  36381. }
  36382. CCITTFaxStream.prototype = Object.create(DecodeStream.prototype);
  36383. CCITTFaxStream.prototype.readBlock = function CCITTFaxStream_readBlock() {
  36384. while (!this.eof) {
  36385. var c = this.lookChar();
  36386. this.ensureBuffer(this.bufferLength + 1);
  36387. this.buffer[this.bufferLength++] = c;
  36388. }
  36389. };
  36390. CCITTFaxStream.prototype.addPixels =
  36391. function ccittFaxStreamAddPixels(a1, blackPixels) {
  36392. var codingLine = this.codingLine;
  36393. var codingPos = this.codingPos;
  36394. if (a1 > codingLine[codingPos]) {
  36395. if (a1 > this.columns) {
  36396. info('row is wrong length');
  36397. this.err = true;
  36398. a1 = this.columns;
  36399. }
  36400. if ((codingPos & 1) ^ blackPixels) {
  36401. ++codingPos;
  36402. }
  36403. codingLine[codingPos] = a1;
  36404. }
  36405. this.codingPos = codingPos;
  36406. };
  36407. CCITTFaxStream.prototype.addPixelsNeg =
  36408. function ccittFaxStreamAddPixelsNeg(a1, blackPixels) {
  36409. var codingLine = this.codingLine;
  36410. var codingPos = this.codingPos;
  36411. if (a1 > codingLine[codingPos]) {
  36412. if (a1 > this.columns) {
  36413. info('row is wrong length');
  36414. this.err = true;
  36415. a1 = this.columns;
  36416. }
  36417. if ((codingPos & 1) ^ blackPixels) {
  36418. ++codingPos;
  36419. }
  36420. codingLine[codingPos] = a1;
  36421. } else if (a1 < codingLine[codingPos]) {
  36422. if (a1 < 0) {
  36423. info('invalid code');
  36424. this.err = true;
  36425. a1 = 0;
  36426. }
  36427. while (codingPos > 0 && a1 < codingLine[codingPos - 1]) {
  36428. --codingPos;
  36429. }
  36430. codingLine[codingPos] = a1;
  36431. }
  36432. this.codingPos = codingPos;
  36433. };
  36434. CCITTFaxStream.prototype.lookChar = function CCITTFaxStream_lookChar() {
  36435. var refLine = this.refLine;
  36436. var codingLine = this.codingLine;
  36437. var columns = this.columns;
  36438. var refPos, blackPixels, bits, i;
  36439. if (this.outputBits === 0) {
  36440. if (this.eof) {
  36441. return null;
  36442. }
  36443. this.err = false;
  36444. var code1, code2, code3;
  36445. if (this.nextLine2D) {
  36446. for (i = 0; codingLine[i] < columns; ++i) {
  36447. refLine[i] = codingLine[i];
  36448. }
  36449. refLine[i++] = columns;
  36450. refLine[i] = columns;
  36451. codingLine[0] = 0;
  36452. this.codingPos = 0;
  36453. refPos = 0;
  36454. blackPixels = 0;
  36455. while (codingLine[this.codingPos] < columns) {
  36456. code1 = this.getTwoDimCode();
  36457. switch (code1) {
  36458. case twoDimPass:
  36459. this.addPixels(refLine[refPos + 1], blackPixels);
  36460. if (refLine[refPos + 1] < columns) {
  36461. refPos += 2;
  36462. }
  36463. break;
  36464. case twoDimHoriz:
  36465. code1 = code2 = 0;
  36466. if (blackPixels) {
  36467. do {
  36468. code1 += (code3 = this.getBlackCode());
  36469. } while (code3 >= 64);
  36470. do {
  36471. code2 += (code3 = this.getWhiteCode());
  36472. } while (code3 >= 64);
  36473. } else {
  36474. do {
  36475. code1 += (code3 = this.getWhiteCode());
  36476. } while (code3 >= 64);
  36477. do {
  36478. code2 += (code3 = this.getBlackCode());
  36479. } while (code3 >= 64);
  36480. }
  36481. this.addPixels(codingLine[this.codingPos] +
  36482. code1, blackPixels);
  36483. if (codingLine[this.codingPos] < columns) {
  36484. this.addPixels(codingLine[this.codingPos] + code2,
  36485. blackPixels ^ 1);
  36486. }
  36487. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36488. refLine[refPos] < columns) {
  36489. refPos += 2;
  36490. }
  36491. break;
  36492. case twoDimVertR3:
  36493. this.addPixels(refLine[refPos] + 3, blackPixels);
  36494. blackPixels ^= 1;
  36495. if (codingLine[this.codingPos] < columns) {
  36496. ++refPos;
  36497. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36498. refLine[refPos] < columns) {
  36499. refPos += 2;
  36500. }
  36501. }
  36502. break;
  36503. case twoDimVertR2:
  36504. this.addPixels(refLine[refPos] + 2, blackPixels);
  36505. blackPixels ^= 1;
  36506. if (codingLine[this.codingPos] < columns) {
  36507. ++refPos;
  36508. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36509. refLine[refPos] < columns) {
  36510. refPos += 2;
  36511. }
  36512. }
  36513. break;
  36514. case twoDimVertR1:
  36515. this.addPixels(refLine[refPos] + 1, blackPixels);
  36516. blackPixels ^= 1;
  36517. if (codingLine[this.codingPos] < columns) {
  36518. ++refPos;
  36519. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36520. refLine[refPos] < columns) {
  36521. refPos += 2;
  36522. }
  36523. }
  36524. break;
  36525. case twoDimVert0:
  36526. this.addPixels(refLine[refPos], blackPixels);
  36527. blackPixels ^= 1;
  36528. if (codingLine[this.codingPos] < columns) {
  36529. ++refPos;
  36530. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36531. refLine[refPos] < columns) {
  36532. refPos += 2;
  36533. }
  36534. }
  36535. break;
  36536. case twoDimVertL3:
  36537. this.addPixelsNeg(refLine[refPos] - 3, blackPixels);
  36538. blackPixels ^= 1;
  36539. if (codingLine[this.codingPos] < columns) {
  36540. if (refPos > 0) {
  36541. --refPos;
  36542. } else {
  36543. ++refPos;
  36544. }
  36545. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36546. refLine[refPos] < columns) {
  36547. refPos += 2;
  36548. }
  36549. }
  36550. break;
  36551. case twoDimVertL2:
  36552. this.addPixelsNeg(refLine[refPos] - 2, blackPixels);
  36553. blackPixels ^= 1;
  36554. if (codingLine[this.codingPos] < columns) {
  36555. if (refPos > 0) {
  36556. --refPos;
  36557. } else {
  36558. ++refPos;
  36559. }
  36560. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36561. refLine[refPos] < columns) {
  36562. refPos += 2;
  36563. }
  36564. }
  36565. break;
  36566. case twoDimVertL1:
  36567. this.addPixelsNeg(refLine[refPos] - 1, blackPixels);
  36568. blackPixels ^= 1;
  36569. if (codingLine[this.codingPos] < columns) {
  36570. if (refPos > 0) {
  36571. --refPos;
  36572. } else {
  36573. ++refPos;
  36574. }
  36575. while (refLine[refPos] <= codingLine[this.codingPos] &&
  36576. refLine[refPos] < columns) {
  36577. refPos += 2;
  36578. }
  36579. }
  36580. break;
  36581. case EOF:
  36582. this.addPixels(columns, 0);
  36583. this.eof = true;
  36584. break;
  36585. default:
  36586. info('bad 2d code');
  36587. this.addPixels(columns, 0);
  36588. this.err = true;
  36589. }
  36590. }
  36591. } else {
  36592. codingLine[0] = 0;
  36593. this.codingPos = 0;
  36594. blackPixels = 0;
  36595. while (codingLine[this.codingPos] < columns) {
  36596. code1 = 0;
  36597. if (blackPixels) {
  36598. do {
  36599. code1 += (code3 = this.getBlackCode());
  36600. } while (code3 >= 64);
  36601. } else {
  36602. do {
  36603. code1 += (code3 = this.getWhiteCode());
  36604. } while (code3 >= 64);
  36605. }
  36606. this.addPixels(codingLine[this.codingPos] + code1, blackPixels);
  36607. blackPixels ^= 1;
  36608. }
  36609. }
  36610. if (this.byteAlign) {
  36611. this.inputBits &= ~7;
  36612. }
  36613. var gotEOL = false;
  36614. if (!this.eoblock && this.row == this.rows - 1) {
  36615. this.eof = true;
  36616. } else {
  36617. code1 = this.lookBits(12);
  36618. while (code1 === 0) {
  36619. this.eatBits(1);
  36620. code1 = this.lookBits(12);
  36621. }
  36622. if (code1 == 1) {
  36623. this.eatBits(12);
  36624. gotEOL = true;
  36625. } else if (code1 == EOF) {
  36626. this.eof = true;
  36627. }
  36628. }
  36629. if (!this.eof && this.encoding > 0) {
  36630. this.nextLine2D = !this.lookBits(1);
  36631. this.eatBits(1);
  36632. }
  36633. if (this.eoblock && gotEOL) {
  36634. code1 = this.lookBits(12);
  36635. if (code1 == 1) {
  36636. this.eatBits(12);
  36637. if (this.encoding > 0) {
  36638. this.lookBits(1);
  36639. this.eatBits(1);
  36640. }
  36641. if (this.encoding >= 0) {
  36642. for (i = 0; i < 4; ++i) {
  36643. code1 = this.lookBits(12);
  36644. if (code1 != 1) {
  36645. info('bad rtc code: ' + code1);
  36646. }
  36647. this.eatBits(12);
  36648. if (this.encoding > 0) {
  36649. this.lookBits(1);
  36650. this.eatBits(1);
  36651. }
  36652. }
  36653. }
  36654. this.eof = true;
  36655. }
  36656. } else if (this.err && this.eoline) {
  36657. while (true) {
  36658. code1 = this.lookBits(13);
  36659. if (code1 == EOF) {
  36660. this.eof = true;
  36661. return null;
  36662. }
  36663. if ((code1 >> 1) == 1) {
  36664. break;
  36665. }
  36666. this.eatBits(1);
  36667. }
  36668. this.eatBits(12);
  36669. if (this.encoding > 0) {
  36670. this.eatBits(1);
  36671. this.nextLine2D = !(code1 & 1);
  36672. }
  36673. }
  36674. if (codingLine[0] > 0) {
  36675. this.outputBits = codingLine[this.codingPos = 0];
  36676. } else {
  36677. this.outputBits = codingLine[this.codingPos = 1];
  36678. }
  36679. this.row++;
  36680. }
  36681. var c;
  36682. if (this.outputBits >= 8) {
  36683. c = (this.codingPos & 1) ? 0 : 0xFF;
  36684. this.outputBits -= 8;
  36685. if (this.outputBits === 0 && codingLine[this.codingPos] < columns) {
  36686. this.codingPos++;
  36687. this.outputBits = (codingLine[this.codingPos] -
  36688. codingLine[this.codingPos - 1]);
  36689. }
  36690. } else {
  36691. bits = 8;
  36692. c = 0;
  36693. do {
  36694. if (this.outputBits > bits) {
  36695. c <<= bits;
  36696. if (!(this.codingPos & 1)) {
  36697. c |= 0xFF >> (8 - bits);
  36698. }
  36699. this.outputBits -= bits;
  36700. bits = 0;
  36701. } else {
  36702. c <<= this.outputBits;
  36703. if (!(this.codingPos & 1)) {
  36704. c |= 0xFF >> (8 - this.outputBits);
  36705. }
  36706. bits -= this.outputBits;
  36707. this.outputBits = 0;
  36708. if (codingLine[this.codingPos] < columns) {
  36709. this.codingPos++;
  36710. this.outputBits = (codingLine[this.codingPos] -
  36711. codingLine[this.codingPos - 1]);
  36712. } else if (bits > 0) {
  36713. c <<= bits;
  36714. bits = 0;
  36715. }
  36716. }
  36717. } while (bits);
  36718. }
  36719. if (this.black) {
  36720. c ^= 0xFF;
  36721. }
  36722. return c;
  36723. };
  36724. // This functions returns the code found from the table.
  36725. // The start and end parameters set the boundaries for searching the table.
  36726. // The limit parameter is optional. Function returns an array with three
  36727. // values. The first array element indicates whether a valid code is being
  36728. // returned. The second array element is the actual code. The third array
  36729. // element indicates whether EOF was reached.
  36730. CCITTFaxStream.prototype.findTableCode =
  36731. function ccittFaxStreamFindTableCode(start, end, table, limit) {
  36732. var limitValue = limit || 0;
  36733. for (var i = start; i <= end; ++i) {
  36734. var code = this.lookBits(i);
  36735. if (code == EOF) {
  36736. return [true, 1, false];
  36737. }
  36738. if (i < end) {
  36739. code <<= end - i;
  36740. }
  36741. if (!limitValue || code >= limitValue) {
  36742. var p = table[code - limitValue];
  36743. if (p[0] == i) {
  36744. this.eatBits(i);
  36745. return [true, p[1], true];
  36746. }
  36747. }
  36748. }
  36749. return [false, 0, false];
  36750. };
  36751. CCITTFaxStream.prototype.getTwoDimCode =
  36752. function ccittFaxStreamGetTwoDimCode() {
  36753. var code = 0;
  36754. var p;
  36755. if (this.eoblock) {
  36756. code = this.lookBits(7);
  36757. p = twoDimTable[code];
  36758. if (p && p[0] > 0) {
  36759. this.eatBits(p[0]);
  36760. return p[1];
  36761. }
  36762. } else {
  36763. var result = this.findTableCode(1, 7, twoDimTable);
  36764. if (result[0] && result[2]) {
  36765. return result[1];
  36766. }
  36767. }
  36768. info('Bad two dim code');
  36769. return EOF;
  36770. };
  36771. CCITTFaxStream.prototype.getWhiteCode =
  36772. function ccittFaxStreamGetWhiteCode() {
  36773. var code = 0;
  36774. var p;
  36775. if (this.eoblock) {
  36776. code = this.lookBits(12);
  36777. if (code == EOF) {
  36778. return 1;
  36779. }
  36780. if ((code >> 5) === 0) {
  36781. p = whiteTable1[code];
  36782. } else {
  36783. p = whiteTable2[code >> 3];
  36784. }
  36785. if (p[0] > 0) {
  36786. this.eatBits(p[0]);
  36787. return p[1];
  36788. }
  36789. } else {
  36790. var result = this.findTableCode(1, 9, whiteTable2);
  36791. if (result[0]) {
  36792. return result[1];
  36793. }
  36794. result = this.findTableCode(11, 12, whiteTable1);
  36795. if (result[0]) {
  36796. return result[1];
  36797. }
  36798. }
  36799. info('bad white code');
  36800. this.eatBits(1);
  36801. return 1;
  36802. };
  36803. CCITTFaxStream.prototype.getBlackCode =
  36804. function ccittFaxStreamGetBlackCode() {
  36805. var code, p;
  36806. if (this.eoblock) {
  36807. code = this.lookBits(13);
  36808. if (code == EOF) {
  36809. return 1;
  36810. }
  36811. if ((code >> 7) === 0) {
  36812. p = blackTable1[code];
  36813. } else if ((code >> 9) === 0 && (code >> 7) !== 0) {
  36814. p = blackTable2[(code >> 1) - 64];
  36815. } else {
  36816. p = blackTable3[code >> 7];
  36817. }
  36818. if (p[0] > 0) {
  36819. this.eatBits(p[0]);
  36820. return p[1];
  36821. }
  36822. } else {
  36823. var result = this.findTableCode(2, 6, blackTable3);
  36824. if (result[0]) {
  36825. return result[1];
  36826. }
  36827. result = this.findTableCode(7, 12, blackTable2, 64);
  36828. if (result[0]) {
  36829. return result[1];
  36830. }
  36831. result = this.findTableCode(10, 13, blackTable1);
  36832. if (result[0]) {
  36833. return result[1];
  36834. }
  36835. }
  36836. info('bad black code');
  36837. this.eatBits(1);
  36838. return 1;
  36839. };
  36840. CCITTFaxStream.prototype.lookBits = function CCITTFaxStream_lookBits(n) {
  36841. var c;
  36842. while (this.inputBits < n) {
  36843. if ((c = this.str.getByte()) === -1) {
  36844. if (this.inputBits === 0) {
  36845. return EOF;
  36846. }
  36847. return ((this.inputBuf << (n - this.inputBits)) &
  36848. (0xFFFF >> (16 - n)));
  36849. }
  36850. this.inputBuf = (this.inputBuf << 8) + c;
  36851. this.inputBits += 8;
  36852. }
  36853. return (this.inputBuf >> (this.inputBits - n)) & (0xFFFF >> (16 - n));
  36854. };
  36855. CCITTFaxStream.prototype.eatBits = function CCITTFaxStream_eatBits(n) {
  36856. if ((this.inputBits -= n) < 0) {
  36857. this.inputBits = 0;
  36858. }
  36859. };
  36860. return CCITTFaxStream;
  36861. })();
  36862. var LZWStream = (function LZWStreamClosure() {
  36863. function LZWStream(str, maybeLength, earlyChange) {
  36864. this.str = str;
  36865. this.dict = str.dict;
  36866. this.cachedData = 0;
  36867. this.bitsCached = 0;
  36868. var maxLzwDictionarySize = 4096;
  36869. var lzwState = {
  36870. earlyChange: earlyChange,
  36871. codeLength: 9,
  36872. nextCode: 258,
  36873. dictionaryValues: new Uint8Array(maxLzwDictionarySize),
  36874. dictionaryLengths: new Uint16Array(maxLzwDictionarySize),
  36875. dictionaryPrevCodes: new Uint16Array(maxLzwDictionarySize),
  36876. currentSequence: new Uint8Array(maxLzwDictionarySize),
  36877. currentSequenceLength: 0
  36878. };
  36879. for (var i = 0; i < 256; ++i) {
  36880. lzwState.dictionaryValues[i] = i;
  36881. lzwState.dictionaryLengths[i] = 1;
  36882. }
  36883. this.lzwState = lzwState;
  36884. DecodeStream.call(this, maybeLength);
  36885. }
  36886. LZWStream.prototype = Object.create(DecodeStream.prototype);
  36887. LZWStream.prototype.readBits = function LZWStream_readBits(n) {
  36888. var bitsCached = this.bitsCached;
  36889. var cachedData = this.cachedData;
  36890. while (bitsCached < n) {
  36891. var c = this.str.getByte();
  36892. if (c === -1) {
  36893. this.eof = true;
  36894. return null;
  36895. }
  36896. cachedData = (cachedData << 8) | c;
  36897. bitsCached += 8;
  36898. }
  36899. this.bitsCached = (bitsCached -= n);
  36900. this.cachedData = cachedData;
  36901. this.lastCode = null;
  36902. return (cachedData >>> bitsCached) & ((1 << n) - 1);
  36903. };
  36904. LZWStream.prototype.readBlock = function LZWStream_readBlock() {
  36905. var blockSize = 512;
  36906. var estimatedDecodedSize = blockSize * 2, decodedSizeDelta = blockSize;
  36907. var i, j, q;
  36908. var lzwState = this.lzwState;
  36909. if (!lzwState) {
  36910. return; // eof was found
  36911. }
  36912. var earlyChange = lzwState.earlyChange;
  36913. var nextCode = lzwState.nextCode;
  36914. var dictionaryValues = lzwState.dictionaryValues;
  36915. var dictionaryLengths = lzwState.dictionaryLengths;
  36916. var dictionaryPrevCodes = lzwState.dictionaryPrevCodes;
  36917. var codeLength = lzwState.codeLength;
  36918. var prevCode = lzwState.prevCode;
  36919. var currentSequence = lzwState.currentSequence;
  36920. var currentSequenceLength = lzwState.currentSequenceLength;
  36921. var decodedLength = 0;
  36922. var currentBufferLength = this.bufferLength;
  36923. var buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  36924. for (i = 0; i < blockSize; i++) {
  36925. var code = this.readBits(codeLength);
  36926. var hasPrev = currentSequenceLength > 0;
  36927. if (code < 256) {
  36928. currentSequence[0] = code;
  36929. currentSequenceLength = 1;
  36930. } else if (code >= 258) {
  36931. if (code < nextCode) {
  36932. currentSequenceLength = dictionaryLengths[code];
  36933. for (j = currentSequenceLength - 1, q = code; j >= 0; j--) {
  36934. currentSequence[j] = dictionaryValues[q];
  36935. q = dictionaryPrevCodes[q];
  36936. }
  36937. } else {
  36938. currentSequence[currentSequenceLength++] = currentSequence[0];
  36939. }
  36940. } else if (code == 256) {
  36941. codeLength = 9;
  36942. nextCode = 258;
  36943. currentSequenceLength = 0;
  36944. continue;
  36945. } else {
  36946. this.eof = true;
  36947. delete this.lzwState;
  36948. break;
  36949. }
  36950. if (hasPrev) {
  36951. dictionaryPrevCodes[nextCode] = prevCode;
  36952. dictionaryLengths[nextCode] = dictionaryLengths[prevCode] + 1;
  36953. dictionaryValues[nextCode] = currentSequence[0];
  36954. nextCode++;
  36955. codeLength = (nextCode + earlyChange) & (nextCode + earlyChange - 1) ?
  36956. codeLength : Math.min(Math.log(nextCode + earlyChange) /
  36957. 0.6931471805599453 + 1, 12) | 0;
  36958. }
  36959. prevCode = code;
  36960. decodedLength += currentSequenceLength;
  36961. if (estimatedDecodedSize < decodedLength) {
  36962. do {
  36963. estimatedDecodedSize += decodedSizeDelta;
  36964. } while (estimatedDecodedSize < decodedLength);
  36965. buffer = this.ensureBuffer(this.bufferLength + estimatedDecodedSize);
  36966. }
  36967. for (j = 0; j < currentSequenceLength; j++) {
  36968. buffer[currentBufferLength++] = currentSequence[j];
  36969. }
  36970. }
  36971. lzwState.nextCode = nextCode;
  36972. lzwState.codeLength = codeLength;
  36973. lzwState.prevCode = prevCode;
  36974. lzwState.currentSequenceLength = currentSequenceLength;
  36975. this.bufferLength = currentBufferLength;
  36976. };
  36977. return LZWStream;
  36978. })();
  36979. var NullStream = (function NullStreamClosure() {
  36980. function NullStream() {
  36981. Stream.call(this, new Uint8Array(0));
  36982. }
  36983. NullStream.prototype = Stream.prototype;
  36984. return NullStream;
  36985. })();
  36986. var WorkerMessageHandler = PDFJS.WorkerMessageHandler = {
  36987. setup: function wphSetup(handler) {
  36988. var pdfManager;
  36989. function loadDocument(recoveryMode) {
  36990. var loadDocumentCapability = createPromiseCapability();
  36991. var parseSuccess = function parseSuccess() {
  36992. var numPagesPromise = pdfManager.ensureDoc('numPages');
  36993. var fingerprintPromise = pdfManager.ensureDoc('fingerprint');
  36994. var encryptedPromise = pdfManager.ensureXRef('encrypt');
  36995. Promise.all([numPagesPromise, fingerprintPromise,
  36996. encryptedPromise]).then(function onDocReady(results) {
  36997. var doc = {
  36998. numPages: results[0],
  36999. fingerprint: results[1],
  37000. encrypted: !!results[2],
  37001. };
  37002. loadDocumentCapability.resolve(doc);
  37003. },
  37004. parseFailure);
  37005. };
  37006. var parseFailure = function parseFailure(e) {
  37007. loadDocumentCapability.reject(e);
  37008. };
  37009. pdfManager.ensureDoc('checkHeader', []).then(function() {
  37010. pdfManager.ensureDoc('parseStartXRef', []).then(function() {
  37011. pdfManager.ensureDoc('parse', [recoveryMode]).then(
  37012. parseSuccess, parseFailure);
  37013. }, parseFailure);
  37014. }, parseFailure);
  37015. return loadDocumentCapability.promise;
  37016. }
  37017. function getPdfManager(data) {
  37018. var pdfManagerCapability = createPromiseCapability();
  37019. var source = data.source;
  37020. var disableRange = data.disableRange;
  37021. if (source.data) {
  37022. try {
  37023. pdfManager = new LocalPdfManager(source.data, source.password);
  37024. pdfManagerCapability.resolve();
  37025. } catch (ex) {
  37026. pdfManagerCapability.reject(ex);
  37027. }
  37028. return pdfManagerCapability.promise;
  37029. } else if (source.chunkedViewerLoading) {
  37030. try {
  37031. pdfManager = new NetworkPdfManager(source, handler);
  37032. pdfManagerCapability.resolve();
  37033. } catch (ex) {
  37034. pdfManagerCapability.reject(ex);
  37035. }
  37036. return pdfManagerCapability.promise;
  37037. }
  37038. var networkManager = new NetworkManager(source.url, {
  37039. httpHeaders: source.httpHeaders,
  37040. withCredentials: source.withCredentials
  37041. });
  37042. var fullRequestXhrId = networkManager.requestFull({
  37043. onHeadersReceived: function onHeadersReceived() {
  37044. if (disableRange) {
  37045. return;
  37046. }
  37047. var fullRequestXhr = networkManager.getRequestXhr(fullRequestXhrId);
  37048. if (fullRequestXhr.getResponseHeader('Accept-Ranges') !== 'bytes') {
  37049. return;
  37050. }
  37051. var contentEncoding =
  37052. fullRequestXhr.getResponseHeader('Content-Encoding') || 'identity';
  37053. if (contentEncoding !== 'identity') {
  37054. return;
  37055. }
  37056. var length = fullRequestXhr.getResponseHeader('Content-Length');
  37057. length = parseInt(length, 10);
  37058. if (!isInt(length)) {
  37059. return;
  37060. }
  37061. source.length = length;
  37062. if (length <= 2 * RANGE_CHUNK_SIZE) {
  37063. // The file size is smaller than the size of two chunks, so it does
  37064. // not make any sense to abort the request and retry with a range
  37065. // request.
  37066. return;
  37067. }
  37068. // NOTE: by cancelling the full request, and then issuing range
  37069. // requests, there will be an issue for sites where you can only
  37070. // request the pdf once. However, if this is the case, then the
  37071. // server should not be returning that it can support range requests.
  37072. networkManager.abortRequest(fullRequestXhrId);
  37073. try {
  37074. pdfManager = new NetworkPdfManager(source, handler);
  37075. pdfManagerCapability.resolve(pdfManager);
  37076. } catch (ex) {
  37077. pdfManagerCapability.reject(ex);
  37078. }
  37079. },
  37080. onDone: function onDone(args) {
  37081. // the data is array, instantiating directly from it
  37082. try {
  37083. pdfManager = new LocalPdfManager(args.chunk, source.password);
  37084. pdfManagerCapability.resolve();
  37085. } catch (ex) {
  37086. pdfManagerCapability.reject(ex);
  37087. }
  37088. },
  37089. onError: function onError(status) {
  37090. if (status == 404) {
  37091. var exception = new MissingPDFException('Missing PDF "' +
  37092. source.url + '".');
  37093. handler.send('MissingPDF', { exception: exception });
  37094. } else {
  37095. handler.send('DocError', 'Unexpected server response (' +
  37096. status + ') while retrieving PDF "' +
  37097. source.url + '".');
  37098. }
  37099. },
  37100. onProgress: function onProgress(evt) {
  37101. handler.send('DocProgress', {
  37102. loaded: evt.loaded,
  37103. total: evt.lengthComputable ? evt.total : source.length
  37104. });
  37105. }
  37106. });
  37107. return pdfManagerCapability.promise;
  37108. }
  37109. handler.on('test', function wphSetupTest(data) {
  37110. // check if Uint8Array can be sent to worker
  37111. if (!(data instanceof Uint8Array)) {
  37112. handler.send('test', false);
  37113. return;
  37114. }
  37115. // making sure postMessage transfers are working
  37116. var supportTransfers = data[0] === 255;
  37117. handler.postMessageTransfers = supportTransfers;
  37118. // check if the response property is supported by xhr
  37119. var xhr = new XMLHttpRequest();
  37120. var responseExists = 'response' in xhr;
  37121. // check if the property is actually implemented
  37122. try {
  37123. var dummy = xhr.responseType;
  37124. } catch (e) {
  37125. responseExists = false;
  37126. }
  37127. if (!responseExists) {
  37128. handler.send('test', false);
  37129. return;
  37130. }
  37131. handler.send('test', {
  37132. supportTypedArray: true,
  37133. supportTransfers: supportTransfers
  37134. });
  37135. });
  37136. handler.on('GetDocRequest', function wphSetupDoc(data) {
  37137. var onSuccess = function(doc) {
  37138. handler.send('GetDoc', { pdfInfo: doc });
  37139. };
  37140. var onFailure = function(e) {
  37141. if (e instanceof PasswordException) {
  37142. if (e.code === PasswordResponses.NEED_PASSWORD) {
  37143. handler.send('NeedPassword', {
  37144. exception: e
  37145. });
  37146. } else if (e.code === PasswordResponses.INCORRECT_PASSWORD) {
  37147. handler.send('IncorrectPassword', {
  37148. exception: e
  37149. });
  37150. }
  37151. } else if (e instanceof InvalidPDFException) {
  37152. handler.send('InvalidPDF', {
  37153. exception: e
  37154. });
  37155. } else if (e instanceof MissingPDFException) {
  37156. handler.send('MissingPDF', {
  37157. exception: e
  37158. });
  37159. } else {
  37160. handler.send('UnknownError', {
  37161. exception: new UnknownErrorException(e.message, e.toString())
  37162. });
  37163. }
  37164. };
  37165. PDFJS.maxImageSize = data.maxImageSize === undefined ?
  37166. -1 : data.maxImageSize;
  37167. PDFJS.disableFontFace = data.disableFontFace;
  37168. PDFJS.disableCreateObjectURL = data.disableCreateObjectURL;
  37169. PDFJS.verbosity = data.verbosity;
  37170. PDFJS.cMapUrl = data.cMapUrl === undefined ?
  37171. null : data.cMapUrl;
  37172. PDFJS.cMapPacked = data.cMapPacked === true;
  37173. getPdfManager(data).then(function () {
  37174. pdfManager.onLoadedStream().then(function(stream) {
  37175. handler.send('DataLoaded', { length: stream.bytes.byteLength });
  37176. });
  37177. }).then(function pdfManagerReady() {
  37178. loadDocument(false).then(onSuccess, function loadFailure(ex) {
  37179. // Try again with recoveryMode == true
  37180. if (!(ex instanceof XRefParseException)) {
  37181. if (ex instanceof PasswordException) {
  37182. // after password exception prepare to receive a new password
  37183. // to repeat loading
  37184. pdfManager.passwordChanged().then(pdfManagerReady);
  37185. }
  37186. onFailure(ex);
  37187. return;
  37188. }
  37189. pdfManager.requestLoadedStream();
  37190. pdfManager.onLoadedStream().then(function() {
  37191. loadDocument(true).then(onSuccess, onFailure);
  37192. });
  37193. }, onFailure);
  37194. }, onFailure);
  37195. });
  37196. handler.on('GetPage', function wphSetupGetPage(data) {
  37197. return pdfManager.getPage(data.pageIndex).then(function(page) {
  37198. var rotatePromise = pdfManager.ensure(page, 'rotate');
  37199. var refPromise = pdfManager.ensure(page, 'ref');
  37200. var viewPromise = pdfManager.ensure(page, 'view');
  37201. return Promise.all([rotatePromise, refPromise, viewPromise]).then(
  37202. function(results) {
  37203. return {
  37204. rotate: results[0],
  37205. ref: results[1],
  37206. view: results[2]
  37207. };
  37208. });
  37209. });
  37210. });
  37211. handler.on('GetPageIndex', function wphSetupGetPageIndex(data) {
  37212. var ref = new Ref(data.ref.num, data.ref.gen);
  37213. var catalog = pdfManager.pdfDocument.catalog;
  37214. return catalog.getPageIndex(ref);
  37215. });
  37216. handler.on('GetDestinations',
  37217. function wphSetupGetDestinations(data) {
  37218. return pdfManager.ensureCatalog('destinations');
  37219. }
  37220. );
  37221. handler.on('GetAttachments',
  37222. function wphSetupGetAttachments(data) {
  37223. return pdfManager.ensureCatalog('attachments');
  37224. }
  37225. );
  37226. handler.on('GetJavaScript',
  37227. function wphSetupGetJavaScript(data) {
  37228. return pdfManager.ensureCatalog('javaScript');
  37229. }
  37230. );
  37231. handler.on('GetOutline',
  37232. function wphSetupGetOutline(data) {
  37233. return pdfManager.ensureCatalog('documentOutline');
  37234. }
  37235. );
  37236. handler.on('GetMetadata',
  37237. function wphSetupGetMetadata(data) {
  37238. return Promise.all([pdfManager.ensureDoc('documentInfo'),
  37239. pdfManager.ensureCatalog('metadata')]);
  37240. }
  37241. );
  37242. handler.on('GetData', function wphSetupGetData(data) {
  37243. pdfManager.requestLoadedStream();
  37244. return pdfManager.onLoadedStream().then(function(stream) {
  37245. return stream.bytes;
  37246. });
  37247. });
  37248. handler.on('GetStats',
  37249. function wphSetupGetStats(data) {
  37250. return pdfManager.pdfDocument.xref.stats;
  37251. }
  37252. );
  37253. handler.on('UpdatePassword', function wphSetupUpdatePassword(data) {
  37254. pdfManager.updatePassword(data);
  37255. });
  37256. handler.on('GetAnnotations', function wphSetupGetAnnotations(data) {
  37257. return pdfManager.getPage(data.pageIndex).then(function(page) {
  37258. return pdfManager.ensure(page, 'getAnnotationsData', []);
  37259. });
  37260. });
  37261. handler.on('RenderPageRequest', function wphSetupRenderPage(data) {
  37262. pdfManager.getPage(data.pageIndex).then(function(page) {
  37263. var pageNum = data.pageIndex + 1;
  37264. var start = Date.now();
  37265. // Pre compile the pdf page and fetch the fonts/images.
  37266. page.getOperatorList(handler, data.intent).then(function(operatorList) {
  37267. info('page=' + pageNum + ' - getOperatorList: time=' +
  37268. (Date.now() - start) + 'ms, len=' + operatorList.fnArray.length);
  37269. }, function(e) {
  37270. var minimumStackMessage =
  37271. 'worker.js: while trying to getPage() and getOperatorList()';
  37272. var wrappedException;
  37273. // Turn the error into an obj that can be serialized
  37274. if (typeof e === 'string') {
  37275. wrappedException = {
  37276. message: e,
  37277. stack: minimumStackMessage
  37278. };
  37279. } else if (typeof e === 'object') {
  37280. wrappedException = {
  37281. message: e.message || e.toString(),
  37282. stack: e.stack || minimumStackMessage
  37283. };
  37284. } else {
  37285. wrappedException = {
  37286. message: 'Unknown exception type: ' + (typeof e),
  37287. stack: minimumStackMessage
  37288. };
  37289. }
  37290. handler.send('PageError', {
  37291. pageNum: pageNum,
  37292. error: wrappedException,
  37293. intent: data.intent
  37294. });
  37295. });
  37296. });
  37297. }, this);
  37298. handler.on('GetTextContent', function wphExtractText(data) {
  37299. return pdfManager.getPage(data.pageIndex).then(function(page) {
  37300. var pageNum = data.pageIndex + 1;
  37301. var start = Date.now();
  37302. return page.extractTextContent().then(function(textContent) {
  37303. info('text indexing: page=' + pageNum + ' - time=' +
  37304. (Date.now() - start) + 'ms');
  37305. return textContent;
  37306. });
  37307. });
  37308. });
  37309. handler.on('Cleanup', function wphCleanup(data) {
  37310. return pdfManager.cleanup();
  37311. });
  37312. handler.on('Terminate', function wphTerminate(data) {
  37313. pdfManager.terminate();
  37314. });
  37315. }
  37316. };
  37317. var consoleTimer = {};
  37318. var workerConsole = {
  37319. log: function log() {
  37320. var args = Array.prototype.slice.call(arguments);
  37321. globalScope.postMessage({
  37322. action: 'console_log',
  37323. data: args
  37324. });
  37325. },
  37326. error: function error() {
  37327. var args = Array.prototype.slice.call(arguments);
  37328. globalScope.postMessage({
  37329. action: 'console_error',
  37330. data: args
  37331. });
  37332. throw 'pdf.js execution error';
  37333. },
  37334. time: function time(name) {
  37335. consoleTimer[name] = Date.now();
  37336. },
  37337. timeEnd: function timeEnd(name) {
  37338. var time = consoleTimer[name];
  37339. if (!time) {
  37340. error('Unknown timer name ' + name);
  37341. }
  37342. this.log('Timer:', name, Date.now() - time);
  37343. }
  37344. };
  37345. // Worker thread?
  37346. if (typeof window === 'undefined') {
  37347. if (!('console' in globalScope)) {
  37348. globalScope.console = workerConsole;
  37349. }
  37350. // Listen for unsupported features so we can pass them on to the main thread.
  37351. PDFJS.UnsupportedManager.listen(function (msg) {
  37352. globalScope.postMessage({
  37353. action: '_unsupported_feature',
  37354. data: msg
  37355. });
  37356. });
  37357. var handler = new MessageHandler('worker_processor', this);
  37358. WorkerMessageHandler.setup(handler);
  37359. }
  37360. /* This class implements the QM Coder decoding as defined in
  37361. * JPEG 2000 Part I Final Committee Draft Version 1.0
  37362. * Annex C.3 Arithmetic decoding procedure
  37363. * available at http://www.jpeg.org/public/fcd15444-1.pdf
  37364. *
  37365. * The arithmetic decoder is used in conjunction with context models to decode
  37366. * JPEG2000 and JBIG2 streams.
  37367. */
  37368. var ArithmeticDecoder = (function ArithmeticDecoderClosure() {
  37369. // Table C-2
  37370. var QeTable = [
  37371. {qe: 0x5601, nmps: 1, nlps: 1, switchFlag: 1},
  37372. {qe: 0x3401, nmps: 2, nlps: 6, switchFlag: 0},
  37373. {qe: 0x1801, nmps: 3, nlps: 9, switchFlag: 0},
  37374. {qe: 0x0AC1, nmps: 4, nlps: 12, switchFlag: 0},
  37375. {qe: 0x0521, nmps: 5, nlps: 29, switchFlag: 0},
  37376. {qe: 0x0221, nmps: 38, nlps: 33, switchFlag: 0},
  37377. {qe: 0x5601, nmps: 7, nlps: 6, switchFlag: 1},
  37378. {qe: 0x5401, nmps: 8, nlps: 14, switchFlag: 0},
  37379. {qe: 0x4801, nmps: 9, nlps: 14, switchFlag: 0},
  37380. {qe: 0x3801, nmps: 10, nlps: 14, switchFlag: 0},
  37381. {qe: 0x3001, nmps: 11, nlps: 17, switchFlag: 0},
  37382. {qe: 0x2401, nmps: 12, nlps: 18, switchFlag: 0},
  37383. {qe: 0x1C01, nmps: 13, nlps: 20, switchFlag: 0},
  37384. {qe: 0x1601, nmps: 29, nlps: 21, switchFlag: 0},
  37385. {qe: 0x5601, nmps: 15, nlps: 14, switchFlag: 1},
  37386. {qe: 0x5401, nmps: 16, nlps: 14, switchFlag: 0},
  37387. {qe: 0x5101, nmps: 17, nlps: 15, switchFlag: 0},
  37388. {qe: 0x4801, nmps: 18, nlps: 16, switchFlag: 0},
  37389. {qe: 0x3801, nmps: 19, nlps: 17, switchFlag: 0},
  37390. {qe: 0x3401, nmps: 20, nlps: 18, switchFlag: 0},
  37391. {qe: 0x3001, nmps: 21, nlps: 19, switchFlag: 0},
  37392. {qe: 0x2801, nmps: 22, nlps: 19, switchFlag: 0},
  37393. {qe: 0x2401, nmps: 23, nlps: 20, switchFlag: 0},
  37394. {qe: 0x2201, nmps: 24, nlps: 21, switchFlag: 0},
  37395. {qe: 0x1C01, nmps: 25, nlps: 22, switchFlag: 0},
  37396. {qe: 0x1801, nmps: 26, nlps: 23, switchFlag: 0},
  37397. {qe: 0x1601, nmps: 27, nlps: 24, switchFlag: 0},
  37398. {qe: 0x1401, nmps: 28, nlps: 25, switchFlag: 0},
  37399. {qe: 0x1201, nmps: 29, nlps: 26, switchFlag: 0},
  37400. {qe: 0x1101, nmps: 30, nlps: 27, switchFlag: 0},
  37401. {qe: 0x0AC1, nmps: 31, nlps: 28, switchFlag: 0},
  37402. {qe: 0x09C1, nmps: 32, nlps: 29, switchFlag: 0},
  37403. {qe: 0x08A1, nmps: 33, nlps: 30, switchFlag: 0},
  37404. {qe: 0x0521, nmps: 34, nlps: 31, switchFlag: 0},
  37405. {qe: 0x0441, nmps: 35, nlps: 32, switchFlag: 0},
  37406. {qe: 0x02A1, nmps: 36, nlps: 33, switchFlag: 0},
  37407. {qe: 0x0221, nmps: 37, nlps: 34, switchFlag: 0},
  37408. {qe: 0x0141, nmps: 38, nlps: 35, switchFlag: 0},
  37409. {qe: 0x0111, nmps: 39, nlps: 36, switchFlag: 0},
  37410. {qe: 0x0085, nmps: 40, nlps: 37, switchFlag: 0},
  37411. {qe: 0x0049, nmps: 41, nlps: 38, switchFlag: 0},
  37412. {qe: 0x0025, nmps: 42, nlps: 39, switchFlag: 0},
  37413. {qe: 0x0015, nmps: 43, nlps: 40, switchFlag: 0},
  37414. {qe: 0x0009, nmps: 44, nlps: 41, switchFlag: 0},
  37415. {qe: 0x0005, nmps: 45, nlps: 42, switchFlag: 0},
  37416. {qe: 0x0001, nmps: 45, nlps: 43, switchFlag: 0},
  37417. {qe: 0x5601, nmps: 46, nlps: 46, switchFlag: 0}
  37418. ];
  37419. // C.3.5 Initialisation of the decoder (INITDEC)
  37420. function ArithmeticDecoder(data, start, end) {
  37421. this.data = data;
  37422. this.bp = start;
  37423. this.dataEnd = end;
  37424. this.chigh = data[start];
  37425. this.clow = 0;
  37426. this.byteIn();
  37427. this.chigh = ((this.chigh << 7) & 0xFFFF) | ((this.clow >> 9) & 0x7F);
  37428. this.clow = (this.clow << 7) & 0xFFFF;
  37429. this.ct -= 7;
  37430. this.a = 0x8000;
  37431. }
  37432. ArithmeticDecoder.prototype = {
  37433. // C.3.4 Compressed data input (BYTEIN)
  37434. byteIn: function ArithmeticDecoder_byteIn() {
  37435. var data = this.data;
  37436. var bp = this.bp;
  37437. if (data[bp] == 0xFF) {
  37438. var b1 = data[bp + 1];
  37439. if (b1 > 0x8F) {
  37440. this.clow += 0xFF00;
  37441. this.ct = 8;
  37442. } else {
  37443. bp++;
  37444. this.clow += (data[bp] << 9);
  37445. this.ct = 7;
  37446. this.bp = bp;
  37447. }
  37448. } else {
  37449. bp++;
  37450. this.clow += bp < this.dataEnd ? (data[bp] << 8) : 0xFF00;
  37451. this.ct = 8;
  37452. this.bp = bp;
  37453. }
  37454. if (this.clow > 0xFFFF) {
  37455. this.chigh += (this.clow >> 16);
  37456. this.clow &= 0xFFFF;
  37457. }
  37458. },
  37459. // C.3.2 Decoding a decision (DECODE)
  37460. readBit: function ArithmeticDecoder_readBit(contexts, pos) {
  37461. // contexts are packed into 1 byte:
  37462. // highest 7 bits carry cx.index, lowest bit carries cx.mps
  37463. var cx_index = contexts[pos] >> 1, cx_mps = contexts[pos] & 1;
  37464. var qeTableIcx = QeTable[cx_index];
  37465. var qeIcx = qeTableIcx.qe;
  37466. var d;
  37467. var a = this.a - qeIcx;
  37468. if (this.chigh < qeIcx) {
  37469. // exchangeLps
  37470. if (a < qeIcx) {
  37471. a = qeIcx;
  37472. d = cx_mps;
  37473. cx_index = qeTableIcx.nmps;
  37474. } else {
  37475. a = qeIcx;
  37476. d = 1 ^ cx_mps;
  37477. if (qeTableIcx.switchFlag === 1) {
  37478. cx_mps = d;
  37479. }
  37480. cx_index = qeTableIcx.nlps;
  37481. }
  37482. } else {
  37483. this.chigh -= qeIcx;
  37484. if ((a & 0x8000) !== 0) {
  37485. this.a = a;
  37486. return cx_mps;
  37487. }
  37488. // exchangeMps
  37489. if (a < qeIcx) {
  37490. d = 1 ^ cx_mps;
  37491. if (qeTableIcx.switchFlag === 1) {
  37492. cx_mps = d;
  37493. }
  37494. cx_index = qeTableIcx.nlps;
  37495. } else {
  37496. d = cx_mps;
  37497. cx_index = qeTableIcx.nmps;
  37498. }
  37499. }
  37500. // C.3.3 renormD;
  37501. do {
  37502. if (this.ct === 0) {
  37503. this.byteIn();
  37504. }
  37505. a <<= 1;
  37506. this.chigh = ((this.chigh << 1) & 0xFFFF) | ((this.clow >> 15) & 1);
  37507. this.clow = (this.clow << 1) & 0xFFFF;
  37508. this.ct--;
  37509. } while ((a & 0x8000) === 0);
  37510. this.a = a;
  37511. contexts[pos] = cx_index << 1 | cx_mps;
  37512. return d;
  37513. }
  37514. };
  37515. return ArithmeticDecoder;
  37516. })();
  37517. var JpegImage = (function jpegImage() {
  37518. var dctZigZag = new Uint8Array([
  37519. 0,
  37520. 1, 8,
  37521. 16, 9, 2,
  37522. 3, 10, 17, 24,
  37523. 32, 25, 18, 11, 4,
  37524. 5, 12, 19, 26, 33, 40,
  37525. 48, 41, 34, 27, 20, 13, 6,
  37526. 7, 14, 21, 28, 35, 42, 49, 56,
  37527. 57, 50, 43, 36, 29, 22, 15,
  37528. 23, 30, 37, 44, 51, 58,
  37529. 59, 52, 45, 38, 31,
  37530. 39, 46, 53, 60,
  37531. 61, 54, 47,
  37532. 55, 62,
  37533. 63
  37534. ]);
  37535. var dctCos1 = 4017; // cos(pi/16)
  37536. var dctSin1 = 799; // sin(pi/16)
  37537. var dctCos3 = 3406; // cos(3*pi/16)
  37538. var dctSin3 = 2276; // sin(3*pi/16)
  37539. var dctCos6 = 1567; // cos(6*pi/16)
  37540. var dctSin6 = 3784; // sin(6*pi/16)
  37541. var dctSqrt2 = 5793; // sqrt(2)
  37542. var dctSqrt1d2 = 2896; // sqrt(2) / 2
  37543. function constructor() {
  37544. }
  37545. function buildHuffmanTable(codeLengths, values) {
  37546. var k = 0, code = [], i, j, length = 16;
  37547. while (length > 0 && !codeLengths[length - 1]) {
  37548. length--;
  37549. }
  37550. code.push({children: [], index: 0});
  37551. var p = code[0], q;
  37552. for (i = 0; i < length; i++) {
  37553. for (j = 0; j < codeLengths[i]; j++) {
  37554. p = code.pop();
  37555. p.children[p.index] = values[k];
  37556. while (p.index > 0) {
  37557. p = code.pop();
  37558. }
  37559. p.index++;
  37560. code.push(p);
  37561. while (code.length <= i) {
  37562. code.push(q = {children: [], index: 0});
  37563. p.children[p.index] = q.children;
  37564. p = q;
  37565. }
  37566. k++;
  37567. }
  37568. if (i + 1 < length) {
  37569. // p here points to last code
  37570. code.push(q = {children: [], index: 0});
  37571. p.children[p.index] = q.children;
  37572. p = q;
  37573. }
  37574. }
  37575. return code[0].children;
  37576. }
  37577. function getBlockBufferOffset(component, row, col) {
  37578. return 64 * ((component.blocksPerLine + 1) * row + col);
  37579. }
  37580. function decodeScan(data, offset, frame, components, resetInterval,
  37581. spectralStart, spectralEnd, successivePrev, successive) {
  37582. var precision = frame.precision;
  37583. var samplesPerLine = frame.samplesPerLine;
  37584. var scanLines = frame.scanLines;
  37585. var mcusPerLine = frame.mcusPerLine;
  37586. var progressive = frame.progressive;
  37587. var maxH = frame.maxH, maxV = frame.maxV;
  37588. var startOffset = offset, bitsData = 0, bitsCount = 0;
  37589. function readBit() {
  37590. if (bitsCount > 0) {
  37591. bitsCount--;
  37592. return (bitsData >> bitsCount) & 1;
  37593. }
  37594. bitsData = data[offset++];
  37595. if (bitsData == 0xFF) {
  37596. var nextByte = data[offset++];
  37597. if (nextByte) {
  37598. throw 'unexpected marker: ' +
  37599. ((bitsData << 8) | nextByte).toString(16);
  37600. }
  37601. // unstuff 0
  37602. }
  37603. bitsCount = 7;
  37604. return bitsData >>> 7;
  37605. }
  37606. function decodeHuffman(tree) {
  37607. var node = tree;
  37608. var bit;
  37609. while ((bit = readBit()) !== null) {
  37610. node = node[bit];
  37611. if (typeof node === 'number') {
  37612. return node;
  37613. }
  37614. if (typeof node !== 'object') {
  37615. throw 'invalid huffman sequence';
  37616. }
  37617. }
  37618. return null;
  37619. }
  37620. function receive(length) {
  37621. var n = 0;
  37622. while (length > 0) {
  37623. var bit = readBit();
  37624. if (bit === null) {
  37625. return;
  37626. }
  37627. n = (n << 1) | bit;
  37628. length--;
  37629. }
  37630. return n;
  37631. }
  37632. function receiveAndExtend(length) {
  37633. if (length === 1) {
  37634. return readBit() === 1 ? 1 : -1;
  37635. }
  37636. var n = receive(length);
  37637. if (n >= 1 << (length - 1)) {
  37638. return n;
  37639. }
  37640. return n + (-1 << length) + 1;
  37641. }
  37642. function decodeBaseline(component, offset) {
  37643. var t = decodeHuffman(component.huffmanTableDC);
  37644. var diff = t === 0 ? 0 : receiveAndExtend(t);
  37645. component.blockData[offset] = (component.pred += diff);
  37646. var k = 1;
  37647. while (k < 64) {
  37648. var rs = decodeHuffman(component.huffmanTableAC);
  37649. var s = rs & 15, r = rs >> 4;
  37650. if (s === 0) {
  37651. if (r < 15) {
  37652. break;
  37653. }
  37654. k += 16;
  37655. continue;
  37656. }
  37657. k += r;
  37658. var z = dctZigZag[k];
  37659. component.blockData[offset + z] = receiveAndExtend(s);
  37660. k++;
  37661. }
  37662. }
  37663. function decodeDCFirst(component, offset) {
  37664. var t = decodeHuffman(component.huffmanTableDC);
  37665. var diff = t === 0 ? 0 : (receiveAndExtend(t) << successive);
  37666. component.blockData[offset] = (component.pred += diff);
  37667. }
  37668. function decodeDCSuccessive(component, offset) {
  37669. component.blockData[offset] |= readBit() << successive;
  37670. }
  37671. var eobrun = 0;
  37672. function decodeACFirst(component, offset) {
  37673. if (eobrun > 0) {
  37674. eobrun--;
  37675. return;
  37676. }
  37677. var k = spectralStart, e = spectralEnd;
  37678. while (k <= e) {
  37679. var rs = decodeHuffman(component.huffmanTableAC);
  37680. var s = rs & 15, r = rs >> 4;
  37681. if (s === 0) {
  37682. if (r < 15) {
  37683. eobrun = receive(r) + (1 << r) - 1;
  37684. break;
  37685. }
  37686. k += 16;
  37687. continue;
  37688. }
  37689. k += r;
  37690. var z = dctZigZag[k];
  37691. component.blockData[offset + z] =
  37692. receiveAndExtend(s) * (1 << successive);
  37693. k++;
  37694. }
  37695. }
  37696. var successiveACState = 0, successiveACNextValue;
  37697. function decodeACSuccessive(component, offset) {
  37698. var k = spectralStart;
  37699. var e = spectralEnd;
  37700. var r = 0;
  37701. var s;
  37702. var rs;
  37703. while (k <= e) {
  37704. var z = dctZigZag[k];
  37705. switch (successiveACState) {
  37706. case 0: // initial state
  37707. rs = decodeHuffman(component.huffmanTableAC);
  37708. s = rs & 15;
  37709. r = rs >> 4;
  37710. if (s === 0) {
  37711. if (r < 15) {
  37712. eobrun = receive(r) + (1 << r);
  37713. successiveACState = 4;
  37714. } else {
  37715. r = 16;
  37716. successiveACState = 1;
  37717. }
  37718. } else {
  37719. if (s !== 1) {
  37720. throw 'invalid ACn encoding';
  37721. }
  37722. successiveACNextValue = receiveAndExtend(s);
  37723. successiveACState = r ? 2 : 3;
  37724. }
  37725. continue;
  37726. case 1: // skipping r zero items
  37727. case 2:
  37728. if (component.blockData[offset + z]) {
  37729. component.blockData[offset + z] += (readBit() << successive);
  37730. } else {
  37731. r--;
  37732. if (r === 0) {
  37733. successiveACState = successiveACState == 2 ? 3 : 0;
  37734. }
  37735. }
  37736. break;
  37737. case 3: // set value for a zero item
  37738. if (component.blockData[offset + z]) {
  37739. component.blockData[offset + z] += (readBit() << successive);
  37740. } else {
  37741. component.blockData[offset + z] =
  37742. successiveACNextValue << successive;
  37743. successiveACState = 0;
  37744. }
  37745. break;
  37746. case 4: // eob
  37747. if (component.blockData[offset + z]) {
  37748. component.blockData[offset + z] += (readBit() << successive);
  37749. }
  37750. break;
  37751. }
  37752. k++;
  37753. }
  37754. if (successiveACState === 4) {
  37755. eobrun--;
  37756. if (eobrun === 0) {
  37757. successiveACState = 0;
  37758. }
  37759. }
  37760. }
  37761. function decodeMcu(component, decode, mcu, row, col) {
  37762. var mcuRow = (mcu / mcusPerLine) | 0;
  37763. var mcuCol = mcu % mcusPerLine;
  37764. var blockRow = mcuRow * component.v + row;
  37765. var blockCol = mcuCol * component.h + col;
  37766. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  37767. decode(component, offset);
  37768. }
  37769. function decodeBlock(component, decode, mcu) {
  37770. var blockRow = (mcu / component.blocksPerLine) | 0;
  37771. var blockCol = mcu % component.blocksPerLine;
  37772. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  37773. decode(component, offset);
  37774. }
  37775. var componentsLength = components.length;
  37776. var component, i, j, k, n;
  37777. var decodeFn;
  37778. if (progressive) {
  37779. if (spectralStart === 0) {
  37780. decodeFn = successivePrev === 0 ? decodeDCFirst : decodeDCSuccessive;
  37781. } else {
  37782. decodeFn = successivePrev === 0 ? decodeACFirst : decodeACSuccessive;
  37783. }
  37784. } else {
  37785. decodeFn = decodeBaseline;
  37786. }
  37787. var mcu = 0, marker;
  37788. var mcuExpected;
  37789. if (componentsLength == 1) {
  37790. mcuExpected = components[0].blocksPerLine * components[0].blocksPerColumn;
  37791. } else {
  37792. mcuExpected = mcusPerLine * frame.mcusPerColumn;
  37793. }
  37794. if (!resetInterval) {
  37795. resetInterval = mcuExpected;
  37796. }
  37797. var h, v;
  37798. while (mcu < mcuExpected) {
  37799. // reset interval stuff
  37800. for (i = 0; i < componentsLength; i++) {
  37801. components[i].pred = 0;
  37802. }
  37803. eobrun = 0;
  37804. if (componentsLength == 1) {
  37805. component = components[0];
  37806. for (n = 0; n < resetInterval; n++) {
  37807. decodeBlock(component, decodeFn, mcu);
  37808. mcu++;
  37809. }
  37810. } else {
  37811. for (n = 0; n < resetInterval; n++) {
  37812. for (i = 0; i < componentsLength; i++) {
  37813. component = components[i];
  37814. h = component.h;
  37815. v = component.v;
  37816. for (j = 0; j < v; j++) {
  37817. for (k = 0; k < h; k++) {
  37818. decodeMcu(component, decodeFn, mcu, j, k);
  37819. }
  37820. }
  37821. }
  37822. mcu++;
  37823. }
  37824. }
  37825. // find marker
  37826. bitsCount = 0;
  37827. marker = (data[offset] << 8) | data[offset + 1];
  37828. if (marker <= 0xFF00) {
  37829. throw 'marker was not found';
  37830. }
  37831. if (marker >= 0xFFD0 && marker <= 0xFFD7) { // RSTx
  37832. offset += 2;
  37833. } else {
  37834. break;
  37835. }
  37836. }
  37837. return offset - startOffset;
  37838. }
  37839. // A port of poppler's IDCT method which in turn is taken from:
  37840. // Christoph Loeffler, Adriaan Ligtenberg, George S. Moschytz,
  37841. // 'Practical Fast 1-D DCT Algorithms with 11 Multiplications',
  37842. // IEEE Intl. Conf. on Acoustics, Speech & Signal Processing, 1989,
  37843. // 988-991.
  37844. function quantizeAndInverse(component, blockBufferOffset, p) {
  37845. var qt = component.quantizationTable, blockData = component.blockData;
  37846. var v0, v1, v2, v3, v4, v5, v6, v7;
  37847. var p0, p1, p2, p3, p4, p5, p6, p7;
  37848. var t;
  37849. // inverse DCT on rows
  37850. for (var row = 0; row < 64; row += 8) {
  37851. // gather block data
  37852. p0 = blockData[blockBufferOffset + row];
  37853. p1 = blockData[blockBufferOffset + row + 1];
  37854. p2 = blockData[blockBufferOffset + row + 2];
  37855. p3 = blockData[blockBufferOffset + row + 3];
  37856. p4 = blockData[blockBufferOffset + row + 4];
  37857. p5 = blockData[blockBufferOffset + row + 5];
  37858. p6 = blockData[blockBufferOffset + row + 6];
  37859. p7 = blockData[blockBufferOffset + row + 7];
  37860. // dequant p0
  37861. p0 *= qt[row];
  37862. // check for all-zero AC coefficients
  37863. if ((p1 | p2 | p3 | p4 | p5 | p6 | p7) === 0) {
  37864. t = (dctSqrt2 * p0 + 512) >> 10;
  37865. p[row] = t;
  37866. p[row + 1] = t;
  37867. p[row + 2] = t;
  37868. p[row + 3] = t;
  37869. p[row + 4] = t;
  37870. p[row + 5] = t;
  37871. p[row + 6] = t;
  37872. p[row + 7] = t;
  37873. continue;
  37874. }
  37875. // dequant p1 ... p7
  37876. p1 *= qt[row + 1];
  37877. p2 *= qt[row + 2];
  37878. p3 *= qt[row + 3];
  37879. p4 *= qt[row + 4];
  37880. p5 *= qt[row + 5];
  37881. p6 *= qt[row + 6];
  37882. p7 *= qt[row + 7];
  37883. // stage 4
  37884. v0 = (dctSqrt2 * p0 + 128) >> 8;
  37885. v1 = (dctSqrt2 * p4 + 128) >> 8;
  37886. v2 = p2;
  37887. v3 = p6;
  37888. v4 = (dctSqrt1d2 * (p1 - p7) + 128) >> 8;
  37889. v7 = (dctSqrt1d2 * (p1 + p7) + 128) >> 8;
  37890. v5 = p3 << 4;
  37891. v6 = p5 << 4;
  37892. // stage 3
  37893. v0 = (v0 + v1 + 1) >> 1;
  37894. v1 = v0 - v1;
  37895. t = (v2 * dctSin6 + v3 * dctCos6 + 128) >> 8;
  37896. v2 = (v2 * dctCos6 - v3 * dctSin6 + 128) >> 8;
  37897. v3 = t;
  37898. v4 = (v4 + v6 + 1) >> 1;
  37899. v6 = v4 - v6;
  37900. v7 = (v7 + v5 + 1) >> 1;
  37901. v5 = v7 - v5;
  37902. // stage 2
  37903. v0 = (v0 + v3 + 1) >> 1;
  37904. v3 = v0 - v3;
  37905. v1 = (v1 + v2 + 1) >> 1;
  37906. v2 = v1 - v2;
  37907. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  37908. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  37909. v7 = t;
  37910. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  37911. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  37912. v6 = t;
  37913. // stage 1
  37914. p[row] = v0 + v7;
  37915. p[row + 7] = v0 - v7;
  37916. p[row + 1] = v1 + v6;
  37917. p[row + 6] = v1 - v6;
  37918. p[row + 2] = v2 + v5;
  37919. p[row + 5] = v2 - v5;
  37920. p[row + 3] = v3 + v4;
  37921. p[row + 4] = v3 - v4;
  37922. }
  37923. // inverse DCT on columns
  37924. for (var col = 0; col < 8; ++col) {
  37925. p0 = p[col];
  37926. p1 = p[col + 8];
  37927. p2 = p[col + 16];
  37928. p3 = p[col + 24];
  37929. p4 = p[col + 32];
  37930. p5 = p[col + 40];
  37931. p6 = p[col + 48];
  37932. p7 = p[col + 56];
  37933. // check for all-zero AC coefficients
  37934. if ((p1 | p2 | p3 | p4 | p5 | p6 | p7) === 0) {
  37935. t = (dctSqrt2 * p0 + 8192) >> 14;
  37936. // convert to 8 bit
  37937. t = (t < -2040) ? 0 : (t >= 2024) ? 255 : (t + 2056) >> 4;
  37938. blockData[blockBufferOffset + col] = t;
  37939. blockData[blockBufferOffset + col + 8] = t;
  37940. blockData[blockBufferOffset + col + 16] = t;
  37941. blockData[blockBufferOffset + col + 24] = t;
  37942. blockData[blockBufferOffset + col + 32] = t;
  37943. blockData[blockBufferOffset + col + 40] = t;
  37944. blockData[blockBufferOffset + col + 48] = t;
  37945. blockData[blockBufferOffset + col + 56] = t;
  37946. continue;
  37947. }
  37948. // stage 4
  37949. v0 = (dctSqrt2 * p0 + 2048) >> 12;
  37950. v1 = (dctSqrt2 * p4 + 2048) >> 12;
  37951. v2 = p2;
  37952. v3 = p6;
  37953. v4 = (dctSqrt1d2 * (p1 - p7) + 2048) >> 12;
  37954. v7 = (dctSqrt1d2 * (p1 + p7) + 2048) >> 12;
  37955. v5 = p3;
  37956. v6 = p5;
  37957. // stage 3
  37958. // Shift v0 by 128.5 << 5 here, so we don't need to shift p0...p7 when
  37959. // converting to UInt8 range later.
  37960. v0 = ((v0 + v1 + 1) >> 1) + 4112;
  37961. v1 = v0 - v1;
  37962. t = (v2 * dctSin6 + v3 * dctCos6 + 2048) >> 12;
  37963. v2 = (v2 * dctCos6 - v3 * dctSin6 + 2048) >> 12;
  37964. v3 = t;
  37965. v4 = (v4 + v6 + 1) >> 1;
  37966. v6 = v4 - v6;
  37967. v7 = (v7 + v5 + 1) >> 1;
  37968. v5 = v7 - v5;
  37969. // stage 2
  37970. v0 = (v0 + v3 + 1) >> 1;
  37971. v3 = v0 - v3;
  37972. v1 = (v1 + v2 + 1) >> 1;
  37973. v2 = v1 - v2;
  37974. t = (v4 * dctSin3 + v7 * dctCos3 + 2048) >> 12;
  37975. v4 = (v4 * dctCos3 - v7 * dctSin3 + 2048) >> 12;
  37976. v7 = t;
  37977. t = (v5 * dctSin1 + v6 * dctCos1 + 2048) >> 12;
  37978. v5 = (v5 * dctCos1 - v6 * dctSin1 + 2048) >> 12;
  37979. v6 = t;
  37980. // stage 1
  37981. p0 = v0 + v7;
  37982. p7 = v0 - v7;
  37983. p1 = v1 + v6;
  37984. p6 = v1 - v6;
  37985. p2 = v2 + v5;
  37986. p5 = v2 - v5;
  37987. p3 = v3 + v4;
  37988. p4 = v3 - v4;
  37989. // convert to 8-bit integers
  37990. p0 = (p0 < 16) ? 0 : (p0 >= 4080) ? 255 : p0 >> 4;
  37991. p1 = (p1 < 16) ? 0 : (p1 >= 4080) ? 255 : p1 >> 4;
  37992. p2 = (p2 < 16) ? 0 : (p2 >= 4080) ? 255 : p2 >> 4;
  37993. p3 = (p3 < 16) ? 0 : (p3 >= 4080) ? 255 : p3 >> 4;
  37994. p4 = (p4 < 16) ? 0 : (p4 >= 4080) ? 255 : p4 >> 4;
  37995. p5 = (p5 < 16) ? 0 : (p5 >= 4080) ? 255 : p5 >> 4;
  37996. p6 = (p6 < 16) ? 0 : (p6 >= 4080) ? 255 : p6 >> 4;
  37997. p7 = (p7 < 16) ? 0 : (p7 >= 4080) ? 255 : p7 >> 4;
  37998. // store block data
  37999. blockData[blockBufferOffset + col] = p0;
  38000. blockData[blockBufferOffset + col + 8] = p1;
  38001. blockData[blockBufferOffset + col + 16] = p2;
  38002. blockData[blockBufferOffset + col + 24] = p3;
  38003. blockData[blockBufferOffset + col + 32] = p4;
  38004. blockData[blockBufferOffset + col + 40] = p5;
  38005. blockData[blockBufferOffset + col + 48] = p6;
  38006. blockData[blockBufferOffset + col + 56] = p7;
  38007. }
  38008. }
  38009. function buildComponentData(frame, component) {
  38010. var blocksPerLine = component.blocksPerLine;
  38011. var blocksPerColumn = component.blocksPerColumn;
  38012. var computationBuffer = new Int16Array(64);
  38013. for (var blockRow = 0; blockRow < blocksPerColumn; blockRow++) {
  38014. for (var blockCol = 0; blockCol < blocksPerLine; blockCol++) {
  38015. var offset = getBlockBufferOffset(component, blockRow, blockCol);
  38016. quantizeAndInverse(component, offset, computationBuffer);
  38017. }
  38018. }
  38019. return component.blockData;
  38020. }
  38021. function clamp0to255(a) {
  38022. return a <= 0 ? 0 : a >= 255 ? 255 : a;
  38023. }
  38024. constructor.prototype = {
  38025. parse: function parse(data) {
  38026. function readUint16() {
  38027. var value = (data[offset] << 8) | data[offset + 1];
  38028. offset += 2;
  38029. return value;
  38030. }
  38031. function readDataBlock() {
  38032. var length = readUint16();
  38033. var array = data.subarray(offset, offset + length - 2);
  38034. offset += array.length;
  38035. return array;
  38036. }
  38037. function prepareComponents(frame) {
  38038. var mcusPerLine = Math.ceil(frame.samplesPerLine / 8 / frame.maxH);
  38039. var mcusPerColumn = Math.ceil(frame.scanLines / 8 / frame.maxV);
  38040. for (var i = 0; i < frame.components.length; i++) {
  38041. component = frame.components[i];
  38042. var blocksPerLine = Math.ceil(Math.ceil(frame.samplesPerLine / 8) *
  38043. component.h / frame.maxH);
  38044. var blocksPerColumn = Math.ceil(Math.ceil(frame.scanLines / 8) *
  38045. component.v / frame.maxV);
  38046. var blocksPerLineForMcu = mcusPerLine * component.h;
  38047. var blocksPerColumnForMcu = mcusPerColumn * component.v;
  38048. var blocksBufferSize = 64 * blocksPerColumnForMcu *
  38049. (blocksPerLineForMcu + 1);
  38050. component.blockData = new Int16Array(blocksBufferSize);
  38051. component.blocksPerLine = blocksPerLine;
  38052. component.blocksPerColumn = blocksPerColumn;
  38053. }
  38054. frame.mcusPerLine = mcusPerLine;
  38055. frame.mcusPerColumn = mcusPerColumn;
  38056. }
  38057. var offset = 0, length = data.length;
  38058. var jfif = null;
  38059. var adobe = null;
  38060. var pixels = null;
  38061. var frame, resetInterval;
  38062. var quantizationTables = [];
  38063. var huffmanTablesAC = [], huffmanTablesDC = [];
  38064. var fileMarker = readUint16();
  38065. if (fileMarker != 0xFFD8) { // SOI (Start of Image)
  38066. throw 'SOI not found';
  38067. }
  38068. fileMarker = readUint16();
  38069. while (fileMarker != 0xFFD9) { // EOI (End of image)
  38070. var i, j, l;
  38071. switch(fileMarker) {
  38072. case 0xFFE0: // APP0 (Application Specific)
  38073. case 0xFFE1: // APP1
  38074. case 0xFFE2: // APP2
  38075. case 0xFFE3: // APP3
  38076. case 0xFFE4: // APP4
  38077. case 0xFFE5: // APP5
  38078. case 0xFFE6: // APP6
  38079. case 0xFFE7: // APP7
  38080. case 0xFFE8: // APP8
  38081. case 0xFFE9: // APP9
  38082. case 0xFFEA: // APP10
  38083. case 0xFFEB: // APP11
  38084. case 0xFFEC: // APP12
  38085. case 0xFFED: // APP13
  38086. case 0xFFEE: // APP14
  38087. case 0xFFEF: // APP15
  38088. case 0xFFFE: // COM (Comment)
  38089. var appData = readDataBlock();
  38090. if (fileMarker === 0xFFE0) {
  38091. if (appData[0] === 0x4A && appData[1] === 0x46 &&
  38092. appData[2] === 0x49 && appData[3] === 0x46 &&
  38093. appData[4] === 0) { // 'JFIF\x00'
  38094. jfif = {
  38095. version: { major: appData[5], minor: appData[6] },
  38096. densityUnits: appData[7],
  38097. xDensity: (appData[8] << 8) | appData[9],
  38098. yDensity: (appData[10] << 8) | appData[11],
  38099. thumbWidth: appData[12],
  38100. thumbHeight: appData[13],
  38101. thumbData: appData.subarray(14, 14 +
  38102. 3 * appData[12] * appData[13])
  38103. };
  38104. }
  38105. }
  38106. // TODO APP1 - Exif
  38107. if (fileMarker === 0xFFEE) {
  38108. if (appData[0] === 0x41 && appData[1] === 0x64 &&
  38109. appData[2] === 0x6F && appData[3] === 0x62 &&
  38110. appData[4] === 0x65 && appData[5] === 0) { // 'Adobe\x00'
  38111. adobe = {
  38112. version: appData[6],
  38113. flags0: (appData[7] << 8) | appData[8],
  38114. flags1: (appData[9] << 8) | appData[10],
  38115. transformCode: appData[11]
  38116. };
  38117. }
  38118. }
  38119. break;
  38120. case 0xFFDB: // DQT (Define Quantization Tables)
  38121. var quantizationTablesLength = readUint16();
  38122. var quantizationTablesEnd = quantizationTablesLength + offset - 2;
  38123. var z;
  38124. while (offset < quantizationTablesEnd) {
  38125. var quantizationTableSpec = data[offset++];
  38126. var tableData = new Uint16Array(64);
  38127. if ((quantizationTableSpec >> 4) === 0) { // 8 bit values
  38128. for (j = 0; j < 64; j++) {
  38129. z = dctZigZag[j];
  38130. tableData[z] = data[offset++];
  38131. }
  38132. } else if ((quantizationTableSpec >> 4) === 1) { //16 bit
  38133. for (j = 0; j < 64; j++) {
  38134. z = dctZigZag[j];
  38135. tableData[z] = readUint16();
  38136. }
  38137. } else {
  38138. throw 'DQT: invalid table spec';
  38139. }
  38140. quantizationTables[quantizationTableSpec & 15] = tableData;
  38141. }
  38142. break;
  38143. case 0xFFC0: // SOF0 (Start of Frame, Baseline DCT)
  38144. case 0xFFC1: // SOF1 (Start of Frame, Extended DCT)
  38145. case 0xFFC2: // SOF2 (Start of Frame, Progressive DCT)
  38146. if (frame) {
  38147. throw 'Only single frame JPEGs supported';
  38148. }
  38149. readUint16(); // skip data length
  38150. frame = {};
  38151. frame.extended = (fileMarker === 0xFFC1);
  38152. frame.progressive = (fileMarker === 0xFFC2);
  38153. frame.precision = data[offset++];
  38154. frame.scanLines = readUint16();
  38155. frame.samplesPerLine = readUint16();
  38156. frame.components = [];
  38157. frame.componentIds = {};
  38158. var componentsCount = data[offset++], componentId;
  38159. var maxH = 0, maxV = 0;
  38160. for (i = 0; i < componentsCount; i++) {
  38161. componentId = data[offset];
  38162. var h = data[offset + 1] >> 4;
  38163. var v = data[offset + 1] & 15;
  38164. if (maxH < h) {
  38165. maxH = h;
  38166. }
  38167. if (maxV < v) {
  38168. maxV = v;
  38169. }
  38170. var qId = data[offset + 2];
  38171. l = frame.components.push({
  38172. h: h,
  38173. v: v,
  38174. quantizationTable: quantizationTables[qId]
  38175. });
  38176. frame.componentIds[componentId] = l - 1;
  38177. offset += 3;
  38178. }
  38179. frame.maxH = maxH;
  38180. frame.maxV = maxV;
  38181. prepareComponents(frame);
  38182. break;
  38183. case 0xFFC4: // DHT (Define Huffman Tables)
  38184. var huffmanLength = readUint16();
  38185. for (i = 2; i < huffmanLength;) {
  38186. var huffmanTableSpec = data[offset++];
  38187. var codeLengths = new Uint8Array(16);
  38188. var codeLengthSum = 0;
  38189. for (j = 0; j < 16; j++, offset++) {
  38190. codeLengthSum += (codeLengths[j] = data[offset]);
  38191. }
  38192. var huffmanValues = new Uint8Array(codeLengthSum);
  38193. for (j = 0; j < codeLengthSum; j++, offset++) {
  38194. huffmanValues[j] = data[offset];
  38195. }
  38196. i += 17 + codeLengthSum;
  38197. ((huffmanTableSpec >> 4) === 0 ?
  38198. huffmanTablesDC : huffmanTablesAC)[huffmanTableSpec & 15] =
  38199. buildHuffmanTable(codeLengths, huffmanValues);
  38200. }
  38201. break;
  38202. case 0xFFDD: // DRI (Define Restart Interval)
  38203. readUint16(); // skip data length
  38204. resetInterval = readUint16();
  38205. break;
  38206. case 0xFFDA: // SOS (Start of Scan)
  38207. var scanLength = readUint16();
  38208. var selectorsCount = data[offset++];
  38209. var components = [], component;
  38210. for (i = 0; i < selectorsCount; i++) {
  38211. var componentIndex = frame.componentIds[data[offset++]];
  38212. component = frame.components[componentIndex];
  38213. var tableSpec = data[offset++];
  38214. component.huffmanTableDC = huffmanTablesDC[tableSpec >> 4];
  38215. component.huffmanTableAC = huffmanTablesAC[tableSpec & 15];
  38216. components.push(component);
  38217. }
  38218. var spectralStart = data[offset++];
  38219. var spectralEnd = data[offset++];
  38220. var successiveApproximation = data[offset++];
  38221. var processed = decodeScan(data, offset,
  38222. frame, components, resetInterval,
  38223. spectralStart, spectralEnd,
  38224. successiveApproximation >> 4, successiveApproximation & 15);
  38225. offset += processed;
  38226. break;
  38227. default:
  38228. if (data[offset - 3] == 0xFF &&
  38229. data[offset - 2] >= 0xC0 && data[offset - 2] <= 0xFE) {
  38230. // could be incorrect encoding -- last 0xFF byte of the previous
  38231. // block was eaten by the encoder
  38232. offset -= 3;
  38233. break;
  38234. }
  38235. throw 'unknown JPEG marker ' + fileMarker.toString(16);
  38236. }
  38237. fileMarker = readUint16();
  38238. }
  38239. this.width = frame.samplesPerLine;
  38240. this.height = frame.scanLines;
  38241. this.jfif = jfif;
  38242. this.adobe = adobe;
  38243. this.components = [];
  38244. for (i = 0; i < frame.components.length; i++) {
  38245. component = frame.components[i];
  38246. this.components.push({
  38247. output: buildComponentData(frame, component),
  38248. scaleX: component.h / frame.maxH,
  38249. scaleY: component.v / frame.maxV,
  38250. blocksPerLine: component.blocksPerLine,
  38251. blocksPerColumn: component.blocksPerColumn
  38252. });
  38253. }
  38254. this.numComponents = this.components.length;
  38255. },
  38256. _getLinearizedBlockData: function getLinearizedBlockData(width, height) {
  38257. var scaleX = this.width / width, scaleY = this.height / height;
  38258. var component, componentScaleX, componentScaleY, blocksPerScanline;
  38259. var x, y, i, j, k;
  38260. var index;
  38261. var offset = 0;
  38262. var output;
  38263. var numComponents = this.components.length;
  38264. var dataLength = width * height * numComponents;
  38265. var data = new Uint8Array(dataLength);
  38266. var xScaleBlockOffset = new Uint32Array(width);
  38267. var mask3LSB = 0xfffffff8; // used to clear the 3 LSBs
  38268. for (i = 0; i < numComponents; i++) {
  38269. component = this.components[i];
  38270. componentScaleX = component.scaleX * scaleX;
  38271. componentScaleY = component.scaleY * scaleY;
  38272. offset = i;
  38273. output = component.output;
  38274. blocksPerScanline = (component.blocksPerLine + 1) << 3;
  38275. // precalculate the xScaleBlockOffset
  38276. for (x = 0; x < width; x++) {
  38277. j = 0 | (x * componentScaleX);
  38278. xScaleBlockOffset[x] = ((j & mask3LSB) << 3) | (j & 7);
  38279. }
  38280. // linearize the blocks of the component
  38281. for (y = 0; y < height; y++) {
  38282. j = 0 | (y * componentScaleY);
  38283. index = blocksPerScanline * (j & mask3LSB) | ((j & 7) << 3);
  38284. for (x = 0; x < width; x++) {
  38285. data[offset] = output[index + xScaleBlockOffset[x]];
  38286. offset += numComponents;
  38287. }
  38288. }
  38289. }
  38290. // decodeTransform will contains pairs of multiplier (-256..256) and
  38291. // additive
  38292. var transform = this.decodeTransform;
  38293. if (transform) {
  38294. for (i = 0; i < dataLength;) {
  38295. for (j = 0, k = 0; j < numComponents; j++, i++, k += 2) {
  38296. data[i] = ((data[i] * transform[k]) >> 8) + transform[k + 1];
  38297. }
  38298. }
  38299. }
  38300. return data;
  38301. },
  38302. _isColorConversionNeeded: function isColorConversionNeeded() {
  38303. if (this.adobe && this.adobe.transformCode) {
  38304. // The adobe transform marker overrides any previous setting
  38305. return true;
  38306. } else if (this.numComponents == 3) {
  38307. return true;
  38308. } else {
  38309. return false;
  38310. }
  38311. },
  38312. _convertYccToRgb: function convertYccToRgb(data) {
  38313. var Y, Cb, Cr;
  38314. for (var i = 0, length = data.length; i < length; i += 3) {
  38315. Y = data[i ];
  38316. Cb = data[i + 1];
  38317. Cr = data[i + 2];
  38318. data[i ] = clamp0to255(Y - 179.456 + 1.402 * Cr);
  38319. data[i + 1] = clamp0to255(Y + 135.459 - 0.344 * Cb - 0.714 * Cr);
  38320. data[i + 2] = clamp0to255(Y - 226.816 + 1.772 * Cb);
  38321. }
  38322. return data;
  38323. },
  38324. _convertYcckToRgb: function convertYcckToRgb(data) {
  38325. var Y, Cb, Cr, k, CbCb, CbCr, CbY, Cbk, CrCr, Crk, CrY, YY, Yk, kk;
  38326. var offset = 0;
  38327. for (var i = 0, length = data.length; i < length; i += 4) {
  38328. Y = data[i];
  38329. Cb = data[i + 1];
  38330. Cr = data[i + 2];
  38331. k = data[i + 3];
  38332. CbCb = Cb * Cb;
  38333. CbCr = Cb * Cr;
  38334. CbY = Cb * Y;
  38335. Cbk = Cb * k;
  38336. CrCr = Cr * Cr;
  38337. Crk = Cr * k;
  38338. CrY = Cr * Y;
  38339. YY = Y * Y;
  38340. Yk = Y * k;
  38341. kk = k * k;
  38342. var r = - 122.67195406894 -
  38343. 6.60635669420364e-5 * CbCb + 0.000437130475926232 * CbCr -
  38344. 5.4080610064599e-5* CbY + 0.00048449797120281* Cbk -
  38345. 0.154362151871126 * Cb - 0.000957964378445773 * CrCr +
  38346. 0.000817076911346625 * CrY - 0.00477271405408747 * Crk +
  38347. 1.53380253221734 * Cr + 0.000961250184130688 * YY -
  38348. 0.00266257332283933 * Yk + 0.48357088451265 * Y -
  38349. 0.000336197177618394 * kk + 0.484791561490776 * k;
  38350. var g = 107.268039397724 +
  38351. 2.19927104525741e-5 * CbCb - 0.000640992018297945 * CbCr +
  38352. 0.000659397001245577* CbY + 0.000426105652938837* Cbk -
  38353. 0.176491792462875 * Cb - 0.000778269941513683 * CrCr +
  38354. 0.00130872261408275 * CrY + 0.000770482631801132 * Crk -
  38355. 0.151051492775562 * Cr + 0.00126935368114843 * YY -
  38356. 0.00265090189010898 * Yk + 0.25802910206845 * Y -
  38357. 0.000318913117588328 * kk - 0.213742400323665 * k;
  38358. var b = - 20.810012546947 -
  38359. 0.000570115196973677 * CbCb - 2.63409051004589e-5 * CbCr +
  38360. 0.0020741088115012* CbY - 0.00288260236853442* Cbk +
  38361. 0.814272968359295 * Cb - 1.53496057440975e-5 * CrCr -
  38362. 0.000132689043961446 * CrY + 0.000560833691242812 * Crk -
  38363. 0.195152027534049 * Cr + 0.00174418132927582 * YY -
  38364. 0.00255243321439347 * Yk + 0.116935020465145 * Y -
  38365. 0.000343531996510555 * kk + 0.24165260232407 * k;
  38366. data[offset++] = clamp0to255(r);
  38367. data[offset++] = clamp0to255(g);
  38368. data[offset++] = clamp0to255(b);
  38369. }
  38370. return data;
  38371. },
  38372. _convertYcckToCmyk: function convertYcckToCmyk(data) {
  38373. var Y, Cb, Cr;
  38374. for (var i = 0, length = data.length; i < length; i += 4) {
  38375. Y = data[i];
  38376. Cb = data[i + 1];
  38377. Cr = data[i + 2];
  38378. data[i ] = clamp0to255(434.456 - Y - 1.402 * Cr);
  38379. data[i + 1] = clamp0to255(119.541 - Y + 0.344 * Cb + 0.714 * Cr);
  38380. data[i + 2] = clamp0to255(481.816 - Y - 1.772 * Cb);
  38381. // K in data[i + 3] is unchanged
  38382. }
  38383. return data;
  38384. },
  38385. _convertCmykToRgb: function convertCmykToRgb(data) {
  38386. var c, m, y, k;
  38387. var offset = 0;
  38388. var min = -255 * 255 * 255;
  38389. var scale = 1 / 255 / 255;
  38390. for (var i = 0, length = data.length; i < length; i += 4) {
  38391. c = data[i];
  38392. m = data[i + 1];
  38393. y = data[i + 2];
  38394. k = data[i + 3];
  38395. var r =
  38396. c * (-4.387332384609988 * c + 54.48615194189176 * m +
  38397. 18.82290502165302 * y + 212.25662451639585 * k -
  38398. 72734.4411664936) +
  38399. m * (1.7149763477362134 * m - 5.6096736904047315 * y -
  38400. 17.873870861415444 * k - 1401.7366389350734) +
  38401. y * (-2.5217340131683033 * y - 21.248923337353073 * k +
  38402. 4465.541406466231) -
  38403. k * (21.86122147463605 * k + 48317.86113160301);
  38404. var g =
  38405. c * (8.841041422036149 * c + 60.118027045597366 * m +
  38406. 6.871425592049007 * y + 31.159100130055922 * k -
  38407. 20220.756542821975) +
  38408. m * (-15.310361306967817 * m + 17.575251261109482 * y +
  38409. 131.35250912493976 * k - 48691.05921601825) +
  38410. y * (4.444339102852739 * y + 9.8632861493405 * k -
  38411. 6341.191035517494) -
  38412. k * (20.737325471181034 * k + 47890.15695978492);
  38413. var b =
  38414. c * (0.8842522430003296 * c + 8.078677503112928 * m +
  38415. 30.89978309703729 * y - 0.23883238689178934 * k -
  38416. 3616.812083916688) +
  38417. m * (10.49593273432072 * m + 63.02378494754052 * y +
  38418. 50.606957656360734 * k - 28620.90484698408) +
  38419. y * (0.03296041114873217 * y + 115.60384449646641 * k -
  38420. 49363.43385999684) -
  38421. k * (22.33816807309886 * k + 45932.16563550634);
  38422. data[offset++] = r >= 0 ? 255 : r <= min ? 0 : 255 + r * scale | 0;
  38423. data[offset++] = g >= 0 ? 255 : g <= min ? 0 : 255 + g * scale | 0;
  38424. data[offset++] = b >= 0 ? 255 : b <= min ? 0 : 255 + b * scale | 0;
  38425. }
  38426. return data;
  38427. },
  38428. getData: function getData(width, height, forceRGBoutput) {
  38429. if (this.numComponents > 4) {
  38430. throw 'Unsupported color mode';
  38431. }
  38432. // type of data: Uint8Array(width * height * numComponents)
  38433. var data = this._getLinearizedBlockData(width, height);
  38434. if (this.numComponents === 3) {
  38435. return this._convertYccToRgb(data);
  38436. } else if (this.numComponents === 4) {
  38437. if (this._isColorConversionNeeded()) {
  38438. if (forceRGBoutput) {
  38439. return this._convertYcckToRgb(data);
  38440. } else {
  38441. return this._convertYcckToCmyk(data);
  38442. }
  38443. } else if (forceRGBoutput) {
  38444. return this._convertCmykToRgb(data);
  38445. }
  38446. }
  38447. return data;
  38448. }
  38449. };
  38450. return constructor;
  38451. })();
  38452. var JpxImage = (function JpxImageClosure() {
  38453. // Table E.1
  38454. var SubbandsGainLog2 = {
  38455. 'LL': 0,
  38456. 'LH': 1,
  38457. 'HL': 1,
  38458. 'HH': 2
  38459. };
  38460. function JpxImage() {
  38461. this.failOnCorruptedImage = false;
  38462. }
  38463. JpxImage.prototype = {
  38464. parse: function JpxImage_parse(data) {
  38465. var head = readUint16(data, 0);
  38466. // No box header, immediate start of codestream (SOC)
  38467. if (head === 0xFF4F) {
  38468. this.parseCodestream(data, 0, data.length);
  38469. return;
  38470. }
  38471. var position = 0, length = data.length;
  38472. while (position < length) {
  38473. var headerSize = 8;
  38474. var lbox = readUint32(data, position);
  38475. var tbox = readUint32(data, position + 4);
  38476. position += headerSize;
  38477. if (lbox === 1) {
  38478. // XLBox: read UInt64 according to spec.
  38479. // JavaScript's int precision of 53 bit should be sufficient here.
  38480. lbox = readUint32(data, position) * 4294967296 +
  38481. readUint32(data, position + 4);
  38482. position += 8;
  38483. headerSize += 8;
  38484. }
  38485. if (lbox === 0) {
  38486. lbox = length - position + headerSize;
  38487. }
  38488. if (lbox < headerSize) {
  38489. throw new Error('JPX Error: Invalid box field size');
  38490. }
  38491. var dataLength = lbox - headerSize;
  38492. var jumpDataLength = true;
  38493. switch (tbox) {
  38494. case 0x6A501A1A: // 'jP\032\032'
  38495. // TODO
  38496. break;
  38497. case 0x6A703268: // 'jp2h'
  38498. jumpDataLength = false; // parsing child boxes
  38499. break;
  38500. case 0x636F6C72: // 'colr'
  38501. // TODO
  38502. break;
  38503. case 0x6A703263: // 'jp2c'
  38504. this.parseCodestream(data, position, position + dataLength);
  38505. break;
  38506. }
  38507. if (jumpDataLength) {
  38508. position += dataLength;
  38509. }
  38510. }
  38511. },
  38512. parseImageProperties: function JpxImage_parseImageProperties(stream) {
  38513. var newByte = stream.getByte();
  38514. while (newByte >= 0) {
  38515. var oldByte = newByte;
  38516. newByte = stream.getByte();
  38517. var code = (oldByte << 8) | newByte;
  38518. // Image and tile size (SIZ)
  38519. if (code == 0xFF51) {
  38520. stream.skip(4);
  38521. var Xsiz = stream.getInt32() >>> 0; // Byte 4
  38522. var Ysiz = stream.getInt32() >>> 0; // Byte 8
  38523. var XOsiz = stream.getInt32() >>> 0; // Byte 12
  38524. var YOsiz = stream.getInt32() >>> 0; // Byte 16
  38525. stream.skip(16);
  38526. var Csiz = stream.getUint16(); // Byte 36
  38527. this.width = Xsiz - XOsiz;
  38528. this.height = Ysiz - YOsiz;
  38529. this.componentsCount = Csiz;
  38530. // Results are always returned as Uint8Arrays
  38531. this.bitsPerComponent = 8;
  38532. return;
  38533. }
  38534. }
  38535. throw new Error('JPX Error: No size marker found in JPX stream');
  38536. },
  38537. parseCodestream: function JpxImage_parseCodestream(data, start, end) {
  38538. var context = {};
  38539. try {
  38540. var doNotRecover = false;
  38541. var position = start;
  38542. while (position + 1 < end) {
  38543. var code = readUint16(data, position);
  38544. position += 2;
  38545. var length = 0, j, sqcd, spqcds, spqcdSize, scalarExpounded, tile;
  38546. switch (code) {
  38547. case 0xFF4F: // Start of codestream (SOC)
  38548. context.mainHeader = true;
  38549. break;
  38550. case 0xFFD9: // End of codestream (EOC)
  38551. break;
  38552. case 0xFF51: // Image and tile size (SIZ)
  38553. length = readUint16(data, position);
  38554. var siz = {};
  38555. siz.Xsiz = readUint32(data, position + 4);
  38556. siz.Ysiz = readUint32(data, position + 8);
  38557. siz.XOsiz = readUint32(data, position + 12);
  38558. siz.YOsiz = readUint32(data, position + 16);
  38559. siz.XTsiz = readUint32(data, position + 20);
  38560. siz.YTsiz = readUint32(data, position + 24);
  38561. siz.XTOsiz = readUint32(data, position + 28);
  38562. siz.YTOsiz = readUint32(data, position + 32);
  38563. var componentsCount = readUint16(data, position + 36);
  38564. siz.Csiz = componentsCount;
  38565. var components = [];
  38566. j = position + 38;
  38567. for (var i = 0; i < componentsCount; i++) {
  38568. var component = {
  38569. precision: (data[j] & 0x7F) + 1,
  38570. isSigned: !!(data[j] & 0x80),
  38571. XRsiz: data[j + 1],
  38572. YRsiz: data[j + 1]
  38573. };
  38574. calculateComponentDimensions(component, siz);
  38575. components.push(component);
  38576. }
  38577. context.SIZ = siz;
  38578. context.components = components;
  38579. calculateTileGrids(context, components);
  38580. context.QCC = [];
  38581. context.COC = [];
  38582. break;
  38583. case 0xFF55: // Tile-part lengths, main header (TLM)
  38584. var Ltlm = readUint16(data, position); // Marker segment length
  38585. // Skip tile length markers
  38586. position += Ltlm;
  38587. break;
  38588. case 0xFF5C: // Quantization default (QCD)
  38589. length = readUint16(data, position);
  38590. var qcd = {};
  38591. j = position + 2;
  38592. sqcd = data[j++];
  38593. switch (sqcd & 0x1F) {
  38594. case 0:
  38595. spqcdSize = 8;
  38596. scalarExpounded = true;
  38597. break;
  38598. case 1:
  38599. spqcdSize = 16;
  38600. scalarExpounded = false;
  38601. break;
  38602. case 2:
  38603. spqcdSize = 16;
  38604. scalarExpounded = true;
  38605. break;
  38606. default:
  38607. throw new Error('JPX Error: Invalid SQcd value ' + sqcd);
  38608. }
  38609. qcd.noQuantization = (spqcdSize == 8);
  38610. qcd.scalarExpounded = scalarExpounded;
  38611. qcd.guardBits = sqcd >> 5;
  38612. spqcds = [];
  38613. while (j < length + position) {
  38614. var spqcd = {};
  38615. if (spqcdSize == 8) {
  38616. spqcd.epsilon = data[j++] >> 3;
  38617. spqcd.mu = 0;
  38618. } else {
  38619. spqcd.epsilon = data[j] >> 3;
  38620. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  38621. j += 2;
  38622. }
  38623. spqcds.push(spqcd);
  38624. }
  38625. qcd.SPqcds = spqcds;
  38626. if (context.mainHeader) {
  38627. context.QCD = qcd;
  38628. } else {
  38629. context.currentTile.QCD = qcd;
  38630. context.currentTile.QCC = [];
  38631. }
  38632. break;
  38633. case 0xFF5D: // Quantization component (QCC)
  38634. length = readUint16(data, position);
  38635. var qcc = {};
  38636. j = position + 2;
  38637. var cqcc;
  38638. if (context.SIZ.Csiz < 257) {
  38639. cqcc = data[j++];
  38640. } else {
  38641. cqcc = readUint16(data, j);
  38642. j += 2;
  38643. }
  38644. sqcd = data[j++];
  38645. switch (sqcd & 0x1F) {
  38646. case 0:
  38647. spqcdSize = 8;
  38648. scalarExpounded = true;
  38649. break;
  38650. case 1:
  38651. spqcdSize = 16;
  38652. scalarExpounded = false;
  38653. break;
  38654. case 2:
  38655. spqcdSize = 16;
  38656. scalarExpounded = true;
  38657. break;
  38658. default:
  38659. throw new Error('JPX Error: Invalid SQcd value ' + sqcd);
  38660. }
  38661. qcc.noQuantization = (spqcdSize == 8);
  38662. qcc.scalarExpounded = scalarExpounded;
  38663. qcc.guardBits = sqcd >> 5;
  38664. spqcds = [];
  38665. while (j < (length + position)) {
  38666. spqcd = {};
  38667. if (spqcdSize == 8) {
  38668. spqcd.epsilon = data[j++] >> 3;
  38669. spqcd.mu = 0;
  38670. } else {
  38671. spqcd.epsilon = data[j] >> 3;
  38672. spqcd.mu = ((data[j] & 0x7) << 8) | data[j + 1];
  38673. j += 2;
  38674. }
  38675. spqcds.push(spqcd);
  38676. }
  38677. qcc.SPqcds = spqcds;
  38678. if (context.mainHeader) {
  38679. context.QCC[cqcc] = qcc;
  38680. } else {
  38681. context.currentTile.QCC[cqcc] = qcc;
  38682. }
  38683. break;
  38684. case 0xFF52: // Coding style default (COD)
  38685. length = readUint16(data, position);
  38686. var cod = {};
  38687. j = position + 2;
  38688. var scod = data[j++];
  38689. cod.entropyCoderWithCustomPrecincts = !!(scod & 1);
  38690. cod.sopMarkerUsed = !!(scod & 2);
  38691. cod.ephMarkerUsed = !!(scod & 4);
  38692. cod.progressionOrder = data[j++];
  38693. cod.layersCount = readUint16(data, j);
  38694. j += 2;
  38695. cod.multipleComponentTransform = data[j++];
  38696. cod.decompositionLevelsCount = data[j++];
  38697. cod.xcb = (data[j++] & 0xF) + 2;
  38698. cod.ycb = (data[j++] & 0xF) + 2;
  38699. var blockStyle = data[j++];
  38700. cod.selectiveArithmeticCodingBypass = !!(blockStyle & 1);
  38701. cod.resetContextProbabilities = !!(blockStyle & 2);
  38702. cod.terminationOnEachCodingPass = !!(blockStyle & 4);
  38703. cod.verticalyStripe = !!(blockStyle & 8);
  38704. cod.predictableTermination = !!(blockStyle & 16);
  38705. cod.segmentationSymbolUsed = !!(blockStyle & 32);
  38706. cod.reversibleTransformation = data[j++];
  38707. if (cod.entropyCoderWithCustomPrecincts) {
  38708. var precinctsSizes = [];
  38709. while (j < length + position) {
  38710. var precinctsSize = data[j++];
  38711. precinctsSizes.push({
  38712. PPx: precinctsSize & 0xF,
  38713. PPy: precinctsSize >> 4
  38714. });
  38715. }
  38716. cod.precinctsSizes = precinctsSizes;
  38717. }
  38718. var unsupported = [];
  38719. if (cod.sopMarkerUsed) {
  38720. unsupported.push('sopMarkerUsed');
  38721. }
  38722. if (cod.ephMarkerUsed) {
  38723. unsupported.push('ephMarkerUsed');
  38724. }
  38725. if (cod.selectiveArithmeticCodingBypass) {
  38726. unsupported.push('selectiveArithmeticCodingBypass');
  38727. }
  38728. if (cod.resetContextProbabilities) {
  38729. unsupported.push('resetContextProbabilities');
  38730. }
  38731. if (cod.terminationOnEachCodingPass) {
  38732. unsupported.push('terminationOnEachCodingPass');
  38733. }
  38734. if (cod.verticalyStripe) {
  38735. unsupported.push('verticalyStripe');
  38736. }
  38737. if (cod.predictableTermination) {
  38738. unsupported.push('predictableTermination');
  38739. }
  38740. if (unsupported.length > 0) {
  38741. doNotRecover = true;
  38742. throw new Error('JPX Error: Unsupported COD options (' +
  38743. unsupported.join(', ') + ')');
  38744. }
  38745. if (context.mainHeader) {
  38746. context.COD = cod;
  38747. } else {
  38748. context.currentTile.COD = cod;
  38749. context.currentTile.COC = [];
  38750. }
  38751. break;
  38752. case 0xFF90: // Start of tile-part (SOT)
  38753. length = readUint16(data, position);
  38754. tile = {};
  38755. tile.index = readUint16(data, position + 2);
  38756. tile.length = readUint32(data, position + 4);
  38757. tile.dataEnd = tile.length + position - 2;
  38758. tile.partIndex = data[position + 8];
  38759. tile.partsCount = data[position + 9];
  38760. context.mainHeader = false;
  38761. if (tile.partIndex === 0) {
  38762. // reset component specific settings
  38763. tile.COD = context.COD;
  38764. tile.COC = context.COC.slice(0); // clone of the global COC
  38765. tile.QCD = context.QCD;
  38766. tile.QCC = context.QCC.slice(0); // clone of the global COC
  38767. }
  38768. context.currentTile = tile;
  38769. break;
  38770. case 0xFF93: // Start of data (SOD)
  38771. tile = context.currentTile;
  38772. if (tile.partIndex === 0) {
  38773. initializeTile(context, tile.index);
  38774. buildPackets(context);
  38775. }
  38776. // moving to the end of the data
  38777. length = tile.dataEnd - position;
  38778. parseTilePackets(context, data, position, length);
  38779. break;
  38780. case 0xFF64: // Comment (COM)
  38781. length = readUint16(data, position);
  38782. // skipping content
  38783. break;
  38784. case 0xFF53: // Coding style component (COC)
  38785. throw new Error('JPX Error: Codestream code 0xFF53 (COC) is ' +
  38786. 'not implemented');
  38787. default:
  38788. throw new Error('JPX Error: Unknown codestream code: ' +
  38789. code.toString(16));
  38790. }
  38791. position += length;
  38792. }
  38793. } catch (e) {
  38794. if (doNotRecover || this.failOnCorruptedImage) {
  38795. throw e;
  38796. } else {
  38797. warn('Trying to recover from ' + e.message);
  38798. }
  38799. }
  38800. this.tiles = transformComponents(context);
  38801. this.width = context.SIZ.Xsiz - context.SIZ.XOsiz;
  38802. this.height = context.SIZ.Ysiz - context.SIZ.YOsiz;
  38803. this.componentsCount = context.SIZ.Csiz;
  38804. }
  38805. };
  38806. function calculateComponentDimensions(component, siz) {
  38807. // Section B.2 Component mapping
  38808. component.x0 = Math.ceil(siz.XOsiz / component.XRsiz);
  38809. component.x1 = Math.ceil(siz.Xsiz / component.XRsiz);
  38810. component.y0 = Math.ceil(siz.YOsiz / component.YRsiz);
  38811. component.y1 = Math.ceil(siz.Ysiz / component.YRsiz);
  38812. component.width = component.x1 - component.x0;
  38813. component.height = component.y1 - component.y0;
  38814. }
  38815. function calculateTileGrids(context, components) {
  38816. var siz = context.SIZ;
  38817. // Section B.3 Division into tile and tile-components
  38818. var tile, tiles = [];
  38819. var numXtiles = Math.ceil((siz.Xsiz - siz.XTOsiz) / siz.XTsiz);
  38820. var numYtiles = Math.ceil((siz.Ysiz - siz.YTOsiz) / siz.YTsiz);
  38821. for (var q = 0; q < numYtiles; q++) {
  38822. for (var p = 0; p < numXtiles; p++) {
  38823. tile = {};
  38824. tile.tx0 = Math.max(siz.XTOsiz + p * siz.XTsiz, siz.XOsiz);
  38825. tile.ty0 = Math.max(siz.YTOsiz + q * siz.YTsiz, siz.YOsiz);
  38826. tile.tx1 = Math.min(siz.XTOsiz + (p + 1) * siz.XTsiz, siz.Xsiz);
  38827. tile.ty1 = Math.min(siz.YTOsiz + (q + 1) * siz.YTsiz, siz.Ysiz);
  38828. tile.width = tile.tx1 - tile.tx0;
  38829. tile.height = tile.ty1 - tile.ty0;
  38830. tile.components = [];
  38831. tiles.push(tile);
  38832. }
  38833. }
  38834. context.tiles = tiles;
  38835. var componentsCount = siz.Csiz;
  38836. for (var i = 0, ii = componentsCount; i < ii; i++) {
  38837. var component = components[i];
  38838. for (var j = 0, jj = tiles.length; j < jj; j++) {
  38839. var tileComponent = {};
  38840. tile = tiles[j];
  38841. tileComponent.tcx0 = Math.ceil(tile.tx0 / component.XRsiz);
  38842. tileComponent.tcy0 = Math.ceil(tile.ty0 / component.YRsiz);
  38843. tileComponent.tcx1 = Math.ceil(tile.tx1 / component.XRsiz);
  38844. tileComponent.tcy1 = Math.ceil(tile.ty1 / component.YRsiz);
  38845. tileComponent.width = tileComponent.tcx1 - tileComponent.tcx0;
  38846. tileComponent.height = tileComponent.tcy1 - tileComponent.tcy0;
  38847. tile.components[i] = tileComponent;
  38848. }
  38849. }
  38850. }
  38851. function getBlocksDimensions(context, component, r) {
  38852. var codOrCoc = component.codingStyleParameters;
  38853. var result = {};
  38854. if (!codOrCoc.entropyCoderWithCustomPrecincts) {
  38855. result.PPx = 15;
  38856. result.PPy = 15;
  38857. } else {
  38858. result.PPx = codOrCoc.precinctsSizes[r].PPx;
  38859. result.PPy = codOrCoc.precinctsSizes[r].PPy;
  38860. }
  38861. // calculate codeblock size as described in section B.7
  38862. result.xcb_ = (r > 0 ? Math.min(codOrCoc.xcb, result.PPx - 1) :
  38863. Math.min(codOrCoc.xcb, result.PPx));
  38864. result.ycb_ = (r > 0 ? Math.min(codOrCoc.ycb, result.PPy - 1) :
  38865. Math.min(codOrCoc.ycb, result.PPy));
  38866. return result;
  38867. }
  38868. function buildPrecincts(context, resolution, dimensions) {
  38869. // Section B.6 Division resolution to precincts
  38870. var precinctWidth = 1 << dimensions.PPx;
  38871. var precinctHeight = 1 << dimensions.PPy;
  38872. var numprecinctswide = (resolution.trx1 > resolution.trx0 ?
  38873. Math.ceil(resolution.trx1 / precinctWidth) -
  38874. Math.floor(resolution.trx0 / precinctWidth) : 0);
  38875. var numprecinctshigh = (resolution.try1 > resolution.try0 ?
  38876. Math.ceil(resolution.try1 / precinctHeight) -
  38877. Math.floor(resolution.try0 / precinctHeight) : 0);
  38878. var numprecincts = numprecinctswide * numprecinctshigh;
  38879. var precinctXOffset = Math.floor(resolution.trx0 / precinctWidth) *
  38880. precinctWidth;
  38881. var precinctYOffset = Math.floor(resolution.try0 / precinctHeight) *
  38882. precinctHeight;
  38883. resolution.precinctParameters = {
  38884. precinctXOffset: precinctXOffset,
  38885. precinctYOffset: precinctYOffset,
  38886. precinctWidth: precinctWidth,
  38887. precinctHeight: precinctHeight,
  38888. numprecinctswide: numprecinctswide,
  38889. numprecinctshigh: numprecinctshigh,
  38890. numprecincts: numprecincts
  38891. };
  38892. }
  38893. function buildCodeblocks(context, subband, dimensions) {
  38894. // Section B.7 Division sub-band into code-blocks
  38895. var xcb_ = dimensions.xcb_;
  38896. var ycb_ = dimensions.ycb_;
  38897. var codeblockWidth = 1 << xcb_;
  38898. var codeblockHeight = 1 << ycb_;
  38899. var cbx0 = subband.tbx0 >> xcb_;
  38900. var cby0 = subband.tby0 >> ycb_;
  38901. var cbx1 = (subband.tbx1 + codeblockWidth - 1) >> xcb_;
  38902. var cby1 = (subband.tby1 + codeblockHeight - 1) >> ycb_;
  38903. var precinctParameters = subband.resolution.precinctParameters;
  38904. var codeblocks = [];
  38905. var precincts = [];
  38906. var i, j, codeblock, precinctNumber;
  38907. for (j = cby0; j < cby1; j++) {
  38908. for (i = cbx0; i < cbx1; i++) {
  38909. codeblock = {
  38910. cbx: i,
  38911. cby: j,
  38912. tbx0: codeblockWidth * i,
  38913. tby0: codeblockHeight * j,
  38914. tbx1: codeblockWidth * (i + 1),
  38915. tby1: codeblockHeight * (j + 1)
  38916. };
  38917. // calculate precinct number
  38918. var pi = Math.floor((codeblock.tbx0 -
  38919. precinctParameters.precinctXOffset) /
  38920. precinctParameters.precinctWidth);
  38921. var pj = Math.floor((codeblock.tby0 -
  38922. precinctParameters.precinctYOffset) /
  38923. precinctParameters.precinctHeight);
  38924. precinctNumber = pj + pi * precinctParameters.numprecinctswide;
  38925. codeblock.tbx0_ = Math.max(subband.tbx0, codeblock.tbx0);
  38926. codeblock.tby0_ = Math.max(subband.tby0, codeblock.tby0);
  38927. codeblock.tbx1_ = Math.min(subband.tbx1, codeblock.tbx1);
  38928. codeblock.tby1_ = Math.min(subband.tby1, codeblock.tby1);
  38929. codeblock.precinctNumber = precinctNumber;
  38930. codeblock.subbandType = subband.type;
  38931. codeblock.Lblock = 3;
  38932. codeblocks.push(codeblock);
  38933. // building precinct for the sub-band
  38934. var precinct = precincts[precinctNumber];
  38935. if (precinct !== undefined) {
  38936. if (i < precinct.cbxMin) {
  38937. precinct.cbxMin = i;
  38938. } else if (i > precinct.cbxMax) {
  38939. precinct.cbxMax = i;
  38940. }
  38941. if (j < precinct.cbyMin) {
  38942. precinct.cbxMin = j;
  38943. } else if (j > precinct.cbyMax) {
  38944. precinct.cbyMax = j;
  38945. }
  38946. } else {
  38947. precincts[precinctNumber] = precinct = {
  38948. cbxMin: i,
  38949. cbyMin: j,
  38950. cbxMax: i,
  38951. cbyMax: j
  38952. };
  38953. }
  38954. codeblock.precinct = precinct;
  38955. }
  38956. }
  38957. subband.codeblockParameters = {
  38958. codeblockWidth: xcb_,
  38959. codeblockHeight: ycb_,
  38960. numcodeblockwide: cbx1 - cbx0 + 1,
  38961. numcodeblockhigh: cby1 - cby1 + 1
  38962. };
  38963. subband.codeblocks = codeblocks;
  38964. subband.precincts = precincts;
  38965. }
  38966. function createPacket(resolution, precinctNumber, layerNumber) {
  38967. var precinctCodeblocks = [];
  38968. // Section B.10.8 Order of info in packet
  38969. var subbands = resolution.subbands;
  38970. // sub-bands already ordered in 'LL', 'HL', 'LH', and 'HH' sequence
  38971. for (var i = 0, ii = subbands.length; i < ii; i++) {
  38972. var subband = subbands[i];
  38973. var codeblocks = subband.codeblocks;
  38974. for (var j = 0, jj = codeblocks.length; j < jj; j++) {
  38975. var codeblock = codeblocks[j];
  38976. if (codeblock.precinctNumber != precinctNumber) {
  38977. continue;
  38978. }
  38979. precinctCodeblocks.push(codeblock);
  38980. }
  38981. }
  38982. return {
  38983. layerNumber: layerNumber,
  38984. codeblocks: precinctCodeblocks
  38985. };
  38986. }
  38987. function LayerResolutionComponentPositionIterator(context) {
  38988. var siz = context.SIZ;
  38989. var tileIndex = context.currentTile.index;
  38990. var tile = context.tiles[tileIndex];
  38991. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  38992. var componentsCount = siz.Csiz;
  38993. var maxDecompositionLevelsCount = 0;
  38994. for (var q = 0; q < componentsCount; q++) {
  38995. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  38996. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  38997. }
  38998. var l = 0, r = 0, i = 0, k = 0;
  38999. this.nextPacket = function JpxImage_nextPacket() {
  39000. // Section B.12.1.1 Layer-resolution-component-position
  39001. for (; l < layersCount; l++) {
  39002. for (; r <= maxDecompositionLevelsCount; r++) {
  39003. for (; i < componentsCount; i++) {
  39004. var component = tile.components[i];
  39005. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  39006. continue;
  39007. }
  39008. var resolution = component.resolutions[r];
  39009. var numprecincts = resolution.precinctParameters.numprecincts;
  39010. for (; k < numprecincts;) {
  39011. var packet = createPacket(resolution, k, l);
  39012. k++;
  39013. return packet;
  39014. }
  39015. k = 0;
  39016. }
  39017. i = 0;
  39018. }
  39019. r = 0;
  39020. }
  39021. throw new Error('JPX Error: Out of packets');
  39022. };
  39023. }
  39024. function ResolutionLayerComponentPositionIterator(context) {
  39025. var siz = context.SIZ;
  39026. var tileIndex = context.currentTile.index;
  39027. var tile = context.tiles[tileIndex];
  39028. var layersCount = tile.codingStyleDefaultParameters.layersCount;
  39029. var componentsCount = siz.Csiz;
  39030. var maxDecompositionLevelsCount = 0;
  39031. for (var q = 0; q < componentsCount; q++) {
  39032. maxDecompositionLevelsCount = Math.max(maxDecompositionLevelsCount,
  39033. tile.components[q].codingStyleParameters.decompositionLevelsCount);
  39034. }
  39035. var r = 0, l = 0, i = 0, k = 0;
  39036. this.nextPacket = function JpxImage_nextPacket() {
  39037. // Section B.12.1.2 Resolution-layer-component-position
  39038. for (; r <= maxDecompositionLevelsCount; r++) {
  39039. for (; l < layersCount; l++) {
  39040. for (; i < componentsCount; i++) {
  39041. var component = tile.components[i];
  39042. if (r > component.codingStyleParameters.decompositionLevelsCount) {
  39043. continue;
  39044. }
  39045. var resolution = component.resolutions[r];
  39046. var numprecincts = resolution.precinctParameters.numprecincts;
  39047. for (; k < numprecincts;) {
  39048. var packet = createPacket(resolution, k, l);
  39049. k++;
  39050. return packet;
  39051. }
  39052. k = 0;
  39053. }
  39054. i = 0;
  39055. }
  39056. l = 0;
  39057. }
  39058. throw new Error('JPX Error: Out of packets');
  39059. };
  39060. }
  39061. function buildPackets(context) {
  39062. var siz = context.SIZ;
  39063. var tileIndex = context.currentTile.index;
  39064. var tile = context.tiles[tileIndex];
  39065. var componentsCount = siz.Csiz;
  39066. // Creating resolutions and sub-bands for each component
  39067. for (var c = 0; c < componentsCount; c++) {
  39068. var component = tile.components[c];
  39069. var decompositionLevelsCount =
  39070. component.codingStyleParameters.decompositionLevelsCount;
  39071. // Section B.5 Resolution levels and sub-bands
  39072. var resolutions = [];
  39073. var subbands = [];
  39074. for (var r = 0; r <= decompositionLevelsCount; r++) {
  39075. var blocksDimensions = getBlocksDimensions(context, component, r);
  39076. var resolution = {};
  39077. var scale = 1 << (decompositionLevelsCount - r);
  39078. resolution.trx0 = Math.ceil(component.tcx0 / scale);
  39079. resolution.try0 = Math.ceil(component.tcy0 / scale);
  39080. resolution.trx1 = Math.ceil(component.tcx1 / scale);
  39081. resolution.try1 = Math.ceil(component.tcy1 / scale);
  39082. buildPrecincts(context, resolution, blocksDimensions);
  39083. resolutions.push(resolution);
  39084. var subband;
  39085. if (r === 0) {
  39086. // one sub-band (LL) with last decomposition
  39087. subband = {};
  39088. subband.type = 'LL';
  39089. subband.tbx0 = Math.ceil(component.tcx0 / scale);
  39090. subband.tby0 = Math.ceil(component.tcy0 / scale);
  39091. subband.tbx1 = Math.ceil(component.tcx1 / scale);
  39092. subband.tby1 = Math.ceil(component.tcy1 / scale);
  39093. subband.resolution = resolution;
  39094. buildCodeblocks(context, subband, blocksDimensions);
  39095. subbands.push(subband);
  39096. resolution.subbands = [subband];
  39097. } else {
  39098. var bscale = 1 << (decompositionLevelsCount - r + 1);
  39099. var resolutionSubbands = [];
  39100. // three sub-bands (HL, LH and HH) with rest of decompositions
  39101. subband = {};
  39102. subband.type = 'HL';
  39103. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  39104. subband.tby0 = Math.ceil(component.tcy0 / bscale);
  39105. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  39106. subband.tby1 = Math.ceil(component.tcy1 / bscale);
  39107. subband.resolution = resolution;
  39108. buildCodeblocks(context, subband, blocksDimensions);
  39109. subbands.push(subband);
  39110. resolutionSubbands.push(subband);
  39111. subband = {};
  39112. subband.type = 'LH';
  39113. subband.tbx0 = Math.ceil(component.tcx0 / bscale);
  39114. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  39115. subband.tbx1 = Math.ceil(component.tcx1 / bscale);
  39116. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  39117. subband.resolution = resolution;
  39118. buildCodeblocks(context, subband, blocksDimensions);
  39119. subbands.push(subband);
  39120. resolutionSubbands.push(subband);
  39121. subband = {};
  39122. subband.type = 'HH';
  39123. subband.tbx0 = Math.ceil(component.tcx0 / bscale - 0.5);
  39124. subband.tby0 = Math.ceil(component.tcy0 / bscale - 0.5);
  39125. subband.tbx1 = Math.ceil(component.tcx1 / bscale - 0.5);
  39126. subband.tby1 = Math.ceil(component.tcy1 / bscale - 0.5);
  39127. subband.resolution = resolution;
  39128. buildCodeblocks(context, subband, blocksDimensions);
  39129. subbands.push(subband);
  39130. resolutionSubbands.push(subband);
  39131. resolution.subbands = resolutionSubbands;
  39132. }
  39133. }
  39134. component.resolutions = resolutions;
  39135. component.subbands = subbands;
  39136. }
  39137. // Generate the packets sequence
  39138. var progressionOrder = tile.codingStyleDefaultParameters.progressionOrder;
  39139. switch (progressionOrder) {
  39140. case 0:
  39141. tile.packetsIterator =
  39142. new LayerResolutionComponentPositionIterator(context);
  39143. break;
  39144. case 1:
  39145. tile.packetsIterator =
  39146. new ResolutionLayerComponentPositionIterator(context);
  39147. break;
  39148. default:
  39149. throw new Error('JPX Error: Unsupported progression order ' +
  39150. progressionOrder);
  39151. }
  39152. }
  39153. function parseTilePackets(context, data, offset, dataLength) {
  39154. var position = 0;
  39155. var buffer, bufferSize = 0, skipNextBit = false;
  39156. function readBits(count) {
  39157. while (bufferSize < count) {
  39158. var b = data[offset + position];
  39159. position++;
  39160. if (skipNextBit) {
  39161. buffer = (buffer << 7) | b;
  39162. bufferSize += 7;
  39163. skipNextBit = false;
  39164. } else {
  39165. buffer = (buffer << 8) | b;
  39166. bufferSize += 8;
  39167. }
  39168. if (b == 0xFF) {
  39169. skipNextBit = true;
  39170. }
  39171. }
  39172. bufferSize -= count;
  39173. return (buffer >>> bufferSize) & ((1 << count) - 1);
  39174. }
  39175. function alignToByte() {
  39176. bufferSize = 0;
  39177. if (skipNextBit) {
  39178. position++;
  39179. skipNextBit = false;
  39180. }
  39181. }
  39182. function readCodingpasses() {
  39183. if (readBits(1) === 0) {
  39184. return 1;
  39185. }
  39186. if (readBits(1) === 0) {
  39187. return 2;
  39188. }
  39189. var value = readBits(2);
  39190. if (value < 3) {
  39191. return value + 3;
  39192. }
  39193. value = readBits(5);
  39194. if (value < 31) {
  39195. return value + 6;
  39196. }
  39197. value = readBits(7);
  39198. return value + 37;
  39199. }
  39200. var tileIndex = context.currentTile.index;
  39201. var tile = context.tiles[tileIndex];
  39202. var packetsIterator = tile.packetsIterator;
  39203. while (position < dataLength) {
  39204. var packet = packetsIterator.nextPacket();
  39205. if (!readBits(1)) {
  39206. alignToByte();
  39207. continue;
  39208. }
  39209. var layerNumber = packet.layerNumber;
  39210. var queue = [], codeblock;
  39211. for (var i = 0, ii = packet.codeblocks.length; i < ii; i++) {
  39212. codeblock = packet.codeblocks[i];
  39213. var precinct = codeblock.precinct;
  39214. var codeblockColumn = codeblock.cbx - precinct.cbxMin;
  39215. var codeblockRow = codeblock.cby - precinct.cbyMin;
  39216. var codeblockIncluded = false;
  39217. var firstTimeInclusion = false;
  39218. var valueReady;
  39219. if ('included' in codeblock) {
  39220. codeblockIncluded = !!readBits(1);
  39221. } else {
  39222. // reading inclusion tree
  39223. precinct = codeblock.precinct;
  39224. var inclusionTree, zeroBitPlanesTree;
  39225. if ('inclusionTree' in precinct) {
  39226. inclusionTree = precinct.inclusionTree;
  39227. } else {
  39228. // building inclusion and zero bit-planes trees
  39229. var width = precinct.cbxMax - precinct.cbxMin + 1;
  39230. var height = precinct.cbyMax - precinct.cbyMin + 1;
  39231. inclusionTree = new InclusionTree(width, height, layerNumber);
  39232. zeroBitPlanesTree = new TagTree(width, height);
  39233. precinct.inclusionTree = inclusionTree;
  39234. precinct.zeroBitPlanesTree = zeroBitPlanesTree;
  39235. }
  39236. if (inclusionTree.reset(codeblockColumn, codeblockRow, layerNumber)) {
  39237. while (true) {
  39238. if (readBits(1)) {
  39239. valueReady = !inclusionTree.nextLevel();
  39240. if (valueReady) {
  39241. codeblock.included = true;
  39242. codeblockIncluded = firstTimeInclusion = true;
  39243. break;
  39244. }
  39245. } else {
  39246. inclusionTree.incrementValue(layerNumber);
  39247. break;
  39248. }
  39249. }
  39250. }
  39251. }
  39252. if (!codeblockIncluded) {
  39253. continue;
  39254. }
  39255. if (firstTimeInclusion) {
  39256. zeroBitPlanesTree = precinct.zeroBitPlanesTree;
  39257. zeroBitPlanesTree.reset(codeblockColumn, codeblockRow);
  39258. while (true) {
  39259. if (readBits(1)) {
  39260. valueReady = !zeroBitPlanesTree.nextLevel();
  39261. if (valueReady) {
  39262. break;
  39263. }
  39264. } else {
  39265. zeroBitPlanesTree.incrementValue();
  39266. }
  39267. }
  39268. codeblock.zeroBitPlanes = zeroBitPlanesTree.value;
  39269. }
  39270. var codingpasses = readCodingpasses();
  39271. while (readBits(1)) {
  39272. codeblock.Lblock++;
  39273. }
  39274. var codingpassesLog2 = log2(codingpasses);
  39275. // rounding down log2
  39276. var bits = ((codingpasses < (1 << codingpassesLog2)) ?
  39277. codingpassesLog2 - 1 : codingpassesLog2) + codeblock.Lblock;
  39278. var codedDataLength = readBits(bits);
  39279. queue.push({
  39280. codeblock: codeblock,
  39281. codingpasses: codingpasses,
  39282. dataLength: codedDataLength
  39283. });
  39284. }
  39285. alignToByte();
  39286. while (queue.length > 0) {
  39287. var packetItem = queue.shift();
  39288. codeblock = packetItem.codeblock;
  39289. if (!('data' in codeblock)) {
  39290. codeblock.data = [];
  39291. }
  39292. codeblock.data.push({
  39293. data: data,
  39294. start: offset + position,
  39295. end: offset + position + packetItem.dataLength,
  39296. codingpasses: packetItem.codingpasses
  39297. });
  39298. position += packetItem.dataLength;
  39299. }
  39300. }
  39301. return position;
  39302. }
  39303. function copyCoefficients(coefficients, levelWidth, levelHeight, subband,
  39304. delta, mb, reversible, segmentationSymbolUsed) {
  39305. var x0 = subband.tbx0;
  39306. var y0 = subband.tby0;
  39307. var width = subband.tbx1 - subband.tbx0;
  39308. var codeblocks = subband.codeblocks;
  39309. var right = subband.type.charAt(0) === 'H' ? 1 : 0;
  39310. var bottom = subband.type.charAt(1) === 'H' ? levelWidth : 0;
  39311. for (var i = 0, ii = codeblocks.length; i < ii; ++i) {
  39312. var codeblock = codeblocks[i];
  39313. var blockWidth = codeblock.tbx1_ - codeblock.tbx0_;
  39314. var blockHeight = codeblock.tby1_ - codeblock.tby0_;
  39315. if (blockWidth === 0 || blockHeight === 0) {
  39316. continue;
  39317. }
  39318. if (!('data' in codeblock)) {
  39319. continue;
  39320. }
  39321. var bitModel, currentCodingpassType;
  39322. bitModel = new BitModel(blockWidth, blockHeight, codeblock.subbandType,
  39323. codeblock.zeroBitPlanes, mb);
  39324. currentCodingpassType = 2; // first bit plane starts from cleanup
  39325. // collect data
  39326. var data = codeblock.data, totalLength = 0, codingpasses = 0;
  39327. var j, jj, dataItem;
  39328. for (j = 0, jj = data.length; j < jj; j++) {
  39329. dataItem = data[j];
  39330. totalLength += dataItem.end - dataItem.start;
  39331. codingpasses += dataItem.codingpasses;
  39332. }
  39333. var encodedData = new Uint8Array(totalLength);
  39334. var position = 0;
  39335. for (j = 0, jj = data.length; j < jj; j++) {
  39336. dataItem = data[j];
  39337. var chunk = dataItem.data.subarray(dataItem.start, dataItem.end);
  39338. encodedData.set(chunk, position);
  39339. position += chunk.length;
  39340. }
  39341. // decoding the item
  39342. var decoder = new ArithmeticDecoder(encodedData, 0, totalLength);
  39343. bitModel.setDecoder(decoder);
  39344. for (j = 0; j < codingpasses; j++) {
  39345. switch (currentCodingpassType) {
  39346. case 0:
  39347. bitModel.runSignificancePropogationPass();
  39348. break;
  39349. case 1:
  39350. bitModel.runMagnitudeRefinementPass();
  39351. break;
  39352. case 2:
  39353. bitModel.runCleanupPass();
  39354. if (segmentationSymbolUsed) {
  39355. bitModel.checkSegmentationSymbol();
  39356. }
  39357. break;
  39358. }
  39359. currentCodingpassType = (currentCodingpassType + 1) % 3;
  39360. }
  39361. var offset = (codeblock.tbx0_ - x0) + (codeblock.tby0_ - y0) * width;
  39362. var sign = bitModel.coefficentsSign;
  39363. var magnitude = bitModel.coefficentsMagnitude;
  39364. var bitsDecoded = bitModel.bitsDecoded;
  39365. var magnitudeCorrection = reversible ? 0 : 0.5;
  39366. var k, n, nb;
  39367. position = 0;
  39368. // Do the interleaving of Section F.3.3 here, so we do not need
  39369. // to copy later. LL level is not interleaved, just copied.
  39370. var interleave = (subband.type !== 'LL');
  39371. for (j = 0; j < blockHeight; j++) {
  39372. var row = (offset / width) | 0; // row in the non-interleaved subband
  39373. var levelOffset = 2 * row * (levelWidth - width) + right + bottom;
  39374. for (k = 0; k < blockWidth; k++) {
  39375. n = magnitude[position];
  39376. if (n !== 0) {
  39377. n = (n + magnitudeCorrection) * delta;
  39378. if (sign[position] !== 0) {
  39379. n = -n;
  39380. }
  39381. nb = bitsDecoded[position];
  39382. var pos = interleave ? (levelOffset + (offset << 1)) : offset;
  39383. if (reversible && (nb >= mb)) {
  39384. coefficients[pos] = n;
  39385. } else {
  39386. coefficients[pos] = n * (1 << (mb - nb));
  39387. }
  39388. }
  39389. offset++;
  39390. position++;
  39391. }
  39392. offset += width - blockWidth;
  39393. }
  39394. }
  39395. }
  39396. function transformTile(context, tile, c) {
  39397. var component = tile.components[c];
  39398. var codingStyleParameters = component.codingStyleParameters;
  39399. var quantizationParameters = component.quantizationParameters;
  39400. var decompositionLevelsCount =
  39401. codingStyleParameters.decompositionLevelsCount;
  39402. var spqcds = quantizationParameters.SPqcds;
  39403. var scalarExpounded = quantizationParameters.scalarExpounded;
  39404. var guardBits = quantizationParameters.guardBits;
  39405. var segmentationSymbolUsed = codingStyleParameters.segmentationSymbolUsed;
  39406. var precision = context.components[c].precision;
  39407. var reversible = codingStyleParameters.reversibleTransformation;
  39408. var transform = (reversible ? new ReversibleTransform() :
  39409. new IrreversibleTransform());
  39410. var subbandCoefficients = [];
  39411. var b = 0;
  39412. for (var i = 0; i <= decompositionLevelsCount; i++) {
  39413. var resolution = component.resolutions[i];
  39414. var width = resolution.trx1 - resolution.trx0;
  39415. var height = resolution.try1 - resolution.try0;
  39416. // Allocate space for the whole sublevel.
  39417. var coefficients = new Float32Array(width * height);
  39418. for (var j = 0, jj = resolution.subbands.length; j < jj; j++) {
  39419. var mu, epsilon;
  39420. if (!scalarExpounded) {
  39421. // formula E-5
  39422. mu = spqcds[0].mu;
  39423. epsilon = spqcds[0].epsilon + (i > 0 ? 1 - i : 0);
  39424. } else {
  39425. mu = spqcds[b].mu;
  39426. epsilon = spqcds[b].epsilon;
  39427. b++;
  39428. }
  39429. var subband = resolution.subbands[j];
  39430. var gainLog2 = SubbandsGainLog2[subband.type];
  39431. // calulate quantization coefficient (Section E.1.1.1)
  39432. var delta = (reversible ? 1 :
  39433. Math.pow(2, precision + gainLog2 - epsilon) * (1 + mu / 2048));
  39434. var mb = (guardBits + epsilon - 1);
  39435. // In the first resolution level, copyCoefficients will fill the
  39436. // whole array with coefficients. In the succeding passes,
  39437. // copyCoefficients will consecutively fill in the values that belong
  39438. // to the interleaved positions of the HL, LH, and HH coefficients.
  39439. // The LL coefficients will then be interleaved in Transform.iterate().
  39440. copyCoefficients(coefficients, width, height, subband, delta, mb,
  39441. reversible, segmentationSymbolUsed);
  39442. }
  39443. subbandCoefficients.push({
  39444. width: width,
  39445. height: height,
  39446. items: coefficients
  39447. });
  39448. }
  39449. var result = transform.calculate(subbandCoefficients,
  39450. component.tcx0, component.tcy0);
  39451. return {
  39452. left: component.tcx0,
  39453. top: component.tcy0,
  39454. width: result.width,
  39455. height: result.height,
  39456. items: result.items
  39457. };
  39458. }
  39459. function transformComponents(context) {
  39460. var siz = context.SIZ;
  39461. var components = context.components;
  39462. var componentsCount = siz.Csiz;
  39463. var resultImages = [];
  39464. for (var i = 0, ii = context.tiles.length; i < ii; i++) {
  39465. var tile = context.tiles[i];
  39466. var transformedTiles = [];
  39467. var c;
  39468. for (c = 0; c < componentsCount; c++) {
  39469. transformedTiles[c] = transformTile(context, tile, c);
  39470. }
  39471. var tile0 = transformedTiles[0];
  39472. var out = new Uint8Array(tile0.items.length * componentsCount);
  39473. var result = {
  39474. left: tile0.left,
  39475. top: tile0.top,
  39476. width: tile0.width,
  39477. height: tile0.height,
  39478. items: out
  39479. };
  39480. // Section G.2.2 Inverse multi component transform
  39481. var shift, offset, max, min, maxK;
  39482. var pos = 0, j, jj, y0, y1, y2, r, g, b, k, val;
  39483. if (tile.codingStyleDefaultParameters.multipleComponentTransform) {
  39484. var fourComponents = componentsCount === 4;
  39485. var y0items = transformedTiles[0].items;
  39486. var y1items = transformedTiles[1].items;
  39487. var y2items = transformedTiles[2].items;
  39488. var y3items = fourComponents ? transformedTiles[3].items : null;
  39489. // HACK: The multiple component transform formulas below assume that
  39490. // all components have the same precision. With this in mind, we
  39491. // compute shift and offset only once.
  39492. shift = components[0].precision - 8;
  39493. offset = (128 << shift) + 0.5;
  39494. max = 255 * (1 << shift);
  39495. maxK = max * 0.5;
  39496. min = -maxK;
  39497. var component0 = tile.components[0];
  39498. var alpha01 = componentsCount - 3;
  39499. jj = y0items.length;
  39500. if (!component0.codingStyleParameters.reversibleTransformation) {
  39501. // inverse irreversible multiple component transform
  39502. for (j = 0; j < jj; j++, pos += alpha01) {
  39503. y0 = y0items[j] + offset;
  39504. y1 = y1items[j];
  39505. y2 = y2items[j];
  39506. r = y0 + 1.402 * y2;
  39507. g = y0 - 0.34413 * y1 - 0.71414 * y2;
  39508. b = y0 + 1.772 * y1;
  39509. out[pos++] = r <= 0 ? 0 : r >= max ? 255 : r >> shift;
  39510. out[pos++] = g <= 0 ? 0 : g >= max ? 255 : g >> shift;
  39511. out[pos++] = b <= 0 ? 0 : b >= max ? 255 : b >> shift;
  39512. }
  39513. } else {
  39514. // inverse reversible multiple component transform
  39515. for (j = 0; j < jj; j++, pos += alpha01) {
  39516. y0 = y0items[j] + offset;
  39517. y1 = y1items[j];
  39518. y2 = y2items[j];
  39519. g = y0 - ((y2 + y1) >> 2);
  39520. r = g + y2;
  39521. b = g + y1;
  39522. out[pos++] = r <= 0 ? 0 : r >= max ? 255 : r >> shift;
  39523. out[pos++] = g <= 0 ? 0 : g >= max ? 255 : g >> shift;
  39524. out[pos++] = b <= 0 ? 0 : b >= max ? 255 : b >> shift;
  39525. }
  39526. }
  39527. if (fourComponents) {
  39528. for (j = 0, pos = 3; j < jj; j++, pos += 4) {
  39529. k = y3items[j];
  39530. out[pos] = k <= min ? 0 : k >= maxK ? 255 : (k + offset) >> shift;
  39531. }
  39532. }
  39533. } else { // no multi-component transform
  39534. for (c = 0; c < componentsCount; c++) {
  39535. var items = transformedTiles[c].items;
  39536. shift = components[c].precision - 8;
  39537. offset = (128 << shift) + 0.5;
  39538. max = (127.5 * (1 << shift));
  39539. min = -max;
  39540. for (pos = c, j = 0, jj = items.length; j < jj; j++) {
  39541. val = items[j];
  39542. out[pos] = val <= min ? 0 :
  39543. val >= max ? 255 : (val + offset) >> shift;
  39544. pos += componentsCount;
  39545. }
  39546. }
  39547. }
  39548. resultImages.push(result);
  39549. }
  39550. return resultImages;
  39551. }
  39552. function initializeTile(context, tileIndex) {
  39553. var siz = context.SIZ;
  39554. var componentsCount = siz.Csiz;
  39555. var tile = context.tiles[tileIndex];
  39556. for (var c = 0; c < componentsCount; c++) {
  39557. var component = tile.components[c];
  39558. var qcdOrQcc = (c in context.currentTile.QCC ?
  39559. context.currentTile.QCC[c] : context.currentTile.QCD);
  39560. component.quantizationParameters = qcdOrQcc;
  39561. var codOrCoc = (c in context.currentTile.COC ?
  39562. context.currentTile.COC[c] : context.currentTile.COD);
  39563. component.codingStyleParameters = codOrCoc;
  39564. }
  39565. tile.codingStyleDefaultParameters = context.currentTile.COD;
  39566. }
  39567. // Section B.10.2 Tag trees
  39568. var TagTree = (function TagTreeClosure() {
  39569. function TagTree(width, height) {
  39570. var levelsLength = log2(Math.max(width, height)) + 1;
  39571. this.levels = [];
  39572. for (var i = 0; i < levelsLength; i++) {
  39573. var level = {
  39574. width: width,
  39575. height: height,
  39576. items: []
  39577. };
  39578. this.levels.push(level);
  39579. width = Math.ceil(width / 2);
  39580. height = Math.ceil(height / 2);
  39581. }
  39582. }
  39583. TagTree.prototype = {
  39584. reset: function TagTree_reset(i, j) {
  39585. var currentLevel = 0, value = 0, level;
  39586. while (currentLevel < this.levels.length) {
  39587. level = this.levels[currentLevel];
  39588. var index = i + j * level.width;
  39589. if (index in level.items) {
  39590. value = level.items[index];
  39591. break;
  39592. }
  39593. level.index = index;
  39594. i >>= 1;
  39595. j >>= 1;
  39596. currentLevel++;
  39597. }
  39598. currentLevel--;
  39599. level = this.levels[currentLevel];
  39600. level.items[level.index] = value;
  39601. this.currentLevel = currentLevel;
  39602. delete this.value;
  39603. },
  39604. incrementValue: function TagTree_incrementValue() {
  39605. var level = this.levels[this.currentLevel];
  39606. level.items[level.index]++;
  39607. },
  39608. nextLevel: function TagTree_nextLevel() {
  39609. var currentLevel = this.currentLevel;
  39610. var level = this.levels[currentLevel];
  39611. var value = level.items[level.index];
  39612. currentLevel--;
  39613. if (currentLevel < 0) {
  39614. this.value = value;
  39615. return false;
  39616. }
  39617. this.currentLevel = currentLevel;
  39618. level = this.levels[currentLevel];
  39619. level.items[level.index] = value;
  39620. return true;
  39621. }
  39622. };
  39623. return TagTree;
  39624. })();
  39625. var InclusionTree = (function InclusionTreeClosure() {
  39626. function InclusionTree(width, height, defaultValue) {
  39627. var levelsLength = log2(Math.max(width, height)) + 1;
  39628. this.levels = [];
  39629. for (var i = 0; i < levelsLength; i++) {
  39630. var items = new Uint8Array(width * height);
  39631. for (var j = 0, jj = items.length; j < jj; j++) {
  39632. items[j] = defaultValue;
  39633. }
  39634. var level = {
  39635. width: width,
  39636. height: height,
  39637. items: items
  39638. };
  39639. this.levels.push(level);
  39640. width = Math.ceil(width / 2);
  39641. height = Math.ceil(height / 2);
  39642. }
  39643. }
  39644. InclusionTree.prototype = {
  39645. reset: function InclusionTree_reset(i, j, stopValue) {
  39646. var currentLevel = 0;
  39647. while (currentLevel < this.levels.length) {
  39648. var level = this.levels[currentLevel];
  39649. var index = i + j * level.width;
  39650. level.index = index;
  39651. var value = level.items[index];
  39652. if (value == 0xFF) {
  39653. break;
  39654. }
  39655. if (value > stopValue) {
  39656. this.currentLevel = currentLevel;
  39657. // already know about this one, propagating the value to top levels
  39658. this.propagateValues();
  39659. return false;
  39660. }
  39661. i >>= 1;
  39662. j >>= 1;
  39663. currentLevel++;
  39664. }
  39665. this.currentLevel = currentLevel - 1;
  39666. return true;
  39667. },
  39668. incrementValue: function InclusionTree_incrementValue(stopValue) {
  39669. var level = this.levels[this.currentLevel];
  39670. level.items[level.index] = stopValue + 1;
  39671. this.propagateValues();
  39672. },
  39673. propagateValues: function InclusionTree_propagateValues() {
  39674. var levelIndex = this.currentLevel;
  39675. var level = this.levels[levelIndex];
  39676. var currentValue = level.items[level.index];
  39677. while (--levelIndex >= 0) {
  39678. level = this.levels[levelIndex];
  39679. level.items[level.index] = currentValue;
  39680. }
  39681. },
  39682. nextLevel: function InclusionTree_nextLevel() {
  39683. var currentLevel = this.currentLevel;
  39684. var level = this.levels[currentLevel];
  39685. var value = level.items[level.index];
  39686. level.items[level.index] = 0xFF;
  39687. currentLevel--;
  39688. if (currentLevel < 0) {
  39689. return false;
  39690. }
  39691. this.currentLevel = currentLevel;
  39692. level = this.levels[currentLevel];
  39693. level.items[level.index] = value;
  39694. return true;
  39695. }
  39696. };
  39697. return InclusionTree;
  39698. })();
  39699. // Section D. Coefficient bit modeling
  39700. var BitModel = (function BitModelClosure() {
  39701. var UNIFORM_CONTEXT = 17;
  39702. var RUNLENGTH_CONTEXT = 18;
  39703. // Table D-1
  39704. // The index is binary presentation: 0dddvvhh, ddd - sum of Di (0..4),
  39705. // vv - sum of Vi (0..2), and hh - sum of Hi (0..2)
  39706. var LLAndLHContextsLabel = new Uint8Array([
  39707. 0, 5, 8, 0, 3, 7, 8, 0, 4, 7, 8, 0, 0, 0, 0, 0, 1, 6, 8, 0, 3, 7, 8, 0, 4,
  39708. 7, 8, 0, 0, 0, 0, 0, 2, 6, 8, 0, 3, 7, 8, 0, 4, 7, 8, 0, 0, 0, 0, 0, 2, 6,
  39709. 8, 0, 3, 7, 8, 0, 4, 7, 8, 0, 0, 0, 0, 0, 2, 6, 8, 0, 3, 7, 8, 0, 4, 7, 8
  39710. ]);
  39711. var HLContextLabel = new Uint8Array([
  39712. 0, 3, 4, 0, 5, 7, 7, 0, 8, 8, 8, 0, 0, 0, 0, 0, 1, 3, 4, 0, 6, 7, 7, 0, 8,
  39713. 8, 8, 0, 0, 0, 0, 0, 2, 3, 4, 0, 6, 7, 7, 0, 8, 8, 8, 0, 0, 0, 0, 0, 2, 3,
  39714. 4, 0, 6, 7, 7, 0, 8, 8, 8, 0, 0, 0, 0, 0, 2, 3, 4, 0, 6, 7, 7, 0, 8, 8, 8
  39715. ]);
  39716. var HHContextLabel = new Uint8Array([
  39717. 0, 1, 2, 0, 1, 2, 2, 0, 2, 2, 2, 0, 0, 0, 0, 0, 3, 4, 5, 0, 4, 5, 5, 0, 5,
  39718. 5, 5, 0, 0, 0, 0, 0, 6, 7, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 0, 0, 0, 0, 8, 8,
  39719. 8, 0, 8, 8, 8, 0, 8, 8, 8, 0, 0, 0, 0, 0, 8, 8, 8, 0, 8, 8, 8, 0, 8, 8, 8
  39720. ]);
  39721. function BitModel(width, height, subband, zeroBitPlanes, mb) {
  39722. this.width = width;
  39723. this.height = height;
  39724. this.contextLabelTable = (subband == 'HH' ? HHContextLabel :
  39725. (subband == 'HL' ? HLContextLabel : LLAndLHContextsLabel));
  39726. var coefficientCount = width * height;
  39727. // coefficients outside the encoding region treated as insignificant
  39728. // add border state cells for significanceState
  39729. this.neighborsSignificance = new Uint8Array(coefficientCount);
  39730. this.coefficentsSign = new Uint8Array(coefficientCount);
  39731. this.coefficentsMagnitude = mb > 14 ? new Uint32Array(coefficientCount) :
  39732. mb > 6 ? new Uint16Array(coefficientCount) :
  39733. new Uint8Array(coefficientCount);
  39734. this.processingFlags = new Uint8Array(coefficientCount);
  39735. var bitsDecoded = new Uint8Array(coefficientCount);
  39736. if (zeroBitPlanes !== 0) {
  39737. for (var i = 0; i < coefficientCount; i++) {
  39738. bitsDecoded[i] = zeroBitPlanes;
  39739. }
  39740. }
  39741. this.bitsDecoded = bitsDecoded;
  39742. this.reset();
  39743. }
  39744. BitModel.prototype = {
  39745. setDecoder: function BitModel_setDecoder(decoder) {
  39746. this.decoder = decoder;
  39747. },
  39748. reset: function BitModel_reset() {
  39749. // We have 17 contexts that are accessed via context labels,
  39750. // plus the uniform and runlength context.
  39751. this.contexts = new Int8Array(19);
  39752. // Contexts are packed into 1 byte:
  39753. // highest 7 bits carry the index, lowest bit carries mps
  39754. this.contexts[0] = (4 << 1) | 0;
  39755. this.contexts[UNIFORM_CONTEXT] = (46 << 1) | 0;
  39756. this.contexts[RUNLENGTH_CONTEXT] = (3 << 1) | 0;
  39757. },
  39758. setNeighborsSignificance:
  39759. function BitModel_setNeighborsSignificance(row, column, index) {
  39760. var neighborsSignificance = this.neighborsSignificance;
  39761. var width = this.width, height = this.height;
  39762. var left = (column > 0);
  39763. var right = (column + 1 < width);
  39764. var i;
  39765. if (row > 0) {
  39766. i = index - width;
  39767. if (left) {
  39768. neighborsSignificance[i - 1] += 0x10;
  39769. }
  39770. if (right) {
  39771. neighborsSignificance[i + 1] += 0x10;
  39772. }
  39773. neighborsSignificance[i] += 0x04;
  39774. }
  39775. if (row + 1 < height) {
  39776. i = index + width;
  39777. if (left) {
  39778. neighborsSignificance[i - 1] += 0x10;
  39779. }
  39780. if (right) {
  39781. neighborsSignificance[i + 1] += 0x10;
  39782. }
  39783. neighborsSignificance[i] += 0x04;
  39784. }
  39785. if (left) {
  39786. neighborsSignificance[index - 1] += 0x01;
  39787. }
  39788. if (right) {
  39789. neighborsSignificance[index + 1] += 0x01;
  39790. }
  39791. neighborsSignificance[index] |= 0x80;
  39792. },
  39793. runSignificancePropogationPass:
  39794. function BitModel_runSignificancePropogationPass() {
  39795. var decoder = this.decoder;
  39796. var width = this.width, height = this.height;
  39797. var coefficentsMagnitude = this.coefficentsMagnitude;
  39798. var coefficentsSign = this.coefficentsSign;
  39799. var neighborsSignificance = this.neighborsSignificance;
  39800. var processingFlags = this.processingFlags;
  39801. var contexts = this.contexts;
  39802. var labels = this.contextLabelTable;
  39803. var bitsDecoded = this.bitsDecoded;
  39804. var processedInverseMask = ~1;
  39805. var processedMask = 1;
  39806. var firstMagnitudeBitMask = 2;
  39807. for (var i0 = 0; i0 < height; i0 += 4) {
  39808. for (var j = 0; j < width; j++) {
  39809. var index = i0 * width + j;
  39810. for (var i1 = 0; i1 < 4; i1++, index += width) {
  39811. var i = i0 + i1;
  39812. if (i >= height) {
  39813. break;
  39814. }
  39815. // clear processed flag first
  39816. processingFlags[index] &= processedInverseMask;
  39817. if (coefficentsMagnitude[index] ||
  39818. !neighborsSignificance[index]) {
  39819. continue;
  39820. }
  39821. var contextLabel = labels[neighborsSignificance[index]];
  39822. var decision = decoder.readBit(contexts, contextLabel);
  39823. if (decision) {
  39824. var sign = this.decodeSignBit(i, j, index);
  39825. coefficentsSign[index] = sign;
  39826. coefficentsMagnitude[index] = 1;
  39827. this.setNeighborsSignificance(i, j, index);
  39828. processingFlags[index] |= firstMagnitudeBitMask;
  39829. }
  39830. bitsDecoded[index]++;
  39831. processingFlags[index] |= processedMask;
  39832. }
  39833. }
  39834. }
  39835. },
  39836. decodeSignBit: function BitModel_decodeSignBit(row, column, index) {
  39837. var width = this.width, height = this.height;
  39838. var coefficentsMagnitude = this.coefficentsMagnitude;
  39839. var coefficentsSign = this.coefficentsSign;
  39840. var contribution, sign0, sign1, significance1;
  39841. var contextLabel, decoded;
  39842. // calculate horizontal contribution
  39843. significance1 = (column > 0 && coefficentsMagnitude[index - 1] !== 0);
  39844. if (column + 1 < width && coefficentsMagnitude[index + 1] !== 0) {
  39845. sign1 = coefficentsSign[index + 1];
  39846. if (significance1) {
  39847. sign0 = coefficentsSign[index - 1];
  39848. contribution = 1 - sign1 - sign0;
  39849. } else {
  39850. contribution = 1 - sign1 - sign1;
  39851. }
  39852. } else if (significance1) {
  39853. sign0 = coefficentsSign[index - 1];
  39854. contribution = 1 - sign0 - sign0;
  39855. } else {
  39856. contribution = 0;
  39857. }
  39858. var horizontalContribution = 3 * contribution;
  39859. // calculate vertical contribution and combine with the horizontal
  39860. significance1 = (row > 0 && coefficentsMagnitude[index - width] !== 0);
  39861. if (row + 1 < height && coefficentsMagnitude[index + width] !== 0) {
  39862. sign1 = coefficentsSign[index + width];
  39863. if (significance1) {
  39864. sign0 = coefficentsSign[index - width];
  39865. contribution = 1 - sign1 - sign0 + horizontalContribution;
  39866. } else {
  39867. contribution = 1 - sign1 - sign1 + horizontalContribution;
  39868. }
  39869. } else if (significance1) {
  39870. sign0 = coefficentsSign[index - width];
  39871. contribution = 1 - sign0 - sign0 + horizontalContribution;
  39872. } else {
  39873. contribution = horizontalContribution;
  39874. }
  39875. if (contribution >= 0) {
  39876. contextLabel = 9 + contribution;
  39877. decoded = this.decoder.readBit(this.contexts, contextLabel);
  39878. } else {
  39879. contextLabel = 9 - contribution;
  39880. decoded = this.decoder.readBit(this.contexts, contextLabel) ^ 1;
  39881. }
  39882. return decoded;
  39883. },
  39884. runMagnitudeRefinementPass:
  39885. function BitModel_runMagnitudeRefinementPass() {
  39886. var decoder = this.decoder;
  39887. var width = this.width, height = this.height;
  39888. var coefficentsMagnitude = this.coefficentsMagnitude;
  39889. var neighborsSignificance = this.neighborsSignificance;
  39890. var contexts = this.contexts;
  39891. var bitsDecoded = this.bitsDecoded;
  39892. var processingFlags = this.processingFlags;
  39893. var processedMask = 1;
  39894. var firstMagnitudeBitMask = 2;
  39895. var length = width * height;
  39896. var width4 = width * 4;
  39897. for (var index0 = 0, indexNext; index0 < length; index0 = indexNext) {
  39898. indexNext = Math.min(length, index0 + width4);
  39899. for (var j = 0; j < width; j++) {
  39900. for (var index = index0 + j; index < indexNext; index += width) {
  39901. // significant but not those that have just become
  39902. if (!coefficentsMagnitude[index] ||
  39903. (processingFlags[index] & processedMask) !== 0) {
  39904. continue;
  39905. }
  39906. var contextLabel = 16;
  39907. if ((processingFlags[index] & firstMagnitudeBitMask) !== 0) {
  39908. processingFlags[index] ^= firstMagnitudeBitMask;
  39909. // first refinement
  39910. var significance = neighborsSignificance[index] & 127;
  39911. contextLabel = significance === 0 ? 15 : 14;
  39912. }
  39913. var bit = decoder.readBit(contexts, contextLabel);
  39914. coefficentsMagnitude[index] =
  39915. (coefficentsMagnitude[index] << 1) | bit;
  39916. bitsDecoded[index]++;
  39917. processingFlags[index] |= processedMask;
  39918. }
  39919. }
  39920. }
  39921. },
  39922. runCleanupPass: function BitModel_runCleanupPass() {
  39923. var decoder = this.decoder;
  39924. var width = this.width, height = this.height;
  39925. var neighborsSignificance = this.neighborsSignificance;
  39926. var coefficentsMagnitude = this.coefficentsMagnitude;
  39927. var coefficentsSign = this.coefficentsSign;
  39928. var contexts = this.contexts;
  39929. var labels = this.contextLabelTable;
  39930. var bitsDecoded = this.bitsDecoded;
  39931. var processingFlags = this.processingFlags;
  39932. var processedMask = 1;
  39933. var firstMagnitudeBitMask = 2;
  39934. var oneRowDown = width;
  39935. var twoRowsDown = width * 2;
  39936. var threeRowsDown = width * 3;
  39937. var iNext;
  39938. for (var i0 = 0; i0 < height; i0 = iNext) {
  39939. iNext = Math.min(i0 + 4, height);
  39940. var indexBase = i0 * width;
  39941. var checkAllEmpty = i0 + 3 < height;
  39942. for (var j = 0; j < width; j++) {
  39943. var index0 = indexBase + j;
  39944. // using the property: labels[neighborsSignificance[index]] == 0
  39945. // when neighborsSignificance[index] == 0
  39946. var allEmpty = (checkAllEmpty &&
  39947. processingFlags[index0] === 0 &&
  39948. processingFlags[index0 + oneRowDown] === 0 &&
  39949. processingFlags[index0 + twoRowsDown] === 0 &&
  39950. processingFlags[index0 + threeRowsDown] === 0 &&
  39951. neighborsSignificance[index0] === 0 &&
  39952. neighborsSignificance[index0 + oneRowDown] === 0 &&
  39953. neighborsSignificance[index0 + twoRowsDown] === 0 &&
  39954. neighborsSignificance[index0 + threeRowsDown] === 0);
  39955. var i1 = 0, index = index0;
  39956. var i = i0, sign;
  39957. if (allEmpty) {
  39958. var hasSignificantCoefficent =
  39959. decoder.readBit(contexts, RUNLENGTH_CONTEXT);
  39960. if (!hasSignificantCoefficent) {
  39961. bitsDecoded[index0]++;
  39962. bitsDecoded[index0 + oneRowDown]++;
  39963. bitsDecoded[index0 + twoRowsDown]++;
  39964. bitsDecoded[index0 + threeRowsDown]++;
  39965. continue; // next column
  39966. }
  39967. i1 = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  39968. decoder.readBit(contexts, UNIFORM_CONTEXT);
  39969. if (i1 !== 0) {
  39970. i = i0 + i1;
  39971. index += i1 * width;
  39972. }
  39973. sign = this.decodeSignBit(i, j, index);
  39974. coefficentsSign[index] = sign;
  39975. coefficentsMagnitude[index] = 1;
  39976. this.setNeighborsSignificance(i, j, index);
  39977. processingFlags[index] |= firstMagnitudeBitMask;
  39978. index = index0;
  39979. for (var i2 = i0; i2 <= i; i2++, index += width) {
  39980. bitsDecoded[index]++;
  39981. }
  39982. i1++;
  39983. }
  39984. for (i = i0 + i1; i < iNext; i++, index += width) {
  39985. if (coefficentsMagnitude[index] ||
  39986. (processingFlags[index] & processedMask) !== 0) {
  39987. continue;
  39988. }
  39989. var contextLabel = labels[neighborsSignificance[index]];
  39990. var decision = decoder.readBit(contexts, contextLabel);
  39991. if (decision === 1) {
  39992. sign = this.decodeSignBit(i, j, index);
  39993. coefficentsSign[index] = sign;
  39994. coefficentsMagnitude[index] = 1;
  39995. this.setNeighborsSignificance(i, j, index);
  39996. processingFlags[index] |= firstMagnitudeBitMask;
  39997. }
  39998. bitsDecoded[index]++;
  39999. }
  40000. }
  40001. }
  40002. },
  40003. checkSegmentationSymbol: function BitModel_checkSegmentationSymbol() {
  40004. var decoder = this.decoder;
  40005. var contexts = this.contexts;
  40006. var symbol = (decoder.readBit(contexts, UNIFORM_CONTEXT) << 3) |
  40007. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 2) |
  40008. (decoder.readBit(contexts, UNIFORM_CONTEXT) << 1) |
  40009. decoder.readBit(contexts, UNIFORM_CONTEXT);
  40010. if (symbol != 0xA) {
  40011. throw new Error('JPX Error: Invalid segmentation symbol');
  40012. }
  40013. }
  40014. };
  40015. return BitModel;
  40016. })();
  40017. // Section F, Discrete wavelet transformation
  40018. var Transform = (function TransformClosure() {
  40019. function Transform() {}
  40020. Transform.prototype.calculate =
  40021. function transformCalculate(subbands, u0, v0) {
  40022. var ll = subbands[0];
  40023. for (var i = 1, ii = subbands.length; i < ii; i++) {
  40024. ll = this.iterate(ll, subbands[i], u0, v0);
  40025. }
  40026. return ll;
  40027. };
  40028. Transform.prototype.extend = function extend(buffer, offset, size) {
  40029. // Section F.3.7 extending... using max extension of 4
  40030. var i1 = offset - 1, j1 = offset + 1;
  40031. var i2 = offset + size - 2, j2 = offset + size;
  40032. buffer[i1--] = buffer[j1++];
  40033. buffer[j2++] = buffer[i2--];
  40034. buffer[i1--] = buffer[j1++];
  40035. buffer[j2++] = buffer[i2--];
  40036. buffer[i1--] = buffer[j1++];
  40037. buffer[j2++] = buffer[i2--];
  40038. buffer[i1] = buffer[j1];
  40039. buffer[j2] = buffer[i2];
  40040. };
  40041. Transform.prototype.iterate = function Transform_iterate(ll, hl_lh_hh,
  40042. u0, v0) {
  40043. var llWidth = ll.width, llHeight = ll.height, llItems = ll.items;
  40044. var width = hl_lh_hh.width;
  40045. var height = hl_lh_hh.height;
  40046. var items = hl_lh_hh.items;
  40047. var i, j, k, l, u, v;
  40048. // Interleave LL according to Section F.3.3
  40049. for (k = 0, i = 0; i < llHeight; i++) {
  40050. l = i * 2 * width;
  40051. for (j = 0; j < llWidth; j++, k++, l += 2) {
  40052. items[l] = llItems[k];
  40053. }
  40054. }
  40055. // The LL band is not needed anymore.
  40056. llItems = ll.items = null;
  40057. var bufferPadding = 4;
  40058. var rowBuffer = new Float32Array(width + 2 * bufferPadding);
  40059. // Section F.3.4 HOR_SR
  40060. if (width === 1) {
  40061. // if width = 1, when u0 even keep items as is, when odd divide by 2
  40062. if ((u0 & 1) !== 0) {
  40063. for (v = 0, k = 0; v < height; v++, k += width) {
  40064. items[k] *= 0.5;
  40065. }
  40066. }
  40067. } else {
  40068. for (v = 0, k = 0; v < height; v++, k += width) {
  40069. rowBuffer.set(items.subarray(k, k + width), bufferPadding);
  40070. this.extend(rowBuffer, bufferPadding, width);
  40071. this.filter(rowBuffer, bufferPadding, width);
  40072. items.set(
  40073. rowBuffer.subarray(bufferPadding, bufferPadding + width),
  40074. k);
  40075. }
  40076. }
  40077. // Accesses to the items array can take long, because it may not fit into
  40078. // CPU cache and has to be fetched from main memory. Since subsequent
  40079. // accesses to the items array are not local when reading columns, we
  40080. // have a cache miss every time. To reduce cache misses, get up to
  40081. // 'numBuffers' items at a time and store them into the individual
  40082. // buffers. The colBuffers should be small enough to fit into CPU cache.
  40083. var numBuffers = 16;
  40084. var colBuffers = [];
  40085. for (i = 0; i < numBuffers; i++) {
  40086. colBuffers.push(new Float32Array(height + 2 * bufferPadding));
  40087. }
  40088. var b, currentBuffer = 0;
  40089. ll = bufferPadding + height;
  40090. // Section F.3.5 VER_SR
  40091. if (height === 1) {
  40092. // if height = 1, when v0 even keep items as is, when odd divide by 2
  40093. if ((v0 & 1) !== 0) {
  40094. for (u = 0; u < width; u++) {
  40095. items[u] *= 0.5;
  40096. }
  40097. }
  40098. } else {
  40099. for (u = 0; u < width; u++) {
  40100. // if we ran out of buffers, copy several image columns at once
  40101. if (currentBuffer === 0) {
  40102. numBuffers = Math.min(width - u, numBuffers);
  40103. for (k = u, l = bufferPadding; l < ll; k += width, l++) {
  40104. for (b = 0; b < numBuffers; b++) {
  40105. colBuffers[b][l] = items[k + b];
  40106. }
  40107. }
  40108. currentBuffer = numBuffers;
  40109. }
  40110. currentBuffer--;
  40111. var buffer = colBuffers[currentBuffer];
  40112. this.extend(buffer, bufferPadding, height);
  40113. this.filter(buffer, bufferPadding, height);
  40114. // If this is last buffer in this group of buffers, flush all buffers.
  40115. if (currentBuffer === 0) {
  40116. k = u - numBuffers + 1;
  40117. for (l = bufferPadding; l < ll; k += width, l++) {
  40118. for (b = 0; b < numBuffers; b++) {
  40119. items[k + b] = colBuffers[b][l];
  40120. }
  40121. }
  40122. }
  40123. }
  40124. }
  40125. return {
  40126. width: width,
  40127. height: height,
  40128. items: items
  40129. };
  40130. };
  40131. return Transform;
  40132. })();
  40133. // Section 3.8.2 Irreversible 9-7 filter
  40134. var IrreversibleTransform = (function IrreversibleTransformClosure() {
  40135. function IrreversibleTransform() {
  40136. Transform.call(this);
  40137. }
  40138. IrreversibleTransform.prototype = Object.create(Transform.prototype);
  40139. IrreversibleTransform.prototype.filter =
  40140. function irreversibleTransformFilter(x, offset, length) {
  40141. var len = length >> 1;
  40142. offset = offset | 0;
  40143. var j, n, current, next;
  40144. var alpha = -1.586134342059924;
  40145. var beta = -0.052980118572961;
  40146. var gamma = 0.882911075530934;
  40147. var delta = 0.443506852043971;
  40148. var K = 1.230174104914001;
  40149. var K_ = 1 / K;
  40150. // step 1 is combined with step 3
  40151. // step 2
  40152. j = offset - 3;
  40153. for (n = len + 4; n--; j += 2) {
  40154. x[j] *= K_;
  40155. }
  40156. // step 1 & 3
  40157. j = offset - 2;
  40158. current = delta * x[j -1];
  40159. for (n = len + 3; n--; j += 2) {
  40160. next = delta * x[j + 1];
  40161. x[j] = K * x[j] - current - next;
  40162. if (n--) {
  40163. j += 2;
  40164. current = delta * x[j + 1];
  40165. x[j] = K * x[j] - current - next;
  40166. } else {
  40167. break;
  40168. }
  40169. }
  40170. // step 4
  40171. j = offset - 1;
  40172. current = gamma * x[j - 1];
  40173. for (n = len + 2; n--; j += 2) {
  40174. next = gamma * x[j + 1];
  40175. x[j] -= current + next;
  40176. if (n--) {
  40177. j += 2;
  40178. current = gamma * x[j + 1];
  40179. x[j] -= current + next;
  40180. } else {
  40181. break;
  40182. }
  40183. }
  40184. // step 5
  40185. j = offset;
  40186. current = beta * x[j - 1];
  40187. for (n = len + 1; n--; j += 2) {
  40188. next = beta * x[j + 1];
  40189. x[j] -= current + next;
  40190. if (n--) {
  40191. j += 2;
  40192. current = beta * x[j + 1];
  40193. x[j] -= current + next;
  40194. } else {
  40195. break;
  40196. }
  40197. }
  40198. // step 6
  40199. if (len !== 0) {
  40200. j = offset + 1;
  40201. current = alpha * x[j - 1];
  40202. for (n = len; n--; j += 2) {
  40203. next = alpha * x[j + 1];
  40204. x[j] -= current + next;
  40205. if (n--) {
  40206. j += 2;
  40207. current = alpha * x[j + 1];
  40208. x[j] -= current + next;
  40209. } else {
  40210. break;
  40211. }
  40212. }
  40213. }
  40214. };
  40215. return IrreversibleTransform;
  40216. })();
  40217. // Section 3.8.1 Reversible 5-3 filter
  40218. var ReversibleTransform = (function ReversibleTransformClosure() {
  40219. function ReversibleTransform() {
  40220. Transform.call(this);
  40221. }
  40222. ReversibleTransform.prototype = Object.create(Transform.prototype);
  40223. ReversibleTransform.prototype.filter =
  40224. function reversibleTransformFilter(x, offset, length) {
  40225. var len = length >> 1;
  40226. offset = offset | 0;
  40227. var j, n;
  40228. for (j = offset, n = len + 1; n--; j += 2) {
  40229. x[j] -= (x[j - 1] + x[j + 1] + 2) >> 2;
  40230. }
  40231. for (j = offset + 1, n = len; n--; j += 2) {
  40232. x[j] += (x[j - 1] + x[j + 1]) >> 1;
  40233. }
  40234. };
  40235. return ReversibleTransform;
  40236. })();
  40237. return JpxImage;
  40238. })();
  40239. var Jbig2Image = (function Jbig2ImageClosure() {
  40240. // Utility data structures
  40241. function ContextCache() {}
  40242. ContextCache.prototype = {
  40243. getContexts: function(id) {
  40244. if (id in this) {
  40245. return this[id];
  40246. }
  40247. return (this[id] = new Int8Array(1 << 16));
  40248. }
  40249. };
  40250. function DecodingContext(data, start, end) {
  40251. this.data = data;
  40252. this.start = start;
  40253. this.end = end;
  40254. }
  40255. DecodingContext.prototype = {
  40256. get decoder() {
  40257. var decoder = new ArithmeticDecoder(this.data, this.start, this.end);
  40258. return shadow(this, 'decoder', decoder);
  40259. },
  40260. get contextCache() {
  40261. var cache = new ContextCache();
  40262. return shadow(this, 'contextCache', cache);
  40263. }
  40264. };
  40265. // Annex A. Arithmetic Integer Decoding Procedure
  40266. // A.2 Procedure for decoding values
  40267. function decodeInteger(contextCache, procedure, decoder) {
  40268. var contexts = contextCache.getContexts(procedure);
  40269. var prev = 1;
  40270. function readBits(length) {
  40271. var v = 0;
  40272. for (var i = 0; i < length; i++) {
  40273. var bit = decoder.readBit(contexts, prev);
  40274. prev = (prev < 256 ? (prev << 1) | bit :
  40275. (((prev << 1) | bit) & 511) | 256);
  40276. v = (v << 1) | bit;
  40277. }
  40278. return v >>> 0;
  40279. }
  40280. var sign = readBits(1);
  40281. var value = readBits(1) ?
  40282. (readBits(1) ?
  40283. (readBits(1) ?
  40284. (readBits(1) ?
  40285. (readBits(1) ?
  40286. (readBits(32) + 4436) :
  40287. readBits(12) + 340) :
  40288. readBits(8) + 84) :
  40289. readBits(6) + 20) :
  40290. readBits(4) + 4) :
  40291. readBits(2);
  40292. return (sign === 0 ? value : (value > 0 ? -value : null));
  40293. }
  40294. // A.3 The IAID decoding procedure
  40295. function decodeIAID(contextCache, decoder, codeLength) {
  40296. var contexts = contextCache.getContexts('IAID');
  40297. var prev = 1;
  40298. for (var i = 0; i < codeLength; i++) {
  40299. var bit = decoder.readBit(contexts, prev);
  40300. prev = (prev << 1) | bit;
  40301. }
  40302. if (codeLength < 31) {
  40303. return prev & ((1 << codeLength) - 1);
  40304. }
  40305. return prev & 0x7FFFFFFF;
  40306. }
  40307. // 7.3 Segment types
  40308. var SegmentTypes = [
  40309. 'SymbolDictionary', null, null, null, 'IntermediateTextRegion', null,
  40310. 'ImmediateTextRegion', 'ImmediateLosslessTextRegion', null, null, null,
  40311. null, null, null, null, null, 'patternDictionary', null, null, null,
  40312. 'IntermediateHalftoneRegion', null, 'ImmediateHalftoneRegion',
  40313. 'ImmediateLosslessHalftoneRegion', null, null, null, null, null, null, null,
  40314. null, null, null, null, null, 'IntermediateGenericRegion', null,
  40315. 'ImmediateGenericRegion', 'ImmediateLosslessGenericRegion',
  40316. 'IntermediateGenericRefinementRegion', null,
  40317. 'ImmediateGenericRefinementRegion',
  40318. 'ImmediateLosslessGenericRefinementRegion', null, null, null, null,
  40319. 'PageInformation', 'EndOfPage', 'EndOfStripe', 'EndOfFile', 'Profiles',
  40320. 'Tables', null, null, null, null, null, null, null, null,
  40321. 'Extension'
  40322. ];
  40323. var CodingTemplates = [
  40324. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  40325. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: 2, y: -1},
  40326. {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  40327. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: 2, y: -2},
  40328. {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1},
  40329. {x: 2, y: -1}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}],
  40330. [{x: -1, y: -2}, {x: 0, y: -2}, {x: 1, y: -2}, {x: -2, y: -1},
  40331. {x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -2, y: 0},
  40332. {x: -1, y: 0}],
  40333. [{x: -3, y: -1}, {x: -2, y: -1}, {x: -1, y: -1}, {x: 0, y: -1},
  40334. {x: 1, y: -1}, {x: -4, y: 0}, {x: -3, y: 0}, {x: -2, y: 0}, {x: -1, y: 0}]
  40335. ];
  40336. var RefinementTemplates = [
  40337. {
  40338. coding: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  40339. reference: [{x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}, {x: 0, y: 0},
  40340. {x: 1, y: 0}, {x: -1, y: 1}, {x: 0, y: 1}, {x: 1, y: 1}]
  40341. },
  40342. {
  40343. coding: [{x: -1, y: -1}, {x: 0, y: -1}, {x: 1, y: -1}, {x: -1, y: 0}],
  40344. reference: [{x: 0, y: -1}, {x: -1, y: 0}, {x: 0, y: 0}, {x: 1, y: 0},
  40345. {x: 0, y: 1}, {x: 1, y: 1}]
  40346. }
  40347. ];
  40348. var ReusedContexts = [
  40349. 0x1CD3, // '00111001101' (template) + '0011' (at),
  40350. 0x079A, // '001111001101' + '0',
  40351. 0x00E3, // '001110001' + '1',
  40352. 0x018B // '011000101' + '1'
  40353. ];
  40354. var RefinementReusedContexts = [
  40355. 0x0020, // '000' + '0' (coding) + '00010000' + '0' (reference)
  40356. 0x0008 // '0000' + '001000'
  40357. ];
  40358. // 6.2 Generic Region Decoding Procedure
  40359. function decodeBitmap(mmr, width, height, templateIndex, prediction, skip, at,
  40360. decodingContext) {
  40361. if (mmr) {
  40362. error('JBIG2 error: MMR encoding is not supported');
  40363. }
  40364. var useskip = !!skip;
  40365. var template = CodingTemplates[templateIndex].concat(at);
  40366. // Sorting is non-standard, and it is not required. But sorting increases
  40367. // the number of template bits that can be reused from the previous
  40368. // contextLabel in the main loop.
  40369. template.sort(function (a, b) {
  40370. return (a.y - b.y) || (a.x - b.x);
  40371. });
  40372. var templateLength = template.length;
  40373. var templateX = new Int8Array(templateLength);
  40374. var templateY = new Int8Array(templateLength);
  40375. var changingTemplateEntries = [];
  40376. var reuseMask = 0, minX = 0, maxX = 0, minY = 0;
  40377. var c, k;
  40378. for (k = 0; k < templateLength; k++) {
  40379. templateX[k] = template[k].x;
  40380. templateY[k] = template[k].y;
  40381. minX = Math.min(minX, template[k].x);
  40382. maxX = Math.max(maxX, template[k].x);
  40383. minY = Math.min(minY, template[k].y);
  40384. // Check if the template pixel appears in two consecutive context labels,
  40385. // so it can be reused. Otherwise, we add it to the list of changing
  40386. // template entries.
  40387. if (k < templateLength - 1 &&
  40388. template[k].y === template[k + 1].y &&
  40389. template[k].x === template[k + 1].x - 1) {
  40390. reuseMask |= 1 << (templateLength - 1 - k);
  40391. } else {
  40392. changingTemplateEntries.push(k);
  40393. }
  40394. }
  40395. var changingEntriesLength = changingTemplateEntries.length;
  40396. var changingTemplateX = new Int8Array(changingEntriesLength);
  40397. var changingTemplateY = new Int8Array(changingEntriesLength);
  40398. var changingTemplateBit = new Uint16Array(changingEntriesLength);
  40399. for (c = 0; c < changingEntriesLength; c++) {
  40400. k = changingTemplateEntries[c];
  40401. changingTemplateX[c] = template[k].x;
  40402. changingTemplateY[c] = template[k].y;
  40403. changingTemplateBit[c] = 1 << (templateLength - 1 - k);
  40404. }
  40405. // Get the safe bounding box edges from the width, height, minX, maxX, minY
  40406. var sbb_left = -minX;
  40407. var sbb_top = -minY;
  40408. var sbb_right = width - maxX;
  40409. var pseudoPixelContext = ReusedContexts[templateIndex];
  40410. var row = new Uint8Array(width);
  40411. var bitmap = [];
  40412. var decoder = decodingContext.decoder;
  40413. var contexts = decodingContext.contextCache.getContexts('GB');
  40414. var ltp = 0, j, i0, j0, contextLabel = 0, bit, shift;
  40415. for (var i = 0; i < height; i++) {
  40416. if (prediction) {
  40417. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  40418. ltp ^= sltp;
  40419. if (ltp) {
  40420. bitmap.push(row); // duplicate previous row
  40421. continue;
  40422. }
  40423. }
  40424. row = new Uint8Array(row);
  40425. bitmap.push(row);
  40426. for (j = 0; j < width; j++) {
  40427. if (useskip && skip[i][j]) {
  40428. row[j] = 0;
  40429. continue;
  40430. }
  40431. // Are we in the middle of a scanline, so we can reuse contextLabel
  40432. // bits?
  40433. if (j >= sbb_left && j < sbb_right && i >= sbb_top) {
  40434. // If yes, we can just shift the bits that are reusable and only
  40435. // fetch the remaining ones.
  40436. contextLabel = (contextLabel << 1) & reuseMask;
  40437. for (k = 0; k < changingEntriesLength; k++) {
  40438. i0 = i + changingTemplateY[k];
  40439. j0 = j + changingTemplateX[k];
  40440. bit = bitmap[i0][j0];
  40441. if (bit) {
  40442. bit = changingTemplateBit[k];
  40443. contextLabel |= bit;
  40444. }
  40445. }
  40446. } else {
  40447. // compute the contextLabel from scratch
  40448. contextLabel = 0;
  40449. shift = templateLength - 1;
  40450. for (k = 0; k < templateLength; k++, shift--) {
  40451. j0 = j + templateX[k];
  40452. if (j0 >= 0 && j0 < width) {
  40453. i0 = i + templateY[k];
  40454. if (i0 >= 0) {
  40455. bit = bitmap[i0][j0];
  40456. if (bit) {
  40457. contextLabel |= bit << shift;
  40458. }
  40459. }
  40460. }
  40461. }
  40462. }
  40463. var pixel = decoder.readBit(contexts, contextLabel);
  40464. row[j] = pixel;
  40465. }
  40466. }
  40467. return bitmap;
  40468. }
  40469. // 6.3.2 Generic Refinement Region Decoding Procedure
  40470. function decodeRefinement(width, height, templateIndex, referenceBitmap,
  40471. offsetX, offsetY, prediction, at,
  40472. decodingContext) {
  40473. var codingTemplate = RefinementTemplates[templateIndex].coding;
  40474. if (templateIndex === 0) {
  40475. codingTemplate = codingTemplate.concat([at[0]]);
  40476. }
  40477. var codingTemplateLength = codingTemplate.length;
  40478. var codingTemplateX = new Int32Array(codingTemplateLength);
  40479. var codingTemplateY = new Int32Array(codingTemplateLength);
  40480. var k;
  40481. for (k = 0; k < codingTemplateLength; k++) {
  40482. codingTemplateX[k] = codingTemplate[k].x;
  40483. codingTemplateY[k] = codingTemplate[k].y;
  40484. }
  40485. var referenceTemplate = RefinementTemplates[templateIndex].reference;
  40486. if (templateIndex === 0) {
  40487. referenceTemplate = referenceTemplate.concat([at[1]]);
  40488. }
  40489. var referenceTemplateLength = referenceTemplate.length;
  40490. var referenceTemplateX = new Int32Array(referenceTemplateLength);
  40491. var referenceTemplateY = new Int32Array(referenceTemplateLength);
  40492. for (k = 0; k < referenceTemplateLength; k++) {
  40493. referenceTemplateX[k] = referenceTemplate[k].x;
  40494. referenceTemplateY[k] = referenceTemplate[k].y;
  40495. }
  40496. var referenceWidth = referenceBitmap[0].length;
  40497. var referenceHeight = referenceBitmap.length;
  40498. var pseudoPixelContext = RefinementReusedContexts[templateIndex];
  40499. var bitmap = [];
  40500. var decoder = decodingContext.decoder;
  40501. var contexts = decodingContext.contextCache.getContexts('GR');
  40502. var ltp = 0;
  40503. for (var i = 0; i < height; i++) {
  40504. if (prediction) {
  40505. var sltp = decoder.readBit(contexts, pseudoPixelContext);
  40506. ltp ^= sltp;
  40507. if (ltp) {
  40508. error('JBIG2 error: prediction is not supported');
  40509. }
  40510. }
  40511. var row = new Uint8Array(width);
  40512. bitmap.push(row);
  40513. for (var j = 0; j < width; j++) {
  40514. var i0, j0;
  40515. var contextLabel = 0;
  40516. for (k = 0; k < codingTemplateLength; k++) {
  40517. i0 = i + codingTemplateY[k];
  40518. j0 = j + codingTemplateX[k];
  40519. if (i0 < 0 || j0 < 0 || j0 >= width) {
  40520. contextLabel <<= 1; // out of bound pixel
  40521. } else {
  40522. contextLabel = (contextLabel << 1) | bitmap[i0][j0];
  40523. }
  40524. }
  40525. for (k = 0; k < referenceTemplateLength; k++) {
  40526. i0 = i + referenceTemplateY[k] + offsetY;
  40527. j0 = j + referenceTemplateX[k] + offsetX;
  40528. if (i0 < 0 || i0 >= referenceHeight || j0 < 0 ||
  40529. j0 >= referenceWidth) {
  40530. contextLabel <<= 1; // out of bound pixel
  40531. } else {
  40532. contextLabel = (contextLabel << 1) | referenceBitmap[i0][j0];
  40533. }
  40534. }
  40535. var pixel = decoder.readBit(contexts, contextLabel);
  40536. row[j] = pixel;
  40537. }
  40538. }
  40539. return bitmap;
  40540. }
  40541. // 6.5.5 Decoding the symbol dictionary
  40542. function decodeSymbolDictionary(huffman, refinement, symbols,
  40543. numberOfNewSymbols, numberOfExportedSymbols,
  40544. huffmanTables, templateIndex, at,
  40545. refinementTemplateIndex, refinementAt,
  40546. decodingContext) {
  40547. if (huffman) {
  40548. error('JBIG2 error: huffman is not supported');
  40549. }
  40550. var newSymbols = [];
  40551. var currentHeight = 0;
  40552. var symbolCodeLength = log2(symbols.length + numberOfNewSymbols);
  40553. var decoder = decodingContext.decoder;
  40554. var contextCache = decodingContext.contextCache;
  40555. while (newSymbols.length < numberOfNewSymbols) {
  40556. var deltaHeight = decodeInteger(contextCache, 'IADH', decoder); // 6.5.6
  40557. currentHeight += deltaHeight;
  40558. var currentWidth = 0;
  40559. var totalWidth = 0;
  40560. while (true) {
  40561. var deltaWidth = decodeInteger(contextCache, 'IADW', decoder); // 6.5.7
  40562. if (deltaWidth === null) {
  40563. break; // OOB
  40564. }
  40565. currentWidth += deltaWidth;
  40566. totalWidth += currentWidth;
  40567. var bitmap;
  40568. if (refinement) {
  40569. // 6.5.8.2 Refinement/aggregate-coded symbol bitmap
  40570. var numberOfInstances = decodeInteger(contextCache, 'IAAI', decoder);
  40571. if (numberOfInstances > 1) {
  40572. bitmap = decodeTextRegion(huffman, refinement,
  40573. currentWidth, currentHeight, 0,
  40574. numberOfInstances, 1, //strip size
  40575. symbols.concat(newSymbols),
  40576. symbolCodeLength,
  40577. 0, //transposed
  40578. 0, //ds offset
  40579. 1, //top left 7.4.3.1.1
  40580. 0, //OR operator
  40581. huffmanTables,
  40582. refinementTemplateIndex, refinementAt,
  40583. decodingContext);
  40584. } else {
  40585. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  40586. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  40587. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  40588. var symbol = (symbolId < symbols.length ? symbols[symbolId] :
  40589. newSymbols[symbolId - symbols.length]);
  40590. bitmap = decodeRefinement(currentWidth, currentHeight,
  40591. refinementTemplateIndex, symbol, rdx, rdy, false, refinementAt,
  40592. decodingContext);
  40593. }
  40594. } else {
  40595. // 6.5.8.1 Direct-coded symbol bitmap
  40596. bitmap = decodeBitmap(false, currentWidth, currentHeight,
  40597. templateIndex, false, null, at, decodingContext);
  40598. }
  40599. newSymbols.push(bitmap);
  40600. }
  40601. }
  40602. // 6.5.10 Exported symbols
  40603. var exportedSymbols = [];
  40604. var flags = [], currentFlag = false;
  40605. var totalSymbolsLength = symbols.length + numberOfNewSymbols;
  40606. while (flags.length < totalSymbolsLength) {
  40607. var runLength = decodeInteger(contextCache, 'IAEX', decoder);
  40608. while (runLength--) {
  40609. flags.push(currentFlag);
  40610. }
  40611. currentFlag = !currentFlag;
  40612. }
  40613. for (var i = 0, ii = symbols.length; i < ii; i++) {
  40614. if (flags[i]) {
  40615. exportedSymbols.push(symbols[i]);
  40616. }
  40617. }
  40618. for (var j = 0; j < numberOfNewSymbols; i++, j++) {
  40619. if (flags[i]) {
  40620. exportedSymbols.push(newSymbols[j]);
  40621. }
  40622. }
  40623. return exportedSymbols;
  40624. }
  40625. function decodeTextRegion(huffman, refinement, width, height,
  40626. defaultPixelValue, numberOfSymbolInstances,
  40627. stripSize, inputSymbols, symbolCodeLength,
  40628. transposed, dsOffset, referenceCorner,
  40629. combinationOperator, huffmanTables,
  40630. refinementTemplateIndex, refinementAt,
  40631. decodingContext) {
  40632. if (huffman) {
  40633. error('JBIG2 error: huffman is not supported');
  40634. }
  40635. // Prepare bitmap
  40636. var bitmap = [];
  40637. var i, row;
  40638. for (i = 0; i < height; i++) {
  40639. row = new Uint8Array(width);
  40640. if (defaultPixelValue) {
  40641. for (var j = 0; j < width; j++) {
  40642. row[j] = defaultPixelValue;
  40643. }
  40644. }
  40645. bitmap.push(row);
  40646. }
  40647. var decoder = decodingContext.decoder;
  40648. var contextCache = decodingContext.contextCache;
  40649. var stripT = -decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  40650. var firstS = 0;
  40651. i = 0;
  40652. while (i < numberOfSymbolInstances) {
  40653. var deltaT = decodeInteger(contextCache, 'IADT', decoder); // 6.4.6
  40654. stripT += deltaT;
  40655. var deltaFirstS = decodeInteger(contextCache, 'IAFS', decoder); // 6.4.7
  40656. firstS += deltaFirstS;
  40657. var currentS = firstS;
  40658. do {
  40659. var currentT = (stripSize == 1 ? 0 :
  40660. decodeInteger(contextCache, 'IAIT', decoder)); // 6.4.9
  40661. var t = stripSize * stripT + currentT;
  40662. var symbolId = decodeIAID(contextCache, decoder, symbolCodeLength);
  40663. var applyRefinement = (refinement &&
  40664. decodeInteger(contextCache, 'IARI', decoder));
  40665. var symbolBitmap = inputSymbols[symbolId];
  40666. var symbolWidth = symbolBitmap[0].length;
  40667. var symbolHeight = symbolBitmap.length;
  40668. if (applyRefinement) {
  40669. var rdw = decodeInteger(contextCache, 'IARDW', decoder); // 6.4.11.1
  40670. var rdh = decodeInteger(contextCache, 'IARDH', decoder); // 6.4.11.2
  40671. var rdx = decodeInteger(contextCache, 'IARDX', decoder); // 6.4.11.3
  40672. var rdy = decodeInteger(contextCache, 'IARDY', decoder); // 6.4.11.4
  40673. symbolWidth += rdw;
  40674. symbolHeight += rdh;
  40675. symbolBitmap = decodeRefinement(symbolWidth, symbolHeight,
  40676. refinementTemplateIndex, symbolBitmap, (rdw >> 1) + rdx,
  40677. (rdh >> 1) + rdy, false, refinementAt,
  40678. decodingContext);
  40679. }
  40680. var offsetT = t - ((referenceCorner & 1) ? 0 : symbolHeight);
  40681. var offsetS = currentS - ((referenceCorner & 2) ? symbolWidth : 0);
  40682. var s2, t2, symbolRow;
  40683. if (transposed) {
  40684. // Place Symbol Bitmap from T1,S1
  40685. for (s2 = 0; s2 < symbolHeight; s2++) {
  40686. row = bitmap[offsetS + s2];
  40687. if (!row) {
  40688. continue;
  40689. }
  40690. symbolRow = symbolBitmap[s2];
  40691. // To ignore Parts of Symbol bitmap which goes
  40692. // outside bitmap region
  40693. var maxWidth = Math.min(width - offsetT, symbolWidth);
  40694. switch (combinationOperator) {
  40695. case 0: // OR
  40696. for (t2 = 0; t2 < maxWidth; t2++) {
  40697. row[offsetT + t2] |= symbolRow[t2];
  40698. }
  40699. break;
  40700. case 2: // XOR
  40701. for (t2 = 0; t2 < maxWidth; t2++) {
  40702. row[offsetT + t2] ^= symbolRow[t2];
  40703. }
  40704. break;
  40705. default:
  40706. error('JBIG2 error: operator ' + combinationOperator +
  40707. ' is not supported');
  40708. }
  40709. }
  40710. currentS += symbolHeight - 1;
  40711. } else {
  40712. for (t2 = 0; t2 < symbolHeight; t2++) {
  40713. row = bitmap[offsetT + t2];
  40714. if (!row) {
  40715. continue;
  40716. }
  40717. symbolRow = symbolBitmap[t2];
  40718. switch (combinationOperator) {
  40719. case 0: // OR
  40720. for (s2 = 0; s2 < symbolWidth; s2++) {
  40721. row[offsetS + s2] |= symbolRow[s2];
  40722. }
  40723. break;
  40724. case 2: // XOR
  40725. for (s2 = 0; s2 < symbolWidth; s2++) {
  40726. row[offsetS + s2] ^= symbolRow[s2];
  40727. }
  40728. break;
  40729. default:
  40730. error('JBIG2 error: operator ' + combinationOperator +
  40731. ' is not supported');
  40732. }
  40733. }
  40734. currentS += symbolWidth - 1;
  40735. }
  40736. i++;
  40737. var deltaS = decodeInteger(contextCache, 'IADS', decoder); // 6.4.8
  40738. if (deltaS === null) {
  40739. break; // OOB
  40740. }
  40741. currentS += deltaS + dsOffset;
  40742. } while (true);
  40743. }
  40744. return bitmap;
  40745. }
  40746. function readSegmentHeader(data, start) {
  40747. var segmentHeader = {};
  40748. segmentHeader.number = readUint32(data, start);
  40749. var flags = data[start + 4];
  40750. var segmentType = flags & 0x3F;
  40751. if (!SegmentTypes[segmentType]) {
  40752. error('JBIG2 error: invalid segment type: ' + segmentType);
  40753. }
  40754. segmentHeader.type = segmentType;
  40755. segmentHeader.typeName = SegmentTypes[segmentType];
  40756. segmentHeader.deferredNonRetain = !!(flags & 0x80);
  40757. var pageAssociationFieldSize = !!(flags & 0x40);
  40758. var referredFlags = data[start + 5];
  40759. var referredToCount = (referredFlags >> 5) & 7;
  40760. var retainBits = [referredFlags & 31];
  40761. var position = start + 6;
  40762. if (referredFlags == 7) {
  40763. referredToCount = readUint32(data, position - 1) & 0x1FFFFFFF;
  40764. position += 3;
  40765. var bytes = (referredToCount + 7) >> 3;
  40766. retainBits[0] = data[position++];
  40767. while (--bytes > 0) {
  40768. retainBits.push(data[position++]);
  40769. }
  40770. } else if (referredFlags == 5 || referredFlags == 6) {
  40771. error('JBIG2 error: invalid referred-to flags');
  40772. }
  40773. segmentHeader.retainBits = retainBits;
  40774. var referredToSegmentNumberSize = (segmentHeader.number <= 256 ? 1 :
  40775. (segmentHeader.number <= 65536 ? 2 : 4));
  40776. var referredTo = [];
  40777. var i, ii;
  40778. for (i = 0; i < referredToCount; i++) {
  40779. var number = (referredToSegmentNumberSize == 1 ? data[position] :
  40780. (referredToSegmentNumberSize == 2 ? readUint16(data, position) :
  40781. readUint32(data, position)));
  40782. referredTo.push(number);
  40783. position += referredToSegmentNumberSize;
  40784. }
  40785. segmentHeader.referredTo = referredTo;
  40786. if (!pageAssociationFieldSize) {
  40787. segmentHeader.pageAssociation = data[position++];
  40788. } else {
  40789. segmentHeader.pageAssociation = readUint32(data, position);
  40790. position += 4;
  40791. }
  40792. segmentHeader.length = readUint32(data, position);
  40793. position += 4;
  40794. if (segmentHeader.length == 0xFFFFFFFF) {
  40795. // 7.2.7 Segment data length, unknown segment length
  40796. if (segmentType === 38) { // ImmediateGenericRegion
  40797. var genericRegionInfo = readRegionSegmentInformation(data, position);
  40798. var genericRegionSegmentFlags = data[position +
  40799. RegionSegmentInformationFieldLength];
  40800. var genericRegionMmr = !!(genericRegionSegmentFlags & 1);
  40801. // searching for the segment end
  40802. var searchPatternLength = 6;
  40803. var searchPattern = new Uint8Array(searchPatternLength);
  40804. if (!genericRegionMmr) {
  40805. searchPattern[0] = 0xFF;
  40806. searchPattern[1] = 0xAC;
  40807. }
  40808. searchPattern[2] = (genericRegionInfo.height >>> 24) & 0xFF;
  40809. searchPattern[3] = (genericRegionInfo.height >> 16) & 0xFF;
  40810. searchPattern[4] = (genericRegionInfo.height >> 8) & 0xFF;
  40811. searchPattern[5] = genericRegionInfo.height & 0xFF;
  40812. for (i = position, ii = data.length; i < ii; i++) {
  40813. var j = 0;
  40814. while (j < searchPatternLength && searchPattern[j] === data[i + j]) {
  40815. j++;
  40816. }
  40817. if (j == searchPatternLength) {
  40818. segmentHeader.length = i + searchPatternLength;
  40819. break;
  40820. }
  40821. }
  40822. if (segmentHeader.length == 0xFFFFFFFF) {
  40823. error('JBIG2 error: segment end was not found');
  40824. }
  40825. } else {
  40826. error('JBIG2 error: invalid unknown segment length');
  40827. }
  40828. }
  40829. segmentHeader.headerEnd = position;
  40830. return segmentHeader;
  40831. }
  40832. function readSegments(header, data, start, end) {
  40833. var segments = [];
  40834. var position = start;
  40835. while (position < end) {
  40836. var segmentHeader = readSegmentHeader(data, position);
  40837. position = segmentHeader.headerEnd;
  40838. var segment = {
  40839. header: segmentHeader,
  40840. data: data
  40841. };
  40842. if (!header.randomAccess) {
  40843. segment.start = position;
  40844. position += segmentHeader.length;
  40845. segment.end = position;
  40846. }
  40847. segments.push(segment);
  40848. if (segmentHeader.type == 51) {
  40849. break; // end of file is found
  40850. }
  40851. }
  40852. if (header.randomAccess) {
  40853. for (var i = 0, ii = segments.length; i < ii; i++) {
  40854. segments[i].start = position;
  40855. position += segments[i].header.length;
  40856. segments[i].end = position;
  40857. }
  40858. }
  40859. return segments;
  40860. }
  40861. // 7.4.1 Region segment information field
  40862. function readRegionSegmentInformation(data, start) {
  40863. return {
  40864. width: readUint32(data, start),
  40865. height: readUint32(data, start + 4),
  40866. x: readUint32(data, start + 8),
  40867. y: readUint32(data, start + 12),
  40868. combinationOperator: data[start + 16] & 7
  40869. };
  40870. }
  40871. var RegionSegmentInformationFieldLength = 17;
  40872. function processSegment(segment, visitor) {
  40873. var header = segment.header;
  40874. var data = segment.data, position = segment.start, end = segment.end;
  40875. var args, at, i, atLength;
  40876. switch (header.type) {
  40877. case 0: // SymbolDictionary
  40878. // 7.4.2 Symbol dictionary segment syntax
  40879. var dictionary = {};
  40880. var dictionaryFlags = readUint16(data, position); // 7.4.2.1.1
  40881. dictionary.huffman = !!(dictionaryFlags & 1);
  40882. dictionary.refinement = !!(dictionaryFlags & 2);
  40883. dictionary.huffmanDHSelector = (dictionaryFlags >> 2) & 3;
  40884. dictionary.huffmanDWSelector = (dictionaryFlags >> 4) & 3;
  40885. dictionary.bitmapSizeSelector = (dictionaryFlags >> 6) & 1;
  40886. dictionary.aggregationInstancesSelector = (dictionaryFlags >> 7) & 1;
  40887. dictionary.bitmapCodingContextUsed = !!(dictionaryFlags & 256);
  40888. dictionary.bitmapCodingContextRetained = !!(dictionaryFlags & 512);
  40889. dictionary.template = (dictionaryFlags >> 10) & 3;
  40890. dictionary.refinementTemplate = (dictionaryFlags >> 12) & 1;
  40891. position += 2;
  40892. if (!dictionary.huffman) {
  40893. atLength = dictionary.template === 0 ? 4 : 1;
  40894. at = [];
  40895. for (i = 0; i < atLength; i++) {
  40896. at.push({
  40897. x: readInt8(data, position),
  40898. y: readInt8(data, position + 1)
  40899. });
  40900. position += 2;
  40901. }
  40902. dictionary.at = at;
  40903. }
  40904. if (dictionary.refinement && !dictionary.refinementTemplate) {
  40905. at = [];
  40906. for (i = 0; i < 2; i++) {
  40907. at.push({
  40908. x: readInt8(data, position),
  40909. y: readInt8(data, position + 1)
  40910. });
  40911. position += 2;
  40912. }
  40913. dictionary.refinementAt = at;
  40914. }
  40915. dictionary.numberOfExportedSymbols = readUint32(data, position);
  40916. position += 4;
  40917. dictionary.numberOfNewSymbols = readUint32(data, position);
  40918. position += 4;
  40919. args = [dictionary, header.number, header.referredTo,
  40920. data, position, end];
  40921. break;
  40922. case 6: // ImmediateTextRegion
  40923. case 7: // ImmediateLosslessTextRegion
  40924. var textRegion = {};
  40925. textRegion.info = readRegionSegmentInformation(data, position);
  40926. position += RegionSegmentInformationFieldLength;
  40927. var textRegionSegmentFlags = readUint16(data, position);
  40928. position += 2;
  40929. textRegion.huffman = !!(textRegionSegmentFlags & 1);
  40930. textRegion.refinement = !!(textRegionSegmentFlags & 2);
  40931. textRegion.stripSize = 1 << ((textRegionSegmentFlags >> 2) & 3);
  40932. textRegion.referenceCorner = (textRegionSegmentFlags >> 4) & 3;
  40933. textRegion.transposed = !!(textRegionSegmentFlags & 64);
  40934. textRegion.combinationOperator = (textRegionSegmentFlags >> 7) & 3;
  40935. textRegion.defaultPixelValue = (textRegionSegmentFlags >> 9) & 1;
  40936. textRegion.dsOffset = (textRegionSegmentFlags << 17) >> 27;
  40937. textRegion.refinementTemplate = (textRegionSegmentFlags >> 15) & 1;
  40938. if (textRegion.huffman) {
  40939. var textRegionHuffmanFlags = readUint16(data, position);
  40940. position += 2;
  40941. textRegion.huffmanFS = (textRegionHuffmanFlags) & 3;
  40942. textRegion.huffmanDS = (textRegionHuffmanFlags >> 2) & 3;
  40943. textRegion.huffmanDT = (textRegionHuffmanFlags >> 4) & 3;
  40944. textRegion.huffmanRefinementDW = (textRegionHuffmanFlags >> 6) & 3;
  40945. textRegion.huffmanRefinementDH = (textRegionHuffmanFlags >> 8) & 3;
  40946. textRegion.huffmanRefinementDX = (textRegionHuffmanFlags >> 10) & 3;
  40947. textRegion.huffmanRefinementDY = (textRegionHuffmanFlags >> 12) & 3;
  40948. textRegion.huffmanRefinementSizeSelector =
  40949. !!(textRegionHuffmanFlags & 14);
  40950. }
  40951. if (textRegion.refinement && !textRegion.refinementTemplate) {
  40952. at = [];
  40953. for (i = 0; i < 2; i++) {
  40954. at.push({
  40955. x: readInt8(data, position),
  40956. y: readInt8(data, position + 1)
  40957. });
  40958. position += 2;
  40959. }
  40960. textRegion.refinementAt = at;
  40961. }
  40962. textRegion.numberOfSymbolInstances = readUint32(data, position);
  40963. position += 4;
  40964. // TODO 7.4.3.1.7 Symbol ID Huffman table decoding
  40965. if (textRegion.huffman) {
  40966. error('JBIG2 error: huffman is not supported');
  40967. }
  40968. args = [textRegion, header.referredTo, data, position, end];
  40969. break;
  40970. case 38: // ImmediateGenericRegion
  40971. case 39: // ImmediateLosslessGenericRegion
  40972. var genericRegion = {};
  40973. genericRegion.info = readRegionSegmentInformation(data, position);
  40974. position += RegionSegmentInformationFieldLength;
  40975. var genericRegionSegmentFlags = data[position++];
  40976. genericRegion.mmr = !!(genericRegionSegmentFlags & 1);
  40977. genericRegion.template = (genericRegionSegmentFlags >> 1) & 3;
  40978. genericRegion.prediction = !!(genericRegionSegmentFlags & 8);
  40979. if (!genericRegion.mmr) {
  40980. atLength = genericRegion.template === 0 ? 4 : 1;
  40981. at = [];
  40982. for (i = 0; i < atLength; i++) {
  40983. at.push({
  40984. x: readInt8(data, position),
  40985. y: readInt8(data, position + 1)
  40986. });
  40987. position += 2;
  40988. }
  40989. genericRegion.at = at;
  40990. }
  40991. args = [genericRegion, data, position, end];
  40992. break;
  40993. case 48: // PageInformation
  40994. var pageInfo = {
  40995. width: readUint32(data, position),
  40996. height: readUint32(data, position + 4),
  40997. resolutionX: readUint32(data, position + 8),
  40998. resolutionY: readUint32(data, position + 12)
  40999. };
  41000. if (pageInfo.height == 0xFFFFFFFF) {
  41001. delete pageInfo.height;
  41002. }
  41003. var pageSegmentFlags = data[position + 16];
  41004. var pageStripingInformatiom = readUint16(data, position + 17);
  41005. pageInfo.lossless = !!(pageSegmentFlags & 1);
  41006. pageInfo.refinement = !!(pageSegmentFlags & 2);
  41007. pageInfo.defaultPixelValue = (pageSegmentFlags >> 2) & 1;
  41008. pageInfo.combinationOperator = (pageSegmentFlags >> 3) & 3;
  41009. pageInfo.requiresBuffer = !!(pageSegmentFlags & 32);
  41010. pageInfo.combinationOperatorOverride = !!(pageSegmentFlags & 64);
  41011. args = [pageInfo];
  41012. break;
  41013. case 49: // EndOfPage
  41014. break;
  41015. case 50: // EndOfStripe
  41016. break;
  41017. case 51: // EndOfFile
  41018. break;
  41019. case 62: // 7.4.15 defines 2 extension types which
  41020. // are comments and can be ignored.
  41021. break;
  41022. default:
  41023. error('JBIG2 error: segment type ' + header.typeName + '(' +
  41024. header.type + ') is not implemented');
  41025. }
  41026. var callbackName = 'on' + header.typeName;
  41027. if (callbackName in visitor) {
  41028. visitor[callbackName].apply(visitor, args);
  41029. }
  41030. }
  41031. function processSegments(segments, visitor) {
  41032. for (var i = 0, ii = segments.length; i < ii; i++) {
  41033. processSegment(segments[i], visitor);
  41034. }
  41035. }
  41036. function parseJbig2(data, start, end) {
  41037. var position = start;
  41038. if (data[position] != 0x97 || data[position + 1] != 0x4A ||
  41039. data[position + 2] != 0x42 || data[position + 3] != 0x32 ||
  41040. data[position + 4] != 0x0D || data[position + 5] != 0x0A ||
  41041. data[position + 6] != 0x1A || data[position + 7] != 0x0A) {
  41042. error('JBIG2 error: invalid header');
  41043. }
  41044. var header = {};
  41045. position += 8;
  41046. var flags = data[position++];
  41047. header.randomAccess = !(flags & 1);
  41048. if (!(flags & 2)) {
  41049. header.numberOfPages = readUint32(data, position);
  41050. position += 4;
  41051. }
  41052. var segments = readSegments(header, data, position, end);
  41053. error('Not implemented');
  41054. // processSegments(segments, new SimpleSegmentVisitor());
  41055. }
  41056. function parseJbig2Chunks(chunks) {
  41057. var visitor = new SimpleSegmentVisitor();
  41058. for (var i = 0, ii = chunks.length; i < ii; i++) {
  41059. var chunk = chunks[i];
  41060. var segments = readSegments({}, chunk.data, chunk.start, chunk.end);
  41061. processSegments(segments, visitor);
  41062. }
  41063. return visitor.buffer;
  41064. }
  41065. function SimpleSegmentVisitor() {}
  41066. SimpleSegmentVisitor.prototype = {
  41067. onPageInformation: function SimpleSegmentVisitor_onPageInformation(info) {
  41068. this.currentPageInfo = info;
  41069. var rowSize = (info.width + 7) >> 3;
  41070. var buffer = new Uint8Array(rowSize * info.height);
  41071. // The contents of ArrayBuffers are initialized to 0.
  41072. // Fill the buffer with 0xFF only if info.defaultPixelValue is set
  41073. if (info.defaultPixelValue) {
  41074. for (var i = 0, ii = buffer.length; i < ii; i++) {
  41075. buffer[i] = 0xFF;
  41076. }
  41077. }
  41078. this.buffer = buffer;
  41079. },
  41080. drawBitmap: function SimpleSegmentVisitor_drawBitmap(regionInfo, bitmap) {
  41081. var pageInfo = this.currentPageInfo;
  41082. var width = regionInfo.width, height = regionInfo.height;
  41083. var rowSize = (pageInfo.width + 7) >> 3;
  41084. var combinationOperator = pageInfo.combinationOperatorOverride ?
  41085. regionInfo.combinationOperator : pageInfo.combinationOperator;
  41086. var buffer = this.buffer;
  41087. var mask0 = 128 >> (regionInfo.x & 7);
  41088. var offset0 = regionInfo.y * rowSize + (regionInfo.x >> 3);
  41089. var i, j, mask, offset;
  41090. switch (combinationOperator) {
  41091. case 0: // OR
  41092. for (i = 0; i < height; i++) {
  41093. mask = mask0;
  41094. offset = offset0;
  41095. for (j = 0; j < width; j++) {
  41096. if (bitmap[i][j]) {
  41097. buffer[offset] |= mask;
  41098. }
  41099. mask >>= 1;
  41100. if (!mask) {
  41101. mask = 128;
  41102. offset++;
  41103. }
  41104. }
  41105. offset0 += rowSize;
  41106. }
  41107. break;
  41108. case 2: // XOR
  41109. for (i = 0; i < height; i++) {
  41110. mask = mask0;
  41111. offset = offset0;
  41112. for (j = 0; j < width; j++) {
  41113. if (bitmap[i][j]) {
  41114. buffer[offset] ^= mask;
  41115. }
  41116. mask >>= 1;
  41117. if (!mask) {
  41118. mask = 128;
  41119. offset++;
  41120. }
  41121. }
  41122. offset0 += rowSize;
  41123. }
  41124. break;
  41125. default:
  41126. error('JBIG2 error: operator ' + combinationOperator +
  41127. ' is not supported');
  41128. }
  41129. },
  41130. onImmediateGenericRegion:
  41131. function SimpleSegmentVisitor_onImmediateGenericRegion(region, data,
  41132. start, end) {
  41133. var regionInfo = region.info;
  41134. var decodingContext = new DecodingContext(data, start, end);
  41135. var bitmap = decodeBitmap(region.mmr, regionInfo.width, regionInfo.height,
  41136. region.template, region.prediction, null,
  41137. region.at, decodingContext);
  41138. this.drawBitmap(regionInfo, bitmap);
  41139. },
  41140. onImmediateLosslessGenericRegion:
  41141. function SimpleSegmentVisitor_onImmediateLosslessGenericRegion() {
  41142. this.onImmediateGenericRegion.apply(this, arguments);
  41143. },
  41144. onSymbolDictionary:
  41145. function SimpleSegmentVisitor_onSymbolDictionary(dictionary,
  41146. currentSegment,
  41147. referredSegments,
  41148. data, start, end) {
  41149. var huffmanTables;
  41150. if (dictionary.huffman) {
  41151. error('JBIG2 error: huffman is not supported');
  41152. }
  41153. // Combines exported symbols from all referred segments
  41154. var symbols = this.symbols;
  41155. if (!symbols) {
  41156. this.symbols = symbols = {};
  41157. }
  41158. var inputSymbols = [];
  41159. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  41160. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  41161. }
  41162. var decodingContext = new DecodingContext(data, start, end);
  41163. symbols[currentSegment] = decodeSymbolDictionary(dictionary.huffman,
  41164. dictionary.refinement, inputSymbols, dictionary.numberOfNewSymbols,
  41165. dictionary.numberOfExportedSymbols, huffmanTables,
  41166. dictionary.template, dictionary.at,
  41167. dictionary.refinementTemplate, dictionary.refinementAt,
  41168. decodingContext);
  41169. },
  41170. onImmediateTextRegion:
  41171. function SimpleSegmentVisitor_onImmediateTextRegion(region,
  41172. referredSegments,
  41173. data, start, end) {
  41174. var regionInfo = region.info;
  41175. var huffmanTables;
  41176. // Combines exported symbols from all referred segments
  41177. var symbols = this.symbols;
  41178. var inputSymbols = [];
  41179. for (var i = 0, ii = referredSegments.length; i < ii; i++) {
  41180. inputSymbols = inputSymbols.concat(symbols[referredSegments[i]]);
  41181. }
  41182. var symbolCodeLength = log2(inputSymbols.length);
  41183. var decodingContext = new DecodingContext(data, start, end);
  41184. var bitmap = decodeTextRegion(region.huffman, region.refinement,
  41185. regionInfo.width, regionInfo.height, region.defaultPixelValue,
  41186. region.numberOfSymbolInstances, region.stripSize, inputSymbols,
  41187. symbolCodeLength, region.transposed, region.dsOffset,
  41188. region.referenceCorner, region.combinationOperator, huffmanTables,
  41189. region.refinementTemplate, region.refinementAt, decodingContext);
  41190. this.drawBitmap(regionInfo, bitmap);
  41191. },
  41192. onImmediateLosslessTextRegion:
  41193. function SimpleSegmentVisitor_onImmediateLosslessTextRegion() {
  41194. this.onImmediateTextRegion.apply(this, arguments);
  41195. }
  41196. };
  41197. function Jbig2Image() {}
  41198. Jbig2Image.prototype = {
  41199. parseChunks: function Jbig2Image_parseChunks(chunks) {
  41200. return parseJbig2Chunks(chunks);
  41201. }
  41202. };
  41203. return Jbig2Image;
  41204. })();
  41205. var bidi = PDFJS.bidi = (function bidiClosure() {
  41206. // Character types for symbols from 0000 to 00FF.
  41207. var baseTypes = [
  41208. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'S', 'B', 'S', 'WS',
  41209. 'B', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  41210. 'BN', 'BN', 'B', 'B', 'B', 'S', 'WS', 'ON', 'ON', 'ET', 'ET', 'ET', 'ON',
  41211. 'ON', 'ON', 'ON', 'ON', 'ON', 'CS', 'ON', 'CS', 'ON', 'EN', 'EN', 'EN',
  41212. 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'EN', 'ON', 'ON', 'ON', 'ON', 'ON',
  41213. 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41214. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'ON', 'ON',
  41215. 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41216. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41217. 'L', 'ON', 'ON', 'ON', 'ON', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'B', 'BN',
  41218. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  41219. 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN',
  41220. 'BN', 'CS', 'ON', 'ET', 'ET', 'ET', 'ET', 'ON', 'ON', 'ON', 'ON', 'L', 'ON',
  41221. 'ON', 'ON', 'ON', 'ON', 'ET', 'ET', 'EN', 'EN', 'ON', 'L', 'ON', 'ON', 'ON',
  41222. 'EN', 'L', 'ON', 'ON', 'ON', 'ON', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41223. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41224. 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41225. 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L',
  41226. 'L', 'L', 'L', 'ON', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L'
  41227. ];
  41228. // Character types for symbols from 0600 to 06FF
  41229. var arabicTypes = [
  41230. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41231. 'CS', 'AL', 'ON', 'ON', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL',
  41232. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41233. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41234. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41235. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41236. 'AL', 'AL', 'AL', 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  41237. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL',
  41238. 'AL', 'AL', 'AL', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN', 'AN',
  41239. 'AN', 'ET', 'AN', 'AN', 'AL', 'AL', 'AL', 'NSM', 'AL', 'AL', 'AL', 'AL',
  41240. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41241. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41242. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41243. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41244. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41245. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41246. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41247. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41248. 'AL', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM',
  41249. 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'NSM', 'ON', 'NSM',
  41250. 'NSM', 'NSM', 'NSM', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL',
  41251. 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL', 'AL'
  41252. ];
  41253. function isOdd(i) {
  41254. return (i & 1) !== 0;
  41255. }
  41256. function isEven(i) {
  41257. return (i & 1) === 0;
  41258. }
  41259. function findUnequal(arr, start, value) {
  41260. for (var j = start, jj = arr.length; j < jj; ++j) {
  41261. if (arr[j] != value) {
  41262. return j;
  41263. }
  41264. }
  41265. return j;
  41266. }
  41267. function setValues(arr, start, end, value) {
  41268. for (var j = start; j < end; ++j) {
  41269. arr[j] = value;
  41270. }
  41271. }
  41272. function reverseValues(arr, start, end) {
  41273. for (var i = start, j = end - 1; i < j; ++i, --j) {
  41274. var temp = arr[i];
  41275. arr[i] = arr[j];
  41276. arr[j] = temp;
  41277. }
  41278. }
  41279. function createBidiText(str, isLTR, vertical) {
  41280. return {
  41281. str: str,
  41282. dir: (vertical ? 'ttb' : (isLTR ? 'ltr' : 'rtl'))
  41283. };
  41284. }
  41285. // These are used in bidi(), which is called frequently. We re-use them on
  41286. // each call to avoid unnecessary allocations.
  41287. var chars = [];
  41288. var types = [];
  41289. function bidi(str, startLevel, vertical) {
  41290. var isLTR = true;
  41291. var strLength = str.length;
  41292. if (strLength === 0 || vertical) {
  41293. return createBidiText(str, isLTR, vertical);
  41294. }
  41295. // Get types and fill arrays
  41296. chars.length = 0;
  41297. types.length = 0;
  41298. var numBidi = 0;
  41299. var i, ii;
  41300. for (i = 0; i < strLength; ++i) {
  41301. chars[i] = str.charAt(i);
  41302. var charCode = str.charCodeAt(i);
  41303. var charType = 'L';
  41304. if (charCode <= 0x00ff) {
  41305. charType = baseTypes[charCode];
  41306. } else if (0x0590 <= charCode && charCode <= 0x05f4) {
  41307. charType = 'R';
  41308. } else if (0x0600 <= charCode && charCode <= 0x06ff) {
  41309. charType = arabicTypes[charCode & 0xff];
  41310. } else if (0x0700 <= charCode && charCode <= 0x08AC) {
  41311. charType = 'AL';
  41312. }
  41313. if (charType == 'R' || charType == 'AL' || charType == 'AN') {
  41314. numBidi++;
  41315. }
  41316. types[i] = charType;
  41317. }
  41318. // Detect the bidi method
  41319. // - If there are no rtl characters then no bidi needed
  41320. // - If less than 30% chars are rtl then string is primarily ltr
  41321. // - If more than 30% chars are rtl then string is primarily rtl
  41322. if (numBidi === 0) {
  41323. isLTR = true;
  41324. return createBidiText(str, isLTR);
  41325. }
  41326. if (startLevel == -1) {
  41327. if ((strLength / numBidi) < 0.3) {
  41328. isLTR = true;
  41329. startLevel = 0;
  41330. } else {
  41331. isLTR = false;
  41332. startLevel = 1;
  41333. }
  41334. }
  41335. var levels = [];
  41336. for (i = 0; i < strLength; ++i) {
  41337. levels[i] = startLevel;
  41338. }
  41339. /*
  41340. X1-X10: skip most of this, since we are NOT doing the embeddings.
  41341. */
  41342. var e = (isOdd(startLevel) ? 'R' : 'L');
  41343. var sor = e;
  41344. var eor = sor;
  41345. /*
  41346. W1. Examine each non-spacing mark (NSM) in the level run, and change the
  41347. type of the NSM to the type of the previous character. If the NSM is at the
  41348. start of the level run, it will get the type of sor.
  41349. */
  41350. var lastType = sor;
  41351. for (i = 0; i < strLength; ++i) {
  41352. if (types[i] == 'NSM') {
  41353. types[i] = lastType;
  41354. } else {
  41355. lastType = types[i];
  41356. }
  41357. }
  41358. /*
  41359. W2. Search backwards from each instance of a European number until the
  41360. first strong type (R, L, AL, or sor) is found. If an AL is found, change
  41361. the type of the European number to Arabic number.
  41362. */
  41363. lastType = sor;
  41364. var t;
  41365. for (i = 0; i < strLength; ++i) {
  41366. t = types[i];
  41367. if (t == 'EN') {
  41368. types[i] = (lastType == 'AL') ? 'AN' : 'EN';
  41369. } else if (t == 'R' || t == 'L' || t == 'AL') {
  41370. lastType = t;
  41371. }
  41372. }
  41373. /*
  41374. W3. Change all ALs to R.
  41375. */
  41376. for (i = 0; i < strLength; ++i) {
  41377. t = types[i];
  41378. if (t == 'AL') {
  41379. types[i] = 'R';
  41380. }
  41381. }
  41382. /*
  41383. W4. A single European separator between two European numbers changes to a
  41384. European number. A single common separator between two numbers of the same
  41385. type changes to that type:
  41386. */
  41387. for (i = 1; i < strLength - 1; ++i) {
  41388. if (types[i] == 'ES' && types[i - 1] == 'EN' && types[i + 1] == 'EN') {
  41389. types[i] = 'EN';
  41390. }
  41391. if (types[i] == 'CS' && (types[i - 1] == 'EN' || types[i - 1] == 'AN') &&
  41392. types[i + 1] == types[i - 1]) {
  41393. types[i] = types[i - 1];
  41394. }
  41395. }
  41396. /*
  41397. W5. A sequence of European terminators adjacent to European numbers changes
  41398. to all European numbers:
  41399. */
  41400. for (i = 0; i < strLength; ++i) {
  41401. if (types[i] == 'EN') {
  41402. // do before
  41403. var j;
  41404. for (j = i - 1; j >= 0; --j) {
  41405. if (types[j] != 'ET') {
  41406. break;
  41407. }
  41408. types[j] = 'EN';
  41409. }
  41410. // do after
  41411. for (j = i + 1; j < strLength; --j) {
  41412. if (types[j] != 'ET') {
  41413. break;
  41414. }
  41415. types[j] = 'EN';
  41416. }
  41417. }
  41418. }
  41419. /*
  41420. W6. Otherwise, separators and terminators change to Other Neutral:
  41421. */
  41422. for (i = 0; i < strLength; ++i) {
  41423. t = types[i];
  41424. if (t == 'WS' || t == 'ES' || t == 'ET' || t == 'CS') {
  41425. types[i] = 'ON';
  41426. }
  41427. }
  41428. /*
  41429. W7. Search backwards from each instance of a European number until the
  41430. first strong type (R, L, or sor) is found. If an L is found, then change
  41431. the type of the European number to L.
  41432. */
  41433. lastType = sor;
  41434. for (i = 0; i < strLength; ++i) {
  41435. t = types[i];
  41436. if (t == 'EN') {
  41437. types[i] = ((lastType == 'L') ? 'L' : 'EN');
  41438. } else if (t == 'R' || t == 'L') {
  41439. lastType = t;
  41440. }
  41441. }
  41442. /*
  41443. N1. A sequence of neutrals takes the direction of the surrounding strong
  41444. text if the text on both sides has the same direction. European and Arabic
  41445. numbers are treated as though they were R. Start-of-level-run (sor) and
  41446. end-of-level-run (eor) are used at level run boundaries.
  41447. */
  41448. for (i = 0; i < strLength; ++i) {
  41449. if (types[i] == 'ON') {
  41450. var end = findUnequal(types, i + 1, 'ON');
  41451. var before = sor;
  41452. if (i > 0) {
  41453. before = types[i - 1];
  41454. }
  41455. var after = eor;
  41456. if (end + 1 < strLength) {
  41457. after = types[end + 1];
  41458. }
  41459. if (before != 'L') {
  41460. before = 'R';
  41461. }
  41462. if (after != 'L') {
  41463. after = 'R';
  41464. }
  41465. if (before == after) {
  41466. setValues(types, i, end, before);
  41467. }
  41468. i = end - 1; // reset to end (-1 so next iteration is ok)
  41469. }
  41470. }
  41471. /*
  41472. N2. Any remaining neutrals take the embedding direction.
  41473. */
  41474. for (i = 0; i < strLength; ++i) {
  41475. if (types[i] == 'ON') {
  41476. types[i] = e;
  41477. }
  41478. }
  41479. /*
  41480. I1. For all characters with an even (left-to-right) embedding direction,
  41481. those of type R go up one level and those of type AN or EN go up two
  41482. levels.
  41483. I2. For all characters with an odd (right-to-left) embedding direction,
  41484. those of type L, EN or AN go up one level.
  41485. */
  41486. for (i = 0; i < strLength; ++i) {
  41487. t = types[i];
  41488. if (isEven(levels[i])) {
  41489. if (t == 'R') {
  41490. levels[i] += 1;
  41491. } else if (t == 'AN' || t == 'EN') {
  41492. levels[i] += 2;
  41493. }
  41494. } else { // isOdd
  41495. if (t == 'L' || t == 'AN' || t == 'EN') {
  41496. levels[i] += 1;
  41497. }
  41498. }
  41499. }
  41500. /*
  41501. L1. On each line, reset the embedding level of the following characters to
  41502. the paragraph embedding level:
  41503. segment separators,
  41504. paragraph separators,
  41505. any sequence of whitespace characters preceding a segment separator or
  41506. paragraph separator, and any sequence of white space characters at the end
  41507. of the line.
  41508. */
  41509. // don't bother as text is only single line
  41510. /*
  41511. L2. From the highest level found in the text to the lowest odd level on
  41512. each line, reverse any contiguous sequence of characters that are at that
  41513. level or higher.
  41514. */
  41515. // find highest level & lowest odd level
  41516. var highestLevel = -1;
  41517. var lowestOddLevel = 99;
  41518. var level;
  41519. for (i = 0, ii = levels.length; i < ii; ++i) {
  41520. level = levels[i];
  41521. if (highestLevel < level) {
  41522. highestLevel = level;
  41523. }
  41524. if (lowestOddLevel > level && isOdd(level)) {
  41525. lowestOddLevel = level;
  41526. }
  41527. }
  41528. // now reverse between those limits
  41529. for (level = highestLevel; level >= lowestOddLevel; --level) {
  41530. // find segments to reverse
  41531. var start = -1;
  41532. for (i = 0, ii = levels.length; i < ii; ++i) {
  41533. if (levels[i] < level) {
  41534. if (start >= 0) {
  41535. reverseValues(chars, start, i);
  41536. start = -1;
  41537. }
  41538. } else if (start < 0) {
  41539. start = i;
  41540. }
  41541. }
  41542. if (start >= 0) {
  41543. reverseValues(chars, start, levels.length);
  41544. }
  41545. }
  41546. /*
  41547. L3. Combining marks applied to a right-to-left base character will at this
  41548. point precede their base character. If the rendering engine expects them to
  41549. follow the base characters in the final display process, then the ordering
  41550. of the marks and the base character must be reversed.
  41551. */
  41552. // don't bother for now
  41553. /*
  41554. L4. A character that possesses the mirrored property as specified by
  41555. Section 4.7, Mirrored, must be depicted by a mirrored glyph if the resolved
  41556. directionality of that character is R.
  41557. */
  41558. // don't mirror as characters are already mirrored in the pdf
  41559. // Finally, return string
  41560. var result = '';
  41561. for (i = 0, ii = chars.length; i < ii; ++i) {
  41562. var ch = chars[i];
  41563. if (ch != '<' && ch != '>') {
  41564. result += ch;
  41565. }
  41566. }
  41567. return createBidiText(result, isLTR);
  41568. }
  41569. return bidi;
  41570. })();
  41571. /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  41572. /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
  41573. /* Copyright 2014 Opera Software ASA
  41574. *
  41575. * Licensed under the Apache License, Version 2.0 (the "License");
  41576. * you may not use this file except in compliance with the License.
  41577. * You may obtain a copy of the License at
  41578. *
  41579. * http://www.apache.org/licenses/LICENSE-2.0
  41580. *
  41581. * Unless required by applicable law or agreed to in writing, software
  41582. * distributed under the License is distributed on an "AS IS" BASIS,
  41583. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  41584. * See the License for the specific language governing permissions and
  41585. * limitations under the License.
  41586. *
  41587. *
  41588. * Based on https://code.google.com/p/smhasher/wiki/MurmurHash3.
  41589. * Hashes roughly 100 KB per millisecond on i7 3.4 GHz.
  41590. */
  41591. /* globals Uint32ArrayView */
  41592. 'use strict';
  41593. var MurmurHash3_64 = (function MurmurHash3_64Closure (seed) {
  41594. // Workaround for missing math precison in JS.
  41595. var MASK_HIGH = 0xffff0000;
  41596. var MASK_LOW = 0xffff;
  41597. function MurmurHash3_64 (seed) {
  41598. var SEED = 0xc3d2e1f0;
  41599. this.h1 = seed ? seed & 0xffffffff : SEED;
  41600. this.h2 = seed ? seed & 0xffffffff : SEED;
  41601. }
  41602. var alwaysUseUint32ArrayView = false;
  41603. // old webkits have issues with non-aligned arrays
  41604. try {
  41605. new Uint32Array(new Uint8Array(5).buffer, 0, 1);
  41606. } catch (e) {
  41607. alwaysUseUint32ArrayView = true;
  41608. }
  41609. MurmurHash3_64.prototype = {
  41610. update: function MurmurHash3_64_update(input) {
  41611. var useUint32ArrayView = alwaysUseUint32ArrayView;
  41612. var i;
  41613. if (typeof input == 'string') {
  41614. var data = new Uint8Array(input.length * 2);
  41615. var length = 0;
  41616. for (i = 0; i < input.length; i++) {
  41617. var code = input.charCodeAt(i);
  41618. if (code <= 0xff) {
  41619. data[length++] = code;
  41620. }
  41621. else {
  41622. data[length++] = code >>> 8;
  41623. data[length++] = code & 0xff;
  41624. }
  41625. }
  41626. } else if (input instanceof Uint8Array) {
  41627. data = input;
  41628. length = data.length;
  41629. } else if (typeof input === 'object' && ('length' in input)) {
  41630. // processing regular arrays as well, e.g. for IE9
  41631. data = input;
  41632. length = data.length;
  41633. useUint32ArrayView = true;
  41634. } else {
  41635. throw new Error('Wrong data format in MurmurHash3_64_update. ' +
  41636. 'Input must be a string or array.');
  41637. }
  41638. var blockCounts = length >> 2;
  41639. var tailLength = length - blockCounts * 4;
  41640. // we don't care about endianness here
  41641. var dataUint32 = useUint32ArrayView ?
  41642. new Uint32ArrayView(data, blockCounts) :
  41643. new Uint32Array(data.buffer, 0, blockCounts);
  41644. var k1 = 0;
  41645. var k2 = 0;
  41646. var h1 = this.h1;
  41647. var h2 = this.h2;
  41648. var C1 = 0xcc9e2d51;
  41649. var C2 = 0x1b873593;
  41650. var C1_LOW = C1 & MASK_LOW;
  41651. var C2_LOW = C2 & MASK_LOW;
  41652. for (i = 0; i < blockCounts; i++) {
  41653. if (i & 1) {
  41654. k1 = dataUint32[i];
  41655. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  41656. k1 = k1 << 15 | k1 >>> 17;
  41657. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  41658. h1 ^= k1;
  41659. h1 = h1 << 13 | h1 >>> 19;
  41660. h1 = h1 * 5 + 0xe6546b64;
  41661. } else {
  41662. k2 = dataUint32[i];
  41663. k2 = (k2 * C1 & MASK_HIGH) | (k2 * C1_LOW & MASK_LOW);
  41664. k2 = k2 << 15 | k2 >>> 17;
  41665. k2 = (k2 * C2 & MASK_HIGH) | (k2 * C2_LOW & MASK_LOW);
  41666. h2 ^= k2;
  41667. h2 = h2 << 13 | h2 >>> 19;
  41668. h2 = h2 * 5 + 0xe6546b64;
  41669. }
  41670. }
  41671. k1 = 0;
  41672. switch (tailLength) {
  41673. case 3:
  41674. k1 ^= data[blockCounts * 4 + 2] << 16;
  41675. /* falls through */
  41676. case 2:
  41677. k1 ^= data[blockCounts * 4 + 1] << 8;
  41678. /* falls through */
  41679. case 1:
  41680. k1 ^= data[blockCounts * 4];
  41681. /* falls through */
  41682. k1 = (k1 * C1 & MASK_HIGH) | (k1 * C1_LOW & MASK_LOW);
  41683. k1 = k1 << 15 | k1 >>> 17;
  41684. k1 = (k1 * C2 & MASK_HIGH) | (k1 * C2_LOW & MASK_LOW);
  41685. if (blockCounts & 1) {
  41686. h1 ^= k1;
  41687. } else {
  41688. h2 ^= k1;
  41689. }
  41690. }
  41691. this.h1 = h1;
  41692. this.h2 = h2;
  41693. return this;
  41694. },
  41695. hexdigest: function MurmurHash3_64_hexdigest () {
  41696. var h1 = this.h1;
  41697. var h2 = this.h2;
  41698. h1 ^= h2 >>> 1;
  41699. h1 = (h1 * 0xed558ccd & MASK_HIGH) | (h1 * 0x8ccd & MASK_LOW);
  41700. h2 = (h2 * 0xff51afd7 & MASK_HIGH) |
  41701. (((h2 << 16 | h1 >>> 16) * 0xafd7ed55 & MASK_HIGH) >>> 16);
  41702. h1 ^= h2 >>> 1;
  41703. h1 = (h1 * 0x1a85ec53 & MASK_HIGH) | (h1 * 0xec53 & MASK_LOW);
  41704. h2 = (h2 * 0xc4ceb9fe & MASK_HIGH) |
  41705. (((h2 << 16 | h1 >>> 16) * 0xb9fe1a85 & MASK_HIGH) >>> 16);
  41706. h1 ^= h2 >>> 1;
  41707. for (var i = 0, arr = [h1, h2], str = ''; i < arr.length; i++) {
  41708. var hex = (arr[i] >>> 0).toString(16);
  41709. while (hex.length < 8) {
  41710. hex = '0' + hex;
  41711. }
  41712. str += hex;
  41713. }
  41714. return str;
  41715. }
  41716. };
  41717. return MurmurHash3_64;
  41718. })();
  41719. }).call((typeof window === 'undefined') ? this : window);
  41720. if (!PDFJS.workerSrc && typeof document !== 'undefined') {
  41721. // workerSrc is not set -- using last script url to define default location
  41722. PDFJS.workerSrc = (function () {
  41723. 'use strict';
  41724. var scriptTagContainer = document.body ||
  41725. document.getElementsByTagName('head')[0];
  41726. var pdfjsSrc = scriptTagContainer.lastChild.src;
  41727. return pdfjsSrc && pdfjsSrc.replace(/\.js$/i, '.worker.js');
  41728. })();
  41729. }